From: Steve Sutton Date: Fri, 19 Jun 2015 12:14:55 +0000 (-0400) Subject: Update for the menu walker X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=c343644eb0ffdb98680eaab7eda809a88e6b1ef7;p=WP-Themes%2Fglmthemes%2Fcrawfordcounty-theme.git Update for the menu walker --- diff --git a/lib/menu-walker.php b/lib/menu-walker.php index 0c99cfa..5a532fa 100644 --- a/lib/menu-walker.php +++ b/lib/menu-walker.php @@ -23,7 +23,17 @@ class Emmetcounty_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)); - //$item_style .= ""; + if ($thumbnail[0]) { + //$item_style .= ''; + } + //$item_style .= ''; } //$output .= ( 0 == $depth ) ? '
  • ' : ''; $classes = empty( $object->classes ) ? array() : (array) $object->classes;