layerinfo type = "layout"; layerinfo name = "Dusty Foot"; layerinfo redist_uniq = "dustyfoot/layout"; layerinfo author_name = "timeasmymeasure"; layerinfo author_email = "timeasmymeasure@gmail.com"; layerinfo lang = "en"; set layout_authors = [ {"name" => "timeasmymeasure", "type" => "user"} ]; ##=============================== ## Presentation ##=============================== set layout_type = "two-columns-right"; set comment_userpic_style = "small"; set userpics_position = "right"; set entry_management_links = "text"; set comment_management_links = "text"; set custom_control_strip_colors = "on_no_gradient"; ##=============================== ## Colors ##=============================== propgroup colors_child { property Color color_entry_date { des = "Entry/Comment date color"; } property use color_header_link; property use color_header_link_active; property use color_header_link_visited; property use color_header_link_hover; } ##=============================== ## 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"; ##=============================== ## Fonts ##=============================== set font_base = "Arial"; set font_fallback = "sans-serif"; set font_base_size = "1"; set font_base_units = "em"; set font_journal_title_size = "1.667"; set font_journal_title_units = "em"; set font_entry_title_size = "1.334"; set font_entry_title_units = "em"; set font_comment_title_size = "1.334"; set font_comment_title_units = "em"; set font_module_heading_size = "1.167"; set font_module_heading_units = "em"; ##=============================== ## Layout ##=============================== function print_module_navlinks( bool apply_class_to_link ) { var Page p = get_page(); var string title = ($*module_navlinks_section == "header") or (($*layout_type == "two-columns-left" or $*layout_type == "two-columns-right") and $*module_navlinks_section == "two") ? "" : "Navigation"; open_module("navlinks", $title, ""); var string{}[] links = []; foreach var string k ($p.views_order) { var string class = "list-item-$k"; var string css = ""; if ($apply_class_to_link ) { var string css = """ class="$k" """; if ($p.view == $k) { $css = """ class="current $k" """; } } else { $class = "$k " + $class; if ($p.view == $k) { $class = "current " + $class; } } $links[size $links] = { "class" => $class, "item" => """"""+lang_viewname($k)+"""""" }; } print_module_list($links); close_module(); } function print_module_calendar() { var Page p = get_page(); var YearMonth mon = $p->get_latest_month(); if ($*module_calendar_opts_type=="horizontal") { var string title = (($*layout_type == "two-columns-left" or $*layout_type == "two-columns-right") and $*module_calendar_section == "two") ? "" : "Calendar"; open_module("calendar calendar-horizontal","$title", ""); print $mon->month_format("%%month%%", true); foreach var YearWeek week ($mon.weeks) { foreach var YearDay day ($week.days) { if ($day.num_entries > 0) { var string entries = get_plural_phrase($day.num_entries, "text_calendar_num_entries"); print """ $day.day"""; } else { print """ $day.day """; } } } print $mon->month_format("%%yyyy%%", true); close_module(); } else { open_module("calendar", $mon->month_format("", true), ""); println """
| "+$*lang_dayname_shorter[$d]+" | \n"; } println "|||
|---|---|---|---|
| "; } foreach var YearDay day ($week.days) { if ( $day.num_entries > 0) { var string entries = get_plural_phrase($day.num_entries, "text_calendar_num_entries"); print """ | $day.day | """; } else { print """$day.day | """; } } foreach var int i (1 .. $week.post_empty) { print ""; } println " |