From d79366f479eb345eff07581987fee1bfbb34a9b2 Mon Sep 17 00:00:00 2001 From: logmanoriginal Date: Tue, 9 Aug 2016 17:17:37 +0200 Subject: [PATCH] [HtmlFormat] Add button for MRSS feed --- formats/HtmlFormat.php | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/formats/HtmlFormat.php b/formats/HtmlFormat.php index 6c75a8e..19b7702 100644 --- a/formats/HtmlFormat.php +++ b/formats/HtmlFormat.php @@ -13,6 +13,7 @@ class HtmlFormat extends FormatAbstract{ $title = htmlspecialchars($extraInfos['name']); $uri = htmlspecialchars($extraInfos['uri']); $atomquery = str_replace('format=HtmlFormat', 'format=AtomFormat', htmlentities($_SERVER['QUERY_STRING'])); + $mrssquery = str_replace('format=HtmlFormat', 'format=MrssFormat', htmlentities($_SERVER['QUERY_STRING'])); $entries = ''; foreach($this->getDatas() as $data){ @@ -24,10 +25,10 @@ class HtmlFormat extends FormatAbstract{ $entries .= << -

{$entryTitle}

- {$entryTimestamp} - {$entryAuthor} - {$entryContent} +

{$entryTitle}

+ {$entryTimestamp} + {$entryAuthor} + {$entryContent} EOD; @@ -39,14 +40,18 @@ EOD; - - {$title} - - + + {$title} + + -

{$title}

- +

{$title}

+ {$entries}