Beruflich Dokumente
Kultur Dokumente
############################################
# LiveJournal Tags List and Redirector #
# by lj:kunzite1, posted by lj:xtomxfallsx #
############################################
var string k1TRheader = "Tags In This Journal"; # set the component hea
der text, you can change this to whatever you want
var string k1TRbutton = "Go"; # button text, change it to whatever you
want
var bool k1TRblank = true; # set to true to create a blank option at
top the list, or false not to
# No need to change anything below this line (unless you know what you are doin
g!)
var string k1TRbase_url = $p.journal->base_url();
var string k1TRcontent = "";
var TagDetail[] k1TRtags = $p->visible_tag_list();
foreach var TagDetail k1TRtag ($k1TRtags) {
$k1TRcontent = $k1TRcontent + """<option value="$k1TRtag.name">$k1TRtag.name</
option>\n""";
}
print_comp_header($k1TRheader); # print the component header
"""
<div class="compContent">
<form action="$k1TRbase_url/" method="get">
<select id="tags_select" name="tag"> """;
if($k1TRblank) {
"""<option value="" selected="selected"></option>\n""";
}
print $k1TRcontent; """
</select><br />
<input type="submit" value="$k1TRbutton" />
</form>
</div>""";
print_comp_footer(); # print the component footer
}
#==================================
#
# BUILD LAYOUT #
#
#==================================
function page_layout(Page p)
{
##### START CONFIGURATION. THIS IS WHERE YOU SET YOUR OPTIONS. #####
### LAYOUT OPTIONS ###
# Width of your layout. May be a percentage (80%) or a number of pixels (800px
).
# If you simply want to add an image header, set this to 100%.
var string layout_width = "1000px";
# Position of your layout: left, right or center?
var string layout_align = "center";
# Add a second sidebar (three column layout): true or false?
# Don't forget to edit titles and content of your new components below.
var bool three_column = true;
### HEADER OPTIONS ###
# If you want to add an image header above your layout, put its URL between th
e two quotes.
var string header_url = "";
# Alternative text for your image header.
var string header_alt = "";
# Position of your image header: left, right or center?
var string header_align = "center";
# Space below your header in pixels. Set to 0 for none.
var int header_divider = 0;
### NAVIGATION BAR OPTION ####
# Rounded navigation bar: true or false?
var bool round_navbar = false;
### NAVIGATION MENU OPTIONS ####
# Order of the default menu links. Move the names to change the order. Make su
re you keep the same syntax (quotes and commas).
var string[] views_order = [
"recent",
"friends",
"archive",
"userinfo"
];
# Add links to memories/scrapbook: true or false?
var bool mem_link = true;
var bool sb_link = true;
# Text of the links to memories/scrapbook.
var string text_mem_link = "memories";
var string text_sb_link = "scrapbook";
# Add custom links: true or false?
var bool custom_links = false;
# Code for your custom links. Edit the following code.
# You can also use it as a template to add more links. Each link starts at <li
> and ends at </li>
var string code_custom_links = """<li><a href="http://www.google.com/" class="
headerLinks">google</a></li><li><a href="http://www.yahoo.com/" class="headerLin
ks">yahoo</a></li>""";
### EXTRA SIDEBAR COMPONENTS OPTIONS ###
# Titles and content of the components of your second sidebar. You can use HTM
L.
# If you want to add more components, copy/paste the varialbles and change the
number to 3, 4, etc. then follow the instructions given farther in the code.
var string extra_comp_title1 = """Weight Loss Info""";
var string extra_comp_title2 = """Schedule""";
var string extra_comp_title3 = """Contact""";
var string extra_comp_title4 = """Now Reading""";
var string extra_comp_title5 = """Slideshow""";
var string extra_comp_title6 = """Quick Links""";
var string extra_comp_content1 = """Content 1""";
var string extra_comp_content2 = """Content 2""";
var string extra_comp_content3 = """Content 3""";
var string extra_comp_content4 = """Content 4""";
var string extra_comp_content5 = """Content 5""";
var string extra_comp_content6 = """Content 6""";
##### END CONFIGURATION #####
##### !!! EDIT PART OF THE FOLLOWING CODE ONLY IF !!! #####
##### YOU WANT TO ADD MORE EXTRA COMPONENTS #####
##### YOU WANT TO REORDER THE EXTRA NAVIGATION LINKS #####
##### SCROLL DOWN FOR FURTHER INSTRUCTIONS #####
var string layout_margin = $layout_align == "center" ? " margin: auto;" : "";
# Build the square nav bar.
var string navbar_square_open =
"""
<table cellspacing="0" cellpadding="0">
<tr>
<td class="dkLine" colspan="7"><img src="$*PALIMGROOT/component/clear.gif"
width="1" height="1" alt="" /></td>
</tr><tr>
<td class="dkLine" colspan="1"><img src="$*PALIMGROOT/component/clear.gif"
width="1" height="1" alt="" /></td>
<td class="ltLine" colspan="5"><img src="$*PALIMGROOT/component/clear.gif"
width="1" height="1" alt="" /></td>
<td class="dkLine" colspan="1"><img src="$*PALIMGROOT/component/clear.gif"
width="1" height="1" alt="" /></td></tr>
<tr>
<td class="dkLine" colspan="1"><img src="$*PALIMGROOT/component/clear.gif"
width="1" height="1" alt="" /></td>
<td class="ltLine" colspan="1"><img src="$*PALIMGROOT/component/clear.gif"
width="1" height="1" alt="" /></td>
<td class="medLine" colspan="4"><img src="$*PALIMGROOT/component/clear.gif
" width="1" height="1" alt="" /></td>
<td class="dkLine" colspan="1"><img src="$*PALIMGROOT/component/clear.gif"
width="1" height="1" alt="" /></td></tr>
<tr>
<td class="dkLine" rowspan="3" colspan="1"><img src="$*PALIMGROOT/componen
t/clear.gif" width="1" height="1" alt="" /></td>
<td class="ltLine" rowspan="3" colspan="1"><img src="$*PALIMGROOT/componen
t/clear.gif" width="1" height="1" alt="" /></td>
<td class="medLine" rowspan="3" colspan="1"><img src="$*PALIMGROOT/compone
nt/clear.gif" width="1" height="1" alt="" /></td>
<td class="tabBg" rowspan="1" colspan="2"><img src="$*PALIMGROOT/component
/clear.gif" width="1" height="1" alt="" /></td>
<td class="medLine" rowspan="3" colspan="1"><img src="$*PALIMGROOT/compone
nt/clear.gif" width="1" height="1" alt="" /></td>
<td class="dkLine" rowspan="3" colspan="1"><img src="$*PALIMGROOT/componen
t/clear.gif" width="1" height="1" alt="" /></td>
</tr><tr>
<td class="tabBg" colspan="2"><img src="$*PALIMGROOT/component/clear.gif"
width="1" height="1" alt="" /></td>
</tr><tr>
<td class="tabBg" colspan="2"><img src="$*PALIMGROOT/component/clear.gif"
width="1" height="3" alt="" /></td>
</tr><tr>
<td class="dkLine" width="1" rowspan="3"><img src="$*PALIMGROOT/component/
clear.gif" width="1" height="1" alt="" /></td>
<td class="ltLine" width="1" rowspan="2"><img src="$*PALIMGROOT/component/
clear.gif" width="1" height="1" alt="" /></td>
<td class="medLine" width="3"><img src="$*PALIMGROOT/component/clear.gif"
width="1" height="3" alt="" /></td>
<td class="tabBg" width="100%">
""";
var string navbar_square_close = """
</td>
<td class="tabBg" width="3" ><img src="$*PALIMGROOT/component/clear.gif" w
idth="1" height="3" alt="" /></td>
<td class="medLine" width="1" rowspan="2"><img src="$*PALIMGROOT/component
/clear.gif" width="1" height="1" alt="" /></td>
<td class="dkLine" width="1" rowspan="3"><img src="$*PALIMGROOT/component/
clear.gif" width="1" height="1" alt="" /></td>
</tr><tr>
<td class="medLine" colspan="4"><img src="$*PALIMGROOT/component/clear.gif
" width="1" height="1" alt="" /></td>
</tr><tr>
<td class="dkLine" colspan="5"><img src="$*PALIMGROOT/component/clear.gif"
width="1" height="1" alt="" /></td>
</tr>
</table>
""";
# Corner colors for the round nav bar.
var Color header_color = $*header_bgcolor;
var Color headerMinus5 = $header_color->darker(50);
var Color headerPlus3 = $header_color->lighter(30);
var string corner_color = "/p0"+$headerPlus3->substr(1,6)+"1"+$headerMinus5->s
ubstr(1,6)+"2"+$header_color->substr(1,6);
# Build the rounded nav bar.
var string navbar_round_open =
"""
<table width="100%" cellspacing="0" cellpadding="0" valign="top">
<tr valign="top" width="100%">
<td>
<table cellspacing="0" cellpadding="0" width="100%">
<tr>
<td valign="top" rowspan="3" colspan="3" width="5"><img src="$*PALIM
GROOT/component/curve-top-left.gif$corner_color" width="5" height="5" alt="" /><
/td>
<td class="dkLine"><img src="$*PALIMGROOT/component/clear.gif" width
="1" height="1" alt="" /></td>
<td valign="top" rowspan="3" colspan="3" width="5"><img src="$*PALIM
GROOT/component/curve-top-right.gif$corner_color" width="5" height="5" alt="" />
</td>
</tr><tr>
<td class="ltLine"><img src="$*PALIMGROOT/component/clear.gif" width
="1" height="1" alt="" /></td>
</tr><tr>
<td class="tabBg"><img src="$*PALIMGROOT/component/clear.gif" width=
"1" height="3" alt="" /></td>
</tr><tr>
<td class="dkLine" width="1"><img src="$*PALIMGROOT/component/clear.
gif" width="1" height="1" alt="" /></td>
<td class="ltLine" width="1"><img src="$*PALIMGROOT/component/clear.
gif" width="1" height="1" alt="" /></td>
<td class="tabBg" width="3"><img src="$*PALIMGROOT/component/clear.g
if" width="1" height="3" alt="" /></td>
<td class="tabBg" width="100%">
""";
var string navbar_round_close =
"""
</td>
<td class="tabBg" width="3"><img src="$*PALIMGROOT/component/clear.g
if" width="1" height="3" alt="" /></td>
<td class="ltLine" width="1"><img src="$*PALIMGROOT/component/clear.
gif" width="1" height="1" alt="" /></td>
<td class="dkLine" width="1"><img src="$*PALIMGROOT/component/clear.
gif" width="1" height="1" alt="" /></td>
</tr><tr>
<td valign="top" rowspan="3" colspan="3" width="5"><img src="$*PALIM
GROOT/component/curve-bottom-left.gif$corner_color" width="5" height="5" alt=""
/></td>
<td class="tabBg"><img src="$*PALIMGROOT/component/clear.gif" width=
"1" height="3" alt="" /></td>
<td valign="top" rowspan="3" colspan="3" width="5"><img src="$*PALIM
GROOT/component/curve-bottom-right.gif$corner_color" width="5" height="5" alt=""
/></td>
</tr><tr>
<td class="ltLine"><img src="$*PALIMGROOT/component/clear.gif" width
="1" height="1" alt="" /></td>
</tr><tr>
<td class="dkLine"><img src="$*PALIMGROOT/component/clear.gif" width
="1" height="1" alt="" /></td>
</tr>
</table>
</td>
</tr>
</table>
""";
# Only print side spacing if the layout is 100% wide or not centered.
var bool side_spacing = (($layout_width == "100%") or ($layout_align != "cente
r")) ? true : false;
var string title = $p->title();
var string website_name = $p.journal.website_name ? $p.journal.website_name :
$*text_website_default_name;
"""
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=7"/>
""";
$p->print_head();
$p->print_stylesheets();
print safe
"""
<title>$title</title>
</head>
<body marginwidth="0" marginheight="0" topmargin="0" leftmargin="0" bottommarg
in="0"><div class="pageholder">
""";
### Print the navigation strip.
$p->print_control_strip();
### Print a spacer at the top of the page above the components and main area.
"""<div><img src="$*PALIMGROOT/component/clear.gif" width="1" height="3" alt="
" /></div>""";
### Print the image header and the space divider.
if ($header_url != "") {
"""<div align="$header_align"><img src="$header_url" alt="$header_alt" t
itle="$header_alt" /></div>""";
if ($header_divider > 0) {
"""<div><img src="$*PALIMGROOT/component/clear.gif" width="1" he
ight="$header_divider" alt="" /></div>""";
}
}
### Shrink the layout.
if ($layout_width != "") {
"""<table align="$layout_align" cellpadding="0" cellspacing="0" style="$
layout_margin padding: 0px; width:$layout_width;"><tr><td>""";
}
### Add spacing on the left side.
if ($side_spacing) {
"""</td><td width="3"><img src="$*PALIMGROOT/component/clear.gif" width=
"3" height="1" alt="" /></td><td>""";
}
### Print the navigation bar.
if ($*comp_navbar or $*comp_state=="none")
{
if ($round_navbar == true) {
print $navbar_round_open;
} else {
print $navbar_square_open;
}
# Open the navigation menu.
"""<div class="header"><ul class="menu-list">""";
# Add default navigation links.
var string{} view_text = {
"recent" => $*nav_entries_text,
"friends" => $p.journal_type != "C" ? $*nav_frie
nds_text : $*text_view_friends_comm,
"archive" => $*nav_calendar_text,
"userinfo" => $*nav_info_text
};
var string base_url = $p.journal->base_url();
var string{} view_url = {
"recent" => get_url($p.journal, "recent"),
"friends" => get_url($p.journal, "friends"),
"archive" => get_url($p.journal, "archive"),
"userinfo" => get_url($p.journal, "userinfo")
};
foreach var string v ($views_order) {
if ($view_text{$v} != "") {
print """<li><a href="$view_url{$v}" class="headerLinks"
>$view_text{$v}</a></li>""";
}
}
# Add extra navigation links.
# You can re-order these if you want to.
# Link to Memories.
if ($mem_link) {
print """<li><a href="$*SITEROOT/tools/memories.bml?user=$p.jour
nal.username" class="headerLinks">$text_mem_link</a></li>""";
}
# Link to Scrapbook.
if ($sb_link) {
print """<li><a href="http://pics.livejournal.com/$p.journal.use
rname" class="headerLinks">$text_sb_link</a></li>""";
}
# Custom Links.
if ($custom_links) {
"""$code_custom_links""";
}
# Link to Website.
if ($p.journal.website_url != "") {
print """<li><a href="$p.journal.website_url" class="headerLinks
">$website_name</a></li>""";
}
# End of extra navigation links.
# Previous and Next Links.
$p->lay_viewspec_nav();
# Close the navigation menu.
"""</ul></div>""";
if ($round_navbar == true) {
print $navbar_round_close;
} else {
print $navbar_square_close;
}
}
### Print a spacer at the top of the page above the components and main area.
if (not $*comp_navbar) {
"""<div><img src="$*PALIMGROOT/component/clear.gif" width="1" height="3"
alt="" /></div>""";
}
### Start the table which lays out the components and main area side by side.
"""<table cellspacing="0" cellpadding="0" valign="top" width="100%"><tr>""";
if ($*comp_state == "none") {
print_my_entries($p, $title);
}
elseif ($*comp_state == "left") {
print_my_components($p);
"""<td><img src="$*PALIMGROOT/component/clear.gif" width="3" height="1"
alt="" /></td>""";
print_my_entries($p, $title);
# Add extra components if three column.
if ($three_column) {
"""<td><img src="$*PALIMGROOT/component/clear.gif" width="3" hei
ght="1" alt="" /></td><td cellpadding="0" cellspacing="0" valign="top"><table wi
dth="183" cellpadding="0" cellspacing="0">""";
# If you want to add more extra components on the right, copy/pa
ste the code for the first component.
# The second link starts at START FIRST COMPONENT and ends at EN
D FIRST COMPONENT.
# Put it after END SECOND COMPONENT then change the numbers to 3
, 4, etc.
# START FIRST COMPONENT
print_comp_header($extra_comp_title1);
"""
<BR><b>WEIGHT</b><br>
Starting: <br>
Current: <br>
Goal: <br>
<br>
<b>STARTING MEASUREMENTS</b><br>
Waist: <br>
Hips: <br>
Upper Arm: <br>
Thigh: <br>
Total: <br>
<br>
<b>CURRENT MEASUREMENTS</b><br>
Waist: <br>
Hips: <br>
Upper Arm: <br>
Thigh: <br>
Total Lost: <br>
<br>""";
print_comp_footer();
# END FIRST COMPONENT
# START SECOND COMPONENT
print_comp_header($extra_comp_title2);
"""
Sunday:<br>
<a href="http://tlc.discovery.com/tv/sister-wives/">Sister Wives 10pm TLC</a><br
>
Monday:<br>
<a href="http://www.fox.com/house/">House 8pm FOX</a> <i>//</i> <a href="http://
www.bravotv.com/thintervention-with-jackie-warner">Thintervention 10pm BRAVO</a>
<br>
Tuesday:<br>
<a href="http://abcfamily.go.com/shows/melissa-joey">Melissa & Joey 8pm ABCFAM</
a> <i>//</i> <a href="http://tlc.discovery.com/tv/duggars/">19 Kids & Counting 9
pm TLC</a> <i>//</i> <a href="http://www.mtv.com/shows/teen_mom/season_2/series.
jhtml">Teen Mom 10pm MTV</a><br>
Wednesday:<br>
<a href="http://tlc.discovery.com/tv/la-ink/">LA Ink 10pm TLC</a><br>
Thursday:<br>
<a href="http://www.cwtv.com/shows/the-vampire-diaries">Vampire Diaries 8pm CW</
a> <i>//</i> <a href="http://www.cwtv.com/shows/nikita">Nikita 9pm CW</a><br>
Friday:<br>
<a href="http://www.cwtv.com/shows/supernatural">Ghost Adventures 9pm</a><br>
""";
print_comp_footer();
# END SECOND COMPONENT
# START THIRD COMPONENT
print_comp_header($extra_comp_title3);
"""
$extra_comp_content3
""";
print_comp_footer();
# END THIRD COMPONENT
# START FOURTH COMPONENT
print_comp_header($extra_comp_title4);
"""
<br>
<b><a href="http://www.amazon.com/Unbearable-Lightness-Story-Loss-Gain/dp/143917
7783/ref=sr_1_1?ie=UTF8&s=books&qid=1292427423&sr=8-1">UNBEARABLE LIGHTNESS: A S
TORY OF LOSS AND GAIN</a></b><br>
<i>by Portia de Rossi</i><br>
<br>
""";
print_comp_footer();
# END FOURTH COMPONENT
# START FIFTH COMPONENT
print_comp_header($extra_comp_title5);
"""
$extra_comp_content5
""";
print_comp_footer();
# END FIFTH COMPONENT
# START SIXTH COMPONENT
print_comp_header($extra_comp_title6);
"""
$extra_comp_content6
""";
print_comp_footer();
# END SIXTH COMPONENT
"""</table></td>""";
}
} elseif ($*comp_state == "right") {
# Add extra components if three column.
# Add extra components if three column.
if ($three_column) {
"""<td cellpadding="0" cellspacing="0" valign="top"><table width
="183" cellpadding="0" cellspacing="0">""";
# If you want to add more extra components on the left, copy/pas
te the code for the first component.
# The first component starts at START FIRST COMPONENT and ends a
t END FIRST COMPONENT.
# Put it after END SECOND COMPONENT then change the numbers to 3
, 4, etc.
# START FIRST COMPONENT
print_comp_header($extra_comp_title1);
"""
$extra_comp_content1
""";
print_comp_footer();
# END FIRST COMPONENT
# START SECOND COMPONENT
print_comp_header($extra_comp_title2);
"""
$extra_comp_content2
""";
print_comp_footer();
# END SECOND COMPONENT
# START THIRD COMPONENT
print_comp_header($extra_comp_title3);
"""
$extra_comp_content3
""";
print_comp_footer();
# END THIRD COMPONENT
# START FOURTH COMPONENT
print_comp_header($extra_comp_title4);
"""
$extra_comp_content4
""";
print_comp_footer();
# END FOURTH COMPONENT
# START FIFTH COMPONENT
print_comp_header($extra_comp_title5);
"""
$extra_comp_content5
""";
print_comp_footer();
# END FIFTH COMPONENT
"""</table></td><td><img src="$*PALIMGROOT/component/clear.gif"
width="3" height="1" alt="" /></td>""";
}
print_my_entries($p, $title);
"""<td><img src="$*PALIMGROOT/component/clear.gif" width="3" height="1"
alt="" /></td>""";
print_my_components($p);
}
### Close the table which lays out the components and main area side by side.
"""</tr></table>""";
### Add spacing on the right side.
if ($side_spacing) {
"""</td><td width="3"><img src="$*PALIMGROOT/component/clear.gif" width=
"3" height="1" alt="" /></td><td>""";
}
### Close the layout table.
if ($layout_width != "") {
"""</td></tr></table>""";
}
"""
</div></body>
</html>
""";
}
# SQUARE LAYOUT#
########################################
# SQUARE LAYOUT (V2) - SQUARE HEADERS #
# overrides: #
# print_entry_header(string content) #
# print_comp_header(string content) #
# source: #
# component_help/1226899.html #
########################################
#==================================
#
# SQUARE ENTRY HEADERS #
#
#==================================
function print_entry_header(string content) {
"""
<table cellspacing="0" cellpadding="0" width="100%">
<tr>
<td class="dkLine" colspan="7"><img src="$*PALIMGROOT/component/clear.gif" w
idth="1" height="1" alt="" /></td>
</tr>
<tr>
<td class="dkLine" colspan="1"><img src="$*PALIMGROOT/component/clear.gif" w
idth="1" height="1" alt="" /></td>
<td class="ltLine" colspan="5"><img src="$*PALIMGROOT/component/clear.gif" w
idth="1" height="1" alt="" /></td>
<td class="dkLine" colspan="1"><img src="$*PALIMGROOT/component/clear.gif" w
idth="1" height="1" alt="" /></td>
</tr>
<tr>
<td class="dkLine" colspan="1"><img src="$*PALIMGROOT/component/clear.gif" w
idth="1" height="1" alt="" /></td>
<td class="ltLine" colspan="1"><img src="$*PALIMGROOT/component/clear.gif" w
idth="1" height="1" alt="" /></td>
<td class="medLine" colspan="4"><img src="$*PALIMGROOT/component/clear.gif"
width="1" height="1" alt="" /></td>
<td class="dkLine" colspan="1"><img src="$*PALIMGROOT/component/clear.gif" w
idth="1" height="1" alt="" /></td>
</tr>
<tr>
<td class="dkLine" rowspan="3" colspan="1"><img src="$*PALIMGROOT/component/
clear.gif" width="1" height="1" alt="" /></td>
<td class="ltLine" rowspan="3" colspan="1"><img src="$*PALIMGROOT/component/
clear.gif" width="1" height="1" alt="" /></td>
<td class="medLine" rowspan="3" colspan="1"><img src="$*PALIMGROOT/component
/clear.gif" width="1" height="1" alt="" /></td>
<td class="tabBg" rowspan="1" colspan="2"><img src="$*PALIMGROOT/component/c
lear.gif" width="1" height="1" alt="" /></td>
<td class="medLine" rowspan="3" colspan="1"><img src="$*PALIMGROOT/component
/clear.gif" width="1" height="1" alt="" /></td>
<td class="dkLine" rowspan="3" colspan="1"><img src="$*PALIMGROOT/component/
clear.gif" width="1" height="1" alt="" /></td>
</tr>
<tr>
<td class="tabBg" colspan="2"><img src="$*PALIMGROOT/component/clear.gif" wid
th="1" height="1" alt="" /></td>
</tr>
<tr>
<td class="tabBg" colspan="2"><img src="$*PALIMGROOT/component/clear.gif" wi
dth="1" height="3" alt="" /></td>
</tr>
<tr>
<td class="dkLine" width="1" rowspan="3"><img src="$*PALIMGROOT/component/cl
ear.gif" width="1" height="1" alt="" /></td>
<td class="ltLine" width="1" rowspan="2"><img src="$*PALIMGROOT/component/cl
ear.gif" width="1" height="1" alt="" /></td>
<td class="medLine" width="3"><img src="$*PALIMGROOT/component/clear.gif" wi
dth="1" height="3" alt="" /></td>
<td class="tabBg" width="100%">
<div class="entryDate" style="position:relative; top:-3px; left:2px;">$con
tent</div>
</td>
<td class="tabBg" width="3"><img src="$*PALIMGROOT/component/clear.gif" widt
h="1" height="3" alt="" /></td>
<td class="medLine" width="1" rowspan="2"><img src="$*PALIMGROOT/component/c
lear.gif" width="1" height="1" alt="" /></td>
<td class="dkLine" width="1" rowspan="3"><img src="$*PALIMGROOT/component/cl
ear.gif" width="1" height="1" alt="" /></td>
</tr>
<tr>
<td class="medLine" colspan="4"><img src="$*PALIMGROOT/component/clear.gif"
width="1" height="1" alt="" /></td>
</tr>
<tr>
<td class="dkLine" colspan="5"><img src="$*PALIMGROOT/component/clear.gif" w
idth="1" height="1" alt="" /></td>
</tr>
</table>""";
}
#==================================
#
# SQUARE COMPONENT HEADERS #
#
#==================================
function print_comp_header(string content) {
"""
<tr>
<td class="dkLine" colspan="7"><img src="$*PALIMGROOT/component/clear.gif" w
idth="1" height="1" alt="" /></td>
</tr>
<tr>
<td class="dkLine" colspan="1"><img src="$*PALIMGROOT/component/clear.gif" w
idth="1" height="1" alt="" /></td>
<td class="ltLine" colspan="5"><img src="$*PALIMGROOT/component/clear.gif" w
idth="1" height="1" alt="" /></td>
<td class="dkLine" colspan="1"><img src="$*PALIMGROOT/component/clear.gif" w
idth="1" height="1" alt="" /></td>
</tr>
<tr>
<td class="dkLine" colspan="1"><img src="$*PALIMGROOT/component/clear.gif" w
idth="1" height="1" alt="" /></td>
<td class="ltLine" colspan="1"><img src="$*PALIMGROOT/component/clear.gif" w
idth="1" height="1" alt="" /></td>
<td class="medLine" colspan="4"><img src="$*PALIMGROOT/component/clear.gif"
width="1" height="1" alt="" /></td>
<td class="dkLine" colspan="1"><img src="$*PALIMGROOT/component/clear.gif" w
idth="1" height="1" alt="" /></td>
</tr>
<tr>
<td class="dkLine" rowspan="3" colspan="1"><img src="$*PALIMGROOT/component/
clear.gif" width="1" height="1" alt="" /></td>
<td class="ltLine" rowspan="3" colspan="1"><img src="$*PALIMGROOT/component/
clear.gif" width="1" height="1" alt="" /></td>
<td class="medLine" rowspan="3" colspan="1"><img src="$*PALIMGROOT/component
/clear.gif" width="1" height="1" alt="" /></td>
<td class="tabBg" rowspan="1" colspan="2"><img src="$*PALIMGROOT/component/c
lear.gif" width="1" height="1" alt="" /></td>
<td class="medLine" rowspan="3" colspan="1"><img src="$*PALIMGROOT/component
/clear.gif" width="1" height="1" alt="" /></td>
<td class="dkLine" rowspan="3" colspan="1"><img src="$*PALIMGROOT/component/
clear.gif" width="1" height="1" alt="" /></td>
</tr>
<tr>
<td class="tabBg" colspan="2"><img src="$*PALIMGROOT/component/clear.gif" wi
dth="1" height="1" alt="" /></td>
</tr>
<tr>
<td class="tabBg" colspan="2"><img src="$*PALIMGROOT/component/clear.gif" wi
dth="1" height="3" alt="" /></td>
</tr>
<tr>
<td class="dkLine" width="1" rowspan="3"><img src="$*PALIMGROOT/component/cl
ear.gif" width="1" height="1" alt="" /></td>
<td class="ltLine" width="1" rowspan="2"><img src="$*PALIMGROOT/component/c
lear.gif" width="1" height="1" alt="" /></td>
<td class="medLine" width="3"><img src="$*PALIMGROOT/component/clear.gif" wi
dth="1" height="3" alt="" /></td>
<td class="tabBg" width="100%">
<div class="sideHeader" style="position:relative; top:-3px; left:2px;">$co
ntent</div>
</td>
<td class="tabBg" width="3"><img src="$*PALIMGROOT/component/clear.gif" widt
h="1" height="3" alt="" /></td>
<td class="medLine" width="1" rowspan="2"><img src="$*PALIMGROOT/component/c
lear.gif" width="1" height="1" alt="" /></td>
<td class="dkLine" width="1" rowspan="3"><img src="$*PALIMGROOT/component/cl
ear.gif" width="1" height="1" alt="" /></td>
</tr>
<tr>
<td class="medLine" colspan="4"><img src="$*PALIMGROOT/component/clear.gif"
width="1" height="1" alt="" /></td>
</tr>
<tr>
<td class="dkLine" colspan="5"><img src="$*PALIMGROOT/component/clear.gif" w
idth="1" height="1" alt="" /></td>
</tr>
<tr>
<td class="dkLine" width="1"><img src="$*PALIMGROOT/component/clear.gif" wid
th="1" height="1" alt="" /></td>
<td class="compBg" width="1"><img src="$*PALIMGROOT/component/clear.gif" wid
th="1" height="3" alt="" /></td>
<td class="compBg" width="1"><img src="$*PALIMGROOT/component/clear.gif" wid
th="1" height="3" alt="" /></td>
<td class="compBg"><div class="compFont">""";
}
##################################################
# SQUARE LAYOUT (V2) - SQUARE BOTTOM NAV BAR #
# overrides: #
# print_bottom_nav(RecentPage p) #
# source: #
# component_help/1227491.html #
##################################################
#==================================
#
# SQUARE BOTTOM NAV BAR #
#
#==================================
function print_bottom_nav(RecentPage p)
{
var string prev_arrow ="""<img src="$*backarrow" width="13" height ="10" alt =
"$*nav_text_back" border="0" />""";
var string next_arrow ="""<img src="$*forwardarrow" width="13" height ="10" al
t ="$*nav_text_forward" border="0" />""";
### Start var string bottomnav_square_open ###
var string bottomnav_square_open =
"""
<table cellspacing="0" cellpadding="0" width="100%">
<tr>
<td class="dkLine" colspan="7"><img src="$*PALIMGROOT/component/clear.gif"
width="1" height="1" alt="" /></td>
</tr><tr>
<td class="dkLine" colspan="1"><img src="$*PALIMGROOT/component/clear.gif"
width="1" height="1" alt="" /></td>
<td class="ltLine" colspan="5"><img src="$*PALIMGROOT/component/clear.gif"
width="1" height="1" alt="" /></td>
<td class="dkLine" colspan="1"><img src="$*PALIMGROOT/component/clear.gif"
width="1" height="1" alt="" /></td>
</tr><tr>
<td class="dkLine" colspan="1"><img src="$*PALIMGROOT/component/clear.gif"
width="1" height="1" alt="" /></td>
<td class="ltLine" colspan="1"><img src="$*PALIMGROOT/component/clear.gif"
width="1" height="1" alt="" /></td>
<td class="medLine" colspan="4"><img src="$*PALIMGROOT/component/clear.gif
" width="1" height="1" alt="" /></td>
<td class="dkLine" colspan="1"><img src="$*PALIMGROOT/component/clear.gif"
width="1" height="1" alt="" /></td>
</tr><tr>
<td class="dkLine" rowspan="3" colspan="1"><img src="$*PALIMGROOT/componen
t/clear.gif" width="1" height="1" alt="" /></td>
<td class="ltLine" rowspan="3" colspan="1"><img src="$*PALIMGROOT/componen
t/clear.gif" width="1" height="1" alt="" /></td>
<td class="medLine" rowspan="3" colspan="1"><img src="$*PALIMGROOT/compone
nt/clear.gif" width="1" height="1" alt="" /></td>
<td class="tabBg" rowspan="1" colspan="2"><img src="$*PALIMGROOT/component
/clear.gif" width="1" height="1" alt="" /></td>
<td class="medLine" rowspan="3" colspan="1"><img src="$*PALIMGROOT/compone
nt/clear.gif" width="1" height="1" alt="" /></td>
<td class="dkLine" rowspan="3" colspan="1"><img src="$*PALIMGROOT/componen
t/clear.gif" width="1" height="1" alt="" /></td>
</tr><tr>
<td class="tabBg" colspan="2"><img src="$*PALIMGROOT/component/clear.gif"
width="1" height="1" alt="" /></td>
</tr><tr>
<td class="tabBg" colspan="2"><img src="$*PALIMGROOT/component/clear.gif"
width="1" height="3" alt="" /></td>
</tr><tr>
<td class="dkLine" width="1" rowspan="3"><img src="$*PALIMGROOT/component/
clear.gif" width="1" height="1" alt="" /></td>
<td class="ltLine" width="1" rowspan="2"><img src="$*PALIMGROOT/component/
clear.gif" width="1" height="1" alt="" /></td>
<td class="medLine" width="3"><img src="$*PALIMGROOT/component/clear.gif"
width="1" height="3" alt="" /></td>
<td class="tabBg" width="100%" align="center">
<div class="compList" style="position: relative; top: -3px; left: 2px;">
""";
### End var string bottomnav_square_open ###
### Start var bottomnav_square_close ###
var string bottomnav_square_close =
"""
</div>
</td>
<td class="tabBg" width="3" ><img src="$*PALIMGROOT/component/clear.gif" w
idth="1" height="3" alt="" /></td>
<td class="medLine" width="1" rowspan="2"><img src="$*PALIMGROOT/component
/clear.gif" width="1" height="1" alt="" /></td>
<td class="dkLine" width="1" rowspan="3"><img src="$*PALIMGROOT/component/
clear.gif" width="1" height="1" alt="" /></td>
</tr><tr>
<td class="medLine" colspan="4"><img src="$*PALIMGROOT/component/clear.gif
" width="1" height="1" alt="" /></td>
</tr><tr>
<td class="dkLine" colspan="5"><img src="$*PALIMGROOT/component/clear.gif"
width="1" height="1" alt="" /></td>
</tr><tr>
<td><img src="$*PALIMGROOT/component/clear.gif" width="1" height="3" alt="
" /></td>
</tr>
</table>
""";
### End var string bottomnav_square_open ###
if ($p.nav.forward_url != "" or $p.nav.backward_url != "") {
print $bottomnav_square_open;
if($p.nav.backward_url != "") {
print safe """<a href="$p.nav.backward_url" class="headerLin
ks">$prev_arrow $*nav_text_back</a> """;
}
if($p.nav.forward_url != "" and $p.nav.backward_url != "") {
""" """;
}
if ($p.nav.forward_url != "") {
print safe """<a href="$p.nav.forward_url" class="headerLink
s">$*nav_text_forward $next_arrow</a>""";
}
print $bottomnav_square_close;
}
}
#==================================
#
# PREVIOUS AND NEXT LINKS #
#
#==================================
function Page::lay_viewspec_nav()
{
##### START CONFIGURATION. THIS IS WHERE YOU SET YOUR OPTIONS. #####
### Set your images for the arrows here. Edit URLs (src), widths and heights.
### Delete the whole img tag and simply leave two quotes ("") if you don't wan
t to use them.
var string prev_arrow ="""<img src="$*backarrow" width="13" height ="10" alt =
"$*nav_text_back" border="0" />""";
var string next_arrow ="""<img src="$*forwardarrow" width="13" height ="10" al
t ="$*nav_text_forward" border="0" />""";
##### END CONFIGURATION #####
##### DO NOT EDIT ANY OF THE FOLLOWING CODE UNLESS YOU KNOW WHAT YOU'RE DOING! #
####
var bool side = true;
if ($*comp_state == "none" or $*comp_navbar == false or ($.view == "friends" a
nd $*comp_friends == false)) { $side = false; }
var string prev_url = "";
var string prev = "";
var string next_url = "";
var string next = "";
if ($this isa RecentPage) {
var RecentPage rp = $this as RecentPage;
$prev_url = $rp.nav.backward_url;
$next_url = $rp.nav.forward_url;
}
if ($this isa MonthPage) {
var MonthPage mp = $this as MonthPage;
$prev_url = $mp.prev_url;
$next_url = $mp.next_url;
}
if ($this isa DayPage) {
var DayPage dp = $this as DayPage;
$prev_url = $dp.prev_url;
$next_url = $dp.next_url;
}
if ($this isa EntryPage) {
var EntryPage ep = $this as EntryPage;
var Link prev_link = $ep.entry->get_link("nav_prev");
$prev_url = $prev_link.url;
var Link next_link = $ep.entry->get_link("nav_next");
$next_url = $next_link.url;
}
if ($next_url != "" or $prev_url != "") {
if ($next_url != "") {
if ($side) {
$next = $next + """<div class="ltLine"><img src="$*PALIMGROOT/co
mponent/clear.gif" width="1" height="1" alt="" /></div>
<div class="compList"><a href="$next_url" class="hea
derLinks">$*nav_text_forward $next_arrow</a></div>""";
} else {
$next = $next + """<li><a href="$next_url" class="headerLinks">$
*nav_text_forward $next_arrow</a></li>""";
}
}
if ($prev_url != "") {
if ($side) {
$prev = $prev + """<div class="ltLine"><img src="$*PALIMGROOT/co
mponent/clear.gif" width="1" height="1" alt="" /></div>
<div class="compList"><a href="$prev_url" class="hea
derLinks">$prev_arrow $*nav_text_back</a></div>""";
} else {
$prev = $prev + """<li><a href="$prev_url" class="headerLinks">$
prev_arrow $*nav_text_back</a></li>""";
}
}
if ($*comp_navbar) {
print safe "$next $prev";
} else {
print safe "$prev $next";
}
}
}
function print_bottom_nav(RecentPage p)
{
##### START CONFIGURATION. THIS IS WHERE YOU SET YOUR OPTIONS. #####
### Set your images for the arrows here. Edit URLs, widths and heights.
### Delete the whole img tag and simply leave two quotes ("") if you don't wan
t to use them.
var string prev_arrow ="""<img src="$*backarrow" width="13" height ="10" alt =
"$*nav_text_back" border="0" />""";
var string next_arrow ="""<img src="$*forwardarrow" width="13" height ="10" al
t ="$*nav_text_forward" border="0" />""";
##### END CONFIGURATION #####
##### DO NOT EDIT ANY OF THE FOLLOWING CODE UNLESS YOU KNOW WHAT YOU'RE DOING! #
####
### Square Layout ###
### Insert the two bottomnav_square varialbles here. ###
if ($p.nav.forward_url != "" or $p.nav.backward_url != "") {
### Square Layout ###
### Replace the following code with print $bottomnav_square_open; ###
"""
<table cellspacing="0" cellpadding="0" width="100%">
<tr>
<td valign="top" rowspan="3" colspan="3" width="5"><img src="$*c
tl" width="5" height="5" alt="" /></td>
<td class="dkLine"><img src="$*PALIMGROOT/component/clear.gif" w
idth="1" height="1" alt="" /></td>
<td valign="top" rowspan="3" colspan="3" width="5"><img src="$*c
tr" width="5" height="5" alt="" /></td>
</tr><tr>
<td class="ltLine"><img src="$*PALIMGROOT/component/clear.gif" w
idth="1" height="1" alt="" /></td>
</tr><tr>
<td class="tabBg"><img src="$*PALIMGROOT/component/clear.gif" wi
dth="1" height="3" alt="" /></td>
</tr><tr>
<td class="dkLine" width="1"><img src="$*PALIMGROOT/component/cl
ear.gif" width="1" height="1" alt="" /></td>
<td class="ltLine" width="1"><img src="$*PALIMGROOT/component/cl
ear.gif" width="1" height="1" alt="" /></td>
<td class="tabBg" width="3"><img src="$*PALIMGROOT/component/cle
ar.gif" width="1" height="3" alt="" /></td>
<td class="tabBg" width="100%" align="center">
<div class="compList">
""";
### Square Layout ###
### End of the first replacement ###
if($p.nav.backward_url != "") {
print safe """<a href="$p.nav.backward_url" class="headerLin
ks">$prev_arrow $*nav_text_back</a> """;
}
if($p.nav.forward_url != "" and $p.nav.backward_url != "") {
""" """;
}
if ($p.nav.forward_url != "") {
print safe """<a href="$p.nav.forward_url" class="headerLink
s">$*nav_text_forward $next_arrow</a>""";
}
### Square Layout ###
### Replace the following code with print $bottomnav_square_clos
e; ###
"""
</div>
</td>
<td class="tabBg" width="3"><img src="$*PALIMGROOT/component/cle
ar.gif" width="1" height="3" alt="" /></td>
<td class="ltLine" width="1"><img src="$*PALIMGROOT/component/cl
ear.gif" width="1" height="1" alt="" /></td>
<td class="dkLine" width="1"><img src="$*PALIMGROOT/component/cl
ear.gif" width="1" height="1" alt="" /></td>
</tr><tr>
<td valign="top" rowspan="3" colspan="3" width="5"><img src="$*c
bl" width="5" height="5" alt="" /></td>
<td class="tabBg"><img src="$*PALIMGROOT/component/clear.gif" wi
dth="1" height="3" alt="" /></td>
<td valign="top" rowspan="3" colspan="3" width="5"><img src="$*c
br" width="5" height="5" alt="" /></td>
</tr><tr>
<td class="ltLine"><img src="$*PALIMGROOT/component/clear.gif" w
idth="1" height="1" alt="" /></td>
</tr><tr>
<td class="dkLine"><img src="$*PALIMGROOT/component/clear.gif" w
idth="1" height="1" alt="" /></td>
</tr>
</table>
<div><img src="$*PALIMGROOT/component/clear.gif" width="1" height="3" al
t="" /></div>
""";
### Square Layout ###
### End of the second replacement ###
}
}
######################################
# CUSTOM NAVIGATION COMPONENT #
# overrides: #
# print_nav_comp(Page p) #
# Page::lay_viewspec_nav() #
# source: #
# component_help/1224821.html #
######################################
#========================================
#
# PROPERTIES PERTAINING TO THE LAYOUT #
#
#========================================
### TEXT OF THE NAVIGATION MENU LINKS ###
set nav_entries_text = "entries";
set nav_friends_text = "friends";
set nav_calendar_text = "calendar";
set nav_info_text = "user info";
### TEXT OF THE PREVIOUS AND NEXT LINKS (TOP BAR AND BOTTOM BAR) ###
# Remove the text if you only want to use the arrows.
set nav_text_forward = "next";
set nav_text_back = "previous";
#==================================
#
# NAVIGATION COMPONENT #
#
#==================================
### Set navigation to a component. DO NOT CHANGE THIS. ###
set comp_navbar = false;
function print_nav_comp(Page p)
{
##### START CONFIGURATION. THIS IS WHERE YOU SET YOUR OPTIONS. #####
### NAVIGATION STYLE OPTION ###
# Square navigation component: true or false?
var bool square_nav = true;
# Divider between each element: true or false?
var bool divider = true;
### NAVIGATION MENU OPTIONS ###
# Order of the default menu links. Change the names to change the order.
var string[] views_order = [
"recent",
"friends",
"archive",
"userinfo"
];
# Add links to memories/scrapbook: true or false?
var bool mem_link = false;
var bool sb_link = false;
# Text of the links to memories/scrapbook.
var string text_mem_link = "memories";
var string text_sb_link = "scrapbook";
# Add custom links: true or false?
# See below to edit the address URLs and link names or to add more links.
var bool custom_links = false;
##### END CONFIGURATION #####
##### !!! EDIT PART OF THE FOLLOWING CODE ONLY IF #####
##### YOU WANT TO REORDER THE EXTRA NAVIGATION LINKS #####
##### YOU WANT TO ADD CUSTOM LINKS #####
##### SCROLL DOWN FOR FURTHER INSTRUCTIONS #####
var string title = $p->title();
var string website_name = $p.journal.website_name ? $p.journal.website_name :
$*text_website_default_name;
var string compBR = """<div class="ltLine"><img src="$*PALIMGROOT/component/cl
ear.gif" width="1" height="1" alt="" /></div>""";
if (not $divider) { $compBR = ""; }
var string nav_round_open =
"""
<tr>
<td colspan="7">
<table cellspacing="0" cellpadding="0" width="100%">
<tr>
<td valign="top" rowspan="3" colspan="3" width="5"><img src="$*ctl" wi
dth="5" height="5" alt="" /></td>
<td class="dkLine"><img src="$*PALIMGROOT/component/clear.gif" width="
1" height="1" alt="" /></td>
<td valign="top" rowspan="3" colspan="3" width="5"><img src="$*ctr" wi
dth="5" height="5" alt="" /></td>
</tr><tr>
<td class="ltLine"><img src="$*PALIMGROOT/component/clear.gif" width="
1" height="1" alt="" /></td>
</tr><tr>
<td class="tabBg"><img src="$*PALIMGROOT/component/clear.gif" width="1
" height="3" alt="" /></td>
</tr><tr>
<td class="dkLine" width="1"><img src="$*PALIMGROOT/component/clear.gi
f" width="1" height="1" alt="" /></td>
<td class="ltLine" width="1"><img src="$*PALIMGROOT/component/clear.gi
f" width="1" height="1" alt="" /></td>
<td class="tabBg" width="3"><img src="$*PALIMGROOT/component/clear.gif
" width="1" height="3" alt="" /></td>
<td class="tabBg" width="100%">
""";
var string nav_round_close =
"""
</td>
<td class="tabBg" width="3"><img src="$*PALIMGROOT/component/clear.gif
" width="1" height="3" alt="" /></td>
<td class="ltLine" width="1"><img src="$*PALIMGROOT/component/clear.gi
f" width="1" height="1" alt="" /></td>
<td class="dkLine" width="1"><img src="$*PALIMGROOT/component/clear.gi
f" width="1" height="1" alt="" /></td>
</tr><tr>
<td valign="top" rowspan="3" colspan="3" width="5"><img src="$*cbl" wi
dth="5" height="5" alt="" /></td>
<td class="tabBg"><img src="$*PALIMGROOT/component/clear.gif" width="1
" height="3" alt="" /></td>
<td valign="top" rowspan="3" colspan="3" width="5"><img src="$*cbr" wi
dth="5" height="5" alt="" /></td>
</tr><tr>
<td class="ltLine"><img src="$*PALIMGROOT/component/clear.gif" width="
1" height="1" alt="" /></td>
</tr><tr>
<td class="dkLine"><img src="$*PALIMGROOT/component/clear.gif" width="
1" height="1" alt="" /></td>
</tr>
</table>
</td>
</tr>
<tr>
<td><img src="$*PALIMGROOT/component/clear.gif" width="1" height="3" alt=""
/></td>
</tr>
""";
var string nav_square_open =
"""
<tr>
<td class="dkLine" colspan="7"><img src="$*PALIMGROOT/component/clear.gif"
width="1" height="1" alt="" /></td>
</tr><tr>
<td class="dkLine" colspan="1"><img src="$*PALIMGROOT/component/clear.gif"
width="1" height="1" alt="" /></td>
<td class="ltLine" colspan="5"><img src="$*PALIMGROOT/component/clear.gif"
width="1" height="1" alt="" /></td>
<td class="dkLine" colspan="1"><img src="$*PALIMGROOT/component/clear.gif"
width="1" height="1" alt="" /></td>
</tr><tr>
<td class="dkLine" colspan="1"><img src="$*PALIMGROOT/component/clear.gif"
width="1" height="1" alt="" /></td>
<td class="ltLine" colspan="1"><img src="$*PALIMGROOT/component/clear.gif"
width="1" height="1" alt="" /></td>
<td class="medLine" colspan="4"><img src="$*PALIMGROOT/component/clear.gif
" width="1" height="1" alt="" /></td>
<td class="dkLine" colspan="1"><img src="$*PALIMGROOT/component/clear.gif"
width="1" height="1" alt="" /></td>
</tr><tr>
<td class="dkLine" rowspan="3" colspan="1"><img src="$*PALIMGROOT/componen
t/clear.gif" width="1" height="1" alt="" /></td>
<td class="ltLine" rowspan="3" colspan="1"><img src="$*PALIMGROOT/componen
t/clear.gif" width="1" height="1" alt="" /></td>
<td class="medLine" rowspan="3" colspan="1"><img src="$*PALIMGROOT/compone
nt/clear.gif" width="1" height="1" alt="" /></td>
<td class="tabBg" rowspan="1" colspan="2"><img src="$*PALIMGROOT/component
/clear.gif" width="1" height="1" alt="" /></td>
<td class="medLine" rowspan="3" colspan="1"><img src="$*PALIMGROOT/compone
nt/clear.gif" width="1" height="1" alt="" /></td>
<td class="dkLine" rowspan="3" colspan="1"><img src="$*PALIMGROOT/componen
t/clear.gif" width="1" height="1" alt="" /></td>
</tr><tr>
<td class="tabBg" colspan="2"><img src="$*PALIMGROOT/component/clear.gif"
width="1" height="1" alt="" /></td>
</tr><tr>
<td class="tabBg" colspan="2"><img src="$*PALIMGROOT/component/clear.gif"
width="1" height="3" alt="" /></td>
</tr><tr>
<td class="dkLine" width="1" rowspan="3"><img src="$*PALIMGROOT/component/
clear.gif" width="1" height="1" alt="" /></td>
<td class="ltLine" width="1" rowspan="2"><img src="$*PALIMGROOT/component
/clear.gif" width="1" height="1" alt="" /></td>
<td class="medLine" width="3"><img src="$*PALIMGROOT/component/clear.gif"
width="1" height="3" alt="" /></td>
<td class="tabBg" width="100%">
""";
var string nav_square_close =
"""
</td>
<td class="tabBg" width="3" ><img src="$*PALIMGROOT/component/clear.gif" w
idth="1" height="3" alt="" /></td>
<td class="medLine" width="1" rowspan="2"><img src="$*PALIMGROOT/component
/clear.gif" width="1" height="1" alt="" /></td>
<td class="dkLine" width="1" rowspan="3"><img src="$*PALIMGROOT/component/
clear.gif" width="1" height="1" alt="" /></td>
</tr><tr>
<td class="medLine" colspan="4"><img src="$*PALIMGROOT/component/clear.gif
" width="1" height="1" alt="" /></td>
</tr><tr>
<td class="dkLine" colspan="5"><img src="$*PALIMGROOT/component/clear.gif"
width="1" height="1" alt="" /></td>
</tr><tr>
<td><img src="$*PALIMGROOT/component/clear.gif" width="1" height="3" alt="
" /></td>
</tr>
""";
if ($square_nav) {
print $nav_square_open;
} else {
print $nav_round_open;
}
# Add default navigation links.
var string{} view_text = {
"recent" => $*nav_entries_text,
"friends" => $p.journal_type != "C" ? $*nav_frie
nds_text : $*text_view_friends_comm,
"archive" => $*nav_calendar_text,
"userinfo" => $*nav_info_text
};
var string base_url = $p.journal->base_url();
var string{} view_url = {
"recent" => get_url($p.journal, "recent"),
"friends" => get_url($p.journal, "friends"),
"archive" => get_url($p.journal, "archive"),
"userinfo" => get_url($p.journal, "userinfo")
};
foreach var string v ($views_order) {
if ($view_text{$v} != "") {
print """<div class="compList"><a href="$view_url{$v}" class="he
aderLinks">$view_text{$v}</a></div>""";
print $compBR;
}
}
# Add extra navigation links.
# You can re-order these if you want to.
# Link to Memories.
if ($mem_link) {
print """<div class="compList"><a href="$*SITEROOT/tools/memories.bml?us
er=$p.journal.username" class="headerLinks">$text_mem_link</a></div>""";
print $compBR;
}
# Link to Scrapbook.
if ($sb_link) {
print """<div class="compList"><a href="http://pics.livejournal.com/$p.j
ournal.username" class="headerLinks">$text_sb_link</a></div>""";
print $compBR;
}
# Custom Links.
if ($custom_links) {
# Edit the address URLs and link names. Use these lines as a template to
add more links.
"""<div class="compList"><a href="http://www.google.com/" class="headerL
inks">google</a></div>$compBR""";
"""<div class="compList"><a href="http://www.yahoo.com/" class="headerLi
nks">yahoo</a></div>$compBR""";
}
# Link to Website.
if ($p.journal.website_url != "") {
print """<div class="compList"><a href="$p.journal.website_url" class="h
eaderLinks">$website_name</a></div>""";
print $compBR;
}
# End of extra navigation links.
$p->lay_viewspec_nav();
if ($square_nav) {
print $nav_square_close;
} else {
print $nav_round_close;
}
}
#==================================
#
# PREVIOUS AND NEXT LINKS #
#
#==================================
function Page::lay_viewspec_nav()
{
##### START CONFIGURATION. THIS IS WHERE YOU SET YOUR OPTIONS. #####
### Set your images for the arrows here. Edit URLs (src), widths and heights.
### Delete the whole img tag and simply leave two quotes ("") if you don't wan
t to use them.
var string prev_arrow ="""<img src="$*backarrow" width="13" height ="10" alt =
"$*nav_text_back" border="0" />""";
var string next_arrow ="""<img src="$*forwardarrow" width="13" height ="10" al
t ="$*nav_text_forward" border="0" />""";
##### END CONFIGURATION #####
##### DO NOT EDIT ANY OF THE FOLLOWING CODE UNLESS YOU KNOW WHAT YOU'RE DOING! #
####
var string prev_url = "";
var string prev = "";
var string next_url = "";
var string next = "";
if ($this isa RecentPage) {
var RecentPage rp = $this as RecentPage;
$prev_url = $rp.nav.backward_url;
$next_url = $rp.nav.forward_url;
}
if ($this isa MonthPage) {
var MonthPage mp = $this as MonthPage;
$prev_url = $mp.prev_url;
$next_url = $mp.next_url;
}
if ($this isa DayPage) {
var DayPage dp = $this as DayPage;
$prev_url = $dp.prev_url;
$next_url = $dp.next_url;
}
if ($this isa EntryPage) {
var EntryPage ep = $this as EntryPage;
var Link prev_link = $ep.entry->get_link("nav_prev");
$prev_url = $prev_link.url;
var Link next_link = $ep.entry->get_link("nav_next");
$next_url = $next_link.url;
}
if ($next_url != "" or $prev_url != "") {
if ($prev_url != "") {
$prev = $prev + """<span class="compList"><a href="$prev_url" cl
ass="headerLinks">$prev_arrow $*nav_text_back</a></span>""";
}
if ($next_url != "") {
$next = $next + """<span class="compList"><a href="$next_url" cl
ass="headerLinks">$*nav_text_forward $next_arrow</a></span>""";
}
print safe "$prev $next";
}
}
# CUSTOM ENTRIES #
####################################################
# CUSTOM ENTRIES (V5) #
# overrides: #
# Entry::print_metadata() #
# CommentInfo::print_readlink #
# CommentInfo::print_postlink #
# CommentInfo::print() #
# Entry::lay_print_linkbar() #
# print_entry() #
# source: #
# component_help/1196581.html #
####################################################
#===============================================
#
# PROPERTIES PERTAINING TO ENTRIES #
#
#===============================================
### SUBJECT PROPERTY ###
# Text to be used when there is no subject. You can't use HTML.
# See below if you want to activate it.
set text_nosubject = "(no subject)";
### SECURITY ICON PROPERTIES ###
# Alternative text for security icons. You can't use HTML.
# Can also be used to replace the icons. See below.
set text_icon_alt_protected = "[protected post]";
set text_icon_alt_private = "[private post]";
set text_icon_alt_groups = "[custom friends groups post]";
### USERPIC PROPERTIES ###
# Display userpics on the recent page: true or false?
# Display userpics on the reply page and entry page: true or false?
# See below for other pages.
set show_entry_userpic = true;
set show_entrypage_userpic = true;
### METADATA PROPERTIES ###
# Text for metadata labels. You can't use HTML.
# See below to edit the label for Current Tags.
# See below if you want to use images instead of text.
set text_meta_location = "Current Location:";
set text_meta_mood = "Current Mood:";
set text_meta_music = "Current Music:";
set text_meta_groups = "Custom Friends Groups:";
### COMMENT LINKS PROPERTIES ###
# You can't use HTML.
# See below if you want to use images instead.
set text_post_comment = "+";
set text_post_comment_friends = "+";
set text_max_comments = "Maximum comments reached";
set text_read_comments = "1 // #";
set text_read_comments_friends = "1 // #";
set text_month_screened_comments = "";
set comment_divider = "";
### PERMALINK PROPERTY ###
# Text for the permalink. You can't use HTML.
# See below if you want to deactivate it.
set text_permalink = "Link";
### LINKBAR PROPERTIES ###
# Alternative text for the linkbar icons. You can't use HTML.
# If you want to hide a link, delete what's between the quotes.
# You also have to delete the image URL (see further down).
# See further down if you want text to replace images.
set text_edit_entry = "Edit Entry";
set text_edit_tags = "Edit Tags";
set text_tell_friend = "Tell a Friend";
set text_mem_add = "Add to Memories";
set text_watch_comments = "Track This";
set text_unwatch_comments = "Untrack This";
set text_flag = "Flag";
set text_entry_prev = "Previous Entry";
set text_entry_next = "Next Entry";
#===============================================
#
# METADATA #
#
#===============================================