Video page script in separate file.
authorLaury GvR <laury@gaslightmedia.com>
Wed, 7 Jan 2015 14:15:34 +0000 (09:15 -0500)
committerLaury GvR <laury@gaslightmedia.com>
Wed, 7 Jan 2015 14:15:34 +0000 (09:15 -0500)
functions.php
js/custom/glm-ngg-video-gallery.js [new file with mode: 0644]
page-43.php [deleted file]

index e3ad432..d3f7c1a 100755 (executable)
@@ -139,6 +139,9 @@ function site_scripts()
         wp_enqueue_style( 'responsive_tables_style', get_template_directory_uri() . '/css/responsive-tables.css' );
        wp_enqueue_script( 'responsive_tables_code', get_template_directory_uri() . '/js/responsive-tables.js', 'jquery', '1.0.0', 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 );
+    }
 
 }
 /**
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-43.php b/page-43.php
deleted file mode 100644 (file)
index d553494..0000000
+++ /dev/null
@@ -1,42 +0,0 @@
-<?php get_header(); ?>
-<div class="row">
-                </div>
-                <div id="main">
-                <div class="row content">
-                <div class="small-12 columns">
-                    
-                    <div class="separator">
-                        <hr>
-                    </div>
-                    <div class="breadcrumbs">
-                        <?php if(function_exists('bcn_display'))
-                        {
-                            bcn_display();
-                        }?>
-                        <br> <br>
-                    </div>
-                    <div class="row">
-                            
-                        <div class="small-10 small-centered columns">
-                            <?php if(have_posts()) : while(have_posts()): the_post();?>
-                            <?php the_content();?>
-                            <?php endwhile; else:?>
-                            <p><?php _e('Sorry, no results were found.');?></p>
-                            <?php endif;?>
-                        </div>
-                    </div>
-                    
-                    <div class="separator">
-                        <hr>
-                    </div>
-                </div>
-                </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