+ 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 '
';
+ }
+ elseif (is_array($arrayofblogs) && ! empty($arrayofblogs))
+ {
+ foreach($arrayofblogs as $blog)
+ {
+ print '
';
+ }
+ }
+ else
+ {
+ print '
';
+ print '
';
+ print $weblangs->trans("NoArticlesFoundForTheKeyword", $keyword);
+ print '
';
+ print '