From 0f4ef8de02765e25d3ed9ae241eb56b1c83bc1ba Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Lucas?= Date: Thu, 24 Jul 2014 15:22:17 +0200 Subject: [PATCH] Add a tricky way of enabling bootstrap theme --- base.php | 8 +++++++- templates/bootstrap/header.html | 3 +++ 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/base.php b/base.php index 6bf1dde..156d75f 100644 --- a/base.php +++ b/base.php @@ -72,6 +72,9 @@ function getCurrentOption ($option) { if ($option == "style") { return "default"; } + if ($option == "template") { + return "default"; + } if (isset($config ["cops_" . $option])) { return $config ["cops_" . $option]; @@ -85,7 +88,7 @@ function getCurrentCss () { } function getCurrentTemplate () { - return "default"; + return getCurrentOption ("template"); } function getUrlWithVersion ($url) { @@ -1074,6 +1077,9 @@ class PageCustomize extends Page "language"); $content = ""; + array_push ($this->entryArray, new Entry ("Template", "", + "Click to switch to Bootstrap", "text", + array ())); if (!preg_match("/(Kobo|Kindle\/3.0|EBRD1101)/", $_SERVER['HTTP_USER_AGENT'])) { $content .= '