From 8c39c8fa97e7c44200481bf64b0fdef16c1209e1 Mon Sep 17 00:00:00 2001 From: Anthony Talarico Date: Thu, 15 Dec 2016 09:29:51 -0500 Subject: [PATCH] summary: changing color of member detail 'visit website' link background --- functions.php | 3 ++- js/app.js | 3 +-- js/custom/pageSetup.js | 3 +-- lib/menu-walker.php | 16 ++++++++++++++-- scss/plugins/_glm-member-db.scss | 2 +- 5 files changed, 19 insertions(+), 8 deletions(-) diff --git a/functions.php b/functions.php index 55b2a3b..4e877ea 100644 --- a/functions.php +++ b/functions.php @@ -142,5 +142,6 @@ function is_post_type($type){ add_action('thematic_searchloop', 'mytheme_search_loop'); // End of the Contextual/Highlight Search functions +$locations = get_nav_menu_locations(); + -?> diff --git a/js/app.js b/js/app.js index d22617e..8bd619d 100644 --- a/js/app.js +++ b/js/app.js @@ -40,7 +40,7 @@ $(document).ready(function () { var members_only = page.find('#menu-members-only-menu li'); var off_canvas = page.find('.left-off-canvas-list'); var day_trips = page.find('.day-trips-menu'); - + day_trips.appendTo(off_canvas); search = search.children('.search-trigger'); @@ -68,5 +68,4 @@ $(document).ready(function () { } }); - }); diff --git a/js/custom/pageSetup.js b/js/custom/pageSetup.js index 63ae634..b13c64d 100644 --- a/js/custom/pageSetup.js +++ b/js/custom/pageSetup.js @@ -31,7 +31,7 @@ $(document).ready(function () { var members_only = page.find('#menu-members-only-menu li'); var off_canvas = page.find('.left-off-canvas-list'); var day_trips = page.find('.day-trips-menu'); - + day_trips.appendTo(off_canvas); search = search.children('.search-trigger'); @@ -59,5 +59,4 @@ $(document).ready(function () { } }); - }); diff --git a/lib/menu-walker.php b/lib/menu-walker.php index c6aafb5..b55677f 100644 --- a/lib/menu-walker.php +++ b/lib/menu-walker.php @@ -24,7 +24,19 @@ class Glm_Theme_Top_Bar_Walker extends Walker_Nav_Menu { $item_style = ''; if ($depth == 0 && has_post_thumbnail((int)$object->object_id)) { $thumbnail = wp_get_attachment_image_src(get_post_thumbnail_id((int)$object->object_id), 'large'); - $item_style .= ""; + $thumbnail = wp_get_attachment_image_src( get_post_thumbnail_id( (int)$object->object_id ), 'large' ); + + $item_style .= ""; + + } //$output .= ( 0 == $depth ) ? '
  • ' : ''; $classes = empty( $object->classes ) ? array() : (array) $object->classes; @@ -39,7 +51,6 @@ class Glm_Theme_Top_Bar_Walker extends Walker_Nav_Menu { $output .= $item_style; $output .= $item_html; } - function start_lvl( &$output, $depth = 0, $args = array() ) { $output .= "\n