#475, 交换新闻标题及时间的先后次序

This commit is contained in:
wlx 2013-05-14 23:57:52 +00:00
parent 6a98bb51f2
commit efb207e957
1 changed files with 2 additions and 2 deletions

View File

@ -15,7 +15,7 @@
<hr />
<ul class="news-list">
<?php foreach($this->list_news as $k=>$v){ ?>
<li><a href="<?= $v['url'] ?>"><?= $v['title'] ?></a><span class="pull-right" style="font-size:12px;">[<?= date("Y-m-d",strtotime($v['ts_published']))?>]</span></li>
<li><span class="pull-right">[<?= date("Y-m-d",strtotime($v['ts_published']))?>]</span><a href="<?= $v['url'] ?>"><?= $v['title'] ?></a></li>
<?php } ?>
</ul>
</div>
@ -34,7 +34,7 @@
foreach($this->news as $k=>$v)
{
echo '<div class="item'.($k==0?' active':'').'">';
echo '<a href="'.$v['url'].'" title="'.$v['description'].'" class="featured-image-link" ><img src="'.$v['image'].'" class="img-rounded featured-image" /></a>';
echo '<a href="'.$v['url'].'" title="'.$v['description'].'" ><img src="'.$v['image'].'" class="img-rounded featured-image" /></a>';
echo '<div class="carousel-caption">';
echo '<h4><a href="'.$v['url'].'">'.$v['title'].'</a><span class="pull-right">['.date("Y-m-d",strtotime($v['ts_published'])).']</span></h4>';
//echo '<p>'.$v['description'].'</p>';