57 lines
1.7 KiB
PHTML
57 lines
1.7 KiB
PHTML
<?php
|
||
$this->headTitle($this->config->title->site);
|
||
$this->headTitle('新闻中心');
|
||
$this->headTitle()->setSeparator(' - ');
|
||
$this->breadcrumb('<a href="/">首页</a>');
|
||
$this->breadcrumb('新闻中心');
|
||
$this->breadcrumb()->setSeparator(' > ');
|
||
$this->headLink()->appendStylesheet('/css/news.css');
|
||
$this->theme->AppendPlus($this,'masonry');
|
||
?>
|
||
<div class="row">
|
||
<div class="span3">
|
||
<div class="sidebar-nav bs-review-nav">
|
||
<ul class="nav nav-list bs-review-sidenav">
|
||
<li class="active"><a href="/archives"><i class="icon-chevron-right"></i>新闻中心</a></li>
|
||
<?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'].'"><i class="icon-chevron-right"></i>'.$haed.$v['title'].'</a></li>';
|
||
$haed = "";
|
||
}
|
||
}
|
||
?>
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
|
||
<div class="span9">
|
||
<div class="Lbox">
|
||
<?php
|
||
foreach($this->lists as $v)
|
||
{?>
|
||
<?php if(count($v['list'])>0) {?>
|
||
<h4 class="box-title"><a href="<?= $v['url'] ?>"><?= $v['title'] ?></a></h4>
|
||
<ol >
|
||
<?php foreach($v['list'] as $arc){?>
|
||
<li><a href="<?= $arc['url']?>"><?= $arc['title'] ?></a><small>[<?php echo date("Y-m-d",strtotime( $arc['ts_published'] )); ?>]</small></li>
|
||
<?php }?>
|
||
</ol>
|
||
<?php } }?>
|
||
</div>
|
||
<div class="pagenavi">
|
||
<?= $this->paginator; ?>
|
||
</div>
|
||
</div>
|
||
<!-- /.span9 -->
|
||
|
||
</div>
|
||
<script>
|
||
$('#container').masonry({
|
||
itemSelector : '.items',
|
||
});
|
||
</script>
|