From b4dff3a9ff16811ea0310f5dbf4d7559c97835b0 Mon Sep 17 00:00:00 2001 From: Mario Vavti Date: Wed, 22 Apr 2015 10:31:36 +0200 Subject: provide headings for blocks and layouts --- view/css/mod_blocks.css | 3 +++ view/css/mod_layouts.css | 3 +++ view/tpl/blocklist.tpl | 14 ++++++++++++++ view/tpl/layoutlist.tpl | 18 ++++++++++++++++-- 4 files changed, 36 insertions(+), 2 deletions(-) create mode 100644 view/css/mod_blocks.css create mode 100644 view/css/mod_layouts.css (limited to 'view') diff --git a/view/css/mod_blocks.css b/view/css/mod_blocks.css new file mode 100644 index 000000000..117e99068 --- /dev/null +++ b/view/css/mod_blocks.css @@ -0,0 +1,3 @@ +#block-editor { + display: none; +} diff --git a/view/css/mod_layouts.css b/view/css/mod_layouts.css new file mode 100644 index 000000000..7f65713e7 --- /dev/null +++ b/view/css/mod_layouts.css @@ -0,0 +1,3 @@ +#layout-editor { + display: none; +} diff --git a/view/tpl/blocklist.tpl b/view/tpl/blocklist.tpl index 4068375cb..a8cb29b35 100644 --- a/view/tpl/blocklist.tpl +++ b/view/tpl/blocklist.tpl @@ -1,3 +1,17 @@ +
+ {{if $editor}} +
+ +
+ {{/if}} +

{{$title}}

+
+
+{{if $editor}} +
+ {{$editor}} +
+{{/if}} {{if $pages}}
diff --git a/view/tpl/layoutlist.tpl b/view/tpl/layoutlist.tpl index 0a0085497..cd146377d 100644 --- a/view/tpl/layoutlist.tpl +++ b/view/tpl/layoutlist.tpl @@ -1,5 +1,20 @@ -{{if $pages}} +
+ {{if $editor}} +
+ +  {{$help.text}} +
+ {{/if}} +

{{$title}}

+
+
+{{if $editor}} +
+ {{$editor}} +
+{{/if}} +{{if $pages}}
{{foreach $pages as $key => $items}} {{foreach $items as $item}} @@ -15,5 +30,4 @@
- {{/if}} -- cgit v1.2.3