|
@@ 290-294 (lines=5) @@
|
| 287 |
|
$news['topic_color'] = '#' . $myts->displayTarea($story->topic_color); |
| 288 |
|
$news['picture'] = XOOPS_URL . '/uploads/news/image/' . $story->picture(); |
| 289 |
|
$news['pictureinfo'] = $story->pictureinfo(); |
| 290 |
|
if ($displayname != 3) { |
| 291 |
|
$news['author'] = sprintf('%s %s', _POSTEDBY, $story->uname()); |
| 292 |
|
} else { |
| 293 |
|
$news['author'] = ''; |
| 294 |
|
} |
| 295 |
|
if ($options[3] > 0) { |
| 296 |
|
$html = $story->nohtml() == 1 ? 0 : 1; |
| 297 |
|
$news['teaser'] = news_truncate_tagsafe($myts->displayTarea($story->hometext(), $html), $options[3] + 3); |
|
@@ 371-375 (lines=5) @@
|
| 368 |
|
$news['picture'] = XOOPS_URL . '/uploads/news/image/' . $story->picture(); |
| 369 |
|
$news['pictureinfo'] = $story->pictureinfo(); |
| 370 |
|
|
| 371 |
|
if ($displayname != 3) { |
| 372 |
|
$news['author'] = sprintf('%s %s', _POSTEDBY, $story->uname()); |
| 373 |
|
} else { |
| 374 |
|
$news['author'] = ''; |
| 375 |
|
} |
| 376 |
|
$news['title_with_link'] = sprintf("<a href='%s'%s>%s</a>", |
| 377 |
|
XOOPS_URL . '/modules/news/article.php?storyid=' . $story->storyid(), $news['infotips'], |
| 378 |
|
$title); |
|
@@ 475-479 (lines=5) @@
|
| 472 |
|
$spotlight['read_more'] = false; |
| 473 |
|
} |
| 474 |
|
|
| 475 |
|
if ($displayname != 3) { |
| 476 |
|
$spotlight['author'] = sprintf('%s %s', _POSTEDBY, $story->uname()); |
| 477 |
|
} else { |
| 478 |
|
$spotlight['author'] = ''; |
| 479 |
|
} |
| 480 |
|
} |
| 481 |
|
$block['spotlight'] = $spotlight; |
| 482 |
|
} else { |
|
@@ 495-499 (lines=5) @@
|
| 492 |
|
$news['picture'] = XOOPS_URL . '/uploads/news/image/' . $story->picture(); |
| 493 |
|
$news['pictureinfo'] = $story->pictureinfo(); |
| 494 |
|
|
| 495 |
|
if ($displayname != 3) { |
| 496 |
|
$news['author'] = sprintf('%s %s', _POSTEDBY, $story->uname()); |
| 497 |
|
} else { |
| 498 |
|
$news['author'] = ''; |
| 499 |
|
} |
| 500 |
|
if ($options[3] > 0) { |
| 501 |
|
$html = $story->nohtml() == 1 ? 0 : 1; |
| 502 |
|
$news['teaser'] = news_truncate_tagsafe($myts->displayTarea($story->hometext(), $html), $options[3] + 3); |
|
@@ 572-576 (lines=5) @@
|
| 569 |
|
// Added, topic's image and description |
| 570 |
|
$spotlight['topic_image'] = XOOPS_URL . '/modules/news/assets/images/topics/' . $spotlightArticle->topic_imgurl(); |
| 571 |
|
$spotlight['topic_description'] = $myts->displayTarea($spotlightArticle->topic_description, 1); |
| 572 |
|
if ($displayname != 3) { |
| 573 |
|
$spotlight['author'] = sprintf('%s %s', _POSTEDBY, $spotlightArticle->uname()); |
| 574 |
|
} else { |
| 575 |
|
$spotlight['author'] = ''; |
| 576 |
|
} |
| 577 |
|
if (strlen(xoops_trim($spotlightArticle->bodytext())) > 0) { |
| 578 |
|
$spotlight['read_more'] = true; |
| 579 |
|
} else { |