修改新闻首页的布局

This commit is contained in:
wlx 2014-06-18 13:46:43 +00:00
parent 5421a8ff06
commit f231426111
1 changed files with 4 additions and 6 deletions

View File

@ -31,19 +31,17 @@ $this->theme->AppendPlus($this,'masonry');
<div class="span9"> <div class="span9">
<div class="Lbox"> <div class="Lbox">
<h4 class="box-title">新闻列表</h4>
<ol >
<?php <?php
foreach($this->lists as $v) foreach($this->lists as $v)
{?> {?>
<?php if(count($v['list'])>0) {?> <?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){?> <?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> <li><a href="<?= $arc['url']?>"><?= $arc['title'] ?></a><small>[<?php echo date("Y-m-d",strtotime( $arc['ts_published'] )); ?>]</small></li>
<?php }?> <?php }?>
<?php } }?>
</ol> </ol>
<?php } }?>
</div> </div>
<div class="pagenavi"> <div class="pagenavi">
<?= $this->paginator; ?> <?= $this->paginator; ?>