Latest Blog posts
loadLangs(array("main"));
$websitepage = new WebsitePage($db);
$fuser = new User($db);
$arrayofblogs = $websitepage->fetchAll($website->id, 'DESC', 'date_creation', 5, 0, array('type_container'=>'blogpost', 'keywords'=>$keyword));
if (is_numeric($arrayofblogs) && $arrayofblogs < 0)
{
print '
'.$weblangs->trans($websitepage->error).'
';
}
elseif (is_array($arrayofblogs) && ! empty($arrayofblogs))
{
foreach($arrayofblogs as $blog)
{
print '';
print '';
print '
';
}
}
else
{
print '';
print '
';
}
?>
';
print $weblangs->trans("NoArticlesFoundForTheKeyword", $keyword);
print '
';
print '