mirror of
https://github.com/standardebooks/web.git
synced 2025-07-15 02:46:46 -04:00
Add DateTimeFormat enum
This commit is contained in:
parent
be5574eaec
commit
c35c47b793
18 changed files with 38 additions and 26 deletions
|
@ -10,7 +10,7 @@ use function Safe\preg_replace;
|
|||
<title><?= Formatter::EscapeXml($entry->Title) ?>, by <?= Formatter::EscapeXml(strip_tags($entry->AuthorsHtml)) ?></title>
|
||||
<link><?= SITE_URL . Formatter::EscapeXml($entry->Url) ?></link>
|
||||
<description><?= Formatter::EscapeXml($entry->Description) ?></description>
|
||||
<pubDate><?= $entry->EbookCreated->format('r') ?></pubDate>
|
||||
<pubDate><?= $entry->EbookCreated->format(Enums\DateTimeFormat::Rss->value) ?></pubDate>
|
||||
<guid><?= Formatter::EscapeXml(preg_replace('/^url:/ius', '', $entry->Identifier)) ?></guid>
|
||||
<? foreach($entry->Tags as $tag){ ?>
|
||||
<category domain="https://standardebooks.org/vocab/subjects"><?= Formatter::EscapeXml($tag->Name) ?></category>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue