diff options
author | vincent-peugnet <v.peugnet@free.fr> | 2019-08-08 23:02:03 +0200 |
---|---|---|
committer | vincent-peugnet <v.peugnet@free.fr> | 2019-08-08 23:02:03 +0200 |
commit | ef18c5f848a5e4d1239bdc1d89e0cc9f75a10512 (patch) | |
tree | 23b154c9d71e15c75a201822318eaa66dcefc99e /app/view | |
parent | e75e54d23d262940acd4c7df2a8cc7b7ab1751d5 (diff) | |
download | wcms-ef18c5f848a5e4d1239bdc1d89e0cc9f75a10512.tar.gz wcms-ef18c5f848a5e4d1239bdc1d89e0cc9f75a10512.zip |
feature : terminal style option
+ bug fix : externallinkblank missing underscore
Diffstat (limited to 'app/view')
-rw-r--r-- | app/view/templates/admin.php | 57 | ||||
-rw-r--r-- | app/view/templates/home.php | 3 | ||||
-rw-r--r-- | app/view/templates/layout.php | 14 |
3 files changed, 60 insertions, 14 deletions
diff --git a/app/view/templates/admin.php b/app/view/templates/admin.php index 3eba1c4..c1d7ff4 100644 --- a/app/view/templates/admin.php +++ b/app/view/templates/admin.php @@ -158,6 +158,10 @@ </article> + + + + <article> <h2>CSS</h2> @@ -166,19 +170,48 @@ <textarea name="globalcss" id="globalcss" cols="30" rows="10"><?= $globalcss ?></textarea> <label for="defaultfavicon">Default favicon</label> - <select name="defaultfavicon" id="defaultfavicon"> - <option value="">--no favicon--</option> - <?php - foreach ($faviconlist as $favicon) { - ?> - <option value="<?= $favicon ?>" <?= Config::defaultfavicon() === $favicon ? 'selected' : '' ?>><?= $favicon ?></option> - <?php - } - ?> - </select> + <select name="defaultfavicon" id="defaultfavicon"> + <option value="">--no favicon--</option> + <?php + foreach ($faviconlist as $favicon) { + ?> + <option value="<?= $favicon ?>" <?= Config::defaultfavicon() === $favicon ? 'selected' : '' ?>><?= $favicon ?></option> + <?php + } + ?> + </select> + + </article> + + + + + + + + <article> + + <h2>Interface</h2> + + <p>Set interface Style</p> + + <select name="interfacecss" id="interfacecss"> + <option value="null">--default interface style---</option> + <?php + foreach ($interfacecsslist as $interfacecss) { + ?> + <option value="<?= $interfacecss ?>" <?= $interfacecss === Config::interfacecss() ? 'selected' : '' ?>><?= $interfacecss ?></option> + <?php + } + ?> + </select> </article> + + + + <article> <h2>Tracking</h2> @@ -190,6 +223,10 @@ </article> + + + + <article> <input type="submit" value="Update configuration"> </article> diff --git a/app/view/templates/home.php b/app/view/templates/home.php index 17dfc2d..e41c2cc 100644 --- a/app/view/templates/home.php +++ b/app/view/templates/home.php @@ -43,6 +43,9 @@ <input type="checkbox" name="datecreation" id="datecreation" value="1"> <label for="datecreation">Reset date creation as now</label> </br> + <input type="checkbox" name="author" id="author" value="1"> + <label for="author">Reset author(s) as just you</label> + </br> <input type="checkbox" name="erase" id="erase" value="1"> <label for="erase">Replace if already existing</label> </br> diff --git a/app/view/templates/layout.php b/app/view/templates/layout.php index b054791..3c38be4 100644 --- a/app/view/templates/layout.php +++ b/app/view/templates/layout.php @@ -1,17 +1,23 @@ <!DOCTYPE html> <html> + <head> <meta charset="utf8" /> - + <meta name="viewport" content="width=device-width" /> - <?php if(!empty($favicon)) { + <?php if (!empty($favicon)) { ?> <link rel="shortcut icon" href="<?= Model::faviconpath() . $favicon ?>" type="image/x-icon"> - <?php } elseif(!empty(Config::defaultfavicon())) { ?> + <?php } elseif (!empty(Config::defaultfavicon())) { ?> <link rel="shortcut icon" href="<?= Model::faviconpath() . Config::defaultfavicon() ?>" type="image/x-icon"> <?php } ?> <title><?= $title ?></title> <link rel="stylesheet" href="<?= $css ?>"> + <?php + if (!empty(Config::interfacecss())) { + echo '<link rel="stylesheet" href="' . Model::csspath() . Config::interfacecss() . '">'; + } + ?> <script> // global js vars const basepath = '/<?= Config::basepath() ?>/'; @@ -21,7 +27,7 @@ -<?=$this->section('page')?> +<?= $this->section('page') ?> </html>
\ No newline at end of file |