From 6272cd1b01ad809599087df5ec0b8661ec10b850 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Lucas?= Date: Sun, 21 Apr 2013 15:00:21 +0200 Subject: [PATCH] Get rid of fancybox completely if not enabled. fixes #50 About.xml is still utf8 but looses it's BOM --- about.xml | 4 +++- base.php | 12 ++++++++++++ index.php | 17 +++++++++++------ 3 files changed, 26 insertions(+), 7 deletions(-) diff --git a/about.xml b/about.xml index 0fbf205..50f2507 100644 --- a/about.xml +++ b/about.xml @@ -1,4 +1,5 @@ -
Authors
+
+
Authors

COPS is developped and maintained by Sébastien Lucas.

@@ -17,4 +18,5 @@

For more info please visit COPS Home Page

You can also check COPS's topic on MobileRead forum.

+
\ No newline at end of file diff --git a/base.php b/base.php index b1a3d38..775c5ca 100644 --- a/base.php +++ b/base.php @@ -339,6 +339,8 @@ class Page return new PageQueryResult ($id, $query, $n); case Base::PAGE_BOOK_DETAIL : return new PageBookDetail ($id, $query, $n); + case Base::PAGE_ABOUT : + return new PageAbout ($id, $query, $n); default: $page = new Page ($id, $query, $n); $page->idPage = "cops:catalog"; @@ -596,6 +598,15 @@ class PageBookDetail extends Page } } +class PageAbout extends Page +{ + public function InitializeContent () + { + $this->title = "About"; + } +} + + abstract class Base { const PAGE_INDEX = "index"; @@ -614,6 +625,7 @@ abstract class Base const PAGE_BOOK_DETAIL = "13"; const PAGE_ALL_CUSTOMS = "14"; const PAGE_CUSTOM_DETAIL = "15"; + const PAGE_ABOUT = "16"; const COMPATIBILITY_XML_ALDIKO = "aldiko"; diff --git a/index.php b/index.php index 2fe42cc..a7ed901 100644 --- a/index.php +++ b/index.php @@ -59,12 +59,16 @@ + + + + " media="screen" />