From fbe5d2beb2bcc7035edc19eb0343f0ee662ba5af Mon Sep 17 00:00:00 2001 From: vincent-peugnet Date: Thu, 13 Dec 2018 00:43:47 +0100 Subject: templateoptions --- app/view/templates/admin.php | 4 +- app/view/templates/edit.php | 4 +- app/view/templates/edithelp.php | 2 +- app/view/templates/editleftbar.php | 111 +++++++++++++++++++++++++++---------- app/view/templates/font.php | 4 +- app/view/templates/home.php | 4 +- app/view/templates/info.php | 16 +++--- app/view/templates/media.php | 8 +-- 8 files changed, 104 insertions(+), 49 deletions(-) (limited to 'app/view/templates') diff --git a/app/view/templates/admin.php b/app/view/templates/admin.php index 8de9bb1..66c7a33 100644 --- a/app/view/templates/admin.php +++ b/app/view/templates/admin.php @@ -8,7 +8,7 @@ insert('backtopbar', ['user' => $user, 'tab' => 'admin']) ?> -
+

Administration

@@ -94,7 +94,7 @@ -
+ stop('page') ?> \ No newline at end of file diff --git a/app/view/templates/edit.php b/app/view/templates/edit.php index 4b2fa77..32de517 100644 --- a/app/view/templates/edit.php +++ b/app/view/templates/edit.php @@ -8,7 +8,7 @@ -
+
@@ -26,7 +26,7 @@ -
+ stop('page') ?> \ No newline at end of file diff --git a/app/view/templates/edithelp.php b/app/view/templates/edithelp.php index fee94c7..d01f3aa 100644 --- a/app/view/templates/edithelp.php +++ b/app/view/templates/edithelp.php @@ -5,7 +5,7 @@
ALT + X : update
ALT + C : display

Markdown

-

The html section use Markdown encoding. Actualy, W is using Michel Fortin's Markdown Extra.

+

The html main use Markdown encoding. Actualy, W is using Michel Fortin's Markdown Extra.

Links

[text](=article_id)

where article_id is the article's id you want to point to.

diff --git a/app/view/templates/editleftbar.php b/app/view/templates/editleftbar.php index ff08bfc..fd39ba7 100644 --- a/app/view/templates/editleftbar.php +++ b/app/view/templates/editleftbar.php @@ -22,9 +22,38 @@ + + + + + + + -
+ + + + + + + +
templatebody()) || !empty($art->templatecss()) || !empty($art->templatejavascript()) ? 'open' : '' ?>> Tempalte
@@ -35,7 +64,7 @@ ?> @@ -55,25 +84,32 @@ templatecss())) { ?> +
- template()['cssreccursive'] === true ? 'checked' : '' ?>> + templateoptions()) ? 'checked' : '' ?>>
- template()['cssquickcss'] === true ? 'checked' : '' ?>> + templateoptions()) ? 'checked' : '' ?>>
- template()['externalcss'] === true ? 'checked' : '' ?>> - + templateoptions()) ? 'checked' : '' ?>> +
- template()['cssfavicon'] === true ? 'checked' : '' ?>> + templateoptions()) ? 'checked' : '' ?>>
templateoptions() as $option) { + if($option != 'externalsavascript') { + echo ''; + } + } } - + ?> @@ -88,41 +124,60 @@ } ?> + + + templatejavascript())) { + ?>
- - + templateoptions()) ? 'checked' : '' ?>> +
+ templateoptions())) { + echo ''; + } + + } ?> +
-
+
externalcss()) || !empty($art->externalscript()) ? 'open' : '' ?>> Advanced -
- + + + externalcss() as $css) { + ?> +
+ + +
+ - - templatecss()) && $art->template()['cssfavicon']) { - ?> - - --no favicon--'; - foreach ($faviconlist as $favicon) { - ?> - - externalscript() as $script) { + ?> +
+ + +
+ - -
+
diff --git a/app/view/templates/font.php b/app/view/templates/font.php index 90614a9..3de0dce 100644 --- a/app/view/templates/font.php +++ b/app/view/templates/font.php @@ -8,7 +8,7 @@ insert('backtopbar', ['user' => $user, 'tab' => 'font']) ?> -
+

Fonts

@@ -55,7 +55,7 @@ foreach ($fontlist as $font ) { ?> -
+ stop('page') ?> \ No newline at end of file diff --git a/app/view/templates/home.php b/app/view/templates/home.php index 9aa3d13..a69882d 100644 --- a/app/view/templates/home.php +++ b/app/view/templates/home.php @@ -12,7 +12,7 @@ iseditor()) { ?> -
+
@@ -102,7 +102,7 @@ -
+ diff --git a/app/view/templates/info.php b/app/view/templates/info.php index 4634995..4da3819 100644 --- a/app/view/templates/info.php +++ b/app/view/templates/info.php @@ -8,7 +8,7 @@ insert('backtopbar', ['user' => $user, 'tab' => 'info']) ?> -
+

Info

@@ -138,7 +138,7 @@
  • header
  • nav
  • aside
  • -
  • section
  • +
  • main
  • footer
  • @@ -267,7 +267,7 @@ You can use any of them, only one or all at the same time, as you prefer.

    As it is too long adding all media of a folder one by one, you can just print the content of an entire folder using this method.

    -%MEDIA:__repository__ +%MEDIA:__directory__

    Just point to the good directory inside the media folder. This will output html list, creating image elements, audio players, video players, or just basic link, depending on the media type.

    @@ -295,7 +295,7 @@ You can use any of them, only one or all at the same time, as you prefer. %ASIDE%

    -%SECTION% +%MAIN%

    Will output :

    @@ -309,12 +309,12 @@ __the content of your aside__ </aside>

    -<section class="page_id"> +<main class="page_id">
    -__the content of your section__ +__the content of your main__
    -</section> +</main> @@ -357,7 +357,7 @@ __content of this page html element__ -
    + stop('page') ?> \ No newline at end of file diff --git a/app/view/templates/media.php b/app/view/templates/media.php index 2078d79..706a160 100644 --- a/app/view/templates/media.php +++ b/app/view/templates/media.php @@ -8,7 +8,7 @@ insert('backtopbar', ['user' => $user, 'tab' => 'media']) ?> -
    +
    @@ -28,7 +28,7 @@ function treecount(array $dir, string $dirname, int $deepness, string $path, str $folder = '├─📁' . $dirname; } echo ''; - echo '' . str_repeat(' ‎ ‎', $deepness) . $folder . ''; + echo '' . str_repeat('  ', $deepness) . $folder . ''; echo '' . $dir['dirfilecount'] . ''; echo ''; foreach ($dir as $key => $value) { @@ -78,7 +78,7 @@ foreach ($medialist as $media) { id() ?> extension() ?> - type() == 'image' ? 'image 👁' : $media->type() ?> + type() == 'image' ? 'image 👁' : $media->type() ?> size()) ?> width() ?> height() ?> @@ -110,7 +110,7 @@ foreach ($medialist as $media) {
    -
    + stop('page') ?> \ No newline at end of file -- cgit v1.2.3