新闻首页添加自动排版
This commit is contained in:
parent
1890f8f8dd
commit
6e9a3cbdfe
|
@ -6,6 +6,7 @@ $this->breadcrumb('<a href="/">首页</a>');
|
||||||
$this->breadcrumb('新闻中心');
|
$this->breadcrumb('新闻中心');
|
||||||
$this->breadcrumb()->setSeparator(' > ');
|
$this->breadcrumb()->setSeparator(' > ');
|
||||||
$this->headLink()->appendStylesheet('/css/mdreview.css');
|
$this->headLink()->appendStylesheet('/css/mdreview.css');
|
||||||
|
$this->theme->AppendPlus($this,'masonry');
|
||||||
?>
|
?>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="span3">
|
<div class="span3">
|
||||||
|
@ -35,7 +36,7 @@ $this->headLink()->appendStylesheet('/css/mdreview.css');
|
||||||
<?php if(count($v['list'])>0) {?>
|
<?php if(count($v['list'])>0) {?>
|
||||||
<div class="span4">
|
<div class="span4">
|
||||||
<h3><a href="<?= $v['url'] ?>"><?= $v['title'] ?></a></h3>
|
<h3><a href="<?= $v['url'] ?>"><?= $v['title'] ?></a></h3>
|
||||||
<div class="list-content">
|
<div class="list-content" id="container">
|
||||||
<ul class="unstyled">
|
<ul class="unstyled">
|
||||||
<?php foreach($v['list'] as $arc){?>
|
<?php foreach($v['list'] as $arc){?>
|
||||||
<li><small>[<?php echo date("Y-m-d",strtotime( $arc['ts_published'] )); ?>]</small>
|
<li><small>[<?php echo date("Y-m-d",strtotime( $arc['ts_published'] )); ?>]</small>
|
||||||
|
@ -49,3 +50,8 @@ $this->headLink()->appendStylesheet('/css/mdreview.css');
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<script>
|
||||||
|
$('#container').masonry({
|
||||||
|
itemSelector : '.items',
|
||||||
|
});
|
||||||
|
</script>
|
Loading…
Reference in New Issue