# -*-s2-*- layerinfo type = "layout"; layerinfo name = "Punquin Elegant"; layerinfo redist_uniq = "punquin/layout"; layerinfo previews = "punquin/punquin.jpg"; layerinfo des = "The original sidebar layout, with a single box containing all of your recent entries."; # Colors propgroup colors { property Color body_bgcolor { des = "Page background color"; s1color = "stronger_accent"; } property Color main_bgcolor { des = "Background of text areas"; s1color = "page_back"; } property Color main_fgcolor { des = "Text color"; s1color = "page_text"; } property Color subject_color { des = "Color of entry subjects"; s1color = "page_text_em"; } property Color title_color { des = "Color of headers and titles"; s1color = "page_text_title"; } property Color border_color { des = "Color of borders"; s1color = "weak_back"; } property Color link_color { des = "Link color"; s1color = "page_link"; } property Color vlink_color { des = "Visited link color"; s1color = "page_vlink"; } property Color alink_color { des = "Active link color"; 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 subject_color = "#c00000"; set title_color = "#8b1a1a"; set border_color = "#eeeeff"; 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"; propgroup presentation { property bool show_recent_userpic { des = "Show the userpic on the recent entries page?"; } property string sidebar_position { des = "Position of the sidebar relative to the main content"; values = "left|Left|right|Right"; } property use font_base; property use font_fallback; property use page_recent_items; property use page_friends_items; property use use_shared_pic; property use view_entry_disabled; 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 linklist_support; property use external_stylesheet; } set font_base = "Verdana, Arial, Helvetica"; set font_fallback = "sans-serif"; set show_recent_userpic = false; set sidebar_position = "left"; set page_recent_items = 20; set page_friends_items = 20; set view_entry_disabled = false; set show_entrynav_icons = true; set page_background_image = ""; set linklist_support = false; propgroup text { property string text_gotop { des = "Link text to 'top of the page'"; noui = 1; } 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; } set text_gotop = "Go to Top"; set tags_aware = true; function print_stylesheet () { var string font = "$*font_base, $*font_fallback"; print clean_url($*page_background_image) != "" ? "body { background-image: url($*page_background_image); }" : ""; print """ body { background-color: $*body_bgcolor; color: $*main_fgcolor; font: normal normal 10pt $font; } a { text-decoration: none; color: $*link_color; background: transparent; font: normal normal 10pt $font; } a:visited { color: $*vlink_color; background: transparent; } a:active { color: $*alink_color; background: transparent; } #title { font: normal bold 10pt $font; color: $*title_color; text-align: center; } .date { font: normal bold 12pt $font; color: $*title_color; text-align: right; } .comments { font: normal normal 8pt $font; } hr.separator { color: $*border_color; } .siteplug { font: normal normal 8pt $font; } #yearheader { text-align: right; color: $*title_color; font: normal bold 12pt $font; } th.monthheader { color: $*title_color; } th.daysheader { color: $*subject_color; } /* Tables. Fun. */ table#main { border: solid 0px $*body_bgcolor; } table.standard { border: solid 5px $*border_color; background-color: $*main_bgcolor; color: $*main_fgcolor; font: normal normal 10pt $font; } table.standard>td { background-color: $*main_bgcolor; color: $*main_fgcolor; } table.standard td { font: normal normal 10pt $font; } """; } function Page::lay_sidebar_navigation () { } function print_sidebar(Page p) { var string title = $p->title(); var string userpic; var Image up_img = $p.journal.default_pic; if (defined $up_img) { $userpic = """

"""; } var string website_name = $p.journal.website_name ? $p.journal.website_name : $*text_website_default_name; var string website; if ($p.journal.website_url != "") { $website = """> $website_name
"""; } var string links; foreach var string v ($p.views_order) { $links = "$links> " + ($p.view == $v ? lang_viewname($v) : ""+lang_viewname($v)+"") + "
\n"; } # Table Wrapper "\n"; "\n"; "
"; # Title "
$title
\n"; # Links "

$links\n$website\n"; $p->lay_sidebar_navigation(); # Userpic "

"; if($userpic != "") { "
$userpic
"; } # Link List if (size $p.linklist > 0 and $*linklist_support) { if (not $p.linklist[0].is_heading) { "Links
"; } $p->print_linklist(); } # End Table "
\n"; } function print_gotop (Page p) { "\n\n"; "\n"; "
\n"; $p->lay_sidebar_navigation(); "
> $*text_gotop
\n
\n"; } function Page::print () { var string title = $this->title(); var string main_position = $*sidebar_position == "left" ? "right" : "left"; # Head println ""; if ($*external_stylesheet) { println """"""; } else { println """"; } $this->print_head(); "$title\n\n"; # Body "\n
\n"; # Table wrapper "\n"; if ($*sidebar_position == "left") { print_sidebar($this); } # Main content ""; if ($*sidebar_position == "right") { print_sidebar($this); } # Go to top ""; print_gotop($this); ""; # Plug the site! "\n"; "
\n\n"; "
\n"; $this->print_body(); "
\n\n
\n"; "$*SITENAME
"; } function print_entry (Page p, Entry e, Color bgcolor, Color fgcolor, bool hide_text) { var string time = $e.time->time_format(); if ($e.new_day or $p.view == "entry") { "

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

"; "
"; } if ($p.view == "entry" and $*show_entrynav_icons) { print "
"; $e->print_linkbar(); print "
"; } ""; if ($p.view == "friends" or $e.poster.username != $e.journal.username or $*show_recent_userpic == true) { # Lots of muddled logic. Yay. """"; } "
"""; if ($p.view == "friends") { """$e.journal.username
"""; } if ($e.poster.username != $e.journal.username) { if ($p.view == "friends") { """[$e.poster.username]
"""; } else { """$e.poster.username
"""; } } if (defined $e.userpic) { if (($*show_recent_userpic == false) and ($p.view != "friends") and ($p.journal_type != "C") ) { } else { """"""; } } "
$time"; if ($e.subject) { " - $e.subject"; } if ($e.security) { " "; $e.security_icon->print(); } "
"; if (not $hide_text) { print $e.text; "
"; if (size $e.metadata) { foreach var string k ($e.metadata) { var string key = $k; var string val = $e.metadata{$k}; if ($k == "mood") { $key = $*text_meta_mood; } elseif ( $k == "music" ) { $key = $*text_meta_music; } if ($k == "mood" and defined $e.mood_icon) { var Image i = $e.mood_icon; $val = "[mood icon] $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(); } 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); } } function FriendsPage::print_body { foreach var Entry e ($.entries) { $this->print_entry($e); } } function RecentPage::lay_sidebar_navigation () { var string nav = ""; if ($.nav.backward_url != "") { $nav = """> previous $.nav.backward_count entries"""; } if ($.nav.forward_url != "" and $.nav.backward_url != "") { $nav = "$nav
"; } if ($.nav.forward_url != "") { $nav = """${nav}> next $.nav.forward_count entries"""; } print $nav; } function CommentInfo::print () { if (not $.enabled) { "

 

"; return; } "

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

"; } 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::lay_sidebar_navigation () { $this->print_year_links(); } 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() { if (not $.has_entries) { ""; "

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


"; 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"; "\n"; "
$tprev[$*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", ], ]); print_entry($this, $.entry, null Color, null Color, $.viewing_thread); if ($.entry.comments.enabled and $.comment_pages.total_subitems > 0) { $this->print_multiform_start(); print "

Comments:

"; "
"; if ($.comment_pages.total_subitems > 0) { $.comment_pages->print(); $this->print_comments($.comments); } if ($this.multiform_on) { print "

Mass Action:

"; "
"; $this->print_multiform_actionline(); $this->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; 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() { if (not $.entry.comments.enabled) { "

$*text_reply_nocomments_header

"; "
"; "

$*text_reply_nocomments

"; return; } "

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

"; "
"; ""; """"; "
"""; print defined $.replyto.poster ? $.replyto.poster->as_string() : "(Anonymous)"; if (defined $.replyto.userpic) { print """"""; } ""; print $.replyto.time->time_format(); if ($.replyto.subject) { " - $.replyto.subject"; } "
"; print $.replyto.text; "
"; "
"; "

Read Comments

"; "

Reply

"; "
"; $.form->print(); } function print_theme_preview () { """

December 18th, 2002


01:22 am - Test
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.

(Read # Comments | Leave a comment)

"""; }