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

76 lines
3.3 KiB
PHTML

<?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-sanjy-np/css/index.css');
$this->headLink()->appendStylesheet('/static-sanjy-np/css/about.css');
?>
<div class="breadcrumb-wrapper">
<div class="container">
<div class="row">
<div class="col-md-8 col-sm-8 bcid-cat" style="text-align: center;"><h3><?php echo $this->infos['title']; ?></h3></div>
<div class="col-md-4 col-sm-4 location">
<?= $this->render('breadcrumbs.phtml'); ?>
</div>
</div>
</div>
</div>
<div class="content">
<div class="container">
<div class="col-md-8 txtLeft" style="padding-left: 0;">
<?php if (!empty($this->mdinfo)) { ?>
<?php foreach ($this->mdinfo as $v) { ?>
<div class="info">相关数据:《<a href="/data/<?= $v['uuid'] ?>"><?= $v['title'] ?></a></div>
<?php }
} ?>
<?php echo $this->infos['body']; ?>
</div>
<div class="col-md-4" style="padding-right: 0;">
<h6>站内搜索</h6>
<div class="searchBox">
<i onclick="$('#search-form').submit()">搜索</i>
<form action="/search" id="search-form">
<input type="text" name="q" id="q" class="form-control" placeholder="搜素关键词">
</form>
</div>
<h6>热点新闻</h6>
<div class="block current">
<ul class="widget-list">
<?php foreach ($this->news as $n) : ?>
<li>
<figure>
<a href="/archives/news/localnews/archive-<?= $n['id']; ?>.html">
<img src="<?php echo $n['image']; ?>">
</a>
</figure>
<div class="sn-wrapper">
<p class="s-desc">
<a href="/archives/news/localnews/archive-<?= $n['id']; ?>.html"><?php echo $n['title']; ?></a>
</p>
<span class="comments">
<img src="/static-sanjy-np/img/icon2.png" alt=""/>
<?php echo date("Y-m-d", strtotime($n['ts_published'])); ?>
</span>
</div>
</li>
<?php endforeach; ?>
</ul>
</div>
</div>
</div>
</div>