From: Anthony Talarico Date: Mon, 11 Jan 2016 19:37:01 +0000 (-0500) Subject: testing dropdown for quick links X-Git-Tag: v1.0.0^2~69 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=c41f059a26743519ecbb52b04c0126ca7c8d6bfc;p=WP-Themes%2Fotsego.git testing dropdown for quick links --- diff --git a/js/app.js b/js/app.js index fc834ad..e44f446 100644 --- a/js/app.js +++ b/js/app.js @@ -71,7 +71,7 @@ $(document).ready(function () { // adjusting nav menu columns and li width $menu1 - .css("max-height", "235px"); + .css("max-height", "250px"); $menu2 .css("-moz-columns", "2") .css("-webkit-columns", "2") @@ -115,10 +115,6 @@ $(document).ready(function () { }); } } - -// alert(words.length); -// var words = $('div[class*="excerpt"])').text().split(' '); -// alert(words.length); /* get number of elements in DOM console.log($("*").length); var pageBytes = $('html').html().length; var kbytes = pageBytes / 1024; diff --git a/js/custom/pageSetup.js b/js/custom/pageSetup.js index 5813751..c31f81f 100644 --- a/js/custom/pageSetup.js +++ b/js/custom/pageSetup.js @@ -62,7 +62,7 @@ $(document).ready(function () { // adjusting nav menu columns and li width $menu1 - .css("max-height", "235px"); + .css("max-height", "250px"); $menu2 .css("-moz-columns", "2") .css("-webkit-columns", "2") @@ -106,10 +106,6 @@ $(document).ready(function () { }); } } - -// alert(words.length); -// var words = $('div[class*="excerpt"])').text().split(' '); -// alert(words.length); /* get number of elements in DOM console.log($("*").length); var pageBytes = $('html').html().length; var kbytes = pageBytes / 1024; diff --git a/lib/navigation.php b/lib/navigation.php index 7e780ae..0f28bb0 100644 --- a/lib/navigation.php +++ b/lib/navigation.php @@ -6,7 +6,8 @@ register_nav_menus(array( 'top-bar-3' => 'Top Nav Three', 'top-bar-4' => 'Top Nav Four', 'top-bar-5' => 'Top Nav Five', - 'top-bar-6' => 'Top Nav Six' + 'top-bar-6' => 'Top Nav Six', + 'frontpage-sidebar' => 'Quick Links' )); /** diff --git a/nav-menu-dropdown.php b/nav-menu-dropdown.php new file mode 100644 index 0000000..10597e5 --- /dev/null +++ b/nav-menu-dropdown.php @@ -0,0 +1,40 @@ + + * @copyright Copyright (c) 2011, Bill Erickson + * @license http://opensource.org/licenses/gpl-2.0.php GNU Public License + * + */ + +class Walker_Nav_Menu_Dropdown extends Walker_Nav_Menu { + function start_lvl( &$output, $depth = 0, $args = array() ){ + $indent = str_repeat("\t", $depth); // don't output children opening tag (`