aboutsummaryrefslogtreecommitdiff
path: root/formats/HtmlFormat.php
diff options
context:
space:
mode:
authorGravatar logmanoriginal <log.man@gmx.de> 2016-08-09 17:12:28 +0200
committerGravatar logmanoriginal <log.man@gmx.de> 2016-08-09 17:12:28 +0200
commit606e756bc12c51d70f23bcd11df88fe7311827a7 (patch)
tree5120a25222ec8f2c1b4205e157445b807d070def /formats/HtmlFormat.php
parent0d94f1fe0eddc5a4903c4253e44c2c649516fc05 (diff)
downloadrss-bridge-606e756bc12c51d70f23bcd11df88fe7311827a7.tar.gz
rss-bridge-606e756bc12c51d70f23bcd11df88fe7311827a7.tar.zst
rss-bridge-606e756bc12c51d70f23bcd11df88fe7311827a7.zip
formats: Use same general entity generation order
Diffstat (limited to 'formats/HtmlFormat.php')
-rw-r--r--formats/HtmlFormat.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/formats/HtmlFormat.php b/formats/HtmlFormat.php
index 20d49014..6c75a8e7 100644
--- a/formats/HtmlFormat.php
+++ b/formats/HtmlFormat.php
@@ -12,14 +12,14 @@ class HtmlFormat extends FormatAbstract{
$extraInfos = $this->getExtraInfos();
$title = htmlspecialchars($extraInfos['name']);
$uri = htmlspecialchars($extraInfos['uri']);
- $atomquery = str_replace('format=HtmlFormat', 'format=AtomFormat', htmlentities($_SERVER['QUERY_STRING']));
+ $atomquery = str_replace('format=HtmlFormat', 'format=AtomFormat', htmlentities($_SERVER['QUERY_STRING']));
$entries = '';
foreach($this->getDatas() as $data){
- $entryUri = is_null($data->uri) ? $uri : $data->uri;
+ $entryAuthor = is_null($data->author) ? '' : '<br /><p class="author">by: ' . $data->author . '</p>';
$entryTitle = is_null($data->title) ? '' : $this->sanitizeHtml(strip_tags($data->title));
+ $entryUri = is_null($data->uri) ? $uri : $data->uri;
$entryTimestamp = is_null($data->timestamp) ? '' : '<time datetime="' . date(DATE_ATOM, $data->timestamp) . '">' . date(DATE_ATOM, $data->timestamp) . '</time>';
- $entryAuthor = is_null($data->author) ? '' : '<br /><p class="author">by: ' . $data->author . '</p>';
$entryContent = is_null($data->content) ? '' : '<div class="content">' . $this->sanitizeHtml($data->content). '</div>';
$entries .= <<<EOD