all_news);
}else{
$perpage = 10;
}
$newscount = count($this->all_news);
$num_pages = (ceil($newscount/$perpage));;
$start = ($p-1)*$perpage;
$end = ($p*$perpage);
print_paginator($page, $num_pages, '', 1);
for($i=$start;$i<=$end; $i++){
$count = $i;
if (isset($this->all_news)) {
//echo mb_strimwidth("Hello World", 0, 10, "...");
echo '
'.'
';
/*
* post_title) > 8)
echo substr($post->post_title, 0, 8) . ' ...';
else
echo $post->post_title;
?>
*/
echo '
';
echo '';
echo '
';
echo '
';
}
}
if($perpage == count($this->all_news)){ ?>