Authored by whb

修改bug

... ... @@ -732,6 +732,7 @@ class Lib_Utils_StringHelper
{
$chars = $string;
$tmp = $i = $n = $m = $l = 0;
$length /= 2;
if (mb_strwidth ( $string , 'UTF-8' ) <= $length)
return $string;
do
... ...
... ... @@ -19,7 +19,7 @@
<div class="post-list main-layout">
<div class="layout-item tiled">
<div class="image-box">
<a href="<?php echo url('news/detail',array('id' => $val['id']))?>" title="<?php echo $val['title']?>">
<a href="<?php echo url('news/detail',array('id' => $val['id']))?>" title="<?php echo $val['title']?>" target="_blank">
<img src="<?php echo Lib_Images::getImageUrl($val['thumb'],'0230x0230','fragmentimg');?>" alt="" style="height:230px;width:230px;">
<?php if(trim($val['tag']) == '视频'):?>
<i class="play-icon"></i>
... ... @@ -28,7 +28,7 @@
</div>
<div class="content">
<h2 <?php echo $val['main_title_type'] == 1 ? 'class="volupia"':'';?>>
<a href="<?php echo url('news/detail',array('id' => $val['id']))?>">
<a href="<?php echo url('news/detail',array('id' => $val['id']))?>" target="_blank">
<?php echo Util_StringHelper::substr_cn($val['title'], 46);?>
</a>
</h2>
... ...
<?php foreach($list as $news):
$title = Util_StringHelper::substr_cn($news['title'], 90);
$description = Lib_Utils_StringHelper::substr_full_en(Lib_Utils_StringHelper::stripTags($news['content']), 40);
$description = Lib_Utils_StringHelper::substr_full_en(Lib_Utils_StringHelper::stripTags($news['content']), 80);
$height = $width = 0;
$thumb_size = json_decode($news['thumb_size'], true);
if ($news['thumb'])
... ...
<?php foreach($list as $news):
$title = Util_StringHelper::substr_cn($news['title'], 90);
$description = Lib_Utils_StringHelper::substr_full_en(Lib_Utils_StringHelper::stripTags($news['content']), 36);
$description = Lib_Utils_StringHelper::substr_full_en(Lib_Utils_StringHelper::stripTags($news['content']), 72);
$thumb_size = json_decode($news['thumb_size'], true);
if(empty($news['client_thumb']))
{
... ...