From f9de80a72443af9d2e2951ba06d877bd8f6a188f Mon Sep 17 00:00:00 2001 From: filip Date: Sun, 27 Dec 2015 19:27:37 +0100 Subject: improved feed presentation --- lib/news.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib') 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('
  • %s%s %s%s
  • ', - $discrete_title, $d['link'], $title, $date_separator, news_date($d['date'], $locale)); + $s .= sprintf('
  • %s%s%s %s%s
  • ', + $discrete_title, $d['link'], $source, $title, $date_separator, news_date($d['date'], $locale)); $discrete_title = null; } $s .= ''; if (is_null($date_separator)) { - $header = sprintf('

    %s%s

    ', $link, $news_title, $source); + $header = sprintf('

    %s

    ', $link, $news_title); } $s = $header . $s; -- cgit v1.2.1