headTitle($config->title->site);
$this->headTitle('News');
$this->headTitle()->setSeparator(' - ');
$this->headLink()->appendStylesheet('/css/news.css');
$this->headScript()->appendFile('/js/jquery-1.7.min.js');
$this->breadcrumb('Home');
$this->breadcrumb('News');
$this->breadcrumb($this->title);
$this->breadcrumb()->setSeparator(' > ');
?>
paginator))
{
foreach ($this->paginator as $v)
{
$description = "";
if(empty($v['description']))
{
$description = "No description";
}else if (mb_strlen($v['description'])>160)
{
$description = mb_substr($v['description'],0,160,'utf-8').'...(more)';
}else{
$description = $v['description'];
}
echo '-
'.$v['title'].'
TIME : '.date("Y-m-d H:i",strtotime( $v['ts_published'] )).'
'.$description.'
';
}
}
else
{
echo '暂无数据';
}
?>
= $this->paginator; ?>