set the image size

This commit is contained in:
wlx 2013-04-09 13:06:08 +00:00
parent f2349b58a0
commit cc668d75fd
1 changed files with 15 additions and 15 deletions

View File

@ -5,13 +5,13 @@ $this->headTitle()->setSeparator(' - ');
$this->breadcrumb('<a href="/">首页</a>');
$this->breadcrumb('<a href="/archives/">新闻中心</a>');
$this->breadcrumb($this->title);
$this->breadcrumb()->setSeparator(' > ');
$this->breadcrumb()->setSeparator(' > ');
$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,26 +35,26 @@ $this->headLink()->appendStylesheet('/css/mdreview.css');
{
foreach ($this->paginator as $v)
{
$description = "";
$description = "";
if (mb_strlen($v['description'])>160)
{
$description = mb_substr($v['description'],0,160,'utf-8').'...<a href="'.$v['url'].'" class="more">(more)</a>';
}else{
$description = $v['description'];
}
?>
<li class="media">
<?php if(!empty($v['image'])) : ?>
<a class="pull-left" href="#"><img class="media-object" data-src="holder.js/64x64" src="<?php echo $v['image']; ?>"></a>
<?php endif; ?>
}
?>
<li class="media">
<?php if(!empty($v['image'])) : ?>
<a class="pull-left" href="<?php echo $v['url']; ?>"><img class="media-object span2 img-rounded" data-src="holder.js/64x64" src="<?php echo $v['image']; ?>"></a>
<?php endif; ?>
<div class="media-body">
<h4 class="media-heading">
<small>[<?php echo date("Y-m-d",strtotime( $v['ts_published'] )); ?>]</small>
<a href="<?php echo $v['url']; ?>"><?php echo $v['title']; ?></a>
</h4>
<h4 class="media-heading">
<small>[<?php echo date("Y-m-d",strtotime( $v['ts_published'] )); ?>]</small>
<a href="<?php echo $v['url']; ?>"><?php echo $v['title']; ?></a>
</h4>
<p><?php echo $description; ?></p>
</div>
</li>
</li>
<?php
}
}
@ -66,4 +66,4 @@ $this->headLink()->appendStylesheet('/css/mdreview.css');
</ul>
<div class="pagenavi"><?= $this->paginator; ?></div>
</div>
</div>
</div>