Removed separate glmSlideshow.js
authorLaury GvR <laury@gaslightmedia.com>
Thu, 14 Apr 2016 21:33:28 +0000 (17:33 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Thu, 14 Apr 2016 21:33:28 +0000 (17:33 -0400)
functions.php
js/glmSlideshow/glmSlideshow.js [deleted file]

index f47e725..fe03ca3 100644 (file)
@@ -76,13 +76,6 @@ function glm_site_scripts()
         true
     );
     if(is_front_page()) {
-        wp_enqueue_script(
-            'glm_foundation',
-            get_template_directory_uri() . '/js/glmSlideshow/glmSlideshow.js',
-            'jquery',
-            '1.0',
-            true
-        );
     }
 
 }
@@ -107,18 +100,6 @@ function glm_get_header() {
     echo '</div>';
 }
 
-// // The code below is useful when you want the image to resize to
-//    if (has_post_thumbnail()) {
-//            $image_data = wp_get_attachment_image_src(get_post_thumbnail_id(), "full");
-//            echo '<img src="'.$image_data[0].'" style="no-repeat;max-height:400px;">';
-//    } else {
-//            echo '<img src="'.get_template_directory_uri().'/assets/default-header.gif" style="max-height:400px;">';
-//    }
-//    echo '<div class="row">';
-//    echo '<div class="small-12 columns">';
-//    echo '</div>';
-//    echo '</div>';
-
 add_action('wp_enqueue_scripts', 'glm_site_scripts');
 
 
diff --git a/js/glmSlideshow/glmSlideshow.js b/js/glmSlideshow/glmSlideshow.js
deleted file mode 100644 (file)
index 23e3028..0000000
+++ /dev/null
@@ -1,42 +0,0 @@
-$(document).foundation();
-$(document).ready(function () {
-    'use strict';
-    $("#metaslider_14").nivoSlider({
-        pauseOnHover:true,
-        effect: 'slideInLeft',
-        directionNavHide:true,
-        pauseTime: 7000,
-        afterLoad: function (){
-//            $("#metaslider_11 .nivo-caption").fadeIn();
-           $("#metaslider_14 .nivo-caption").addClass("open");
-        },
-        beforeChange: function () {
-           $("#metaslider_14 .nivo-caption").removeClass("open");
-             $("#metaslider_14 .nivo-caption").addClass("close");
-        },
-       afterChange: function () {
-           $("#metaslider_14 .nivo-caption").removeClass("close");
-           $("#metaslider_14 .nivo-caption").addClass("open");
-       } 
-    });
-
-    // remove this code before final push
-    $("#metaslider_11").nivoSlider({
-        pauseOnHover:true,
-        directionNavHide:true,
-        effect: 'slideInLeft',
-        pauseTime: 7000,
-        afterLoad: function (){
-//          $("#metaslider_11 .nivo-caption").fadeIn();
-           $("#metaslider_11 .nivo-caption").addClass("open");
-        },
-        beforeChange: function () {
-           $("#metaslider_11 .nivo-caption").removeClass("open");
-             $("#metaslider_11 .nivo-caption").addClass("close");
-        },
-       afterChange: function () {
-           $("#metaslider_11 .nivo-caption").removeClass("close");
-           $("#metaslider_11 .nivo-caption").addClass("open");
-       } 
-    });
-});
\ No newline at end of file