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 fu.
diffs (110 lines):
diff -r 57118859d07d -r 567751911423 cgi-bin/bml/scheme/blueshift.look
--- a/cgi-bin/bml/scheme/blueshift.look Wed Sep 01 21:06:49 2010 +0800
+++ b/cgi-bin/bml/scheme/blueshift.look Wed Sep 01 23:02:45 2010 +0800
@@ -27,6 +27,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>
@@ -168,7 +170,7 @@ page<=
</span>
</div>
- <div id="content" class="layout-wide-right-sidebar">
+ <div id="content" %%contentopts%%>
<h1>%%title%%</h1>
%%body%%
</div>
diff -r 57118859d07d -r 567751911423 cgi-bin/bml/scheme/celerity.look
--- a/cgi-bin/bml/scheme/celerity.look Wed Sep 01 21:06:49 2010 +0800
+++ b/cgi-bin/bml/scheme/celerity.look Wed Sep 01 23:02:45 2010 +0800
@@ -27,6 +27,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<=
<?logo?>
</div><!-- end masthead-->
- <div id="content" class="layout-wide-right-sidebar">
+ <div id="content" %%contentopts%%>
<h1>%%title%%</h1>
%%body%%
</div><!--end content-->
diff -r 57118859d07d -r 567751911423
cgi-bin/bml/scheme/gradation-horizontal.look
--- a/cgi-bin/bml/scheme/gradation-horizontal.look Wed Sep 01 21:06:49
2010 +0800
+++ b/cgi-bin/bml/scheme/gradation-horizontal.look Wed Sep 01 23:02:45
2010 +0800
@@ -27,6 +27,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>
@@ -169,7 +171,7 @@ page<=
</span>
</div>
- <div id="content" class="layout-wide-right-sidebar">
+ <div id="content" %%contentopts%%>
<h1>%%title%%</h1>
%%body%%
</div>
diff -r 57118859d07d -r 567751911423 cgi-bin/bml/scheme/gradation-vertical.look
--- a/cgi-bin/bml/scheme/gradation-vertical.look Wed Sep 01 21:06:49
2010 +0800
+++ b/cgi-bin/bml/scheme/gradation-vertical.look Wed Sep 01 23:02:45
2010 +0800
@@ -27,6 +27,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>
@@ -167,7 +169,7 @@ page<=
</span>
</div>
- <div id="content" class="layout-wide-right-sidebar">
+ <div id="content" %%contentopts%%>
<h1>%%title%%</h1>
%%body%%
</div>
diff -r 57118859d07d -r 567751911423 htdocs/misc/render_sitescheme.bml
--- a/htdocs/misc/render_sitescheme.bml Wed Sep 01 21:06:49 2010 +0800
+++ b/htdocs/misc/render_sitescheme.bml Wed Sep 01 23:02:45 2010 +0800
@@ -21,7 +21,7 @@ body<=
{
use strict;
use DW::Request;
- use vars qw/ $title $windowtitle $head /;
+ use vars qw/ $title $windowtitle $head $contentopts /;
my $r = DW::Request->get;
my $code = $r->pnote( 'render_sitescheme_code' );
@@ -31,6 +31,7 @@ body<=
$head = $extras->{head} || "";
$title = $extras->{title} || "";
$windowtitle = $extras->{windowtitle} || "";
+ $contentopts = $extras->{contentopts};
return BML::ebml($code);
}
@@ -39,4 +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?>
page?>
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog