fu: Close-up of Fu, bringing a scoop of water to her mouth (Default)
fu ([personal profile] fu) wrote in [site community profile] changelog2010-09-04 10:06 am

[dw-free] Most site schemes hardcode a class layout-wide-right-sidebar for #content

[commit: http://hg.dwscoalition.org/dw-free/rev/c9cda49a744f]

http://bugs.dwscoalition.org/show_bug.cgi?id=3000

Don't try to set defaults; instead, just accept what the page passes in
explicitly.

Patch by [personal profile] fu.

Files modified:
  • cgi-bin/bml/scheme/blueshift.look
  • cgi-bin/bml/scheme/celerity.look
  • cgi-bin/bml/scheme/gradation-horizontal.look
  • cgi-bin/bml/scheme/gradation-vertical.look
  • htdocs/misc/render_sitescheme.bml
--------------------------------------------------------------------------------
diff -r dee65e4f7923 -r c9cda49a744f cgi-bin/bml/scheme/blueshift.look
--- a/cgi-bin/bml/scheme/blueshift.look	Sat Sep 04 17:44:59 2010 +0800
+++ b/cgi-bin/bml/scheme/blueshift.look	Sat Sep 04 18:06:34 2010 +0800
@@ -27,8 +27,6 @@ standout<=
 standout<=
 {DRps}<div class='standout'><table class='standout-inner'><tr><td>%%data%%</td></tr></table></div>
 <=standout
-
-contentopts=>class='layout-wide-right-sidebar'
 
 head<=
 <head>
diff -r dee65e4f7923 -r c9cda49a744f cgi-bin/bml/scheme/celerity.look
--- a/cgi-bin/bml/scheme/celerity.look	Sat Sep 04 17:44:59 2010 +0800
+++ b/cgi-bin/bml/scheme/celerity.look	Sat Sep 04 18:06:34 2010 +0800
@@ -27,8 +27,6 @@ standout<=
 standout<=
 {DRps}<div class='standout'><table class='standout-inner'><tr><td>%%data%%</td></tr></table></div>
 <=standout
-
-contentopts=>class='layout-wide-right-sidebar'
 
 head<=
 <head>
@@ -181,7 +179,7 @@ page<=
                         <?logo?>
                 </div><!-- end masthead-->
 
-                <div id="content" %%contentopts%%>
+                <div id="content" %%contentopts%% ?>
                 <h1>%%title%%</h1>
                 %%body%%
                 </div><!--end content-->
diff -r dee65e4f7923 -r c9cda49a744f cgi-bin/bml/scheme/gradation-horizontal.look
--- a/cgi-bin/bml/scheme/gradation-horizontal.look	Sat Sep 04 17:44:59 2010 +0800
+++ b/cgi-bin/bml/scheme/gradation-horizontal.look	Sat Sep 04 18:06:34 2010 +0800
@@ -27,8 +27,6 @@ standout<=
 standout<=
 {DRps}<div class='standout'><table class='standout-inner'><tr><td>%%data%%</td></tr></table></div>
 <=standout
-
-contentopts=>class='layout-wide-right-sidebar'
 
 head<=
 <head>
diff -r dee65e4f7923 -r c9cda49a744f cgi-bin/bml/scheme/gradation-vertical.look
--- a/cgi-bin/bml/scheme/gradation-vertical.look	Sat Sep 04 17:44:59 2010 +0800
+++ b/cgi-bin/bml/scheme/gradation-vertical.look	Sat Sep 04 18:06:34 2010 +0800
@@ -27,8 +27,6 @@ standout<=
 standout<=
 {DRps}<div class='standout'><table class='standout-inner'><tr><td>%%data%%</td></tr></table></div>
 <=standout
-
-contentopts=>class='layout-wide-right-sidebar'
 
 head<=
 <head>
diff -r dee65e4f7923 -r c9cda49a744f htdocs/misc/render_sitescheme.bml
--- a/htdocs/misc/render_sitescheme.bml	Sat Sep 04 17:44:59 2010 +0800
+++ b/htdocs/misc/render_sitescheme.bml	Sat Sep 04 18:06:34 2010 +0800
@@ -40,5 +40,5 @@ head=><?_code return BML::ebml( $head );
 head=><?_code return BML::ebml( $head ); _code?>
 title=><?_code return BML::ebml( $title ); _code?>
 windowtitle=><?_code return BML::ebml( $windowtitle ); _code?>
-contentopts=><?_code return defined $contentopts ? BML::ebml( $contentopts ) : "<?contentopts?>"; _code?>
+contentopts=><?_code return BML::ebml( $contentopts ); _code?>
 page?>
--------------------------------------------------------------------------------

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
No Subject Icon Selected
More info about formatting

If you are unable to use this captcha for any reason, please contact us by email at support@dreamwidth.org