mirror of
https://github.com/standardebooks/web.git
synced 2025-07-20 13:24:48 -04:00
Add DateTimeFormat enum
This commit is contained in:
parent
be5574eaec
commit
c35c47b793
18 changed files with 38 additions and 26 deletions
|
@ -30,7 +30,7 @@ print("<?xml version=\"1.0\" encoding=\"utf-8\"?>\n");
|
|||
<subtitle><?= Formatter::EscapeXml($subtitle) ?></subtitle>
|
||||
<? } ?>
|
||||
<icon><?= SITE_URL ?>/images/logo.png</icon>
|
||||
<updated><?= $updated->format('Y-m-d\TH:i:s\Z') ?></updated>
|
||||
<updated><?= $updated->format(Enums\DateTimeFormat::Iso->value) ?></updated>
|
||||
<author>
|
||||
<name>Standard Ebooks</name>
|
||||
<uri><?= SITE_URL ?></uri>
|
||||
|
@ -39,7 +39,7 @@ print("<?xml version=\"1.0\" encoding=\"utf-8\"?>\n");
|
|||
<entry>
|
||||
<title><?= Formatter::EscapeXml($entry->Title) ?></title>
|
||||
<link href="<?= SITE_URL . Formatter::EscapeXml($entry->Url) ?>" rel="<?= Formatter::EscapeXml($entry->Rel) ?>" type="application/atom+xml;profile=opds-catalog;kind=<?= $entry->Type ?>; charset=utf-8"/>
|
||||
<updated><? if($entry->Updated !== null){ ?><?= $entry->Updated->format('Y-m-d\TH:i:s\Z') ?><? } ?></updated>
|
||||
<updated><? if($entry->Updated !== null){ ?><?= $entry->Updated->format(Enums\DateTimeFormat::Iso->value) ?><? } ?></updated>
|
||||
<id><?= Formatter::EscapeXml($entry->Id) ?></id>
|
||||
<content type="text"><?= Formatter::EscapeXml($entry->Description) ?></content>
|
||||
</entry>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue