Showing
2 changed files
with
3 additions
and
3 deletions
@@ -801,7 +801,7 @@ define('yohood', function(require, exports) { | @@ -801,7 +801,7 @@ define('yohood', function(require, exports) { | ||
801 | $.each(data.data.recom, function(i, v) { | 801 | $.each(data.data.recom, function(i, v) { |
802 | isVideo = (v.tag == '视频') ? 1 : 0; | 802 | isVideo = (v.tag == '视频') ? 1 : 0; |
803 | isTitleStyle = (v.main_title_type == 1) ? 1 : 0; | 803 | isTitleStyle = (v.main_title_type == 1) ? 1 : 0; |
804 | - recom += template(tools.limitWords(v.title, 38), common.getImages(v.thumb, '0230x0130', 'blogimg', '1'), | 804 | + recom += template(tools.limitWords(v.title, 55), common.getImages(v.thumb, '0230x0130', 'blogimg', '1'), |
805 | '/news/detail/id/' + v.id, isVideo, isTitleStyle, v.title, '', v.create_time); | 805 | '/news/detail/id/' + v.id, isVideo, isTitleStyle, v.title, '', v.create_time); |
806 | }); | 806 | }); |
807 | 807 |
1 | <?php if(!empty($list)):?> | 1 | <?php if(!empty($list)):?> |
2 | <?php foreach($list as $news): | 2 | <?php foreach($list as $news): |
3 | -$description = Lib_Utils_StringHelper::substr_full_en(Lib_Utils_StringHelper::stripTags($news['content']), 120); | 3 | +$description = Lib_Utils_StringHelper::substr_full_en(Lib_Utils_StringHelper::stripTags($news['content']), 142); |
4 | $height = $width = 0; | 4 | $height = $width = 0; |
5 | $thumb_size = json_decode($news['thumb_size'], true); | 5 | $thumb_size = json_decode($news['thumb_size'], true); |
6 | $video = isset($video)? $video : 0; | 6 | $video = isset($video)? $video : 0; |
@@ -51,7 +51,7 @@ $width = 342; | @@ -51,7 +51,7 @@ $width = 342; | ||
51 | <h2 <?php echo $news['main_title_type'] == 1 ? 'class="volupia"':'';?> style="white-space:nowrap;text-overflow:ellipsis;overflow: hidden;"> | 51 | <h2 <?php echo $news['main_title_type'] == 1 ? 'class="volupia"':'';?> style="white-space:nowrap;text-overflow:ellipsis;overflow: hidden;"> |
52 | <a href="<?php echo url('news/detail' ,array('id' => $news['id']))?>" target="_blank"> | 52 | <a href="<?php echo url('news/detail' ,array('id' => $news['id']))?>" target="_blank"> |
53 | <?php | 53 | <?php |
54 | - echo Lib_Utils_StringHelper::substr_full_en(Lib_Utils_StringHelper::stripTags($news['title']), 120); | 54 | + echo $news['title']; |
55 | ?> | 55 | ?> |
56 | </a> | 56 | </a> |
57 | </h2> | 57 | </h2> |
-
Please register or login to post a comment