Advertisement
emnem

s2 4-13-16 (w/no prev/next in topbar)

Feb 7th, 2016
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 7.48 KB | None | 0 0
  1. layerinfo "type" = "theme";
  2. layerinfo "name" = "Custom layout & theme layer for EE";
  3. layerinfo source_viewable = 1;
  4. set text_module_customtext = "Credits & Style Info";
  5.  
  6.  
  7. function Page::print_global_title() {
  8.         if ($.global_title) {
  9.                 """<h1 id="title">
  10. <span><a href="https://mm-writes.dreamwidth.org" title="The best-kept secret on teh Webs">Everything Else</a></span></h1>""";
  11. }
  12.  
  13. }
  14. function FriendsPage::print_global_title() {
  15.         var string title = $.friends_title ? $.friends_title : $.global_title;
  16.         """<h1 id="title">
  17. <span><a href="https://mm-writes.dreamwidth.org/" title="Most recent posts on Everything Else">Everything Else</a></span></h1>""";
  18.  
  19. }
  20.  
  21. function Page::print_head_title()
  22. {
  23.     if ($this isa FriendsPage) {
  24.         print """<title>""" + $this->view_title() + $*text_default_separator + $.global_title + """</title>\n""";
  25.     }
  26.     elseif ($this isa RecentPage) {
  27.         print """<title>""" + $.global_title  + """</title>\n""";
  28.     }
  29.     else {
  30.         print """<title>""" + $this->view_title() + $*text_default_separator + $.global_title + """</title>\n""";
  31.     }
  32. }
  33.  
  34. function Page::print()
  35. {
  36. """<!DOCTYPE html>
  37. <head><meta http-equiv="X-UA-Compatible" content="IE=Edge" />
  38. <meta name="viewport" content="width=device-width, initial-scale=1" />
  39. <meta name="description" content="Opinion mixed with opining, complaining, fine dining, little explanation, some whining, often cloudy with chance of scattered rhyming" />
  40. <meta name="google-site-verification" content="7tpATdbXYm4az3zU1r46yP1ysmdCZzWp4FSKV1VxL7E" />
  41. <link rel="shortcut icon" href="http://www.iconj.com/ico/3/7/37i07y859q.ico" type="image/x-icon" />
  42. """;
  43.         $this->print_head();
  44.         $this->print_stylesheets();
  45.         $this->print_head_title();    
  46.     println "</head>";
  47.     $this->print_wrapper_start();
  48.     $this->print_control_strip();
  49.     """
  50.            <div id="container">                
  51.              
  52.            <div id="header">
  53.    
  54.    <div id="top"></div>""";
  55.    
  56.     $this->print_global_title();
  57. """
  58.                <a name="top"> </a>
  59.    """;
  60.     $this->print_global_subtitle();"""
  61.              
  62.            </div>
  63.    """;
  64.     $this->print_module_section("one");
  65.     """
  66.            <div id="wrap">
  67.            <div id="content">
  68.    """;
  69.     $this->print_body();
  70.     """
  71.            <div class="top"><a href="#top" title="Jump to top of page">Top of Page</a></div>
  72.             </div>
  73.     """;
  74.    $this->print_module_section("two");
  75.    """
  76.             </div><div style="clear:both;"></div>
  77.         </div>
  78.         <div id="footer">
  79.     """;
  80.    $this->print_module_section("three");
  81.    """
  82.        </div>
  83.     """;
  84.    $this->print_wrapper_end();
  85.    """
  86.     </html>
  87.     """;
  88. }
  89.  
  90. function print_module_customtext() {
  91.    var Page p = get_page();  
  92. open_module("customtext2", $*text_module_customtext, $*text_module_customtext_url);
  93.    """<div class="module-typelist2">
  94. <div class="module-content">
  95. <ul class="module-list">
  96. <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>
  97. <li class="module-list-item"><a href="https://pastebin.com/raw/Xmjjdpu7" title="widescreen version">Current CSS</a> (some images via <a href="http://ninetydegrees.dreamwidth.org">90°</a>)</li>
  98. <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>
  99. </ul></div></div>
  100. <div class="module-typelist2">
  101. <h2 class="module-header1">Style Management</h2>
  102. <div class="module-content">
  103. <ul class="module-list">
  104. <li class="module-list-item"><a href="https://style-tester.dreamwidth.org/" title="Just another CSS playground">Style Tester</a></li>
  105. <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>
  106. <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>
  107. <li class="module-list-item"><a href="http://www.raffoul.ca/users/masterslacker/ljhtmlparser.php" title="Converts raw code into raw-er code">LJ/DW HTML Mod Tool</a></li>
  108. </ul></div></div>
  109. <div class="module-typelist2">
  110. <h2 class="module-header1">Win 10 Re-installs</h2>
  111. <div class="module-content">
  112. <ul class="module-list">
  113. <li class="module-list-item"><a href="https://www.voidtools.com/Everything-1.3.4.686.x86.zip" title="Everything/Void Tools">Everything</a></li>
  114. <li class="module-list-item"><a href="https://notepad-plus-plus.org/repository/6.x/6.8.8/npp.6.8.8.Installer.exe" title="Notepad++">Notepad++</a></li>
  115. <li class="module-list-item"><a href="http://www.oldapps.com/fast_stone_capture.php?old_fscapture=17?download" title="FSCapture 5.3">FSCapture 5.3</a></li>
  116. <li class="module-list-item"><a href="https://addons.mozilla.org/en-us/firefox/collections/emnem/marahmarie/" title="My Firefox add-ons">Firefox Add-ons</a></li>
  117. <li class="module-list-item"><a href="https://greasyfork.org/scripts/2242-google-redone/code/Google%20Redone.user.js" title="Google Redone: needs some redoing">Google Redone</a></li>
  118. <li style="visibility:hidden"> <!-- GoStats Simple HTML Based Code --><a target="_blank" title="" href="https://gostats.com"><img alt=""
  119. 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>
  120.  
  121.      """;
  122.  close_module();
  123.  
  124. }
  125.  
  126.  
  127. # code by ninetydegrees/foxfirefey
  128. function print_module_navlinks() {
  129.  
  130.  var Page p = get_page();
  131.  
  132.  
  133.  var string[] navlinks_order = [];
  134.  var string{} navlinks_urls = {};
  135.  var string{} navlinks_text = {};
  136.  
  137.  $navlinks_order =
  138.    [
  139.        
  140.        "userinfo",
  141.        "tags",
  142.        "archive",      
  143.        "journals",
  144.        "communities",
  145.        "networkpc",
  146.    ];
  147.  
  148. $navlinks_urls =
  149.    {   "userinfo" => "https://mm-writes.dreamwidth.org/profile",
  150.        "tags" => "https://mm-writes.dreamwidth.org/tag",  
  151.        "archive" => "https://mm-writes.dreamwidth.org/calendar",        
  152.        "journals" => "https://mm-writes.dreamwidth.org/read?show=P",
  153.        "communities" => "https://mm-writes.dreamwidth.org/read?show=C",
  154.        "networkpc" => "https://mm-writes.dreamwidth.org/network?show=PC",      
  155.        
  156.    };
  157.  
  158. $navlinks_text =
  159.    {   "userinfo" => "Profile",
  160.        "tags" => "Tags",
  161.        "archive" => "Archive",        
  162.        "journals" => "People",        
  163.        "communities" => "Places",
  164.        "networkpc" => "Plains",        
  165.        
  166.    };
  167.  
  168.  
  169.    open_module("navlinks", "", "");
  170.    var string[] links = [];
  171.    
  172.    
  173.    
  174.    foreach var string k ($navlinks_order) {
  175.        if ($navlinks_urls{$k} != "") {
  176.            var string css = """ class="$k" """;
  177.            if ($p.view == $k) { $css = """ class="current $k" """; }
  178.            $links[size $links] = """<a href="$navlinks_urls{$k}"$css>$navlinks_text{$k}</a>""";
  179.        }
  180.    }
  181.    
  182.  
  183.    
  184.    
  185.    print_module_list($links);
  186.    close_module();
  187. }
  188.  
  189.  
  190. function print_module_customtext() {
  191.    var Page p = get_page();
  192.    }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement