Version Description
Download this release
Release Info
Developer | Viper007Bond |
Plugin | jQuery Lightbox For Native Galleries |
Version | 2.0.1 |
Comparing to | |
See all releases |
Code changes from version 3.0.0 to 2.0.1
- colorbox/colorbox.css +0 -62
- colorbox/images/border.png +0 -0
- colorbox/images/controls.png +0 -0
- colorbox/images/internet_explorer/borderBottomCenter.png +0 -0
- colorbox/images/internet_explorer/borderBottomLeft.png +0 -0
- colorbox/images/internet_explorer/borderBottomRight.png +0 -0
- colorbox/images/internet_explorer/borderMiddleLeft.png +0 -0
- colorbox/images/internet_explorer/borderMiddleRight.png +0 -0
- colorbox/images/internet_explorer/borderTopCenter.png +0 -0
- colorbox/images/internet_explorer/borderTopLeft.png +0 -0
- colorbox/images/internet_explorer/borderTopRight.png +0 -0
- colorbox/images/loading.gif +0 -0
- colorbox/images/loading_background.png +0 -0
- colorbox/images/overlay.png +0 -0
- colorbox/jquery.colorbox-min.js +0 -2
- jquery-lightbox-for-native-galleries.php +14 -9
- jquery-lightbox/css/jquery.lightbox-0.5.css +101 -0
- jquery-lightbox/images/lightbox-blank.gif +0 -0
- jquery-lightbox/images/lightbox-btn-close.gif +0 -0
- jquery-lightbox/images/lightbox-btn-next.gif +0 -0
- jquery-lightbox/images/lightbox-btn-prev.gif +0 -0
- jquery-lightbox/images/lightbox-ico-loading.gif +0 -0
- jquery-lightbox/js/jquery.lightbox-0.5.pack.js +14 -0
- readme.txt +0 -4
colorbox/colorbox.css
DELETED
@@ -1,62 +0,0 @@
|
|
1 |
-
/*
|
2 |
-
ColorBox Core Style
|
3 |
-
The following rules are the styles that are consistant between themes.
|
4 |
-
Avoid changing this area to maintain compatability with future versions of ColorBox.
|
5 |
-
*/
|
6 |
-
#colorbox, #cboxOverlay, #cboxWrapper{position:absolute; top:0; left:0; z-index:9999; overflow:hidden;}
|
7 |
-
#cboxOverlay{position:fixed; width:100%; height:100%;}
|
8 |
-
#cboxMiddleLeft, #cboxBottomLeft{clear:left;}
|
9 |
-
#cboxContent{position:relative; overflow:hidden;}
|
10 |
-
#cboxLoadedContent{overflow:auto;}
|
11 |
-
#cboxLoadedContent iframe{display:block; width:100%; height:100%; border:0;}
|
12 |
-
#cboxTitle{margin:0;}
|
13 |
-
#cboxLoadingOverlay, #cboxLoadingGraphic{position:absolute; top:0; left:0; width:100%;}
|
14 |
-
#cboxPrevious, #cboxNext, #cboxClose, #cboxSlideshow{cursor:pointer;}
|
15 |
-
|
16 |
-
/*
|
17 |
-
Example user style
|
18 |
-
The following rules are ordered and tabbed in a way that represents the
|
19 |
-
order/nesting of the generated HTML, so that the structure easier to understand.
|
20 |
-
*/
|
21 |
-
#cboxOverlay{background:url(images/overlay.png) 0 0 repeat;}
|
22 |
-
#colorbox{}
|
23 |
-
#cboxTopLeft{width:21px; height:21px; background:url(images/controls.png) -100px 0 no-repeat;}
|
24 |
-
#cboxTopRight{width:21px; height:21px; background:url(images/controls.png) -129px 0 no-repeat;}
|
25 |
-
#cboxBottomLeft{width:21px; height:21px; background:url(images/controls.png) -100px -29px no-repeat;}
|
26 |
-
#cboxBottomRight{width:21px; height:21px; background:url(images/controls.png) -129px -29px no-repeat;}
|
27 |
-
#cboxMiddleLeft{width:21px; background:url(images/controls.png) left top repeat-y;}
|
28 |
-
#cboxMiddleRight{width:21px; background:url(images/controls.png) right top repeat-y;}
|
29 |
-
#cboxTopCenter{height:21px; background:url(images/border.png) 0 0 repeat-x;}
|
30 |
-
#cboxBottomCenter{height:21px; background:url(images/border.png) 0 -29px repeat-x;}
|
31 |
-
#cboxContent{background:#fff;}
|
32 |
-
#cboxLoadedContent{margin-bottom:28px;}
|
33 |
-
#cboxTitle{position:absolute; bottom:3px; left:0; text-align:center; width:100%; color:#949494;}
|
34 |
-
#cboxCurrent{position:absolute; bottom:3px; left:58px; color:#949494;}
|
35 |
-
#cboxSlideshow{position:absolute; bottom:3px; right:30px; color:#0092ef;}
|
36 |
-
#cboxPrevious{position:absolute; bottom:0; left:0px; background:url(images/controls.png) -75px 0px no-repeat; width:25px; height:25px; text-indent:-9999px;}
|
37 |
-
#cboxPrevious.hover{background-position:-75px -25px;}
|
38 |
-
#cboxNext{position:absolute; bottom:0; left:27px; background:url(images/controls.png) -50px 0px no-repeat; width:25px; height:25px; text-indent:-9999px;}
|
39 |
-
#cboxNext.hover{background-position:-50px -25px;}
|
40 |
-
#cboxLoadingOverlay{background:url(images/loading_background.png) center center no-repeat;}
|
41 |
-
#cboxLoadingGraphic{background:url(images/loading.gif) center center no-repeat;}
|
42 |
-
#cboxClose{position:absolute; bottom:0; right:0; background:url(images/controls.png) -25px 0px no-repeat; width:25px; height:25px; text-indent:-9999px;}
|
43 |
-
#cboxClose.hover{background-position:-25px -25px;}
|
44 |
-
|
45 |
-
/*
|
46 |
-
The following fixes png-transparency for IE6.
|
47 |
-
It is also necessary for png-transparency in IE7 & IE8 to avoid 'black halos' with the fade transition
|
48 |
-
|
49 |
-
Since this method does not support CSS background-positioning, it is incompatible with CSS sprites.
|
50 |
-
Colorbox preloads navigation hover classes to account for this.
|
51 |
-
|
52 |
-
!! Important Note: AlphaImageLoader src paths are relative to the HTML document,
|
53 |
-
while regular CSS background images are relative to the CSS document.
|
54 |
-
*/
|
55 |
-
.cboxIE #cboxTopLeft{background:transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=images/internet_explorer/borderTopLeft.png, sizingMethod='scale');}
|
56 |
-
.cboxIE #cboxTopCenter{background:transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=images/internet_explorer/borderTopCenter.png, sizingMethod='scale');}
|
57 |
-
.cboxIE #cboxTopRight{background:transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=images/internet_explorer/borderTopRight.png, sizingMethod='scale');}
|
58 |
-
.cboxIE #cboxBottomLeft{background:transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=images/internet_explorer/borderBottomLeft.png, sizingMethod='scale');}
|
59 |
-
.cboxIE #cboxBottomCenter{background:transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=images/internet_explorer/borderBottomCenter.png, sizingMethod='scale');}
|
60 |
-
.cboxIE #cboxBottomRight{background:transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=images/internet_explorer/borderBottomRight.png, sizingMethod='scale');}
|
61 |
-
.cboxIE #cboxMiddleLeft{background:transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=images/internet_explorer/borderMiddleLeft.png, sizingMethod='scale');}
|
62 |
-
.cboxIE #cboxMiddleRight{background:transparent; filter: progid:DXImageTransform.Microsoft.AlphaImageLoader(src=images/internet_explorer/borderMiddleRight.png, sizingMethod='scale');}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
colorbox/images/border.png
DELETED
Binary file
|
colorbox/images/controls.png
DELETED
Binary file
|
colorbox/images/internet_explorer/borderBottomCenter.png
DELETED
Binary file
|
colorbox/images/internet_explorer/borderBottomLeft.png
DELETED
Binary file
|
colorbox/images/internet_explorer/borderBottomRight.png
DELETED
Binary file
|
colorbox/images/internet_explorer/borderMiddleLeft.png
DELETED
Binary file
|
colorbox/images/internet_explorer/borderMiddleRight.png
DELETED
Binary file
|
colorbox/images/internet_explorer/borderTopCenter.png
DELETED
Binary file
|
colorbox/images/internet_explorer/borderTopLeft.png
DELETED
Binary file
|
colorbox/images/internet_explorer/borderTopRight.png
DELETED
Binary file
|
colorbox/images/loading.gif
DELETED
Binary file
|
colorbox/images/loading_background.png
DELETED
Binary file
|
colorbox/images/overlay.png
DELETED
Binary file
|
colorbox/jquery.colorbox-min.js
DELETED
@@ -1,2 +0,0 @@
|
|
1 |
-
/* ColorBox v1.3.1 - a full featured, light-weight, customizable lightbox based on jQuery 1.3 */
|
2 |
-
(function(A){var p="colorbox",n="hover",w=true,R=false,X,l=!A.support.opacity,T=l&&!window.XMLHttpRequest,W="click.colorbox",x="cbox_open",L="cbox_load",s="cbox_complete",K="cbox_cleanup",m="cbox_closed",O="resize.cbox_resize",I="resize.cboxie6 scroll.cboxie6",F,U,V,d,y,i,b,E,c,P,C,f,q,h,k,M,j,H,r,Y,g,e,a,v,N,o,z,Q,u,G,B={transition:"elastic",speed:350,width:R,height:R,initialWidth:"400",initialHeight:"400",maxWidth:R,maxHeight:R,scalePhotos:w,scrollbars:w,inline:R,html:R,iframe:R,photo:R,href:R,title:R,rel:R,opacity:0.9,preloading:w,current:"image {current} of {total}",previous:"previous",next:"next",close:"close",open:R,overlayClose:w,slideshow:R,slideshowAuto:w,slideshowSpeed:2500,slideshowStart:"start slideshow",slideshowStop:"stop slideshow"};function J(Z){if(Z.keyCode===37){Z.preventDefault();H.click()}else{if(Z.keyCode===39){Z.preventDefault();j.click()}}}function D(Z,aa){aa=aa==="x"?document.documentElement.clientWidth:document.documentElement.clientHeight;return(typeof Z==="string")?(Z.match(/%/)?(aa/100)*parseInt(Z,10):parseInt(Z,10)):Z}function t(Z){return Q.photo||Z.match(/\.(gif|png|jpg|jpeg|bmp)(?:\?([^#]*))?(?:#(\.*))?$/i)}function S(){for(var Z in Q){if(typeof(Q[Z])==="function"){Q[Z]=Q[Z].call(o)}}}X=A.fn.colorbox=function(aa,Z){if(this.length){this.each(function(){var ab=A(this).data(p)?A.extend({},A(this).data(p),aa):A.extend({},B,aa);A(this).data(p,ab).addClass("cboxelement")})}else{A(this).data(p,A.extend({},B,aa))}A(this).unbind(W).bind(W,function(ac){o=this;Q=A(o).data(p);S();A().bind("keydown.cbox_close",function(ad){if(ad.keyCode===27){ad.preventDefault();X.close()}});if(Q.overlayClose){F.css({cursor:"pointer"}).one("click",X.close)}o.blur();G=Z||R;var ab=Q.rel||o.rel;if(ab&&ab!=="nofollow"){c=A(".cboxelement").filter(function(){var ad=A(this).data(p).rel||this.rel;return(ad===ab)});z=c.index(o);if(z<0){c=c.add(o);z=c.length-1}}else{c=A(o);z=0}if(!u){u=w;A.event.trigger(x);r.html(Q.close);F.css({opacity:Q.opacity}).show();X.position(D(Q.initialWidth,"x"),D(Q.initialHeight,"y"),0);if(T){P.bind(I,function(){F.css({width:P.width(),height:P.height(),top:P.scrollTop(),left:P.scrollLeft()})}).trigger(I)}}X.slideshow();X.load();ac.preventDefault()});if(aa&&aa.open){A(this).triggerHandler(W)}return this};X.init=function(){function Z(aa){return A('<div id="cbox'+aa+'"/>')}P=A(window);U=A('<div id="colorbox"/>');F=Z("Overlay").hide();V=Z("Wrapper");d=Z("Content").append(C=Z("LoadedContent").css({width:0,height:0}),f=Z("LoadingOverlay"),q=Z("LoadingGraphic"),h=Z("Title"),k=Z("Current"),M=Z("Slideshow"),j=Z("Next"),H=Z("Previous"),r=Z("Close"));V.append(A("<div/>").append(Z("TopLeft"),y=Z("TopCenter"),Z("TopRight")),A("<div/>").append(i=Z("MiddleLeft"),d,b=Z("MiddleRight")),A("<div/>").append(Z("BottomLeft"),E=Z("BottomCenter"),Z("BottomRight"))).children().children().css({"float":"left"});A("body").prepend(F,U.append(V));if(l){U.addClass("cboxIE");if(T){F.css("position","absolute")}}d.children().addClass(n).mouseover(function(){A(this).addClass(n)}).mouseout(function(){A(this).removeClass(n)}).hide();Y=y.height()+E.height()+d.outerHeight(w)-d.height();g=i.width()+b.width()+d.outerWidth(w)-d.width();e=C.outerHeight(w);a=C.outerWidth(w);U.css({"padding-bottom":Y,"padding-right":g}).hide();j.click(X.next);H.click(X.prev);r.click(X.close);d.children().removeClass(n)};X.position=function(ac,ab,aa,ad){var ae=document.documentElement.clientHeight,ag=ae/2-ab/2,af=document.documentElement.clientWidth/2-ac/2,Z;if(ab>ae){ag-=(ab-ae)}if(ag<0){ag=0}if(af<0){af=0}ag+=P.scrollTop();af+=P.scrollLeft();ac=ac-g;ab=ab-Y;Z=(U.width()===ac&&U.height()===ab)?0:aa;V[0].style.width=V[0].style.height="9999px";function ah(ai){y[0].style.width=E[0].style.width=d[0].style.width=ai.style.width;q[0].style.height=f[0].style.height=d[0].style.height=i[0].style.height=b[0].style.height=ai.style.height}U.dequeue().animate({height:ab,width:ac,top:ag,left:af},{duration:Z,complete:function(){ah(this);V[0].style.width=(ac+g)+"px";V[0].style.height=(ab+Y)+"px";if(ad){ad()}},step:function(){ah(this)}})};X.resize=function(ae){if(!u){return}var aa,al,af,ad,ab,ah,am,Z,aj,ac=Q.transition==="none"?0:Q.speed;P.unbind(O);if(!ae){aj=setTimeout(function(){al=C.children().outerHeight(w);C[0].style.height=al+"px";X.position(C.width()+a+g,al+e+Y,ac)},1);return}C.remove();C=A(ae);function ai(){aa=Q.width?v:v&&v<C.width()?v:C.width();return aa}function ag(){al=Q.height?N:N&&N<C.height()?N:C.height();return al}if(!Q.scrollbars){C.css({overflow:"hidden"})}C.hide().appendTo("body").attr({id:"cboxLoadedContent"}).css({width:ai()}).css({height:ag()}).prependTo(d);if(T){A("select:not(#colorbox select)").filter(function(){return A(this).css("visibility")!=="hidden"}).css({visibility:"hidden"}).one(K,function(){A(this).css({visibility:"inherit"})})}Z=A("#cboxPhoto")[0];if(Z&&Q.height){af=(al-parseInt(Z.style.height,10))/2;Z.style.marginTop=(af>0?af:0)+"px"}function ak(ao){var an=aa+a+g,ap=al+e+Y;A().unbind("keydown",J);X.position(an,ap,ao,function(){if(!u){return}if(l){if(Z){C.fadeIn(100)}U[0].style.removeAttribute("filter")}d.children().show();A("#cboxIframeTemp").after("<iframe id='cboxIframe' name='iframe_"+new Date().getTime()+"' frameborder=0 src='"+(Q.href||o.href)+"' />").remove();f.hide();q.hide();M.hide();if(c.length>1){k.html(Q.current.replace(/\{current\}/,z+1).replace(/\{total\}/,c.length));j.html(Q.next);H.html(Q.previous);A().bind("keydown",J);if(Q.slideshow){M.show()}}else{k.hide();j.hide();H.hide()}h.html(Q.title||o.title);A.event.trigger(s);if(G){G.call(o)}if(Q.transition==="fade"){U.fadeTo(ac,1,function(){if(l){U[0].style.removeAttribute("filter")}})}P.bind(O,function(){X.position(an,ap,0)})})}if((Q.transition==="fade"&&U.fadeTo(ac,0,function(){ak(0)}))||ak(ac)){}if(Q.preloading&&c.length>1){ad=z>0?c[z-1]:c[c.length-1];ah=z<c.length-1?c[z+1]:c[0];am=A(ah).data(p).href||ah.href;ab=A(ad).data(p).href||ad.href;if(t(am)){A("<img />").attr("src",am)}if(t(ab)){A("<img />").attr("src",ab)}}};X.load=function(){var Z,ad,aa,ac,ab=X.resize;o=c[z];Q=A(o).data(p);S();A.event.trigger(L);Z=Q.height?D(Q.height,"y")-e-Y:R;ad=Q.width?D(Q.width,"x")-a-g:R;aa=Q.href||o.href;f.show();q.show();r.show();if(Q.maxHeight){N=Q.maxHeight?D(Q.maxHeight,"y")-e-Y:R;Z=Z&&Z<N?Z:N}if(Q.maxWidth){v=Q.maxWidth?D(Q.maxWidth,"x")-a-g:R;ad=ad&&ad<v?ad:v}N=Z;v=ad;if(Q.inline){A('<div id="cboxInlineTemp" />').hide().insertBefore(A(aa)[0]).bind(L+" "+K,function(){C.children().insertBefore(this);A(this).remove()});ab(A(aa).wrapAll("<div/>").parent())}else{if(Q.iframe){ab(A("<div><div id='cboxIframeTemp' /></div>"))}else{if(Q.html){ab(A("<div/>").html(Q.html))}else{if(t(aa)){ac=new Image();ac.onload=function(){ac.onload=null;if((N||v)&&Q.scalePhotos){var ag=this.width,ae=this.height,ai=0,ah=this,af=function(){ae+=ae*ai;ag+=ag*ai;ah.height=ae;ah.width=ag};if(v&&ag>v){ai=(v-ag)/ag;af()}if(N&&ae>N){ai=(N-ae)/ae;af()}}ab(A("<div />").css({width:this.width,height:this.height}).append(A(this).css({width:this.width,height:this.height,display:"block",margin:"auto",border:0}).attr("id","cboxPhoto")));if(c.length>1){A(this).css({cursor:"pointer"}).click(X.next)}if(l){this.style.msInterpolationMode="bicubic"}};ac.src=aa}else{A("<div />").load(aa,function(ae,af){if(af==="success"){ab(A(this))}else{ab(A("<p>Request unsuccessful.</p>"))}})}}}}};X.next=function(){z=z<c.length-1?z+1:0;X.load()};X.prev=function(){z=z>0?z-1:c.length-1;X.load()};X.slideshow=function(){var aa,Z,ab="cboxSlideshow_";M.bind(K,function(){clearTimeout(Z);M.unbind(s+" "+L+" click")});function ac(){M.text(Q.slideshowStop).bind(s,function(){Z=setTimeout(X.next,Q.slideshowSpeed)}).bind(L,function(){clearTimeout(Z)}).one("click",function(){aa();A(this).removeClass(n)});U.removeClass(ab+"off").addClass(ab+"on")}aa=function(){clearTimeout(Z);M.text(Q.slideshowStart).unbind(s+" "+L).one("click",function(){ac();Z=setTimeout(X.next,Q.slideshowSpeed);A(this).removeClass(n)});U.removeClass(ab+"on").addClass(ab+"off")};if(Q.slideshow&&c.length>1){if(Q.slideshowAuto){ac()}else{aa()}}};X.close=function(){A.event.trigger(K);u=R;A().unbind("keydown",J).unbind("keydown.cbox_close");P.unbind(O+" "+I);F.css({cursor:"auto"}).fadeOut("fast");U.stop(w,R).fadeOut("fast",function(){C.remove();U.css({opacity:1});d.children().hide();A.event.trigger(m)})};X.element=function(){return o};X.settings=B;A(X.init)}(jQuery));
|
|
|
|
jquery-lightbox-for-native-galleries.php
CHANGED
@@ -4,8 +4,8 @@
|
|
4 |
|
5 |
Plugin Name: jQuery Lightbox For Native Galleries
|
6 |
Plugin URI: http://www.viper007bond.com/wordpress-plugins/jquery-lightbox-for-native-galleries/
|
7 |
-
Description: Makes the native WordPress galleries use a lightbox
|
8 |
-
Version:
|
9 |
Author: Viper007Bond
|
10 |
Author URI: http://www.viper007bond.com/
|
11 |
|
@@ -15,11 +15,10 @@ class jQueryLightboxForNativeGalleries {
|
|
15 |
|
16 |
// Plugin initialization
|
17 |
function jQueryLightboxForNativeGalleries() {
|
18 |
-
if ( is_admin() || !function_exists('plugins_url') )
|
19 |
-
return;
|
20 |
|
21 |
-
wp_enqueue_script( '
|
22 |
-
wp_enqueue_style(
|
23 |
|
24 |
add_action( 'wp_head', array(&$this, 'wp_head') );
|
25 |
add_filter( 'attachment_link', array(&$this, 'attachment_link'), 10, 2 );
|
@@ -28,12 +27,18 @@ class jQueryLightboxForNativeGalleries {
|
|
28 |
|
29 |
// Output the Javascript to create the Lightbox
|
30 |
function wp_head() { ?>
|
31 |
-
<!-- jQuery Lightbox For Native Galleries
|
32 |
<script type="text/javascript">
|
33 |
// <![CDATA[
|
34 |
jQuery(document).ready(function($){
|
35 |
$(".gallery").each(function(index, obj){
|
36 |
-
$(obj).find("a").
|
|
|
|
|
|
|
|
|
|
|
|
|
37 |
});
|
38 |
});
|
39 |
// ]]>
|
@@ -54,7 +59,7 @@ class jQueryLightboxForNativeGalleries {
|
|
54 |
}
|
55 |
|
56 |
// Start the plugin up
|
57 |
-
add_action( 'init', 'jQueryLightboxForNativeGalleries'
|
58 |
function jQueryLightboxForNativeGalleries() {
|
59 |
global $jQueryLightboxForNativeGalleries;
|
60 |
$jQueryLightboxForNativeGalleries = new jQueryLightboxForNativeGalleries();
|
4 |
|
5 |
Plugin Name: jQuery Lightbox For Native Galleries
|
6 |
Plugin URI: http://www.viper007bond.com/wordpress-plugins/jquery-lightbox-for-native-galleries/
|
7 |
+
Description: Makes the native WordPress galleries use a lightbox to display the fullsize images.
|
8 |
+
Version: 2.0.1
|
9 |
Author: Viper007Bond
|
10 |
Author URI: http://www.viper007bond.com/
|
11 |
|
15 |
|
16 |
// Plugin initialization
|
17 |
function jQueryLightboxForNativeGalleries() {
|
18 |
+
if ( is_admin() || !function_exists('plugins_url') ) return;
|
|
|
19 |
|
20 |
+
wp_enqueue_script( 'jquery-lightbox-leandro-vieira-pinho', plugins_url('/jquery-lightbox-for-native-galleries/jquery-lightbox/js/jquery.lightbox-0.5.pack.js'), array('jquery'), '0.5' );
|
21 |
+
wp_enqueue_style( 'jquery-lightbox-leandro-vieira-pinho', plugins_url('/jquery-lightbox-for-native-galleries/jquery-lightbox/css/jquery.lightbox-0.5.css'), array(), '0.5', 'screen' );
|
22 |
|
23 |
add_action( 'wp_head', array(&$this, 'wp_head') );
|
24 |
add_filter( 'attachment_link', array(&$this, 'attachment_link'), 10, 2 );
|
27 |
|
28 |
// Output the Javascript to create the Lightbox
|
29 |
function wp_head() { ?>
|
30 |
+
<!-- jQuery Lightbox For Native Galleries v2.0.1 | http://www.viper007bond.com/wordpress-plugins/jquery-lightbox-for-native-galleries/ -->
|
31 |
<script type="text/javascript">
|
32 |
// <![CDATA[
|
33 |
jQuery(document).ready(function($){
|
34 |
$(".gallery").each(function(index, obj){
|
35 |
+
$(obj).find("a").lightBox({
|
36 |
+
imageLoading: "<?php echo js_escape( plugins_url('/jquery-lightbox-for-native-galleries/jquery-lightbox/images/lightbox-ico-loading.gif') ); ?>",
|
37 |
+
imageBtnClose: "<?php echo js_escape( plugins_url('/jquery-lightbox-for-native-galleries/jquery-lightbox/images/lightbox-btn-close.gif') ); ?>",
|
38 |
+
imageBtnPrev: "<?php echo js_escape( plugins_url('/jquery-lightbox-for-native-galleries/jquery-lightbox/images/lightbox-btn-prev.gif') ); ?>",
|
39 |
+
imageBtnNext: "<?php echo js_escape( plugins_url('/jquery-lightbox-for-native-galleries/jquery-lightbox/images/lightbox-btn-next.gif') ); ?>",
|
40 |
+
imageBlank: "<?php echo js_escape( plugins_url('/jquery-lightbox-for-native-galleries/jquery-lightbox/images/lightbox-blank.gif') ); ?>"
|
41 |
+
});
|
42 |
});
|
43 |
});
|
44 |
// ]]>
|
59 |
}
|
60 |
|
61 |
// Start the plugin up
|
62 |
+
add_action( 'init', 'jQueryLightboxForNativeGalleries' );
|
63 |
function jQueryLightboxForNativeGalleries() {
|
64 |
global $jQueryLightboxForNativeGalleries;
|
65 |
$jQueryLightboxForNativeGalleries = new jQueryLightboxForNativeGalleries();
|
jquery-lightbox/css/jquery.lightbox-0.5.css
ADDED
@@ -0,0 +1,101 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* jQuery lightBox plugin
|
3 |
+
* This jQuery plugin was inspired and based on Lightbox 2 by Lokesh Dhakar (http://www.huddletogether.com/projects/lightbox2/)
|
4 |
+
* and adapted to me for use like a plugin from jQuery.
|
5 |
+
* @name jquery-lightbox-0.5.css
|
6 |
+
* @author Leandro Vieira Pinho - http://leandrovieira.com
|
7 |
+
* @version 0.5
|
8 |
+
* @date April 11, 2008
|
9 |
+
* @category jQuery plugin
|
10 |
+
* @copyright (c) 2008 Leandro Vieira Pinho (leandrovieira.com)
|
11 |
+
* @license CC Attribution-No Derivative Works 2.5 Brazil - http://creativecommons.org/licenses/by-nd/2.5/br/deed.en_US
|
12 |
+
* @example Visit http://leandrovieira.com/projects/jquery/lightbox/ for more informations about this jQuery plugin
|
13 |
+
*/
|
14 |
+
#jquery-overlay {
|
15 |
+
position: absolute;
|
16 |
+
top: 0;
|
17 |
+
left: 0;
|
18 |
+
z-index: 90;
|
19 |
+
width: 100%;
|
20 |
+
height: 500px;
|
21 |
+
}
|
22 |
+
#jquery-lightbox {
|
23 |
+
position: absolute;
|
24 |
+
top: 0;
|
25 |
+
left: 0;
|
26 |
+
width: 100%;
|
27 |
+
z-index: 100;
|
28 |
+
text-align: center;
|
29 |
+
line-height: 0;
|
30 |
+
}
|
31 |
+
#jquery-lightbox a img { border: none; }
|
32 |
+
#lightbox-container-image-box {
|
33 |
+
position: relative;
|
34 |
+
background-color: #fff;
|
35 |
+
width: 250px;
|
36 |
+
height: 250px;
|
37 |
+
margin: 0 auto;
|
38 |
+
}
|
39 |
+
#lightbox-container-image { padding: 10px; }
|
40 |
+
#lightbox-loading {
|
41 |
+
position: absolute;
|
42 |
+
top: 40%;
|
43 |
+
left: 0%;
|
44 |
+
height: 25%;
|
45 |
+
width: 100%;
|
46 |
+
text-align: center;
|
47 |
+
line-height: 0;
|
48 |
+
}
|
49 |
+
#lightbox-nav {
|
50 |
+
position: absolute;
|
51 |
+
top: 0;
|
52 |
+
left: 0;
|
53 |
+
height: 100%;
|
54 |
+
width: 100%;
|
55 |
+
z-index: 10;
|
56 |
+
}
|
57 |
+
#lightbox-container-image-box > #lightbox-nav { left: 0; }
|
58 |
+
#lightbox-nav a { outline: none;}
|
59 |
+
#lightbox-nav-btnPrev, #lightbox-nav-btnNext {
|
60 |
+
width: 49%;
|
61 |
+
height: 100%;
|
62 |
+
zoom: 1;
|
63 |
+
display: block;
|
64 |
+
}
|
65 |
+
#lightbox-nav-btnPrev {
|
66 |
+
left: 0;
|
67 |
+
float: left;
|
68 |
+
}
|
69 |
+
#lightbox-nav-btnNext {
|
70 |
+
right: 0;
|
71 |
+
float: right;
|
72 |
+
}
|
73 |
+
#lightbox-container-image-data-box {
|
74 |
+
font: 10px Verdana, Helvetica, sans-serif;
|
75 |
+
background-color: #fff;
|
76 |
+
margin: 0 auto;
|
77 |
+
line-height: 1.4em;
|
78 |
+
overflow: auto;
|
79 |
+
width: 100%;
|
80 |
+
padding: 0 10px 0;
|
81 |
+
}
|
82 |
+
#lightbox-container-image-data {
|
83 |
+
padding: 0 10px;
|
84 |
+
color: #666;
|
85 |
+
}
|
86 |
+
#lightbox-container-image-data #lightbox-image-details {
|
87 |
+
width: 70%;
|
88 |
+
float: left;
|
89 |
+
text-align: left;
|
90 |
+
}
|
91 |
+
#lightbox-image-details-caption { font-weight: bold; }
|
92 |
+
#lightbox-image-details-currentNumber {
|
93 |
+
display: block;
|
94 |
+
clear: left;
|
95 |
+
padding-bottom: 1.0em;
|
96 |
+
}
|
97 |
+
#lightbox-secNav-btnClose {
|
98 |
+
width: 66px;
|
99 |
+
float: right;
|
100 |
+
padding-bottom: 0.7em;
|
101 |
+
}
|
jquery-lightbox/images/lightbox-blank.gif
ADDED
Binary file
|
jquery-lightbox/images/lightbox-btn-close.gif
ADDED
Binary file
|
jquery-lightbox/images/lightbox-btn-next.gif
ADDED
Binary file
|
jquery-lightbox/images/lightbox-btn-prev.gif
ADDED
Binary file
|
jquery-lightbox/images/lightbox-ico-loading.gif
ADDED
Binary file
|
jquery-lightbox/js/jquery.lightbox-0.5.pack.js
ADDED
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/**
|
2 |
+
* jQuery lightBox plugin
|
3 |
+
* This jQuery plugin was inspired and based on Lightbox 2 by Lokesh Dhakar (http://www.huddletogether.com/projects/lightbox2/)
|
4 |
+
* and adapted to me for use like a plugin from jQuery.
|
5 |
+
* @name jquery-lightbox-0.5.js
|
6 |
+
* @author Leandro Vieira Pinho - http://leandrovieira.com
|
7 |
+
* @version 0.5
|
8 |
+
* @date April 11, 2008
|
9 |
+
* @category jQuery plugin
|
10 |
+
* @copyright (c) 2008 Leandro Vieira Pinho (leandrovieira.com)
|
11 |
+
* @license CC Attribution-No Derivative Works 2.5 Brazil - http://creativecommons.org/licenses/by-nd/2.5/br/deed.en_US
|
12 |
+
* @example Visit http://leandrovieira.com/projects/jquery/lightbox/ for more informations about this jQuery plugin
|
13 |
+
*/
|
14 |
+
eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('(6($){$.2N.3g=6(4){4=23.2H({2B:\'#34\',2g:0.8,1d:F,1M:\'18/5-33-Y.16\',1v:\'18/5-1u-2Q.16\',1E:\'18/5-1u-2L.16\',1W:\'18/5-1u-2I.16\',19:\'18/5-2F.16\',1f:10,2A:3d,2s:\'1j\',2o:\'32\',2j:\'c\',2f:\'p\',2d:\'n\',h:[],9:0},4);f I=N;6 20(){1X(N,I);u F}6 1X(1e,I){$(\'1U, 1S, 1R\').l({\'1Q\':\'2E\'});1O();4.h.B=0;4.9=0;7(I.B==1){4.h.1J(v 1m(1e.17(\'J\'),1e.17(\'2v\')))}j{36(f i=0;i<I.B;i++){4.h.1J(v 1m(I[i].17(\'J\'),I[i].17(\'2v\')))}}2n(4.h[4.9][0]!=1e.17(\'J\')){4.9++}D()}6 1O(){$(\'m\').31(\'<e g="q-13"></e><e g="q-5"><e g="5-s-b-w"><e g="5-s-b"><1w g="5-b"><e 2V="" g="5-k"><a J="#" g="5-k-V"></a><a J="#" g="5-k-X"></a></e><e g="5-Y"><a J="#" g="5-Y-29"><1w W="\'+4.1M+\'"></a></e></e></e><e g="5-s-b-T-w"><e g="5-s-b-T"><e g="5-b-A"><1i g="5-b-A-1t"></1i><1i g="5-b-A-1g"></1i></e><e g="5-1s"><a J="#" g="5-1s-22"><1w W="\'+4.1W+\'"></a></e></e></e></e>\');f z=1D();$(\'#q-13\').l({2K:4.2B,2J:4.2g,S:z[0],P:z[1]}).1V();f R=1p();$(\'#q-5\').l({1T:R[1]+(z[3]/10),1c:R[0]}).E();$(\'#q-13,#q-5\').C(6(){1a()});$(\'#5-Y-29,#5-1s-22\').C(6(){1a();u F});$(G).2G(6(){f z=1D();$(\'#q-13\').l({S:z[0],P:z[1]});f R=1p();$(\'#q-5\').l({1T:R[1]+(z[3]/10),1c:R[0]})})}6 D(){$(\'#5-Y\').E();7(4.1d){$(\'#5-b,#5-s-b-T-w,#5-b-A-1g\').1b()}j{$(\'#5-b,#5-k,#5-k-V,#5-k-X,#5-s-b-T-w,#5-b-A-1g\').1b()}f Q=v 1j();Q.1P=6(){$(\'#5-b\').2D(\'W\',4.h[4.9][0]);1N(Q.S,Q.P);Q.1P=6(){}};Q.W=4.h[4.9][0]};6 1N(1o,1r){f 1L=$(\'#5-s-b-w\').S();f 1K=$(\'#5-s-b-w\').P();f 1n=(1o+(4.1f*2));f 1y=(1r+(4.1f*2));f 1I=1L-1n;f 2z=1K-1y;$(\'#5-s-b-w\').3f({S:1n,P:1y},4.2A,6(){2y()});7((1I==0)&&(2z==0)){7($.3e.3c){1H(3b)}j{1H(3a)}}$(\'#5-s-b-T-w\').l({S:1o});$(\'#5-k-V,#5-k-X\').l({P:1r+(4.1f*2)})};6 2y(){$(\'#5-Y\').1b();$(\'#5-b\').1V(6(){2u();2t()});2r()};6 2u(){$(\'#5-s-b-T-w\').38(\'35\');$(\'#5-b-A-1t\').1b();7(4.h[4.9][1]){$(\'#5-b-A-1t\').2p(4.h[4.9][1]).E()}7(4.h.B>1){$(\'#5-b-A-1g\').2p(4.2s+\' \'+(4.9+1)+\' \'+4.2o+\' \'+4.h.B).E()}}6 2t(){$(\'#5-k\').E();$(\'#5-k-V,#5-k-X\').l({\'K\':\'1C M(\'+4.19+\') L-O\'});7(4.9!=0){7(4.1d){$(\'#5-k-V\').l({\'K\':\'M(\'+4.1v+\') 1c 15% L-O\'}).11().1k(\'C\',6(){4.9=4.9-1;D();u F})}j{$(\'#5-k-V\').11().2m(6(){$(N).l({\'K\':\'M(\'+4.1v+\') 1c 15% L-O\'})},6(){$(N).l({\'K\':\'1C M(\'+4.19+\') L-O\'})}).E().1k(\'C\',6(){4.9=4.9-1;D();u F})}}7(4.9!=(4.h.B-1)){7(4.1d){$(\'#5-k-X\').l({\'K\':\'M(\'+4.1E+\') 2l 15% L-O\'}).11().1k(\'C\',6(){4.9=4.9+1;D();u F})}j{$(\'#5-k-X\').11().2m(6(){$(N).l({\'K\':\'M(\'+4.1E+\') 2l 15% L-O\'})},6(){$(N).l({\'K\':\'1C M(\'+4.19+\') L-O\'})}).E().1k(\'C\',6(){4.9=4.9+1;D();u F})}}2k()}6 2k(){$(d).30(6(12){2i(12)})}6 1G(){$(d).11()}6 2i(12){7(12==2h){U=2Z.2e;1x=27}j{U=12.2e;1x=12.2Y}14=2X.2W(U).2U();7((14==4.2j)||(14==\'x\')||(U==1x)){1a()}7((14==4.2f)||(U==37)){7(4.9!=0){4.9=4.9-1;D();1G()}}7((14==4.2d)||(U==39)){7(4.9!=(4.h.B-1)){4.9=4.9+1;D();1G()}}}6 2r(){7((4.h.B-1)>4.9){2c=v 1j();2c.W=4.h[4.9+1][0]}7(4.9>0){2b=v 1j();2b.W=4.h[4.9-1][0]}}6 1a(){$(\'#q-5\').2a();$(\'#q-13\').2T(6(){$(\'#q-13\').2a()});$(\'1U, 1S, 1R\').l({\'1Q\':\'2S\'})}6 1D(){f o,r;7(G.1h&&G.28){o=G.26+G.2R;r=G.1h+G.28}j 7(d.m.25>d.m.24){o=d.m.2P;r=d.m.25}j{o=d.m.2O;r=d.m.24}f y,H;7(Z.1h){7(d.t.1l){y=d.t.1l}j{y=Z.26}H=Z.1h}j 7(d.t&&d.t.1A){y=d.t.1l;H=d.t.1A}j 7(d.m){y=d.m.1l;H=d.m.1A}7(r<H){1z=H}j{1z=r}7(o<y){1B=o}j{1B=y}21=v 1m(1B,1z,y,H);u 21};6 1p(){f o,r;7(Z.1Z){r=Z.1Z;o=Z.2M}j 7(d.t&&d.t.1F){r=d.t.1F;o=d.t.1Y}j 7(d.m){r=d.m.1F;o=d.m.1Y}2q=v 1m(o,r);u 2q};6 1H(2C){f 2x=v 2w();1q=2h;3h{f 1q=v 2w()}2n(1q-2x<2C)};u N.11(\'C\').C(20)}})(23);',62,204,'||||settings|lightbox|function|if||activeImage||image||document|div|var|id|imageArray||else|nav|css|body||xScroll||jquery|yScroll|container|documentElement|return|new|box||windowWidth|arrPageSizes|details|length|click|_set_image_to_view|show|false|window|windowHeight|jQueryMatchedObj|href|background|no|url|this|repeat|height|objImagePreloader|arrPageScroll|width|data|keycode|btnPrev|src|btnNext|loading|self||unbind|objEvent|overlay|key||gif|getAttribute|images|imageBlank|_finish|hide|left|fixedNavigation|objClicked|containerBorderSize|currentNumber|innerHeight|span|Image|bind|clientWidth|Array|intWidth|intImageWidth|___getPageScroll|curDate|intImageHeight|secNav|caption|btn|imageBtnPrev|img|escapeKey|intHeight|pageHeight|clientHeight|pageWidth|transparent|___getPageSize|imageBtnNext|scrollTop|_disable_keyboard_navigation|___pause|intDiffW|push|intCurrentHeight|intCurrentWidth|imageLoading|_resize_container_image_box|_set_interface|onload|visibility|select|object|top|embed|fadeIn|imageBtnClose|_start|scrollLeft|pageYOffset|_initialize|arrayPageSize|btnClose|jQuery|offsetHeight|scrollHeight|innerWidth||scrollMaxY|link|remove|objPrev|objNext|keyToNext|keyCode|keyToPrev|overlayOpacity|null|_keyboard_action|keyToClose|_enable_keyboard_navigation|right|hover|while|txtOf|html|arrayPageScroll|_preload_neighbor_images|txtImage|_set_navigation|_show_image_data|title|Date|date|_show_image|intDiffH|containerResizeSpeed|overlayBgColor|ms|attr|hidden|blank|resize|extend|close|opacity|backgroundColor|next|pageXOffset|fn|offsetWidth|scrollWidth|prev|scrollMaxX|visible|fadeOut|toLowerCase|style|fromCharCode|String|DOM_VK_ESCAPE|event|keydown|append|of|ico|000|fast|for||slideDown||100|250|msie|400|browser|animate|lightBox|do'.split('|'),0,{}))
|
readme.txt
CHANGED
@@ -30,10 +30,6 @@ Extract all files from the ZIP file, making sure to keep the file structure inta
|
|
30 |
|
31 |
== ChangeLog ==
|
32 |
|
33 |
-
**Version 3.0.0**
|
34 |
-
|
35 |
-
* Switch the awesome [ColorBox](http://colorpowered.com/colorbox/). It looks pretty and does large image resizing. Yay!
|
36 |
-
|
37 |
**Version 2.0.1**
|
38 |
|
39 |
* Remove an extra comma that was breaking stupid Internet Explorer. Props [Troy](http://troycawley.com/).
|
30 |
|
31 |
== ChangeLog ==
|
32 |
|
|
|
|
|
|
|
|
|
33 |
**Version 2.0.1**
|
34 |
|
35 |
* Remove an extra comma that was breaking stupid Internet Explorer. Props [Troy](http://troycawley.com/).
|