layerinfo "type" = "layout"; layerinfo "name" = "Debesu zvani"; layerinfo "author_name" = "Mārtiņš Pilsētnieks"; layerinfo "author_email" = "skalpelis@openlatvia.lv"; layerinfo "redist_uniq" = "debesuzvani/layout"; propgroup setup = "Page setup"; propgroup setup{ property use font_base; property use page_friends_items; property use page_recent_items; property string text_fontsize{ des = "Font size"; size = 4; } property string side_fontsize{ des = "Sidebar font size"; size = 4; } property string title_fontsize{ des = "Title font size (subjects, etc.)"; size = 4; } property string small_fontsize{ des = "Small texts (talkback links, dates) font size"; size = 4; } set font_base = "Georgia"; set page_friends_items = 30; set page_recent_items = 15; set text_fontsize = "11pt"; set side_fontsize = "9pt"; set title_fontsize = "12pt"; set small_fontsize = "8pt"; } propgroup text = "Page text"; propgroup text{ property use text_post_comment; property use text_read_comments; property use text_reply_nocomments; property use text_nosubject; property use text_comment_reply; property use text_comment_ipaddr; property use text_view_archive; property use text_view_friends; property use text_view_recent; property use text_view_userinfo; property use text_skiplinks_forward; property use text_skiplinks_back; property use text_meta_mood; property use text_meta_music; property string text_next_post{ des = "Text for the next post link"; } property string text_prev_post{ des = "Text for the previous post link"; } property string text_comment_anonymous{ des = "Anonymous"; } property string text_comment_screened{ des = "Screened comment"; } set text_skiplinks_back = "Vecākus pukstus"; set text_skiplinks_forward = "Jaunākus pukstus"; set text_next_post = "Nākamais puksts"; set text_prev_post = "Iepriekšējais puksts"; set text_comment_anonymous = "Bezvārdis"; set text_comment_screened = "Paslēpta nopūta"; } propgroup colors = "Page colors"; propgroup colors{ property Color bgcolor{ des = "Background"; } property Color text_color{ des = "Text color"; } property Color link_color{ des = "Link color"; } property Color title_color{ des = "Title color"; } property Color title_bgcolor{ des = "Title background"; } property Color date_color{ des = "Date and time color"; } property Color img_border_color{ des = "Image border color"; } property Color entry_bottom_color{ des = "Entry bottom border color"; } set bgcolor = "#FFFFFF"; set text_color = "#000000"; set link_color = "#D99F21"; set title_color = "#E6AE35"; set title_bgcolor = "#ECECEC"; set date_color = "#A6A6A6"; set img_border_color = "#000000"; set entry_bottom_color = "#D5D5D5"; } function print_stylesheet(){ """body{ padding: 0; margin: 0; background-color: $*bgcolor; color: $*text_color; } h1{ padding: 0; margin: 0; } h1#top{ position: absolute; top: 60px; left: 150px; color: $*title_color; font: normal 80px $*font_base; font-weight: normal; z-index: 1; } h1#bottom{ position: absolute; top: 30px; left: 120px; color: $*title_bgcolor; font: italic 130px $*font_base; font-weight: normal; z-index: 0; } #sidebar{ position: absolute; top: 220px; left: 120px; z-index: 3; width: 150px; font: normal $*side_fontsize $*font_base; font-weight: bold; } #sidebar a{ display: block; font-weight: normal; } .userpic, img.special{ border: 1px solid $*img_border_color; padding: 10px; margin: 0 10px 0 10px; } #sidebar img.special{ margin: 0 0 20px 0; } #content{ position: absolute; top: 220px; padding: 0 200px 0 270px; font-family: $*font_base; } .post{ padding: 0 0 10px 0; margin: 0 0 30px 0; list-style-type: none; font: normal $*small_fontsize $*font_base; border-bottom: 1px solid $*entry_bottom_color; } .post .subject{ font-size: $*title_fontsize; } .post a, form a{ padding: 0; } .post .datetime{ color: $*date_color; } .post .event{ padding: 10px 0 10px 0; font-size: $*text_fontsize; color: $*text_color important; } .post .event .userpic{ float: left; } .post .talkback{ color: $*date_color; } .post .talkback a{ padding-right: 20px; } #itemrange{ height: 30px; border-bottom: 1px solid $*entry_bottom_color; } form{ font-size: $*side_fontsize; } input, textarea, select{ font-family: Verdana; font-size: $*small_fontsize; } a{ color: $*link_color; padding-right: 20px; } #footer{ text-align: center; margin: 10px auto 10px auto; font-size: $*small_fontsize; }\n"""; } function print_sidebar(User u, string{} view_url, string[] views_order){ var string url; var string view; var string a; var string hr; var string{} viewTitles; var Page p; $viewTitles = { "recent" => $*text_view_recent, "friends" => $*text_view_friends, "archive" => $*text_view_archive, "userinfo" => $*text_view_userinfo }; """