# -*-s2-*- layerinfo type = "layout"; layerinfo name = "Classic"; layerinfo redist_uniq = "classic/layout"; layerinfo previews = "classic/classic.jpg"; layerinfo des = "The original LiveJournal style: simple and effective."; propgroup colors { property Color body_bgcolor { des = "Background color of page"; s1color = "stronger_back"; } property Color main_bgcolor { des = "Background color of main text area"; s1color = "page_back"; } property Color main_fgcolor { des = "Color of text on main text areas"; s1color = "page_text"; } property Color headerbar_bgcolor { des = "Background color of header bars"; s1color = "strong_back"; } property Color headerbar_fgcolor { des = "Color of text on header bars"; s1color = "strong_text"; } property Color metabar_bgcolor { des = "Background color of side bar"; s1color = "weak_back"; } property Color metabar_fgcolor { des = "Color of text on side bar"; s1color = "weak_text"; } property Color page_title_color { des = "Text color of the page's main title"; s1color = "page_text_title"; } property Color page_subtitle_color { des = "Text color of the page's subtitles"; s1color = "page_text_em"; } property Color link_color { des = "Text color of links"; s1color = "page_link"; } property Color vlink_color { des = "Text color of visited links"; s1color = "page_vlink"; } property Color alink_color { des = "Text color of active links"; s1color = "page_alink"; } property Color comment_bar_one_bgcolor { des = "Alternating background color for comment bars (one)"; } property Color comment_bar_two_fgcolor { des = "Text color on alternating comment bars (one)"; } property Color comment_bar_two_bgcolor { des = "Alternating background color for comment bars (two)"; } property Color comment_bar_one_fgcolor { des = "Text color on alternating comment bars (two)"; } property Color comment_bar_screened_bgcolor { des = "Background bar color for screened comments"; } property Color comment_bar_screened_fgcolor { des = "Text color on background bar for screened comments"; } } set body_bgcolor = "#6666cc"; set main_bgcolor = "#ffffff"; set main_fgcolor = "#000000"; set headerbar_bgcolor = "#c0c0ff"; set headerbar_fgcolor = "#000000"; set metabar_bgcolor = "#eeeeff"; set metabar_fgcolor = "#000000"; set page_title_color = "#8b1a1a"; set page_subtitle_color = "#c00000"; set link_color = "#000050"; set vlink_color = "#500050"; set alink_color = "#ff00c0"; set comment_bar_one_bgcolor = "#c0c0ff"; set comment_bar_one_fgcolor = "#000000"; set comment_bar_two_bgcolor = "#eeeeff"; set comment_bar_two_fgcolor = "#000000"; set comment_bar_screened_bgcolor = "#dddddd"; set comment_bar_screened_fgcolor = "#000000"; set tags_aware = true; propgroup presentation { property bool show_entry_userpic { des = "Show your userpic with your journal's entries?"; } property use font_base; property use font_fallback; property use page_recent_items; property use page_friends_items; property use view_entry_disabled; property use use_shared_pic; property bool show_entrynav_icons { des = "Toggle to show the next, memory, edit, etc icons on the entry view page"; } property string page_background_image { des = "URL to an image to be used for the page background"; } property use external_stylesheet; } set show_entry_userpic = false; set font_base = "Arial, Helvetica"; set font_fallback = "sans-serif"; set page_recent_items = 20; set page_friends_items = 25; set view_entry_disabled = false; set show_entrynav_icons = true; set page_background_image = ""; propgroup text { property use text_post_comment; property use text_read_comments; property use text_post_comment_friends; property use text_read_comments_friends; property use text_website_default_name; } function print_stylesheet () { print clean_url($*page_background_image) != "" ? "body { background-image: url($*page_background_image); }" : ""; var string font; if ($*font_base) { $font = "\"$*font_base\""; if ($*font_fallback != "none") { $font = "$font, "; } } if ($*font_fallback != "none") { $font = "$font $*font_fallback"; } if ($font != "") { """ body, table, td, th, .page_title, #yearheader { font-family: $font; } """; } """ body,.body { background-color: $*body_bgcolor; color: $*main_fgcolor; padding: 5pt; } a, a:link { color: $*link_color; } a:visited { color: $*vlink_color; } a:active { color: $*alink_color; } table.main { background-color: $*main_bgcolor; color: $*main_fgcolor; } .page_title { color: $*page_title_color; font-size: 18pt; } .view_links { font-family: monospace; white-space: nowrap; } .view_links2 { font-family: monospace; font-size: 9pt; } th.headerbar { background-color: $*headerbar_bgcolor; color: $*headerbar_fgcolor; font-weight: bold; font-size: 16pt; text-align: left; } td.metabar { text-align: right; white-space: nowrap; background-color: $*metabar_bgcolor; color: $*metabar_fgcolor; } .subject { color: $*page_subtitle_color; font-weight: bold; } .comments { text-align: right; } #yearheader { color: $*page_subtitle_color; font-weight: bold; font-style: italic; font-size: 14pt; } th.monthheader { background-color: $*headerbar_bgcolor; color: $*headerbar_fgcolor; font-size: 12pt; } th.daysheader { background-color: $*metabar_bgcolor; color: $*metabar_fgcolor; font-weight: normal; } td.weekday_empty { background-color: $*metabar_bgcolor; color: $*metabar_fgcolor; } .day_id { font-weight: bold; font-size: 10pt; } #archiveyearpage_nav { font-size: 14pt; font-weight: bold; } """; } function Page::lay_nav_blurb() { } function Page::lay_primary_userpic() : Image { return $.journal.default_pic; } function EntryPage::lay_primary_userpic() : Image { return $.entry.userpic; } function Page::print_linklist() { if (size $.linklist <= 0) { return; } var bool section_open = false; println ""; foreach var UserLink l ($.linklist) { if ($l.title) { if ($l.is_heading) { if ($section_open) { println "
"; } println """$l.title """; $section_open = true; } else { println """[$l.title]"""; } } } if ($section_open) { println "


"; } println ""; } function Page::print () { var string title = $this->title(); var string userpic; var Image default_userpic = $this->lay_primary_userpic(); if (defined $default_userpic) { $userpic = ""; } var string website_name = $.journal.website_name ? $.journal.website_name : $*text_website_default_name; var string website = $.journal.website_url ? """$website_name """ : ""; var string links; foreach var string v ($.views_order) { $links = $links + ($.view == $v ? "["+lang_viewname($v)+"]" : "["+lang_viewname($v)+"]"); } """ """; if ($*external_stylesheet) { println """"""; } else { println """"; } $this->print_head(); """ $title
$userpic $title """; if (size $.linklist > 0 and $*linklist_support) { $this->print_linklist(); } $this->lay_nav_blurb(); $this->print_body(); "
\n"; ### Affliations ""; print $website; ""; "
"; server_sig(); "
\n\n"; } function print_entry (Page p, Entry e, Color bgcolor, Color fgcolor, bool hide_text) { var string time = $e.time->time_format(); var string userpic = ""; if (defined $e.userpic) { $userpic = "[User Picture]"; } if ($e.new_day or $p.view == "entry") { ""; print $e.time->date_format("%%month%% %%dayord%%, %%yyyy%%"); "\n"; } elseif ($p.view == "day") { "TimeEvent"; } ""; # Metabar ""; # Time "$time
"; # Altposter crap if ($p.view == "friends") { ""; print $e.journal.username; "
"; } if ($e.journal.username != $e.poster.username) { "["; print $e.poster.username; "]
"; } if ($userpic != "" and ($p.view == "friends" or $*show_entry_userpic == true)) { print $userpic; } # Security icon if ($e.security) { print $e.security_icon; } # Permalink "

[$*text_permalink]

"; ""; # Entry ""; if ($p.view == "entry" and $*show_entrynav_icons) { print "
"; $e->print_linkbar(); print "
"; } if ($e.subject) { "\n\n$e.subject
"; } if (not $hide_text) { print $e.text; "\n\n"; if (size $e.metadata or size $e.tags) { "

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

"; } } $e.comments->print(); ""; "\n"; } function Page::print_entry (Entry e) { print_entry($this, $e, $*metabar_bgcolor, $*metabar_fgcolor, false); } function FriendsPage::print_entry (Entry e) { var Friend f = $.friends{$e.journal.username}; print_entry($this, $e, $f.bgcolor, $f.fgcolor, false); } function RecentPage::lay_nav_blurb () { var string user = "$.journal.name"; if ($.nav.skip > 0) { "Below are $.nav.count entries, after skipping $.nav.skip most recent ones in the \"$user\" journal:"; } else { "Below are the $.nav.count most recent journal entries recorded in the \"$user\" journal:"; } } function RecentPage::print_body () { var string nav = ""; if ($.nav.forward_url != "" or $.nav.backward_url != "") { if ($.nav.backward_url != "") { $nav = "<< Previous $.nav.backward_count entries"; } if ($.nav.backward_url != "" and $.nav.forward_url != "") { $nav = "$nav --"; } if ($.nav.forward_url != "") { $nav = "$nav Next $.nav.forward_count entries >>"; } $nav = "

[$nav]

"; } if ($nav != "") { print $nav; } "\n"; foreach var Entry e ($.entries) { $this->print_entry($e); } "
\n"; if ($nav != "") { print $nav; } } function FriendsPage::lay_nav_blurb () { var int total = size $.entries; if ($.nav.skip > 0) { "Below are $total friends entries, after skipping $.nav.skip most recent ones:"; } else { "Below are the $total most recent friends journal entries:"; } } function CommentInfo::print () { if (not $.enabled) { return; } "

("; if ($.count > 0 or $.screened) { $this->print_readlink(); " | "; } $this->print_postlink(); ")

"; } function YearPage::lay_nav_blurb() { "

"; $this->print_year_links(); "

"; } function YearPage::print_body { "

$.year…

\n"; foreach var YearMonth m ($.months) { $this->print_month($m); } } function YearPage::print_year_links () { foreach var YearYear y ($.years) { if ($y.displayed) { "[ $y.year ]"; } else { "[ $y.year ]"; } } } function YearPage::print_month(YearMonth m) { if (not $m.has_entries) { return; } # Table Wrapper "

\n"; # Month Header "\n"; # Weekdays Header "\n"; foreach var int d (weekdays()) { "\n"; } "\n"; # Weeks foreach var YearWeek w ($m.weeks) { $w->print(); } # Footer "\n"; # End Table "
\n"; print $m->month_format(); "
"+$*lang_dayname_short[$d]+"

\n"; } function YearWeek::print () { ""; if ($.pre_empty) { " "; } foreach var YearDay d ($.days) { "$d.day
"; if ($d.num_entries) { "$d.num_entries"; } else { " "; } "
\n"; } if ($.post_empty) { " "; } ""; } function DayPage::print_body () { "

"; print $.date->date_format("%%month%% %%dayord%%, %%yyyy%%"); "

"; if (not $.has_entries) { "
"; print ehtml($*text_noentries_day); "
"; } else { ""; foreach var Entry e ($.entries) { $this->print_entry($e); } "
"; } var string tprev = ehtml($*text_day_prev); var string tnext = ehtml($*text_day_next); "\n"; "\n"; "\n"; "\n"; "
$tprev"; ""; print $.date->date_format("%%yyyy%%/%%mm%%/%%dd%%"); "
"; "[$*text_view_archive]
$tnext
"; } function EntryPage::print_body () { set_handler("unscreen_comment_#", [ [ "style_bgcolor", "cmtbar#", "$*comment_bar_one_bgcolor", ], [ "style_color", "cmtbar#", "$*comment_bar_one_fgcolor", ], ]); set_handler("screen_comment_#", [ [ "style_bgcolor", "cmtbar#", "$*comment_bar_screened_bgcolor", ], [ "style_color", "cmtbar#", "$*comment_bar_screened_fgcolor", ], ]); "\n"; print_entry($this, $.entry, $*metabar_bgcolor, $*metabar_fgcolor, $.viewing_thread); if ($.entry.comments.enabled and $.comment_pages.total_subitems > 0) { $this->print_multiform_start(); ""; ""; if ($this.multiform_on) { ""; ""; } } "
Comments
 "; if ($.comment_pages.total_subitems > 0) { $.comment_pages->print(); $this->print_comments($.comments); } "
Mass Action
 "; $this->print_multiform_actionline(); $this->print_multiform_end(); "
\n"; } function EntryPage::print_comment (Comment c) { var Color background; var Color color; if ($c.screened) { $background = $*comment_bar_screened_bgcolor; $color = $*comment_bar_screened_fgcolor; } elseif ($c.depth % 2) { $background = $*comment_bar_one_bgcolor; $color = $*comment_bar_one_fgcolor; } else { $background = $*comment_bar_two_bgcolor; $color = $*comment_bar_two_fgcolor; } var string poster = defined $c.poster ? $c.poster->as_string() : "(Anonymous)"; var string sub_icon; if (defined $c.subject_icon) { $sub_icon = $c.subject_icon->as_string(); } "
"; ""; if (defined $c.userpic and $*comment_userpic_style != "off") { var int w = $c.userpic.width; var int h = $c.userpic.height; # WARNING: this will later be done by the system (it'll be a # constructional property), so don't copy this hack into your # layout layers or you'll be messed up later. if ($*comment_userpic_style == "small") { $w = $w / 2; $h = $h / 2; } print ""; } "
[User Picture]"; ### From, date, etc ""; ### Gadgets ""; ### Subject / icon print ""; ### Permalink print ""; print "
"; print ""; print "\n"; print ""; if ($c.metadata{"poster_ip"}) { print ""; } "
From:$poster
Date:"; print $c.time->date_format("long") + " - " + $c.time->time_format() + "
IP Address:(" + $c.metadata{"poster_ip"} + ")
"; if ($this.multiform_on) { " "; $c->print_multiform_check(); } $c->print_linkbar(); "
"; print (defined $c.subject_icon or $c.subject != "") ? "

$c.subject_icon $c.subject

" : ""; print "
(Link)
"; print "
$c.text
"; print "
"; if ($c.frozen) { print "(Replies frozen) "; } else { print "(Reply to this) "; } if ($c.parent_url != "") { "(Parent) "; } if ($c.thread_url != "") { "(Thread) "; } "
"; } function ReplyPage::print_body() { "\n"; if (not $.entry.comments.enabled) { print "
$*text_reply_nocomments_header
$*text_reply_nocomments
"; return; } var string time = $.replyto.time->time_format(); var string userpic = ""; if (defined $.replyto.userpic) { $userpic = ""; } "TimeText"; ""; # Metabar ""; # Time "$time
"; if ($userpic) { print $userpic + "
\n"; } print defined $.replyto.poster ? $.replyto.poster->as_string() : "(Anonymous)"; # Permalink "

[$*text_permalink]

"; ""; # Text ""; if ($.replyto.subject != "") { "\n\n$.replyto.subject
"; } print $.replyto.text; "\n\n"; "\n"; "
( Read Comments )
"; "Reply:"; " "; $.form->print(); ""; } function print_theme_preview () { """
John Doe
    Friday, November 15th, 2002
    10:21 pm

    Neque porro quisquam est…
    Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit

    (1 Comment | Comment on this)

"""; }