From: Laury GvR Date: Tue, 7 May 2019 20:16:01 +0000 (-0400) Subject: Add custom dropdown images for Chicago yacht and mackinac run X-Git-Tag: v1.0.51^2~1 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=a4769b6f9a6eba252ee431089acb6789a3a00fee;p=WP-Themes%2Fmackinawferry.git Add custom dropdown images for Chicago yacht and mackinac run --- diff --git a/assets/chicago-yacht-race.jpg b/assets/chicago-yacht-race.jpg new file mode 100644 index 0000000..f20d73b Binary files /dev/null and b/assets/chicago-yacht-race.jpg differ diff --git a/assets/run-mackinac.jpg b/assets/run-mackinac.jpg new file mode 100644 index 0000000..607469e Binary files /dev/null and b/assets/run-mackinac.jpg differ diff --git a/lib/menu-walker.php b/lib/menu-walker.php index 4dec90d..19d6096 100644 --- a/lib/menu-walker.php +++ b/lib/menu-walker.php @@ -100,7 +100,7 @@ class Glm_Theme_Top_Bar_Walker extends Walker_Nav_Menu { background-position: center bottom; "; - }else if( $depth !== 0 && ! has_post_thumbnail( (int)$object->object_id ) ){ + } else if( $depth !== 0 && ! has_post_thumbnail( (int)$object->object_id ) ){ $thumbnail = get_template_directory_uri() . '/assets/is43-1401554613-28521.jpg'; $item_style .= ""; + + } else if( $depth !== 0 && 1410 == $object->object_id ){ + $thumbnail = get_template_directory_uri() . '/assets/run-mackinac.jpg'; + $item_style .= ""; + + } else if( $depth !== 0 && 1433 == $object->object_id ){ + $thumbnail = get_template_directory_uri() . '/assets/chicago-yacht-race.jpg'; + $item_style .= ""; } //$output .= ( 0 == $depth ) ? '
  • ' : ''; $classes = empty( $object->classes ) ? array() : (array) $object->classes;