westdc-zf1/application/default/views/scripts/archives/index.phtml

59 lines
1.7 KiB
PHTML
Raw Normal View History

<?php
$this->headTitle($this->config->title->site);
$this->headTitle('新闻中心');
$this->headTitle()->setSeparator(' - ');
$this->breadcrumb('<a href="/">首页</a>');
2014-06-12 06:46:42 +00:00
$this->breadcrumb('新闻中心');
2013-04-16 09:59:33 +00:00
$this->breadcrumb()->setSeparator(' > ');
2014-06-12 06:46:42 +00:00
$this->headLink()->appendStylesheet('/css/news.css');
$this->theme->AppendPlus($this,'masonry');
?>
2014-06-12 06:46:42 +00:00
<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
2013-03-22 09:17:19 +00:00
if(count($this->types))
{
foreach($this->types as $k=>$v)
{
2013-03-22 09:17:19 +00:00
$haed = "";
if(!empty($v[$this->deepField])) {$haed = str_repeat(' ',$v[$this->deepField]);}
2014-06-12 06:46:42 +00:00
echo '<li><a href="'.$v['url'].'"><i class="icon-chevron-right"></i>'.$haed.$v['title'].'</a></li>';
2013-03-22 09:17:19 +00:00
$haed = "";
}
2013-03-22 09:17:19 +00:00
}
?>
</ul>
2014-06-12 06:46:42 +00:00
</div>
</div>
2014-06-12 08:59:00 +00:00
2013-03-22 09:17:19 +00:00
<div class="span9">
2014-06-12 08:59:00 +00:00
<div class="Lbox">
<h4 class="box-title">新闻列表</h4>
<ol >
2014-06-12 06:46:42 +00:00
<?php
foreach($this->lists as $v)
{?>
<?php if(count($v['list'])>0) {?>
2014-06-12 08:59:00 +00:00
2014-06-12 06:46:42 +00:00
<?php foreach($v['list'] as $arc){?>
2014-06-12 08:59:00 +00:00
<li><a href="<?= $arc['url']?>"><?= $arc['title'] ?></a><small>[<?php echo date("Y-m-d",strtotime( $arc['ts_published'] )); ?>]</small></li>
2014-06-12 06:46:42 +00:00
<?php }?>
2014-06-12 08:59:00 +00:00
<?php } }?>
</ol>
</div>
<div class="pagenavi">
<?= $this->paginator; ?>
</div>
</div>
2014-06-12 08:59:00 +00:00
<!-- /.span9 -->
2013-04-16 09:59:33 +00:00
</div>
2014-06-12 06:46:42 +00:00
<script>
$('#container').masonry({
itemSelector : '.items',
});
</script>