trans("news"); ?>
fetchAll($website->id, 'DESC', 'date_creation', 0, 0, array('type_container'=>'blogpost', 'status'=>1, 'lang'=>'null, "" '.$_SESSION['lang']['shortcode']));
$countofblogs = count($allblogs);
$arrayofblogs = $websitepage->fetchAll($website->id, 'DESC', 'date_creation', $MAXNEWS, 0, array('type_container'=>'blogpost', 'status'=>1, 'lang'=>'null, "" '.$_SESSION['lang']['shortcode']));
$i=1;
foreach($arrayofblogs as $blog)
{
?>
content);
if (empty($urlforimage)) {
$urlforimage = 'medias/image/'.$website->ref.'/noimage.jpg';
}
?>