From 1ae07cd226f7526d10ecc6dc75e410d036b4a4ef Mon Sep 17 00:00:00 2001 From: filip Date: Tue, 28 Apr 2015 21:41:11 +0200 Subject: adding blog link and it's first title to the front page (main index) --- lib/news.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'lib/news.php') diff --git a/lib/news.php b/lib/news.php index 7f8f09a4d..7e01dae21 100644 --- a/lib/news.php +++ b/lib/news.php @@ -95,10 +95,11 @@ function get_feed($url, $count = 5, $cache_timeout = 5) * @param integer $count how many items to return * @param string $skip url whose element we want to skip (why?) * @param boolean split title that has been built by aggregator + * @param string $prefix discrete title * * @return string */ -function show_feed($locale, $title, $link, $feed, $count = 5, $skip = null, $split = false) { +function show_feed($locale, $title, $link, $feed, $count = 5, $skip = null, $split = false, $prefix = null) { if (!is_null($skip)) $count += 5; @@ -123,8 +124,9 @@ function show_feed($locale, $title, $link, $feed, $count = 5, $skip = null, $spl $source = null; } - $s .= sprintf('
  • %s %s%s
  • ', - $d['link'], $title, news_date($d['date'], $locale), $source); + $s .= sprintf('
  • %s%s %s%s
  • ', + $prefix, $d['link'], $title, news_date($d['date'], $locale), $source); + $prefix = null; } $s .= ''; echo $s; -- cgit v1.2.1