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

76 lines
3.3 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-07-20 03:49:18 +00:00
<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">
2018-06-22 11:12:14 +00:00
<?= $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">
2018-06-26 03:13:28 +00:00
<?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">
2018-06-24 11:26:56 +00:00
<img src="/static-sanjy-np/img/icon2.png" alt=""/>
2018-06-26 03:13:28 +00:00
<?php echo date("Y-m-d", strtotime($n['ts_published'])); ?>
2018-06-22 11:12:14 +00:00
</span>
2018-06-26 03:13:28 +00:00
</div>
</li>
<?php endforeach; ?>
2018-06-22 11:12:14 +00:00
</ul>
</div>
</div>
</div>
</div>