From 886b2673d3a8eb54e4cd8bfe922501024e5f687d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Lucas?= Date: Sun, 7 Jul 2013 10:20:02 +0200 Subject: [PATCH] Fix about if lightbox are disabled. --- getJSON.php | 4 ++++ templates/default/main.html | 8 ++++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/getJSON.php b/getJSON.php index fbf7769..6c8a32c 100644 --- a/getJSON.php +++ b/getJSON.php @@ -93,6 +93,10 @@ $out["abouturl"] = "index.php" . addURLParameter ("?page=16", DB, $database); } + if ($page == Base::PAGE_ABOUT) { + $out ["fullhtml"] = file_get_contents('about.html'); + } + $out ["homeurl"] = "index.php"; if ($page != Base::PAGE_INDEX && !is_null ($database)) $out ["homeurl"] = $out ["homeurl"] . "?" . addURLParameter ("", DB, $database); diff --git a/templates/default/main.html b/templates/default/main.html index a495b3a..5bbaea1 100644 --- a/templates/default/main.html +++ b/templates/default/main.html @@ -1,6 +1,10 @@
-{{? it.page == 13}} - {{#def.bookdetail}} +{{? it.page == 13 || it.page == 16}} + {{? it.page == 13}} + {{#def.bookdetail}} + {{??}} + {{= it.fullhtml}} + {{?}} {{??}} {{~it.entries:entry:i}} {{? it.containsBook == 0}}