adding new default image for classic ferry dropdown image
authorAnthony Talarico <talarico@gaslightmedia.com>
Tue, 10 Jul 2018 19:13:39 +0000 (15:13 -0400)
committerAnthony Talarico <talarico@gaslightmedia.com>
Tue, 10 Jul 2018 19:13:39 +0000 (15:13 -0400)
dropdown image in the navmenu, changing the classic ferry default image

assets/classic-ferry.jpg [new file with mode: 0644]
header.php
lib/menu-walker.php
style.css

diff --git a/assets/classic-ferry.jpg b/assets/classic-ferry.jpg
new file mode 100644 (file)
index 0000000..ad25666
Binary files /dev/null and b/assets/classic-ferry.jpg differ
index da66ad1..f2f2c9e 100644 (file)
@@ -5,7 +5,7 @@
     <meta name="viewport" content="width=device-width, initial-scale=1.0" />
     <title><?php wp_title(); ?></title>
     <link rel="shortcut icon" href="<?php echo get_stylesheet_directory_uri() ; ?>/assets/favicon.ico">
-    <link rel="stylesheet" href="<?php echo get_stylesheet_directory_uri() ; ?>/css/app.css?v=1.0.31">
+    <link rel="stylesheet" href="<?php echo get_stylesheet_directory_uri() ; ?>/css/app.css?v=1.0.33">
      <link href="https://fonts.googleapis.com/css?family=Open+Sans:400,400i,700" rel="stylesheet">
     <?php wp_head(); ?>
        <script>
index 9e6b6e1..0dec132 100644 (file)
@@ -74,6 +74,19 @@ class Glm_Theme_Top_Bar_Walker extends Walker_Nav_Menu {
             background-position: center bottom;
             </style>";
 
+        } else if($object->classes[0] === 'classic-ferry' ){
+            $thumbnail = get_template_directory_uri() . '/assets/classic-ferry.jpg';
+            $item_style .= "<style>
+            #menu-main #menu-item-".$object->ID.":before {
+            display: inline-block;
+            width: 200px;
+            height: 100px;
+            content: ' ';
+            background-image: url('".$thumbnail."');
+            background-size: cover;
+            background-position: center bottom;
+            </style>";
+
         } else if($object->classes[0] === 'all-ticket-options' ){
             $thumbnail = get_template_directory_uri() . '/assets/All-Tickets-to-Mackinac-Island-Option-Featured-Image-400x200.png';
             $item_style .= "<style>
index eca3e38..9534298 100644 (file)
--- a/style.css
+++ b/style.css
@@ -3,5 +3,5 @@ Theme Name: StarLine
 Author: Gaslight Media
 Author URI: http://www.gaslightmedia.com
 Description: A theme for Star Line
-Version: 1.0.32
+Version: 1.0.33
 */