From 42e89ac398bdf2a98167b0b71123c98e297b2130 Mon Sep 17 00:00:00 2001 From: vincent-peugnet Date: Tue, 4 Dec 2018 20:39:48 +0100 Subject: editor right bar --- app/view/templates/admin.php | 14 +++++-- app/view/templates/backtopbar.php | 22 +++++++--- app/view/templates/confirmdelete.php | 2 +- app/view/templates/edit.php | 4 +- app/view/templates/editleftbar.php | 78 ++++++++++++++++++++++++++---------- app/view/templates/editrightbar.php | 60 ++++++++++++++++++++++----- app/view/templates/edittabs.php | 2 +- app/view/templates/font.php | 10 +++++ 8 files changed, 148 insertions(+), 44 deletions(-) (limited to 'app/view') diff --git a/app/view/templates/admin.php b/app/view/templates/admin.php index d913186..7f94833 100644 --- a/app/view/templates/admin.php +++ b/app/view/templates/admin.php @@ -12,6 +12,9 @@
+ + +

Passwords

@@ -19,7 +22,7 @@

Page creation

- + - +

CSS

+ + + + +
diff --git a/app/view/templates/backtopbar.php b/app/view/templates/backtopbar.php index 1f4a246..a06c304 100644 --- a/app/view/templates/backtopbar.php +++ b/app/view/templates/backtopbar.php @@ -1,29 +1,38 @@
+ + isvisitor()) { ?> -
+
- + -
+ +User level : level() ?> + + + +
- -User level : level() ?> + + + + + iseditor()) { ?> - home isadmin()) { +| github↝ diff --git a/app/view/templates/confirmdelete.php b/app/view/templates/confirmdelete.php index e05f6da..7d8f62a 100644 --- a/app/view/templates/confirmdelete.php +++ b/app/view/templates/confirmdelete.php @@ -11,7 +11,7 @@

Delete

    -
  • Id : title() ?>
  • +
  • Id : id() ?>
  • Title : title() ?>
  • Article(s) linked to this one : linkto('sort') ?>
  • Article(s) linked from this one : linkfrom('sort') ?>
  • diff --git a/app/view/templates/edit.php b/app/view/templates/edit.php index 8071964..346d5bb 100644 --- a/app/view/templates/edit.php +++ b/app/view/templates/edit.php @@ -19,8 +19,8 @@
    insert('editleftbar', ['art' => $art, 'tablist' => $tablist, 'artlist' => $artlist, 'showleftpanel' => $showleftpanel]) ?> - insert('edittabs', ['tablist' => $tablist, 'opentab' => $art->interface(), 'template' => $art->template()]) ?> - insert('editrightbar', ['art' => $art, 'artlist' => $artlist, 'showrightpanel' => $showrightpanel, 'fonts' => $fonts]) ?> + 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 2f184af..73468bf 100644 --- a/app/view/templates/editleftbar.php +++ b/app/view/templates/editleftbar.php @@ -24,37 +24,73 @@ -
    +
    Advanced

    Template options

    -
      + + + + + + + $value) { - if(isset($art->template()[$element])) { - $template = $art->template()[$element]; - } else { - $template = ''; - } - echo '
    • '; - echo ''; - echo ' + +
+
+ + +
+
+ + +
- - '; - echo ''; } + ?> + + + +
+ + +
+ +
diff --git a/app/view/templates/editrightbar.php b/app/view/templates/editrightbar.php index fa249ef..9572678 100644 --- a/app/view/templates/editrightbar.php +++ b/app/view/templates/editrightbar.php @@ -2,26 +2,66 @@ >
-
- Links + + +
+ Last edited + + +
+ + +
+ Tags + $idlist) { + if(count($idlist) > 1) { ?> - + '; + foreach ($idlist as $id) { + if($id === $art->id()) { + echo '
  • ★ '.$id.'
  • '; + } else { + ?> +
  • + '; } ?> +
    -
    - Fonts - + +
    diff --git a/app/view/templates/edittabs.php b/app/view/templates/edittabs.php index 6e1562a..0829c48 100644 --- a/app/view/templates/edittabs.php +++ b/app/view/templates/edittabs.php @@ -7,7 +7,7 @@ foreach ($tablist as $key => $value) { > - + +

    Fonts

    + + +
    ⚡ Render +
    +
    👓 View font CSS file +
    +

    Add Font

    @@ -24,6 +32,8 @@
    +

    Font stock

    + -- cgit v1.2.3
    font