Added video gallery script, removed static video gallery page
authorLaury GvR <laury@gaslightmedia.com>
Wed, 7 Jan 2015 14:25:11 +0000 (09:25 -0500)
committerLaury GvR <laury@gaslightmedia.com>
Wed, 7 Jan 2015 14:25:11 +0000 (09:25 -0500)
functions.php
js/custom/glm-ngg-video-gallery.js [new file with mode: 0644]
page-84.php [deleted file]

index 95b1c34..d106c4f 100755 (executable)
@@ -96,6 +96,10 @@ function glm_site_scripts()
             true
         );
     }
+    
+    if(is_page('videos')) {
+        wp_enqueue_script('glm_ngg_video_gallery', get_template_directory_uri() . '/js/custom/glm-ngg-video-gallery.js','jquery','1.0.0', true );
+    }
 
 }
 add_action('wp_enqueue_scripts', 'glm_site_scripts');
diff --git a/js/custom/glm-ngg-video-gallery.js b/js/custom/glm-ngg-video-gallery.js
new file mode 100644 (file)
index 0000000..e5119d2
--- /dev/null
@@ -0,0 +1,8 @@
+
+    jQuery(document).ready(function(){
+        jQuery(".ngg-fancybox").each(function (){
+            jQuery(this).addClass("various iframe");
+            jQuery(this).attr("href",jQuery(this).children("img").attr("title"));
+        });
+    });
+    
\ No newline at end of file
diff --git a/page-84.php b/page-84.php
deleted file mode 100644 (file)
index acfee6e..0000000
+++ /dev/null
@@ -1,48 +0,0 @@
-<?php get_header(); ?>
-<div class="row">
-    <div class="small-12 columns side_space">
-        <img src="<?php bloginfo('template_url'); ?>/assets/banner_big.png">
-    </div>
-</div>
-<div id="main" class="row">
-    <div class="small-12 medium-9 main-content columns">
-        <div class="row">
-            <div class="small-11 small-push-1 left columns">
-                <?php
-                if(function_exists('bcn_display') && !is_front_page()) {
-                    echo "<div class=\"breadcrumbs\">";
-                    bcn_display();
-                    echo "</div>";
-                }
-                ?>
-            </div>
-        </div>
-        <div class="row">
-            <?php if(have_posts()) : while(have_posts()): the_post();?>
-                <?php the_content();?>
-            <?php endwhile; else:?>
-                <p><?php _e('Sorry, no posts yet');?></p>
-            <?php endif;?>
-        </div>
-        <div class="row">
-            <div id="last" class="row show-for-medium-up">
-                <div class="medium-2 medium-push-2">
-                    <img class="left" src="<?php bloginfo('template_url'); ?>/assets/sm-logo.png">
-                </div>
-                <div id="locate" class="medium-9 medium-offset-4">
-                    <p>Emmet County Department of Public Works<br>200 Division Street, Petoskey, MI 49770 &#8226; 231-348-1702</p>
-                </div>
-            </div>
-        </div>
-    </div>
-    <?php get_sidebar(); ?>
-</div>
-<script>
-    jQuery(document).ready(function(){
-        jQuery(".ngg-fancybox").each(function (){
-            jQuery(this).addClass("various iframe");
-            jQuery(this).attr("href",jQuery(this).children("img").attr("title"));
-        });
-    });
-</script>
-<?php get_footer(); ?>
\ No newline at end of file