diff options
author | filip <filip.komar@gmail.com> | 2015-12-27 19:27:37 +0100 |
---|---|---|
committer | filip <filip.komar@gmail.com> | 2015-12-27 19:27:37 +0100 |
commit | f9de80a72443af9d2e2951ba06d877bd8f6a188f (patch) | |
tree | 941ff7b475ac15937a28f875a3423e2259f0e732 /lib/news.php | |
parent | 13245808535022957688b90aade8e4f3e68d09a3 (diff) | |
download | www-f9de80a72443af9d2e2951ba06d877bd8f6a188f.tar www-f9de80a72443af9d2e2951ba06d877bd8f6a188f.tar.gz www-f9de80a72443af9d2e2951ba06d877bd8f6a188f.tar.bz2 www-f9de80a72443af9d2e2951ba06d877bd8f6a188f.tar.xz www-f9de80a72443af9d2e2951ba06d877bd8f6a188f.zip |
improved feed presentation
Diffstat (limited to 'lib/news.php')
-rw-r--r-- | lib/news.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/news.php b/lib/news.php index 90effbb22..601785770 100644 --- a/lib/news.php +++ b/lib/news.php @@ -136,7 +136,7 @@ function show_feed($locale, $news_title, $link, $feed, $count = 5, $skip = null, if ($split && strpos($d['title'], ') : ') !== false) { $title = explode(') : ', $d['title']); - $source = ' / ' . array_shift($title) . ')'; + $source = array_shift($title) . '): '; $source = (is_null($date_separator) ? $source : null); $title = implode(' : ', $title); } else { @@ -144,14 +144,14 @@ function show_feed($locale, $news_title, $link, $feed, $count = 5, $skip = null, $source = null; } - $s .= sprintf('<li>%s<a href="%s">%s</a> %s<span class="dt">%s</span></li>', - $discrete_title, $d['link'], $title, $date_separator, news_date($d['date'], $locale)); + $s .= sprintf('<li>%s<a href="%s">%s%s</a> %s<span class="dt">%s</span></li>', + $discrete_title, $d['link'], $source, $title, $date_separator, news_date($d['date'], $locale)); $discrete_title = null; } $s .= '</ul>'; if (is_null($date_separator)) { - $header = sprintf('<h2><a href="%s">%s%s</a></h2>', $link, $news_title, $source); + $header = sprintf('<h2><a href="%s">%s</a></h2>', $link, $news_title); } $s = $header . $s; |