<?xml version='1.0' encoding='utf-8' ?>

<rss version='2.0' xmlns:lj='http://www.livejournal.org/rss/lj/1.0/' xmlns:atom10='http://www.w3.org/2005/Atom'>
<channel>
  <title>houndsofhell</title>
  <link>https://houndsofhell.dreamwidth.org/</link>
  <description>houndsofhell - Dreamwidth Studios</description>
  <lastBuildDate>Thu, 09 Mar 2017 11:38:58 GMT</lastBuildDate>
  <generator>LiveJournal / Dreamwidth Studios</generator>
  <lj:journal>houndsofhell</lj:journal>
  <lj:journaltype>personal</lj:journaltype>
  <image>
    <url>https://v2.dreamwidth.org/10947594/2747233</url>
    <title>houndsofhell</title>
    <link>https://houndsofhell.dreamwidth.org/</link>
    <width>100</width>
    <height>100</height>
  </image>

<item>
  <guid isPermaLink='true'>https://houndsofhell.dreamwidth.org/67705.html</guid>
  <pubDate>Thu, 09 Mar 2017 11:38:58 GMT</pubDate>
  <title>Fix Broken Style Imports</title>
  <link>https://houndsofhell.dreamwidth.org/67705.html</link>
  <description>Some imported styles from insanejournal -- such as Bloggish from &lt;a href=&quot;https://rainfall.dreamwidth.org/55975.html&quot;&gt;this tutorial&lt;/a&gt; -- rely upon assets from non-secure pages. This isn&apos;t an issue half the time you&apos;re browsing dreamwidth, but occasionally blogs are displayed through https... which means those assets flat out cannot be imported and your theme breaks.&lt;br /&gt;&lt;br /&gt;Luckily, there&apos;s an easy fix, as I went and made a quick and dirty tumblr theme for myself that uses the base-weblog style &lt;s&gt;so that I wouldn&apos;t be breaking the TOS by uploading the asset to tumblr&lt;/s&gt;. Here&apos;s how to fix those broken styles using that .css file:&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Go to &lt;a href=&quot;http://www.dreamwidth.org/customize/advanced/layers.bml&quot;&gt;Your Layers&lt;/a&gt;.&lt;/li&gt;&lt;li&gt;Find the imported layer and click &lt;b&gt;Edit&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;Use your browser&apos;s &lt;b&gt;find&lt;/b&gt; function to search for the following:&lt;br /&gt;&lt;small&gt;&lt;a href=&quot;http://www.insanejournal.com/stc/sixhtml/themes/common/base-weblog.css&quot;&gt;http://www.insanejournal.com/stc/sixhtml/themes/common/base-weblog.css&lt;/a&gt;&lt;/small&gt;&lt;/li&gt;&lt;li&gt;Replace the url with:&lt;br /&gt;&lt;small&gt;&lt;a href=&quot;https://static.tumblr.com/rnvyx8p/ORsomjp1d/base-weblog.css&quot;&gt;https://static.tumblr.com/rnvyx8p/ORsomjp1d/base-weblog.css&lt;/a&gt;&lt;/small&gt;&lt;/li&gt;&lt;li&gt;Press &lt;b&gt;Save and Complie&lt;/b&gt; at the top of the page.&lt;/li&gt;&lt;li&gt;It should compile with no errors. If so, press &lt;b&gt;Back to Layers&lt;/b&gt;.&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;That&apos;s it, you&apos;re done!&lt;br /&gt;&lt;br /&gt;&lt;img src=&quot;https://www.dreamwidth.org/tools/commentcount?user=houndsofhell&amp;ditemid=67705&quot; width=&quot;30&quot; height=&quot;12&quot; alt=&quot;comment count unavailable&quot; style=&quot;vertical-align: middle;&quot;/&gt; comments</description>
  <comments>https://houndsofhell.dreamwidth.org/67705.html</comments>
  <category>#resources</category>
  <category>resources</category>
  <category>!resources</category>
  <category>(reference)</category>
  <category>*resources</category>
  <lj:mood>productive</lj:mood>
  <lj:security>public</lj:security>
  <lj:reply-count>0</lj:reply-count>
</item>
<item>
  <guid isPermaLink='true'>https://houndsofhell.dreamwidth.org/67443.html</guid>
  <pubDate>Thu, 09 Mar 2017 10:23:46 GMT</pubDate>
  <title>Fixing IJ Layout Images on Dreamwidth</title>
  <link>https://houndsofhell.dreamwidth.org/67443.html</link>
  <description>If you&apos;ve installed a layout meant for IJ onto DW, this is &lt;i&gt;necessary&lt;/i&gt; to make the layout appear properly. It feels like a lot of work, but in the end it&apos;s not really that much. &lt;br /&gt;&lt;br /&gt;Start by searching for one of the &quot;find this&quot; versions. If you find it, great! If not, skip to the next table and try one from it. Unfortunately, there&apos;s several different methods used and I&apos;m only familiar with two of them. The same principle applies to layouts from livejournal, but will be more manual. Since those are so rare, I&apos;m not including those in the guide.&lt;br /&gt;&lt;br /&gt;&lt;span class=&quot;cut-wrapper&quot;&gt;&lt;span style=&quot;display: none;&quot; id=&quot;span-cuttag___1&quot; class=&quot;cuttag&quot;&gt;&lt;/span&gt;&lt;b class=&quot;cut-open&quot;&gt;(&amp;nbsp;&lt;/b&gt;&lt;b class=&quot;cut-text&quot;&gt;&lt;a href=&quot;https://houndsofhell.dreamwidth.org/67443.html#cutid1&quot;&gt;finding, replacing, finding, replacing...&lt;/a&gt;&lt;/b&gt;&lt;b class=&quot;cut-close&quot;&gt;&amp;nbsp;)&lt;/b&gt;&lt;/span&gt;&lt;div style=&quot;display: none;&quot; id=&quot;div-cuttag___1&quot; aria-live=&quot;assertive&quot;&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;img src=&quot;https://www.dreamwidth.org/tools/commentcount?user=houndsofhell&amp;ditemid=67443&quot; width=&quot;30&quot; height=&quot;12&quot; alt=&quot;comment count unavailable&quot; style=&quot;vertical-align: middle;&quot;/&gt; comments</description>
  <comments>https://houndsofhell.dreamwidth.org/67443.html</comments>
  <category>*resources</category>
  <category>!resources</category>
  <category>[ original to houndsofhell ]</category>
  <category>resources</category>
  <category>(reference)</category>
  <category>#resources</category>
  <lj:mood>accomplished</lj:mood>
  <lj:security>public</lj:security>
  <lj:reply-count>0</lj:reply-count>
</item>
<item>
  <guid isPermaLink='true'>https://houndsofhell.dreamwidth.org/67126.html</guid>
  <pubDate>Wed, 08 Mar 2017 09:09:06 GMT</pubDate>
  <title>Simpler DW Profile Code</title>
  <link>https://houndsofhell.dreamwidth.org/67126.html</link>
  <description>Still needs photoshop, but with way less effort than the prettier one.&lt;br /&gt;&lt;br /&gt;Take profile image and resize to width of 500px. Sharpen adequately.&lt;br /&gt;Increase canvas relatively by 12px, fill a transparent layer with inner colour.&lt;br /&gt;Increase canvas relatively by 16px, fill a transparent layer with outer colour.&lt;br /&gt;Save and upload somewhere.&lt;br /&gt;&lt;br /&gt;&lt;span class=&quot;cut-wrapper&quot;&gt;&lt;span style=&quot;display: none;&quot; id=&quot;span-cuttag___1&quot; class=&quot;cuttag&quot;&gt;&lt;/span&gt;&lt;b class=&quot;cut-open&quot;&gt;(&amp;nbsp;&lt;/b&gt;&lt;b class=&quot;cut-text&quot;&gt;&lt;a href=&quot;https://houndsofhell.dreamwidth.org/67126.html#cutid1&quot;&gt;Not as fancy, but less effort required.&lt;/a&gt;&lt;/b&gt;&lt;b class=&quot;cut-close&quot;&gt;&amp;nbsp;)&lt;/b&gt;&lt;/span&gt;&lt;div style=&quot;display: none;&quot; id=&quot;div-cuttag___1&quot; aria-live=&quot;assertive&quot;&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;img src=&quot;https://www.dreamwidth.org/tools/commentcount?user=houndsofhell&amp;ditemid=67126&quot; width=&quot;30&quot; height=&quot;12&quot; alt=&quot;comment count unavailable&quot; style=&quot;vertical-align: middle;&quot;/&gt; comments</description>
  <comments>https://houndsofhell.dreamwidth.org/67126.html</comments>
  <category>*templates</category>
  <category>[ original to houndsofhell ]</category>
  <category>!template</category>
  <lj:mood>indifferent</lj:mood>
  <lj:security>public</lj:security>
  <lj:reply-count>0</lj:reply-count>
</item>
<item>
  <guid isPermaLink='true'>https://houndsofhell.dreamwidth.org/66930.html</guid>
  <pubDate>Tue, 07 Mar 2017 10:28:23 GMT</pubDate>
  <title>Using &quot;Is This It?&quot; by ~tessisamess on DW {customized}</title>
  <link>https://houndsofhell.dreamwidth.org/66930.html</link>
  <description>Since I&apos;ve decided to use &lt;a href=&quot;http://tessisamess.insanejournal.com/45327.html#cutid1&quot;&gt;this lovely layout&lt;/a&gt; by &lt;span style=&apos;white-space: nowrap;&apos;&gt;&lt;a href=&apos;https://www.insanejournal.com/users/tessisamess/profile&apos;&gt;&lt;img src=&apos;https://www.dreamwidth.org/img/external/ij-userinfo.gif&apos; alt=&apos;[insanejournal.com profile] &apos; style=&apos;vertical-align: text-bottom; border: 0; padding-right: 1px;&apos; width=&apos;21&apos; height=&apos;20&apos;/&gt;&lt;/a&gt;&lt;a href=&apos;https://www.insanejournal.com/users/tessisamess/&apos;&gt;&lt;b&gt;tessisamess&lt;/b&gt;&lt;/a&gt;&lt;/span&gt; as my default RP journal theme on dreamwidth, I&apos;ve made myself a little guide to installing the version I customized. This is for my personal use, but left unlocked so that I can refer to it while logged into new journals and such.&lt;br /&gt;&lt;br /&gt;&lt;big&gt;&lt;u&gt;Installing Complete Style from IJ&lt;/u&gt;&lt;/big&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;Go to &lt;a href=&quot;http://www.dreamwidth.org/customize/advanced/layers.bml&quot;&gt;Your Layers&lt;/a&gt;.&lt;/li&gt;&lt;li&gt;Under &lt;b&gt;create top-level layer&lt;/b&gt;, select &lt;b&gt;type: layout&lt;/b&gt; and &lt;b&gt;version: 1&lt;/b&gt; then choose &lt;b&gt;create&lt;/b&gt;.&lt;/li&gt;&lt;li&gt;Click &lt;b&gt;Edit&lt;/b&gt; next to the newly-created layer.&lt;/li&gt;&lt;li&gt;Delete what appears in the editor and replace it with the following (Complete Style from insanejournal, &lt;a href=&quot;http://dw-styles.dreamwidth.org/5062.html&quot;&gt;fixed to support reading pages&lt;/a&gt;):&lt;br /&gt;&lt;textarea&gt;# -*-s2-*-
layerinfo type = &quot;layout&quot;;
layerinfo name = &quot;Complete Style&quot;;
layerinfo redist_uniq = &quot;completestyle/layout&quot;;
layerinfo des = &quot;A CSS styleable layout with configurable sidebar, based on SixApart&apos;s Bloggish.&quot;;
layerinfo author_name = &quot;branchandroot&quot;;
layerinfo author_email = &quot;&quot;;
layerinfo previews = &quot;completestyle/completestyle.png&quot;;
layerinfo source_viewable = &quot;1&quot;;
layerinfo is_public = 1;

#Many thanks to camomiletea for troubleshooting.

propgroup presentation {
    # This property is now set in a theme layer
    property string base_theme {
        des = &quot;Base Theme&quot;;
        noui = 1;
    }
    set base_theme = &quot;basic-green&quot;;

    property string layout_type {
        des = &quot;Layout Type&quot;;
        values = &quot;1C|One column|2CL|Two column (Sidebar on Left)|2CR|Two column (Sidebar on Right)|3CM|Three column (Content in Middle)|3CR|Three column (Sidebars on Right)|3CL|Three column (Sidebars on Left)&quot;;
    }
    set layout_type = &quot;2CR&quot;;

    property string{} theme_stylesheet {
        noui = 1;
    }
    set theme_stylesheet = {
	    &quot;none&quot; =&amp;gt; &quot;&quot;,
        &quot;basic-green&quot; =&amp;gt; &quot;BasicGreen/theme-basic-green.css&quot;,
        &quot;basic-blue&quot; =&amp;gt; &quot;BasicBlue/theme-basic-blue.css&quot;,
        &quot;basic-orange&quot; =&amp;gt; &quot;BasicOrange/theme-basic-orange.css&quot;,
        &quot;basic-blackandwhite&quot; =&amp;gt; &quot;BasicBlackandwhite/theme-basic-blackandwhite.css&quot;,
		&quot;colorside-fish&quot; =&amp;gt; &quot;ColorSideFish/theme-colorside-fish.css&quot;,
		&quot;colorside-atom&quot; =&amp;gt; &quot;ColorSideAtom/theme-colorside-atom.css&quot;,
		&quot;colorside-nadeshiko&quot; =&amp;gt; &quot;ColorSideNadeshiko/theme-colorside-nadeshiko.css&quot;,
		&quot;colorside-wintergreen&quot; =&amp;gt; &quot;ColorSideWintergreen/theme-colorside-wintergreen.css&quot;,
		&quot;colorside-fallleaves&quot; =&amp;gt; &quot;ColorSideFallLeaves/theme-colorside-fallleaves.css&quot;,
        &quot;winter-red&quot; =&amp;gt; &quot;WinterRed/theme-winter-red.css&quot;,
		&quot;botanical&quot; =&amp;gt; &quot;Botanical/theme-botanical.css&quot;,
		&quot;seaside&quot; =&amp;gt; &quot;Seaside/theme-seaside.css&quot;,
		&quot;travel-light&quot; =&amp;gt; &quot;Travel/theme-travel-light.css&quot;,
		&quot;travel-dark&quot; =&amp;gt; &quot;Travel/theme-travel-dark.css&quot;,
		&quot;tulip-green&quot; =&amp;gt; &quot;TulipGreen/theme-tulip-green.css&quot;,
		&quot;neon-butterflies&quot; =&amp;gt; &quot;NeonButterflies/theme-neon-butterflies.css&quot;,
    };

    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 = &quot;Show Day Header&quot;;
    }
    set opt_datehead = true;

    property bool opt_showtime {
        des = &quot;Show Posting Time on Entries&quot;;
    }
    set opt_showtime = true;

    property bool opt_userpic_main {
        des = &quot;Show Userpics on Entries&quot;;
    }
    property bool opt_userpic_friends {
        des = &quot;Show Userpics on Entries on your Friends Page&quot;;
    }
    property bool opt_userpic_entrypage {
        des = &quot;Show Userpic on the Entry page&quot;;
    }
    property bool opt_userpic_comments {
        des = &quot;Show Userpics on Comments&quot;;
    }
    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 = &quot;Primary sidebar members&quot;;
        noui = 1;
    }
    property string[][] sidebar_secondary {
        des = &quot;Secondary sidebar members&quot;;
        noui = 1;
    }
    set sidebar_primary = []; # Set in prop_init()
    set sidebar_secondary = []; # Set in prop_init()

    set external_stylesheet = true;

property string[] lang_dayname_shorter {
    noui = 1;
    des = &quot;Days of the week, in their one letter forms.  Indexed from 1 (S) to 7 (S).&quot;;
}
set lang_dayname_shorter = [ &quot;&quot;, &quot;S&quot;, &quot;M&quot;,  &quot;T&quot;, &quot;W&quot;,
                             &quot;T&quot;, &quot;F&quot;, &quot;S&quot; ];
}

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;

property string text_tell_friend {
    des = &quot;Text to tell a friend about an entry&quot;;
}
set text_tell_friend = &quot;Tell&quot;;

    # i18n props. Not in the interface.
    property string text_comments {
        des = &quot;Text for the heading above the comments on the entry page&quot;;
        noui = 1;
    }
    set text_comments = &quot;Comments&quot;;

    property string text_edit{
        des = &quot;Text to edit an entry&quot;;
    }
    property string text_edittag{
        des = &quot;Text to edit tags for an entry&quot;;
    }
    property string text_add_to_memories{
        des = &quot;Text to add an entry into memories&quot;;
    }
    property string text_track_comments{
        des = &quot;Text to track new comments on an entry&quot;;
    }
    property string text_untrack_comments{
        des = &quot;Text to stop tracking new comments on an entry&quot;;
    }
    set text_edit = &quot;Edit&quot;;
    set text_edittag = &quot;Edit Tags&quot;;
    set text_add_to_memories = &quot;Remember&quot;;
    set text_track_comments = &quot;Track Comments&quot;;
    set text_untrack_comments = &quot;Stop Tracking Comments&quot;;

    property string text_no_subject{
	des = &quot;Text to put in the header when the entry has no subject&quot;;
    }
    set text_no_subject = &quot;[No Subject]&quot;;

    property string sticky_subject {
        des = &quot;Sticky note&apos;s subject line&quot;;
    }

    property string sticky_post {
        des = &quot;Sticky note&quot;;
        note = &quot;If you&apos;d like to put a sticky note at the top of your journal, enter it here.&quot;;
        cols = 40;
        rows = 10;
        string_mode = &quot;html&quot;;
    }
    set sticky_subject = &quot;Note&quot;;
    set sticky_post = &quot;&quot;;

    property string customtext_title {
        des = &quot;Title to use for custom text sidebar module&quot;;
    }
    set customtext_title = &quot;&quot;;

    property string customtext_titlelink_url {
        des = &quot;URL to link to from custom text sidebar module&quot;;
    }
    set customtext_titlelink_url = &quot;&quot;;

    property string customtext_text {
        des = &quot;Body of custom sidebar module&quot;;
        cols = 40;
        rows = 10;
        string_mode = &quot;html&quot;;
    }
    set customtext_text = &quot;&quot;;

    property string customtext2_title {
        des = &quot;Title to use for second custom text sidebar module&quot;;
    }
    set customtext2_title = &quot;&quot;;

    property string customtext2_titlelink_url {
        des = &quot;URL to link to from second custom text sidebar module&quot;;
    }
    set customtext2_titlelink_url = &quot;&quot;;

    property string customtext2_text {
        des = &quot;Body of second custom sidebar module&quot;;
        cols = 40;
        rows = 10;
        string_mode = &quot;html&quot;;
    }
    set customtext2_text = &quot;&quot;;

    property string layoutcredit_text {
	des = &quot;Person to credit if you have an individually created layout&quot;;
    }
    set layoutcredit_text = &quot;&quot;;

    property string layoutcredit_url {
	des = &quot;URL to link the credit to&quot;;
    }
    set layoutcredit_url = &quot;&quot;;
}

propgroup sidebars = &quot;Sidebars&quot;;
propgroup sidebars {
    property bool opt_profile_pic {
	des = &quot;Display userpic in profile module?&quot;;
    }
    set opt_profile_pic = true;

    property bool opt_profile_journal {
	des = &quot;Display username in profile module?&quot;;
    }
    set opt_profile_journal = false;

    property bool opt_profile_name {
	des = &quot;Display full name in profile module?&quot;;
    }
    set opt_profile_name = true;

    property bool opt_profile_web {
	des = &quot;Display link to user web-page in profile module?&quot;;
    }
    set opt_profile_web = true;

    property string tag_display {
        des = &quot;Display of tags in sidebar&quot;;
        values = &quot;cloud|Cloud|list|List&quot;;
    }
    set tag_display = &quot;cloud&quot;;

    property bool tagcount {
	des = &quot;Show tag count in hierarchical list?&quot;;
	note = &quot;You must set the tag display to List to use this option. If you format your tags hierarchically, separated by colons, this option will display them as nested lists.  Eg &apos;pets: dog&apos; and &apos;pets: cat&apos; will display with both &apos;dog&apos; and &apos;cat&apos; nested under &apos;pets&apos;.&quot;;
    }
    set tagcount = false;

    property bool opt_tag_limit {
        des = &quot;Cut off tag display in sidebar after certain limit.&quot;;
    }
    set opt_tag_limit = false;

    property int tag_limit {
        des = &quot;Limit of tags to display in Tags sidebar.&quot;;
    }
    set tag_limit = 0;

    property string sideone_first_item {
        des = &quot;First item in primary sidebar&quot;;
        values = &quot;none|(none)|userprofile|Profile|customtext|Custom Text|viewlinks|Nav Links|calendar|Calendar|links|Links|customtext2|Custom Text Two|tags|Tags|pagesummary|Page Summary|layoutcredit|Layout Credit|syndicate|Syndicate|poweredby|Powered by&quot;;
    }
    set sideone_first_item = &quot;userprofile&quot;;

    property string sideone_second_item {
        des = &quot;Second item in primary sidebar&quot;;
        values = &quot;none|(none)|userprofile|Profile|customtext|Custom Text|viewlinks|Nav Links|calendar|Calendar|links|Links|customtext2|Custom Text Two|tags|Tags|pagesummary|Page Summary|layoutcredit|Layout Credit|syndicate|Syndicate|poweredby|Powered by&quot;;
    }
    set sideone_second_item = &quot;customtext&quot;;

    property string sideone_third_item {
        des = &quot;Third item in primary sidebar&quot;;
        values = &quot;none|(none)|userprofile|Profile|customtext|Custom Text|viewlinks|Nav Links|calendar|Calendar|links|Links|customtext2|Custom Text Two|tags|Tags|pagesummary|Page Summary|layoutcredit|Layout Credit|syndicate|Syndicate|poweredby|Powered by&quot;;
    }
    set sideone_third_item = &quot;viewlinks&quot;;

    property string sideone_fourth_item {
        des = &quot;Fourth item in primary sidebar&quot;;
        values = &quot;none|(none)|userprofile|Profile|customtext|Custom Text|viewlinks|Nav Links|calendar|Calendar|links|Links|customtext2|Custom Text Two|tags|Tags|pagesummary|Page Summary|layoutcredit|Layout Credit|syndicate|Syndicate|poweredby|Powered by&quot;;
    }
    set sideone_fourth_item = &quot;calendar&quot;;

    property string sideone_fifth_item {
        des = &quot;Fifth item in primary sidebar&quot;;
        values = &quot;none|(none)|userprofile|Profile|customtext|Custom Text|viewlinks|Nav Links|calendar|Calendar|links|Links|customtext2|Custom Text Two|tags|Tags|pagesummary|Page Summary|layoutcredit|Layout Credit|syndicate|Syndicate|poweredby|Powered by&quot;;
    }
    set sideone_fifth_item = &quot;links&quot;;

    property string sideone_sixth_item {
        des = &quot;Sixth item in primary sidebar&quot;;
        values = &quot;none|(none)|userprofile|Profile|customtext|Custom Text|viewlinks|Nav Links|calendar|Calendar|links|Links|customtext2|Custom Text Two|tags|Tags|pagesummary|Page Summary|layoutcredit|Layout Credit|syndicate|Syndicate|poweredby|Powered by&quot;;
    }
    set sideone_sixth_item = &quot;customtext2&quot;;

    property string sideone_seventh_item {
        des = &quot;Seventh item in primary sidebar&quot;;
        values = &quot;none|(none)|userprofile|Profile|customtext|Custom Text|viewlinks|Nav Links|calendar|Calendar|links|Links|customtext2|Custom Text Two|tags|Tags|pagesummary|Page Summary|layoutcredit|Layout Credit|syndicate|Syndicate|poweredby|Powered by&quot;;
    }
    set sideone_seventh_item = &quot;tags&quot;;

    property string sideone_eighth_item {
        des = &quot;Eighth item in primary sidebar&quot;;
        values = &quot;none|(none)|userprofile|Profile|customtext|Custom Text|viewlinks|Nav Links|calendar|Calendar|links|Links|customtext2|Custom Text Two|tags|Tags|pagesummary|Page Summary|layoutcredit|Layout Credit|syndicate|Syndicate|poweredby|Powered by&quot;;
    }
    set sideone_eighth_item = &quot;pagesummary&quot;;

    property string sideone_ninth_item {
        des = &quot;Ninth item in primary sidebar&quot;;
        values = &quot;none|(none)|userprofile|Profile|customtext|Custom Text|viewlinks|Nav Links|calendar|Calendar|links|Links|customtext2|Custom Text Two|tags|Tags|pagesummary|Page Summary|layoutcredit|Layout Credit|syndicate|Syndicate|poweredby|Powered by&quot;;
    }
    set sideone_ninth_item = &quot;layoutcredit&quot;;

    property string sideone_tenth_item {
        des = &quot;Tenth item in primary sidebar&quot;;
        values = &quot;none|(none)|userprofile|Profile|customtext|Custom Text|viewlinks|Nav Links|calendar|Calendar|links|Links|customtext2|Custom Text Two|tags|Tags|pagesummary|Page Summary|layoutcredit|Layout Credit|syndicate|Syndicate|poweredby|Powered by&quot;;
    }
    set sideone_tenth_item = &quot;syndicate&quot;;

    property string sideone_eleventh_item {
        des = &quot;Eleventh item in primary sidebar&quot;;
        values = &quot;none|(none)|userprofile|Profile|customtext|Custom Text|viewlinks|Nav Links|calendar|Calendar|links|Links|customtext2|Custom Text Two|tags|Tags|pagesummary|Page Summary|layoutcredit|Layout Credit|syndicate|Syndicate|poweredby|Powered by&quot;;
    }
    set sideone_eleventh_item = &quot;poweredby&quot;;

    property string sideone_twelfth_item {
        des = &quot;Twelfth item in primary sidebar&quot;;
        values = &quot;none|(none)|userprofile|Profile|customtext|Custom Text|viewlinks|Nav Links|calendar|Calendar|links|Links|customtext2|Custom Text Two|tags|Tags|pagesummary|Page Summary|layoutcredit|Layout Credit|syndicate|Syndicate|poweredby|Powered by&quot;;
    }
    set sideone_twelfth_item = &quot;none&quot;;

    property string sidetwo_first_item {
        des = &quot;First item in secondary sidebar&quot;;
        values = &quot;none|(none)|userprofile|Profile|customtext|Custom Text|viewlinks|Nav Links|calendar|Calendar|links|Links|customtext2|Custom Text Two|tags|Tags|pagesummary|Page Summary|layoutcredit|Layout Credit|syndicate|Syndicate|poweredby|Powered by&quot;;
    }
    set sidetwo_first_item = &quot;userprofile&quot;;

    property string sidetwo_second_item {
        des = &quot;Second item in secondary sidebar&quot;;
        values = &quot;none|(none)|userprofile|Profile|customtext|Custom Text|viewlinks|Nav Links|calendar|Calendar|links|Links|customtext2|Custom Text Two|tags|Tags|pagesummary|Page Summary|layoutcredit|Layout Credit|syndicate|Syndicate|poweredby|Powered by&quot;;
    }
    set sidetwo_second_item = &quot;customtext&quot;;

    property string sidetwo_third_item {
        des = &quot;Third item in secondary sidebar&quot;;
        values = &quot;none|(none)|userprofile|Profile|customtext|Custom Text|viewlinks|Nav Links|calendar|Calendar|links|Links|customtext2|Custom Text Two|tags|Tags|pagesummary|Page Summary|layoutcredit|Layout Credit|syndicate|Syndicate|poweredby|Powered by&quot;;
    }
    set sidetwo_third_item = &quot;viewlinks&quot;;

    property string sidetwo_fourth_item {
        des = &quot;Fourth item in secondary sidebar&quot;;
        values = &quot;none|(none)|userprofile|Profile|customtext|Custom Text|viewlinks|Nav Links|calendar|Calendar|links|Links|customtext2|Custom Text Two|tags|Tags|pagesummary|Page Summary|layoutcredit|Layout Credit|syndicate|Syndicate|poweredby|Powered by&quot;;
    }
    set sidetwo_fourth_item = &quot;calendar&quot;;

    property string sidetwo_fifth_item {
        des = &quot;Fifth item in secondary sidebar&quot;;
        values = &quot;none|(none)|userprofile|Profile|customtext|Custom Text|viewlinks|Nav Links|calendar|Calendar|links|Links|customtext2|Custom Text Two|tags|Tags|pagesummary|Page Summary|layoutcredit|Layout Credit|syndicate|Syndicate|poweredby|Powered by&quot;;
    }
    set sidetwo_fifth_item = &quot;links&quot;;

    property string sidetwo_sixth_item {
        des = &quot;Sixth item in secondary sidebar&quot;;
        values = &quot;none|(none)|userprofile|Profile|customtext|Custom Text|viewlinks|Nav Links|calendar|Calendar|links|Links|customtext2|Custom Text Two|tags|Tags|pagesummary|Page Summary|layoutcredit|Layout Credit|syndicate|Syndicate|poweredby|Powered by&quot;;
    }
    set sidetwo_sixth_item = &quot;customtext2&quot;;

    property string sidetwo_seventh_item {
        des = &quot;Seventh item in secondary sidebar&quot;;
        values = &quot;none|(none)|userprofile|Profile|customtext|Custom Text|viewlinks|Nav Links|calendar|Calendar|links|Links|customtext2|Custom Text Two|tags|Tags|pagesummary|Page Summary|layoutcredit|Layout Credit|syndicate|Syndicate|poweredby|Powered by&quot;;
    }
    set sidetwo_seventh_item = &quot;tags&quot;;

    property string sidetwo_eighth_item {
        des = &quot;Eighth item in secondary sidebar&quot;;
        values = &quot;none|(none)|userprofile|Profile|customtext|Custom Text|viewlinks|Nav Links|calendar|Calendar|links|Links|customtext2|Custom Text Two|tags|Tags|pagesummary|Page Summary|layoutcredit|Layout Credit|syndicate|Syndicate|poweredby|Powered by&quot;;
    }
    set sidetwo_eighth_item = &quot;pagesummary&quot;;

    property string sidetwo_ninth_item {
        des = &quot;Ninth item in secondary sidebar&quot;;
        values = &quot;none|(none)|userprofile|Profile|customtext|Custom Text|viewlinks|Nav Links|calendar|Calendar|links|Links|customtext2|Custom Text Two|tags|Tags|pagesummary|Page Summary|layoutcredit|Layout Credit|syndicate|Syndicate|poweredby|Powered by&quot;;
    }
    set sidetwo_ninth_item = &quot;layoutcredit&quot;;

    property string sidetwo_tenth_item {
        des = &quot;Tenth item in secondary sidebar&quot;;
        values = &quot;none|(none)|userprofile|Profile|customtext|Custom Text|viewlinks|Nav Links|calendar|Calendar|links|Links|customtext2|Custom Text Two|tags|Tags|pagesummary|Page Summary|layoutcredit|Layout Credit|syndicate|Syndicate|poweredby|Powered by&quot;;
    }
    set sidetwo_tenth_item = &quot;syndicate&quot;;

    property string sidetwo_eleventh_item {
        des = &quot;Eleventh item in secondary sidebar&quot;;
        values = &quot;none|(none)|userprofile|Profile|customtext|Custom Text|viewlinks|Nav Links|calendar|Calendar|links|Links|customtext2|Custom Text Two|tags|Tags|pagesummary|Page Summary|layoutcredit|Layout Credit|syndicate|Syndicate|poweredby|Powered by&quot;;
    }
    set sidetwo_eleventh_item = &quot;poweredby&quot;;

    property string sidetwo_twelfth_item {
        des = &quot;Twelfth item in secondary sidebar&quot;;
        values = &quot;none|(none)|userprofile|Profile|customtext|Custom Text|viewlinks|Nav Links|calendar|Calendar|links|Links|customtext2|Custom Text Two|tags|Tags|pagesummary|Page Summary|layoutcredit|Layout Credit|syndicate|Syndicate|poweredby|Powered by&quot;;
    }
    set sidetwo_twelfth_item = &quot;none&quot;;

}

propgroup customcss {

    property string linked_stylesheet {
        des = &quot;Custom external stylesheet URL&quot;;
        note = &quot;If you selected \&quot;(None)\&quot; as your theme and have a custom external stylesheet that you&apos;d like to use instead, or if you&apos;d just like to use a custom external stylesheet in addition to your theme&apos;s stylesheet, enter its URL here.&quot;;
    }
    set linked_stylesheet = &quot;&quot;;

    property string custom_css {
        des = &quot;Custom stylesheet&quot;;
        note = &quot;If you selected \&quot;(None)\&quot; as your theme and have custom CSS that you&apos;d like to use instead, or if you&apos;d just like to add custom CSS in addition to your theme&apos;s stylesheet, enter it here.&quot;;
        cols = 80;
        rows = 20;
        string_mode = &quot;css&quot;;
    }
    set custom_css = &quot;&quot;;
}

function prop_init() {

    if (viewer_sees_vbox()) {
        # Users who see ads cannot use the 1 column layout
        if ($*layout_type == &quot;1C&quot;) {
            $*layout_type = &quot;2CR&quot;;
        }
                $*sidebar_primary = [
                    [ &quot;$*sideone_first_item&quot; ],
		    [ &quot;$*sideone_second_item&quot; ],
                    [ &quot;$*sideone_third_item&quot; ],
                    [ &quot;$*sideone_fourth_item&quot; ],
                    [ &quot;$*sideone_fifth_item&quot; ],
                    [ &quot;$*sideone_sixth_item&quot; ],
                    [ &quot;$*sideone_seventh_item&quot; ],
                    [ &quot;$*sideone_eighth_item&quot; ],
                    [ &quot;$*sideone_ninth_item&quot; ],
                    [ &quot;$*sideone_tenth_item&quot; ],
                    [ &quot;$*sideone_eleventh_item&quot; ],
		[ &quot;ads&quot;, &quot;&quot; ],
                ];

            $*sidebar_secondary = [
                    [ &quot;$*sidetwo_first_item&quot; ],
		    [ &quot;$*sidetwo_second_item&quot; ],
                    [ &quot;$*sidetwo_third_item&quot; ],
                    [ &quot;$*sidetwo_fourth_item&quot; ],
                    [ &quot;$*sidetwo_fifth_item&quot; ],
                    [ &quot;$*sidetwo_sixth_item&quot; ],
                    [ &quot;$*sidetwo_seventh_item&quot; ],
                    [ &quot;$*sidetwo_eighth_item&quot; ],
                    [ &quot;$*sidetwo_ninth_item&quot; ],
                    [ &quot;$*sidetwo_tenth_item&quot; ],
                    [ &quot;$*sidetwo_eleventh_item&quot; ],
            ];
	}
    else {
                $*sidebar_primary = [
                    [ &quot;$*sideone_first_item&quot; ],
		    [ &quot;$*sideone_second_item&quot; ],
                    [ &quot;$*sideone_third_item&quot; ],
                    [ &quot;$*sideone_fourth_item&quot; ],
                    [ &quot;$*sideone_fifth_item&quot; ],
                    [ &quot;$*sideone_sixth_item&quot; ],
                    [ &quot;$*sideone_seventh_item&quot; ],
                    [ &quot;$*sideone_eighth_item&quot; ],
                    [ &quot;$*sideone_ninth_item&quot; ],
                    [ &quot;$*sideone_tenth_item&quot; ],
                    [ &quot;$*sideone_eleventh_item&quot; ],
		    [ &quot;$*sideone_twelfth_item&quot; ],
                ];

            $*sidebar_secondary = [
                    [ &quot;$*sidetwo_first_item&quot; ],
		    [ &quot;$*sidetwo_second_item&quot; ],
                    [ &quot;$*sidetwo_third_item&quot; ],
                    [ &quot;$*sidetwo_fourth_item&quot; ],
                    [ &quot;$*sidetwo_fifth_item&quot; ],
                    [ &quot;$*sidetwo_sixth_item&quot; ],
                    [ &quot;$*sidetwo_seventh_item&quot; ],
                    [ &quot;$*sidetwo_eighth_item&quot; ],
                    [ &quot;$*sidetwo_ninth_item&quot; ],
                    [ &quot;$*sidetwo_tenth_item&quot; ],
                    [ &quot;$*sidetwo_eleventh_item&quot; ],
		    [ &quot;$*sidetwo_twelfth_item&quot; ],
            ];
    }

}


function print_custom_stylesheet() {}

function print_stylesheet () {

&quot;&quot;&quot;
/* user css */
&quot;&quot;&quot;;
    print_custom_stylesheet();
}

function container_open (string name) {
    print safe &quot;&amp;lt;div id=&apos;$name&apos;&amp;gt;&amp;lt;div id=&apos;$name-inner&apos; class=&apos;pkg&apos;&amp;gt;\n&quot;;
}

function container_close () {
    &quot;&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;\n&quot;;
}


function open_module(string intname, string title, string headlink_url, bool nocontent) {
    print safe &quot;&quot;&quot;&amp;lt;div class=&quot;module-$intname module&quot;&amp;gt;\n&quot;&quot;&quot;;
    print safe &quot;&quot;&quot;&amp;lt;div class=&apos;module-inner&apos;&amp;gt;\n&quot;&quot;&quot;;
    if ($title != &quot;&quot;) {
        &quot;&quot;&quot;&amp;lt;div class=&quot;module-header&quot;&amp;gt;&amp;lt;div class=&quot;module-header-inner&quot;&amp;gt;\n&amp;lt;h3&amp;gt;&quot;&quot;&quot;;
        if ($headlink_url != &quot;&quot;) { print safe &quot;&quot;&quot;&amp;lt;a href=&quot;$headlink_url&quot;&amp;gt;&quot;&quot;&quot;; }
        print safe $title;
        if ($headlink_url != &quot;&quot;) { &quot;&quot;&quot;&amp;lt;/a&amp;gt;&quot;&quot;&quot;; }
        &quot;&amp;lt;/h3&amp;gt;\n&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;\n&quot;;
    }
    if (not $nocontent) {
        println &quot;&quot;&quot;&amp;lt;div class=&quot;module-content&quot;&amp;gt;&quot;&quot;&quot;;
    }
}

function close_module(bool nocontent) {
    println &quot;&amp;lt;/div&amp;gt;\n&amp;lt;/div&amp;gt;&quot;;
    if (not $nocontent) { println &quot;&amp;lt;/div&amp;gt;&quot;; }
}

function open_module(string intname, string title, string headlink_url) {
    open_module($intname, $title, $headlink_url, false);
}
function close_module() {
    close_module(false);
}

function print_module_list(string[] list) {
    println &quot;&quot;&quot;&amp;lt;ul class=&quot;module-list&quot;&amp;gt;&quot;&quot;&quot;;
    foreach var string s ($list) {
        print safe &quot;&quot;&quot;&amp;lt;li class=&quot;module-list-item&quot;&amp;gt;$s&amp;lt;/li&amp;gt;&quot;&quot;&quot;;
    }
    println &quot;&quot;&quot;&amp;lt;/ul&amp;gt;&quot;&quot;&quot;;
}

function print_module_userprofile(string title, bool show_profile, bool show_userpic) {
    var Page p = get_page();


    open_module(&quot;about&quot;, &quot;Profile&quot;, $p.view_url{&quot;userinfo&quot;});
    if ( $*opt_profile_pic == true) {
    println &quot;&amp;lt;div class=&apos;userpic&apos;&amp;gt;&amp;lt;a href=&apos;http://www.insanejournal.com/allpics.bml&apos;&amp;gt;&quot;+$p.journal.default_pic+&quot;&amp;lt;/a&amp;gt;&amp;lt;/div&amp;gt;&quot;; }
	if ($*opt_profile_journal == true) {
	println &quot;&amp;lt;div class=&apos;username&apos;&amp;gt;&quot;+$p.journal+&quot;&amp;lt;/div&amp;gt;&quot;; }
    if ($*opt_profile_name == true) {
    println &quot;&amp;lt;div class=&apos;journalname&apos;&amp;gt;&quot;+$p.journal.name+&quot;&amp;lt;/div&amp;gt;&quot;; }
	if ($*opt_profile_web == true) {
	   if ($p.journal.website_url != &quot;&quot;) {
           var string website_value = $p.journal.website_name ? $p.journal.website_name : $*text_website_default_name;
           println safe &quot;&quot;&quot;&amp;lt;div class=&quot;usersite&quot;&amp;gt;&amp;lt;a href=&quot;$p.journal.website_url&quot;&amp;gt;$website_value&amp;lt;/a&amp;gt;&amp;lt;/div&amp;gt;&quot;&quot;&quot;; }
    	}
    close_module();

}

function print_module_viewlinks(string title) {
    var Page p = get_page();
    open_module(&quot;viewlinks&quot;, &quot;Navigation&quot;, &quot;&quot;);
    var string[] links = [];
    foreach var string k ($p.views_order) {
        $links[size $links] = &quot;&quot;&quot;&amp;lt;a href=&quot;$p.view_url{$k}&quot;&amp;gt;&quot;&quot;&quot;+lang_viewname($k)+&quot;&quot;&quot;&amp;lt;/a&amp;gt;&quot;&quot;&quot;;
    }
    print_module_list($links);
    close_module();
}

function print_module_poweredby(string title) {
    var Page p = get_page();
    open_module(&quot;powered&quot;, $title, &quot;&quot;);
    println &quot;&quot;&quot;Powered by &amp;lt;a href=&quot;$*SITEROOT/&quot;&amp;gt;$*SITENAME&amp;lt;/a&amp;gt;&quot;&quot;&quot;;
    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 != &quot;&quot; ? striphtml($e.subject) : &quot;&amp;lt;em&amp;gt;$*text_nosubject&amp;lt;/em&amp;gt;&quot;);
            $links[size $links] = &quot;&quot;&quot;&amp;lt;a href=&quot;$e.permalink_url&quot;&amp;gt;$subject&amp;lt;/a&amp;gt;&quot;&quot;&quot;;
        }
    }

    if (size($links) &amp;lt; 1) { return; }
    open_module(&quot;pagesummary&quot;, &quot;Summary&quot;, &quot;&quot;);
    print_module_list($links);
    close_module();
}

function print_module_tags(string title) {

  if ( $*tag_display == &quot;cloud&quot;) {
#cloud code by lj user carriep62, edited by Ravenwood
    var int minSize = 10;   # minimum size of tag links, in pixels
    var int maxSize = 24;   # maximum size of tag links, in pixels
    var Page p = get_page();    
    var TagDetail[] tags = $p-&amp;gt;visible_tag_list();

    if (size($tags) &amp;lt; 1) { return; }
    var int most_count = 1;
    open_module(&quot;categories&quot;, &quot;Tags&quot;, &quot;&quot;);


    foreach var TagDetail tag ($tags) {
        if ($tag.use_count &amp;gt; $most_count) { $most_count = $tag.use_count; }
    }

    var string[] links = [];
    foreach var TagDetail tag ($tags) {
        var string uses = get_plural_phrase($tag.use_count, &quot;text_tag_uses&quot;);
        var string security = $tag.visibility;
        var int tagtextsize = $minSize;

        if ($tag.use_count &amp;gt; 1) {
            $tagtextsize = (($maxSize-$minSize)*$tag.use_count)/$most_count + $minSize;
        }
        $links[size $links] = &quot;&quot;&quot;&amp;lt;a href=&quot;$tag.url&quot; style=&quot;font-size: ${tagtextsize}px;&quot; title=&quot;$uses, $security&quot;&amp;gt;$tag.name&amp;lt;/a&amp;gt;&quot;&quot;&quot;;
    }
    
    &quot;&amp;lt;div id=&apos;tag-cloud&apos;&amp;gt;&quot;;
    print_module_list($links);
    &quot;&amp;lt;div id=&apos;tagclear&apos;&amp;gt;&amp;lt;/div&amp;gt;&quot;;
    &quot;&amp;lt;/div&amp;gt;&quot;;

    var string tags_url = $p.journal-&amp;gt;base_url() + &quot;/tag/&quot;; 
    print safe &quot;&quot;&quot;&amp;lt;div class=&quot;all-link&quot;&amp;gt;&amp;lt;p&amp;gt;&amp;lt;a href=&quot;$tags_url&quot; title=&quot;View all Tags&quot;&amp;gt;View all Tags&amp;lt;/a&amp;gt;&amp;lt;/p&amp;gt;&amp;lt;/div&amp;gt;\n&quot;&quot;&quot;;

    close_module();
  }

  if ( $*tag_display == &quot;list&quot;) {
#hierarchical tag code by lj user murklins, edited by Ravenwood
#####   Config   #####

  # Specify your delimiter.  One char only -- extra chars get truncated.
  var string delimiter = &quot;:&quot;;

  # Do you want to show the tag use counts?
  var bool show_count = $*tagcount;

  # Specify the text to show just before the use count, if any
  var string pre_count = &quot;[&quot;;

  # Specify the text to show just after the use count, if any
  var string post_count = &quot;]&quot;;

##### End Config #####

  var Page p = get_page();
var TagDetail[] tags = $p-&amp;gt;visible_tag_list();
  var string list = &quot;&quot;;    
  
  if (size $p-&amp;gt;visible_tag_list() &amp;gt; 0) { 
    if ($delimiter-&amp;gt;length() &amp;gt; 1) {
      $delimiter = $delimiter-&amp;gt;substr(0, 1);
    } 

    var string[] closing_html;
    var string[] prev_tags;
    var int tag_list_pos = 0;
    var string tier_code = &quot;&quot;;
    $closing_html[0] = &quot;&quot;;
    $prev_tags[0] = &quot;&quot;;
    foreach var TagDetail t ($p-&amp;gt;visible_tag_list()) {
      var string[] tags;
 
      if ($t.name) {  
        # Split tags into array on delimiter. Oh god, my kingdom
        # for a f/unction. Stolen shamelessly from lj-user rane500.
        var int array_counter = 0;
        var string buffer = &quot;&quot;;
        foreach var string char ($t.name) {
          if($char == $delimiter) {
            $tags[$array_counter] = $buffer;
            $array_counter = $array_counter + 1;
            $buffer = &quot;&quot;;
          }
          else {
            $buffer = $buffer + $char;
          } 
        }  
        $tags[$array_counter] = $buffer;
  
        var int pos = 0;
        foreach var string tier($tags) {
          if (size $closing_html &amp;lt;= $pos) {
            # $closing_html keeps track of html that is used to close off open
            # lists.  Its length must be kept &amp;gt;= to that of the current tag.
            $closing_html[$pos] = &quot;&quot;;
          }   

          if (size $prev_tags &amp;lt;= $pos) {
            # The current tag has more tiers than the previous tag.  To avoid array
            # ref errors when comparing the current tier to the previous one (which
            # is non-existent, of course) add empty string to $prev_tags.
            $prev_tags[$pos] = &quot;&quot;;
          }
    
          # If we&apos;re on a tag&apos;s last tier, we need to return a link to the tag,
          # otherwise plain text is returned.
          if (size $tags == ($pos + 1)) {
            $tier_code = &quot;&quot;&quot;&amp;lt;a href=&quot;$t.url&quot;&amp;gt;$tier&amp;lt;/a&amp;gt;&quot;&quot;&quot;;
            if ($show_count) {
              $tier_code = $tier_code + &quot;&quot;&quot;&amp;nbsp;&amp;lt;span class=&quot;tag-count&quot;&amp;gt;${pre_count}${t.use_count}${post_count}&amp;lt;/span&amp;gt;&quot;&quot;&quot;;
            }
          }
          else {
            $tier_code = &quot;&quot;&quot;$tier&quot;&quot;&quot;;
          }

          # $prev_tags stuffed with dummy empty string when it has fewer tiers than 
          # current tag.
          if ($prev_tags[$pos] == &quot;&quot;) {     
            # The current tag has more tiers than the previous tag, so a new
            # list must be opened.                    
            $list = $list + &quot;&quot;&quot;&amp;lt;ul class=&quot;tagList&quot;&amp;gt;&amp;lt;li class=&quot;tagItem&quot;&amp;gt;$tier_code&quot;&quot;&quot;;
            $closing_html[$pos] = &quot;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&quot;;
          }
          elseif ($tags[$pos] != $prev_tags[$pos]) {   
            # The current tag&apos;s tier is not the same as the previous tag&apos;s tier of  
            # the same level.  This means we may need to close some lists.
            var int i = 0;
            foreach var string html ($closing_html) {
              if ($i &amp;gt; $pos) {
                $list = $list + $closing_html[$i];                                 
                # As we append the closing code, pop it off the array.
                $closing_html[$i] = &quot;&quot;;
              }
              $i++;
            }                    
 
            if ($closing_html[$pos] == &quot;&quot;) {          
              # This is the first tier at this level, so open list.
              $list = $list + &quot;&quot;&quot;&amp;lt;ul class=&quot;tagList&quot;&amp;gt;&amp;lt;li class=&quot;tagItem&quot;&amp;gt;$tier_code&quot;&quot;&quot;;
              $closing_html[$pos] = &quot;&amp;lt;/li&amp;gt;&amp;lt;/ul&amp;gt;&quot;;
            }
            else {              
              # There have already been tiers added at this level, so just close the previous
              # list item before adding the new tier.
              $list = $list + &quot;&quot;&quot;&amp;lt;/li&amp;gt;&amp;lt;li class=&quot;tagItem&quot;&amp;gt;$tier_code&quot;&quot;&quot;;
            }                    
          }
          else {
            # The current tag&apos;s tier is exactly the same as the previous tag&apos;s tier at
            # this same level.  It has already been included in the list, so do nothing.
          }  
          # Moving on to next tier in this tag!
          $pos++;
        }
        $prev_tags = $tags;           
      }        
      # Next tag in the list!
      $tag_list_pos++;
    }  

    # All the tags have been added so close all outstanding lists.
    var int i = 0;
    var string remaining_html = &quot;&quot;;
    foreach var string html ($closing_html) { 
      if ($html != &quot;&quot;) {
        $remaining_html = $html + $remaining_html;
        $closing_html[$i] = &quot;&quot;;
      }
      $i++;
    }
    $list = $list + $remaining_html;
  }
	
	
    open_module(&quot;categories&quot;, &quot;Tags&quot;, &quot;&quot;); 
    &quot;&amp;lt;div id=&apos;tag-hierarchy&apos;&amp;gt;&quot;;
    &quot;&quot;&quot;$list&quot;&quot;&quot;;
    &quot;&amp;lt;/div&amp;gt;&quot;;

    var string tags_url = $p.journal-&amp;gt;base_url() + &quot;/tag/&quot;; 
    print safe &quot;&quot;&quot;&amp;lt;div class=&quot;all-link&quot;&amp;gt;&amp;lt;p&amp;gt;&amp;lt;a href=&quot;$tags_url&quot; title=&quot;View all Tags&quot;&amp;gt;View all Tags&amp;lt;/a&amp;gt;&amp;lt;/p&amp;gt;&amp;lt;/div&amp;gt;\n&quot;&quot;&quot;;
    
    close_module();
  }

}

function print_module_calendar() {
    var Page p = get_page();
    var YearMonth mon = $p-&amp;gt;get_latest_month();
    open_module(&quot;calendar&quot;, $mon-&amp;gt;month_format(), &quot;&quot;);

    println &quot;&quot;&quot;&amp;lt;table summary=&quot;Monthly calendar with links to each day&apos;s posts&quot;&amp;gt;&quot;&quot;&quot;;

    println &quot;&amp;lt;tr&amp;gt;&quot;;
    foreach var int d (weekdays()) {
        &quot;&amp;lt;th&amp;gt;&quot;+$*lang_dayname_shorter[$d]+&quot;&amp;lt;/th&amp;gt;\n&quot;;
    }
    println &quot;&amp;lt;/tr&amp;gt;&quot;;

    foreach var YearWeek week ($mon.weeks) {
        println &quot;&amp;lt;tr&amp;gt;&quot;;
        foreach var int i (1 .. $week.pre_empty) {
            print &quot;&amp;lt;td&amp;gt;&amp;nbsp;&amp;lt;/td&amp;gt;&quot;;
        }

        foreach var YearDay day ($week.days) {
            print &quot;&amp;lt;td&amp;gt;&quot;;
            if ($day.num_entries &amp;gt; 0) { print &quot;&quot;&quot;&amp;lt;a href=&quot;$day.url&quot;&amp;gt;&quot;&quot;&quot;; }
            print $day.day;
            if ($day.num_entries &amp;gt; 0) { print &quot;&quot;&quot;&amp;lt;/a&amp;gt;&quot;&quot;&quot;; }
            print &quot;&amp;lt;/td&amp;gt;&quot;;
        }

        foreach var int i (1 .. $week.post_empty) {
            print &quot;&amp;lt;td&amp;gt;&amp;nbsp;&amp;lt;/td&amp;gt;&quot;;
        }
        println &quot;&amp;lt;/tr&amp;gt;&quot;;
    }

    println &quot;&quot;&quot;&amp;lt;/table&amp;gt;&quot;&quot;&quot;;
    var string calendar_url = $p.view_url{&quot;archive&quot;};
    print safe &quot;&quot;&quot;&amp;lt;div class=&quot;all-link&quot;&amp;gt;&amp;lt;p&amp;gt;&amp;lt;a href=&quot;$calendar_url&quot; title=&quot;View all Archives&quot;&amp;gt;View all Archives&amp;lt;/a&amp;gt;&amp;lt;/p&amp;gt;&amp;lt;/div&amp;gt;\n&quot;&quot;&quot;;

    close_module();
}
function print_module_syndicate(string title) {
    var Page p = get_page();
    if ((size $p.data_links_order) &amp;lt; 1) { return; }
    open_module(&quot;syndicate&quot;, &quot;Syndicate&quot;, &quot;&quot;);

    foreach var string k ($p.data_links_order) {
        print &quot; $p.data_link{$k} &quot;;
    }

    close_module();
}
function print_module_customtext(string title, string text, string titlelink_url) {
    var Page p = get_page();
    open_module(&quot;customtext&quot;, $*customtext_title, $*customtext_titlelink_url);
    print safe $*customtext_text;
    close_module();
}

function print_module_customtext2() {
    var Page p = get_page();
    open_module(&quot;customtext2&quot;, $*customtext2_title, $*customtext2_titlelink_url);
    print safe $*customtext2_text;
    close_module();
}

function print_module_layoutcredit() {
   var Page p = get_page();
   open_module(&quot;layoutcredit&quot;, &quot;Layout By&quot;, &quot;&quot;);
   print safe &quot;&quot;&quot;&amp;lt;p&amp;gt;&amp;lt;a href=&quot;$*layoutcredit_url&quot;&amp;gt;$*layoutcredit_text&amp;lt;/a&amp;gt;&amp;lt;/p&amp;gt;&quot;&quot;&quot;;
   close_module();
}

function print_module_links(string title) {
    var Page p = get_page();
    var UserLink[] links = $p.linklist;
    if (size($links) &amp;lt; 1) { return; }

    var bool box_open = false;
    if (not $links[0].is_heading) {
        open_module(&quot;typelist&quot;, $title, &quot;&quot;);
        $box_open = true;
    }

    var string[] items = [];
    foreach var UserLink link ($links) {
        if ($link.is_heading) {
            if ($box_open) {
                print_module_list($items);
                close_module();
                $items = [];
            }
            open_module(&quot;typelist&quot;, $link.title, &quot;&quot;);
            $box_open = true;
        }
        if (not $link.is_heading and $link.title != &quot;&quot;) {
            $items[size $items] = &quot;&quot;&quot;&amp;lt;a href=&quot;$link.url&quot;&amp;gt;$link.title&amp;lt;/a&amp;gt;&quot;&quot;&quot;;
        }
    }
    if ($box_open) {
        print_module_list($items);
        close_module();
    }
}


function handle_sidebar_array(string[][] list) {
    foreach var string[] item ($list) {
        var string module = $item[0];
        var string title = $item[1];

        if ($module == &quot;userprofile&quot;) {
            var bool show_profile = (int($item[2]) != 0 ? true : false);
            var bool show_userpic = (int($item[3]) != 0 ? true : false);
            print_module_userprofile($title, $show_profile, $show_userpic);
        }
        elseif ($module == &quot;viewlinks&quot;) {
            print_module_viewlinks($title);
        }
        elseif ($module == &quot;poweredby&quot;) {
            print_module_poweredby($title);
        }
        elseif ($module == &quot;pagesummary&quot;) {
            print_module_pagesummary($title);
        }
        elseif ($module == &quot;tags&quot;) {
            print_module_tags($title);
        }
        elseif ($module == &quot;calendar&quot;) {
            print_module_calendar();
        }
        elseif ($module == &quot;syndicate&quot;) {
            print_module_syndicate($title);
        }
        elseif ($module == &quot;customtext&quot;) {
            var string text = $item[2];
            var string titlelink_url = $item[3];
            print_module_customtext($title, $text, $titlelink_url);
        }
        elseif ($module == &quot;links&quot;) {
            print_module_links($title);
        }
        elseif ($module == &quot;customtext2&quot;) {
            print_module_customtext2();
        }
        elseif ($module == &quot;layoutcredit&quot;) {
            print_module_layoutcredit();
        }
    }
}

function Page::lay_sidebar_primary() {
    handle_sidebar_array($*sidebar_primary);
}
function Page::lay_sidebar_secondary() {
    handle_sidebar_array($*sidebar_secondary);
}

function render_layout (Page p, string lay) {
   if ($lay == &quot;1C&quot;) {
      container_open(&quot;alpha&quot;);
      $p-&amp;gt;print_body();
      container_close();
      return;
   }

   if ($lay == &quot;2CL&quot;) {
      container_open(&quot;beta&quot;);
      $p-&amp;gt;lay_sidebar_primary();
      container_close();
      container_open(&quot;alpha&quot;);
      $p-&amp;gt;print_body();
&quot;&amp;lt;div id=&apos;column-footer&apos;&amp;gt;&amp;lt;/div&amp;gt;&quot;;
      container_close();
      return;
   }

   if ($lay == &quot;2CR&quot;) {
      container_open(&quot;beta&quot;);
      $p-&amp;gt;lay_sidebar_primary();
      container_close();   
      container_open(&quot;alpha&quot;);
      $p-&amp;gt;print_body();
&quot;&amp;lt;div id=&apos;column-footer&apos;&amp;gt;&amp;lt;/div&amp;gt;&quot;;
      container_close();
      return;
   }

   if ($lay == &quot;3CM&quot;) {
      container_open(&quot;beta&quot;);
      $p-&amp;gt;lay_sidebar_primary();
      container_close();
      container_open(&quot;gamma&quot;);
      $p-&amp;gt;lay_sidebar_secondary();
      container_close();      
      container_open(&quot;alpha&quot;);
      $p-&amp;gt;print_body();
&quot;&amp;lt;div id=&apos;column-footer&apos;&amp;gt;&amp;lt;/div&amp;gt;&quot;;
      container_close();
      return;
   }

   if ($lay == &quot;3CR&quot;) {
      container_open(&quot;gamma&quot;);
      $p-&amp;gt;lay_sidebar_primary();
      container_close();
      container_open(&quot;beta&quot;);
      $p-&amp;gt;lay_sidebar_secondary();
      container_close();      
      container_open(&quot;alpha&quot;);
      $p-&amp;gt;print_body();
&quot;&amp;lt;div id=&apos;column-footer&apos;&amp;gt;&amp;lt;/div&amp;gt;&quot;;
      container_close();
      return;
   }

   if ($lay == &quot;3CL&quot;) {
      container_open(&quot;beta&quot;);
      $p-&amp;gt;lay_sidebar_primary();
      container_close();
      container_open(&quot;gamma&quot;);
      $p-&amp;gt;lay_sidebar_secondary();
      container_close();      
      container_open(&quot;alpha&quot;);
      $p-&amp;gt;print_body();
&quot;&amp;lt;div id=&apos;column-footer&apos;&amp;gt;&amp;lt;/div&amp;gt;&quot;;
      container_close();
      return;
   }

}

function get_layout () : string {
   var Page p = get_page();
   var string lay = $*layout_type;
   if ($lay == &quot;1C&quot; or $lay == &quot;2CR&quot; or $lay == &quot;2CL&quot; or $lay == &quot;3CM&quot; or $lay == &quot;3CR&quot; or $lay == &quot;3CL&quot;) {
      return $lay;
   }
   return &quot;2CR&quot;;
}

function body_class (string lay) : string {
   var string{} map = {
      &quot;1C&quot; =&amp;gt; &quot;layout-one-column&quot;,
      &quot;2CL&quot; =&amp;gt; &quot;layout-two-column-left&quot;,
      &quot;2CR&quot; =&amp;gt; &quot;layout-two-column-right&quot;,
      &quot;3CM&quot; =&amp;gt; &quot;layout-three-column-middle&quot;,
      &quot;3CR&quot; =&amp;gt; &quot;layout-three-column-right&quot;,
      &quot;3CL&quot; =&amp;gt; &quot;layout-three-column-left&quot;,
   };
   return $map{$lay};
}

function Page::print_stylesheets() {

    if ($*base_theme != &quot;__none&quot;) {
        println safe &quot;&quot;&quot;&amp;lt;link rel=&quot;stylesheet&quot; href=&quot;$*SITEROOT/stc/completestyle/$*theme_stylesheet{$*base_theme}&quot; type=&quot;text/css&quot; /&amp;gt;\n&quot;&quot;&quot;;
    }
    if ($*linked_stylesheet != &quot;&quot;) {
        println safe &quot;&quot;&quot;&amp;lt;link rel=&quot;stylesheet&quot; href=&quot;$*linked_stylesheet&quot; type=&quot;text/css&quot; /&amp;gt;\n&quot;&quot;&quot;;
    }
    if ($*custom_css != &quot;&quot;) {
        println &quot;&quot;&quot;&amp;lt;style type=&quot;text/css&quot;&amp;gt;&quot;&quot;&quot;;
        start_css();
        println safe $*custom_css;
        end_css();
        println &quot;&quot;&quot;&amp;lt;/style&amp;gt;&quot;&quot;&quot;;
    }

    if ($*external_stylesheet) {
        println safe &quot;&quot;&quot;&amp;lt;link rel=&quot;stylesheet&quot; href=&quot;$.stylesheet_url&quot; type=&quot;text/css&quot; /&amp;gt;\n&quot;&quot;&quot;;
    }
    else {
        println &quot;&quot;&quot;&amp;lt;style type=&quot;text/css&quot;&amp;gt;&quot;&quot;&quot;;
        start_css();
        print_stylesheet();
        end_css();
        println &quot;&quot;&quot;&amp;lt;/style&amp;gt;&quot;&quot;&quot;;
    }
}


function Page::lay_print_banner() {
	container_open(&quot;header&quot;);
    container_open(&quot;banner&quot;);
    &quot;&amp;lt;div id=&apos;banner-text&apos;&amp;gt;&quot;;
	
		&quot;&amp;lt;ul id=&apos;nav-above&apos;&amp;gt;&quot;;
		 # Recent, Archive, Friends, Userinfo
    foreach var string v ($.views_order) {
        var string url   = $.view_url{$v};
        var string text  = lang_viewname($v);
        var string class = &quot;banner-viewlinks&quot;;
        if($v == $.view) {
            $class = $class + &quot; current&quot;;
        }
        if($v == $.views_order[0]) {
            $class = $class + &quot; first&quot;;
        }

        $class = &quot; class=\&quot;$class\&quot;&quot;;

        print &quot;&quot;&quot;&amp;lt;li$class&amp;gt;&amp;lt;a href=&quot;$url&quot; title=&quot;$text&quot;&amp;gt;$text&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&quot;&quot;&quot;;
    }

    var Link memories_url = $.journal-&amp;gt;get_link(&quot;memories&quot;);

        println safe &quot;&quot;&quot;&amp;lt;li class=&quot;banner-viewlinks&quot;&amp;gt;&amp;lt;a href=&quot;$memories_url.url&quot; title=&quot;Memories&quot;&amp;gt;Memories&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&quot;&quot;&quot;;

		&quot;&amp;lt;/ul&amp;gt;&quot;;
		
      &quot;&amp;lt;div id=&apos;header-text&apos;&amp;gt;&quot;;
	&quot;&amp;lt;h1 id=&apos;banner-header&apos;&amp;gt;&quot;;
	var string base_url = $.journal-&amp;gt;base_url();
    var string friends_url = $.view_url{&quot;friends&quot;};
    if ($this isa FriendsPage) {
        print safe &quot;&quot;&quot;&amp;lt;a href=&quot;$friends_url&quot;&amp;gt;&quot;&quot;&quot; + $this-&amp;gt;view_title() + &quot;&quot;&quot;&amp;lt;/a&amp;gt;&amp;lt;/h1&amp;gt;&quot;&quot;&quot;;
    } else {
        print safe &quot;&quot;&quot;&amp;lt;a href=&quot;$base_url&quot;&amp;gt;$.global_title&amp;lt;/a&amp;gt;&amp;lt;/h1&amp;gt;&quot;&quot;&quot;;
    }

      &quot;&amp;lt;p id=&apos;banner-description&apos;&amp;gt;$.global_subtitle&amp;lt;/p&amp;gt;&quot;;
	&quot;&amp;lt;/div&amp;gt;&quot;;
	  
	  		&quot;&amp;lt;ul id=&apos;nav-below&apos;&amp;gt;&quot;;
		 # Recent, Archive, Friends, Userinfo
    foreach var string v ($.views_order) {
        var string url   = $.view_url{$v};
        var string text  = lang_viewname($v);
        var string class = &quot;banner-viewlinks&quot;;
        if($v == $.view) {
            $class = $class + &quot; current&quot;;
        }
        if($v == $.views_order[0]) {
            $class = $class + &quot; first&quot;;
        }

        $class = &quot; class=\&quot;$class\&quot;&quot;;

        print &quot;&quot;&quot;&amp;lt;li$class&amp;gt;&amp;lt;a href=&quot;$url&quot; title=&quot;$text&quot;&amp;gt;$text&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&quot;&quot;&quot;;
    }

        println safe &quot;&quot;&quot;&amp;lt;li class=&quot;banner-viewlinks&quot;&amp;gt;&amp;lt;a href=&quot;$memories_url.url&quot; title=&quot;Memories&quot;&amp;gt;Memories&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&quot;&quot;&quot;;

		&quot;&amp;lt;/ul&amp;gt;&quot;;
		
      &quot;&amp;lt;/div&amp;gt;&quot;;
    container_close();
    container_close();
}


function Page::print () {

 var string lay = get_layout();
 var string body_layout_class = body_class($lay);


   &quot;&quot;&quot;&amp;lt;!DOCTYPE html PUBLIC &quot;-//W3C//DTD XHTML 1.0 Transitional//EN&quot;
       &quot;http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd&quot;&amp;gt;
	&amp;lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&amp;gt;
	&amp;lt;head&amp;gt;
	   &quot;&quot;&quot;;
	
		$this-&amp;gt;print_head();
		$this-&amp;gt;print_stylesheets();
		&quot;&quot;&quot;&amp;lt;title&amp;gt;&quot;&quot;&quot; + $this-&amp;gt;title() + &quot;&quot;&quot;&amp;lt;/title&amp;gt;\n&quot;&quot;&quot;;
	
	&quot;&quot;&quot;
	&amp;lt;/head&amp;gt;
	&amp;lt;body class=&apos;$body_layout_class lj-view-$.view&apos;&amp;gt;&quot;&quot;&quot;;
	
	$this-&amp;gt;print_control_strip();
	
	container_open(&quot;container&quot;);

	$this-&amp;gt;lay_print_banner();
	
	container_open(&quot;pagebody&quot;);
	
	 render_layout($this, $lay);
	
 &quot;&amp;lt;div id=&apos;content-footer&apos;&amp;gt;&amp;lt;/div&amp;gt;\n&quot;;

container_close();

container_open(&quot;page-footer&quot;);
container_close();

container_close();
	
	&quot;&amp;lt;/body&amp;gt;&amp;lt;/html&amp;gt;&quot;;
}

function print_sticky() {
    if ($*sticky_post != &quot;&quot;) {
        &quot;&quot;&quot;
    &amp;lt;div id=&quot;sticky-note&quot;&amp;gt;
      &amp;lt;div class=&quot;entry&quot;&amp;gt;
	&amp;lt;div class=&quot;entry-inner&quot;&amp;gt;

        &quot;&quot;&quot;;

        if ($*sticky_subject != &quot;&quot;) {
            print safe &quot;&quot;&quot;&amp;lt;div class=&quot;entry-header&quot;&amp;gt;
		&amp;lt;h2&amp;gt;$*sticky_subject&amp;lt;/h2&amp;gt;
		&amp;lt;/div&amp;gt;&quot;&quot;&quot;;
        } else {
            &quot;&quot;&quot;&amp;lt;div class=&quot;entry-header&quot;&amp;gt;&amp;lt;h2&amp;gt;Sticky Note&amp;lt;/h2&amp;gt;&amp;lt;/div&amp;gt;&quot;&quot;&quot;;
        }

        &quot;&quot;&quot;&amp;lt;div class=&quot;entry-content&quot;&amp;gt;
         &amp;lt;div class=&quot;entry-body&quot;&amp;gt;
	&amp;lt;div class=&quot;entry-text&quot;&amp;gt;&quot;&quot;&quot;;

        print safe $*sticky_post;

        &quot;&amp;lt;/div&amp;gt;\n&amp;lt;/div&amp;gt;\n&amp;lt;/div&amp;gt;\n&quot;;
        &quot;&quot;&quot;&amp;lt;div class=&quot;entry-footer&quot;&amp;gt;&amp;lt;/div&amp;gt;\n&amp;lt;/div&amp;gt;\n&amp;lt;/div&amp;gt;\n&amp;lt;/div&amp;gt;\n&quot;&quot;&quot;;
    }
}

function RecentPage::print_body() {

    if ($.nav.backward_url != &quot;&quot; or $.nav.forward_url != &quot;&quot;) {
        println &quot;&quot;&quot;&amp;lt;div class=&quot;content-nav nav-top&quot;&amp;gt;&quot;&quot;&quot;;
        if ($.nav.backward_url != &quot;&quot;) {
            println &quot;&quot;&quot;&amp;lt;a href=&quot;$.nav.backward_url&quot;&amp;gt;&quot;&quot;&quot;+get_plural_phrase($.nav.backward_count, &quot;text_skiplinks_back&quot;)+&quot;&amp;lt;/a&amp;gt;&quot;;
        }
        if ($.nav.backward_url != &quot;&quot; and $.nav.forward_url != &quot;&quot;) {
            print &quot; | &quot;;
        }
        if ($.nav.forward_url != &quot;&quot;) {
            println &quot;&quot;&quot;&amp;lt;a href=&quot;$.nav.forward_url&quot;&amp;gt;&quot;&quot;&quot;+get_plural_phrase($.nav.forward_count, &quot;text_skiplinks_forward&quot;)+&quot;&amp;lt;/a&amp;gt;&quot;;
        }
        println &quot;&quot;&quot;&amp;lt;/div&amp;gt;&quot;&quot;&quot;;
    }

    if (not($this isa FriendsPage)) {
        print_sticky();
    }

# tag page header- code contributed by camomiletea
    if ($.data_link{&quot;rss&quot;}.url-&amp;gt;contains(&quot;?tag=&quot;)) { # If viewing tags page

        var int baseurl_length = $.base_url-&amp;gt;length() + 14; # &quot;/data/rss?tag=&quot; = 14 chars
        var int feedurl_length = $.data_link{&quot;rss&quot;}.url-&amp;gt;length();

        var string tag_name= $.data_link{&quot;rss&quot;}.url-&amp;gt;substr($baseurl_length, $feedurl_length - $baseurl_length);

        print &quot;&amp;lt;div id=&apos;tagpage-header&apos;&amp;gt;&amp;lt;h2&amp;gt;Posts Tagged: &apos;$tag_name&apos;&amp;lt;/h2&amp;gt;&amp;lt;/div&amp;gt;&quot;;
    }
#end tag header

    foreach var Entry e ($.entries) {
        if ($*opt_datehead and $e.new_day) {
            print &quot;&quot;&quot;&amp;lt;div class=&quot;date-header&quot;&amp;gt;&amp;lt;h2&amp;gt;&quot;&quot;&quot;+$e.time-&amp;gt;date_format(&quot;med&quot;)+&quot;&quot;&quot;&amp;lt;/h2&amp;gt;&amp;lt;/div&amp;gt;&quot;&quot;&quot;;
        }

        # Print the entry
        $this-&amp;gt;print_entry($e);
    }

    if ($.nav.backward_url != &quot;&quot; or $.nav.forward_url != &quot;&quot;) {
        println &quot;&quot;&quot;&amp;lt;div class=&quot;content-nav nav-bottom&quot;&amp;gt;&quot;&quot;&quot;;
        if ($.nav.backward_url != &quot;&quot;) {
            println &quot;&quot;&quot;&amp;lt;a href=&quot;$.nav.backward_url&quot;&amp;gt;&quot;&quot;&quot;+get_plural_phrase($.nav.backward_count, &quot;text_skiplinks_back&quot;)+&quot;&amp;lt;/a&amp;gt;&quot;;
        }
        if ($.nav.backward_url != &quot;&quot; and $.nav.forward_url != &quot;&quot;) {
            print &quot; | &quot;;
        }
        if ($.nav.forward_url != &quot;&quot;) {
            println &quot;&quot;&quot;&amp;lt;a href=&quot;$.nav.forward_url&quot;&amp;gt;&quot;&quot;&quot;+get_plural_phrase($.nav.forward_count, &quot;text_skiplinks_forward&quot;)+&quot;&amp;lt;/a&amp;gt;&quot;;
        }
        println &quot;&quot;&quot;&amp;lt;/div&amp;gt;&quot;&quot;&quot;;
    }

}

function EntryPage::print_body() {
          var Page p = get_page();
          var bool printqr = false;

    var Link forward = $.entry-&amp;gt;get_link(&quot;nav_next&quot;);
    var Link backward = $.entry-&amp;gt;get_link(&quot;nav_prev&quot;);

    &quot;&amp;lt;div class=&apos;content-nav entrypage&apos;&amp;gt;\n&quot;;
    &quot;&amp;lt;a href=&apos;$backward.url&apos;&amp;gt;Previous&amp;lt;/a&amp;gt; | &quot;;
    &quot;&amp;lt;a href=&apos;$forward.url&apos;&amp;gt;Next&amp;lt;/a&amp;gt;\n&quot;;
    &quot;&amp;lt;/div&amp;gt;&quot;;

    $this-&amp;gt;print_entry($.entry);

    if ($.entry.comments.enabled and $.comment_pages.total_subitems &amp;gt; 0) {

&quot;&quot;&quot;
	&amp;lt;a id=&quot;comments&quot;&amp;gt;&amp;lt;/a&amp;gt;
	&amp;lt;div id=&quot;comments&quot;&amp;gt;
	&amp;lt;div id=&quot;comments-inner&quot;&amp;gt;
		&amp;lt;div class=&quot;comments-header&quot;&amp;gt;&amp;lt;h2&amp;gt;$*text_comments&amp;lt;/h2&amp;gt;&amp;lt;/div&amp;gt; &quot;&quot;&quot;;

              $printqr = true;
              &quot;&quot;&quot;&amp;lt;div class=&quot;comments-nav&quot;&amp;gt;(&quot;&quot;&quot;; 
	$p-&amp;gt;print_reply_link({&quot;linktext&quot; =&amp;gt; $*text_post_comment, &quot;target&quot; =&amp;gt; &quot;qr$.journal.username$.entry.itemid&quot;}); 
	&quot;&quot;&quot;)&amp;lt;/div&amp;gt;
 
		&amp;lt;div class=&quot;comments-list&quot;&amp;gt;
			&amp;lt;!-- comment list --&amp;gt;
&quot;&quot;&quot;;

    if(not $.comment_pages.all_subitems_displayed) {
        $.comment_pages-&amp;gt;print();
    }
    foreach var Comment c ($.comments) {
        $this-&amp;gt;print_comment($c);
    }
    if(not $.comment_pages.all_subitems_displayed) {
        $.comment_pages-&amp;gt;print();
    }

&quot;&quot;&quot;
		&amp;lt;/div&amp;gt;&quot;&quot;&quot;;

              $printqr = true;
              &quot;&quot;&quot;&amp;lt;div class=&quot;comments-nav&quot;&amp;gt;(&quot;&quot;&quot;; 
	$p-&amp;gt;print_reply_link({&quot;linktext&quot; =&amp;gt; $*text_post_comment, &quot;target&quot; =&amp;gt; &quot;qr$.journal.username$.entry.itemid&quot;}); 
	&quot;&quot;&quot;)&amp;lt;/div&amp;gt;

	&amp;lt;/div&amp;gt;
	&amp;lt;/div&amp;gt;
&quot;&quot;&quot;;
	}

         if ($printqr) { $p-&amp;gt;print_reply_container({&quot;class&quot; =&amp;gt; &quot;quickreply_entry&quot;, &quot;target&quot; =&amp;gt; &quot;qr$.journal.username$.entry.itemid&quot;}); }

}

function lang_posted_by(UserLite poster, UserLite journal, Page p) : string {
    var string posted = (defined $poster ? &quot;&quot;+$poster : &quot;&amp;lt;i&amp;gt;$*text_poster_anonymous&amp;lt;/i&amp;gt;&quot;);
    if (not $poster-&amp;gt;equals($journal) and not ($p.view == &quot;recent&quot; and $p.journal_type == &quot;C&quot;)) {
        $posted = $posted + &quot; &amp;lt;br&amp;gt; &quot; + $journal;
    }
    return &quot;$posted&quot;;
}

function lang_posted_by(UserLite poster, UserLite journal) : string {
    return lang_posted_by($poster, $journal, new Page);
}

function lang_posted_date_and_time(EntryLite e, DateTime dt, bool showdate, bool showtime) : string {
    var string posted = &quot;Posted&quot;;
    $posted = ($showdate ? &quot;&quot; : &quot; at &quot;);

    if ($showdate and $showtime) {
        if ($e.depth &amp;gt; 0) { # If $e is a comment
            return $posted + $e-&amp;gt;time_display(&quot;med&quot;, &quot;&quot;);
        } else {
            #return $posted + $dt-&amp;gt;date_format(&quot;med&quot;) + &quot; at &quot; + $dt-&amp;gt;time_format();
            return $posted + $e-&amp;gt;time_display($*lang_fmt_date_med + &quot; at %%h%%:%%min%% %%A%%M&quot;, &quot;none&quot;);
        }
    }
    if ($showdate and not $showtime) {
        #return $posted + $dt-&amp;gt;date_format(&quot;med&quot;);
        return $posted + $e-&amp;gt;time_display(&quot;med&quot;, &quot;none&quot;);
    }
    if (not $showdate and $showtime) {
        #return $posted + $dt-&amp;gt;time_format();
        return $e-&amp;gt;time_display(&quot;none&quot;, &quot;%%h%%:%%min%% %%A%%M&quot;);
    }
    return &quot;&quot;;
}

function lang_posted_by_date_and_time(UserLite poster, DateTime dt, bool showposter, bool showdate, bool showtime) : string {
    return lang_posted_date_and_time(new EntryLite, $dt, $showdate, $showtime);
}

function lang_posted_by_date_and_time(EntryLite e, UserLite poster, UserLite journal, DateTime dt, bool showposter, bool showdate, bool showtime) : string {
    return lang_posted_date_and_time($e, $dt, $showdate, $showtime);
}


function Comment::print_linkbar() {
          &quot;&quot;&quot;
          &amp;lt;div class=&quot;comment-linkbar&quot;&amp;gt;&amp;lt;ul&amp;gt;
          &quot;&quot;&quot;;
          # reply to, parent, thread links.
          &quot;&quot;&quot;&amp;lt;li class=&quot;first-cl&quot;&amp;gt;&quot;&quot;&quot;; $this-&amp;gt;print_reply_link({&quot;linktext&quot; =&amp;gt; $*text_comment_reply}); &quot;&quot;&quot;&amp;lt;/li&amp;gt;&quot;&quot;&quot;;
          if ($.parent_url!=&quot;&quot;) { print safe &quot;&quot;&quot;&amp;lt;li&amp;gt;&amp;lt;a href=&quot;$.parent_url&quot;&amp;gt;$*text_comment_parent&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&quot;&quot;&quot;; }
          if ($.thread_url!=&quot;&quot;) { print safe &quot;&quot;&quot;&amp;lt;li&amp;gt;&amp;lt;a href=&quot;$.thread_url&quot;&amp;gt;$*text_comment_thread&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&quot;&quot;&quot;; }
          print safe &quot;&quot;&quot;&amp;lt;li&amp;gt;&amp;lt;a href=&quot;$.permalink_url&quot;&amp;gt;Link&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&quot;&quot;&quot;;
          var Link l;
          foreach var string key ($.link_keyseq) {
            $l = $this-&amp;gt;get_link($key);
            if (defined $l) { &quot;&quot;&quot;&amp;lt;li&amp;gt;&amp;lt;a href=&quot;$l.url&quot;&amp;gt;$l.caption&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&quot;&quot;&quot;; }

          }
          if (viewer_is_owner()) {
            print safe &quot;&quot;&quot;&amp;lt;li&amp;gt;$*text_multiform_check&quot;&quot;&quot;; $this-&amp;gt;print_multiform_check(); &quot;&quot;&quot;&amp;lt;/li&amp;gt;&quot;&quot;&quot;;
          }
          &quot;&quot;&quot;
          &amp;lt;/ul&amp;gt;&amp;lt;/div&amp;gt;
          &quot;&quot;&quot;;
          $this-&amp;gt;print_reply_container({&quot;class&quot; =&amp;gt; &quot;quickreply_comment&quot;});
}

function EntryPage::print_comment(Comment e) {
      var bool showtime = true;
      var bool showdate = true;
var string barc = &quot;comment-&quot; + ($e.depth % 2 ? &quot;odd&quot; : &quot;even&quot;);

    if (not $e.full) {
        # Collapsed mode

        &quot;&amp;lt;div class=&apos;comment collapsed-comment&apos;&quot;+($e.dom_id ? &quot; id=&apos;$e.dom_id&apos;&quot; : &quot;&quot;)+&quot;&amp;gt;\n&quot;;
        &quot;&amp;lt;a name=&apos;$e.anchor&apos;&amp;gt;&amp;lt;/a&amp;gt;\n&quot;;
	&quot;&amp;lt;div class=&apos;comment-footer&apos;&amp;gt;&quot;;
        var string subject = $e.subject;
        if ($subject == &quot;&quot;) { $subject = $*text_nosubject; }
        &quot;&amp;lt;a href=&apos;$e.permalink_url&apos; class=&apos;collapsed-comment-link&apos;&amp;gt;$subject&amp;lt;/a&amp;gt; &amp;lt;span class=&apos;separator&apos;&amp;gt;-&amp;lt;/span&amp;gt; &quot;;
        print lang_posted_by($e.poster, $e.poster); &quot; &amp;lt;span class=&apos;separator&apos;&amp;gt;-&amp;lt;/span&amp;gt; &quot;;
        print lang_posted_date_and_time($e, $e.time, $showdate, $showtime);
        &quot;&amp;lt;/div&amp;gt;&quot;;

        if (size($e.replies) &amp;gt; 0) {
            println &quot;&amp;lt;div class=&apos;comment-replies&apos;&amp;gt;&quot;;

            foreach var Comment c ($e.replies) {
                $this-&amp;gt;print_comment($c);
            }

            println &quot;&amp;lt;/div&amp;gt;&quot;;
        }

        &quot;&amp;lt;/div&amp;gt;&quot;;

        return;
    }

    &quot;&amp;lt;div class=&apos;comment&apos;&quot;+($e.dom_id ? &quot; id=&apos;$e.dom_id&apos;&quot; : &quot;&quot;)+&quot;&amp;gt;\n&quot;;
    &quot;&amp;lt;a name=&apos;$e.anchor&apos;&amp;gt;&amp;lt;/a&amp;gt;\n&quot;;
	&quot;&quot;&quot;&amp;lt;div class=&quot;comment-each $barc&quot;&amp;gt;\n&quot;&quot;&quot;;
	
	&quot;&amp;lt;div class=&apos;comment-header&apos;&amp;gt;&quot;;
    &quot;&amp;lt;div class=&apos;comment-userpic&apos;&amp;gt;&quot;;
    if ($*opt_userpic_comments and defined $e.userpic) { &quot;$e.userpic&quot;; }
    &quot;&amp;lt;/div&amp;gt;&quot;;
    &quot;&amp;lt;div class=&apos;comment-by&apos;&amp;gt;&quot;;
    &quot;&amp;lt;span class=&apos;poster&apos;&amp;gt;&quot;+lang_posted_by($e.poster, $e.poster)+&quot;&amp;lt;/span&amp;gt;&quot;;
    var string ip = $e.metadata{&quot;poster_ip&quot;};
    if ($ip != &quot;&quot;) {
        &quot;&amp;lt;span class=&apos;metadata&apos;&amp;gt; &quot;;
        &quot;($ip)&quot;;
        &quot;&amp;lt;/span&amp;gt;&quot;;
    }    
    &quot;&amp;lt;/div&amp;gt;&quot;;
    &quot;&amp;lt;div class=&apos;comment-date&apos;&amp;gt;&quot;; 
    print lang_posted_date_and_time($e, $e.time, $showdate, $showtime);  
    &quot;&amp;lt;/div&amp;gt;&quot;;

    if ($e.subject != &quot;&quot;) {
        &quot;&amp;lt;div class=&apos;comment-subject&apos;&amp;gt;&amp;lt;h3&amp;gt;$e.subject&amp;lt;/h3&amp;gt;&amp;lt;/div&amp;gt;\n&quot;;
    }
	&quot;&amp;lt;/div&amp;gt;&quot;; #end comment-header
	
    &quot;&amp;lt;div class=&apos;comment-content&apos;&amp;gt;&quot;;

    $e-&amp;gt;print_text();
    &quot;&amp;lt;/div&amp;gt;&quot;;
	
    &quot;&amp;lt;div class=&apos;comment-footer&apos;&amp;gt;&quot;;
    var string sep = &quot;&amp;lt;span class=&apos;separator&apos;&amp;gt;|&amp;lt;/span&amp;gt;&quot;;

    #&quot;&amp;lt;a class=&apos;permalink&apos; href=&apos;$e.permalink_url&apos;&amp;gt;$*text_permalink&amp;lt;/a&amp;gt;&quot;;

    #if ($e.parent_url) { print &quot; $sep &amp;lt;a href=&apos;$e.parent_url&apos;&amp;gt;$*text_comment_parent&amp;lt;/a&amp;gt;&quot;; }
    #if ($e.thread_url) { print &quot; $sep &amp;lt;a href=&apos;$e.thread_url&apos;&amp;gt;$*text_comment_thread&amp;lt;/a&amp;gt;&quot;; }
    #if ($e.reply_url)  { print &quot; $sep &amp;lt;a href=&apos;$e.reply_url&apos;&amp;gt;$*text_comment_reply&amp;lt;/a&amp;gt;&quot;; }

    $e-&amp;gt;print_linkbar();
    &quot;&amp;lt;/div&amp;gt;\n&quot;;
	
    &quot;&amp;lt;/div&amp;gt;\n&quot;; #end comment-each

    if (size($e.replies) &amp;gt; 0) {
        println &quot;&amp;lt;div class=&apos;comment-replies&apos;&amp;gt;&quot;;

        foreach var Comment c ($e.replies) {
            $this-&amp;gt;print_comment($c);
        }

        println &quot;&amp;lt;/div&amp;gt;&quot;;
    }

    &quot;&amp;lt;/div&amp;gt;&quot;;
}

function Entry::print_linkbar() {
          var Page p = get_page();
          var bool printqr = false;

          &quot;&quot;&quot;
          &amp;lt;div class=&quot;entry-linkbar&quot;&amp;gt;&amp;lt;ul&amp;gt;
          &quot;&quot;&quot;;
          if ($.comments.enabled) {

              $printqr = true;
              &quot;&quot;&quot;&amp;lt;li class=&quot;first-el&quot;&amp;gt;&quot;&quot;&quot;; $p-&amp;gt;print_reply_link({&quot;linktext&quot; =&amp;gt; $*text_post_comment, &quot;target&quot; =&amp;gt; &quot;qr$.journal.username$.itemid&quot;, &quot;reply_url&quot; =&amp;gt; $.comments.post_url}); &quot;&quot;&quot;&amp;lt;/li&amp;gt;&quot;&quot;&quot;;
               
		if ($.comments.count &amp;gt; 0 or $.comments.screened) {
                &quot;&quot;&quot;&amp;lt;li&amp;gt;&amp;lt;a href=&quot;$.permalink_url?style=mine#comments&quot;&amp;gt;&quot;&quot;&quot;; print safe get_plural_phrase($.comments.count,&quot;text_read_comments&quot;); &quot;&quot;&quot;&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&quot;&quot;&quot;;
#href was .comments.read_url
              }           
          }
          print safe &quot;&quot;&quot;&amp;lt;li&amp;gt;&amp;lt;a href=&quot;$.permalink_url&quot;&amp;gt;$*text_permalink&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&quot;&quot;&quot;;


          var string{} link_caption = {
            &quot;edit_entry&quot; =&amp;gt; $*text_edit,
            &quot;edit_tags&quot; =&amp;gt; $*text_edittag,
            &quot;mem_add&quot; =&amp;gt; $*text_add_to_memories,
            &quot;tell_friend&quot; =&amp;gt; &quot;$*text_tell_friend&quot;,
            &quot;watch_comments&quot; =&amp;gt; $*text_track_comments,
            &quot;unwatch_comments&quot; =&amp;gt; $*text_untrack_comments,
          };
	
          var Link link;
          var string url;
          var string text;

          foreach var string link_key ($.link_keyseq) {
            $link = $this-&amp;gt;get_link($link_key);
            $url = $link.url;
            $text = $link_caption{$link_key} != &quot;&quot; ? $link_caption{$link_key} : $link.caption;
            if (defined $link) {
              print safe &quot;&quot;&quot;&amp;lt;li&amp;gt;&amp;lt;a href=&quot;$url&quot;&amp;gt;$text&amp;lt;/a&amp;gt;&amp;lt;/li&amp;gt;&quot;&quot;&quot;;
            }
          }
          &quot;&quot;&quot;
          &amp;lt;/ul&amp;gt;&amp;lt;/div&amp;gt; &amp;lt;!-- entryLinkbar --&amp;gt;
          &quot;&quot;&quot;;
          if ($printqr) { $p-&amp;gt;print_reply_container({&quot;class&quot; =&amp;gt; &quot;quickreply_entry&quot;, &quot;target&quot; =&amp;gt; &quot;qr$.journal.username$.itemid&quot;}); }
}


function print_entry(Page p, Entry e) {

var string subject = &quot;&quot;;
if ($e.subject != &quot;&quot;) { $subject = $e.subject; }
else { $subject = $*text_no_subject; }

    &quot;&amp;lt;div class=&apos;entry&apos;&quot; + ($e.dom_id ? &quot; id=&apos;$e.dom_id&apos;&quot; : &quot;&quot;) + &quot;&amp;gt;\n&quot;;
    &quot;&amp;lt;div class=&apos;entry-inner&apos;&amp;gt;\n&quot;;

      var bool showtime = $*opt_showtime;
      var bool showdate = not $*opt_datehead;
      var bool showposter = false;
      var bool showuserpic = $*opt_userpic_main;
      if ($p.view == &quot;read&quot; or $p.view == &quot;network&quot;) { $showtime = $*opt_showtime; $showdate = true; $showposter = true; $showuserpic = $*opt_userpic_friends; }
      if ($p.view == &quot;day&quot;) { $showdate = false; }
      if ($p.view == &quot;entry&quot; or $p.view == &quot;reply&quot;) { $showdate = true; }
      if ($p.view == &quot;recent&quot;) { $showdate = true; }
      if ($p.view == &quot;entry&quot;) { $showuserpic = $*opt_userpic_entrypage; }
      if (not $e.poster-&amp;gt;equals($e.journal)) { $showposter = true; }


      if (($showuserpic and defined $e.userpic) or $showposter) {
          &quot;&amp;lt;div class=&apos;outer-entry-userpic&apos;&amp;gt;&quot;;
          if ($showuserpic and defined $e.userpic) { &quot;$e.userpic&quot;; }
          if (($showuserpic and defined $e.userpic) and $showposter) { &quot;&amp;lt;br /&amp;gt;&quot;; }
          if ($showposter) { &quot;&amp;lt;span class=&apos;pic-poster&apos;&amp;gt;&quot;+lang_posted_by($e.poster, $e.journal)+&quot;&amp;lt;/span&amp;gt;&quot;; }
          &quot;&amp;lt;/div&amp;gt;\n&quot;;
      }

      &quot;&amp;lt;div class=&apos;entry-header&apos;&amp;gt;&amp;lt;div class=&apos;entry-header-inner&apos;&amp;gt;\n&quot;;
      if (($showuserpic and defined $e.userpic) or $showposter) {
          &quot;&amp;lt;div class=&apos;mid-entry-userpic&apos;&amp;gt;&quot;;
          if ($showuserpic and defined $e.userpic) { &quot;$e.userpic&quot;; }
          if (($showuserpic and defined $e.userpic) and $showposter) { &quot;&amp;lt;br /&amp;gt;&quot;; }
          if ($showposter) { &quot;&amp;lt;span class=&apos;pic-poster&apos;&amp;gt;&quot;+lang_posted_by($e.poster, $e.journal)+&quot;&amp;lt;/span&amp;gt;&quot;; }
          &quot;&amp;lt;/div&amp;gt;\n&quot;;
      }
      &quot;&amp;lt;h3&amp;gt;&quot;;
      if (defined $e.security_icon) {
          print &quot;&amp;lt;span class=&apos;lj-entry-securityicon&apos;&amp;gt;$e.security_icon&amp;lt;/span&amp;gt; &quot;;
      }
      &quot;&amp;lt;a href=&apos;$e.permalink_url?style=mine&apos;&amp;gt;$subject&amp;lt;/a&amp;gt;&amp;lt;/h3&amp;gt;\n&quot;;
      &quot;&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;\n&quot;;



	if ($showposter) {
	  &quot;&amp;lt;div class=&apos;header-poster&apos;&amp;gt;&quot;;
	  print lang_posted_by($e.poster, $e.journal);
#removed $this from both lang_posted_by, no clue why compiler choked on it
	  &quot;&amp;lt;/div&amp;gt;&quot;;
	}
          if ($showdate or $showtime) {
          	 &quot;&amp;lt;div class=&apos;entry-datetime&apos;&amp;gt;&quot;;
             print lang_posted_date_and_time($e, $e.time, $showdate, $showtime);
             &quot;&amp;lt;/div&amp;gt;&quot;;
          }      
      
      &quot;&amp;lt;div class=&apos;entry-content&apos;&amp;gt;\n&quot;;

         &quot;&amp;lt;div class=&apos;entry-body&apos;&amp;gt;\n&quot;;
		 	&quot;&amp;lt;div class=&apos;entry-text&apos;&amp;gt;\n&quot;;

      if (($showuserpic and defined $e.userpic) or $showposter) {
          &quot;&amp;lt;div class=&apos;inner-entry-userpic&apos;&amp;gt;&quot;;
          if ($showuserpic and defined $e.userpic) { &quot;$e.userpic&quot;; }
          if (($showuserpic and defined $e.userpic) and $showposter) { &quot;&amp;lt;br /&amp;gt;&quot;; }
          if ($showposter) { &quot;&amp;lt;span class=&apos;pic-poster&apos;&amp;gt;&quot;+lang_posted_by($e.poster, $e.journal)+&quot;&amp;lt;/span&amp;gt;&quot;; }
          &quot;&amp;lt;/div&amp;gt;&quot;;
      }
         		$e-&amp;gt;print_text();
			&quot;&amp;lt;/div&amp;gt;&quot;;
         	&quot;&amp;lt;div class=&apos;entry-metadata&apos;&amp;gt;&quot;;
         	$e-&amp;gt;print_metadata();
         	&quot;&amp;lt;/div&amp;gt;\n&quot;;
         &quot;&amp;lt;/div&amp;gt;\n&quot;;

         $e-&amp;gt;print_linkbar();

         
       &quot;&amp;lt;/div&amp;gt;\n&quot;;
	   &quot;&amp;lt;div class=&apos;entry-footer&apos;&amp;gt;&amp;lt;/div&amp;gt;\n&quot;;
     &quot;&amp;lt;/div&amp;gt;\n&quot;;
     &quot;&amp;lt;/div&amp;gt;\n&quot;;
}

function Page::print_entry(Entry e) {
    print_entry($this, $e);
}

function ReplyPage::print_body
{
    if (not $.entry.comments.enabled) {
        print &quot;&amp;lt;h2&amp;gt;$*text_reply_nocomments_header&amp;lt;/h2&amp;gt;&amp;lt;p&amp;gt;$*text_reply_nocomments&amp;lt;/p&amp;gt;&quot;;
        return;
    }


	$this-&amp;gt;print_entry($.entry);

    container_open(&quot;comments&quot;);
    &quot;&quot;&quot;
    &amp;lt;div class=&quot;comments-header&quot;&amp;gt;&amp;lt;h2&amp;gt;Comments&amp;lt;/h2&amp;gt;&amp;lt;/div&amp;gt;
    &amp;lt;div class=&quot;comments-list&quot;&amp;gt;
      &amp;lt;div class=&quot;comments-nav comnav-upper&quot;&amp;gt;
        ( &amp;lt;a href=&quot;$.entry.permalink_url&quot;&amp;gt;$*text_reply_back&amp;lt;/a&amp;gt; )
      &amp;lt;/div&amp;gt; 
      &amp;lt;a name=&quot;replyform&quot;&amp;gt;&amp;lt;/a&amp;gt;
      &amp;lt;div class=&quot;replyform&quot;&amp;gt;&quot;&quot;&quot;;
      $.form-&amp;gt;print();
      &quot;&quot;&quot;
      &amp;lt;/div&amp;gt;
    &amp;lt;/div&amp;gt;
    &quot;&quot;&quot;;

    container_close();
}

function YearPage::print_year_links() {
    &quot;&quot;&quot;&amp;lt;div class=&quot;yearlinks&quot;&amp;gt;&amp;lt;ul class=&quot;year&quot;&amp;gt;\n&quot;&quot;&quot;;
    foreach var YearYear y ($.years) {
        var string class = &quot;&quot;;
        var string year  = $y.year + &quot;&quot;;
        if ($y.displayed) {
            $class = &quot; class=\&quot;active\&quot;&quot;;
        } else {
            $year  = &quot;&quot;&quot;&amp;lt;a href=&quot;$y.url&quot;&amp;gt;$year&amp;lt;/a&amp;gt;&quot;&quot;&quot;;
        }
        &quot;&quot;&quot;&amp;lt;li$class&amp;gt;$year&amp;lt;/li&amp;gt;\n&quot;&quot;&quot;;
    }
    &quot;&quot;&quot;&amp;lt;/ul&amp;gt;&amp;lt;/div&amp;gt;\n&quot;&quot;&quot;;
}

function YearPage::print_month(YearMonth m) {
    if (not $m.has_entries) { return; }

    &quot;&quot;&quot;
    &amp;lt;div class=&quot;entry&quot;&amp;gt;
      &amp;lt;div class=&quot;entry-inner&quot;&amp;gt;

    &amp;lt;div class=&quot;entry-content&quot;&amp;gt;
    &amp;lt;div class=&quot;entry-body&quot;&amp;gt;&quot;&quot;&quot;;

    &quot;&quot;&quot;&amp;lt;table class=&quot;yeartable&quot; align=&quot;center&quot;&amp;gt;\n
       &amp;lt;tr&amp;gt;&amp;lt;td colspan=&quot;4&quot; class=&quot;monthlable&quot;&amp;gt;&quot;&quot;&quot;;
    print $m-&amp;gt;month_format();
    &quot;&quot;&quot;&amp;lt;/td&amp;gt;\n&quot;&quot;&quot;;
    &quot;&quot;&quot;&amp;lt;td colspan=&quot;3&quot; class=&quot;viewmonth&quot;&amp;gt;&quot;&quot;&quot;;
    print safe &quot;&quot;&quot;&amp;lt;a href=&quot;$m.url&quot;&amp;gt;$*text_view_month&amp;lt;/a&amp;gt;&amp;lt;/td&amp;gt;&amp;lt;/tr&amp;gt;\n&amp;lt;tr&amp;gt;\n&quot;&quot;&quot;;
    foreach var int d (weekdays()) {
        &quot;&quot;&quot;&amp;lt;td width=&quot;50&quot; class=&quot;dayname&quot;&amp;gt;&quot;&quot;&quot; + $*lang_dayname_short[$d] + &quot;&quot;&quot;&amp;lt;/td&amp;gt;\n&quot;&quot;&quot;;
    }
    &quot;&amp;lt;/tr&amp;gt;\n&quot;;
    foreach var YearWeek w ($m.weeks) {
        $w-&amp;gt;print();
    }
    &quot;&amp;lt;/table&amp;gt;&quot;;

    &quot;&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;\n&quot;;
    &quot;&quot;&quot;&amp;lt;div class=&quot;entry-footer&quot;&amp;gt;&amp;lt;/div&amp;gt;\n&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;\n&quot;&quot;&quot;;
}

function DayPage::print_body() {
    if ($.has_entries) {

    &quot;&amp;lt;div class=&apos;content-nav nav-top&apos;&amp;gt;\n&quot;;
    &quot;&amp;lt;a href=&apos;$.prev_url&apos;&amp;gt;$*text_day_prev&amp;lt;/a&amp;gt; | &quot;;
    &quot;&amp;lt;a href=&apos;$.next_url&apos;&amp;gt;$*text_day_next&amp;lt;/a&amp;gt;\n&amp;lt;/div&amp;gt;&quot;;

        &quot;&amp;lt;div class=\&quot;day\&quot; id=\&quot;dayyymmmmmdddd\&quot;&amp;gt;\n&amp;lt;div class=&apos;date-header&apos;&amp;gt;&amp;lt;h2&amp;gt;&quot;;
        print $.date-&amp;gt;date_format(&quot;long&quot;);
        &quot;&amp;lt;/h2&amp;gt;&amp;lt;/div&amp;gt;\n&quot;;

        foreach var Entry e ($.entries) {
            $this-&amp;gt;print_entry($e);
            #if ($e-&amp;gt;viewer_sees_ebox()) {
             #   &quot;&quot;&quot;&amp;lt;div style=&quot;margin-top: 20px; margin-bottom: 30px;&quot;&amp;gt;&quot;&quot;&quot;;
             #   $e-&amp;gt;print_ebox();
              #  &quot;&amp;lt;/div&amp;gt;&quot;;
            #}
        }

        &quot;&amp;lt;/div&amp;gt;&quot;;
    } else {
        &quot;&amp;lt;p&amp;gt;$*text_noentries_day&amp;lt;/p&amp;gt;&quot;;
    }

    &quot;&amp;lt;div class=&apos;content-nav nav-bottom&apos;&amp;gt;\n&quot;;
    &quot;&amp;lt;a href=&apos;$.prev_url&apos;&amp;gt;$*text_day_prev&amp;lt;/a&amp;gt; | &quot;;
    &quot;&amp;lt;a href=&apos;$.next_url&apos;&amp;gt;$*text_day_next&amp;lt;/a&amp;gt;\n&amp;lt;/div&amp;gt;&quot;;

}


&lt;/textarea&gt;&lt;/li&gt;&lt;li&gt;Click &lt;b&gt;Save &amp; Compile&lt;/b&gt;, at the very top.&lt;/li&gt;&lt;li&gt;Wait a moment for it to finish, then click &lt;b&gt;Back to layers list&lt;/b&gt; beside it.&lt;/li&gt;&lt;li&gt;Go to &lt;a href=&quot;http://www.dreamwidth.org/customize/&quot;&gt;Customize&lt;/a&gt; and choose &lt;b&gt;Your Custom Layers&lt;/b&gt;. Select &lt;b&gt;Apply Theme&lt;/b&gt; under the one labelled &lt;b&gt;Complete Style&lt;/b&gt;&lt;/li&gt;&lt;li&gt;Go to &lt;a href=&quot;http://www.dreamwidth.org/customize/options&quot;&gt;Customize Your Theme&lt;/a&gt; and fill out according to the guide below.&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;br /&gt;&lt;span class=&quot;cut-wrapper&quot;&gt;&lt;span style=&quot;display: none;&quot; id=&quot;span-cuttag___1&quot; class=&quot;cuttag&quot;&gt;&lt;/span&gt;&lt;b class=&quot;cut-open&quot;&gt;(&amp;nbsp;&lt;/b&gt;&lt;b class=&quot;cut-text&quot;&gt;&lt;a href=&quot;https://houndsofhell.dreamwidth.org/66930.html#cutid1&quot;&gt;Click for the rest.&lt;/a&gt;&lt;/b&gt;&lt;b class=&quot;cut-close&quot;&gt;&amp;nbsp;)&lt;/b&gt;&lt;/span&gt;&lt;div style=&quot;display: none;&quot; id=&quot;div-cuttag___1&quot; aria-live=&quot;assertive&quot;&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;img src=&quot;https://www.dreamwidth.org/tools/commentcount?user=houndsofhell&amp;ditemid=66930&quot; width=&quot;30&quot; height=&quot;12&quot; alt=&quot;comment count unavailable&quot; style=&quot;vertical-align: middle;&quot;/&gt; comments</description>
  <comments>https://houndsofhell.dreamwidth.org/66930.html</comments>
  <category>[ original to houndsofhell ]</category>
  <category>*templates</category>
  <category>layout</category>
  <category>!template</category>
  <lj:mood>stressed</lj:mood>
  <lj:security>public</lj:security>
  <lj:reply-count>0</lj:reply-count>
</item>
<item>
  <guid isPermaLink='true'>https://houndsofhell.dreamwidth.org/66594.html</guid>
  <pubDate>Tue, 07 Mar 2017 06:53:25 GMT</pubDate>
  <title>Profile Template</title>
  <link>https://houndsofhell.dreamwidth.org/66594.html</link>
  <description>&lt;span class=&quot;cut-wrapper&quot;&gt;&lt;span style=&quot;display: none;&quot; id=&quot;span-cuttag___1&quot; class=&quot;cuttag&quot;&gt;&lt;/span&gt;&lt;b class=&quot;cut-open&quot;&gt;(&amp;nbsp;&lt;/b&gt;&lt;b class=&quot;cut-text&quot;&gt;&lt;a href=&quot;https://houndsofhell.dreamwidth.org/66594.html#cutid1&quot;&gt;Template behind cut.&lt;/a&gt;&lt;/b&gt;&lt;b class=&quot;cut-close&quot;&gt;&amp;nbsp;)&lt;/b&gt;&lt;/span&gt;&lt;div style=&quot;display: none;&quot; id=&quot;div-cuttag___1&quot; aria-live=&quot;assertive&quot;&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;img src=&quot;https://www.dreamwidth.org/tools/commentcount?user=houndsofhell&amp;ditemid=66594&quot; width=&quot;30&quot; height=&quot;12&quot; alt=&quot;comment count unavailable&quot; style=&quot;vertical-align: middle;&quot;/&gt; comments</description>
  <comments>https://houndsofhell.dreamwidth.org/66594.html</comments>
  <category>*templates</category>
  <category>@forsythia</category>
  <lj:mood>bitchy</lj:mood>
  <lj:security>public</lj:security>
  <lj:reply-count>0</lj:reply-count>
</item>
<item>
  <guid isPermaLink='true'>https://houndsofhell.dreamwidth.org/66433.html</guid>
  <pubDate>Tue, 07 Mar 2017 04:51:59 GMT</pubDate>
  <title>DW-Compatible Navigation with Profile Template Workaround</title>
  <link>https://houndsofhell.dreamwidth.org/66433.html</link>
  <description>&lt;span class=&quot;cut-wrapper&quot;&gt;&lt;span style=&quot;display: none;&quot; id=&quot;span-cuttag___1&quot; class=&quot;cuttag&quot;&gt;&lt;/span&gt;&lt;b class=&quot;cut-open&quot;&gt;(&amp;nbsp;&lt;/b&gt;&lt;b class=&quot;cut-text&quot;&gt;&lt;a href=&quot;https://houndsofhell.dreamwidth.org/66433.html#cutid1&quot;&gt;original code&lt;/a&gt;&lt;/b&gt;&lt;b class=&quot;cut-close&quot;&gt;&amp;nbsp;)&lt;/b&gt;&lt;/span&gt;&lt;div style=&quot;display: none;&quot; id=&quot;div-cuttag___1&quot; aria-live=&quot;assertive&quot;&gt;&lt;/div&gt;To do the profile workaround, screenshot a preview and then chop it up in photoshop. Since this is primarily made for myself, I&apos;m not in the mood to explain how. Transfer the coding and links and all that other stuff, which will be a bitch and a half and more effort than it&apos;s worth (yet necessary to get the pretty layout in place), and then put the code in place. Whee.&lt;span class=&quot;cut-wrapper&quot;&gt;&lt;span style=&quot;display: none;&quot; id=&quot;span-cuttag___2&quot; class=&quot;cuttag&quot;&gt;&lt;/span&gt;&lt;b class=&quot;cut-open&quot;&gt;(&amp;nbsp;&lt;/b&gt;&lt;b class=&quot;cut-text&quot;&gt;&lt;a href=&quot;https://houndsofhell.dreamwidth.org/66433.html#cutid2&quot;&gt;workaround code&lt;/a&gt;&lt;/b&gt;&lt;b class=&quot;cut-close&quot;&gt;&amp;nbsp;)&lt;/b&gt;&lt;/span&gt;&lt;div style=&quot;display: none;&quot; id=&quot;div-cuttag___2&quot; aria-live=&quot;assertive&quot;&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;img src=&quot;https://www.dreamwidth.org/tools/commentcount?user=houndsofhell&amp;ditemid=66433&quot; width=&quot;30&quot; height=&quot;12&quot; alt=&quot;comment count unavailable&quot; style=&quot;vertical-align: middle;&quot;/&gt; comments</description>
  <comments>https://houndsofhell.dreamwidth.org/66433.html</comments>
  <category>*templates</category>
  <category>[ original to houndsofhell ]</category>
  <category>!template</category>
  <lj:mood>aggravated</lj:mood>
  <lj:security>public</lj:security>
  <lj:reply-count>0</lj:reply-count>
</item>
<item>
  <guid isPermaLink='true'>https://houndsofhell.dreamwidth.org/64321.html</guid>
  <pubDate>Wed, 22 Feb 2017 06:21:36 GMT</pubDate>
  <title>Basic Bio Template</title>
  <link>https://houndsofhell.dreamwidth.org/64321.html</link>
  <description>&lt;center&gt;&lt;br /&gt;&lt;div align=&quot;center&quot; style=&quot;width: 450px; padding: 10px;&quot;&gt;&lt;center&gt;&lt;img style=&quot;border-radius: 10px; border: 5px solid #102429; padding:0px !important;&quot; src=&quot;http://i.imgur.com/VU9BTf1.gif&quot;&gt;&lt;br /&gt;&lt;br /&gt;&lt;font style=&quot;font-size: 18pt; font-family:georgia; color:#116648; line-height: 1.3em;&quot;&gt;&lt;i&gt;Dean Winchester&lt;/i&gt;&lt;/font&gt;&lt;br /&gt;&lt;font style=&quot;font-size: 10px; font-family:monospace; color:#6a756b;&quot;&gt;&quot;Go find some hoodoo priest and lay some mojo on me... Sam?&quot;&lt;/font&gt;&lt;/center&gt;&lt;br /&gt;&lt;div align=&quot;justify&quot;&gt;&lt;small&gt;&lt;b&gt;name:&lt;/b&gt; Dean Winchester &lt;br /&gt;&lt;b&gt;nicknames:&lt;/b&gt; n/a&lt;br /&gt;&lt;b&gt;birthday:&lt;/b&gt; January 24, 1979 &lt;br /&gt;&lt;b&gt;hair:&lt;/b&gt; Brunette &lt;br /&gt;&lt;b&gt;eyes:&lt;/b&gt; Green &lt;br /&gt;&lt;b&gt;height:&lt;/b&gt; 6&apos;1&quot; // 1.85m &lt;br /&gt;&lt;b&gt;sexuality:&lt;/b&gt; 1 on the Kinsey Scale &lt;br /&gt;&lt;b&gt;pb:&lt;/b&gt; Jensen Ackles &lt;br /&gt;&lt;b&gt;fandom:&lt;/b&gt; Supernatural AU &lt;br /&gt;&lt;b&gt;canon point:&lt;/b&gt; Early Season Two &lt;br /&gt;&lt;b&gt;game:&lt;/b&gt; &lt;a href=&quot;http://asylums.insanejournal.com/underworldangel/tag/dean+winchester+(au+spn2)&quot;&gt;underworld angel (psl)&lt;/a&gt;&lt;/small&gt;&lt;/div&gt;&lt;/div&gt;&lt;/center&gt;&lt;br /&gt;&lt;br /&gt;&lt;textarea&gt;&amp;lt;center&amp;gt;
&amp;lt;div align=&quot;center&quot; style=&quot;width: 450px; padding: 10px;&quot;&amp;gt;&amp;lt;center&amp;gt;&amp;lt;img style=&quot;border-radius: 10px; border: 5px solid #102429; padding:0px !important;&quot; src=&quot;http://i.imgur.com/VU9BTf1.gif&quot;&amp;gt;

&amp;lt;font style=&quot;font-size: 18pt; font-family:georgia; color:#116648; line-height: 1.3em;&quot;&amp;gt;&amp;lt;i&amp;gt;Dean Winchester&amp;lt;/i&amp;gt;&amp;lt;/font&amp;gt;
&amp;lt;font style=&quot;font-size: 10px; font-family:monospace; color:#6a756b;&quot;&amp;gt;&quot;Go find some hoodoo priest and lay some mojo on me... Sam?&quot;&amp;lt;/font&amp;gt;&amp;lt;/center&amp;gt;
&amp;lt;div align=&quot;justify&quot;&amp;gt;&amp;lt;small&amp;gt;&amp;lt;b&amp;gt;name:&amp;lt;/b&amp;gt; Dean Winchester 
&amp;lt;b&amp;gt;nicknames:&amp;lt;/b&amp;gt; n/a
&amp;lt;b&amp;gt;birthday:&amp;lt;/b&amp;gt; January 24, 1979 
&amp;lt;b&amp;gt;hair:&amp;lt;/b&amp;gt; Brunette 
&amp;lt;b&amp;gt;eyes:&amp;lt;/b&amp;gt; Green 
&amp;lt;b&amp;gt;height:&amp;lt;/b&amp;gt; 6&apos;1&quot; // 1.85m 
&amp;lt;b&amp;gt;sexuality:&amp;lt;/b&amp;gt; 1 on the Kinsey Scale 
&amp;lt;b&amp;gt;pb:&amp;lt;/b&amp;gt; Jensen Ackles 
&amp;lt;b&amp;gt;fandom:&amp;lt;/b&amp;gt; Supernatural AU 
&amp;lt;b&amp;gt;canon point:&amp;lt;/b&amp;gt; Early Season Two 
&amp;lt;b&amp;gt;game:&amp;lt;/b&amp;gt; &amp;lt;a href=&quot;http://asylums.insanejournal.com/underworldangel/tag/dean+winchester+(au+spn2)&quot;&amp;gt;underworld angel (psl)&amp;lt;/a&amp;gt;&amp;lt;/small&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/center&amp;gt;&lt;/textarea&gt;&lt;br /&gt;&lt;br /&gt;&lt;img src=&quot;https://www.dreamwidth.org/tools/commentcount?user=houndsofhell&amp;ditemid=64321&quot; width=&quot;30&quot; height=&quot;12&quot; alt=&quot;comment count unavailable&quot; style=&quot;vertical-align: middle;&quot;/&gt; comments</description>
  <comments>https://houndsofhell.dreamwidth.org/64321.html</comments>
  <category>!template</category>
  <category>*templates</category>
  <category>[ original to houndsofhell ]</category>
  <lj:mood>blah</lj:mood>
  <lj:security>public</lj:security>
  <lj:reply-count>0</lj:reply-count>
</item>
<item>
  <guid isPermaLink='true'>https://houndsofhell.dreamwidth.org/62537.html</guid>
  <pubDate>Thu, 16 Feb 2017 11:15:00 GMT</pubDate>
  <title>HP Patronus/Wand Inclusive Bio</title>
  <link>https://houndsofhell.dreamwidth.org/62537.html</link>
  <description>&lt;center&gt;&lt;img src=&quot;http://i.imgur.com/RsVHRLY.png&quot; style=&quot;border-radius: 25px; border: 4px double rgb(78, 78, 78);&quot; height=&quot;200&quot;&gt;

&lt;br /&gt;
&lt;small&gt;&lt;b&gt;Libra Malfoy ● Slytherin&lt;/b&gt;&lt;/small&gt;&lt;/center&gt;

&lt;br /&gt;&lt;br /&gt;

&lt;span class=&quot;cut-wrapper&quot;&gt;&lt;span style=&quot;display: none;&quot; id=&quot;span-cuttag___1&quot; class=&quot;cuttag&quot;&gt;&lt;/span&gt;&lt;b class=&quot;cut-open&quot;&gt;(&amp;nbsp;&lt;/b&gt;&lt;b class=&quot;cut-text&quot;&gt;&lt;a href=&quot;https://houndsofhell.dreamwidth.org/62537.html#cutid1&quot;&gt;Fuller Bio Behind Cut&lt;/a&gt;&lt;/b&gt;&lt;b class=&quot;cut-close&quot;&gt;&amp;nbsp;)&lt;/b&gt;&lt;/span&gt;&lt;div style=&quot;display: none;&quot; id=&quot;div-cuttag___1&quot; aria-live=&quot;assertive&quot;&gt;&lt;/div&gt;&lt;br /&gt;&lt;br /&gt;&lt;img src=&quot;https://www.dreamwidth.org/tools/commentcount?user=houndsofhell&amp;ditemid=62537&quot; width=&quot;30&quot; height=&quot;12&quot; alt=&quot;comment count unavailable&quot; style=&quot;vertical-align: middle;&quot;/&gt; comments</description>
  <comments>https://houndsofhell.dreamwidth.org/62537.html</comments>
  <category>*templates</category>
  <category>[ original to houndsofhell ]</category>
  <category>!template</category>
  <lj:mood>accomplished</lj:mood>
  <lj:security>public</lj:security>
  <lj:reply-count>0</lj:reply-count>
</item>
</channel>
</rss>
