From: Ian Weller Date: Mon, 22 May 2017 16:12:43 +0000 (-0400) Subject: adding a graphic and updating the menu walker X-Git-Tag: 1.0.14^2~4 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=8d41fa615481168fb4838c94a5f6265856437020;p=WP-Themes%2Fmackinawferry.git adding a graphic and updating the menu walker I added the graphic for the all ticket option and made a place for it in the menu walker. --- diff --git a/assets/All-Tickets-to-Mackinac-Island-Option-Featured-Image.png b/assets/All-Tickets-to-Mackinac-Island-Option-Featured-Image.png new file mode 100644 index 0000000..b6d904b Binary files /dev/null and b/assets/All-Tickets-to-Mackinac-Island-Option-Featured-Image.png differ diff --git a/lib/menu-walker.php b/lib/menu-walker.php index 946f7b0..04a4d41 100644 --- a/lib/menu-walker.php +++ b/lib/menu-walker.php @@ -74,6 +74,19 @@ class Glm_Theme_Top_Bar_Walker extends Walker_Nav_Menu { background-position: center bottom; "; + } else if($object->classes[0] === 'all-ticket-options' ){ + $thumbnail = get_template_directory_uri() . '/assets/All-Tickets-to-Mackinac-Island-Option-Featured-Image.png'; + $item_style .= ""; + }else if( $depth !== 0 && ! has_post_thumbnail( (int)$object->object_id ) ){ $thumbnail = get_template_directory_uri() . '/assets/is43-1401554613-28521.jpg'; $item_style .= "