文章详细页样式修改。

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

@ -8,9 +8,8 @@ $this->headMeta()->appendName('description', mb_substr($this->infos['description
================================================== --> ================================================== -->
<!-- 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">
<!-- Three columns of text below the carousel --> <div class="container marketing">
<div class="row-fluid"> <div class="row-fluid">
<div class="span3"> <div class="span3">
<div class="Lbox"> <div class="Lbox">
@ -18,27 +17,28 @@ $this->headMeta()->appendName('description', mb_substr($this->infos['description
<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'] ?>"><?= $v['title'] ?></a></li> <li <?= $v['ROOTDEEP'] > 0 ? 'style="padding-left:'. (12 * $v['ROOTDEEP']) .'px"':"" ?>><a href="/news/<?= $v['code'] ?>">
<?= $v['title'] ?>
</a></li>
<?php } } ?> <?php } } ?>
</ul> </ul>
</div> </div>
</div> </div><!-- /.span3 -->
<!-- /.span4 -->
<div class="span9"> <div class="span9">
<div class="Lbox"> <div class="Lbox">
<h2 class="box-title"><?php echo $this->info['title'];?></h2> <h2 class="box-title"><?php echo $this->info['title'];?></h2>
<div class="text-left"> <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>
发布时间:<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"> <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']?>">
<?= $v['title']?>
</a>
</div>
<?php } ?> <?php } ?>
<?php }?> <?php }?>
<div class="media"> <div class="media">
<div class="pull-left"> <div class="pull-left">
<?php <?php
if(!empty($this->info['image'])) if(!empty($this->info['image']))
@ -47,15 +47,11 @@ $this->headMeta()->appendName('description', mb_substr($this->infos['description
} }
?> ?>
</div> </div>
<?php echo $this->info['body'];?> </div>
<?php echo $this->info['body'];?>
</div>
</p> </p>
</div> </div>
</div> </div>
<!-- /.span9 --> <!-- /.span9 -->
</div> </div>
<!-- /.row --> <!-- /.row-fluid -->
</div>