|
@@ 280-284 (lines=5) @@
|
| 277 |
|
$news['topic_color'] = '#' . $myts->displayTarea($story->topic_color); |
| 278 |
|
$news['picture'] = XOOPS_URL . '/uploads/news/image/' . $story->picture(); |
| 279 |
|
$news['pictureinfo'] = $story->pictureinfo(); |
| 280 |
|
if ($displayname != 3) { |
| 281 |
|
$news['author'] = sprintf('%s %s', _POSTEDBY, $story->uname()); |
| 282 |
|
} else { |
| 283 |
|
$news['author'] = ''; |
| 284 |
|
} |
| 285 |
|
if ($options[3] > 0) { |
| 286 |
|
$html = $story->nohtml() == 1 ? 0 : 1; |
| 287 |
|
$news['teaser'] = news_truncate_tagsafe($myts->displayTarea($story->hometext(), $html), $options[3] + 3); |
|
@@ 358-362 (lines=5) @@
|
| 355 |
|
$news['picture'] = XOOPS_URL . '/uploads/news/image/' . $story->picture(); |
| 356 |
|
$news['pictureinfo'] = $story->pictureinfo(); |
| 357 |
|
|
| 358 |
|
if ($displayname != 3) { |
| 359 |
|
$news['author'] = sprintf('%s %s', _POSTEDBY, $story->uname()); |
| 360 |
|
} else { |
| 361 |
|
$news['author'] = ''; |
| 362 |
|
} |
| 363 |
|
$news['title_with_link'] = sprintf("<a href='%s'%s>%s</a>", XOOPS_URL . '/modules/news/article.php?storyid=' . $story->storyid(), $news['infotips'], $title); |
| 364 |
|
$block['news'][] = $news; |
| 365 |
|
} |
|
@@ 456-460 (lines=5) @@
|
| 453 |
|
$spotlight['read_more'] = false; |
| 454 |
|
} |
| 455 |
|
|
| 456 |
|
if ($displayname != 3) { |
| 457 |
|
$spotlight['author'] = sprintf('%s %s', _POSTEDBY, $story->uname()); |
| 458 |
|
} else { |
| 459 |
|
$spotlight['author'] = ''; |
| 460 |
|
} |
| 461 |
|
} |
| 462 |
|
$block['spotlight'] = $spotlight; |
| 463 |
|
} else { |
|
@@ 476-480 (lines=5) @@
|
| 473 |
|
$news['picture'] = XOOPS_URL . '/uploads/news/image/' . $story->picture(); |
| 474 |
|
$news['pictureinfo'] = $story->pictureinfo(); |
| 475 |
|
|
| 476 |
|
if ($displayname != 3) { |
| 477 |
|
$news['author'] = sprintf('%s %s', _POSTEDBY, $story->uname()); |
| 478 |
|
} else { |
| 479 |
|
$news['author'] = ''; |
| 480 |
|
} |
| 481 |
|
if ($options[3] > 0) { |
| 482 |
|
$html = $story->nohtml() == 1 ? 0 : 1; |
| 483 |
|
$news['teaser'] = news_truncate_tagsafe($myts->displayTarea($story->hometext(), $html), $options[3] + 3); |
|
@@ 552-556 (lines=5) @@
|
| 549 |
|
// Added, topic's image and description |
| 550 |
|
$spotlight['topic_image'] = XOOPS_URL . '/modules/news/assets/images/topics/' . $spotlightArticle->topic_imgurl(); |
| 551 |
|
$spotlight['topic_description'] = $myts->displayTarea($spotlightArticle->topic_description, 1); |
| 552 |
|
if ($displayname != 3) { |
| 553 |
|
$spotlight['author'] = sprintf('%s %s', _POSTEDBY, $spotlightArticle->uname()); |
| 554 |
|
} else { |
| 555 |
|
$spotlight['author'] = ''; |
| 556 |
|
} |
| 557 |
|
if (strlen(xoops_trim($spotlightArticle->bodytext())) > 0) { |
| 558 |
|
$spotlight['read_more'] = true; |
| 559 |
|
} else { |