carriep63 (carriep63) wrote in s2bloggish, @ 2007-08-30 14:55:00 |
|
|||
Entry tags: | layout, navigation links, paid, tutorial |
[paid] Adding navigation links to the one column layout.
For some unkown reason, the navigation links are absent on the one column Bloggish layout. Here is a code you can use in a paid user layer to replace them.
#### 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
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(
}
print_module_list($links);
"</div>";
}