Portfolio tests
authorLaury GvR <laury@gaslightmedia.com>
Wed, 22 Oct 2014 20:41:34 +0000 (16:41 -0400)
committerLaury GvR <laury@gaslightmedia.com>
Wed, 22 Oct 2014 20:41:34 +0000 (16:41 -0400)
footer.php

index 11abe32..8a747cf 100644 (file)
     </div>
 </div>
 <script>
-    jQuery(".ngg-galleryoverview").addClass("row");
-    jQuery(".ngg-gallery-thumbnail-box").addClass("small-12 medium-4 large-3 columns");
     jQuery(document).ready( function() {
+        jQuery(".ngg-galleryoverview").addClass("row");
+        jQuery(".ngg-gallery-thumbnail-box").addClass("small-12 medium-4 large-3 columns");
         jQuery(".homepage_testimonials_text :not(div :first-child)").hide();
-        
         jQuery(".homepage_testimonials_rarrow").click(function() {
             if (jQuery("#testimonial1").is(":visible")) {
                 jQuery("#testimonial1").fadeOut(function() {
             }
         });
     });
-    jQuery('.ngg-fancybox').each(function() {
-        var jurl = jQuery(this).attr("title");
-        jQuery( this ).wrap( "<a href='http://gaslight.upnorth.net/our-work/'"+jurl+"></a>" );
+    jQuery(document).ready(function(){
+        jQuery(".ngg-fancybox").each(function (){
+            jQuery(this).removeClass("ngg-fancybox").addClass("various iframe");
+            jQuery(this).attr("href","http://gaslight.upnorth.net/our-work/"+jQuery(this).children("img").attr("title"));
+        });
     });
 </script>
 <?php wp_footer(); ?>
 <?php do_action('foundationPress_before_closing_body'); ?>
 </body>
 </html>
+
+