# -*-s2-*- # Copyright (c) 2003-2005 Danga Interactive. All rights reserved. # # NOTICE: The Boxer style is not licensed for general use, and may not be # used in any production sites. We provide the source to The Boxer so that our # users and designers can learn the proper way to extend and customize the # style. layerinfo type = "layout"; layerinfo name = "The Boxer"; layerinfo author_name = "Kevin Phillips"; layerinfo author_email = "xevinx@livejournal.com"; layerinfo redist_uniq = "boxer/layout"; layerinfo previews = "boxer/boxer.jpg"; layerinfo source_viewable = 0; layerinfo is_public = 0; ############################################# # # Properties # ############################################# propgroup presentation = "Presentation"; propgroup presentation { property int page_width { des = "Page Width"; note = "Set in pixels what you want the page width to be."; min = 400; } property string page_align { des = "Page Alignment"; values = "left|Left|center|Center|right|Right"; } property use text_view_recent; property use text_view_friends; property use text_view_month; property use text_view_archive; property use linklist_support; property string links_name { des = "Links Title"; } property string links_divider { des = "Links Divider"; note = "This appears between each link to seperate them."; } property use page_recent_items; property use page_friends_items; property string my_date { des = "Date format"; note = "Choose the date format that will appear by each entry and each comment, followed by the time."; values = "short|2/5/80|med|Feb. 5th, 1980|med_day|Tue, Feb. 5th, 1980|long|February 5th, 1980|long_day|Tuesday, February 5th, 1980"; } property bool color_forms { des = "Form Elements"; note = "Select Yes to use customized form elements."; } property bool show_mini_calendar { des = "Enable Mini-Calendar"; } property bool show_entry_userpic { des = "Recent userpics"; note = "Select this if you want your userpic to show up on each entry of your Recent page."; } property use use_shared_pic; } propgroup color = "Colors"; propgroup colors { property Color bg_color { des = "Background Color"; } property Color color_nav_bg { des = "Navigation Background"; note = "This is the base color for the navigation bar. After selecting a color, select if you want that color to get darker or lighter (from left to right)."; } property string nav_scale { des = "Navigation Background Progression"; note = "Select if you want the background of the navigation to get lighter, darker or all the same color starting from the color you selected above."; values = "lighter|Lighter|darker|Darker|same|Same"; } property Color nav_link { des = "Navigation Text Color"; } property Color info_bg { des = "Info Background"; note = "The background to the area where the user information and calendar are presented."; } property Color info_font { des = "Info Font"; note = "The color of the font for the text in the information area."; } property Color info_link { des = "Info Link Color"; } property Color info_link_visited { des = "Visited Info Link Color"; note = "The color of a visited link in the info section."; } property Color entry_bg { des = "Entry Background"; note = "The background color for each entry."; } property Color entry_font { des = "Entry Font"; note = "The font color for color for entry text."; } property Color entry_link { des = "Entry Link Color"; } property Color entry_link_visited { des = "Visited Entry Link Color"; note = "The color of a visited link in the entries section."; } # Non-visible properties go here. property Color nav1_bg { noui = 1; } property Color nav2_bg { noui = 1; } property Color nav3_bg { noui = 1; } property Color nav4_bg { noui = 1; } property Color nav5_bg { noui = 1; } property Color nav6_bg { noui = 1; } property Color nav7_bg { noui = 1; } property string backarrow { noui = 1; } property string forwardarrow { noui = 1; } property string leave_comment { noui = 1; } property string comment { noui = 1; } property string memories { noui = 1; } property string edit { noui = 1; } property string mail { noui = 1; } property string delete { noui = 1; } property string screen { noui = 1; } property string unscreen { noui = 1; } property string freeze { noui = 1; } property string unfreeze { noui = 1; } property string parent { noui = 1; } property int half_width { noui = 1; } property int half_width_pixel { noui = 1; } property bool show_links { noui = 1; } property string bg_pattern { noui = 1; } } propgroup background = "Background"; propgroup Background { property string page_background_pattern { des = "Background Pattern"; note = "Select a premade background or enter a background image below"; values = "none|None|background-horz-stripes.gif|Horizontal Stripes|background-vert-stripes.gif|Vertical Stripes|background-diag-stripes.gif|Diagnal Stripes|background-diamond.gif|Diamonds|background-hearts.gif|Hearts|background-lg-boxes.gif|Large Boxes|background-stitched.gif|Stitched"; } property string page_background_image { des = "Background image"; note = "URL to an image to be used for the page background (leave blank for none)."; } property string background_repeat { des = "Background image repeat"; values = "repeat|Repeat|no-repeat|Don't repeat|repeat-x|Repeat across only|repeat-y|Repeat down only"; } property string background_position { des = "Background image position"; note = "Does not apply if Background Image Repeat is set to 'Repeat'."; values = "top|Top|top left|Top-left|top right|Top-right|center|Center|center left|Center-left|center right|Center-right|bottom|Bottom|bottom left|Bottom-left|bottom right|Bottom-right|left|Left|right|Right"; } property string background_scrolling { des = "Background image scrolling"; note = "Not supported in all browsers, but allows for the background image to be in a fixed position when scrolling."; values = "scroll|Scroll|fixed|Fixed"; } } propgroup fontsettings = "Font Settings"; propgroup fontsettings { property string font_family { des = "Font Family"; note = "The default font to use for all journal pages."; values = "Arial, sans-serif|Arial|Tahoma, sans-serif|Tahoma|Verdana, sans-serif|Verdana|Trebuchet MS, sans-serif|Trebuchet MS|Georgia, serif|Georgia|Times New Romans, serif|Times New Roman|sans-serif|sans-serif|serif|serif"; } property string font_size { des = "Adjust font size"; values = "small|Small|normal|Normal|large|Large|larger|Larger|hulk|Hulk!"; } property int lineheight { des = "Line Height"; note = "This specifies the distance between each text line on all pages."; } property string underline_links { des = "Show link underline"; values = "no|No|yes|Yes|hover|Only on mouse over"; } } # setting layout set page_width = 667; set page_align = "center"; set text_view_recent = "Recent Entries"; set text_view_friends = "Friends Entries"; set text_view_userinfo = "User Info"; set text_view_month = "Calendar"; set links_name = "Links"; set linklist_support = true; set links_divider = "/"; set my_date = "long_day"; set color_forms = false; set show_mini_calendar = true; set view_entry_disabled = false; set show_entry_userpic = false; set tags_aware = true; # setting colors set nav_scale = "darker"; set bg_color = "#f1ede2"; set info_bg = "#d3ccc1"; set color_nav_bg = "#da712b"; set nav_link = "#ffffff"; set entry_bg = "#275974"; set entry_font = "#bfcadd"; set entry_link = "#efe397"; set entry_link_visited = "#f0ffc0"; set info_font = "#9a927e"; set info_link = "#ffffff"; set info_link_visited = "#ffffff"; # setting Background set page_background_pattern = "background-diamond.gif"; set background_repeat = "repeat"; set background_position = "center"; set background_scrolling = "scroll"; # setting Font_Settings set font_family = "Trebuchet MS, sans-serif"; set lineheight = 17; set font_size = "normal"; set underline_links = "hover"; ############################################# # # Printing # ############################################# ############################################# # # Forward and back nav functions # ############################################# function Page::lay_viewspec_nav() { """ """; } function DayPage::lay_viewspec_nav() { """ """; if ($.prev_url != "") { """Back"""; } else { """"""; } """ """; if ($.next_url != "") { """Forward"""; } else { """"""; } """ """; } function MonthPage::lay_viewspec_nav() { """ """; if ($.prev_url != "") { """Back"""; } else { """"""; } """ """; if ($.next_url != "") { """Forward"""; } else { """"""; } """ """; } function RecentPage::lay_viewspec_nav() { """ """; if ($.nav.backward_url != "") { """Back"""; } else { """"""; } """ """; if ($.nav.forward_url != "") { """Forward"""; } else { """"""; } """ """; } ############################################# # # Top Navigation # ############################################# function print_nav(Page p) { # figure out the width of each table cell in the navigation based on total page width var int blank = $*page_width - 512; if($p.journal.website_url) { $blank = $blank - 102; } """ """; if($p.journal.website_url) { """ """; } $p->lay_viewspec_nav(); if($blank > 0) { """ """; } """
"""; } ############################################# # # Mini-calendar # ############################################# function print_calendar_day_top(string style) { """
"""; } function print_calendar_day_bottom() { """
"""; } function print_active_day(YearDay day) { var string style = "calendarcontent"; var string dayentry; if($day.num_entries > 0) { $style = "calendarcontentactive"; $dayentry = """$day.date.day"""; } else { $dayentry = "" + $day.date.day; } print_calendar_day_top($style); print $dayentry; print_calendar_day_bottom(); } function print_inactive_day(int day) { var string style = "calendarcontent"; print_calendar_day_top($style); print " "; print_calendar_day_bottom(); } function print_calendar(Page p) { var YearMonth y = $p->get_latest_month(); var string m = $y->month_format(); var YearWeek[] w = $y.weeks; var bool multiple = false; if($p.journal.default_pic) { $multiple = true; } elseif($*linklist_support and size $p.linklist > 0) { $multiple = true; } if($multiple) { """ $m """; } else { """
"""; } foreach var YearWeek weeks ($w) { var YearDay[] d = $weeks.days; if($multiple) { var int pre = $weeks.pre_empty; if($pre > 0) { foreach var int num (1..$pre) { print_inactive_day($num); } } } foreach var YearDay days ($d) { print_active_day($days); } if($multiple) { var int post = $weeks.post_empty; if($post > 0) { foreach var int num (1..$post) { print_inactive_day($num); } } } if($multiple) { print ""; } } """
$m
"""; } ############################################# # # Built-in Links # ############################################# function Page::print_linklist() { if (size $.linklist <= 0) { return; } elseif (not $*linklist_support) { return; } var int link_width = $*page_width - 290; """ $*links_name """; var bool slash = false; foreach var UserLink l ($.linklist) { if ($l.title) { if ($l.is_heading) { "$l.title "; $slash = false; } else { if($slash) { """ $*links_divider """; } """ $l.title """; $slash = true; } } else { "
"; } } """ """; } ############################################# # # Print and Print Bodies # ############################################# function Page::print() { var string title = $this->title(); """ """; $this->print_head(); """ $title
"""; print_nav($this); """
$title
"""; var bool linkl = false; if(size $.linklist > 0) { $linkl = true; } if(not $*linklist_support) { $linkl = false; } var bool box = false; if($.journal.default_pic) { $box = true; } if($*show_mini_calendar) { $box = true; } if($linkl) { $box = true; } if($box) { """ """; if($.journal.default_pic) { """ """; if($linkl or $*show_mini_calendar) { """ """; } } $this->print_linklist(); if($*show_mini_calendar) { if($linkl) { """ """; } """ """; } """
"""; print_calendar($this); """
"""; } $this->print_body(); print_nav($this); """
"""; } ############## # recent page ############## function RecentPage::print_body { foreach var Entry e ($.entries) { $this->print_entry($e); } } ############################################# # # Print Entries # ############################################# function print_entry (Page p, Entry e, Color bgcolor, Color fgcolor, bool hide_text) { var int entry_page_width = $*page_width; var int entry_half_width = $entry_page_width / 2; var bool userpic_view = false; if($p.view == "friends" or $p.journal_type == "C" or $e.poster.username != $e.journal.username or $*show_entry_userpic) { $userpic_view = true; } if($p.view != "friends" and $*show_entry_userpic) { $bgcolor = $*entry_bg; $fgcolor = $*entry_font; } if($userpic_view) { var string url = $e.journal->base_url(); var string url2 = $e.poster->base_url(); $entry_page_width = $*page_width - 122; $entry_half_width = $entry_page_width / 2; """
"""; if($e.journal.username != $e.poster.username) { """$e.poster.username:
"""; } """ $e.journal.username """; if($e.userpic) { """
$e.journal.username"""; } """
$e.journal.name
"""; } """
"""; if ($e.security) { print "
$e.security_icon
"; } """
"""; print $e.time->date_format($*my_date); print " " + $e.time->time_format(); """
"""; if($e.subject) { """
$e.subject

"""; } var string metadata; if ($e.metadata) { foreach var string k ($e.metadata) { var string text = $k; var string val = $e.metadata{$k}; if ($k == "mood") { $text = $*text_meta_mood; } if ($k == "music") { $text = $*text_meta_music; } if ($k == "mood" and defined $e.mood_icon) { var Image i = $e.mood_icon; $val = " $val"; } $metadata = $metadata + """$text: $val
"""; } } var string tags; if ($e.tags) { var int tcount = 0; var string user = $e.journal.username; $tags = """Tags: """; foreach var Tag t ($e.tags) { $tags = """$tags"""; $tcount++; if ($tcount != size $e.tags) { $tags = """$tags, """; } } $tags = "$tags
"; } if (not $hide_text) { print "
$e.text

"; print "$tags $metadata"; } """

"""; $e.comments->print(); """"""; $p->print_reply_link({"target" => "topcomments", "img_url" => $*leave_comment, "img_width" => "20", "img_height" => "21", "img_align" => "middle", "alt" => "Reply", "title" => "Reply"}); ""; var Link mem; $mem = $e->get_link("mem_add"); if(defined $mem) { """ Add to Memories """; } var Link lnk; $lnk = $e->get_link("edit_entry"); if(defined $lnk) { """ Edit entry """; } var Link tag; $lnk = $e->get_link("edit_tags"); if(defined $tag) { """ Edit entry """; } var Link tell; $tell = $e->get_link("tell_friend"); if(defined $tell) { """ Email this entry to a friend """; $p->print_reply_container({"target"=>"topcomments"}); } """

"""; if($userpic_view) { """
"""; } } function Page::print_entry (Entry e) { print_entry($this, $e, null Color, null Color, false); } function FriendsPage::print_entry (Entry e) { var Friend f = $.friends{$e.journal.username}; print_entry($this, $e, $f.bgcolor, $f.fgcolor, false); } ############################################# # # Reply Page # ############################################# function ReplyPage::print_body () { if (not $.entry.comments.enabled) { """
 

$*text_reply_nocomments

"""; return; } """
"""; if ($.entry.security) { print "
$.entry.security_icon
"; } """
"""; print $.replyto.time->date_format($*my_date); print " " + $.replyto.time->time_format(); """
"""; if($.replyto.subject) { """

$.replyto.subject

"""; } var string metadata; if ($.entry.metadata) { foreach var string k ($.entry.metadata) { var string text = $k; var string val = $.entry.metadata{$k}; if ($k == "mood") { $text = $*text_meta_mood; } if ($k == "music") { $text = $*text_meta_music; } if ($k == "mood" and defined $.entry.mood_icon) { var Image i = $.entry.mood_icon; $val = " $val"; } $metadata = $metadata + """$text $val
"""; } } print "

$.replyto.text

"; print "

$metadata

"; """
Comment Add to Memories """; if(viewer_is_owner()) { """ Edit entry """; } """ Email this entry to a friend
"""; $.form->print(); """
"""; } ############################################# # # Entry Page # ############################################# function ItemRange::print() { if ($.all_subitems_displayed) { return; } """
"""; print lang_page_of_pages($.current, $.total); """
"""; foreach var int i (1..$.total) { if ($i == $.current) { "[$i] "; } else { var string url_of = $this->url_of($i); """[$i] """; } } print "
"; } function EntryPage::print_body () { set_handler("screen_comment_#", [ [ "set_image", "sus_#", "$*unscreen", ], ]); set_handler("unscreen_comment_#", [ [ "set_image", "sus_#", "$*screen", ], ]); set_handler("freeze_comment_#", [ [ "set_image", "fuf_#", "$*unfreeze", ], ]); set_handler("unfreeze_comment_#", [ [ "set_image", "fuf_#", "$*freeze", ], ]); if ($.entry.comments.enabled and $.comment_pages.total_subitems > 0) { $.comment_pages->print(); } print_entry($this, $.entry, null Color, null Color, $.viewing_thread); if ($.entry.comments.enabled and $.comment_pages.total_subitems > 0) { $this->print_multiform_start(); $this->print_comments($.comments); if ($this.multiform_on) { """
Mass Action
"""; $this->print_multiform_actionline(); $this->print_multiform_end(); "
"; } } } function EntryPage::print_comments (Comment[] cs) { if (size $cs == 0) { return; } foreach var Comment c ($cs) { if ($c.full) { $this->print_comment($c); } else { $this->print_comment_partial($c); } $this->print_comments($c.replies); } } function EntryPage::print_comment_partial (Comment c) { var int count = $c.depth / 7; # get how many times greater is the depth than our 8 color choices $count = $count + (($count*10%10 >= 5) ? 1 : 0); # round that number var int subtract = $count * 7; # figure out how many times we need to subtract 8 from the depth var Color mybg; var int multiplier = (($c.depth - 1) - $subtract) * 15; var int sidewidth = 122 + ($c.depth - 1) * 25; var int entry_page_width = $*page_width - $sidewidth; var int entry_half_width = $entry_page_width / 2; if($*nav_scale == "darker") { $mybg = $*color_nav_bg->darker($multiplier); } else { $mybg = $*color_nav_bg->lighter($multiplier); } var string poster = defined $c.poster ? $c.poster->as_string() : "(Anonymous)"; var string subj = $c.subject != "" ? $c.subject : $*text_nosubject; """

$subj - $poster
"""; } function EntryPage::print_comment (Comment c) { var int count = $c.depth / 7; # get how many times greater is the depth than our 8 color choices $count = $count + (($count*10%10 >= 5) ? 1 : 0); # round that number var int subtract = $count * 7; # figure out how many times we need to subtract 8 from the depth var Color mybg; var int multiplier = (($c.depth - 1) - $subtract) * 15; if($*nav_scale == "darker") { $mybg = $*color_nav_bg->darker($multiplier); } else { $mybg = $*color_nav_bg->lighter($multiplier); } var string poster; var string url; if(defined $c.poster) { $poster = $c.poster.name; $url = $c.poster->base_url(); } else { $poster = "(Anonymous)"; } var string sub_icon; if (defined $c.subject_icon) { $sub_icon = $c.subject_icon->as_string(); } var string ip; if ($c.metadata{"poster_ip"}) { $ip = " (" + $c.metadata{"poster_ip"} + ")"; } var int sidewidth = 122 + ($c.depth - 1) * 25; var int entry_page_width = $*page_width - $sidewidth; var int entry_half_width = $entry_page_width / 2; """ """; } else { """
$poster """; } """
$c.poster.username """; if(defined $c.userpic) { """
$c.poster.username"""; } if($c.journal) { """
$poster
$sub_icon $ip
"""; print $c.time->date_format($*my_date); print " " + $c.time->time_format(); if ($this.multiform_on) { $c->print_multiform_check(); } """
"""; if($c.subject) { """
$c.subject

"""; } """

$c.text


"""; if (not $c.frozen) { """"""; $c->print_reply_link({"img_url" => $*leave_comment, "img_width" => "20", "img_height" => "21", "img_align" => "middle", "alt" => "Reply", "title" => "Reply"}); ""; } else { """ Frozen"""; } """Thread """; if ($c.parent_url != "") { """ Parent """; } var Link lnk; $lnk = $c->get_link("delete_comment"); if($lnk) { """ $lnk.caption\n"""; } $lnk = $c->get_link("screen_comment"); if($lnk) { """ $lnk.caption\n"""; } $lnk = $c->get_link("unscreen_comment"); if($lnk) { """ $lnk.caption\n"""; } $lnk = $c->get_link("freeze_thread"); if($lnk) { """ $lnk.caption\n"""; } $lnk = $c->get_link("unfreeze_thread"); if($lnk) { """ $lnk.caption\n"""; } $c->print_reply_container(); """
"""; } ############################################# # # Calendar Pages # ############################################# ### Day view function DayPage::print_body() { if ($.has_entries) { """
"""; print $.date->date_format("long"); """
"""; foreach var Entry e ($.entries) { $this->print_entry($e); } } else { """
"""; print $.date->date_format("long"); """
$*text_noentries_day
"""; } } ### Month View function MonthPage::print_body { """
"""; "
"; $.redir->print_hiddens(); if (size $.months > 1) { """ \n"""; } "
\n
"; "
\n"; """
"""; foreach var MonthDay d ($.days) { if ($d.has_entries) { """
"""; $d->print_subjectlist(); """
"""; } } } ### Year View function YearPage::print_year_links () { """
Years: """; var int count = 0; foreach var YearYear y ($.years) { if($count != 0) { " | "; } $count = $count + 1; if ($y.displayed) { " $y.year "; } else { """ $y.year """; } } """
"""; } function YearPage::print_body { $this->print_year_links(); var bool toggle = false; """ """; foreach var YearMonth m ($.months) { if ($m.has_entries) { """"; if($toggle) { """ """; $toggle = false; } else { $toggle = true; """ """; } } } if($toggle) { """ """; } """
"""; $this->print_month($m); "
 
"""; } function YearPage::print_month (YearMonth m) { """
"""; foreach var int d (weekdays()) { " "; } """ """; foreach var YearWeek w ($m.weeks) { $w->print(); } """
" + $*lang_dayname_short[$d] + "
"""; } ############################################# # # Comment Links # ############################################# function CommentInfo::print_readlink { var Page p = get_page(); var string count; if($.count > 0) { $count = "" + $.count; } else { $count = ""; } """$countComment"""; } function CommentInfo::print() { if (not $.enabled) { return; } $this->print_readlink(); } ############################################# # # Property Initialization # ############################################# function prop_init() { # initialize the colors of the navigation bar. $*nav1_bg = $*color_nav_bg; if($*nav_scale == "lighter") { $*nav2_bg = $*nav1_bg->lighter(10); $*nav3_bg = $*nav1_bg->lighter(20); $*nav4_bg = $*nav1_bg->lighter(30); $*nav5_bg = $*nav1_bg->lighter(40); $*nav6_bg = $*nav1_bg->lighter(50); $*nav7_bg = $*nav1_bg->lighter(70); } elseif($*nav_scale == "darker") { $*nav2_bg = $*nav1_bg->darker(10); $*nav3_bg = $*nav1_bg->darker(20); $*nav4_bg = $*nav1_bg->darker(30); $*nav5_bg = $*nav1_bg->darker(40); $*nav6_bg = $*nav1_bg->darker(50); $*nav7_bg = $*nav1_bg->darker(70); } else { $*nav2_bg = $*color_nav_bg; $*nav3_bg = $*color_nav_bg; $*nav4_bg = $*color_nav_bg; $*nav5_bg = $*color_nav_bg; $*nav6_bg = $*color_nav_bg; $*nav7_bg = $*color_nav_bg; } # change the colors of the graphics using palimg var Color dk_arrow = $*nav6_bg->darker(50); $*backarrow = palimg_modify("boxer/back.gif", [PalItem(0, $dk_arrow), PalItem(1, $*nav_link)]); $*forwardarrow = palimg_modify("boxer/forward.gif", [PalItem(0, $dk_arrow), PalItem(1, $*nav_link)]); # tint the icons var Color entry_bg_tint; var int entry_lightness = $*entry_bg->lightness(); if($entry_lightness > 120) { $entry_bg_tint = $*entry_bg->lighter(); } else { $entry_bg_tint = $*entry_font; } $*leave_comment = palimg_tint("boxer/leave_comment.gif", $entry_bg_tint); $*comment = palimg_tint("boxer/comment.gif", $entry_bg_tint); $*edit = palimg_tint("boxer/edit.gif", $entry_bg_tint); $*memories = palimg_tint("boxer/memories.gif", $entry_bg_tint); $*mail = palimg_tint("boxer/mail.gif", $entry_bg_tint); $*delete = palimg_tint("boxer/delete.gif", $entry_bg_tint); $*screen = palimg_tint("boxer/screen.gif", $entry_bg_tint); $*unscreen = palimg_tint("boxer/unscreen.gif", $entry_bg_tint); $*freeze = palimg_tint("boxer/freeze.gif", $entry_bg_tint); $*unfreeze = palimg_tint("boxer/unfreeze.gif", $entry_bg_tint); $*parent = palimg_tint("boxer/parent.gif", $entry_bg_tint); # background pattern var Color bg_lt = $*bg_color->lighter(); var Color bg_dk = $*bg_color->darker(); if($*page_background_pattern != "" and $*page_background_pattern != "none") { $*bg_pattern = palimg_modify("boxer/$*page_background_pattern", [PalItem(1, $bg_lt), PalItem(0, $bg_dk)]); } $*half_width = $*page_width / 2; $*half_width_pixel = $*half_width - 1; } ############################################# # # Stylesheet # ############################################# function appended_to_stylesheet() { } function print_stylesheet () { var int inc; if($*font_size == "normal") { $inc = 0; } elseif($*font_size == "small") { $inc = -1; } elseif($*font_size == "large") { $inc = 1; } elseif($*font_size == "larger") { $inc = 2; } else { $inc = 3; } """ body { background-color: $*bg_color; """; if(clean_url($*page_background_image) != "") { """ background-image: url("$*page_background_image"); background-position: $*background_position; background-repeat: $*background_repeat; background-attachment: $*background_scrolling; """; } elseif ($*page_background_pattern != "none" and $*page_background_pattern != "") { """ background-image: url("$*bg_pattern"); background-attachment: $*background_scrolling; """; } """ font-family: $*font_family; line-height: """; print $*lineheight; """px; font-size: """; print 12 + $inc; """px; color: $*entry_font; margin-top: 2px; } tr, td { font-family: $*font_family;; font-size: """; print 12 + $inc; """px; } a { color: $*entry_link; """; if($*underline_links != "yes") { "text-decoration: none;"; } """ } """; if($*underline_links == "hover") { " a:hover { text-decoration: underline;}"; } """ a:visited { color: $*entry_link_visited; } a:visited.link { color: $*info_link_visited; } a:visited.subtitle { color: $*info_link_visited; } a.nav, a:visited.nav { text-decoration: none; color: $*nav_link; } a.link { color: $*info_link; } a.dayentry, a:visited.dayentry { color: $*info_bg; text-decoration: none; } a.comments, a:visited.comments { color: $*entry_font; text-decoration: none; font-weight: bold; } .nav1 { background-color: $*nav1_bg; padding-left: 16px; padding-right: 16px; padding-top: 16px; padding-bottom: 16px; margin-right: 2px; } .nav2 { background-color: $*nav2_bg; padding-left: 16px; padding-right: 16px; padding-top: 16px; padding-bottom: 16px; margin-right: 2px; } .nav3 { background-color: $*nav3_bg; padding-left: 16px; padding-right: 16px; padding-top: 16px; padding-bottom: 16px; margin-right: 2px; } .nav4 { background-color: $*nav4_bg; padding-left: 16px; padding-right: 16px; padding-top: 16px; padding-bottom: 16px; margin-right: 2px; } .nav5 { background-color: $*nav5_bg; padding-left: 16px; padding-right: 16px; padding-top: 16px; padding-bottom: 16px; margin-right: 2px; } .nav6 { background-color: $*nav6_bg; padding-left: 16px; padding-right: 16px; padding-top: 16px; padding-bottom: 16px; margin-right: 2px; } .nav7 { background-color: $*nav7_bg; } .info { background-color: $*info_bg; padding-left: 16px; padding-right: 16px; padding-top: 16px; padding-bottom: 16px; color: $*info_font; } .title { font-size: """; print 18 + $inc; """px; font-weight: bold; } .subtitle { font-size: """; print 14 + $inc; """px; font-weight: bold; color: $*info_link; } .new { margin-top: 2px; } .entry { background-color: $*entry_bg; } .newentry { margin-top: 2px; padding-left: 5px; padding-top: 5px; padding-right: 5px; padding-bottom: 5px; background-color: $*entry_bg; } .entrycontent { padding-left: 20px; padding-right: 20px; padding-bottom: 6px; padding-top: 6px; line-height: 18px; } .date { background-color: $*entry_font; padding-top: 2px; padding-bottom: 2px; padding-right: 5px; padding-left: 5px; color: $*entry_bg; } .entryinfo, a.entryinfo, a:visited.entryinfo { color: $*entry_bg; } .bgcolor { background-color: $*bg_color; } .icon { margin-right: 10px; } .calendarborder { background-color: $*info_font;; } .calendarcontent { padding-top: 2px; padding-left: 1px; padding-bottom: 2px; padding-right: 2px; font-family: Tahoma, sans-serif; font-size: """; print 8 + $inc; """px; color: $*info_font; } .calendarcontentactive { padding-top: 2px; padding-left: 1px; padding-bottom: 2px; padding-right: 2px; font-family: Tahoma, sans-serif; font-size: """; print 8 + $inc; """px; background-color: $*info_font; color: $*info_bg; } """; if($*color_forms) { """ .infoform { background-color: $*info_bg; color: $*info_font; font-family: $*font_family;; font-size: """; print 12 + $inc; """px; } input, select, submit, textarea { background-color: $*entry_font; color: $*entry_bg; font-family: $*font_family;; font-size: """; print 12 + $inc; """px; } """; } appended_to_stylesheet(); } ############################################# # # Theme Preview # ############################################# function print_theme_preview () { var int inc; if($*font_size == "normal") { $inc = 0; } elseif($*font_size == "small") { $inc = -1; } elseif($*font_size == "large") { $inc = 1; } elseif($*font_size == "larger") { $inc = 2; } else { $inc = 3; } var int bigsize = $*page_width + 100; """
Recent Entries Friends Entries Calendar Memories My Website
Lou Reed
8/10/06 12:09 am

$*text_reply_nocomments

"""; }