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-01 03:03 pm

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

[commit: http://hg.dwscoalition.org/dw-nonfree/rev/fe63d53deaf5]

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

Make the content options customizable; default value (if the page does not
choose to provide a custom value) is still class='layout-wide-right-
sidebar')

Patch by [personal profile] fu.

Files modified:
  • cgi-bin/bml/scheme/tropo-purple.look
  • cgi-bin/bml/scheme/tropo-red.look
--------------------------------------------------------------------------------
diff -r 88b132bdd652 -r fe63d53deaf5 cgi-bin/bml/scheme/tropo-purple.look
--- a/cgi-bin/bml/scheme/tropo-purple.look	Wed Sep 01 23:00:41 2010 +0800
+++ b/cgi-bin/bml/scheme/tropo-purple.look	Wed Sep 01 23:02:53 2010 +0800
@@ -26,6 +26,8 @@ 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>
@@ -179,7 +181,7 @@ page<=
                     </span>
                 </div>
 
-                <div id="content" class="layout-wide-right-sidebar">
+                <div id="content" %%contentopts%%>
                 <h1>%%title%%</h1>
                 %%body%%
                 </div>
diff -r 88b132bdd652 -r fe63d53deaf5 cgi-bin/bml/scheme/tropo-red.look
--- a/cgi-bin/bml/scheme/tropo-red.look	Wed Sep 01 23:00:41 2010 +0800
+++ b/cgi-bin/bml/scheme/tropo-red.look	Wed Sep 01 23:02:53 2010 +0800
@@ -26,6 +26,8 @@ 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>
@@ -179,7 +181,7 @@ page<=
                     </span>
                 </div>
 
-                <div id="content" class="layout-wide-right-sidebar">
+                <div id="content" %%contentopts%%>
                 <h1>%%title%%</h1>
                 %%body%%
                 </div>
--------------------------------------------------------------------------------