From 8ad26def303c7dc0db1049b8c72f21c17133ab33 Mon Sep 17 00:00:00 2001 From: Kevin Chabowski Date: Mon, 21 May 2012 21:21:00 +0200 Subject: Sidebar blocks of Article editor can be expanded/collapsed. --- .../cms_style/images/expandarrow_collapsed.png | Bin 0 -> 142 bytes .../cms_style/images/expandarrow_expanded.png | Bin 0 -> 154 bytes ratatoeskr/cms_style/layout.css | 12 +++++ ratatoeskr/js/backend.js | 19 +++++++ .../src/systemtemplates/content_write.html | 57 ++++++++++++--------- .../templates/src/systemtemplates/master.html | 2 + 6 files changed, 65 insertions(+), 25 deletions(-) create mode 100644 ratatoeskr/cms_style/images/expandarrow_collapsed.png create mode 100644 ratatoeskr/cms_style/images/expandarrow_expanded.png create mode 100644 ratatoeskr/js/backend.js diff --git a/ratatoeskr/cms_style/images/expandarrow_collapsed.png b/ratatoeskr/cms_style/images/expandarrow_collapsed.png new file mode 100644 index 0000000..62f662b Binary files /dev/null and b/ratatoeskr/cms_style/images/expandarrow_collapsed.png differ diff --git a/ratatoeskr/cms_style/images/expandarrow_expanded.png b/ratatoeskr/cms_style/images/expandarrow_expanded.png new file mode 100644 index 0000000..a5e4c41 Binary files /dev/null and b/ratatoeskr/cms_style/images/expandarrow_expanded.png differ diff --git a/ratatoeskr/cms_style/layout.css b/ratatoeskr/cms_style/layout.css index 1163887..a88537d 100644 --- a/ratatoeskr/cms_style/layout.css +++ b/ratatoeskr/cms_style/layout.css @@ -257,3 +257,15 @@ ul.bulletfree { list-style: none; padding-left: 0mm; } + +.metabar_element_expanded { + min-height: 12px; + background: url(images/expandarrow_expanded.png) 0px 4px no-repeat; + padding-left: 12px; +} + +.metabar_element_collapsed { + min-height: 12px; + background: url(images/expandarrow_collapsed.png) 0px 4px no-repeat; + padding-left: 12px; +} \ No newline at end of file diff --git a/ratatoeskr/js/backend.js b/ratatoeskr/js/backend.js new file mode 100644 index 0000000..d131bfe --- /dev/null +++ b/ratatoeskr/js/backend.js @@ -0,0 +1,19 @@ +$(function() +{ + $("div.articleeditor-metabar-element h2").addClass("metabar_element_expanded").click(function() + { + self = $(this); + if(self.hasClass("metabar_element_expanded")) + { + self.removeClass("metabar_element_expanded"); + self.addClass("metabar_element_collapsed"); + $("div.articleeditor-metabar-element-content", self.parent()).hide("fast"); + } + else + { + self.removeClass("metabar_element_collapsed"); + self.addClass("metabar_element_expanded"); + $("div.articleeditor-metabar-element-content", self.parent()).show("fast"); + } + }); +}); \ No newline at end of file diff --git a/ratatoeskr/templates/src/systemtemplates/content_write.html b/ratatoeskr/templates/src/systemtemplates/content_write.html index 3d63c61..08d6ec1 100644 --- a/ratatoeskr/templates/src/systemtemplates/content_write.html +++ b/ratatoeskr/templates/src/systemtemplates/content_write.html @@ -26,33 +26,40 @@
-

- -

:

-

- : - -

-

:

-

:
(YYYY-MM-DD HH:MM:SS)

-

- : - ?{$article_status|$article_status|1} - -

-

:

+
+

+
+

:

+

+ : + +

+

:

+

:
(YYYY-MM-DD HH:MM:SS)

+

+ : + ?{$article_status|$article_status|1} + +

+

:

+
+
-

$plugin[label]

- +
+

$plugin[label]

+
+ +
+
diff --git a/ratatoeskr/templates/src/systemtemplates/master.html b/ratatoeskr/templates/src/systemtemplates/master.html index ddf6d08..406bab6 100755 --- a/ratatoeskr/templates/src/systemtemplates/master.html +++ b/ratatoeskr/templates/src/systemtemplates/master.html @@ -25,6 +25,8 @@ <ste:get_translation for="section_$section" />::<ste:escape>$pagetitle</ste:escape> - Ratatöskr + + layout.css $cssfile -- cgit v1.2.3-54-g00ecf