2012-12-03 10:08:25 +00:00
|
|
|
|
<?php
|
|
|
|
|
$this->headTitle($this->config->title->site);
|
|
|
|
|
$this->headTitle('新闻中心');
|
|
|
|
|
$this->headTitle()->setSeparator(' - ');
|
|
|
|
|
$this->breadcrumb('<a href="/">首页</a>');
|
2012-12-04 09:31:14 +00:00
|
|
|
|
$this->breadcrumb('<a href="/archives/">新闻中心</a>');
|
2012-12-03 10:08:25 +00:00
|
|
|
|
$this->breadcrumb($this->title);
|
|
|
|
|
$this->breadcrumb()->setSeparator(' > ');
|
|
|
|
|
?>
|
2013-03-25 09:21:37 +00:00
|
|
|
|
<div class="row">
|
|
|
|
|
<div class="span3">
|
|
|
|
|
<div class="well sidebar-nav">
|
|
|
|
|
<ul class="nav nav-list">
|
|
|
|
|
<?php
|
|
|
|
|
if(count($this->types))
|
|
|
|
|
{
|
|
|
|
|
foreach($this->types as $k=>$v)
|
2012-12-03 10:08:25 +00:00
|
|
|
|
{
|
2013-03-25 09:21:37 +00:00
|
|
|
|
$haed = "";
|
|
|
|
|
if(!empty($v[$this->deepField])) {$haed = str_repeat(' ',$v[$this->deepField]);}
|
|
|
|
|
echo '<li><a href="'.$v['url'].'">'.$haed.$v['title'].'</a></li>';
|
|
|
|
|
$haed = "";
|
2012-12-03 10:08:25 +00:00
|
|
|
|
}
|
2013-03-25 09:21:37 +00:00
|
|
|
|
}
|
|
|
|
|
?>
|
|
|
|
|
</ul>
|
2012-12-03 10:08:25 +00:00
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2013-03-25 09:21:37 +00:00
|
|
|
|
<div class="span9">
|
2012-12-03 10:08:25 +00:00
|
|
|
|
<div class="archives_list">
|
2013-03-25 09:21:37 +00:00
|
|
|
|
<ul class="unstyled">
|
2012-12-03 10:08:25 +00:00
|
|
|
|
<?php
|
|
|
|
|
if(count($this->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').'...<a href="'.$v['url'].'" class="more">(more)</a>';
|
|
|
|
|
}else{
|
|
|
|
|
$description = $v['description'];
|
|
|
|
|
}
|
2013-03-25 09:21:37 +00:00
|
|
|
|
echo '<li style="overflow:hidden;border-bottom:1px dashed #ccc;"><small class="pull-right">TIME : '.date("Y-m-d H:i",strtotime( $v['ts_published'] )).'</small>';
|
|
|
|
|
|
2012-12-03 10:08:25 +00:00
|
|
|
|
if(!empty($v['image']))
|
|
|
|
|
{
|
2012-12-04 04:34:47 +00:00
|
|
|
|
echo '<img src="'.$v['image'].'" style="max-height:60px;float:left;" />';
|
2012-12-03 10:08:25 +00:00
|
|
|
|
}
|
2013-03-25 09:21:37 +00:00
|
|
|
|
|
|
|
|
|
echo '<h4><a href="'.$v['url'].'" class="title">'.$v['title'].'</a></h4>
|
2012-12-03 10:08:25 +00:00
|
|
|
|
<p>'.$description.'</p>
|
|
|
|
|
</li>';
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
else
|
|
|
|
|
{
|
|
|
|
|
echo '暂无数据';
|
|
|
|
|
}
|
|
|
|
|
?>
|
|
|
|
|
</ul>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="pagenavi"><?= $this->paginator; ?></div>
|
|
|
|
|
</div>
|
2013-03-25 09:21:37 +00:00
|
|
|
|
</div>
|