[theme] - [sturdy gesture] - [k1ified sidebar]

Feb 01, 2006 19:04


function Page::lay_navbar() {
# create helper vars
var string box_open = """\n
""";
var string header_open = "\n ";
var string header = "";
var string header_close = "
";
var string content = "";
var string box_close = "\n ";

# open navbar
"""""";

# viewlinks
# website link
# userpic
$content = "\n $.journal.name
";
$content = $content + "\n
    ";
    foreach var string v ($.views_order) {
    var string url = $.view_url{$v};
    var string text = lang_viewname($v);
    var string class = "";
    if ($.view == $v) {
    $url = "";
    $class = " class=\"active\"";
    }
    $content = $content + "\n ";
    if($url != "") {
    $content = $content + """ """;
    }
    $content = $content + $text;
    if($url != "") {
    $content = $content + "
    ";
    }
    $content = $content + "";
    }
    if ($.journal.website_url != "") {
    var string url = $.journal.website_url;
    var string text = $.journal.website_name != "" ? $.journal.website_name : $*text_website_default_name;
    $content = $content + """\n
  • $text
  • """;
    }
    $content = $content + "\n
";
if($.journal.default_pic.url != "") {
var Image up_img = $.journal.default_pic;
$up_img.alttext = $.journal.name;
$content = $content + """\n

""";
}
print "$box_open$content$box_close";

# skiplinks
if($this->lay_show_firstnav()) {
$this->lay_page_nav();
}

# linklist
if (size $this.linklist > 0 and $*linklist_support) {
$header = "Links";
print $box_open;
print $header_open;
print $header;
print $header_close;
$this->print_linklist();
print $box_close;
}

# custom box
# set header
$header = "Frank";
# set content
$content = """
""";
# print box
print "$box_open$header_open$header$header_close$content$box_close";

# custom header box
# set header
$header = "Frank";
# print header box
print "$box_open$header_open$header$header_close$box_close";

# custom content box
# set content
$content = """
""";
# print content box
print "$box_open$content$box_close";

# close navbar
"\n\n";
}

class page, layout sturdygesture, function lay_navbar

Previous post Next post
Up