diff --git a/lib/Constants.php b/lib/Constants.php index 21c21f13..d98fad2c 100644 --- a/lib/Constants.php +++ b/lib/Constants.php @@ -78,6 +78,8 @@ const PAYMENT_CHANNEL_FA = 0; const FA_FEE_PERCENT = 0.87; +const SE_SUBJECTS = ['Adventure', 'Autobiography', 'Biography', 'Children’s', 'Comedy', 'Drama', 'Fantasy', 'Fiction', 'Horror', 'Memoir', 'Mystery', 'Nonfiction', 'Philosophy', 'Poetry', 'Satire', 'Science Fiction', 'Shorts', 'Spirituality', 'Tragedy', 'Travel']; + define('PD_YEAR', intval(gmdate('Y')) - 96); define('PD_STRING', 'January 1, ' . (PD_YEAR + 1)); diff --git a/www/atom/index.php b/www/atom/index.php new file mode 100644 index 00000000..bc59ef36 --- /dev/null +++ b/www/atom/index.php @@ -0,0 +1,36 @@ + 'Atom Ebook Feeds', 'description' => 'A list of available Atom 1.0 feeds of Standard Ebooks ebooks.']) ?> +
+
+

Atom 1.0 Feeds

+

Atom feeds can be read by one of the many RSS clients available for download, like Thunderbird. They contain more information than regular RSS feeds. Most RSS clients can read both Atom and RSS feeds.

+

Note that some RSS readers may show these feeds ordered by when an ebook was last updated, even though the feeds are ordered by when an ebook was first released. You should be able to change the sort order in your RSS reader.

+ +
+

Ebooks by subject

+
    + +
  • +

    +

    +

    /atom/subjects/

    +
  • + +
+
+
+
+ diff --git a/www/feeds/index.php b/www/feeds/index.php index ac481ad2..8af36544 100644 --- a/www/feeds/index.php +++ b/www/feeds/index.php @@ -8,9 +8,7 @@ require_once('Core.php'); // It also displays the feed in a browser so we can style it with XSLT. // This is the same for Atom/OPDS (whose de jure mime type is `application/atom+xml`). -$subjects = ["Adventure", "Autobiography", "Biography", "Children’s", "Comedy", "Drama", "Fantasy", "Fiction", "Horror", "Memoir", "Mystery", "Nonfiction", "Philosophy", "Poetry", "Satire", "Science Fiction", "Shorts", "Spirituality", "Tragedy", "Travel"]; - -?> 'A list of available feeds of Standard Ebooks ebooks.']) ?> +?> 'Ebook Feeds', 'description' => 'A list of available feeds of Standard Ebooks ebooks.']) ?>

Ebook Feeds

@@ -55,7 +53,7 @@ $subjects = ["Adventure", "Autobiography", "Biography", "Children’s", "Comedy"

Ebooks by subject

    - +
  • @@ -83,7 +81,7 @@ $subjects = ["Adventure", "Autobiography", "Biography", "Children’s", "Comedy"

    Ebooks by subject

      - +
    • diff --git a/www/rss/index.php b/www/rss/index.php new file mode 100644 index 00000000..0b5a23db --- /dev/null +++ b/www/rss/index.php @@ -0,0 +1,35 @@ + 'RSS Ebook Feeds', 'description' => 'A list of available RSS 2.0 feeds of Standard Ebooks ebooks.']) ?> +
      +
      +

      RSS 2.0 feeds

      +

      RSS feeds are an alternative to Atom feeds. They contain less information than Atom feeds, but might be better supported by some RSS readers.

      +
        +
      • +

        New releases

        +

        /rss/new-releases

        +

        The thirty latest Standard Ebooks, most-recently-released first.

        +
      • +
      • +

        All ebooks

        +

        /rss/all

        +

        All Standard Ebooks, most-recently-released first.

        +
      • +
      +
      +

      Ebooks by subject

      +
        + +
      • +

        +

        +

        /rss/subjects/

        +
      • + +
      +
      +
      +
      +