From ad3aed389f2e0d69802641f5a5b7c6add73f1ce5 Mon Sep 17 00:00:00 2001 From: vincent-peugnet Date: Wed, 5 Dec 2018 02:40:16 +0100 Subject: templateoption --- app/view/templates/admin.php | 12 ++++++++++ app/view/templates/edit.php | 4 ++-- app/view/templates/editleftbar.php | 46 +++++++++++++++++++++++++++++-------- app/view/templates/editrightbar.php | 2 +- app/view/templates/home.php | 2 +- app/view/templates/layout.php | 7 +++++- 6 files changed, 59 insertions(+), 14 deletions(-) (limited to 'app/view/templates') diff --git a/app/view/templates/admin.php b/app/view/templates/admin.php index 7f94833..5edf262 100644 --- a/app/view/templates/admin.php +++ b/app/view/templates/admin.php @@ -73,6 +73,18 @@ + + + diff --git a/app/view/templates/edit.php b/app/view/templates/edit.php index 18940ff..973317a 100644 --- a/app/view/templates/edit.php +++ b/app/view/templates/edit.php @@ -1,4 +1,4 @@ -layout('layout', ['title' => '✏ '.$art->title(), 'css' => $css . 'edit.css']) ?> +layout('layout', ['title' => '✏ '.$art->title(), 'css' => $css . 'edit.css', 'favicon' => $art->favicon()]) ?> @@ -18,7 +18,7 @@
- insert('editleftbar', ['art' => $art, 'tablist' => $tablist, 'artlist' => $artlist, 'showleftpanel' => $showleftpanel]) ?> + insert('editleftbar', ['art' => $art, 'tablist' => $tablist, 'artlist' => $artlist, 'showleftpanel' => $showleftpanel, 'faviconlist' => $faviconlist]) ?> insert('edittabs', ['tablist' => $tablist, 'opentab' => $art->interface(), 'templates' => $art->template()]) ?> insert('editrightbar', ['art' => $art, 'artlist' => $artlist, 'showrightpanel' => $showrightpanel, 'templates' => $art->template(), 'tagartlist' => $tagartlist, 'lasteditedartlist' => $lasteditedartlist]) ?> diff --git a/app/view/templates/editleftbar.php b/app/view/templates/editleftbar.php index 73468bf..09c13f9 100644 --- a/app/view/templates/editleftbar.php +++ b/app/view/templates/editleftbar.php @@ -25,9 +25,8 @@
- Advanced + Tempalte
-

Template options

+ template()['cssreccursive'] === true ? 'checked' : '' ?>> + +
+
+ template()['cssquickcss'] === true ? 'checked' : '' ?>>
- + template()['externalcss'] === true ? 'checked' : '' ?>>
- - + template()['cssfavicon'] === true ? 'checked' : '' ?>> +
-
- Quick CSS - +
+ Advanced + +
+ + + + + +
+
Help diff --git a/app/view/templates/editrightbar.php b/app/view/templates/editrightbar.php index 26976e8..80a0b02 100644 --- a/app/view/templates/editrightbar.php +++ b/app/view/templates/editrightbar.php @@ -52,7 +52,7 @@
    $id) { - if(!empty($id)) { + if(!empty($id) && !is_bool($id)) { ?>
  • :
  • layout('layout', ['title' => 'home', 'css' => $css . 'home.css']) ?> +layout('layout', ['title' => 'home', 'css' => $css . 'home.css', 'favicon' => '']) ?> diff --git a/app/view/templates/layout.php b/app/view/templates/layout.php index 4131350..e0b2e1c 100644 --- a/app/view/templates/layout.php +++ b/app/view/templates/layout.php @@ -4,7 +4,12 @@ - + + + + + <?= $title ?> -- cgit v1.2.3