layerinfo type = "layout"; layerinfo name = "Testing"; layerinfo redist_uniq = "testing/layout"; layerinfo previews = "testing/testing.jpg"; propgroup colors { property Color entry_back { des = "Entry background"; s1color = "page_back"; } property Color entry_text { des = "Entry text color"; s1color = "page_text"; } property Color page_link { des = "Link color"; s1color = "page_link"; } property Color page_vlink { des = "Visited link color"; s1color = "page_vlink"; } property Color page_alink { des = "Active link color"; s1color = "page_alink"; } property Color page_back { des = "Page background color (and around userpics)"; s1color = "strong_back"; } property Color stronger_back { des = "Background color for the bar above entries"; s1color = "strong_back"; } property Color stronger_text { des = "Text color for the bar above entries"; s1color = "stronger_text"; } property Color weak_back { des = "Background color for the bar below entries"; s1color = "weak_back"; } property Color weak_text { des = "Text color for the bar below entries"; s1color = "weak_text"; } 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 color on screened comment bars"; } property Color comment_bar_screened_fgcolor { des = "Text color on screened comment bars"; } } propgroup other { property bool show_entry_userpic { des = "Show the userpic on the journal entries? [Excludes friends page]"; } property use page_recent_items; property use page_friends_items; property int box_width { des = "Box width (pixels)"; } property use view_entry_disabled; property use comment_userpic_style; 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"; } } 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_meta_music; property use text_meta_mood; } property string lang_fmt_date_med_cust { noui = 1; des = "Medium date format with abbreviated day of week."; } set lang_fmt_date_med_cust = "%%day%%, %%month%% %%dayord%%, %%yyyy%%"; set text_permalink = "link"; # Set default colors set entry_back = "#9ece9c"; set entry_text = "#000000"; set page_link = "#ac8c30"; set page_vlink = "#8c6c10"; set page_alink = "#000000"; set page_back = "#17381b"; set stronger_back = "#ac8c30"; set stronger_text = "#020100"; set weak_back = "#9ece9c"; set weak_text = "#000000"; set comment_bar_one_bgcolor = "#ccac50"; set comment_bar_one_fgcolor = "#000000"; set comment_bar_two_bgcolor = "#ac8c30"; set comment_bar_two_fgcolor = "#000000"; set comment_bar_screened_bgcolor = "#cccccc"; set comment_bar_screened_fgcolor = "#000000"; set comment_userpic_style = "full"; set show_entry_userpic = true; set box_width = 450; set show_entrynav_icons = true; set page_background_image = ""; function Page::lay_top_userpic () { var Image up_img = $.journal.default_pic; if (defined $up_img) { """ """; } } function FriendsPage::lay_top_userpic () { var Image up_img = $.journal.default_pic; if (defined $up_img) { """ """; } } function Page::print () { var string title = $this->title(); var string website; if ($.journal.website_url != "") { $website = """$.journal.website_name """; } var string links; $links = $links + ($.view == "recent" ? "entries" : "entries") + "|"; $links = $links + ($.view == "friends" ? "friends" : "friends") + "|"; $links = $links + ($.view == "archive" ? "archive" : "archive"); """ $.head_content [ Daydream ]

[ Daydream ]
[ $.journal.name's LiveJournal ]


"""; # navigation should go here. """

"""; $this->lay_top_userpic(); """
[ entries - friends - archive - profile - $website ]
[ memories - people - comms - support - abuse ]

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

"""; } function print_entry (Page p, Entry e, Color bgcolor, Color fgcolor, bool hide_text) { var string datetime; $datetime = $e.time->time_format() + "
" + $e.time->date_format("med_cust") + ""; """

"""; # begin userpic code if ($p.view == "friends" or $p.journal_type == "C" or $p.view == "entry" or $*show_entry_userpic == true or $e.poster.username != $e.journal.username) { """
"""; """"""; """

base_url() + "\">"; if (defined $e.userpic) { """
"""; } """$e.journal.username"""; if ($e.poster.username != $e.journal.username) { """
[ $e.poster.username ]"""; } "

"; } # end userpic code """$datetime
"""; if ($e.security != "") { $e.security_icon->print(); } """ $e.subject
"""; var string metadata; if ($e.metadata) { $metadata = """ """; foreach var string k ($e.metadata) { var string text = $k; var string val = $e.metadata{$k}; if ($k == "mood") { $text = $*text_meta_mood; } elseif ($k == "music") { $text = $*text_meta_music; } if ($k == "mood" and defined $e.mood_icon) { var Image i = $e.mood_icon; $val = " $val"; } $metadata = """$metadata\n$text: $val
"""; } $metadata = """

$metadata

"""; } if (not $hide_text) { print $metadata; } """

"""; if ($p.view == "entry" and $*show_entrynav_icons) { print "

"; foreach var string key (["nav_prev","edit_entry","mem_add","tell_friend","nav_next"]) { var Link link = $e->get_link($key); if ($link) { print "$link "; } } print "
"; } """

"""; if (not $hide_text) { print $e.text; } """


"""; if ($p.view != "entry" and $p.view != "reply") { $e.comments->print(); } elseif ($e.comments.enabled) { $e.comments->print_postlink(); } else { " "; } """
"""; if ( viewer_is_owner() and ( $p.view == "recent" or $p.view == "day" )) { """edit - """; } """mem - $*text_permalink - top


"""; } # print_entry(Page,Entry,Color,Color,bool) 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); } function RecentPage::print_body () { foreach var Entry e ($.entries) { $this->print_entry($e); } var string website; if ($.journal.website_url != "") { $website = """$.journal.website_name """; } var string range = "most recent entries"; if ($.nav.skip > 0) { $range = "$.nav.skip entries back"; } """

Viewing: $range
"""; # go forward/backward if possible if ($.nav.forward_url != "" or $.nav.backward_url != "") { var string sep; var string back; var string forward; if ($.nav.backward_url != "") { $back = """earlier"""; } if ($.nav.forward_url != "") { $forward = """later"""; } if ($back != "" and $forward != "") { $sep = " - "; } """[ $back$sep$forward ]

[ entries - friends - archive - profile - $website ]
[ memories - people - comms - support - abuse ]


"""; } } function CommentInfo::print () { if (not $.enabled) { return; } if ($.count > 0 or $.screened) { $this->print_readlink(); " - "; } $this->print_postlink(); } function YearPage::print_year_links () { """

Years
[ """; 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; } """

"""; print $m->month_format(); """
[ subjects ]

"""; foreach var int d (weekdays()) { "\n"; } ""; foreach var YearWeek w ($m.weeks) { $w->print(); } """
"+$*lang_dayname_short[$d]+"


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

"""; if ($.has_entries) { """
"""; print $.date->date_format("long"); """
"""; } else { """

"""; print ehtml($*text_noentries_day); """

"""; } """

"""; foreach var Entry e ($.entries) { $this->print_entry($e); } var string tprev = ehtml($*text_day_prev); var string tnext = ehtml($*text_day_next); var string daylong = $.date->date_format("long"); """

viewing: $daylong
[ $tprev - $tnext ]


"""; } function MonthPage::print_body () { """

"""; print $.date->date_format($*lang_fmt_month_long); """
"""; #Lifted from core, looks decent: "

"; $.redir->print_hiddens(); if ($.prev_url != "") { "[<<<]\n"; } if (size $.months > 1) { "\n"; } if ($.next_url != "") { "\n[>>>]\n"; } "
\n
"; foreach var MonthDay d ($.days) { if ($d.has_entries) { "
"; print lang_ordinal($d.day); "
\n
"; $d->print_subjectlist(); "
\n"; } } "
\n"; """


"""; } function EntryPage::print_body () { print_entry($this, $.entry, null Color, null Color, $.viewing_thread); if ($.entry.comments.enabled and $.comment_pages.total_subitems > 0) { $this->print_multiform_start(); """

Comments:

"""; """

"""; $.comment_pages->print(); $this->print_comments($.comments); """


Mass Action:

"""; """

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


print_multiform_end(); } } } 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; var int width = $*box_width - 50 - (($c.depth - 1) * 25); if (defined $c.subject_icon) { $sub_icon = $c.subject_icon->as_string(); } "

"; ""; var int td = 6; if (defined $c.userpic and $*comment_userpic_style != "off") { $td = 7; 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 ""; } print ""; print ""; var Link lnk; $lnk = $c->get_link("delete_comment"); ""; $lnk = $c->get_link("screen_comment"); ""; $lnk = $c->get_link("unscreen_comment"); ""; print ""; print "
From: $posterDate: "; print $c.time->date_format("long") + " - " + $c.time->time_format() + "$lnk$lnk$lnk(Link)
"; if (defined $c.subject_icon or $c.subject != "") { "

$c.subject_icon $c.subject

"; } if ($c.metadata{"poster_ip"}) { print " (IP Address: " + $c.metadata{"poster_ip"} + ")"; } if ($this.multiform_on) { " "; $c->print_multiform_check(); } print "
"; print "
$c.text
"; print "
(Reply to this) "; if ($c.parent_url != "") { "(Parent) "; } if ($c.thread_url != "") { "(Thread) "; } "
"; } function ReplyPage::print_body () { if (not $.entry.comments.enabled) { """
$*text_reply_nocomments_header
"""; print "

$*text_reply_nocomments

"; """

"""; return; } var string datetime; $datetime = $.replyto.time->date_format("med")+"|" + $.replyto.time->time_format() + ""; """

"""; if (defined $.replyto.poster) { """

base_url(); """ "> """; if (defined $.replyto.userpic) { """
"""; } """$.replyto.poster.username

"""; } else { print "Anonymous"; } """

$datetime
$.replyto.subject


$.replyto.text

Read Comments


"""; """

Reply:

"""; $.form->print(); """


"""; } function print_theme_preview () { """
Preview Subject[Feb. 5th, 2002|8:46 pm]
Preview text, preview text, etc, etc..... words, words and more words.
$*text_permalink 1 comment|post comment
"""; }