Footer brand links: Cache bust and remove unused potentially problematic code
authorLaury GvR <laury@gaslightmedia.com>
Fri, 7 Sep 2018 20:25:37 +0000 (16:25 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Fri, 7 Sep 2018 20:25:37 +0000 (16:25 -0400)
functions.php
js/custom/pageSetup.js
parts/header-meta.php
parts/manufacturers.php

index d6ef938..a30661b 100644 (file)
@@ -167,7 +167,7 @@ function glm_site_scripts()
         'glm_foundation',
         get_template_directory_uri() . '/js/app.js',
         'jquery',
-        '1.0.24.0',
+        '1.0.25.0',
         true
     );
     if(is_front_page()) {
index 9a20a60..06802e1 100644 (file)
@@ -31,10 +31,10 @@ $(document).ready(function () {
         metasliderThumbs.appendTo(".slider-wrapper");
     });
 
-    if( $(window).width() > 786){
-        //$('.manufacturer-brand').attr('data-options',"is_hover:true" );
-        $(document).foundation('dropdown', 'reflow');
-    }else{
+    // if( $(window).width() > 786){
+         //$('.manufacturer-brand').attr('data-options',"is_hover:true" );
+        // $(document).foundation('dropdown', 'reflow');
+    // }else{
         // $('.glm-rv-brand').each(function(){
         //     let url = $(this).children('a').attr('href');
         //     $(this).attr('data-url', url);
@@ -51,5 +51,5 @@ $(document).ready(function () {
         //         })
         //     }
         // })
-    }
+    // }
 });
index 31c69e9..5651811 100644 (file)
@@ -2,7 +2,7 @@
     <meta charset="utf-8" />
     <meta name="viewport" content="width=device-width, initial-scale=1.0" />
     <title><?php wp_title(); ?></title>
-    <link rel="stylesheet" href="<?php echo get_stylesheet_directory_uri() ; ?>/css/app.css?v=1.0.24">
+    <link rel="stylesheet" href="<?php echo get_stylesheet_directory_uri() ; ?>/css/app.css?v=1.0.25">
     <link rel="shortcut icon" href="<?php echo get_stylesheet_directory_uri() ; ?>/favicon.ico">
     <link href="https://fonts.googleapis.com/css?family=Roboto+Slab:400,700" rel="stylesheet"> 
     <link href='https://fonts.googleapis.com/css?family=Open+Sans:400,400italic,700' rel='stylesheet' type='text/css'>
index a9c3e36..8757505 100644 (file)
@@ -34,19 +34,6 @@ unset($manufacturers['RV Classes']);
 
                     <?php apply_filters('glm_block_image', $block->ID); ?>
                     <?php if ($block->url){ ?> </a> <?php } ?>
-                    <?php $class = false; ;?>
-                    <?php if(count($manufacturers[$manufacturer]) < 4 ) { $class = "one_col";} else { $class = "two_col";} ?>
-                        <?php if( isset($manufacturers[$manufacturer] ) && !empty($manufacturers[$manufacturer]) ){ ?>
-                        <ul id="<?php echo sanitize_title($manufacturer); ?>"class="glm-rv-brand-list f-dropdown <?php echo $class; ?>" data-dropdown-content">
-                            <?php foreach($manufacturers[$manufacturer] as $key=>$value){ ?>
-                                <li class="glm-rv-brand">
-                                    <a href="<?php echo $block->url; ?>&categorySearchMultiple[]=<?php echo $value['id']; ?>">
-                                        <?php echo $value['brand']; ?>
-                                    </a>
-                                </li>
-                            <?php } ?>
-                        </ul>
-                    <?php } ?>
                 </li>
 
             <?php } ?>