layerinfo type = "layout"; layerinfo name = "Summertime"; layerinfo redist_uniq = "summertime/layout"; layerinfo author_name = "ninetydegrees"; layerinfo lang = "en"; set layout_authors = [ { "name" => "ninetydegrees", "type" => "user" } ]; ##=============================== ## Presentation ##=============================== set layout_type = "two-columns-right"; set sidebar_width = "17em"; set sidebar_width_doubled = "34em"; set all_commentsubjects = true; set entry_date_format = "short_dayfirst"; set entry_time_format = "short_24"; set comment_date_format = "short_dayfirst"; set comment_time_format = "short_24"; set comment_userpic_style = "small"; set userpics_position = "right"; set userlite_interaction_links = "text"; set entry_management_links = "text"; set comment_management_links = "text"; ##=============================== ## Colors ##=============================== propgroup colors_child { property Color color_module_background_shadow { des = "Module background shadow color"; } property Color color_module_top_background { des = "Top module section background color"; } property Color color_module_top_text { des = "Top module section text color"; } property Color color_module_top_link { des = "Top module section link color"; } property Color color_module_top_link_active { des = "Top module section active link color"; } property Color color_module_top_link_hover { des = "Top module section hover link color"; } property Color color_module_top_link_visited { des = "Top module section visited link color"; } property Color color_module_top_title_background { des = "Top module section title background color"; } property Color color_module_top_title { des = "Top module section title color"; } property Color color_module_top_border { des = "Top module section border color"; } property Color color_module_top_background_shadow { des = "Top module section background shadow color"; } property Color color_module_bottom_background { des = "Bottom module section background color"; } property Color color_module_bottom_text { des = "Bottom module section text color"; } property Color color_module_bottom_link { des = "Bottom module section link color"; } property Color color_module_bottom_link_active { des = "Bottom module section active link color"; } property Color color_module_bottom_link_hover { des = "Bottom module section hover link color"; } property Color color_module_bottom_link_visited { des = "Bottom module section visited link color"; } property Color color_module_bottom_title_background { des = "Bottom module section title background color"; } property Color color_module_bottom_title { des = "Bottom module section title color"; } property Color color_module_bottom_border { des = "Bottom module section border color"; } property Color color_module_bottom_background_shadow { des = "Bottom module section background shadow color"; } property Color color_header_background_shadow { des = "Page header background shadow color"; } property Color color_page_title_shadow { des = "Page header title shadow color"; } property Color color_header_icons_background { des = "Page header icon background color"; } property Color color_header_icons_background_alt { des = "Page header icon alternate background color"; } property Color color_header_icons_shadow { des = "Page header icon shadow color"; } property Color color_footer_link_shadow { des = "Page footer link shadow color"; } property Color color_footer_icon_background { des = "Page footer icon background color"; } property Color color_footer_icon_shadow { des = "Page footer icon shadow color"; } property Color color_footer_background_shadow { des = "Page footer background shadow color"; } property Color color_entry_background_shadow { des = "Entry background shadow 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"; } } set font_base = "'Trebuchet MS'"; set font_fallback = "sans-serif"; set font_base_size = "1"; set font_base_units = "em"; set font_module_heading = "Impact"; set font_module_heading_size = "1.5"; set font_module_heading_units = "em"; set font_journal_title = "Impact"; set font_journal_title_size = "2.875"; set font_journal_title_units ="em"; set font_journal_subtitle = "Impact"; set font_journal_subtitle_size = "1.375"; set font_journal_subtitle_units = "em"; set font_journal_footer = "Impact"; set font_journal_footer_size = "1"; set font_journal_footer_units = "em"; set font_entry_title = "Impact"; set font_entry_title_size = "1.175"; set font_entry_title_units ="em"; set font_comment_title = "Impact"; set font_comment_title_size = "1.175"; set font_comment_title_units ="em"; ##=============================== ## Images ##=============================== propgroup images_child { property string image_recent { des = "Header icon for 'Recent Entries'"; } property string image_recent_alt { des = "Header alternate icon for 'Recent Entries'"; note = "Default will be used if blank."; } property string image_archive { des = "Header icon for 'Archive'"; } property string image_archive_alt { des = "Header alternate icon for 'Archive'"; note = "Default will be used if blank."; } property string image_reading { des = "Header icon for 'Reading'"; } property string image_reading_alt { des = "Header alternate icon for 'Reading'"; note = "Default will be used if blank."; } property string image_network { des = "Header icon for 'Network'"; } property string image_network_alt { des = "Header alternate icon for 'Network'"; note = "Default will be used if blank."; } property string image_tags { des = "Header icon for 'Tags'"; } property string image_tags_alt { des = "Header alternate icon for 'Tags'"; note = "Default will be used if blank."; } property string image_memories { des = "Header icon for 'Memories'"; } property string image_memories_alt { des = "Header alternate icon for 'Memories'"; note = "Default will be used if blank."; } property string image_profile { des = "Header icon for 'Profile'"; } property string image_profile_alt { des = "Header alternate icon for 'Profile'"; note = "Default will be used if blank."; } property string image_poweredby { des = "Footer 'Powered By' icon"; } } ##=============================== ## 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_poweredby_section_override { values = "none|(none)|footer|Footer"; grouped = 1; } } set grouped_property_override = { "module_navlinks_section" => "module_navlinks_section_override", "module_poweredby_section" => "module_poweredby_section_override" }; set module_navlinks_section = "header"; set module_time_section = "one"; set module_poweredby_section = "footer"; set module_poweredby_order = 30; set module_tags_opts_type = "multi"; ##=============================== ## Text ##=============================== set text_default_separator = ". "; set text_meta_music = "Music"; set text_meta_mood = "Mood"; set text_meta_location = "Location"; set text_meta_groups = "Access Groups"; set text_comment_from = "Posted by"; set text_comment_date = ""; 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"; ##=============================== ## Functions ##=============================== ## Don't make us type all _alt URLs if there's no use for them function prop_init () { $*image_recent = generate_image_url($*image_recent); $*image_archive = generate_image_url($*image_archive); $*image_reading = generate_image_url($*image_reading); $*image_network = generate_image_url($*image_network); $*image_tags = generate_image_url($*image_tags); $*image_memories = generate_image_url($*image_memories); $*image_profile = generate_image_url($*image_profile); $*image_poweredby = generate_image_url($*image_poweredby); $*image_recent_alt = generate_image_url($*image_recent_alt); $*image_archive_alt = generate_image_url($*image_archive_alt); $*image_reading_alt = generate_image_url($*image_reading_alt); $*image_network_alt = generate_image_url($*image_network_alt); $*image_tags_alt = generate_image_url($*image_tags_alt); $*image_memories_alt = generate_image_url($*image_memories_alt); $*image_profile_alt = generate_image_url($*image_profile_alt); $*image_recent_alt = ($*image_recent_alt != "") ? $*image_recent_alt : $*image_recent; $*image_archive_alt = ($*image_archive_alt != "") ? $*image_archive_alt : $*image_archive; $*image_reading_alt = ($*image_reading_alt != "") ? $*image_reading_alt : $*image_reading; $*image_network_alt = ($*image_network_alt != "") ? $*image_network_alt : $*image_network; $*image_tags_alt = ($*image_tags_alt != "") ? $*image_tags_alt : $*image_tags; $*image_memories_alt = ($*image_memories_alt != "") ? $*image_memories_alt : $*image_memories; $*image_profile_alt = ($*image_profile_alt != "") ? $*image_profile_alt : $*image_profile; } ## Move link text to title and alt in header function print_module_navlinks() { var Page p = get_page(); var string title = $*module_navlinks_section != "header" ? "Navigation" : ""; open_module("navlinks", $title, ""); if ( $*module_navlinks_section != "header" ) { 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); } else { var string{}[] links = []; foreach var string k ($p.views_order) { var string class = "list-item-$k"; var string css = """ class="$k" """; var string text = lang_viewname($k); if ($p.view == $k) { $css = """ class="current $k" """; } $links[size $links] = { "class" => $class, "item" => """"""}; } print_module_list($links); } close_module(); } ## Add class for circle function server_sig(){ """$*text_powered_by $*SITENAME"""; } ## Move tags to contents for spacing issues function Page::print_entry(Entry e) { ## For most styles, this will be overridden by FriendsPage::print_entry and such. $e->print_wrapper_start(); """