Software: Apache. PHP/5.5.15 uname -a: Windows NT SVR-DMZ 6.1 build 7600 (Windows Server 2008 R2 Enterprise Edition) i586 SYSTEM Safe-mode: OFF (not secure) E:\nuevo\htdocs\bogotacumbredelclima\wp-content\plugins\wp-gallery-custom-links\ drwxrwxrwx |
Viewing file: wp-gallery-custom-links.js (1.35 KB) -rw-rw-rw- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) | jQuery(document).ready(function () { // Unbind on document ready so it will still at least try // to be functional while the page may still be loading wp_gallery_custom_links_setup(); // Do unbinding, etc. again in window.onload to help reduce // the number of conflicting lightboxes etc. without // making the user have to declare js dependencies function addLoadEvent(func) { var oldOnload = window.onload; if(typeof window.onload != 'function') { window.onload = func; } else { window.onload = function() { oldOnload(); func(); } } } addLoadEvent(wp_gallery_custom_links_setup); }); function wp_gallery_custom_links_setup() { if(jQuery.fn.off) { // jQuery 1.7+ jQuery('.no-lightbox, .no-lightbox img').off('click'); } else { // < jQuery 1.7 jQuery('.no-lightbox, .no-lightbox img').unbind('click'); } jQuery('a.no-lightbox').click(wp_gallery_custom_links_click); if(jQuery.fn.off) { // jQuery 1.7+ jQuery('a.set-target').off('click'); } else { // < jQuery 1.7 jQuery('a.set-target').unbind('click'); } jQuery('a.set-target').click(wp_gallery_custom_links_click); } function wp_gallery_custom_links_click() { if(!this.target || this.target == '' || this.target == '_self') window.location = this.href; else window.open(this.href,this.target); return false; } |
:: Command execute :: | |
--[ c99shell v. 1.0 pre-release build #13 powered by Captain Crunch Security Team | http://ccteam.ru | Generation time: 0.0156 ]-- |