diff --git a/OPDS_renderer.php b/OPDS_renderer.php index 102826e..d5f752c 100644 --- a/OPDS_renderer.php +++ b/OPDS_renderer.php @@ -83,6 +83,12 @@ class OPDSRenderer self::getXmlStream ()->startElement ("title"); self::getXmlStream ()->text ($page->title); self::getXmlStream ()->endElement (); + if ($page->subtitle != "") + { + self::getXmlStream ()->startElement ("subtitle"); + self::getXmlStream ()->text ($page->subtitle); + self::getXmlStream ()->endElement (); + } self::getXmlStream ()->startElement ("id"); if ($page->idPage) { diff --git a/base.php b/base.php index e884800..7c5f10b 100644 --- a/base.php +++ b/base.php @@ -188,6 +188,7 @@ class EntryBook extends Entry class Page { public $title; + public $subtitle = ""; public $idPage; public $idGet; public $query; @@ -243,6 +244,7 @@ class Page { global $config; $this->title = $config['cops_title_default']; + $this->subtitle = $config['cops_subtitle_default']; array_push ($this->entryArray, Author::getCount()); array_push ($this->entryArray, Serie::getCount()); array_push ($this->entryArray, Tag::getCount()); diff --git a/config_default.php b/config_default.php index fa816ab..8d44f62 100644 --- a/config_default.php +++ b/config_default.php @@ -41,6 +41,10 @@ */ $config['cops_title_default'] = "Sebastien's COPS"; + /* + * Catalog's subtitle + */ + $config['cops_subtitle_default'] = ""; /* * Wich header to use when downloading books outside the web directory