# -*-s2-*- layerinfo type = "layout"; layerinfo name = "Punquin Elegant"; layerinfo redist_uniq = "punquin/layout"; layerinfo previews = "punquin/punquin.jpg"; # 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";
# 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";
$p->lay_sidebar_navigation();
" > $*text_gotop \n |
\n\n";
"
| ";
if ($*sidebar_position == "right") { print_sidebar($this); }
# Go to top
"|
\n"; "$*SITENAME | \n"; "
"; print $e.time->date_format("%%month%% %%dayord%%, %%yyyy%%"); "
"; """";
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 = " $val"; } "$key: $val "; } } if ($e.tags) { var int tcount = 0; " "; } } " |
"; 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\n"; print $m->month_format(); " | ||||||
---|---|---|---|---|---|---|
"+$*lang_dayname_short[$d]+" | \n"; } "||||||
\n"; print $.date->date_format("%%month%% %%dayord%%, %%yyyy%%"); " |
"; print ehtml($*text_noentries_day); " |
$tprev | \n"; "[$*text_view_archive] | \n"; "$tnext | \n"; "
"; } " |
|
$*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; " "; " |
|