layerinfo type = "layout"; layerinfo name = "Snakes & Boxes"; layerinfo redist_uniq = "snakesandboxes/layout"; layerinfo author_name = "pari"; layerinfo lang = "en"; set layout_authors = [ {"name" => "pari", "type" => "user"} ]; ##=============================== ## Presentation ##=============================== propgroup presentation_child { property string poster_position { des = "Place of poster and journal usernames in entries and comments"; values = "left|Left|right|Right"; noui = 1; } } set layout_type = "two-columns-left"; set margins_size = "5"; set margins_unit = "%"; set userpics_position = "right"; set poster_position = "right"; set custom_colors_template = " %%new%% .entry .userpic img { border: 20px solid %%background%%; } %%new%% .entry .entry-poster a { color: %%foreground%%; }"; ##=============================== ## Colors ##=============================== propgroup colors_child { property Color color_elements_background { des = "Misc. elements background color"; } property Color color_elements_border { des = "Misc. elements border color"; } property Color color_elements_text { des = "Misc. elements text color"; } property Color color_entry_userpic_border { des = "Entry icon border color"; } property Color color_entry_accent { des = "Entry accent color"; } property Color color_module_calendar_border { des = "Calendar module border color"; } property Color color_module_calendar_link { des = "Calendar module link color"; } property Color color_module_calendar_link_background { des = "Calendar module link background color"; } property Color color_calendar_border { des = "Archive calendar border color"; } } ##=============================== ## Fonts ##=============================== set font_base = "Arial"; set font_fallback = "sans-serif"; set font_journal_title_size = "1.2"; set font_journal_title_units ="em"; set font_journal_subtitle_size = "1.2"; set font_journal_subtitle_units = "em"; set font_entry_title_size = "1.2"; set font_entry_title_units ="em"; set font_comment_title_size = "1"; set font_comment_title_units ="em"; set font_module_heading_size = "1.2"; set font_module_heading_units = "em"; ##=============================== ## Text ##=============================== # set text_posting_in = ""; ##=============================== ## Functions ##=============================== ## Place poster. function prop_init () { $*poster_position = $*userpics_position; if ($*userpics_position == "none") { if ( $*layout_type->contains("left") or $*layout_type->contains("sides") or $*layout_type->contains("one") ) { $*poster_position = "right"; } elseif ( $*layout_type->contains("right") ) { $*poster_position = "left"; } } } ## Put userpic and poster in their own block. function Page::print_entry(Entry e) { $e->print_wrapper_start(); """