layerinfo type = "layout"; layerinfo name = "Heads Up"; layerinfo redist_uniq = "headsup/layout"; layerinfo author_name = "momijizukamori"; layerinfo lang = "en"; layerinfo des = "A layout designed to be friendly for header images, and to let you easily align your content with your header."; set layout_authors = [ { "name" => "momijizuakmori", "type" => "user" } ]; set layout_type = "two-columns-left"; ##=============================== ## Presentation ##=============================== propgroup presentation_child { property string content_size { des = "Width of content area (if you want this to align neatly with a header image, make it the same width)"; } } set content_size = "90%"; set userlite_interaction_links = "text"; set comment_management_links = "text"; set entry_management_links = "text"; set userpics_position = "right"; property string margins_size { noui = 1; } property string margins_unit { noui = 1; } ##=============================== ## 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_comment_title_even { des = "Comment title alternate color"; } property Color color_comment_title_background_even { des = "Comment title alternate background color"; } property Color color_comment_title_border { des = "Border color for comment titles"; } property Color color_entry_title_border { des = "Border color for entry titles"; } property Color color_module_title_border { des = "Border color for module titles"; } property Color color_userpic_background { des = "Border color for user icon on sidebar and in entries"; } } ##=============================== ## Images ##=============================== propgroup images_child { property string image_foreground_header_url { des = "The URL to the header image (this style does not automatically resize images)"; } property int image_foreground_header_height { des = "The height of your header image, in pixels."; example = "100"; size = 6; } property int image_foreground_header_width { des = "The width of your header image, in pixels."; example = "600"; size = 6; } property string image_foreground_header_alignment { des = "The alignment of the header image in its area."; values = "left|left|center|center|right|right"; } property string image_foreground_header_position { values = "before|above journal header text|after|below journal header text|inline|inline with journal header text"; des = "Position of header image (inline may cause text to overlap the header image)"; } property string image_foreground_header_alt { des = "Alt text for your header image, for screen readers."; example = "A sunset."; } } ##=============================== ## 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 = "one"; ##=============================== ## 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() { var string image_foreground_url = generate_image_url($*image_foreground_header_url); """\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(); """