|
@@ 266-271 (lines=6) @@
|
| 263 |
|
$spotlight['author_id'] = $tmpstory->uid(); |
| 264 |
|
|
| 265 |
|
// Create the summary table under the spotlight text |
| 266 |
|
if (isset($options[14]) && $options[14] == 0) { // Use all topics |
| 267 |
|
$stories = NewsStory::getAllPublished($options[1], 0, $restricted, 0, 1, true, $options[0]); |
| 268 |
|
} else { // Use some topics |
| 269 |
|
$topics = array_slice($options, 14); |
| 270 |
|
$stories = NewsStory::getAllPublished($options[1], 0, $restricted, $topics, 1, true, $options[0]); |
| 271 |
|
} |
| 272 |
|
if (count($stories) > 0) { |
| 273 |
|
foreach ($stories as $key => $story) { |
| 274 |
|
$news = array(); |
|
@@ 411-416 (lines=6) @@
|
| 408 |
|
} |
| 409 |
|
} else { // ************************ Classical view ************************************************************************************************************** |
| 410 |
|
$tmpstory = new NewsStory; |
| 411 |
|
if (isset($options[14]) && $options[14] == 0) { |
| 412 |
|
$stories = NewsStory::getAllPublished($options[1], 0, $restricted, 0, 1, true, $options[0]); |
| 413 |
|
} else { |
| 414 |
|
$topics = array_slice($options, 14); |
| 415 |
|
$stories = NewsStory::getAllPublished($options[1], 0, $restricted, $topics, 1, true, $options[0]); |
| 416 |
|
} |
| 417 |
|
|
| 418 |
|
if (!count($stories)) { |
| 419 |
|
return ''; |