#475, 交换新闻标题及时间的先后次序
This commit is contained in:
parent
6a98bb51f2
commit
efb207e957
|
@ -15,7 +15,7 @@
|
||||||
<hr />
|
<hr />
|
||||||
<ul class="news-list">
|
<ul class="news-list">
|
||||||
<?php foreach($this->list_news as $k=>$v){ ?>
|
<?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 } ?>
|
<?php } ?>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
@ -34,7 +34,7 @@
|
||||||
foreach($this->news as $k=>$v)
|
foreach($this->news as $k=>$v)
|
||||||
{
|
{
|
||||||
echo '<div class="item'.($k==0?' active':'').'">';
|
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 '<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 '<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>';
|
//echo '<p>'.$v['description'].'</p>';
|
||||||
|
|
Loading…
Reference in New Issue