Authored by tmq

bug

... ... @@ -801,7 +801,7 @@ define('yohood', function(require, exports) {
$.each(data.data.recom, function(i, v) {
isVideo = (v.tag == '视频') ? 1 : 0;
isTitleStyle = (v.main_title_type == 1) ? 1 : 0;
recom += template(tools.limitWords(v.title, 38), common.getImages(v.thumb, '0230x0130', 'blogimg', '1'),
recom += template(tools.limitWords(v.title, 55), common.getImages(v.thumb, '0230x0130', 'blogimg', '1'),
'/news/detail/id/' + v.id, isVideo, isTitleStyle, v.title, '', v.create_time);
});
... ...
<?php if(!empty($list)):?>
<?php foreach($list as $news):
$description = Lib_Utils_StringHelper::substr_full_en(Lib_Utils_StringHelper::stripTags($news['content']), 120);
$description = Lib_Utils_StringHelper::substr_full_en(Lib_Utils_StringHelper::stripTags($news['content']), 142);
$height = $width = 0;
$thumb_size = json_decode($news['thumb_size'], true);
$video = isset($video)? $video : 0;
... ... @@ -51,7 +51,7 @@ $width = 342;
<h2 <?php echo $news['main_title_type'] == 1 ? 'class="volupia"':'';?> style="white-space:nowrap;text-overflow:ellipsis;overflow: hidden;">
<a href="<?php echo url('news/detail' ,array('id' => $news['id']))?>" target="_blank">
<?php
echo Lib_Utils_StringHelper::substr_full_en(Lib_Utils_StringHelper::stripTags($news['title']), 120);
echo $news['title'];
?>
</a>
</h2>
... ...