[dw-free] customizable font options & headers
[commit: http://hg.dwscoalition.org/dw-free/rev/f062121b498e]
http://bugs.dwscoalition.org/show_bug.cgi?id=2195
Add a property to choose whether or not to display the decorative block in
the header for Boxes and Borders (defaults to displaying, as per current
behavior)
Patch by
ninetydegrees.
Files modified:
http://bugs.dwscoalition.org/show_bug.cgi?id=2195
Add a property to choose whether or not to display the decorative block in
the header for Boxes and Borders (defaults to displaying, as per current
behavior)
Patch by
Files modified:
- bin/upgrading/s2layers/boxesandborders/layout.s2
--------------------------------------------------------------------------------
diff -r 8a698e734a78 -r f062121b498e bin/upgrading/s2layers/boxesandborders/layout.s2
--- a/bin/upgrading/s2layers/boxesandborders/layout.s2 Fri Apr 02 17:33:58 2010 -0500
+++ b/bin/upgrading/s2layers/boxesandborders/layout.s2 Sun Apr 04 11:05:48 2010 -0700
@@ -7,9 +7,19 @@ set layout_authors = [ { "name" => "bran
set layout_authors = [ { "name" => "branchandroot", "type" => "user" } ];
set layout_type = "three-columns-sides";
+propgroup presentation_child {
+ property bool display_header_decoration {
+ des = "Display the decorative block in the header";
+ }
+}
+
+set display_header_decoration = true;
+
function Page::print_global_title() {
- """<div id="header-decoration"><div id="header-decoration-inner"></div></div>""";
+ if ($*display_header_decoration) {
+ """<div id="header-decoration"><div id="header-decoration-inner"></div></div>""";
+ }
if ($.global_title) {
"""<h1 id="title"><span>""" + $.global_title + """</span></h1>""";
--------------------------------------------------------------------------------
