| @@ 63-65 (lines=3) @@ | ||
| 60 |     foreach ($stories as $story) { | 
                                |
| 61 | $news = array();  | 
                                |
| 62 | $title = $story->title();  | 
                                |
| 63 |         if (strlen($title) > $options[2]) { | 
                                |
| 64 | $title = xoops_substr($title, 0, $options[2] + 3);  | 
                                |
| 65 | }  | 
                                |
| 66 | $news['title'] = $title;  | 
                                |
| 67 | $news['id'] = $story->storyid();  | 
                                |
| 68 | $news['date'] = formatTimestamp($story->published(), $dateformat);  | 
                                |
| @@ 276-278 (lines=3) @@ | ||
| 273 |                 foreach ($stories as $key => $story) { | 
                                |
| 274 | $news = array();  | 
                                |
| 275 | $title = $story->title();  | 
                                |
| 276 |                     if (strlen($title) > $options[2]) { | 
                                |
| 277 | $title = xoops_substr($title, 0, $options[2] + 3);  | 
                                |
| 278 | }  | 
                                |
| 279 | $news['title'] = $title;  | 
                                |
| 280 | $news['id'] = $story->storyid();  | 
                                |
| 281 | $news['date'] = formatTimestamp($story->published(), $dateformat);  | 
                                |
| @@ 426-428 (lines=3) @@ | ||
| 423 |         foreach ($stories as $key => $story) { | 
                                |
| 424 | $news = array();  | 
                                |
| 425 | $title = $story->title();  | 
                                |
| 426 |             if (strlen($title) > $options[2]) { | 
                                |
| 427 | $title = xoops_substr($title, 0, $options[2] + 3);  | 
                                |
| 428 | }  | 
                                |
| 429 | ||
| 430 | //if spotlight is enabled and this is either the first article or the selected one  | 
                                |
| 431 | if (($options[5] == 0) && ($options[4] == 1)  | 
                                |