layerinfo type = "layout"; layerinfo name = "Fluid Measure"; layerinfo des = "Inspired by the WordPress theme Ahimsa, by Ravi Sarma"; layerinfo redist_uniq = "fluidmeasure/layout"; layerinfo author_name = "branchandroot"; layerinfo lang = "en"; set layout_authors = [ { "name" => "branchandroot", "type" => "user" } ]; ##=============================== ## Presentation ##=============================== set layout_type = "two-columns-right"; property string margins_size { noui = 1; } property string margins_unit { noui = 1; } set userpics_position = "right"; set all_commentsubjects = true; ##=============================== ## Colors ##=============================== propgroup colors_child { property use color_page_details_text; } set color_page_details_text = "#999"; ##=============================== ## Fonts ##=============================== set font_base = "Verdana, Helvetica"; set font_fallback = "sans-serif"; 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(); } function Page::print() "The meat of each new layout. Describes how each page will look. In nearly all cases, the logic and decision-making processes should come from pre-existing functions in core2, and should not get written here. If you limit the structure of the page to HTML, function calls, and attached CSS, then you will be able to pick up all of the enhancements and accessibility requirements managed by core2." { """\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(); """