From 2f363e8fa26ab849539e64ff7caa21bd164e8979 Mon Sep 17 00:00:00 2001 From: vincent-peugnet Date: Sat, 10 Nov 2018 21:43:24 +0100 Subject: sidebars-html-inserts --- w/view/templates/edit.php | 27 +++++---------- w/view/templates/editleftbar.php | 70 +++++++++++++++++++++++++++++++++++++++ w/view/templates/editrightbar.php | 20 +++++++++++ w/view/templates/editsidebar.php | 40 ---------------------- w/view/templates/edittabs.php | 2 +- w/view/templates/edittopbar.php | 26 +++++++++------ 6 files changed, 116 insertions(+), 69 deletions(-) create mode 100644 w/view/templates/editleftbar.php create mode 100644 w/view/templates/editrightbar.php delete mode 100644 w/view/templates/editsidebar.php (limited to 'w/view') diff --git a/w/view/templates/edit.php b/w/view/templates/edit.php index ee231cd..33d42f4 100644 --- a/w/view/templates/edit.php +++ b/w/view/templates/edit.php @@ -3,42 +3,33 @@ - -start('customhead') ?> - -stop() ?> - - - - - - start('page') ?> + + +
insert('navart', ['user' => $user, 'art' => $art, 'artexist' => $artexist]) ?> insert('edittopbar', ['art' => $art]) ?> - insert('editsidebar', ['art' => $art]) ?> - - +
- $art->md(), 'css' => $art->css(), 'header' => $art->header(), 'nav' => $art->nav(), 'aside' => $art->aside(), 'footer' => $art->footer(), 'html' => $art->html(), 'javascript' => $art->javascript()]; - $this->insert('edittabs', ['tablist' => $tablist, 'opentab' => $art->interface()]) - ?> + insert('editleftbar', ['art' => $art, 'tablist' => $tablist, 'artlist' => $artlist, 'showleftpanel' => $showleftpanel]) ?> + insert('edittabs', ['tablist' => $tablist, 'opentab' => $art->interface()]) ?> + insert('editrightbar', ['art' => $art, 'artlist' => $artlist, 'showrightpanel' => $showrightpanel]) ?> - +
+
stop() ?> \ No newline at end of file diff --git a/w/view/templates/editleftbar.php b/w/view/templates/editleftbar.php new file mode 100644 index 0000000..7533599 --- /dev/null +++ b/w/view/templates/editleftbar.php @@ -0,0 +1,70 @@ +
+ > + +
+
+ Infos +
+ + + + + + + + +
+
+
+ Advanced +
+

Template options

+
    + $value) { + if(isset($art->template()[$element])) { + $template = $art->template()[$element]; + } else { + $template = ''; + } + echo '
  • '; + echo ''; + echo '> + +
    +
    + Links + + + + +
    + +
    + +
\ No newline at end of file diff --git a/w/view/templates/editsidebar.php b/w/view/templates/editsidebar.php deleted file mode 100644 index 99612dd..0000000 --- a/w/view/templates/editsidebar.php +++ /dev/null @@ -1,40 +0,0 @@ - \ No newline at end of file diff --git a/w/view/templates/edittabs.php b/w/view/templates/edittabs.php index c65a7c7..efb1650 100644 --- a/w/view/templates/edittabs.php +++ b/w/view/templates/edittabs.php @@ -10,7 +10,7 @@ foreach ($tablist as $key => $value) { } echo ''; echo '
'; - echo ''; + echo ''; echo '
'; echo '
'; } diff --git a/w/view/templates/edittopbar.php b/w/view/templates/edittopbar.php index 9973335..20c2d8b 100644 --- a/w/view/templates/edittopbar.php +++ b/w/view/templates/edittopbar.php @@ -1,23 +1,29 @@ -
- +
+
+ +
+ +
+ + - - + - - - -
+ + + + 👁 + id() ?> - -
+ +
\ No newline at end of file -- cgit v1.2.3