Created
January 11, 2010 04:13
-
-
Save juarezpaf/273995 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| jQuery(function($){ | |
| $(".ngg-galleryoverview .ngg-gallery-thumbnail img").each(function(i){ | |
| var link = $('<a href="#" title="Baixar imagem em alta resolução" class="highResolution">Alta Resolução</a>'); | |
| var img = $(this); | |
| var url = img.attr("src"); | |
| link.attr("href","http://juarezpaf.com/work/rpires/planbr/wp-content/themes/planbr/includes/download.php?file="+url); | |
| var parent = img.closest('.ngg-gallery-thumbnail'); | |
| parent.append(link); | |
| }); | |
| }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment