layerinfo "type" = "theme";
layerinfo "name" = "Custom layout & theme layer for EE";
layerinfo source_viewable = 1;
set text_module_customtext = "Credits & Style Info";

function Page::print_global_title() {
        if ($.global_title) {
                """<h1 id="title">
<span><a href="https://marahmarie.dreamwidth.org/" title="Back to the home page of Everything Else">Everything Else</a></span></h1>""";
}

}
function FriendsPage::print_global_title() {
        var string title = $.friends_title ? $.friends_title : $.global_title;
        """<h1 id="title">
<span><a href="https://marahmarie.dreamwidth.org/" title="Most recent posts on Everything Else">Everything Else</a></span></h1>""";
}
function Page::print_head_title() 
{
    if ($this isa FriendsPage) {
        print """<title>""" + $this->view_title() + $*text_default_separator + $.global_title + """</title>\n""";
    }
    elseif ($this isa RecentPage) {
        print """<title>""" + $.global_title  + """</title>\n""";
    }
    else {
        print """<title>""" + $this->view_title() + $*text_default_separator + $.global_title + """</title>\n""";
    }
}

function Page::print()
{
"""<!DOCTYPE html>
<head><meta http-equiv="X-UA-Compatible" content="IE=Edge" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="description" content="A subdomain of Dreamwidth often terrorized by someone named Marah Marie." />
<meta name="google-site-verification" content="7tpATdbXYm4az3zU1r46yP1ysmdCZzWp4FSKV1VxL7E" />
<meta name="robots" content="noarchive">
<link href="data:image/x-icon;base64,AAABAAEAEBAAAAEAIABoBAAAFgAAACgAAAAQAAAAIAAAAAEAIAAAAAAAAAQAABILAAASCwAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAkAAAAB8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAIgAAAAmAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAABpAAAALAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA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AAC0AA
AAAAAAAAAAAAAAAAAAAAAAABAAAAAAAAAAA/n8AAP5/AAD+fwAA/n8AAPx/AAD8fwAA+H8AAPh/AAD4fwAA+H8AAPh/AAD4fwAA8H8AAIAPAACMAQAA/HEAAA==" rel="icon" type="image/x-icon">
<link href="https://fonts.googleapis.com/css?family=Bubblegum+Sans|Sarala" rel="stylesheet"> 
<style type="text/css">/* block News Genius user features via CSS */ genius-referent[data-genius-featured-referent],genius-referent,a genius-referent[data-genius-featured-referent],
.com-genius-Genius-showing genius-referent[data-genius-featured-referent]html.com-genius-Genius-showing.com-genius-Genius-no-touch body,
html.com-genius-Genius-showing.com-genius-Genius-touch body,genius-pre-annotation-prompt,genius-pre-annotation-prompt-inner,genius-pre-annotation-prompt-inner:before,
genius-pre-annotation-prompt-inner:after,genius-back-page#genius_back_page,[data-genius-offsite-header=true] genius-back-page#genius_back_page,
.com-genius-Genius-showing genius-back-page#genius_back_page.showing,.com-genius-Genius-no-touch.com-genius-Genius-showing genius-back-page#genius_back_page.showing,
.com-genius-Genius-touch.com-genius-Genius-showing body,.com-genius-Genius-showing genius-back-page-mobile-clickjacker,genius-back-page-mobile-clickjacker,genius-callout,genius-callout a,
genius-callout-highlight,genius-callout-prompt,genius-callout-prompt:before,genius-callout-prompt:after,.fp__overlay{display:none!important}[data-genius-hover=true],
genius-referent[data-genius-featured-referent][data-genius-hover=true],.com-genius-Genius-showing genius-referent[data-genius-featured-referent],
.com-genius-Genius-showing genius-referent[data-genius-featured-referent][data-genius-is-highlighted]{background:transparent!important;cursor:text!important;
-webkit-tap-highlight-color:none!important}.fact_track-sprite,.site-sprite{background:url() no-repeat!important}.com-genius-Genius-touch genius-referent[data-genius-featured-referent]
{padding:0!important}.com-genius-Genius-no-touch genius-pre-annotation-prompt:hover genius-pre-annotation-prompt-inner{color:transparent!important;}</style>
""";
        $this->print_head();
        $this->print_stylesheets();
        $this->print_head_title();    
    println "</head>";
    $this->print_wrapper_start();
    $this->print_control_strip();
    """
            <div id="container">                
             
           <div id="header">
   
   <div id="top"></div>""";
   
    $this->print_global_title();
"""
               <a name="top"> </a>
   """;
    $this->print_global_subtitle();"""
             
           </div>
   """;
    $this->print_module_section("one");
    """
            <div id="wrap">
            <div id="content">
    """;
    $this->print_body();
    """
            <div class="top"><a href="#top" title="Jump to top of page">Top</a></div>
            </div>
    """;
    $this->print_module_section("two");
    """
            </div><div style="clear:both;"></div>
        </div>
        <div id="footer">
    """;
    $this->print_module_section("three");
    """
       </div>
    """;
    $this->print_wrapper_end();
    """
    </html>
    """;
}

function print_module_customtext() {
    var Page p = get_page();  
 open_module("customtext2", $*text_module_customtext, $*text_module_customtext_url);
    """<div class="module-typelist2">
<div class="module-content">
<ul class="module-list">
<li class="module-list-item"><a href="https://style_test.dreamwidth.org/" title="And it really is...quite...elegant!">'Elegant Grunge' WP Layout (ported by Alis Dee)</a></li>
<li class="module-list-item"><a href="http://pastebin.com/raw/hTEyTX3j" title="widerscreen version - 12-2016">Current CSS</a> (some images via <a href="http://ninetydegrees.dreamwidth.org">90°</a>)</li>
<li class="module-list-item"><a href="https://www.dreamwidth.org/customize/advanced/layersource?id=116552&amp;fmt=html" title="I like to play with the s2">Custom Theme Layer</a> (some s2 via <a href="http://ninetydegrees.dreamwidth.org">90°</a>)</li>
</ul></div></div>
<div class="module-typelist2">
<h2 class="module-header1">Style Management</h2>
<div class="module-content">
<ul class="module-list">
<li class="module-list-item"><a href="https://style-tester.dreamwidth.org/" title="Just another CSS playground">Style Tester</a></li>
<li class="module-list-item"><a href="https://www.dreamwidth.org/customize/advanced/layersource?id=5927&fmt=html" title="For those little moments when I want to set fire to my style sheet">Transmog Base Style</a></li>
<li class="module-list-item"><a href="https://s.dreamwidth.org/stc/??css/components/quick-reply.css,controlstrip.css,controlstrip-dark.css,jquery/jquery.ui.button.css,jquery/jquery.ui.dialog.css,jquery/jquery.ui.theme.smoothness.css?v=1448242651" title="Controlstrip, hovermenus">DW Components</a></li>
<li class="module-list-item"><a href="https://www.dreamwidth.org/file/" title="Upload and manage Dreamwidth images">DW Image Tools</a></li>
<li class="module-list-item"><a href="https://pastebin.com/u/emnem" title="My DW s2 &amp; CSS pastes">DW Code Pastes</a></li>
<li class="module-list-item"><a href="https://www.freeformatter.com/html-escape.html" title="Converts raw code into raw-er code">Escape LJ/DW HTML</a></li>
<li style="visibility:hidden"> <!-- GoStats Simple HTML Based Code --><a target="_blank" title="" href="https://gostats.com"><img alt="" 
src="https://ssl.gostats.com/bin/count/a_369968/t_5/i_1/ssl_c3.gostats.com/counter.png" style="border:0" /></a></li>
</ul></div></div>
     """;
  close_module();

} 

# code by ninetydegrees/foxfirefey
function print_module_navlinks() { 
  var Page p = get_page(); 

  var string[] navlinks_order = [];
  var string{} navlinks_urls = {};
  var string{} navlinks_text = {};
 
  $navlinks_order =    [        
        "userinfo",
        "tags",
        "archive",       
        "journals",
        "communities",
        "networkpc", 
        "latest", 

    ];
 
 $navlinks_urls =
    {   "userinfo" => "https://marahmarie.dreamwidth.org/profile",
        "tags" => "https://marahmarie.dreamwidth.org/tag",  
        "archive" => "https://marahmarie.dreamwidth.org/calendar",        
        "journals" => "https://marahmarie.dreamwidth.org/read?show=P",
        "communities" => "https://marahmarie.dreamwidth.org/read?show=C",
        "networkpc" => "https://marahmarie.dreamwidth.org/network?show=PC",  
        "latest" => "https://www.dreamwidth.org/latest",
        
    };
 
 $navlinks_text =
    {   "userinfo" => "Profile",
        "tags" => "Tags",
        "archive" => "Archive",        
        "journals" => "People",        
        "communities" => "Places",
        "networkpc" => "Plains", 
        "latest" => "Latest",       
        
    };
 
    open_module("navlinks", "", "");
    var string[] links = [];

    foreach var string k ($navlinks_order) {
        if ($navlinks_urls{$k} != "") {
            var string css = """ class="$k" """;
            if ($p.view == $k) { $css = """ class="current $k" """; }
            $links[size $links] = """<a href="$navlinks_urls{$k}"$css>$navlinks_text{$k}</a>""";
        }
    }    
    
    print_module_list($links);
    close_module();
}

function print_module_customtext() {
    var Page p = get_page();
    }