55 lines
1.6 KiB
PHTML
55 lines
1.6 KiB
PHTML
|
<?php
|
|||
|
$this->headTitle($this->config->title->site);
|
|||
|
$this->headTitle('新闻中心');
|
|||
|
$this->headTitle()->setSeparator(' - ');
|
|||
|
$this->headLink()->appendStylesheet('/css/news.css');
|
|||
|
$this->headScript()->appendFile('/js/jquery-1.7.min.js');
|
|||
|
$this->breadcrumb('<a href="/">首页</a>');
|
|||
|
$this->breadcrumb('新闻中心');
|
|||
|
$this->breadcrumb()->setSeparator(' > ');
|
|||
|
?>
|
|||
|
<div class="full center clear" id="body">
|
|||
|
<div class="w300 Lfloat clear">
|
|||
|
<div class="tbox">
|
|||
|
<div class="title">新闻分类</div>
|
|||
|
<div class="content navmenu">
|
|||
|
<ul>
|
|||
|
<?php
|
|||
|
if(count($this->types))
|
|||
|
{
|
|||
|
foreach($this->types as $k=>$v)
|
|||
|
{
|
|||
|
$haed = "";
|
|||
|
if(!empty($v[$this->deepField])) {$haed = str_repeat(' ',$v[$this->deepField]);}
|
|||
|
echo '<li><a href="'.$v['url'].'">'.$haed.$v['title'].'</a></li>';
|
|||
|
$haed = "";
|
|||
|
}
|
|||
|
}
|
|||
|
?>
|
|||
|
</ul>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<div class="Rfloat clear" id="archives_list">
|
|||
|
<?php
|
|||
|
foreach($this->lists as $v)
|
|||
|
{?>
|
|||
|
<?php if(count($v['list'])>0) {?>
|
|||
|
<div class="list-archives">
|
|||
|
<div class="list-title"><a href="<?= $v['url'] ?>"><?= $v['title'] ?></a></div>
|
|||
|
<div class="list-content">
|
|||
|
<ul>
|
|||
|
<?php foreach($v['list'] as $arc)
|
|||
|
{?>
|
|||
|
<li><a href="<?= $arc['url']?>"><?= $arc['title'] ?></a></li>
|
|||
|
<?php }?>
|
|||
|
</ul>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<?php } }
|
|||
|
?>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
<script>
|
|||
|
$('#archives_list').width($('#body').width()-320);
|
|||
|
</script>
|