From fd4ea6f86fab558619d29a1043a96b639f8ba66c Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Fri, 19 Aug 2016 12:09:56 -0400 Subject: [PATCH] Fix error by ian that removed some menu images Talked to Ian about being careful not to do these things. --- lib/menu-walker.php | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/lib/menu-walker.php b/lib/menu-walker.php index 43fd756..ca9a046 100644 --- a/lib/menu-walker.php +++ b/lib/menu-walker.php @@ -25,40 +25,40 @@ class Glm_Theme_Top_Bar_Walker extends Walker_Nav_Menu { // echo "
", print_r($object), "
"; 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 .= ""; - - } else if( $depth !== 0 && $object->type == "taxonomy") { - - //$thumbnail = z_taxonomy_image_url( (int)$object->object_id ); + + } else if( $depth !== 0 && $object->type == "taxonomy") { + + $thumbnail = z_taxonomy_image_url( (int)$object->object_id ); $item_style .= ""; - + } else if( $depth !== 0 && ! has_post_thumbnail( (int)$object->object_id ) ){ - + $thumbnail = get_template_directory_uri() . '/assets/header-images-2.jpg'; $item_style .= ""; -- 2.17.1