westdc-zf1/application/default/views/scripts/archives/archive.phtml

56 lines
2.7 KiB
PHTML
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
$config = Zend_Registry::get('config');
$this->headTitle($config->title->site);
$this->headTitle($this->infos['title']);
$this->headTitle()->setSeparator(' - ');
$this->breadcrumb('<a href="/">首页</a>');
$this->breadcrumb('<a href="/archives/">新闻中心</a>');
$this->breadcrumb('<a href="/archives/'.$this->ptype.'/'.$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'));
$this->headLink()->appendStylesheet('/css/news.css');
?>
<div class="row">
<div class="span3">
<div class="bs-review-nav sidebar-nav">
<ul class="nav nav-list bs-review-sidenav">
<li><a href="/archives"><i class="icon-chevron-right"></i>新闻中心</a></li>
<?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'.($v['code']==$this->type?' class="active"':'').'><a href="'.$v['url'].'"><i class="icon-chevron-right"></i>'.$haed.$v['title'].'</a></li>';
$haed = "";
}
}
?>
</ul>
</div>
</div>
<div class="span9" id="archive_body">
<h3 class="text-center" style="font-family:'微软雅黑', '宋体'; color:#08c"><?php echo $this->infos['title'];?></h3>
<div class="text-center" style="font-size:11px; color:#BCBCBC">&nbsp;&nbsp;发布时间&nbsp;:&nbsp;<span style="font-size:11px; color:#08c"><?php echo date("Y-m-d",strtotime($this->infos['ts_published']));?></span>&nbsp;&nbsp;来源&nbsp;:&nbsp;<span style="font-size:11px; color:#08c"><?php echo $this->infos['source'];?></span></div>
<?php if(!empty($this->mdinfo)){?>
<?php foreach($this->mdinfo as $v){ ?>
<div class="info">相关数据:《<a href="/data/<?= $v['uuid']?>"><?= $v['title']?></a></div>
<?php } } ?>
<div class="media" style="font-family:'微软雅黑''宋体';font-size:18px; line-height:200%">
<div class="pull-left">
<?php echo $this->infos['body'];?>
</div>
<?php
if(!empty($this->infos['image']))
{
echo ' <a class="inline" href="#"><img class="inline span3" src="'.$this->infos['image'].'" data-src="holder.js/128x128" /></a>';
}
?>
</div>
</div>
</div>