layerinfo "type" = "layout"; layerinfo "name" = "Revolting Chicks"; layerinfo "author_name" = "Mārtiņš Pilsētnieks"; layerinfo "author_email" = "pilsetnieks@gmail.com"; layerinfo "redist_uniq" = "revoltchicks/layout"; propgroup setup = "Page setup"; propgroup setup { property use page_friends_items; property use page_recent_items; property use font_base; property string title_font { des = "Title font"; size = 4; } 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; } property bool show_title { des = "Show page title"; } property bool show_user_link { des = "Show link to user beneath the userpic"; } set show_user_link = true; set show_title = true; set title_font = "Georgia"; 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 = "Anonīms"; 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 = "#D99F21"; set entry_bottom_color = "#D5D5D5"; } function print_stylesheet() { var string content_top = "220px"; if (not $*show_title) { $content_top = "100px"; } """body{ padding: 0; margin: 0; background-color: $*bgcolor; color: $*text_color; }"""; if ($*show_title) { """h1{ font-family: $*title_font; padding: 0; margin: 0; } h1#top{ position: absolute; top: 60px; left: 150px; color: $*title_color; font: normal 80px $*title_font; font-weight: normal; z-index: 1; } h1#bottom{ position: absolute; top: 30px; left: 120px; color: $*title_bgcolor; font: italic 130px $*title_font; font-weight: normal; z-index: 0; }"""; } """#sidebar{ position: absolute; top: $content_top; 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; margin: 0 10px 0 10px; padding: 10px; text-align: center; } .userpic img{ padding: 0; margin: 0; border-width: 0; } .userpic a{ padding: 0; margin: 0; font-weight: bold; } .userpic a.infoLink{ padding-top: 10px; padding-right: 10px; } .subject a img{ border-width: 0; } #sidebar img.special{ margin: 0 0 20px 0; } #content{ position: absolute; top: $content_top; 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; var string jUrl; $jUrl = $u -> base_url(); $viewTitles = { "recent" => $*text_view_recent, "friends" => $*text_view_friends, "archive" => $*text_view_archive, "userinfo" => $*text_view_userinfo }; """