revert index.phtml
This commit is contained in:
parent
66032ef2f5
commit
75ae4ff252
|
@ -3,23 +3,16 @@ $this->headTitle($this->config->title->site);
|
||||||
$this->headTitle('新闻中心');
|
$this->headTitle('新闻中心');
|
||||||
$this->headTitle()->setSeparator(' - ');
|
$this->headTitle()->setSeparator(' - ');
|
||||||
$this->breadcrumb('<a href="/">首页</a>');
|
$this->breadcrumb('<a href="/">首页</a>');
|
||||||
$this->breadcrumb('<a href="/archives/">新闻中心</a>');
|
$this->breadcrumb('新闻中心');
|
||||||
$this->breadcrumb($this->title);
|
|
||||||
$this->breadcrumb()->setSeparator(' > ');
|
$this->breadcrumb()->setSeparator(' > ');
|
||||||
|
$this->headLink()->appendStylesheet('/css/news.css');
|
||||||
|
$this->theme->AppendPlus($this,'masonry');
|
||||||
?>
|
?>
|
||||||
|
<div class="row">
|
||||||
<!-- Marketing messaging and featurettes
|
|
||||||
================================================== -->
|
|
||||||
<!-- Wrap the rest of the page in another container to center all the content. -->
|
|
||||||
|
|
||||||
<div class="container marketing">
|
|
||||||
|
|
||||||
<!-- Three columns of text below the carousel -->
|
|
||||||
<div class="row-fluid">
|
|
||||||
<div class="span3">
|
<div class="span3">
|
||||||
<div class="bs-docs-sidebar">
|
<div class="sidebar-nav bs-review-nav">
|
||||||
<ul class="nav nav-list bs-docs-sidenav">
|
<ul class="nav nav-list bs-review-sidenav">
|
||||||
<li><a href="/archives"><i class="icon-chevron-right"></i>新闻中心</a></li>
|
<li class="active"><a href="/archives"><i class="icon-chevron-right"></i>新闻中心</a></li>
|
||||||
<?php
|
<?php
|
||||||
if(count($this->types))
|
if(count($this->types))
|
||||||
{
|
{
|
||||||
|
@ -27,65 +20,38 @@ $this->breadcrumb()->setSeparator(' > ');
|
||||||
{
|
{
|
||||||
$haed = "";
|
$haed = "";
|
||||||
if(!empty($v[$this->deepField])) {$haed = str_repeat(' ',$v[$this->deepField]);}
|
if(!empty($v[$this->deepField])) {$haed = str_repeat(' ',$v[$this->deepField]);}
|
||||||
echo '<li'.($v['code']==$this->type?' class="active"':'').'><a href="'.$v['url'].'"><i class="icon-chevron-right"></i>'.$haed.$v['title'].'</a></li>';
|
echo '<li><a href="'.$v['url'].'"><i class="icon-chevron-right"></i>'.$haed.$v['title'].'</a></li>';
|
||||||
$haed = "";
|
$haed = "";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
<!-- /.bs-docs-sidebar -->
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<!-- /.span3 -->
|
|
||||||
<?php $list = $this->paginator;?>
|
|
||||||
<div class="span9">
|
<div class="span9">
|
||||||
<div class="Lbox">
|
<div class="row" id="container">
|
||||||
<h4 class="box-title">新闻列表</h4>
|
|
||||||
<ol >
|
|
||||||
<?php
|
<?php
|
||||||
# print_r($this->paginator);
|
foreach($this->lists as $v)
|
||||||
if(count($this->paginator))
|
{?>
|
||||||
{
|
<?php if(count($v['list'])>0) {?>
|
||||||
foreach ($this->paginator as $v)
|
<div class="span4 items">
|
||||||
{
|
<h3><a href="<?= $v['url'] ?>"><?= $v['title'] ?></a></h3>
|
||||||
$description = "";
|
<div class="list-content">
|
||||||
if (mb_strlen($v['description'])>160)
|
<ul class="unstyled">
|
||||||
{
|
<?php foreach($v['list'] as $arc){?>
|
||||||
$description = mb_substr($v['description'],0,160,'utf-8').'...<a href="'.$v['url'].'" class="more">(more)</a>';
|
<li><small>[<?php echo date("Y-m-d",strtotime( $arc['ts_published'] )); ?>]</small>
|
||||||
}else{
|
<a href="<?= $arc['url']?>"><?= $arc['title'] ?></a></li>
|
||||||
$description = $v['description'];
|
<?php }?>
|
||||||
}
|
|
||||||
?>
|
|
||||||
<li><a href="<?php echo $v['url']; ?>"><?php echo $v['title']; ?></a> <small>[<?php echo date("Y-m-d",strtotime( $v['ts_published'] )); ?>]</small></li>
|
|
||||||
<?php
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
echo '暂无数据';
|
|
||||||
}
|
|
||||||
?>
|
|
||||||
</ol>
|
|
||||||
</div>
|
|
||||||
<div class="pagenavi">
|
|
||||||
<?= $this->paginator; ?>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<!-- /.span9 -->
|
|
||||||
|
|
||||||
</div>
|
|
||||||
<!-- /.row -->
|
|
||||||
|
|
||||||
<!-- <div class="pagination">
|
|
||||||
<ul>
|
|
||||||
<li class="disabled"><a href="#">«</a></li>
|
|
||||||
<li class="active"><a href="#">1</a></li>
|
|
||||||
<li ><a href="#">2</a></li>
|
|
||||||
<li ><a href="#">3</a></li>
|
|
||||||
<li class="disabled"><a href="#">»</a></li>
|
|
||||||
</ul>
|
</ul>
|
||||||
</div>-->
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<!-- /.container -->
|
<?php } }
|
||||||
|
?>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<script>
|
||||||
|
$('#container').masonry({
|
||||||
|
itemSelector : '.items',
|
||||||
|
});
|
||||||
|
</script>
|
Loading…
Reference in New Issue