修改特色图像的大小

This commit is contained in:
wlx 2013-04-09 13:25:30 +00:00
parent cc668d75fd
commit 485d981439
1 changed files with 8 additions and 8 deletions

View File

@ -10,13 +10,13 @@ $this->breadcrumb($this->infos['title']);
$this->breadcrumb()->setSeparator(' > ');
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'));
$this->headMeta()->appendName('description', mb_substr($this->infos['description'],0,180,'utf-8'));
$this->headLink()->appendStylesheet('/css/mdreview.css');
?>
<div class="row">
<div class="span3">
<div class="bs-review-nav sidebar-nav">
<ul class="nav nav-list bs-review-sidenav">
<ul class="nav nav-list bs-review-sidenav">
<li><a href="/archives"><i class="icon-chevron-right"></i>新闻中心</a></li>
<?php
if(count($this->types))
@ -35,7 +35,7 @@ $this->headLink()->appendStylesheet('/css/mdreview.css');
</div>
<div class="span9" id="archive_body">
<h2 class="text-center"><?php echo $this->infos['title'];?></h2>
<div class="text-center">时间&nbsp;:&nbsp;<?php echo date("Y-m-d H:i",strtotime($this->infos['ts_published']));?>&nbsp;&nbsp;来源&nbsp;:&nbsp;<?php echo $this->infos['source'];?></div>
<div class="text-center">[<?php echo date("Y-m-d",strtotime($this->infos['ts_published']));?>]&nbsp;&nbsp;来源&nbsp;:&nbsp;<?php echo $this->infos['source'];?></div>
<?php if(!empty($this->mdinfo)){?>
<?php foreach($this->mdinfo as $v){ ?>
<div class="info">相关数据:《<a href="/data/<?= $v['uuid']?>"><?= $v['title']?></a></div>
@ -44,15 +44,15 @@ $this->headLink()->appendStylesheet('/css/mdreview.css');
<?php
if(!empty($this->infos['image']))
{
echo ' <a class="pull-left" href="#"><img class="media-object" src="'.$this->infos['image'].'" data-src="holder.js/128x128" /></a>';
echo ' <a class="inline" href="#"><img class="inline span3" src="'.$this->infos['image'].'" data-src="holder.js/128x128" /></a>';
}
?>
<div class="media-body">
<?php echo $this->infos['body'];?>
?>
<div class="pull-left">
<?php echo $this->infos['body'];?>
</div>
</div>
</div>
</div>
<script>
$('.archive_content img').css("max-width",$('#archive_body').width());
</script>
</script>