57 lines
1.8 KiB
PHTML
57 lines
1.8 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="row" id="container">
|
||
<?php
|
||
foreach($this->lists as $v)
|
||
{?>
|
||
<?php if(count($v['list'])>0) {?>
|
||
<div class="span4 items">
|
||
<h3><a href="<?= $v['url'] ?>"><?= $v['title'] ?></a></h3>
|
||
<div class="list-content">
|
||
<ul class="unstyled">
|
||
<?php foreach($v['list'] as $arc){?>
|
||
<li><small>[<?php echo date("Y-m-d",strtotime( $arc['ts_published'] )); ?>]</small>
|
||
<a href="<?= $arc['url']?>"><?= $arc['title'] ?></a></li>
|
||
<?php }?>
|
||
</ul>
|
||
</div>
|
||
</div>
|
||
<?php } }
|
||
?>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<script>
|
||
$('#container').masonry({
|
||
itemSelector : '.items',
|
||
});
|
||
</script>
|