50 lines
1.6 KiB
PHTML
50 lines
1.6 KiB
PHTML
<?php
|
||
$this->headTitle($this->config->title->site);
|
||
$this->headTitle('新闻中心');
|
||
$this->headTitle()->setSeparator(' - ');
|
||
$this->breadcrumb('<a href="/">首页</a>');
|
||
$this->breadcrumb('<a href="/archives/">新闻中心</a>');
|
||
$this->breadcrumb($this->title);
|
||
$this->breadcrumb()->setSeparator(' > ');
|
||
$this->headLink()->appendStylesheet('/static-sanji/css/new-list.css');
|
||
?>
|
||
<div class="body-warp">
|
||
<div class="nav" id="nav">
|
||
<ul>
|
||
<?php
|
||
if(count($this->types))
|
||
{
|
||
foreach($this->types as $k=>$v)
|
||
{
|
||
$haed = "";
|
||
if(!empty($v[$this->deepField])) {$haed = str_repeat(' ',$v[$this->deepField]);}
|
||
echo '<li><a href="'.$v['url'].'">'.$haed.$v['title'].'</a></li>';
|
||
$haed = "";
|
||
}
|
||
}
|
||
?>
|
||
</ul>
|
||
</div>
|
||
<div class="list-warp container">
|
||
<ul>
|
||
<?php
|
||
if(count($this->paginator))
|
||
{
|
||
foreach ($this->paginator as $v)
|
||
{
|
||
?>
|
||
<li><a href="<?php echo $v['url']; ?>"><?php echo $v['title']; ?></a><span><?php echo date("Y-m-d",strtotime( $v['ts_published'] )); ?></span></li>
|
||
<?php
|
||
}
|
||
} else {
|
||
echo '暂无数据';
|
||
}
|
||
?>
|
||
</ul>
|
||
</div>
|
||
<div class="page">
|
||
<div class="pagenavi"><?= $this->paginator; ?></div>
|
||
</div>
|
||
</div>
|
||
|