mirror of
https://github.com/standardebooks/web.git
synced 2025-07-19 21:04:49 -04:00
Add collections and authors RSS/Atom/OPDS feeds
This commit is contained in:
parent
e19847adac
commit
05e0f77b45
19 changed files with 280 additions and 142 deletions
|
@ -8,7 +8,7 @@ require_once('Core.php');
|
|||
<p>RSS feeds are the predecessors of <a href="/feeds/atom">Atom feeds</a>. They contain less information than Atom feeds, but might be better supported by some news readers.</p>
|
||||
<?= Template::FeedHowTo() ?>
|
||||
<section id="general-feeds">
|
||||
<h2>General Feeds</h2>
|
||||
<h2>General feeds</h2>
|
||||
<ul class="feed">
|
||||
<li>
|
||||
<p><a href="/feeds/rss/new-releases">New releases</a> (Public)</p>
|
||||
|
@ -22,15 +22,18 @@ require_once('Core.php');
|
|||
</li>
|
||||
</ul>
|
||||
</section>
|
||||
<section id="ebooks-by-subject">
|
||||
<h2>Ebooks by subject</h2>
|
||||
<section id="ebooks-by-collection">
|
||||
<h2>Feeds by topic</h2>
|
||||
<ul class="feed">
|
||||
<? foreach(SE_SUBJECTS as $subject){ ?>
|
||||
<li>
|
||||
<p><a href="/feeds/rss/subjects/<?= Formatter::MakeUrlSafe($subject) ?>"><?= Formatter::ToPlainText($subject) ?></a></p>
|
||||
<p class="url"><?= SITE_URL ?>/feeds/rss/subjects/<?= Formatter::MakeUrlSafe($subject) ?></p>
|
||||
<p><a href="/feeds/rss/authors">Feeds by author</a></p>
|
||||
</li>
|
||||
<li>
|
||||
<p><a href="/feeds/rss/collections">Feeds by collection</a></p>
|
||||
</li>
|
||||
<li>
|
||||
<p><a href="/feeds/rss/subjects">Feeds by subject</a></p>
|
||||
</li>
|
||||
<? } ?>
|
||||
</ul>
|
||||
</section>
|
||||
</section>
|
||||
|
|
|
@ -16,7 +16,7 @@ catch(\Exception $ex){
|
|||
include(WEB_ROOT . '/404.php');
|
||||
exit();
|
||||
}
|
||||
print("<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<?xml-stylesheet href=\"/feeds/rss/style\" type=\"text/xsl\"?>\n");
|
||||
print("<?xml version=\"1.0\" encoding=\"utf-8\"?>\n<?xml-stylesheet href=\"" . SITE_URL . "/feeds/rss/style\" type=\"text/xsl\"?>\n");
|
||||
?>
|
||||
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:media="http://search.yahoo.com/mrss/" xmlns:opensearch="http://a9.com/-/spec/opensearch/1.1/">
|
||||
<channel>
|
||||
|
|
|
@ -1,22 +0,0 @@
|
|||
<?
|
||||
require_once('Core.php');
|
||||
|
||||
?><?= Template::Header(['title' => 'RSS 2.0 Ebook Feeds by Subject', 'description' => 'A list of available RSS 2.0 feeds of Standard Ebooks ebooks by subject.']) ?>
|
||||
<main>
|
||||
<article>
|
||||
<h1>RSS 2.0 Ebook Feeds by Subject</h1>
|
||||
<?= Template::FeedHowTo() ?>
|
||||
<section id="ebooks-by-subject">
|
||||
<h2>Ebooks by subject</h2>
|
||||
<ul class="feed">
|
||||
<? foreach(SE_SUBJECTS as $subject){ ?>
|
||||
<li>
|
||||
<p><a href="/feeds/rss/subjects/<?= Formatter::MakeUrlSafe($subject) ?>"><?= Formatter::ToPlainText($subject) ?></a></p>
|
||||
<p class="url"><?= SITE_URL ?>/feeds/rss/subjects/<?= Formatter::MakeUrlSafe($subject) ?></p>
|
||||
</li>
|
||||
<? } ?>
|
||||
</ul>
|
||||
</section>
|
||||
</article>
|
||||
</main>
|
||||
<?= Template::Footer() ?>
|
Loading…
Add table
Add a link
Reference in a new issue