54 lines
2.1 KiB
PHTML
54 lines
2.1 KiB
PHTML
<?php
|
|
$config = Zend_Registry::get('config');
|
|
$this->headTitle($config->title->site);
|
|
$this->headTitle($this->infos['title']);
|
|
$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('<a href="/news">新闻中心</a>');
|
|
$this->breadcrumb('<a href="/news/'.$this->type.'">'.$this->infos['typename'].'</a>');
|
|
$this->breadcrumb($this->infos['title']);
|
|
$this->breadcrumb()->setSeparator(' > ');
|
|
if(!empty($this->infos['keyword'])) $keyword = $this->infos['keyword']; else $keyword = $this->infos['title'];
|
|
$this->headMeta()->appendName('keywords', $keyword);
|
|
$this->headMeta()->appendName('description', mb_substr($this->infos['description'],0,180,'utf-8'));
|
|
?>
|
|
<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)
|
|
{
|
|
echo '<li><a href="/news/'.$v['url'].'">'.$v['title'].'</a></li>';
|
|
}
|
|
}
|
|
?>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="Rfloat clear archive_body" id="archive_body">
|
|
|
|
<div class="title"><?php echo $this->infos['title'];?></div>
|
|
<div class="info">时间 : <?php echo date("Y-m-d H:i",strtotime($this->infos['ts_published']));?> 作者 : <?php echo $this->infos['author'];?> 来源 : <?php echo $this->infos['source'];?></div>
|
|
<div class="archive_content">
|
|
<table width="100%">
|
|
<tr>
|
|
<td>
|
|
<?php echo $this->infos['body'];?>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<script>
|
|
$('#archive_body').width($('#body').width()-320);
|
|
$('#archive_body .archive_content img').css("max-width",$('#archive_body').width());
|
|
</script>
|