From: Steve Sutton Date: Thu, 13 Nov 2014 20:12:30 +0000 (-0500) Subject: update menu items X-Git-Tag: v1.0.0~83 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=b6b84d953f4ee9a0d6e9641a283bf0ae3d366b26;p=WP-Themes%2FPrestonFeather.git update menu items new function for the main menu new function for the off canvas menu update the logo url --- diff --git a/css/styles.css b/css/styles.css index dfdfd2a..906ef32 100644 --- a/css/styles.css +++ b/css/styles.css @@ -52,7 +52,7 @@ a.title-posts { color: #ab0020; } header { - background: #fff; + background: #fff; } span { color: #000; @@ -287,7 +287,7 @@ footer a { .left-off-canvas-menu { background: #fff; } -ul.left-off-canvas-list { +div.left-off-canvas-list ul { list-style: none; } .left-off-canvas-list li a { @@ -300,16 +300,16 @@ ul.left-off-canvas-list { color: #fff; background: #ab0020; } -.left-off-canvas-list ul.dropdown { +.left-off-canvas-list ul.children { list-style: none; } -.left-off-canvas-list .dropdown li a { +.left-off-canvas-list .children li a { display: block; color: #000; background: #fff; line-height: 250%; } -.left-off-canvas-list .dropdown li a:hover { +.left-off-canvas-list .children li a:hover { color: #fff; background: #ab0020; } @@ -408,7 +408,7 @@ aside a { color: #ab0020; } .title_space-b { - padding-bottom: 15px; + padding-bottom: 15px; } .left { text-align: left !important; @@ -421,7 +421,7 @@ aside a { margin-right: 30px; } p.caption { - font-size: 18px; + font-size: 18px; } p.in { font-family: Arial, sans-serif; diff --git a/functions.php b/functions.php index e2ae5a2..3e0a7c7 100755 --- a/functions.php +++ b/functions.php @@ -1,52 +1,53 @@ false, // remove nav container - 'container_class' => '', // class of container - 'menu' => '', // menu name - 'menu_class' => 'top-bar-menu left', // adding custom nav class - 'theme_location' => '', // where it's located in the theme - 'before' => '', // before each link - 'after' => '', // after each link - 'link_before' => '', // before each link text - 'link_after' => '', // after each link text - 'depth' => 5, // limit the depth of the nav - 'fallback_cb' => false, // fallback function (see below) - 'walker' => new top_bar_walker() - )); - } +function glm_page_menu() +{ + $frontPageId = get_option('page_on_front'); + $parents = array(); + $pages = get_pages(array( + 'post_type' => 'page', + 'parent' => -1, + 'number' => '', + 'exclude' => $frontPageId + )); + echo ''; } -// Add menu walker -require_once('library/top-bar_walker.php'); /** - * Mobile off-canvas + * glm_offcanvas_menu + * + * Generate the list of pages as nested ul li list */ -if ( ! function_exists( 'foundationPress_mobile_off_canvas' ) ) { - function foundationPress_mobile_off_canvas() { - wp_nav_menu(array( - 'container' => false, // remove nav container - 'container_class' => '', // class of container - 'menu' => '', // menu name - 'menu_class' => 'left-off-canvas-list', // adding custom nav class - 'theme_location' => '', // where it's located in the theme - 'before' => '', // before each link - 'after' => '', // after each link - 'link_before' => '', // before each link text - 'link_after' => '', // after each link text - 'depth' => 5, // limit the depth of the nav - 'fallback_cb' => false, // fallback function (see below) - 'walker' => new top_bar_walker() - )); - } +function glm_offcanvas_menu() +{ + wp_page_menu(array( + 'depth' => 0, + 'sort_column' => 'menu_order', + 'menu_class' => 'left-off-canvas-list' + )); } - ?> \ No newline at end of file diff --git a/header.php b/header.php index 5fa180d..3379c48 100644 --- a/header.php +++ b/header.php @@ -23,9 +23,9 @@
- +
- +
@@ -33,14 +33,13 @@
- +
@@ -52,7 +51,7 @@ - +