[theme] - [novel conundrum] - [add header image]

Aug 27, 2005 10:27

in response to soundplay's s2styles post.

############################
# HEADER IMAGE #
# kunzite1, s2layers/39012 #
# overrides Page::print #
############################
function Page::print() {
var string k1Hheader_url = ""; # optional header url
var string k1Hheader_alt = ""; # optional header alt

var string title = $this->title();

var string links;
var bool firstlink = true;
foreach var string v ($.views_order) {
if ($firstlink == false) {
$links = "$links · ";
} else {
$firstlink = false;
}
$links = $links + (" "+lang_viewname($v)+"");
}

"""

""";

if ($*external_stylesheet) {
println """""";
} else {
println """";
}
$this->print_head();

"""
$title

""";

if($k1Hheader_url != "") {
"""

""";
}

display_title($this);
"""

$links

""";
$this->print_body();
"""

""";
}

funciton print, layout anovelconundrum, class page, header

Previous post Next post
Up