|
@@ 225-229 (lines=5) @@
|
| 222 |
|
$spotlight['hits'] = $tmpstory->counter(); |
| 223 |
|
$spotlight['rating'] = number_format($tmpstory->rating(), 2); |
| 224 |
|
$spotlight['votes'] = $tmpstory->votes(); |
| 225 |
|
if (strlen(xoops_trim($tmpstory->bodytext())) > 0) { |
| 226 |
|
$spotlight['read_more'] = true; |
| 227 |
|
} else { |
| 228 |
|
$spotlight['read_more'] = false; |
| 229 |
|
} |
| 230 |
|
|
| 231 |
|
$spotlight['readmore'] = sprintf("<a href='%s'>%s</a>", XOOPS_URL . '/modules/news/article.php?storyid=' . $tmpstory->storyid(), _MB_READMORE); |
| 232 |
|
$spotlight['title_with_link'] = sprintf("<a href='%s'>%s</a>", XOOPS_URL . '/modules/news/article.php?storyid=' . $tmpstory->storyid(), $tmpstory->title()); |
|
@@ 450-454 (lines=5) @@
|
| 447 |
|
// Added, topic's image and description |
| 448 |
|
$spotlight['topic_image'] = XOOPS_URL . '/modules/news/assets/images/topics/' . $story->topic_imgurl(); |
| 449 |
|
$spotlight['topic_description'] = $myts->displayTarea($story->topic_description, 1); |
| 450 |
|
if (strlen(xoops_trim($story->bodytext())) > 0) { |
| 451 |
|
$spotlight['read_more'] = true; |
| 452 |
|
} else { |
| 453 |
|
$spotlight['read_more'] = false; |
| 454 |
|
} |
| 455 |
|
|
| 456 |
|
if ($displayname != 3) { |
| 457 |
|
$spotlight['author'] = sprintf('%s %s', _POSTEDBY, $story->uname()); |
|
@@ 557-561 (lines=5) @@
|
| 554 |
|
} else { |
| 555 |
|
$spotlight['author'] = ''; |
| 556 |
|
} |
| 557 |
|
if (strlen(xoops_trim($spotlightArticle->bodytext())) > 0) { |
| 558 |
|
$spotlight['read_more'] = true; |
| 559 |
|
} else { |
| 560 |
|
$spotlight['read_more'] = false; |
| 561 |
|
} |
| 562 |
|
$block['spotlight'] = $spotlight; |
| 563 |
|
} |
| 564 |
|
} |