From: Steve Sutton Date: Wed, 28 Oct 2015 20:42:14 +0000 (-0400) Subject: Update for dropdown without children X-Git-Tag: v1.0.0^2~104 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=7bcff3bab65af02e418d837ee7e60d70b5cbf8e7;p=WP-Themes%2Fbpla.git Update for dropdown without children --- diff --git a/functions.php b/functions.php index ac6fec0..4124e8e 100644 --- a/functions.php +++ b/functions.php @@ -144,7 +144,7 @@ class Feature_Top_Bar_Walker extends Walker_Nav_Menu { if ($item_style) { $output .= $item_style; } - if ($depth == 0 && has_post_thumbnail((int)$object->object_id) && $object->has_children) { + if ($depth == 0 && has_post_thumbnail((int)$object->object_id)) { $thumbnail = wp_get_attachment_image_src(get_post_thumbnail_id((int)$object->object_id), 'bpla-drop-down'); $item_html .= ''; //$item_html .= '
' . print_r($object, true) . '
'; @@ -225,7 +225,7 @@ function glm_site_scripts() 'modernizr', get_template_directory_uri() . '/js/modernizr/modernizr.min.js' ); - + if(is_front_page()) { }