layerinfo type = "layout"; layerinfo name = "Fantaisie"; layerinfo redist_uniq = "fantaisie/layout"; layerinfo author_name = "ninetydegrees"; layerinfo lang = "en"; set layout_authors = [ { "name" => "ninetydegrees", "type" => "user" } ]; set layout_resources = [ { "name" => "Omnibus-Type and Sideshow's fonts", "url" => "http://www.google.com/webfonts/" } ]; ##=============================== ## Presentation ##=============================== set layout_type = "two-columns-right"; set entry_date_format = "long_day_dayfirst"; set entry_time_format = "short_24"; set comment_date_format = "short_dayfirst"; set comment_time_format = "short_24"; set entry_userpic_style = "small"; set comment_userpic_style = "small"; ##=============================== ## 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_header_image_border { des = "Page header image border color"; } property Color color_header_image_shadow { des = "Page header image shadow color"; } property Color color_calendar_header_background { des = "Archive calendar header background color"; } property Color color_calendar_header_text { des = "Archive calendar header text color"; } property Color color_module_calendar_background { des = "Calendar module background color"; } property Color color_module_calendar_link { des = "Calendar module link color"; } property Color color_module_calendar_shadow { des = "Calendar module shadow color"; } property Color color_module_calendar_background_active { des = "Calendar module active background color"; } property Color color_module_calendar_link_active { des = "Calendar module active link color"; } property Color color_module_calendar_shadow_active { des = "Calendar module active shadow color"; } property Color color_module_calendar_background_hover { des = "Calendar and Search modules hover background color"; } property Color color_module_calendar_link_hover { des = "Calendar and Search modules hover link color"; } property Color color_module_calendar_shadow_hover { des = "Calendar module hover shadow color"; } property Color color_module_calendar_background_visited { des = "Calendar module visited background color"; } property Color color_module_calendar_link_visited { des = "Calendar module visited link color"; } property Color color_module_calendar_shadow_visited { des = "Calendar module visited shadow color"; } property Color color_footer_text { des = "Page footer text color"; } } ##=============================== ## Fonts ##=============================== propgroup fonts_child { property string font_journal_footer { des = "Preferred font for the journal footer"; maxlength = 50; size = 25; note = "For example: Arial or \"Times New Roman\". Leave blank to use the default."; } property string font_journal_footer_size { des = "Size of footer font"; size = 3; } property string font_journal_footer_units { des = "Units for footer size"; values = "em|em|ex|ex|%|%|pt|pt|px|px"; } property use font_sources; } set font_sources = "https://fonts.googleapis.com/css?family=Asap|Rochester"; set font_base = "Asap"; set font_fallback = "sans-serif"; set font_module_heading = "Rochester"; set font_module_heading_size = "1.8"; set font_module_heading_units = "em"; set font_journal_title = "Rochester"; set font_journal_title_size = "2.6"; set font_journal_title_units ="em"; set font_journal_subtitle = "Rochester"; set font_journal_subtitle_size = "1.25"; set font_journal_subtitle_units = "em"; set font_journal_footer = "Rochester"; set font_journal_footer_size = "1.25"; set font_journal_footer_units = "em"; set font_entry_title = "Rochester"; set font_entry_title_size = "1.8"; set font_entry_title_units ="em"; set font_comment_title = "Rochester"; set font_comment_title_size = "1.8"; set font_comment_title_units ="em"; ##=============================== ## Images ##=============================== propgroup images_child { property string image_background_header_secondary_url { des = "Page header subtitles background image URL"; } property int image_background_header_secondary_height { des = "The height of your image, in pixels."; example = "50"; size = 6; } property int image_background_header_secondary_width { des = "The width of your image, in pixels."; example = "50"; size = 6; } property string image_background_module_title_url { des = "Module title background image URL"; } property int image_background_module_title_height { des = "The height of your image, in pixels."; example = "50"; size = 6; } property int image_background_module_title_width { des = "The width of your image, in pixels."; example = "50"; size = 6; } property string image_background_module_footer_url { des = "Module footer background image URL"; note ="Only displayed in sidebar."; } property int image_background_module_footer_height { des = "The height of your image, in pixels."; example = "50"; size = 6; } property string image_background_navigation_url { des = "Navigation background image URL"; } property string image_background_navigation_url_alt { des = "Alternate navigation background image URL"; note ="Used when navigation is right-aligned."; } property int image_background_navigation_height { des = "The height of your image, in pixels."; example = "50"; size = 6; } property int image_background_navigation_width { des = "The width of your image, in pixels."; example = "50"; size = 6; } property string image_background_entry_title_url { des = "Entry title background image URL"; } property int image_background_entry_title_height { des = "The height of your image, in pixels."; example = "50"; size = 6; } property int image_background_entry_title_width { des = "The width of your image, in pixels."; example = "50"; size = 6; } property string image_background_footer_url { des = "Footer background image URL"; } property int image_background_footer_height { des = "The height of your image, in pixels."; example = "50"; size = 6; } property int image_background_footer_width { des = "The width of your image, in pixels."; example = "50"; size = 6; } } ##=============================== ## Modules ##=============================== propgroup modules_child { property string module_navlinks_section_override { values = "none|(none)|header|Header|one|Group One|two|Group Two"; grouped = 1; } property string module_credit_section_override { values = "none|(none)|one|Group One|two|Group Two|footer|Footer"; 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_credit_section" => "module_credit_section_override", "module_poweredby_section" => "module_poweredby_section_override" }; set module_navlinks_section = "header"; set module_tags_opts_type = "multi"; set module_time_section = "one"; set module_poweredby_section = "footer"; set module_poweredby_order = 30; set module_credit_section = "footer"; set module_credit_order = 29; ##=============================== ## Text ##=============================== set text_meta_groups = "Access Groups:"; set text_meta_location = "Location:"; set text_meta_mood = "Mood:"; set text_meta_music = "Music:"; set text_meta_xpost = "Crossposts:"; set text_comment_date = ""; set text_comment_from = ""; set text_comment_ipaddr = "IP:"; set text_entry_prev = "Previous"; set text_entry_next = "Next"; set text_tell_friend = "Share"; set text_mem_add = "Memory"; set text_default_separator = " . "; ##=============================== ## Functions ##=============================== ## Add title to Nav module when not in header position. function print_module_navlinks() { var Page p = get_page(); var string title = ($*module_navlinks_section == "header") ? "" : "Navigation"; open_module("navlinks", $title, ""); var string{}[] links = []; foreach var string k ($p.views_order) { var string css = """ class="$k" """; var string class = "list-item-$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 span for border since the LI is displayed as a block function YearPage::print_year_links() { if (size $.years) { """