diff --git a/book.php b/book.php index 46b528a..84d92a8 100644 --- a/book.php +++ b/book.php @@ -107,7 +107,7 @@ class Book extends Base { $urlParam = $this->getUri (); if (!is_null (GetUrlParam (DB))) $urlParam = addURLParameter ($urlParam, DB, GetUrlParam (DB)); $urlParam = str_replace ("&", "&", $urlParam); - if ($permalink || $config['cops_use_fancyapps'] == 0) { + if ($permalink || getCurrentOption ('use_fancyapps') == 0) { return 'index.php' . $urlParam; } else { return 'bookdetail.php' . $urlParam; diff --git a/customize.php b/customize.php new file mode 100644 index 0000000..8f58dbd --- /dev/null +++ b/customize.php @@ -0,0 +1,92 @@ + + * + */ + + require_once ("config.php"); + require_once ("base.php"); + + + header ("Content-Type:application/xhtml+xml;charset=utf-8"); + + $database = GetUrlParam (DB); + $use_fancybox = ""; + if (getCurrentOption ("use_fancyapps") == 1) { + $use_fancybox = "checked='checked'"; + } +?> + + + + + Customize COPS UI + + + + + " /> + + + +
+
+ + " alt="" /> + + " alt="Settings and menu" /> +
+

Customize COPS UI

+
+
+ +
+
+

Style

+

+
+
+

Use Fancybox

+

/>

+
+
+ + +
+ + diff --git a/images/theme.png b/images/theme.png new file mode 100644 index 0000000..e8f4e8e Binary files /dev/null and b/images/theme.png differ diff --git a/index.php b/index.php index fab6ffb..f2f8c27 100644 --- a/index.php +++ b/index.php @@ -55,7 +55,7 @@ <?php echo htmlspecialchars ($currentPage->title) ?> - + " media="screen" /> @@ -80,7 +80,7 @@ }); }); - + $(".fancycover").fancybox({ 'type' : 'image', prevEffect : 'none', @@ -279,8 +279,11 @@ ?>