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

57 lines
1.7 KiB
PHTML
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?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>