layerinfo type = "layout"; layerinfo name = "Seamless"; layerinfo redist_uniq = "seamless/layout"; layerinfo author_name = "timeasmymeasure"; layerinfo lang = "en"; set layout_authors = [ { "name" => "timeasmymeasure v ", "type" => "user" } ]; ##=============================== ## Presentation ##=============================== set layout_type = "two-columns-right"; set margins_size = "10"; set margins_unit = "em"; ##=============================== ## Fonts ##=============================== propgroup fonts_child{ property string font_interaction_links; property string font_interaction_links_size; property string font_interaction_links_units; } set font_interaction_links_units = "em"; set font_interaction_links_size = "1.75"; ##=============================== ## Colors ##=============================== propgroup colors_child { property Color color_calendar_header_background { des = "Background color for calendar header on Archive page"; } property Color color_calendar_header { des = "Color color for calendar header on Archive page"; } property Color color_calendar_entry { des = "Background color for a day with entries on the calendar"; } property Color color_module_calendar_header_background { des = "Background color for calendar module header"; } property Color color_module_calendar_header { des = "Color for calendar module header text"; } property Color color_module_calendar_entry { des = "Background color for a day with entries on the calendar module"; } property Color color_userpic_background { des = "Border color for user icon on sidebar and in entries"; } 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_page_subtitle { des = "Page header link visited color"; } property Color color_metadata_label { des = "Currents label color"; } property Color color_metadata_text { des = "Currents text color"; } } ##=============================== ## Modules ##=============================== property string module_navlinks_section_override { values = "none|(none)|header|Header|one|Main Module Section|two|Secondary Module Section"; grouped = 1; } set grouped_property_override = { "module_navlinks_section" => "module_navlinks_section_override" }; set module_navlinks_section = "header"; ##=============================== ## Functions ##=============================== # Give a title to the navlinks module function print_module_navlinks() { var Page p = get_page(); var string title = "Navigation"; open_module("navlinks", "$title", ""); var string{}[] links = []; foreach var string k ($p.views_order) { var string class = "list-item-$k"; var string css = """ class="$k" """; if ($p.view == $k) { $css = """ class="current $k" """; } $links[size $links] = { "class" => $class, "item" => """"""+lang_viewname($k)+"""""" }; } print_module_list($links); close_module(); } # Add section for navlinks module function Page::print() { """\n\n
\n"""; $this->print_head(); $this->print_stylesheets(); $this->print_head_title(); """"""; $this->print_wrapper_start(); $this->print_control_strip(); """