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 900degrees. 

diffs (24 lines):

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>""";
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog

Reply via email to