layerinfo type = "layout"; layerinfo name = "Pattern"; layerinfo redist_uniq = "pattern/layout"; layerinfo author_name = "ninetydegrees"; layerinfo lang = "en"; set layout_authors = [ {"name" => "ninetydegrees", "type" => "user"} ]; ##=============================== ## Presentation ##=============================== propgroup presentation_child { property string post_text_align { des = "Content text alignment"; values = "left|Left|justify|Justify"; } property int content_margins { des = "Content margins (in %)"; size = 5; } } set layout_type = "two-columns-right"; set entry_date_format = "long_dayfirst"; set entry_time_format = "short_24"; set comment_time_format = "short_24"; set entry_userpic_style = "small"; set comment_userpic_style = "small"; set post_text_align = "justify"; set content_margins = 20; set reverse_sortorder_year = true; set reverse_sortorder_month = true; set reverse_sortorder_day = true; set reg_firstdayofweek = "monday"; ##=============================== ## Colors ##=============================== propgroup colors_child { property use color_header_link; property use color_header_link_active; property use color_header_link_hover; property use color_header_link_visited; property Color color_footer_text { des = "Page footer text color"; } } ##=============================== ## Fonts ##=============================== set font_base = "'Trebuchet MS'"; set font_fallback = "sans-serif"; set font_module_heading = "Georgia"; set font_module_heading_size = "1.2"; set font_module_heading_units = "em"; set font_journal_title = "Georgia"; set font_journal_title_size = "2"; set font_journal_title_units ="em"; set font_journal_subtitle= "Georgia"; set font_journal_subtitle_size = "1.1"; set font_journal_subtitle_units = "em"; set font_entry_title = "Georgia"; set font_entry_title_size = "1.2"; set font_entry_title_units ="em"; set font_comment_title = "Georgia"; set font_comment_title_size = "1.1"; set font_comment_title_units ="em"; ##=============================== ## Images ##=============================== propgroup images_child { property string image_background_subject_url { des = "Entry title background image URL"; } property int image_background_subject_height { des = "The height of your image, in pixels."; example = "50"; size = 6; } property int image_background_subject_width { des = "The width of your image, in pixels."; example = "50"; size = 6; } property string image_background_tags_url { des = "Entry tags background image URL"; } property int image_background_tags_height { des = "The height of your image, in pixels."; example = "50"; size = 6; } property int image_background_tags_width { des = "The width of your image, in pixels."; example = "50"; size = 6; } } ##=============================== ## Text ##=============================== set text_default_separator = " / "; set text_meta_music = "music:"; set text_meta_mood = "mood:"; set text_meta_location = "location:"; set text_meta_groups = "groups:"; set text_meta_xpost = "xpost:"; set text_tags = ""; set text_skiplinks_back = "back"; set text_skiplinks_forward = "forward"; set text_day_prev = "previous"; set text_day_next = "next"; set text_page_top = "^top"; set text_posting_in = " in "; set text_comment_from = "by "; set text_openid_from = "by "; set text_comment_date = ""; set text_comment_ipaddr = ""; set text_comment_edittime = "edited"; ##=============================== ## Modules ##=============================== propgroup modules_child { property string module_navlinks_section_override { values = "none|(none)|abovetitle|Header|one|Main Module Section|two|Secondary Module Section"; grouped = 1; } property string module_search_section_override { values = "none|(none)|titleright|Header|one|Main Module Section|two|Secondary Module Section"; grouped = 1; } property string module_userprofile_section_override { values = "none|(none)|headersec|Header|one|Main Module Section|two|Secondary Module Section"; grouped = 1; } property string module_syndicate_section_override { values = "none|(none)|titleright|Header|one|Main Module Section|two|Secondary Module Section"; grouped = 1; } property string module_credit_section_override { values = "none|(none)|footer|Footer|one|Main Module Section|two|Secondary Module Section"; grouped = 1; } property string module_poweredby_section_override { values = "none|(none)|footer|Footer"; grouped = 1; } } set grouped_property_override = { "module_navlinks_section" => "module_navlinks_section_override", "module_search_section" => "module_search_section_override", "module_userprofile_section" => "module_userprofile_section_override", "module_syndicate_section" => "module_syndicate_section_override", "module_credit_section" => "module_credit_section_override", "module_poweredby_section" => "module_poweredby_section_override" }; set module_navlinks_section = "abovetitle"; set module_search_section = "titleright"; set module_userprofile_section = "headersec"; set module_syndicate_section = "titleright"; set module_credit_section = "footer"; set module_poweredby_section = "footer"; set module_tags_opts_type = "cloud"; set module_subscriptionfilters_section = "one"; set module_active_section = "one"; set module_links_section = "one"; set module_tags_section = "one"; set module_pagesummary_section = "one"; set module_time_section = "one"; set module_time_show = false; set module_subscriptionfilters_show = true; ##=============================== ## Functions ##=============================== ## Add title function print_module_navlinks( bool apply_class_to_link ) { var Page p = get_page(); open_module("navlinks", "Navigation", ""); var string{}[] links = []; foreach var string k ($p.views_order) { var string class = "list-item-$k"; var string css = ""; if ($apply_class_to_link ) { var string css = """ class="$k" """; if ($p.view == $k) { $css = """ class="current $k" """; } } else { $class = "$k " + $class; if ($p.view == $k) { $class = "current " + $class; } } $links[size $links] = { "class" => $class, "item" => """"""+lang_viewname($k)+"""""" }; } print_module_list($links); close_module(); } ## Add header sections and CSS ## Close canvas inner after footer function Page::print() { """\n\n
\n"""; $this->print_meta_tags(); $this->print_head(); $this->print_stylesheets(); $this->print_head_title(); """"""; $this->print_wrapper_start(); $this->print_control_strip(); """