carriep63 (carriep63) wrote in s2bloggish, @ 2007-08-30 14:55:00 |
|
|||
#### This is just CSS. Change the green parts. ####
set custom_css = "
#banner-links li{display:inline; background:none;}
#banner-links ul{background:#527276;padding:2px 0;margin:0 15px;}
#banner{margin:0px auto !important;}
";
#### Add the code to the banner. ####
function print_banner(Page p) {
container_open("banner");
"<h1 id='banner-header'>$p.global_title</h1>" ;
"<h2 id='banner-description'>$p.global_subtit le</h2>";
container_close();
"<div id='banner-links'>";
var string[] links = [];
foreach var string k ($p.views_order) {
$links[size $links] = """<a href="$p.view_url{$k}">"""+lang_viewname( $k)+"""</a>""";
}
print_module_list($links);
"</div>";
}