Add Gradation Horizontal site scheme.

        Patch by foxfirefey. 

diffs (157 lines):

diff -r 43f0a4f2ef32 -r 6249ec6e3aca cgi-bin/DW/Hooks/SiteScheme.pm
--- a/cgi-bin/DW/Hooks/SiteScheme.pm    Mon Apr 19 22:17:06 2010 -0700
+++ b/cgi-bin/DW/Hooks/SiteScheme.pm    Tue Apr 20 09:09:33 2010 +0000
@@ -23,6 +23,7 @@ LJ::Hooks::register_hook('modify_scheme_
         { scheme => "tropo-red", title => "Tropospherical Red" },
         { scheme => "tropo-purple", title => "Tropospherical Purple" },
         { scheme => "celerity-local", title => "Celerity" },
+        { scheme => "gradation-horizontal-local", title => "Gradation 
Horizontal" },
         { scheme => "gradation-vertical-local", title => "Gradation Vertical" 
},
         { scheme => "lynx", title => "Lynx (light mode)" },
     );
diff -r 43f0a4f2ef32 -r 6249ec6e3aca 
cgi-bin/bml/scheme/gradation-horizontal-local.look
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/cgi-bin/bml/scheme/gradation-horizontal-local.look        Tue Apr 20 
09:09:33 2010 +0000
@@ -0,0 +1,25 @@
+_parent=>gradation-horizontal.look
+
+logo<=
+<?_code
+{
+    my $imgprefix = $LJ::IS_SSL ? $LJ::SSLIMGPREFIX : $LJ::IMGPREFIX;
+    return "<a href='$LJ::SITEROOT/'><img 
src='$imgprefix/gradation/dw_logo_gradation_beta.png' alt='$LJ::SITENAMESHORT' 
/></a>";
+}
+_code?>
+<=logo
+
+
+footer<=
+<ul>
+    <li><a href="<?siteroot?>/legal/privacy"><?_ml 
sitescheme.footer.legal.privacypolicy _ml?></a> &bull; </li>
+    <li><a href="<?siteroot?>/legal/tos"><?_ml sitescheme.footer.legal.tos 
_ml?></a> &bull; </li>
+    <li><a href="<?siteroot?>/legal/diversity"><?_ml 
sitescheme.footer.legal.diversitystatement _ml?></a> &bull; </li>
+    <li><a href="<?siteroot?>/legal/principles"><?_ml 
sitescheme.footer.legal.guidingprinciples _ml?></a> &bull; </li>
+    <li><a href="<?siteroot?>/site/"><?_ml sitescheme.footer.sitemap _ml?></a> 
&bull; </li>
+    <li><a href="<?siteroot?>/site/suggest"><?_ml sitescheme.footer.suggestion 
_ml?></a> &bull; </li>
+    <li><a href="<?siteroot?>/site/opensource"><?_ml tropo.footer.opensource 
_ml?></a> &bull; </li>
+    <li><a href="<?siteroot?>/support/"><?_ml sitescheme.accountlinks.help 
_ml?></a></li>
+</ul>
+<p><?_ml sitescheme.footer.info _ml?></p>
+<=footer
diff -r 43f0a4f2ef32 -r 6249ec6e3aca cgi-bin/bml/scheme/tropo-purple.look
--- a/cgi-bin/bml/scheme/tropo-purple.look      Mon Apr 19 22:17:06 2010 -0700
+++ b/cgi-bin/bml/scheme/tropo-purple.look      Tue Apr 20 09:09:33 2010 +0000
@@ -45,8 +45,8 @@ head<=
 
         # we support both old style and new style pages; only one of these 
will get
         # loaded ...
-        LJ::need_res( {group=>'jquery'}, "js/tropo/nav-jquery.js" );
-        LJ::need_res( {group=>'default'}, "js/tropo/nav.js" );
+        LJ::need_res( {group=>'jquery'}, "js/nav-jquery.js" );
+        LJ::need_res( {group=>'default'}, "js/nav.js" );
     _code?>
     <?_code LJ::res_includes(); _code?>
 
diff -r 43f0a4f2ef32 -r 6249ec6e3aca cgi-bin/bml/scheme/tropo-red.look
--- a/cgi-bin/bml/scheme/tropo-red.look Mon Apr 19 22:17:06 2010 -0700
+++ b/cgi-bin/bml/scheme/tropo-red.look Tue Apr 20 09:09:33 2010 +0000
@@ -45,8 +45,8 @@ head<=
 
         # we support both old style and new style pages; only one of these 
will get
         # loaded ...
-        LJ::need_res( {group=>'jquery'}, "js/tropo/nav-jquery.js" );
-        LJ::need_res( {group=>'default'}, "js/tropo/nav.js" );
+        LJ::need_res( {group=>'jquery'}, "js/nav-jquery.js" );
+        LJ::need_res( {group=>'default'}, "js/nav.js" );
     _code?>
     <?_code LJ::res_includes(); _code?>
 
diff -r 43f0a4f2ef32 -r 6249ec6e3aca htdocs/js/tropo/nav-jquery.js
--- a/htdocs/js/tropo/nav-jquery.js     Mon Apr 19 22:17:06 2010 -0700
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,36 +0,0 @@
-/*
-    js/tropo/nav-jquery.js
-
-    Tropospherical Navigation JavaScript
-
-    Authors:
-        Mark Smith <[email protected]>
-
-    Copyright (c) 2009 by Dreamwidth Studios, LLC.
-
-    This program is NOT free software or open-source; you can use it as an
-    example of how to implement your own site-specific extensions to the
-    Dreamwidth Studios open-source code, but you cannot use it on your site
-    or redistribute it, with or without modifications.
-*/
-
-DW.whenPageLoaded( function() {
-
-    // used below
-    var hideNavs = function() {
-        $( '.topnav' ).removeClass( 'hover' );
-        $( '.subnav' ).removeClass( 'hover' );
-    };
-
-    // add event listeners to the top nav items
-    $( '.topnav' )
-
-        .mouseover( function() {
-            hideNavs();
-            $( this ).addClass( 'hover' );
-        } )
-
-        .mouseout( function() {
-            hideNavs();
-        } );
-} );
diff -r 43f0a4f2ef32 -r 6249ec6e3aca htdocs/js/tropo/nav.js
--- a/htdocs/js/tropo/nav.js    Mon Apr 19 22:17:06 2010 -0700
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,45 +0,0 @@
-// Tropospherical Navigation JavaScript
-//
-// Authors:
-//     Janine Smith <[email protected]>
-//     Jesse Proulx <[email protected]>
-//     Elizabeth Lubowitz <[email protected]>
-//
-// Copyright (c) 2009 by Dreamwidth Studios, LLC.
-//
-// This program is NOT free software or open-source; you can use it as an
-// example of how to implement your own site-specific extensions to the
-// Dreamwidth Studios open-source code, but you cannot use it on your site
-// or redistribute it, with or without modifications.
-//
-
-var Tropo = new Object();
-
-Tropo.init = function () {
-    // add event listeners to all of the top-level nav menus
-    var topnavs = DOM.getElementsByClassName($('menu'), "topnav");
-    topnavs.forEach(function (topnav) {
-        DOM.addEventListener(topnav, "mouseover", function (evt) { 
Tropo.showSubNav(topnav.id) });
-        DOM.addEventListener(topnav, "mouseout", function (evt) { 
Tropo.hideSubNav() });
-    });
-}
-
-Tropo.hideSubNav = function () {
-    var topnavs = DOM.getElementsByClassName($('menu'), "topnav");
-    var subnavs = DOM.getElementsByClassName($('menu'), "subnav");
-    topnavs.forEach(function (topnav) {
-        DOM.removeClassName(topnav, "hover");
-    });
-    subnavs.forEach(function (subnav) {
-        DOM.removeClassName(subnav, "hover");
-    });
-}
-
-Tropo.showSubNav = function (id) {
-    Tropo.hideSubNav();
-
-    if (!$(id)) return;
-    DOM.addClassName($(id), "hover");
-}
-
-LiveJournal.register_hook("page_load", Tropo.init);
_______________________________________________
dw-changelog mailing list
[email protected]
http://lists.dwscoalition.org/mailman/listinfo/dw-changelog

Reply via email to