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

106 lines
4.4 KiB
PHTML
Raw Normal View History

<?php
$config = Zend_Registry::get('config');
$this->headTitle($config->title->site);
$this->headTitle($this->infos['title']);
$this->headTitle()->setSeparator(' - ');
$this->breadcrumb('<a href="/">首页</a>');
2018-06-22 11:12:14 +00:00
$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(' > ');
2018-06-22 11:12:14 +00:00
if (!empty($this->infos['keyword'])) $keyword = $this->infos['keyword']; else $keyword = $this->infos['title'];
$this->headMeta()->appendName('keywords', $keyword);
2018-06-22 11:12:14 +00:00
$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');
2018-02-04 07:05:06 +00:00
2018-05-12 09:12:27 +00:00
?>
2018-02-04 07:05:06 +00:00
2018-06-22 11:12:14 +00:00
<div class="breadcrumb-wrapper">
2018-02-04 07:05:06 +00:00
<div class="container">
2018-05-12 09:12:27 +00:00
<div class="row">
2018-06-22 11:12:14 +00:00
<div class="col-md-3 col-sm-4 bcid-cat">新闻详情</div>
<div class="col-md-9 col-sm-8 location">
<?= $this->render('breadcrumbs.phtml'); ?>
2018-05-12 09:12:27 +00:00
</div>
2018-06-22 11:12:14 +00:00
</div>
</div>
</div>
2018-05-12 09:12:27 +00:00
2018-06-24 06:15:05 +00:00
<div class="content">
2018-06-22 11:12:14 +00:00
<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 }
} ?>
2018-05-12 09:12:27 +00:00
2018-06-22 11:12:14 +00:00
<?php echo $this->infos['body']; ?>
2018-05-12 09:12:27 +00:00
</div>
2018-06-22 11:12:14 +00:00
<div class="col-md-4" style="padding-right: 0;">
2018-06-24 06:15:05 +00:00
<h6>站内搜索</h6>
2018-06-22 11:12:14 +00:00
<div class="searchBox">
2018-06-24 11:26:56 +00:00
<i onclick="$('#search-form').submit()">搜索</i>
<form action="/search" id="search-form">
<input type="text" name="q" id="q" class="form-control" placeholder="搜素关键词">
</form>
2018-06-22 11:12:14 +00:00
</div>
2018-06-24 06:15:05 +00:00
<h6>热点新闻</h6>
2018-06-22 11:12:14 +00:00
<div class="block current">
<ul class="widget-list">
<li>
<figure>
<a href="">
<img src="/static-sanjy-np/img/1.jpg">
</a>
</figure>
<div class="sn-wrapper">
<p class="s-desc">
2018-06-24 11:26:56 +00:00
<a href="">大众不惧苹果谷歌 全新电动车充电仅需大众不惧苹果谷歌大众不惧苹果谷歌</a>
2018-06-22 11:12:14 +00:00
</p>
<span class="comments">
2018-06-24 11:26:56 +00:00
<img src="../img/icon2.png" alt=""/>
2018-06-22 11:12:14 +00:00
2018-05-12
</span>
</div>
</li>
<li>
<figure>
<a href="">
<img src="/static-sanjy-np/img/2.jpg">
</a>
</figure>
<div class="sn-wrapper">
<p class="s-desc">
<a href="" title="大众不惧苹果谷歌 全新电动车充电仅需">大众不惧苹果谷歌 全新电动车充电仅需</a>
</p>
<span class="comments">
2018-06-24 11:26:56 +00:00
<img src="/static-sanjy-np/img/icon2.png" alt=""/>
2018-06-22 11:12:14 +00:00
2018-05-12
</span>
</div>
</li>
<li>
<figure>
<a href="">
<img src="/static-sanjy-np/img/3.jpg">
</a>
</figure>
<div class="sn-wrapper">
<p class="s-desc">
<a href="" title="大众不惧苹果谷歌 全新电动车充电仅需">大众不惧苹果谷歌 全新电动车充电仅需</a>
</p>
<span class="comments">
2018-06-24 11:26:56 +00:00
<img src="/static-sanjy-np/img/icon2.png" alt=""/>
2018-06-22 11:12:14 +00:00
2018-05-12
</span>
</div>
</li>
</ul>
</div>
</div>
</div>
</div>