From: Laury GvR Date: Wed, 7 Jan 2015 14:15:34 +0000 (-0500) Subject: Video page script in separate file. X-Git-Tag: V1.0.0~8 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/index.cgi?a=commitdiff_plain;h=74652927b306a6c143f01059f6e31b8eac9f0ba8;p=WP-Themes%2FSierraSands.git Video page script in separate file. --- diff --git a/functions.php b/functions.php index e3ad432..d3f7c1a 100755 --- a/functions.php +++ b/functions.php @@ -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 index 0000000..e5119d2 --- /dev/null +++ b/js/custom/glm-ngg-video-gallery.js @@ -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 index d553494..0000000 --- a/page-43.php +++ /dev/null @@ -1,42 +0,0 @@ - -
-
-
-
-
- -
-
-
- -
- -
- - - -

- -
-
- -
-
-
-
-
- - \ No newline at end of file