文章详细页样式修改。

This commit is contained in:
Li Heng 2014-02-27 03:59:03 +00:00
parent 13c48ed9be
commit ce6c5354a2
1 changed files with 44 additions and 48 deletions

View File

@ -5,57 +5,53 @@ $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">
<!-- Three columns of text below the carousel -->
<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>
<!-- /.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 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>
<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 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'];?>
<?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>
</p>
<?php echo $this->info['body'];?> </div>
</p>
</div>
</div>
</div>
<!-- /.span9 -->
</div>
<!-- /.row -->
<!-- /.span9 -->
</div>
<!-- /.row-fluid -->
</div>