westdc-zf1/module/Article/view/article/article/view.phtml

57 lines
2.5 KiB
PHTML

<?php
$this->headTitle($this->info['title']);
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'));
?>
<!-- Marketing messaging and featurettes
================================================== -->
<!-- Wrap the rest of the page in another container to center all the content. -->
<div class="container marketing">
<div class="row-fluid">
<div class="span3">
<div class="Lbox">
<h4 class="box-title">所有栏目</h4>
<ul class="unstyled nav nav-pills nav-stacked">
<?php if(!empty($this->categories)) { ?>
<?php foreach($this->categories as $k=>$v) { ?>
<li <?= $v['ROOTDEEP'] > 0 ? 'style="padding-left:'. (12 * $v['ROOTDEEP']) .'px"':"" ?>><a href="/news/<?= $v['code'] ?>">
<?= $v['title'] ?>
</a></li>
<?php } } ?>
</ul>
</div>
</div><!-- /.span3 -->
<div class="span9">
<div class="Lbox">
<h2 class="box-title"><?php echo $this->info['title'];?></h2>
<div class="text-center" style=" margin-bottom:30px;font-family:'宋体'; font-size:12px; color:#999999; text-align:center;"> 发布时间:<span style="color:#0088cc"><?php echo date("Y-m-d",strtotime($this->info['ts_published']));?></span> 来源:<span style="color:#0088cc">青海省生态环境遥感监测中心</span> </div>
<p class="lead">
<?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 }?>
<div class="media">
<div class="pull-left">
<?php
if(!empty($this->info['image']))
{
echo ' <a class="inline" href="#"><img class="inline span3" src="'.$this->info['image'].'" data-src="holder.js/128x128" /></a>';
}
?>
</div>
<?php echo $this->info['body'];?> </div>
</p>
</div>
</div>
<!-- /.span9 -->
</div>
<!-- /.row-fluid -->
</div>