[theme] - [boxer] - [2 sidebars]

Sep 28, 2005 21:41


#############################################
#
# Print and Print Bodies
#
#############################################

function Page::print() {
var string title = $this->title();

var string k1Hheader_url = ""; # optional header url
var string k1Hheader_alt = ""; # optional header alt text

"""

""";
$this->print_head();
"""
$title

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

""";

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

""";
}

# var for left sidebar
var string sidebar_left = "";

# var for right sidebar
var string sidebar_right = "";

# var for opening sidebar box
var string sidebar_box_open = """""";

# var for closing sidebar box
var string sidebar_box_close = "";

# var for opening sidebar box header
var string sidebar_box_header_one = "";

# var for closing sidebar box header
var string sidebar_box_header_two = "
\n";

# temp var for sidebar box header
var string sidebar_box_header = "";

# temp var for sidebar box content
var string sidebar_box_content = "";

# custom box
# set header
$sidebar_box_header = "Frank 1a";
# set content
$sidebar_box_content = """
""";
# add custom box to sidebar
$sidebar_left = $sidebar_left + $sidebar_box_open + $sidebar_box_header_one + $sidebar_box_header + $sidebar_box_header_two + $sidebar_box_content + $sidebar_box_close;

# custom box
# set header
$sidebar_box_header = "Frank 1b";
# set content
$sidebar_box_content = """
""";
# add custom box to sidebar
$sidebar_left = $sidebar_left + $sidebar_box_open + $sidebar_box_header_one + $sidebar_box_header + $sidebar_box_header_two + $sidebar_box_content + $sidebar_box_close;

# custom box
# set header
$sidebar_box_header = "Frank 2a";
# set content
$sidebar_box_content = """
""";
# add custom box to sidebar
$sidebar_right = $sidebar_right + $sidebar_box_open + $sidebar_box_header_one + $sidebar_box_header + $sidebar_box_header_two + $sidebar_box_content + $sidebar_box_close;

# custom box
# set header
$sidebar_box_header = "Frank 2b";
# set content
$sidebar_box_content = """
""";
# add custom box to sidebar
$sidebar_right = $sidebar_right + $sidebar_box_open + $sidebar_box_header_one + $sidebar_box_header + $sidebar_box_header_two + $sidebar_box_content + $sidebar_box_close;

# open large table for shell of body and sidebar(s)
"""""";

# if there's data for the left sidebar, let's make a table cell for it and stick it in there
if($sidebar_left != "") {
"""$sidebar_left""";
}

# open cell for body content
"""""";

print_nav($this);

"""

$title

$.journal.name

""";
var bool linkl = false;
if(size $.linklist > 0) { $linkl = true; }
if(not $*linklist_support) { $linkl = false; }

var bool box = false;
if($.journal.default_pic) { $box = true; }
if($*show_mini_calendar) { $box = true; }
if($linkl) { $box = true; }

if($box) {
"""

""";
if($.journal.default_pic) {
"""


""";
if($linkl or $*show_mini_calendar) {
"""


""";
}
}
$this->print_linklist();
if($*show_mini_calendar) {
if($linkl) {
"""


""";
}
"""

""";
print_calendar($this);
"""

""";
}
"""

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

# close cell for body content
"""""";

# if there's data for the right sidebar, let's make a table cell for it and stick it in there
if($sidebar_right != "") {
"""$sidebar_right""";
}

# close large table
"""""";

"""

""";
}

function print, class page, layout boxer

Previous post Next post
Up