forked from blallo/rss-bridge
Core: add author to HTML output format
This commit is contained in:
parent
85ebb70b74
commit
372ddf2792
1 changed files with 3 additions and 1 deletions
|
@ -19,13 +19,15 @@ class HtmlFormat extends FormatAbstract{
|
||||||
$entryUri = is_null($data->uri) ? $uri : $data->uri;
|
$entryUri = is_null($data->uri) ? $uri : $data->uri;
|
||||||
$entryTitle = is_null($data->title) ? '' : $this->sanitizeHtml(strip_tags($data->title));
|
$entryTitle = is_null($data->title) ? '' : $this->sanitizeHtml(strip_tags($data->title));
|
||||||
$entryTimestamp = is_null($data->timestamp) ? '' : '<small><time datetime="' . date(DATE_ATOM, $data->timestamp) . '">' . date(DATE_ATOM, $data->timestamp) . '</time></small>';
|
$entryTimestamp = is_null($data->timestamp) ? '' : '<small><time datetime="' . date(DATE_ATOM, $data->timestamp) . '">' . date(DATE_ATOM, $data->timestamp) . '</time></small>';
|
||||||
|
$entryAuthor = is_null($data->author) ? '' : '<br><small>by: ' . $data->author . '</small>';
|
||||||
$entryContent = is_null($data->content) ? '' : '<p>' . $this->sanitizeHtml($data->content). '</p>';
|
$entryContent = is_null($data->content) ? '' : '<p>' . $this->sanitizeHtml($data->content). '</p>';
|
||||||
$entries .= <<<EOD
|
$entries .= <<<EOD
|
||||||
|
|
||||||
<div class="feeditem">
|
<div class="feeditem">
|
||||||
<h2><a href="{$entryUri}">{$entryTitle}</a></h2>
|
<h2><a href="{$entryUri}">{$entryTitle}</a></h2>
|
||||||
{$entryTimestamp}
|
{$entryTimestamp}
|
||||||
{$entryContent}
|
{$entryAuthor}
|
||||||
|
{$entryContent}
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
EOD;
|
EOD;
|
||||||
|
|
Loading…
Reference in a new issue