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

57 lines
1.8 KiB
PHTML
Raw Normal View History

<?php
$this->headTitle($this->config->title->site);
$this->headTitle('新闻中心');
$this->headTitle()->setSeparator(' - ');
$this->breadcrumb('<a href="/">首页</a>');
$this->breadcrumb('新闻中心');
2013-04-16 09:59:33 +00:00
$this->breadcrumb()->setSeparator(' > ');
2013-04-17 01:56:37 +00:00
$this->headLink()->appendStylesheet('/css/news.css');
2013-04-16 09:59:33 +00:00
$this->theme->AppendPlus($this,'masonry');
?>
2013-03-22 09:17:19 +00:00
<div class="row">
<div class="span3">
2013-04-09 12:52:14 +00:00
<div class="sidebar-nav bs-review-nav">
2013-04-16 09:59:33 +00:00
<ul class="nav nav-list bs-review-sidenav">
2013-04-17 01:39:52 +00:00
<li class="active"><a href="/archives"><i class="icon-chevron-right"></i>新闻中心</a></li>
2013-03-22 09:17:19 +00:00
<?php
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]);}
2013-04-09 12:52:14 +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>
</div>
</div>
2013-03-22 09:17:19 +00:00
<div class="span9">
2013-04-17 01:42:46 +00:00
<div class="row" id="container">
<?php
foreach($this->lists as $v)
{?>
<?php if(count($v['list'])>0) {?>
2013-04-17 01:42:46 +00:00
<div class="span4 items">
2013-03-22 09:17:19 +00:00
<h3><a href="<?= $v['url'] ?>"><?= $v['title'] ?></a></h3>
2013-04-17 01:42:46 +00:00
<div class="list-content">
2013-03-22 09:17:19 +00:00
<ul class="unstyled">
<?php foreach($v['list'] as $arc){?>
2013-04-16 09:59:33 +00:00
<li><small>[<?php echo date("Y-m-d",strtotime( $arc['ts_published'] )); ?>]</small>
2013-04-09 12:52:14 +00:00
<a href="<?= $arc['url']?>"><?= $arc['title'] ?></a></li>
<?php }?>
</ul>
</div>
</div>
<?php } }
?>
2013-03-22 09:17:19 +00:00
</div>
</div>
2013-04-16 09:59:33 +00:00
</div>
<script>
$('#container').masonry({
itemSelector : '.items',
});
</script>