#475, 交换新闻标题及时间的先后次序
This commit is contained in:
parent
6a98bb51f2
commit
efb207e957
|
@ -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>';
|
||||
|
|
Loading…
Reference in New Issue