"; } if ($showposter) { print safe "
"+lang_posted_by($e.poster, $e.journal, $this)+"
"; } "layerinfo type = "layout"; layerinfo name = "Bloggish"; layerinfo redist_uniq = "sixhtml/layout"; layerinfo previews = "sixhtml/layout.jpg"; layerinfo des = "SixApart's standard HTML structure for blogs, to be styled with CSS."; propgroup presentation { # This property is now set in a theme layer, but default is still Powell Street property string base_theme { des = "Base Theme"; noui = 1; } set base_theme = "powell-street"; # The colors for the default theme set theme_bgcolor = "#e7e7ec"; set theme_fgcolor = "#333333"; set theme_bordercolor = "#bbbbbb"; set theme_linkcolor = "#598a92"; property string layout_type { des = "Layout Type"; values = "1C|One column|2CL|Two column (Sidebar on Left)|2CR|Two column (Sidebar on Right)|3C|Three column"; } set layout_type = "2CR"; property string{} theme_stylesheet { noui = 1; } set theme_stylesheet = { # Bloggish themes "april" => "http://www.insanejournal.com/stc/sixhtml/themes/classic/theme-april.css", "baby" => "http://www.insanejournal.com/stc/sixhtml/themes/lilia/theme-baby.css", "beckett" => "http://www.insanejournal.com/stc/sixhtml/themes/lilia/theme-beckett.css", "bluecrush" => "http://www.insanejournal.com/stc/sixhtml/themes/lilia/theme-bluecrush.css", "bonjour" => "http://www.insanejournal.com/stc/sixhtml/themes/classic/theme-bonjour.css", "bryant" => "http://www.insanejournal.com/stc/sixhtml/themes/lilia/theme-bryant.css", "cityblend" => "http://www.insanejournal.com/stc/sixhtml/themes/shea/theme-cityblend.css", "classy" => "http://www.insanejournal.com/stc/sixhtml/themes/classic/theme-classy.css", "earth" => "http://www.insanejournal.com/stc/sixhtml/themes/classic/theme-earth.css", "folio" => "http://www.insanejournal.com/stc/sixhtml/themes/shea/theme-folio.css", "forestgreen" => "http://www.insanejournal.com/stc/sixhtml/themes/shea/theme-forestgreen.css", "green" => "http://www.insanejournal.com/stc/sixhtml/themes/classic/theme-green.css", "knitting" => "http://www.insanejournal.com/stc/sixhtml/themes/lilia/theme-knitting.css", "masala" => "http://www.insanejournal.com/stc/sixhtml/themes/lilia/theme-masala.css", "minimalist" => "http://www.insanejournal.com/stc/sixhtml/themes/classic/theme-minimalist.css", "porpoise" => "http://www.insanejournal.com/stc/sixhtml/themes/shea/theme-porpoise.css", "powell-street" => "http://www.insanejournal.com/stc/sixhtml/themes/lilia/theme-powell-street.css", "purplecrush" => "http://www.insanejournal.com/stc/sixhtml/themes/lilia/theme-purplecrush.css", "stevenson" => "http://www.insanejournal.com/stc/sixhtml/themes/lilia/theme-stevenson.css", "stitch" => "http://www.insanejournal.com/stc/sixhtml/themes/lilia/theme-stitch.css", "subtle" => "http://www.insanejournal.com/stc/sixhtml/themes/lilia/theme-subtle.css", "sunburned" => "http://www.insanejournal.com/stc/sixhtml/themes/shea/theme-sunburned.css", "tickle" => "http://www.insanejournal.com/stc/sixhtml/themes/shea/theme-tickle.css", "travel" => "http://www.insanejournal.com/stc/sixhtml/themes/lilia/theme-travel.css", "wedding" => "http://www.insanejournal.com/stc/sixhtml/themes/lilia/theme-wedding.css", # Style Contest themes "bamboo_dream" => "http://www.insanejournal.com/stc/sixhtml/themes/stylecontest/bamboo_dream/bamboodream.css", "cartoon" => "http://www.insanejournal.com/stc/sixhtml/themes/stylecontest/cartoon/style.css", "clean_cut" => "http://www.insanejournal.com/stc/sixhtml/themes/stylecontest/clean_cut/stylesheet.css", "cleanstyle_black_and_white" => "http://www.insanejournal.com/stc/sixhtml/themes/stylecontest/cleanstyle_black_and_white/theme-clean_style_bw.css", "cleanstyle_blue_and_yellow" => "http://www.insanejournal.com/stc/sixhtml/themes/stylecontest/cleanstyle_blue_and_yellow/theme-clean_style_by.css", "espresso_at_midnight" => "http://www.insanejournal.com/stc/sixhtml/themes/stylecontest/espresso_at_midnight/style.css", "feminism" => "http://www.insanejournal.com/stc/sixhtml/themes/stylecontest/feminism/feminism.css", "fleur" => "http://www.insanejournal.com/stc/sixhtml/themes/stylecontest/fleur/fleur.css", "frankenblog" => "http://www.insanejournal.com/stc/sixhtml/themes/stylecontest/frankenblog/frankenblog.css", "freshly_baked_bread" => "http://www.insanejournal.com/stc/sixhtml/themes/stylecontest/freshly_baked_bread/theme-fbbread.css", "garden_state" => "http://www.insanejournal.com/stc/sixhtml/themes/stylecontest/garden_state/gardenstate.css", "gothic" => "http://www.insanejournal.com/stc/sixhtml/themes/stylecontest/gothic/styles.css", "hot_springs" => "http://www.insanejournal.com/stc/sixhtml/themes/stylecontest/hot_springs/style.css", "kinda_canoe" => "http://www.insanejournal.com/stc/sixhtml/themes/stylecontest/kinda_canoe/boat6.css", "kubrick" => "http://www.insanejournal.com/stc/sixhtml/themes/stylecontest/kubrick/theme-kubrick.css", "magic_paper" => "http://www.insanejournal.com/stc/sixhtml/themes/stylecontest/magic_paper/magic-book.css", "make_my_way" => "http://www.insanejournal.com/stc/sixhtml/themes/stylecontest/make_my_way/makemyway.css", "makeup" => "http://www.insanejournal.com/stc/sixhtml/themes/stylecontest/makeup/styles-site.css", "mango" => "http://www.insanejournal.com/stc/sixhtml/themes/stylecontest/mango/theme-mango.css", "miniml" => "http://www.insanejournal.com/stc/sixhtml/themes/stylecontest/miniml/miniml.css", "modernist_citron" => "http://www.insanejournal.com/stc/sixhtml/themes/stylecontest/modernist_citron/modernist-citron.css", "modernist_lounge" => "http://www.insanejournal.com/stc/sixhtml/themes/stylecontest/modernist_lounge/modernist-lounge.css", "my_news" => "http://www.insanejournal.com/stc/sixhtml/themes/stylecontest/my_news/styles-site.css", "newsline" => "http://www.insanejournal.com/stc/sixhtml/themes/stylecontest/newsline/newsline.css", "note_taking" => "http://www.insanejournal.com/stc/sixhtml/themes/stylecontest/note_taking/theme-notes.css", "painterly" => "http://www.insanejournal.com/stc/sixhtml/themes/stylecontest/painterly/painterly.css", "scarf" => "http://www.insanejournal.com/stc/sixhtml/themes/stylecontest/scarf/scarf.css", "shadow_dancers" => "http://www.insanejournal.com/stc/sixhtml/themes/stylecontest/shadow_dancers/style.css", "shlyapa" => "http://www.insanejournal.com/stc/sixhtml/themes/stylecontest/shlyapa/shlyapa.css", "summer_love" => "http://www.insanejournal.com/stc/sixhtml/themes/stylecontest/summer_love/theme-summerlove.css", "swimmingly" => "http://www.insanejournal.com/stc/sixhtml/themes/stylecontest/swimmingly/theme-swimmingly.css", "the_great_outdoors" => "http://www.insanejournal.com/stc/sixhtml/themes/stylecontest/the_great_outdoors/greatoutdoors.css", "the_late_show" => "http://www.insanejournal.com/stc/sixhtml/themes/stylecontest/the_late_show/thelateshow.css", "the_road_to_october" => "http://www.insanejournal.com/stc/sixhtml/themes/stylecontest/the_road_to_october/roadtooctober.css", "top_secret" => "http://www.insanejournal.com/stc/sixhtml/themes/stylecontest/top_secret/style.css", "utopia" => "http://www.insanejournal.com/stc/sixhtml/themes/stylecontest/utopia/stylesheet.css", "zen_and_the_art_of_movable_type" => "http://www.insanejournal.com/stc/sixhtml/themes/stylecontest/zen_and_the_art_of_movable_type/theme-zataomt.css", }; property use page_recent_items; property use page_friends_items; property use page_day_sortorder; property use page_year_sortorder; property use view_entry_disabled; property use use_shared_pic; property bool opt_datehead { des = "Show Heading for New Day"; } set opt_datehead = true; property bool opt_showtime { des = "Show Posting Time on Entries"; note = "This is recommended if you regularly post more than one entry per day."; } set opt_showtime = true; property bool opt_userpic_main { des = "Show Userpics on Entries"; } property bool opt_userpic_friends { des = "Show Userpics on Entries on your Friends Page"; } property bool opt_userpic_entrypage { des = "Show Userpic on the Entry page"; } property bool opt_userpic_comments { des = "Show Userpics on Comments"; } set opt_userpic_main = true; set opt_userpic_friends = true; set opt_userpic_entrypage = true; set opt_userpic_comments = true; property string[][] sidebar_primary { des = "Primary sidebar members"; noui = 1; } property string[][] sidebar_secondary { des = "Secondary sidebar members"; noui = 1; } set sidebar_primary = []; # Set in prop_init() set sidebar_secondary = []; # Set in prop_init() set external_stylesheet = true; property use linklist_support; property use custom_control_strip_colors; } propgroup colors { property use control_strip_bgcolor; property use control_strip_fgcolor; property use control_strip_bordercolor; property use control_strip_linkcolor; } propgroup text { property use text_post_comment; property use text_read_comments; property use text_post_comment_friends; property use text_read_comments_friends; property use text_view_recent; property use text_view_archive; property use text_view_friends; property use text_view_userinfo; property use lang_fmt_date_med; property use lang_fmt_time_short; # i18n props. Not in the interface. property string text_comments { des = "Text for the heading above the comments on the entry page"; noui = 1; } set text_comments = "Comments"; } propgroup customcss { property bool use_6a_base { des = "Use layout's \"Base Weblog\" stylesheet"; note = "Disable this only if you want to re-style this layout completely from scratch using a custom stylesheet and if you selected \"(None)\" as your theme."; } set use_6a_base = true; property string linked_stylesheet { des = "Custom external stylesheet URL"; note = "If you selected \"(None)\" as your theme and have a custom external stylesheet that you'd like to use instead, or if you'd just like to use a custom external stylesheet in addition to your theme's stylesheet, enter its URL here."; } set linked_stylesheet = ""; property string custom_css { des = "Custom stylesheet"; note = "If you selected \"(None)\" as your theme and have custom CSS that you'd like to use instead, or if you'd just like to add custom CSS in addition to your theme's stylesheet, enter it here."; cols = 80; rows = 20; string_mode = "css"; } set custom_css = ""; } function prop_init() { # Did the user specify custom sidebars? If so, we don't want to change them. var bool custom_primary = (size $*sidebar_primary > 0) ? true : false; var bool custom_secondary = (size $*sidebar_secondary > 0) ? true : false; # These themes don't support the 3C layout var string[] no_3C_themes = [ "clean_cut", "frankenblog", "freshly_baked_bread", "gothic", "kinda_canoe", "miniml", "note_taking", "painterly", "shlyapa", "summer_love", "the_road_to_october", ]; # Don't let users use 3C if they're using one of the themes that doesn't support it if ($*layout_type == "3C") { foreach var string theme ($no_3C_themes) { if ($theme == $*base_theme) { $*layout_type = "2CL"; } } } # Users who see eboxes cannot use the 3 column layout because the ebox won't always fit if (viewer_sees_ebox() and $*layout_type == "3C") { $*layout_type = "2CL"; } if (viewer_sees_vbox()) { # Users who see ads cannot use the 1 column layout if ($*layout_type == "1C") { $*layout_type = "2CR"; } if (not $custom_primary) { if ($*layout_type == "3C") { $*sidebar_primary = [ [ "userprofile", "", "0", "1" ], [ "viewlinks", "" ], [ "calendar" ], [ "links", "Links" ], [ "syndicate", "Syndicate" ], [ "poweredby" ], ]; } else { $*sidebar_primary = [ [ "userprofile", "", "0", "1" ], [ "viewlinks", "" ], [ "calendar" ], [ "ads", "" ], [ "links", "Links" ], [ "tags", "Tags" ], [ "pagesummary", "Page Summary" ], [ "syndicate", "Syndicate" ], [ "poweredby" ], ]; } } if (not $custom_secondary) { $*sidebar_secondary = [ [ "ads", "" ], [ "tags", "Tags" ], [ "pagesummary", "Page Summary" ], ]; } } else { if (not $custom_primary) { if ($*layout_type == "3C") { $*sidebar_primary = [ [ "userprofile", "", "0", "1" ], [ "viewlinks", "" ], [ "calendar" ], [ "links", "Links" ], [ "syndicate", "Syndicate" ], [ "poweredby" ], ]; } else { $*sidebar_primary = [ [ "userprofile", "", "0", "1" ], [ "viewlinks", "" ], [ "calendar" ], [ "links", "Links" ], [ "tags", "Tags" ], [ "pagesummary", "Page Summary" ], [ "syndicate", "Syndicate" ], [ "poweredby" ], ]; } } if (not $custom_secondary) { $*sidebar_secondary = [ [ "tags", "Tags" ], [ "pagesummary", "Page Summary" ], ]; } } # Set the control strip colors if ($*control_strip_bgcolor.as_string == "") { $*control_strip_bgcolor = $*theme_bgcolor; } if ($*control_strip_fgcolor.as_string == "") { $*control_strip_fgcolor = $*theme_fgcolor; } if ($*control_strip_bordercolor.as_string == "") { $*control_strip_bordercolor = $*theme_bordercolor; } if ($*control_strip_linkcolor.as_string == "") { $*control_strip_linkcolor = $*theme_linkcolor; } } function print_custom_stylesheet() {} function print_stylesheet () { print_custom_control_strip_css(); """ /* user css */ """; print_custom_stylesheet(); } function container_open (string name) { print safe "
"+$p.journal.name+"
"; # TODO: Display more stuff such as website link close_module(); } function print_module_viewlinks(string title) { var Page p = get_page(); open_module("viewlinks", $title, ""); var string[] links = []; foreach var string k ($p.views_order) { $links[size $links] = """"""+lang_viewname($k)+""""""; } print_module_list($links); close_module(); } function print_module_poweredby(string title) { var Page p = get_page(); open_module("powered", $title, ""); println """Powered by $*SITENAME"""; close_module(); } function print_module_pagesummary(string title) { var Page p = get_page(); var string[] links = []; if ($p isa RecentPage) { var RecentPage cp = $p as RecentPage; var string subject; foreach var Entry e ($cp.entries) { $subject = ($e.subject != "" ? striphtml($e.subject) : "$*text_nosubject"); $links[size $links] = """$subject"""; } } if (size($links) < 1) { return; } open_module("pagesummary", $title, ""); print_module_list($links); close_module(); } function print_module_tags(string title) { var Page p = get_page(); var TagDetail[] tags = $p->visible_tag_list(); if (size($tags) < 1) { return; } open_module("categories", $title, ""); # TODO: Link to the TagsPage? var string[] links = []; foreach var TagDetail tag ($tags) { $links[size $links] = """$tag.name"""; } print_module_list($links); close_module(); } function print_module_calendar() { var Page p = get_page(); var YearMonth mon = $p->get_latest_month(); open_module("calendar", $mon->month_format(), ""); println """"+$*lang_dayname_shorter[$d]+" | \n"; } println "||
---|---|---|
"; } foreach var YearDay day ($week.days) { print " | "; if ($day.num_entries > 0) { print """"""; } print $day.day; if ($day.num_entries > 0) { print """"""; } print " | "; } foreach var int i (1 .. $week.post_empty) { print ""; } println " |
"""; if ($.nav.backward_url != "") { println """"""+get_plural_phrase($.nav.backward_count, "text_skiplinks_back")+""; } if ($.nav.backward_url != "" and $.nav.forward_url != "") { print " | "; } if ($.nav.forward_url != "") { println """"""+get_plural_phrase($.nav.forward_count, "text_skiplinks_forward")+""; } println """
"""; } foreach var Entry e ($.entries) { if ($*opt_datehead and $e.new_day) { print """"""; if ($.nav.backward_url != "") { println """"""+get_plural_phrase($.nav.backward_count, "text_skiplinks_back")+""; } if ($.nav.backward_url != "" and $.nav.forward_url != "") { print " | "; } if ($.nav.forward_url != "") { println """"""+get_plural_phrase($.nav.forward_count, "text_skiplinks_forward")+""; } println """
"""; } } function EntryPage::print_body() { $this->print_entry($.entry); """$*text_noentries_day
"; } ""+lang_posted_by($e.poster, $e.poster)+"
"; ""+lang_posted_by($e.poster, $e.journal, $this)+"
"; } "
$*text_comments