set the image size
This commit is contained in:
parent
f2349b58a0
commit
cc668d75fd
|
@ -5,13 +5,13 @@ $this->headTitle()->setSeparator(' - ');
|
||||||
$this->breadcrumb('<a href="/">首页</a>');
|
$this->breadcrumb('<a href="/">首页</a>');
|
||||||
$this->breadcrumb('<a href="/archives/">新闻中心</a>');
|
$this->breadcrumb('<a href="/archives/">新闻中心</a>');
|
||||||
$this->breadcrumb($this->title);
|
$this->breadcrumb($this->title);
|
||||||
$this->breadcrumb()->setSeparator(' > ');
|
$this->breadcrumb()->setSeparator(' > ');
|
||||||
$this->headLink()->appendStylesheet('/css/mdreview.css');
|
$this->headLink()->appendStylesheet('/css/mdreview.css');
|
||||||
?>
|
?>
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="span3">
|
<div class="span3">
|
||||||
<div class="bs-review-nav sidebar-nav">
|
<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>
|
<li><a href="/archives"><i class="icon-chevron-right"></i>新闻中心</a></li>
|
||||||
<?php
|
<?php
|
||||||
if(count($this->types))
|
if(count($this->types))
|
||||||
|
@ -35,26 +35,26 @@ $this->headLink()->appendStylesheet('/css/mdreview.css');
|
||||||
{
|
{
|
||||||
foreach ($this->paginator as $v)
|
foreach ($this->paginator as $v)
|
||||||
{
|
{
|
||||||
$description = "";
|
$description = "";
|
||||||
if (mb_strlen($v['description'])>160)
|
if (mb_strlen($v['description'])>160)
|
||||||
{
|
{
|
||||||
$description = mb_substr($v['description'],0,160,'utf-8').'...<a href="'.$v['url'].'" class="more">(more)</a>';
|
$description = mb_substr($v['description'],0,160,'utf-8').'...<a href="'.$v['url'].'" class="more">(more)</a>';
|
||||||
}else{
|
}else{
|
||||||
$description = $v['description'];
|
$description = $v['description'];
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<li class="media">
|
<li class="media">
|
||||||
<?php if(!empty($v['image'])) : ?>
|
<?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>
|
<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; ?>
|
<?php endif; ?>
|
||||||
<div class="media-body">
|
<div class="media-body">
|
||||||
<h4 class="media-heading">
|
<h4 class="media-heading">
|
||||||
<small>[<?php echo date("Y-m-d",strtotime( $v['ts_published'] )); ?>]</small>
|
<small>[<?php echo date("Y-m-d",strtotime( $v['ts_published'] )); ?>]</small>
|
||||||
<a href="<?php echo $v['url']; ?>"><?php echo $v['title']; ?></a>
|
<a href="<?php echo $v['url']; ?>"><?php echo $v['title']; ?></a>
|
||||||
</h4>
|
</h4>
|
||||||
<p><?php echo $description; ?></p>
|
<p><?php echo $description; ?></p>
|
||||||
</div>
|
</div>
|
||||||
</li>
|
</li>
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -66,4 +66,4 @@ $this->headLink()->appendStylesheet('/css/mdreview.css');
|
||||||
</ul>
|
</ul>
|
||||||
<div class="pagenavi"><?= $this->paginator; ?></div>
|
<div class="pagenavi"><?= $this->paginator; ?></div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in New Issue