Sie sind auf Seite 1von 57

layerinfo source_viewable = 1;

layerinfo "type" = "theme";


layerinfo "name" = "FREE: NEON GRUNGE";
set lineheight = 15;
set page_recent_items = 15;
set page_friends_items = 15;
set text_post_comment = "Comment";
set text_post_comment_friends = "Comment";
set comment_divider = "•";
set text_read_comments = "# // #";
set text_read_comments_friends = "# // #";
set main_bgcolor = "#ffffff";
set page_background_image = "http://i373.photobucket.com/albums/oo172/HeavenlyFa
ith/Backgrounds/Wood_floor_by_gnrbishop.jpg";
set background_scrolling = "fixed";
set entry_bgcolor = "#151514";
set entry_fgcolor = "#1D1D1D";
set header_bgcolor = "#030303";
set header_fgcolor = "#151514";
set comments_bgcolor = "#151514";
set comments_screened_bgcolor = "#151514";
set comp_fgcolor = "#1D1D1D";
set comp_bgcolor = "#10100f";
set calendar_fgcolor = "#393939";
set calendar_inactive = "#10100f";
set calendar_link = "#151514";
set calendar_active = "#10100f";
set underline_links = "no";
set comp_state = "left";
set comp_navbar = false;
set nav_text_forward = "Next Entry";
set nav_text_back = "Previous Entry";
set show_entry_userpic = true;
set show_profile = false;
set show_free_text = true;
set show_tags = false;
set show_summary = false;
set show_links = true;
# DATE AND TIME #
###################################################
# DATE AND TIME FORMATS (V2) #
# source: #
# component_help/1229834.html #
###################################################
## Edit these using http://www.livejournal.com/doc/s2/siteapi.core1.html#siteapi
.core1.dateformat.custom as a reference.
# Date format for entries and comments.
set lang_fmt_date_long = "%%month%% %%dayord%%, %%yyyy%%";
# Date format for entries and comments on the reply page.
set lang_fmt_date_med = "%%mon%%. %%dayord%%, %%yyyy%%";
# Date format for month pages.
set lang_fmt_month_long = "%%month%% %%yyyy%%";
# Time format everywhere.
set lang_fmt_time_short = "";
# WIDTH, HEADER IMAGE, ETC #
####################################
# CUSTOM LAYOUT (V3) #
# overrides: #
# page_layout(Page p) #
# Page::print_custom_head() #
# print_bottom_nav(RecentPage p) #
# source: #
# component_help/1226711.html #
####################################
#========================================
#
# PROPERTIES PERTAINING TO THE LAYOUT #
#
#=========================================
### POSITION OF THE NAVIGATION MENU ###
# Put the navigation menu into a sidebar component: true or false?
set comp_navbar = true;
### TEXT OF THE NAVIGATION MENU LINKS ###
### Remove the text if you want to hide a link.
set nav_entries_text = "entries";
set nav_friends_text = "friends";
set text_view_friends_comm = "members";
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 arrows.
set nav_text_forward = "next";
set nav_text_back = "previous";
### POSITION OF YOUR DEFAULT SIDEBAR ###
# Right, left or none?
set comp_state = "right";
#==================================
#
# CUSTOM STYLESHEET #
#
#==================================
function Page::print_custom_head()
{
"""
<style>
/* Icon for users */
img[src*="userinfo.gif"] {
width: 0px;
height: 0px;
background-repeat: no-repeat center left;
position: relative; top: -1px; left: -1px;
background-image: url(http://i633.photobucket.com/albums/uu58/andshefades/Marvel
ment/Journal%20Pixels/martini-pink.png) !important;
padding: 12px 11px 0 0 !important;
}
/* Icon for communities */
img[src*="community.gif"] {
width: 0px;
height: 0px;
background-repeat: no-repeat center left;
position: relative; top: 1px; left: -1px;
background-image: url(http://i633.photobucket.com/albums/uu58/andshefades/Marvel
ment/Journal%20Pixels/pin-gray.gif) !important;
padding: 12px 11px 0 0 !important;
}
input[style*="url(http://p-stat.livejournal.com/img/userinfo.gif)"] {
background-image: url(http://i633.photobucket.com/albums/uu58/andshefades/Marvel
ment/Journal%20Pixels/martini-pink.png) !important;
}
.ljuser * {
color: #5a3b17 !important;
font-family: arial;
}
.ljuser *:hover {
color: #5a3b17 !important;
font-size: 8pt;
font-weight: bold;
text-transform: none;
font-family: arial;
text-decoration: none;
line-height: 9pt;
}
/*CSS FOR FONT, BOLD, LINKS, ETC*/
body, tr, td, table, p {
font-family: arial !important;
font-size: 8pt !important;
}
b {
font-family: arial;
color: #ffffff;
font-size: 8pt;
letter-spacing: 0px;
line-height: 9pt;
font-weight: normal;
text-transform: normal;
}
i {
font-family: arial;
color: #69d9ff;
font-size: 8pt;
letter-spacing: 0px;
line-height: 9pt;
}
u {
font-family: arial;
color: #ff77f7;
font-size: 8pt;
letter-spacing: 0px;
line-height: 9pt;
}
A:active {
color: #ffffff !important;
font-size: 8pt;
text-transform: uppercase;
font-family: arial;
text-decoration: none;
line-height: 9pt;
font-weight: bold;
cursor: default;
}
A:visited {
color: #ffffff !important;
font-size: 8pt;
text-transform: uppercase;
font-family: arial;
text-decoration: none;
line-height: 9pt;
font-weight: bold;
cursor: default;
}
A:link {
color: #ffffff !important;
font-size: 8pt;
text-transform: uppercase;
font-family: arial;
text-decoration: none;
line-height: 9pt;
font-weight: bold;
cursor: default;
}
a:hover {
color: #ff77f7 !important;
font-size: 8pt;
font-weight: bold;
text-transform: uppercase;
font-family: arial;
text-decoration: none;
line-height: 9pt;
letter-spacing: 0px;
cursor: default;
position: relative; top: 0px; left: 0px;
}
/*CSS FOR ENTRIES*/
.entry img {
max-width: 400px;
overflow: hidden;
filter:alpha(opacity=99);
-moz-opacity:.99;
opacity:.99;
}
.entryHolderBg {background-image: url(http://i373.photobucket.com/albums/oo172
/HeavenlyFaith/Backgrounds/Wood_floor_by_gnrbishop2.jpg);}
.entry img:hover {
filter:alpha(opacity=89);
-moz-opacity:.99;
opacity:.89;
}
.entry {
color: #91693b !important;
font-family: arial;
font-size: 8pt !important;
line-height: 9pt;
text-align: justify;
}
select, input, textarea {
color: #91693b !important;
font-family: georgia;
font-size: 12pt;
font-style: italic;
text-transform: normal;
background-color: #5a3b17;
background-image: url('');
border: 1px solid #ffffff;
}
::-moz-selection {
background: #ffffff;
color: #151514;
}
/*CSS FOR CALENDAR*/
.calendarActive {
border: 1px solid #91693b;
color: #030303;
font-size: 8pt;
line-height: 9pt;
padding: 3px;
}
.calendarInactive {
border: 1px solid #91693b;
color: #030303;
font-size: 8pt;
line-height: 9pt;
padding: 3px;
}
.calendarHover {
border: 1px solid #91693b;
color: #030303;
font-size: 8pt;
line-height: 9pt;
padding: 3px;
}
.calendarVisited {
border: 1px solid #91693b;
color: #030303;
font-size: 8pt;
line-height: 9pt;
padding: 3px;
}
/*CSS FOR ENTRY SUBECTS + DATE/TIME*/
.side img {
max-width: 200px;
overflow: hidden;
filter:alpha(opacity=79);
-moz-opacity:.79;
opacity:.79;
}
.side img:hover {
filter:alpha(opacity=89);
-moz-opacity:.79;
opacity:.89;
}
.entryDate * {
font-family: arial;
font-size: 8pt !important;
color: #FFFFFF !important;
font-weight: normal;
letter-spacing: 2px;
text-transform: normal;
font-variant: small-caps;
border: 0px !important;
}
.entryHeader {
color: #ffffff!important;
font-weight: normal;
text-transform: uppercase;
font-variant: normal;
font-family: arial;
font-size: 8pt !important;
letter-spacing: 1px;
}
.entryComments {
font-size: 8pt !important;
}
/*CSS FOR SIDEBAR CONTENT / HEADER*/
.sideHeader {
font-family: arial;
font-size: 7pt !important;
color: #FFFFFF !important;
letter-spacing: 2px;
font-variant: small-caps;
font-weight: normal;
text-transform: normal;
border: 0px !important;
}
.compBg {
background-image: url(http://i373.photobucket.com/albums/oo172/HeavenlyFaith
/Backgrounds/Wood_floor_by_gnrbishop2.jpg)
}
.compFont * {
color: #91693b !important;
font-size: 8pt !important;
font-family: arial;
line-height: 9pt;
}
.compFont b {
font-family: arial;
font-size: 8pt !important;
color: #ffffff !important;
letter-spacing: 0px;
line-height: 9pt;
}
.compFont i {
font-family: arial;
font-size: 8pt !important;
color: #ff87ce !important;
letter-spacing: 0px;
line-height: 9pt;
}
.compFont u {
font-family: arial;
font-size: 8pt !important;
color: #69d9ff !important;
letter-spacing: 2px;
line-height: 9pt;;
}
/* CSS for the navigation bar */
.header {
background-image: url() !important;
height: 20px !important;
line-height: 20px !important;
}
.menu-list {
margin: 0 !important;
padding: 0 !important;
}
.menu-list li {
display: inline !important;
padding-left: 15px !important;
}
/* End CSS for the navigation bar */
</style>
""";
}
#==================================
# ADD COMPONENTS #
#==================================
function print_free_text(Page p) {
### Do not edit these.
var string header = "";
var string content = "";
### First Component.
$header = """• A B O U T • M E •""";
$content = """<html><center><B><FONT color=#ffabd8 size=6 face=georgia>jamie</FO
NT><FONT color=#bcbcbc size=6 face=georgia>*</FONT></B><BR></center></html>
<table border="0" cellpadding="7" cellspacing="0" width="200"><tr><td><div align
="center"><a href="http://mysweetheaven.livejournal.com">Recent</a> • <a href="htt
p://mysweetheaven.livejournal.com/profile">Profile</a> • <a href="http://www.livej
ournal.com/editpics.bml">Icons</a></div></td></tr></table>""";
print_comp_header($header);
print $content;
print_comp_footer();
### Second Component.
$header = """Links""";
$content = """<table border="0" cellpadding="7" cellspacing="0" width="200"><tr>
<td><div align="center"><div align="center"><a href="http://www.sparkpeople.com/
">SparkPeople</a> | <a href="http://www.mapmyrun.com">MapMyRun</a><br>
<a href="http://www.http://www.calorieking.com/foods/">CalorieKing</a><br>
<br>
<div align="center"><a href="http://www.facebook.com">Facebook</a> | <a href="ht
tp://www.gmail.com">Gmail</a> | <a href="http://www.flickr.com">Flickr</a><br>
<a href="http://www.photobucket.com">Photobucket</a> | <a href="http://www.twitt
er.com">Twitter</a></div></div></div></td></tr></table>""";
print_comp_header($header);
print $content;
print_comp_footer();
### Third Component.
$header = """Contact Me""";
$content = """<table border="0" cellpadding="7" cellspacing="0" width="200"><tr>
<td><div align="left"><img src="http://i373.photobucket.com/albums/oo172/Heavenl
yFaith/social%20media%20icons/21aa78n.gif"> jamie.l.torres@gmail.com<br>
<img src="http://i373.photobucket.com/albums/oo172/HeavenlyFaith/social%20media%
20icons/1zxxnas.gif"> twitter.com/mysweetheaven<br>
<img src="http://i373.photobucket.com/albums/oo172/HeavenlyFaith/social%20media%
20icons/15373me.gif"> facebook.com/heavenlyfaith<br>
<img src="http://i373.photobucket.com/albums/oo172/HeavenlyFaith/social%20media%
20icons/2sble6s.gif"> flickr.com/mysweetheaven</div></td></tr></table> """;
print_comp_header($header);
print $content;
print_comp_footer();
### Fourth Component.
$header = """Calendar""";
$content = """<table border="0" cellpadding="7" cellspacing="0" width="200"><tr>
<td><div align="left"><U>JANUARY</U><br>
<b>4</b> - TLC Interview<br>
<b>10</b> - Committee Meeting<br>
<b>19</b> - Arlene's Birthday<br>
<b>29</b> - Council Meeting<br>
<br>
<U>FEBRUARY</U><br>
<b>6</b> - PR Anniversary<br>
<b>8</b> - Committee Meeting<br>
<b>14</b> - Valentine's Day<br>
<b>15</b> - Mayra's Birthday<br>
<b>16</b> - Council Meeting</div>
</td></tr></table>""";
print_comp_header($header);
print $content;
print_comp_footer();

### Fifth Component.


$header = """ALONG THE JOURNEY""";
$content = """<BR><li> <a href="http://www.likeawarmcupofcoffee.com/home/">Like
A Warm Cup Of Coffee</a> </li><BR>
<li> <a href="http://www.womenlivingwell.org/">Women Living Well</a> </li><BR>
<li> <a href="http://www.goodmorninggirls.org/">Good Morning Girls</a> </li><BR>
<li> <a href="http://scripturedig.com/">Scripture Dig</a> </li><BR>
<li> <a href="http://jborolandlady.wordpress.com/">Practical Housewifery</a> </l
i><BR>
<BR>""";
print_comp_header($header);
print $content;
print_comp_footer();

############################################
# 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 != "") {
""" &nbsp; &nbsp; """;
}
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 != "") {
""" &nbsp; &nbsp; """;
}
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 #
#
#===============================================

# Activate tags. Do not change this.


set tags_aware = true;
function Entry::print_metadata()
{
var string[] metadata = [];
var string{} meta_images = {};
var string{} meta_labels = {};
##### START CONFIGURATION. THIS IS WHERE YOU SET YOUR OPTIONS. #####
### PRESENTATION OPTION ###
# Order of the metadata. Move the names to change the order. Do not change the
syntax (quotes and commas).
$metadata =
[
"location",
"mood",
"music",
"tags",
"groups"
];
# Mood icon on the left of all the metadata: true or false?
var bool wrap_metadata = false;
### LABEL OPTIONS ###
# Text used as labels. Edit the one for tags. Include punctuation if you want
some.
# If you decide you'd rather have an image (see below), it will serve as a cap
tion.
# The other labels must be edited in properties (see above).
$meta_labels =
{
"tags" => "Tags » ",
"location" => $*text_meta_location,
"mood" => $*text_meta_mood,
"music" => $*text_meta_music,
"groups" => $*text_meta_groups,
};
# If you'd rather use images, enter their URLs between the quotes on the right
. Leave blank if you prefer text.
$meta_images =
{
"tags" => "http://i633.photobucket.com/albums/uu58/and
shefades/Marvelment/Journal%20Pixels/tag-2.png",
"location" => "http://i633.photobucket.com/albums/uu58
/andshefades/Marvelment/Journal%20Pixels/house-gray.png",
"mood" => "http://i633.photobucket.com/albums/uu58/and
shefades/Marvelment/Journal%20Pixels/rock-mouth.png",
"music" => "http://i633.photobucket.com/albums/uu58/an
dshefades/Marvelment/Journal%20Pixels/iPod.png",
"groups" => "http://i633.photobucket.com/albums/uu58/a
ndshefades/Marvelment/Journal%20Pixels/earth-light.png",
};
### TAG OPTIONS ###
# Set this to true if you want the tags header to link to Edit Entry Tags.
var bool show_edit_tags_link = false;
# Character used as a separator between tags. Include punctuation and space.
var string tags_separator = ", ";
### LOCATION OPTIONS ###
# Set this to true to delinkify location.
var bool vanilla_location = true;
### GROUPS OPTIONS ###
# Set this to true to delinkify groups.
var bool vanilla_groups= true;
### STYLING OPTIONS FOR METADATA LABELS ###
# Opening. You can use HTML of course.
var string meta_label_open = """<b>""";
# Closing. You can use HTML of course.
var string meta_label_close = """</b> """;
### STYLING OPTIONS FOR METADATA VALUES ###
# Opening. You can use HTML.
var string meta_val_open= "";
# Closing. You can use HTML.
var string meta_val_close = """<br />""";
##### END CONFIGURATION. #####
##### DO NOT EDIT ANY OF THE FOLLOWING CODE UNLESS YOU KNOW WHAT YOU'RE DOING! #
####
var string currents_open = """<div class="entryMetadata">""";
var string currents_close= """</div>""";
var bool have_meta = (size($.metadata) > 0); # do we have meta?
var bool have_tags = ((size($.tags) > 0) and $*tags_aware); # do we have tags?
var int tcount = 0;
var string currents = "";
var string image = "";
var string k = "";
var string label = "";
var string meta = "";
var string tag = "";
var string val = "";
var Tag t = new Tag;
var Link edit_tags = $this->get_link("edit_tags"); # helper var to see if remo
te user can edit tags
### Print metadata if we should.
if ($have_meta or $have_tags)
{
### Metadata in a Box ###
### Replace this line with $currents = $currents_open + $currents; ###
$currents = $currents_open + $currents;
if ($wrap_metadata and defined $.mood_icon) {
var Image i = $.mood_icon;
$currents = $currents + """<table><tr><td><img src="$i.url" width="$
i.width" height="$i.height" alt="$*text_meta_mood $.metadata{"mood"}" title="$*t
ext_meta_mood $.metadata{"mood"}" /></td><td>""";
}
# Step through metadata.
foreach $k ($metadata)
{
$label = $meta_labels{$k} != "" ? $meta_labels{$k} : lang_metada
ta_title($k); # get label
$image = $meta_images{$k} != "" ? $meta_images{$k} : ""; # get i
mage
$val = $.metadata{$k}; # get value
# If we have an image, get it.
if ($image != "") {
$label = """<img src="$image" alt="$label" title="$label
" border="0" />""";
}

# Delinkify location if user said so.


if (($k=="location") and $vanilla_location) {
$val = striphtml($val);
}
# Delinkify groups if user said so.
if (($k=="groups ") and $vanilla_groups ) {
$val = striphtml($val);
}
if ($k=="mood") {
if (defined $.mood_icon)
{
var Image i = $.mood_icon;
if (not $wrap_metadata) {
$val = """<img src="$i.url" width="$i.width" heigh
t="$i.height" alt="$*text_meta_mood $.metadata{"mood"}" title="$*text_meta_mood
$.metadata{"mood"}" /> $val""";
}
}
}
## If tags.
if (($k=="tags") and ($have_tags==true)) {
# If remote user can edit tags and users wants a link, g
ive them a link.
if($edit_tags.url != "" and $show_edit_tags_link) {
$label = """<a href="$edit_tags.url">$label</a>"""
;
}
# Build the tags list.
foreach $t ($.tags) {
$tag = """<a href="$t.url">$t.name</a>""";
$val = $val + $tag;
$tcount++;
# If we haven't hit the last tag, add a separator.
if ($tcount < size($.tags)) {
$val = $val + "$tags_separator";
}
}
} # End of tags.

# If we have a val, build meta.


if ($val != "") {
$meta = $meta_label_open + $label + $meta_label_close +
$meta_val_open + $val + $meta_val_close;
} else {
$meta = "";
}
# add meta to currents
$currents = $currents + $meta;
} # End of metadata.
# Print metadata.
if ($wrap_metadata and defined $.mood_icon) {
$currents = $currents + """</td></tr></table>""";
}
### Metadata in a Box ###
### Replace this line with $currents = $currents + $currents_close; ###
$currents = $currents + $currents_close;
println "$currents";
}
}
#===============================================
#
# READ COMMENTS LINK #
#
#===============================================
function CommentInfo::print_readlink()
{
##### START CONFIGURATION. THIS IS WHERE YOU SET YOUR OPTIONS. #####
### Enter your image URL if you want to replace the text link by an image link
.
var string img_url = "http://i633.photobucket.com/albums/uu58/andshefades/Marv
elment/Journal%20Pixels/read.png";
### Enter the width and height of your image URL if you want to replace the te
xt link by an image link.
var int img_width = 12;
var int img_height = 12;
### Set to true if you want to print the number of comments in front of your i
mage.
var bool img_count = false;
##### END CONFIGURATION. #####
##### DO NOT EDIT ANY OF THE FOLLOWING CODE UNLESS YOU KNOW WHAT YOU'RE DOING! #
####
if ($.show_readlink) {
var Page p = get_page();
var string url = $.read_url;
var string text = get_plural_phrase($.count, "text_read_comments" + ($p.
view == "friends" ? "_friends" : ""));
if ($.screened) {
$text = $text + " " + $*text_month_screened_comments;
}
if ($url != "") {
"""<a href="$url">""";
}
if ($img_url != "") {
if($img_count) {
print $.count;
}
"""<img src="$img_url" width="$img_width" height="$img_height" a
lt="$text" title="$text" border="0" />""";
} else {
print $text;
}
if ($url != "") {
"""</a>""";
}
}
}
#===============================================
#
# POST COMMENT LINK #
#
#===============================================
function CommentInfo::print_postlink()
{
##### START CONFIGURATION. THIS IS WHERE YOU SET YOUR OPTIONS. #####
### Enter your image URL if you want to replace the text link by an image link
.
var string img_url = "http://i633.photobucket.com/albums/uu58/andshefades/Marv
elment/Journal%20Pixels/reply.png";
### Enter the width and height of your image URL if you want to replace the te
xt link by an image link.
var int img_width = 12;
var int img_height = 12;
##### END CONFIGURATION. #####
##### DO NOT EDIT ANY OF THE FOLLOWING CODE UNLESS YOU KNOW WHAT YOU'RE DOING! #
####
if($.show_postlink) {
var Page p = get_page();
var string url = $.post_url;
var string text = get_plural_phrase(0, "text_post_comment" + ($p.view ==
"friends" ? "_friends" : ""));
if ($.maxcomments) {
print safe "$*text_max_comments";
}
else
{
if ($img_url != "") {
if ($p.view == "entry") {
$p->print_reply_link({"target" => "topcomment",
"img_url" =>$img_url, "alt" => $*text_post_comment, "title" => $*text_post_comm
ent});
}
else
{
"""<a href="$url"><img src="$img_url" width="$im
g_width" height="$img_height" alt="$text" title="$text" border="0" /></a>""";
}
} else {
if ($p.view == "entry") {
$p->print_reply_link({"target" => "topcomment",
"linktext" => $*text_post_comment});
}
else
{
"""<a href="$url">$text</a>""";
}
}
}
}
}
#===============================================
#
# PRINT COMMENT LINKS #
#
#===============================================
function CommentInfo::print()
{
##### START CONFIGURATION. THIS IS WHERE YOU SET YOUR OPTIONS. #####
### Enter your image URL if you want to replace the text divider by an image.
var string img_url = "";
### Enter the width and height of your image URL if you want to replace the te
xt divider by an image.
var int img_width = 0;
var int img_height = 0;
##### END CONFIGURATION. #####
##### DO NOT EDIT ANY OF THE FOLLOWING CODE UNLESS YOU KNOW WHAT YOU'RE DOING! #
####
if ($.show_readlink) {
$this->print_readlink();
if ($.show_postlink) {
if ($img_url != "") {
""" <img src="$img_url" width="$img_width" height="$img_
height" alt="$*comment_divider" title="$*comment_divider" border="0" /> """;
} else {
""" $*comment_divider """;
}
}
}
if ($.show_postlink) {
$this->print_postlink();
}
}
#===============================================
#
# PRINT ENTRY LINKBAR #
#
#===============================================
function Entry::lay_print_linkbar() : bool
{
var Page p = get_page();
if (($*show_entrynav_icons and $p.view == "entry") or ($*show_recentnav_icons
and ($p.view == "recent" or $p.view == "friends")))
{
##### START CONFIGURATION. THIS IS WHERE YOU SET YOUR OPTIONS. #####
# Position of the linkbar (edit, edit tags, etc.): in its usual place on the s
ide (side) or at the bottom (bottom)?
# !!! THIS OPTION MUST MATCH WHAT YOU'LL CHOOSE IN PRINT ENTRY !!!
var string linkbar_position = "bottom";
### Separator between links in the linkbar. You can edit this. HTML is allowed
.
### Note: if you've chosen to have the linkbar in its usual position, this wil
l automatically be set to line-break (<br>) so do not need add it.
var string linkbar_separator = """ """;
### Images used as links. If you'd rather use your own, replace $*edit_img, et
c. with your URLs.
### If you want to use text delete what's between the quotes on the right side
of the arrows.
### If you want to hide a link, also delete what's between the quotes.
### Make sure you delete the text in Linkbar Properties too (see above).
var string{} linkbar_images =
{
"edit_entry" => "http://i633.photobucket.
com/albums/uu58/andshefades/Marvelment/Journal%20Pixels/edit-1.gif",
"edit_tags" => "http://i633.photobucket.c
om/albums/uu58/andshefades/Marvelment/Journal%20Pixels/tags-gray.png",
"mem_add" => "http://i633.photobucket.com
/albums/uu58/andshefades/Marvelment/Journal%20Pixels/memorize-1.gif",
"tell_friend" => "http://i633.photobucket
.com/albums/uu58/andshefades/Marvelment/Journal%20Pixels/tell-2.png",
"flag" => "http://i633.photobucket.com/al
bums/uu58/andshefades/Marvelment/Journal%20Pixels/flag-1.gif",
"watch_comments" => "http://i633.photobuc
ket.com/albums/uu58/andshefades/Marvelment/Journal%20Pixels/track-1.gif",
"unwatch_comments" => "http://i633.photob
ucket.com/albums/uu58/andshefades/Marvelment/Journal%20Pixels/untrack-3.png",
"nav_prev" => "http://i633.photobucket.co
m/albums/uu58/andshefades/Journal%20Pixels/left.gif",
"nav_next" => "http://i633.photobucket.co
m/albums/uu58/andshefades/Journal%20Pixels/right.gif",
};
##### END CONFIGURATION. #####
##### DO NOT EDIT ANY OF THE FOLLOWING CODE UNLESS YOU KNOW WHAT YOU'RE DOING! #
####
var string{} linkbar_captions =
{
"edit_entry"=> $*text_edit_entry,
"edit_tags"=> $*text_edit_tags,
"mem_add"=> $*text_mem_add,
"tell_friend"=> $*text_tell_friend,
"flag" => $*text_flag,
"watch_comments"=> $*text_watch_comments,
"unwatch_comments" => $*text_unwatch_comm
ents,
"nav_prev"=> $*text_entry_prev,
"nav_next"=> $*text_entry_next,
};
# Set separator to br if linkbar is in its usual position.
$linkbar_separator = ($linkbar_position == "side") ? "<br/>" : $linkbar_separa
tor;
# Get Page handle.
var Page p = get_page();
# Initialize array/hashes.
var string[] link_keyseq = [""];
var string{} link_url = {"" => ""};
var string url = "";
var string text = "";
var string icon = "";
var string linkbar = "";
var bool show_interentry = ($p.view == "entry" or $p.view == "reply");
var int keyseq_index = 0;
if ($show_interentry) {
# If show interentry, put previous entry link first
$link_keyseq[$keyseq_index++] = "nav_prev";
# Get previous entry link information
var Link prev = $this->get_link("nav_prev");
$link_url{"nav_prev"} = $prev.url;
# Get next entry link information
var Link next = $this->get_link("nav_next");
$link_url{"nav_next"} = $next.url;
}
# Gather current linkbar
foreach var string link_key ($.link_keyseq) {
var Link link = $this->get_link($link_key);
$link_url{$link_key} = $link.url;
$link_keyseq[$keyseq_index++] = $link_key; # add this to new link_keyseq
array
}
if ($show_interentry) {
# If show interentry, put next entry link last
$link_keyseq[$keyseq_index++] = "nav_next";
}
foreach var string link_key ($link_keyseq) {
$url = $link_url{$link_key};
$text = $linkbar_captions{$link_key};
$icon = $linkbar_images{$link_key};
if ($url != "") {
$linkbar = $linkbar + """<a href="$url">""";
if ($icon != "") {
$linkbar = $linkbar + """<img src="$icon" alt="$text" title="$te
xt" border="0" class="linkbar-img" />""";
} elseif ($text != "") {
$linkbar = $linkbar + "$text";
}
$linkbar = $linkbar + "</a>$linkbar_separator";
}
}
# Hack off last separator.
$linkbar = $linkbar->substr(0, $linkbar->length() - $linkbar_separator->length
());
print $linkbar;
return true;
} else {
return false;
}
}
#===============================================
#
# PRINT ENTRIES #
#
#===============================================
function print_entry(Page p, Entry e, Color bgcolor, Color fgcolor, bool hide_te
xt)
{
##### START CONFIGURATION. THIS IS WHERE YOU SET YOUR OPTIONS. #####
### SECURITY ICONS ###
# Show an icon on public entries: true or false?
var bool show_public_icon = true;
# Image URLs for security icons. Replace with your own URLs if you want to.
# If you want to use text, delete what's between the quotes on the right side
of the arrows.
var string{} sec_urls =
{
"public" => "http://i633.photobucket.com/albums/
uu58/andshefades/Marvelment/Journal%20Pixels/unlocked.gif",
"protected"=> "http://i633.photobucket.com/album
s/uu58/andshefades/Marvelment/Journal%20Pixels/locked-custom.gif",
"custom" => "http://i633.photobucket.com/albums/
uu58/andshefades/Marvelment/Journal%20Pixels/locked-custom.gif",
"private" => "http://i633.photobucket.com/albums
/uu58/andshefades/Marvelment/Journal%20Pixels/locked-custom.gif",
};
# Text used as captions for the images or as text if you don't use images. Edi
t the one for public entries.
# The rest must be edited in properties.
var string{} sec_alts =
{
"public" => "[public post]",
"protected" => $*text_icon_alt_protected,
"custom" => $*text_icon_alt_groups,
"private" => $*text_icon_alt_private,
};
### USERPIC OPTIONS ###
# Position of userpics: inside or outside?
var string icon_position = "outside";
# Position of userpics: right or left?
var string icon_side = "left";
# User friends colors: true or false?
var bool use_friends_colors = false;
# If userpics are inside, have a border: true or false?
var bool show_border = true;
# Show userpic on friends page/day page: true or false?
# Options for other pages must be edited in properties.
var bool show_friends_userpic = true;
var bool show_day_userpic = false;
### SUBJECT OPTION ###
# When there is no subject display (no subject) text: true or false?
var bool use_nosubject = false;
### METADATA OPTIONS ###
# Position of the metadata: top or bottom?
var string meta_position = "bottom";
# When the userpic's inside and the entry's very short, force the metadata to
print below the icon rather next to it: true or false?
var bool meta_wrap = false;
### LINKBAR OPTIONS ###
# Position of the linkbar (edit, edit tags, etc.): in its usual place on the s
ide (side) or at the bottom (bottom)?
# !!! THIS OPTION MUST MATCH WHAT YOU'VE CHOSEN IN PRINT LINKBAR !!!
var string linkbar_position = "bottom";
### PERMALINK OPTION ###
# Display a permalink: true or false?
var bool show_permalink = false;
### SCROLLBAR OPTIONS ###
# Implement horizontal scrollbars: true or false?
# These will make sure your layout doesn't stretch horizontally when large con
tent is posted.
var bool show_hscroll = false;
##### END CONFIGURATION. #####
##### DO NOT EDIT ANY OF THE FOLLOWING CODE UNLESS YOU KNOW WHAT YOU'RE DOING! #
####
### Build anchor for the page summary.
var string id = ($p.view == "friends" ? $e.journal.username : "item") + $e.ite
mid;
$id = """<a name="$id" id="$id"></a>""";
### Build the entry header.
var string entry_header = "";
# Only show public icon if user wants to.
var string show_public = $show_public_icon ? "public" : "";
var string security = ($e.security != "") ? $e.security : $show_public;
### Spiffy Date ###
### Replace these lines with the ones from the tutorial. ###
# Add security icon/text to the entry header.
if ($sec_urls{$security} != "") {
$entry_header = $entry_header + """<img src="$sec_urls{$security}" alt="
$sec_alts{$security}" title="$sec_alts{$security}" style="vertical-align: middle
;" /> """;
} else {
$entry_header = $entry_header + """$sec_alts{$security} """;
}
# Add date and time to the entry header.
$entry_header = $entry_header + $e.time->time_format();
$entry_header = $entry_header + " ";
$entry_header = $entry_header + ($e.new_day ? "<b>" : "");
$entry_header = $entry_header + $e.time->date_format("long");
$entry_header = $entry_header + ($e.new_day ? "</b>" : "");
### End entry header.
### Spiffy Date ###
### End of code replacement. ###
### Varialbles for userpics and usernames.
var bool show_poster = ($p.view == "friends" or $p.journal.journal_type == "C"
);
var bool show_userpic = false;
var bool have_meta = false;
var string padding_pos = "";
var string iconborder = "";
var string icon_data = "";
$padding_pos = (($icon_side == "left") or ($icon_side == "right")) ? (($icon_s
ide == "left") ? "right" : "left") : "";
$icon_data = "";
var bool show_recent_userpic = $*show_entry_userpic; # show userpic on recent
page?
var bool show_entry_userpic = $*show_entrypage_userpic; # show userpic on entr
y page?
var bool show_reply_userpic = $*show_entrypage_userpic; # show userpic on repl
y page?
$show_userpic = (defined $e.userpic and
(
(($p.view == "recent") and $show_recent_us
erpic ) or
(($p.view == "friends") and $show_friends_
userpic ) or
(($p.view == "day") and $show_day_userpic
) or
(($p.view == "entry") and $show_entry_user
pic ) or
(($p.view == "reply") and $show_reply_user
pic )
)
);
$have_meta = (( size($e.metadata) > 0) or ((size($e.tags) > 0) and $*tags_awar
e));
var string friends_background = ($use_friends_colors) ? " background-color: $b
gcolor; border: 1px solid $fgcolor;" : "";
### Varialble for linkbar.
var string linkbar_side = $icon_side;
### Varialble for scrollbar.
var string scrolling = $show_hscroll ? "style='table-layout: fixed;'" : "";
### Print the anchor for the page summary.
print $id;
### Print the entry header.
print_entry_header($entry_header);
### Start the table holding the rest of the entries.
"""
<table cellspacing="0" cellpadding="0" width="100%">
<tr>
<td width="1" class="dkLine"><img src="$*PALIMGROOT/component/clear.gif" w
idth="1" height="1" alt="" /></td>
<td class="entryHolderBg" width="100%">
<table cellspacing="0" cellpadding="0" width="100%">
<tr>
""";
## Build the userpic and username if they exist/should be shown.
if ($show_poster or $show_userpic) {
# Start inside userpic section.
if ($icon_position == "inside") {
if ($show_border) {
$iconborder = " border: thin solid $*entry_fgcolor;";
}
$icon_data = $icon_data + """<div style="text-align: center; pad
ding: 2px; float: $icon_side; margin-$padding_pos: 4px; margin-bottom: 4px;$icon
border">""";
if ($show_userpic) {
if ($show_poster and $show_userpic) {
$icon_data = $icon_data + """<div style="padding
: 3px;$friends_background"><a href="$*SITEROOT/allpics.bml?user=$e.poster.userna
me"><img border="0" src="$e.userpic.url" width="$e.userpic.width" height="$e.use
rpic.height" alt="$e.poster.name" title="$e.poster.name" /></a></div>""";
} else {
$icon_data = $icon_data + """<div style="padding
: 3px;"><img border="0" src="$e.userpic.url" width="$e.userpic.width" height="$e
.userpic.height" alt="" /></div>""";
}
}
if ($show_poster) {
$icon_data = $icon_data + """<div class="ljuser">$e.jour
nal""";
if ($e.journal.username != $e.poster.username) {
$icon_data = $icon_data + "<br />$e.poster";
}
$icon_data = $icon_data + """</div>""";
}
$icon_data = $icon_data + """</div>""";
} # End userpic inside section.
else {
# Start outside userpic section.
$icon_data = $icon_data + """
<td valign="top" style="padding-$padding_pos: 8px;">
<table cellspacing="0" cellpadding="0" align="center">""";
if ($show_userpic) {
$icon_data = $icon_data + """<tr>""";
if ($show_poster and $show_userpic) {
$icon_data = $icon_data + """<td><div style="pad
ding-top: 3px; padding-left: 3px; padding-right: 3px; padding-bottom: 3px;$frien
ds_background;" align="center"><a href="$*SITEROOT/allpics.bml?user=$e.poster.us
ername"><img border="0" src="$e.userpic.url" width="$e.userpic.width" height="$e
.userpic.height" alt="$e.poster.name" title="$e.poster.name" style="border: 1px
solid #91693b"/></a></div></td>""";
} else {
$icon_data = $icon_data + """<td align="center"
class="userpic"><img src="$e.userpic.url" width="$e.userpic.width" height="$e.us
erpic.height" alt="" style="border: 1px solid #91693b;"/></td>""";
}
$icon_data = $icon_data + """</tr>""";
}
if ($show_poster) {
$icon_data = $icon_data + """<tr><td align="center" clas
s="ljuser">$e.journal""";
if ($e.journal.username!=$e.poster.username) {
$icon_data = $icon_data + """<div align="center"
class="ljuser">$e.poster</div>""";
}
$icon_data = $icon_data + """</td></tr>""";
}
$icon_data = $icon_data + """
</table>
</td>""";
}
# End userpic outside section.
}
## End userpic and username section.
## Print the userpic/username section if outside and left.
if ($icon_position == "outside" and $icon_side == "left") {
print $icon_data;
}
### Prints linkbar now if outside right.
if ($linkbar_position == "side" and $linkbar_side == "left") {
"""<td valign="top" style="padding-right: 8px;">"""; $e->lay_print_linkb
ar(); """</td>""";
}
## Start the entry text area.
"""<td width="100%" valign="top">""";
"""
<table cellspacing="0" cellpadding="0" width="100%">
<tr>
<td width="100%">
<table cellspacing="0" cellpadding="0" width="100%"$scrolling>
<tr>
<td width="1" class="medLine"><img src="$*PALIMGROOT/component/cle
ar.gif" width="1" height="1" alt="" /></td>
<td class="medLine"><img src="$*PALIMGROOT/component/clear.gif" wi
dth="1" height="1" alt="" /></td>
<td width="1" class="medLine"><img src="$*PALIMGROOT/component/cle
ar.gif" width="1" height="1" alt="" /></td>
</tr><tr>
<td width="1" class="medLine"><img src="$*PALIMGROOT/component/cle
ar.gif" width="1" height="1" alt="" /></td>
<td class="entry">
""";
# Print the subject.
var string subject ="";
var string nosubject = $use_nosubject ? $*text_nosubject : "";
$subject = $e.subject!="" ? $e.subject : $nosubject;
if ($subject !="") {
"""<div class="entryHeader">""";
if ($p.view != "entry") { """$subject"""; } else { print $subjec
t; }
"""</div>
<div class="entryDash"><img src="$*PALIMGROOT/component/clear.gif"
width="1" height="1" alt="" /></div>
</td>
<td width="1" class="medLine"><img src="$*PALIMGROOT/component/clear
.gif" width="1" height="1" alt="" /></td>
</tr>
<tr>
<td width="1" class="medLine"><img src="$*PALIMGROOT/component/clear
.gif" width="1" height="1" alt="" /></td>
<td class="entry">""";
}
# Add <div> around entry text and metadata to implement scrollbars.
if ($show_hscroll) {
"""<div style="width: 100%; overflow: auto;">""";
} else {
"""<div>""";
}
# Print the userpic/username section if inside.
if ($icon_position == "inside") {
print $icon_data;
}
# Print the metadata section if it's at the top.
if ($have_meta) {
if($meta_position == "top") {
$e->print_metadata();
print "<div><br /></div>";
}
}
# Print the entry text.
$e->print_text();
# Print the metadata section if it's at the bottom.
if ($have_meta) {
if($meta_position == "bottom") {
if ($meta_wrap) {
print """<div style="clear: both;"><br /></div>""";
} else {
print "<div><br /></div>";
}
$e->print_metadata();
}
}
# Close <div> around entry text and metadata.
"""</div>""";
## End of the entry text area
print_content_bottom();
## Print the comments links and the Quick Reply container.
"""
<table width="100%" cellpadding="0" cellspacing="0">
<tr>
<td width="50%" align="left" valign="center"><div class="entryComments">""
"; $e.comments->print(); """</div></td>
""";
### Var for permalink. If we have a linkbar, set the alignment to center, othe
rwise set it to right.
var string permalink_align;
if ($linkbar_position == "bottom") {
$permalink_align = "center";
} else {
$permalink_align = "right";
}
## Print a permanent link to the entry if the user wants to.
if ($show_permalink) {
"""
<td align="$permalink_align" valign="center">
<div class="entryComments"><span style="white-space:nowrap;"><a href="
$e.permalink_url" class="commentLinks"><img src="http://i271.photobucket.com/alb
ums/jj159/hushstar/Mini%20Pixels/cog.png"></a></span></div>
</td>
""";
}
### Print the linkbar if bottom position.
if ($linkbar_position == "bottom") {
"""<td width="50%" align="right" valign="center"><div class="entryCommen
ts">"""; $e->lay_print_linkbar(); """</div></td>""";
}
### Close the comments area.
"""</tr>
</table>
""";
### Quick Reply container.
$p->print_reply_container({"target" => "topcomment"});
### Prints linkbar now if outside right.
if ($linkbar_position == "side" and $linkbar_side == "right") {
"""<td valign="top" style="padding-left: 8px;">"""; $e->lay_print_linkba
r(); """</td>""";
}
### Prints icon now if outside right.
if ($icon_position == "outside" and $icon_side == "right") {
print $icon_data;
}
### End the entry component and put a spacer after it so that entry components
are separated.
"""
</tr>
</table>""";
### Round Layout ###
### Replace the following code with the one from the Round Entries tutorial. #
##
var int cs;
$cs = 5;
if (($linkbar_position == "bottom") or ($icon_position == "inside")) { $cs = 4
; }
"""</td>
<td width="1" class="dkLine"><img src="$*PALIMGROOT/comp
onent/clear.gif" width="1" height="1" alt="" /></td>
</tr><tr>
<td width="1" colspan="$cs" class="dkLine"><img src="$*P
ALIMGROOT/component/clear.gif" width="1" height="1" alt="" /></td>
</tr>
</table>""";
""" <div><img src="$*PALIMGROOT/component/clear.gif" width="3" height="3" alt=
"" /></div> """;
### Round Layout ###
### End of the replacement. ###
}
# REMOVE TITLE COMPONENT #
######################################
# REMOVE THE TITLE COMPONENT #
# overrides: #
# print_my_entries(Page p, string title) #
# source: #
# component_help/734925.html #
######################################
function print_my_entries(Page p, string title) {
# Start the column for the body. Do not delete this line.
"""<td valign="top" width="100%">""";
$p->print_body();
}
#===============================================
# PROPERTIES PERTAINING TO COMMENTS #
#===============================================
### USERPIC PROPERTY - YES, NO OR SMALL ###
set comment_userpic_style = "small";
set text_comment_from = "From:";
set text_poster_anonymous = "(Anonymous)";
set text_permalink = "Link";
set text_comment_date = "Date:";
set text_multiform_check = "Select:";
set text_comment_ipaddr = "IP Address:";
set text_comment_reply = "Reply";
set text_comment_frozen = "Frozen";
set text_comment_parent = "Parent";
set text_comment_thread = "Thread";
set text_comment_expand = "Expand";
set text_comment_edittime = "Edited at";
#===============================================
# POST COMMENT LINKBAR #
#===============================================
function Comment::print_linkbar() {var string link_separator = "&nbsp;";var stri
ng[] link_keyseq = [""];var string{} link_url = {"" => ""};var string{} link_cap
tion = {"" => ""};var string{} link_image = {"" => ""}; var string print = "";
foreach var string link_key ($.link_keyseq) {var Link link = $this->get_link($
link_key);$link_url{$link_key} = $link.url;$link_caption{$link_key} = $link.capt
ion;$link_image{$link_key} = $link.icon.url;$link_keyseq[size($link_keyseq)] = $
link_key; }
$link_image = {"edit_comment" => "http://i633.photobucket.com/albums/uu58/andshe
fades/Marvelment/Journal%20Pixels/edit-1.gif",
"delete_comment" => "http://i633.photobucket.com/albums/uu58/andshefades/Marvelm
ent/Journal%20Pixels/delete.png",
"screen_comment" => "http://i633.photobucket.com/albums/uu58/andshefades/Marvelm
ent/Journal%20Pixels/screen.png",
"unscreen_comment" => "http://i633.photobucket.com/albums/uu58/andshefades/Marve
lment/Journal%20Pixels/unfreezeorunscreen.png",
"freeze_thread" => "http://i633.photobucket.com/albums/uu58/andshefades/Marvelme
nt/Journal%20Pixels/freeze.png",
"unfreeze_thread" => "http://i633.photobucket.com/albums/uu58/andshefades/Marvel
ment/Journal%20Pixels/unfreezeorunscreen.png",
"watch_thread" => "http://i633.photobucket.com/albums/uu58/andshefades/Marvelmen
t/Journal%20Pixels/track-2.png",
"watching_parent" => "http://i633.photobucket.com/albums/uu58/andshefades/Marvel
ment/Journal%20Pixels/track-2.png",
"unwatch_thread" => "http://i633.photobucket.com/albums/uu58/andshefades/Marvelm
ent/Journal%20Pixels/untrack-1.gif",};
foreach var string link_key ($link_keyseq) {if($link_url{$link_key} != ""){$prin
t = $print + """<a href="$link_url{$link_key}">"""; if($link_image{$link_key} !
= ""){var string id = "";if($link_key->contains("screen")){ $id = "sus_";}if($li
nk_key->contains("freeze")){ $id = "fuf_";}$id = "$id$.talkid";$print = $print
+ """<img id="$id" src="$link_image{$link_key}" alt="$link_caption{$link_key}" t
itle="$link_caption{$link_key}" border="0" />""";} else {$print = $print + "$lin
k_caption{$link_key}";}$print = $print + "</a>$link_separator";}}$print = $print
->substr(0, $print->length() - $link_separator->length());print $print;}
#===============================================
# PRINT COLLAPSED COMMENTS #
#===============================================
function EntryPage::print_comment_partial (Comment c) {var string link_open_brac
ket = "("; var string link_close_bracket = ")";if($c.depth == 1) {var Comment[]
replies;$replies = $c.replies;var int count = 0;foreach var Comment reply ($repl
ies) {$count ++;}var string head;if($count > 0) {$head = "Thread started by a sc
reened user";} else {$head = "Comment by screened user";}print_entry_header($hea
d);print_comment_top();}var string content;if($c.screened) {$content = "<b>Scree
ned comment</b>";} else {var string poster = defined $c.poster ? $c.poster->as_s
tring() : "<i>(Anonymous)</i>";var string subj = $c.subject != "" ? $c.subject :
$*text_nosubject;$content = "<a href=\"$c.permalink_url\">$subj</a> - $poster"
;}var Link expand_link = $c->get_link("expand_comments");if ($c.thread_url != ""
and defined $expand_link) {$content = "$content " + "$link_open_bracket" + $c->
expand_link() + "$link_close_bracket";}print_comment_content_top($c);"$content";
print_comment_content_bottom();}
#===============================================
# PRINT FULL COMMENTS #
#===============================================
function EntryPage::print_comment(Comment c) {var string comment_prefix = "Comme
nt by "; var string thread_prefix = "Thread started by "; var string anonymous_t
itle = "Anonymous";
var Color comments_frozen_bgcolor = "#111"; var bool allpics_link = false; var b
ool show_picword = false; var string link_open_bracket = "("; var string link_cl
ose_bracket = ")"; var string ip_open_bracket = "["; var string ip_close_bracket
= "]";var string link_separator = "&nbsp;";var string header_bgcolor = ($c.scre
ened ? "$*comments_screened_bgcolor" : "$*comments_bgcolor");var string reply =
$*text_comment_reply;var bool print_reply_link = true;if ($c.frozen) { $header_b
gcolor = $comments_frozen_bgcolor; $print_reply_link = false; $reply = $*text_co
mment_frozen; }if ($.entry.comments.maxcomments) { $reply = $*text_max_comments;
$print_reply_link = false; }print """<a name="t$c.talkid"></a>""";if ($c.depth
== 1) {print_entry_header((size $c.replies > 0 ? $thread_prefix : $comment_prefi
x) + (defined $c.poster ? $c.poster.name : $anonymous_title)); print_comment_top
();}var int indent = ($c.depth - 1) * 25;""" <table cellspacing="0" cellpadding=
"0" width="100%"><tr><td><img src="$*PALIMGROOT/component/clear.gif" width="${in
dent}" height="1"></td><td width="100%"><table cellspacing="0" cellpadding="0" w
idth="100%"><tr><td width="1" class="medLine"><img src="$*PALIMGROOT/component/c
lear.gif" width="1" height="1" alt="" /></td><td class="medLine"><img src="$*PAL
IMGROOT/component/clear.gif" width="1" height="1" alt="" /></td><td width="1" cl
ass="medLine"><img src="$*PALIMGROOT/component/clear.gif" width="1" height="1" a
lt="" /></td></tr><tr><td width="1" class="medLine"><img src="$*PALIMGROOT/compo
nent/clear.gif" width="1" height="1" alt="" /></td><td class="entry" id='$c.dom
_id'>"""; """ <div style="background-color: $header_bgcolor; color: $*entry_fgc
olor; margin-top: 4px;"><table id="cmtbar$c.talkid" cellpadding="2" cellspacing=
"0" summary="0" width="100%" bgcolor="$header_bgcolor">"""; var bool show_userpi
c = (defined $c.userpic) and ($*comment_userpic_style != "off"); var bool show_i
p = ($c.metadata{"poster_ip"} != ""); var bool show_subject = ($c.subject != ""
or defined $c.subject_icon); """<tr valign="top">"""; if ($show_userpic) {var
string alttext = $c.poster.name;var string title = "";var string picword = $c.me
tadata{"picture_keyword"};var Image upi = $c.userpic;var int width = $upi.width;
var int height = $upi.height;var string userpic = "";if ($picword != "") { $alt
text = $alttext + ": " + $picword;}if ($show_picword) { $title = $alttext;}if (
$*comment_userpic_style == "small") { $width = $width / 2; $height = $height
/ 2;}$userpic = """<img src="$upi.url" width="$width" height="$height" alt="$al
ttext" title="$title" style="border: 1px solid #91693b;"/>""";if ($allpics_link)
{ $userpic = """<a href="$*SITEROOT/allpics.bml?user=$c.poster.username">$user
pic</a>""";}""" <td width="$width" align="center">$userpic</td><td> <table cellp
adding="2" cellspacing="0" summary="0" width="100%" bgcolor="$header_bgcolor"><t
r>""";}"""<td align="left" width="100%" style="white-space: nowrap;"><b>$*text_c
omment_from </b>"""; if (defined $c.poster) {"""$c.poster""";} else {"""$*text_p
oster_anonymous""";}"""</td>"""; """<td align="right" style="white-space: nowrap
">"""; $c->print_linkbar(); """</td>"""; """<td align="right"><b>$link_open_br
acket<a href="$c.permalink_url">$*text_permalink</a>$link_close_bracket</b></td>
"""; """</tr>"""; """<tr valign="top">"""; """<td colspan="2" align="left" styl
e="white-space: nowrap"><b>$*text_comment_date</b> """; print $c->time_display("
long", ""); """</td>"""; if ($.multiform_on) {"""<td align="right" style="white-
space: nowrap"><label for="ljcomsel_$c.talkid">$*text_multiform_check</label>"""
; $c->print_multiform_check(); """</td>""";}"""</tr>"""; if ($show_ip) {"""<tr v
align="top">"""; """<td colspan="3" align="left" style="white-space: nowrap"><b>
$*text_comment_ipaddr</b> $c.metadata{"poster_ip"}</td>"""; """</tr>""";}if ($sh
ow_subject) {"""<tr valign="top">"""; """<td colspan="3" class="commentSubject
">"""; if (defined $c.subject_icon) {"""$c.subject_icon """;}if ($c.subject != "
") {"""<b>$c.subject</b>""";}"""</td>"""; """</tr>""";}if ($show_userpic) {"""</
table></td></tr>""";}""" </table></div> """; """<div style="margin-left: 5px;">"
""; $c->print_text(); """</div>"""; """<div class="commentLink">$link_open_brack
et"""; if ($print_reply_link) {$c->print_reply_link({"linktext" => $reply});} el
se {"""$reply""";}"""$link_close_bracket"""; if ($c.parent_url != "") {"""$link_
separator$link_open_bracket<a href="$c.parent_url">$*text_comment_parent</a>$lin
k_close_bracket""";}if ($c.thread_url != "") {"""$link_separator$link_open_brack
et<a href="$c.thread_url">$*text_comment_thread</a>$link_close_bracket"""; var L
ink expand_link = $c->get_link("expand_comments"); if (defined $expand_link) {"$
link_separator$link_open_bracket" + $c->expand_link() + "$link_close_bracket";}}
if ($print_reply_link) {$c->print_reply_container({"class" => "quickreply_commen
t"});}"""</div>"""; print_comment_content_bottom();}

Das könnte Ihnen auch gefallen