文章详细页样式修改。
This commit is contained in:
parent
13c48ed9be
commit
ce6c5354a2
|
@ -5,57 +5,53 @@ $this->headMeta()->appendName('keywords', $keyword);
|
||||||
$this->headMeta()->appendName('description', mb_substr($this->infos['description'],0,180,'utf-8'));
|
$this->headMeta()->appendName('description', mb_substr($this->infos['description'],0,180,'utf-8'));
|
||||||
?>
|
?>
|
||||||
<!-- Marketing messaging and featurettes
|
<!-- Marketing messaging and featurettes
|
||||||
================================================== -->
|
================================================== -->
|
||||||
<!-- Wrap the rest of the page in another container to center all the content. -->
|
<!-- Wrap the rest of the page in another container to center all the content. -->
|
||||||
|
|
||||||
<div class="container marketing">
|
|
||||||
|
<div class="container marketing">
|
||||||
<!-- Three columns of text below the carousel -->
|
<div class="row-fluid">
|
||||||
<div class="row-fluid">
|
<div class="span3">
|
||||||
<div class="span3">
|
<div class="Lbox">
|
||||||
<div class="Lbox">
|
<h4 class="box-title">所有栏目</h4>
|
||||||
<h4 class="box-title">所有栏目</h4>
|
<ul class="unstyled nav nav-pills nav-stacked">
|
||||||
<ul class="unstyled nav nav-pills nav-stacked">
|
<?php if(!empty($this->categories)) { ?>
|
||||||
<?php if(!empty($this->categories)) { ?>
|
<?php foreach($this->categories as $k=>$v) { ?>
|
||||||
<?php foreach($this->categories as $k=>$v) { ?>
|
<li <?= $v['ROOTDEEP'] > 0 ? 'style="padding-left:'. (12 * $v['ROOTDEEP']) .'px"':"" ?>><a href="/news/<?= $v['code'] ?>">
|
||||||
<li <?= $v['ROOTDEEP'] > 0 ? 'style="padding-left:'. (12 * $v['ROOTDEEP']) .'px"':"" ?>><a href="/news/<?= $v['code'] ?>"><?= $v['title'] ?></a></li>
|
<?= $v['title'] ?>
|
||||||
<?php } } ?>
|
</a></li>
|
||||||
</ul>
|
<?php } } ?>
|
||||||
</div>
|
</ul>
|
||||||
</div>
|
|
||||||
<!-- /.span4 -->
|
|
||||||
<div class="span9">
|
|
||||||
<div class="Lbox">
|
|
||||||
<h2 class="box-title"><?php echo $this->info['title'];?></h2>
|
|
||||||
<div class="text-left">
|
|
||||||
发布时间:<span style="color:#0088cc"><?php echo date("Y-m-d",strtotime($this->info['ts_published']));?></span>
|
|
||||||
来源:<span style="color:#0088cc">青海省生态环境遥感监测中心</span>
|
|
||||||
</div>
|
</div>
|
||||||
<p class="lead">
|
</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 if(!empty($this->mdinfo)){?>
|
||||||
<?php foreach($this->mdinfo as $v){ ?>
|
<?php foreach($this->mdinfo as $v){ ?>
|
||||||
<div class="info">相关数据:《<a href="/data/<?= $v['uuid']?>"><?= $v['title']?></a>》</div>
|
<div class="info">相关数据:《<a href="/data/<?= $v['uuid']?>">
|
||||||
<?php } ?>
|
<?= $v['title']?>
|
||||||
<?php }?>
|
</a>》
|
||||||
<div class="media">
|
</div>
|
||||||
|
<?php } ?>
|
||||||
<div class="pull-left">
|
<?php }?>
|
||||||
<?php
|
<div class="media">
|
||||||
if(!empty($this->info['image']))
|
<div class="pull-left">
|
||||||
{
|
<?php
|
||||||
echo ' <a class="inline" href="#"><img class="inline span3" src="'.$this->info['image'].'" data-src="holder.js/128x128" /></a>';
|
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>
|
</div>
|
||||||
|
<?php echo $this->info['body'];?> </div>
|
||||||
</p>
|
</p>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
<!-- /.span9 -->
|
||||||
<!-- /.span9 -->
|
</div>
|
||||||
|
<!-- /.row-fluid -->
|
||||||
</div>
|
</div>
|
||||||
<!-- /.row -->
|
|
Loading…
Reference in New Issue