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

64 lines
2.6 KiB
PHTML
Raw Permalink Normal View History

2018-06-22 11:12:14 +00:00
<?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('/static-sanji-v2/css/archive.css');
?>
<div class="content-warp">
<div class="container">
<div class="row">
<div class="col-md-3 col-sm-2">
<div class="list-group">
<a href="#" class="list-group-item active">
新闻动态sss
</a>
<?php
if(count($this->types))
{
foreach($this->types as $k=>$v)
{
$haed = "";
if(!empty($v[$this->deepField])) {$haed = str_repeat(' ',$v[$this->deepField]);}
echo '<a href="'.$v['url'].'" class="list-group-item">'.$haed.$v['title'].'</a>';
$haed = "";
}
}
?>
</div>
<a href="#" class="thumbnail">
<img src="/images/sea-ice.jpg" alt="sea ice">
</a>
</div>
<div class="col-md-8 col-sm-10">
<ol class="breadcrumb">
<li><a href="#">首页</a></li>
<li><a href="active">新闻动态</a></li>
</ol>
<h1 class="text-center"><?php echo $this->infos['title'];?></h1>
<div class="text-center">[<?php echo date("Y-m-d",strtotime($this->infos['ts_published']));?>]&nbsp;&nbsp;来源&nbsp;:&nbsp;<?php echo $this->infos['source'];?></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 } } ?>
<hr>
<?php echo $this->infos['body'];?>
</div>
</div>
</div>
</div>