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)){ ?>
mobile_device_type != IPAD_DEVICE): ?>
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 '
';
if(isset($this->all_news[$i]['thumb'])){
echo '- ' . $this->all_news[$i]['link'] .'
';
if($this->all_news[$i]['object']['course_id']){
echo '('.$this->all_news[$i]['course'].')|';
}
echo '('.AT_DATE('%F %j, %g:%i',$this->all_news[$i]['time']).')
';
}
echo '
';
}
}
if($perpage == count($this->all_news)){ ?>