MetaSlider - Version 2.1.6

Version Description

  • Fix: Use the original image file if the slideshow size is the same size as the image file
  • Fix: Conflict with Advanced Post Types Order plugin
  • Fix: Colorbox conflict when using resizable elements in lightbox
  • Improvement: Refresh slides after clicking 'save'
  • Improvement: Ensure taxonomy category exists before tagging slide to slideshow
  • Fix: Only submit form when submit button is clicked (not all buttons)
  • Fix: Coin slider caption width in FireFox
  • Improvement: Added hook to adjust carousel image margin
Download this release

Release Info

Developer matchalabs
Plugin Icon 128x128 MetaSlider
Version 2.1.6
Comparing to
See all releases

Code changes from version 2.0.2 to 2.1.6

assets/colorbox/jquery.colorbox-min.js CHANGED
@@ -1,6 +1,1061 @@
1
  /*!
2
- jQuery ColorBox v1.4.3 - 2013-02-18
3
- (c) 2013 Jack Moore - jacklmoore.com/colorbox
 
4
  license: http://www.opensource.org/licenses/mit-license.php
5
  */
6
- (function(e,t,i){function o(i,o,n){var r=t.createElement(i);return o&&(r.id=Y+o),n&&(r.style.cssText=n),e(r)}function n(e){var t=T.length,i=(A+e)%t;return 0>i?t+i:i}function r(e,t){return Math.round((/%/.test(e)?("x"===t?k.width():k.height())/100:1)*parseInt(e,10))}function h(e,t){return e.photo||e.photoRegex.test(t)}function l(e,t){return e.retinaUrl&&i.devicePixelRatio>1?t.replace(e.photoRegex,e.retinaSuffix):t}function s(e){"contains"in w[0]&&!w[0].contains(e.target)&&(e.stopPropagation(),w.focus())}function a(){var t,i=e.data(N,V);null==i?(K=e.extend({},J),console&&console.log&&console.log("Error: cboxElement missing settings object")):K=e.extend({},i);for(t in K)e.isFunction(K[t])&&"on"!==t.slice(0,2)&&(K[t]=K[t].call(N));K.rel=K.rel||N.rel||e(N).data("rel")||"nofollow",K.href=K.href||e(N).attr("href"),K.title=K.title||N.title,"string"==typeof K.href&&(K.href=e.trim(K.href))}function d(i,o){e(t).trigger(i),at.trigger(i),e.isFunction(o)&&o.call(N)}function c(){var e,t,i,o,n,r=Y+"Slideshow_",h="click."+Y;K.slideshow&&T[1]?(t=function(){clearTimeout(e)},i=function(){(K.loop||T[A+1])&&(e=setTimeout(G.next,K.slideshowSpeed))},o=function(){M.html(K.slideshowStop).unbind(h).one(h,n),at.bind(it,i).bind(tt,t).bind(ot,n),w.removeClass(r+"off").addClass(r+"on")},n=function(){t(),at.unbind(it,i).unbind(tt,t).unbind(ot,n),M.html(K.slideshowStart).unbind(h).one(h,function(){G.next(),o()}),w.removeClass(r+"on").addClass(r+"off")},K.slideshowAuto?o():n()):w.removeClass(r+"off "+r+"on")}function u(i){U||(N=i,a(),T=e(N),A=0,"nofollow"!==K.rel&&(T=e("."+Z).filter(function(){var t,i=e.data(this,V);return i&&(t=e(this).data("rel")||i.rel||this.rel),t===K.rel}),A=T.index(N),-1===A&&(T=T.add(N),A=T.length-1)),m.css({opacity:parseFloat(K.opacity),cursor:K.overlayClose?"pointer":"auto",visibility:"visible"}).show(),j||(j=q=!0,w.css({visibility:"hidden",display:"block"}),E=o(dt,"LoadedContent","width:0; height:0; overflow:hidden").appendTo(v),_=x.height()+C.height()+v.outerHeight(!0)-v.height(),z=y.width()+b.width()+v.outerWidth(!0)-v.width(),D=E.outerHeight(!0),B=E.outerWidth(!0),K.w=r(K.initialWidth,"x"),K.h=r(K.initialHeight,"y"),G.position(),lt&&k.bind("resize."+st+" scroll."+st,function(){m.css({width:k.width(),height:k.height(),top:k.scrollTop(),left:k.scrollLeft()})}).trigger("resize."+st),c(),d(et,K.onOpen),P.add(W).hide(),R.html(K.close).show(),w.focus(),t.addEventListener&&(t.addEventListener("focus",s,!0),at.one(nt,function(){t.removeEventListener("focus",s,!0)})),K.returnFocus&&at.one(nt,function(){e(N).focus()})),G.load(!0))}function f(){!w&&t.body&&(X=!1,k=e(i),w=o(dt).attr({id:V,"class":ht?Y+(lt?"IE6":"IE"):"",role:"dialog",tabindex:"-1"}).hide(),m=o(dt,"Overlay",lt?"position:absolute":"").hide(),L=o(dt,"LoadingOverlay").add(o(dt,"LoadingGraphic")),g=o(dt,"Wrapper"),v=o(dt,"Content").append(W=o(dt,"Title"),H=o(dt,"Current"),F=o("button","Previous"),S=o("button","Next"),M=o("button","Slideshow"),L,R=o("button","Close")),g.append(o(dt).append(o(dt,"TopLeft"),x=o(dt,"TopCenter"),o(dt,"TopRight")),o(dt,!1,"clear:left").append(y=o(dt,"MiddleLeft"),v,b=o(dt,"MiddleRight")),o(dt,!1,"clear:left").append(o(dt,"BottomLeft"),C=o(dt,"BottomCenter"),o(dt,"BottomRight"))).find("div div").css({"float":"left"}),I=o(dt,!1,"position:absolute; width:9999px; visibility:hidden; display:none"),P=S.add(F).add(H).add(M),e(t.body).append(m,w.append(g,I)))}function p(){function i(e){e.which>1||e.shiftKey||e.altKey||e.metaKey||(e.preventDefault(),u(this))}return w?(X||(X=!0,S.click(function(){G.next()}),F.click(function(){G.prev()}),R.click(function(){G.close()}),m.click(function(){K.overlayClose&&G.close()}),e(t).bind("keydown."+Y,function(e){var t=e.keyCode;j&&K.escKey&&27===t&&(e.preventDefault(),G.close()),j&&K.arrowKey&&T[1]&&!e.altKey&&(37===t?(e.preventDefault(),F.click()):39===t&&(e.preventDefault(),S.click()))}),e.isFunction(e.fn.on)?e(t).on("click."+Y,"."+Z,i):e("."+Z).live("click."+Y,i)),!0):!1}var m,w,g,v,x,y,b,C,T,k,E,I,L,W,H,M,S,F,R,P,K,_,z,D,B,N,A,O,j,q,U,$,G,Q,X,J={transition:"elastic",speed:300,width:!1,initialWidth:"600",innerWidth:!1,maxWidth:!1,height:!1,initialHeight:"450",innerHeight:!1,maxHeight:!1,scalePhotos:!0,scrolling:!0,inline:!1,html:!1,iframe:!1,fastIframe:!0,photo:!1,href:!1,title:!1,rel:!1,opacity:.9,preloading:!0,className:!1,retinaImage:!1,retinaUrl:!1,retinaSuffix:"@2x.$1",current:"image {current} of {total}",previous:"previous",next:"next",close:"close",xhrError:"This content failed to load.",imgError:"This image failed to load.",open:!1,returnFocus:!0,reposition:!0,loop:!0,slideshow:!1,slideshowAuto:!0,slideshowSpeed:2500,slideshowStart:"start slideshow",slideshowStop:"stop slideshow",photoRegex:/\.(gif|png|jp(e|g|eg)|bmp|ico)((#|\?).*)?$/i,onOpen:!1,onLoad:!1,onComplete:!1,onCleanup:!1,onClosed:!1,overlayClose:!0,escKey:!0,arrowKey:!0,top:!1,bottom:!1,left:!1,right:!1,fixed:!1,data:void 0},V="colorbox",Y="cbox",Z=Y+"Element",et=Y+"_open",tt=Y+"_load",it=Y+"_complete",ot=Y+"_cleanup",nt=Y+"_closed",rt=Y+"_purge",ht=!e.support.leadingWhitespace,lt=ht&&!i.XMLHttpRequest,st=Y+"_IE6",at=e({}),dt="div";e.colorbox||(e(f),G=e.fn[V]=e[V]=function(t,i){var o=this;if(t=t||{},f(),p()){if(e.isFunction(o))o=e("<a/>"),t.open=!0;else if(!o[0])return o;i&&(t.onComplete=i),o.each(function(){e.data(this,V,e.extend({},e.data(this,V)||J,t))}).addClass(Z),(e.isFunction(t.open)&&t.open.call(o)||t.open)&&u(o[0])}return o},G.position=function(e,t){function i(e){x[0].style.width=C[0].style.width=v[0].style.width=parseInt(e.style.width,10)-z+"px",v[0].style.height=y[0].style.height=b[0].style.height=parseInt(e.style.height,10)-_+"px"}var o,n,h,l=0,s=0,a=w.offset();k.unbind("resize."+Y),w.css({top:-9e4,left:-9e4}),n=k.scrollTop(),h=k.scrollLeft(),K.fixed&&!lt?(a.top-=n,a.left-=h,w.css({position:"fixed"})):(l=n,s=h,w.css({position:"absolute"})),s+=K.right!==!1?Math.max(k.width()-K.w-B-z-r(K.right,"x"),0):K.left!==!1?r(K.left,"x"):Math.round(Math.max(k.width()-K.w-B-z,0)/2),l+=K.bottom!==!1?Math.max(k.height()-K.h-D-_-r(K.bottom,"y"),0):K.top!==!1?r(K.top,"y"):Math.round(Math.max(k.height()-K.h-D-_,0)/2),w.css({top:a.top,left:a.left,visibility:"visible"}),e=w.width()===K.w+B&&w.height()===K.h+D?0:e||0,g[0].style.width=g[0].style.height="9999px",o={width:K.w+B+z,height:K.h+D+_,top:l,left:s},0===e&&w.css(o),w.dequeue().animate(o,{duration:e,complete:function(){i(this),q=!1,g[0].style.width=K.w+B+z+"px",g[0].style.height=K.h+D+_+"px",K.reposition&&setTimeout(function(){k.bind("resize."+Y,G.position)},1),t&&t()},step:function(){i(this)}})},G.resize=function(e){j&&(e=e||{},e.width&&(K.w=r(e.width,"x")-B-z),e.innerWidth&&(K.w=r(e.innerWidth,"x")),E.css({width:K.w}),e.height&&(K.h=r(e.height,"y")-D-_),e.innerHeight&&(K.h=r(e.innerHeight,"y")),e.innerHeight||e.height||(E.css({height:"auto"}),K.h=E.height()),E.css({height:K.h}),G.position("none"===K.transition?0:K.speed))},G.prep=function(t){function i(){return K.w=K.w||E.width(),K.w=K.mw&&K.mw<K.w?K.mw:K.w,K.w}function r(){return K.h=K.h||E.height(),K.h=K.mh&&K.mh<K.h?K.mh:K.h,K.h}if(j){var s,a="none"===K.transition?0:K.speed;E.empty().remove(),E=o(dt,"LoadedContent").append(t),E.hide().appendTo(I.show()).css({width:i(),overflow:K.scrolling?"auto":"hidden"}).css({height:r()}).prependTo(v),I.hide(),e(O).css({"float":"none"}),s=function(){function t(){ht&&w[0].style.removeAttribute("filter")}var i,r,s=T.length,c="frameBorder",u="allowTransparency";j&&(r=function(){clearTimeout($),L.hide(),d(it,K.onComplete)},ht&&O&&E.fadeIn(100),W.html(K.title).add(E).show(),s>1?("string"==typeof K.current&&H.html(K.current.replace("{current}",A+1).replace("{total}",s)).show(),S[K.loop||s-1>A?"show":"hide"]().html(K.next),F[K.loop||A?"show":"hide"]().html(K.previous),K.slideshow&&M.show(),K.preloading&&e.each([n(-1),n(1)],function(){var t,i,o=T[this],n=e.data(o,V);n&&n.href?(t=n.href,e.isFunction(t)&&(t=t.call(o))):t=e(o).attr("href"),t&&h(n,t)&&(t=l(n,t),i=new Image,i.src=t)})):P.hide(),K.iframe?(i=o("iframe")[0],c in i&&(i[c]=0),u in i&&(i[u]="true"),K.scrolling||(i.scrolling="no"),e(i).attr({src:K.href,name:(new Date).getTime(),"class":Y+"Iframe",allowFullScreen:!0,webkitAllowFullScreen:!0,mozallowfullscreen:!0}).one("load",r).appendTo(E),at.one(rt,function(){i.src="//about:blank"}),K.fastIframe&&e(i).trigger("load")):r(),"fade"===K.transition?w.fadeTo(a,1,t):t())},"fade"===K.transition?w.fadeTo(a,0,function(){G.position(0,s)}):G.position(a,s)}},G.load=function(t){var n,s,c,u=G.prep;q=!0,O=!1,N=T[A],t||a(),Q&&w.add(m).removeClass(Q),K.className&&w.add(m).addClass(K.className),Q=K.className,d(rt),d(tt,K.onLoad),K.h=K.height?r(K.height,"y")-D-_:K.innerHeight&&r(K.innerHeight,"y"),K.w=K.width?r(K.width,"x")-B-z:K.innerWidth&&r(K.innerWidth,"x"),K.mw=K.w,K.mh=K.h,K.maxWidth&&(K.mw=r(K.maxWidth,"x")-B-z,K.mw=K.w&&K.w<K.mw?K.w:K.mw),K.maxHeight&&(K.mh=r(K.maxHeight,"y")-D-_,K.mh=K.h&&K.h<K.mh?K.h:K.mh),n=K.href,$=setTimeout(function(){L.show()},100),K.inline?(c=o(dt).hide().insertBefore(e(n)[0]),at.one(rt,function(){c.replaceWith(E.children())}),u(e(n))):K.iframe?u(" "):K.html?u(K.html):h(K,n)?(n=l(K,n),e(O=new Image).addClass(Y+"Photo").bind("error",function(){K.title=!1,u(o(dt,"Error").html(K.imgError))}).one("load",function(){var e;K.retinaImage&&i.devicePixelRatio>1&&(O.height=O.height/i.devicePixelRatio,O.width=O.width/i.devicePixelRatio),K.scalePhotos&&(s=function(){O.height-=O.height*e,O.width-=O.width*e},K.mw&&O.width>K.mw&&(e=(O.width-K.mw)/O.width,s()),K.mh&&O.height>K.mh&&(e=(O.height-K.mh)/O.height,s())),K.h&&(O.style.marginTop=Math.max(K.mh-O.height,0)/2+"px"),T[1]&&(K.loop||T[A+1])&&(O.style.cursor="pointer",O.onclick=function(){G.next()}),ht&&(O.style.msInterpolationMode="bicubic"),setTimeout(function(){u(O)},1)}),setTimeout(function(){O.src=n},1)):n&&I.load(n,K.data,function(t,i){u("error"===i?o(dt,"Error").html(K.xhrError):e(this).contents())})},G.next=function(){!q&&T[1]&&(K.loop||T[A+1])&&(A=n(1),G.load())},G.prev=function(){!q&&T[1]&&(K.loop||A)&&(A=n(-1),G.load())},G.close=function(){j&&!U&&(U=!0,j=!1,d(ot,K.onCleanup),k.unbind("."+Y+" ."+st),m.fadeTo(200,0),w.stop().fadeTo(300,0,function(){w.add(m).css({opacity:1,cursor:"auto"}).hide(),d(rt),E.empty().remove(),setTimeout(function(){U=!1,d(nt,K.onClosed)},1)}))},G.remove=function(){e([]).add(w).add(m).remove(),w=null,e("."+Z).removeData(V).removeClass(Z),e(t).unbind("click."+Y)},G.element=function(){return e(N)},G.settings=J)})(jQuery,document,window);
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  /*!
2
+ Colorbox v1.4.25 - 2013-06-28
3
+ jQuery lightbox and modal window plugin
4
+ (c) 2013 Jack Moore - http://www.jacklmoore.com/colorbox
5
  license: http://www.opensource.org/licenses/mit-license.php
6
  */
7
+ (function ($, document, window) {
8
+ var
9
+ // Default settings object.
10
+ // See http://jacklmoore.com/colorbox for details.
11
+ defaults = {
12
+ transition: "elastic",
13
+ speed: 300,
14
+ fadeOut: 300,
15
+ width: false,
16
+ initialWidth: "600",
17
+ innerWidth: false,
18
+ maxWidth: false,
19
+ height: false,
20
+ initialHeight: "450",
21
+ innerHeight: false,
22
+ maxHeight: false,
23
+ scalePhotos: true,
24
+ scrolling: true,
25
+ inline: false,
26
+ html: false,
27
+ iframe: false,
28
+ fastIframe: true,
29
+ photo: false,
30
+ href: false,
31
+ title: false,
32
+ rel: false,
33
+ opacity: 0.9,
34
+ preloading: true,
35
+ className: false,
36
+
37
+ // alternate image paths for high-res displays
38
+ retinaImage: false,
39
+ retinaUrl: false,
40
+ retinaSuffix: '@2x.$1',
41
+
42
+ // internationalization
43
+ current: "image {current} of {total}",
44
+ previous: "previous",
45
+ next: "next",
46
+ close: "close",
47
+ xhrError: "This content failed to load.",
48
+ imgError: "This image failed to load.",
49
+
50
+ open: false,
51
+ returnFocus: true,
52
+ trapFocus: true,
53
+ reposition: true,
54
+ loop: true,
55
+ slideshow: false,
56
+ slideshowAuto: true,
57
+ slideshowSpeed: 2500,
58
+ slideshowStart: "start slideshow",
59
+ slideshowStop: "stop slideshow",
60
+ photoRegex: /\.(gif|png|jp(e|g|eg)|bmp|ico|webp)((#|\?).*)?$/i,
61
+
62
+ onOpen: false,
63
+ onLoad: false,
64
+ onComplete: false,
65
+ onCleanup: false,
66
+ onClosed: false,
67
+
68
+ overlayClose: true,
69
+ escKey: true,
70
+ arrowKey: true,
71
+ top: false,
72
+ bottom: false,
73
+ left: false,
74
+ right: false,
75
+ fixed: false,
76
+ data: undefined,
77
+ closeButton: true
78
+ },
79
+
80
+ // Abstracting the HTML and event identifiers for easy rebranding
81
+ colorbox = 'colorbox',
82
+ prefix = 'cbox',
83
+ boxElement = prefix + 'Element',
84
+
85
+ // Events
86
+ event_open = prefix + '_open',
87
+ event_load = prefix + '_load',
88
+ event_complete = prefix + '_complete',
89
+ event_cleanup = prefix + '_cleanup',
90
+ event_closed = prefix + '_closed',
91
+ event_purge = prefix + '_purge',
92
+
93
+ // Cached jQuery Object Variables
94
+ $overlay,
95
+ $box,
96
+ $wrap,
97
+ $content,
98
+ $topBorder,
99
+ $leftBorder,
100
+ $rightBorder,
101
+ $bottomBorder,
102
+ $related,
103
+ $window,
104
+ $loaded,
105
+ $loadingBay,
106
+ $loadingOverlay,
107
+ $title,
108
+ $current,
109
+ $slideshow,
110
+ $next,
111
+ $prev,
112
+ $close,
113
+ $groupControls,
114
+ $events = $('<a/>'),
115
+
116
+ // Variables for cached values or use across multiple functions
117
+ settings,
118
+ interfaceHeight,
119
+ interfaceWidth,
120
+ loadedHeight,
121
+ loadedWidth,
122
+ element,
123
+ index,
124
+ photo,
125
+ open,
126
+ active,
127
+ closing,
128
+ loadingTimer,
129
+ publicMethod,
130
+ div = "div",
131
+ className,
132
+ requests = 0,
133
+ previousCSS = {},
134
+ init;
135
+
136
+ // ****************
137
+ // HELPER FUNCTIONS
138
+ // ****************
139
+
140
+ // Convenience function for creating new jQuery objects
141
+ function $tag(tag, id, css) {
142
+ var element = document.createElement(tag);
143
+
144
+ if (id) {
145
+ element.id = prefix + id;
146
+ }
147
+
148
+ if (css) {
149
+ element.style.cssText = css;
150
+ }
151
+
152
+ return $(element);
153
+ }
154
+
155
+ // Get the window height using innerHeight when available to avoid an issue with iOS
156
+ // http://bugs.jquery.com/ticket/6724
157
+ function winheight() {
158
+ return window.innerHeight ? window.innerHeight : $(window).height();
159
+ }
160
+
161
+ // Determine the next and previous members in a group.
162
+ function getIndex(increment) {
163
+ var
164
+ max = $related.length,
165
+ newIndex = (index + increment) % max;
166
+
167
+ return (newIndex < 0) ? max + newIndex : newIndex;
168
+ }
169
+
170
+ // Convert '%' and 'px' values to integers
171
+ function setSize(size, dimension) {
172
+ return Math.round((/%/.test(size) ? ((dimension === 'x' ? $window.width() : winheight()) / 100) : 1) * parseInt(size, 10));
173
+ }
174
+
175
+ // Checks an href to see if it is a photo.
176
+ // There is a force photo option (photo: true) for hrefs that cannot be matched by the regex.
177
+ function isImage(settings, url) {
178
+ return settings.photo || settings.photoRegex.test(url);
179
+ }
180
+
181
+ function retinaUrl(settings, url) {
182
+ return settings.retinaUrl && window.devicePixelRatio > 1 ? url.replace(settings.photoRegex, settings.retinaSuffix) : url;
183
+ }
184
+
185
+ function trapFocus(e) {
186
+ if ('contains' in $box[0] && !$box[0].contains(e.target)) {
187
+ e.stopPropagation();
188
+ $box.focus();
189
+ }
190
+ }
191
+
192
+ // Assigns function results to their respective properties
193
+ function makeSettings() {
194
+ var i,
195
+ data = $.data(element, colorbox);
196
+
197
+ if (data == null) {
198
+ settings = $.extend({}, defaults);
199
+ if (console && console.log) {
200
+ console.log('Error: cboxElement missing settings object');
201
+ }
202
+ } else {
203
+ settings = $.extend({}, data);
204
+ }
205
+
206
+ for (i in settings) {
207
+ if ($.isFunction(settings[i]) && i.slice(0, 2) !== 'on') { // checks to make sure the function isn't one of the callbacks, they will be handled at the appropriate time.
208
+ settings[i] = settings[i].call(element);
209
+ }
210
+ }
211
+
212
+ settings.rel = settings.rel || element.rel || $(element).data('rel') || 'nofollow';
213
+ settings.href = settings.href || $(element).attr('href');
214
+ settings.title = settings.title || element.title;
215
+
216
+ if (typeof settings.href === "string") {
217
+ settings.href = $.trim(settings.href);
218
+ }
219
+ }
220
+
221
+ function trigger(event, callback) {
222
+ // for external use
223
+ $(document).trigger(event);
224
+
225
+ // for internal use
226
+ $events.trigger(event);
227
+
228
+ if ($.isFunction(callback)) {
229
+ callback.call(element);
230
+ }
231
+ }
232
+
233
+ // Slideshow functionality
234
+ function slideshow() {
235
+ var
236
+ timeOut,
237
+ className = prefix + "Slideshow_",
238
+ click = "click." + prefix,
239
+ clear,
240
+ set,
241
+ start,
242
+ stop;
243
+
244
+ if (settings.slideshow && $related[1]) {
245
+ clear = function () {
246
+ clearTimeout(timeOut);
247
+ };
248
+
249
+ set = function () {
250
+ if (settings.loop || $related[index + 1]) {
251
+ timeOut = setTimeout(publicMethod.next, settings.slideshowSpeed);
252
+ }
253
+ };
254
+
255
+ start = function () {
256
+ $slideshow
257
+ .html(settings.slideshowStop)
258
+ .unbind(click)
259
+ .one(click, stop);
260
+
261
+ $events
262
+ .bind(event_complete, set)
263
+ .bind(event_load, clear)
264
+ .bind(event_cleanup, stop);
265
+
266
+ $box.removeClass(className + "off").addClass(className + "on");
267
+ };
268
+
269
+ stop = function () {
270
+ clear();
271
+
272
+ $events
273
+ .unbind(event_complete, set)
274
+ .unbind(event_load, clear)
275
+ .unbind(event_cleanup, stop);
276
+
277
+ $slideshow
278
+ .html(settings.slideshowStart)
279
+ .unbind(click)
280
+ .one(click, function () {
281
+ publicMethod.next();
282
+ start();
283
+ });
284
+
285
+ $box.removeClass(className + "on").addClass(className + "off");
286
+ };
287
+
288
+ if (settings.slideshowAuto) {
289
+ start();
290
+ } else {
291
+ stop();
292
+ }
293
+ } else {
294
+ $box.removeClass(className + "off " + className + "on");
295
+ }
296
+ }
297
+
298
+ function launch(target) {
299
+ if (!closing) {
300
+
301
+ element = target;
302
+
303
+ makeSettings();
304
+
305
+ $related = $(element);
306
+
307
+ index = 0;
308
+
309
+ if (settings.rel !== 'nofollow') {
310
+ $related = $('.' + boxElement).filter(function () {
311
+ var data = $.data(this, colorbox),
312
+ relRelated;
313
+
314
+ if (data) {
315
+ relRelated = $(this).data('rel') || data.rel || this.rel;
316
+ }
317
+
318
+ return (relRelated === settings.rel);
319
+ });
320
+ index = $related.index(element);
321
+
322
+ // Check direct calls to Colorbox.
323
+ if (index === -1) {
324
+ $related = $related.add(element);
325
+ index = $related.length - 1;
326
+ }
327
+ }
328
+
329
+ $overlay.css({
330
+ opacity: parseFloat(settings.opacity),
331
+ cursor: settings.overlayClose ? "pointer" : "auto",
332
+ visibility: 'visible'
333
+ }).show();
334
+
335
+
336
+ if (className) {
337
+ $box.add($overlay).removeClass(className);
338
+ }
339
+ if (settings.className) {
340
+ $box.add($overlay).addClass(settings.className);
341
+ }
342
+ className = settings.className;
343
+
344
+ if (settings.closeButton) {
345
+ $close.html(settings.close).appendTo($content);
346
+ } else {
347
+ $close.appendTo('<div/>');
348
+ }
349
+
350
+ if (!open) {
351
+ open = active = true; // Prevents the page-change action from queuing up if the visitor holds down the left or right keys.
352
+
353
+ // Show colorbox so the sizes can be calculated in older versions of jQuery
354
+ $box.css({visibility:'hidden', display:'block'});
355
+
356
+ $loaded = $tag(div, 'LoadedContent', 'width:0; height:0; overflow:hidden').appendTo($content);
357
+
358
+ // Cache values needed for size calculations
359
+ interfaceHeight = $topBorder.height() + $bottomBorder.height() + $content.outerHeight(true) - $content.height();
360
+ interfaceWidth = $leftBorder.width() + $rightBorder.width() + $content.outerWidth(true) - $content.width();
361
+ loadedHeight = $loaded.outerHeight(true);
362
+ loadedWidth = $loaded.outerWidth(true);
363
+
364
+
365
+ // Opens inital empty Colorbox prior to content being loaded.
366
+ settings.w = setSize(settings.initialWidth, 'x');
367
+ settings.h = setSize(settings.initialHeight, 'y');
368
+ publicMethod.position();
369
+
370
+ slideshow();
371
+
372
+ trigger(event_open, settings.onOpen);
373
+
374
+ $groupControls.add($title).hide();
375
+
376
+ $box.focus();
377
+
378
+
379
+ if (settings.trapFocus) {
380
+ // Confine focus to the modal
381
+ // Uses event capturing that is not supported in IE8-
382
+ if (document.addEventListener) {
383
+
384
+ document.addEventListener('focus', trapFocus, true);
385
+
386
+ $events.one(event_closed, function () {
387
+ document.removeEventListener('focus', trapFocus, true);
388
+ });
389
+ }
390
+ }
391
+
392
+ // Return focus on closing
393
+ if (settings.returnFocus) {
394
+ $events.one(event_closed, function () {
395
+ $(element).focus();
396
+ });
397
+ }
398
+ }
399
+
400
+ load();
401
+ }
402
+ }
403
+
404
+ // Colorbox's markup needs to be added to the DOM prior to being called
405
+ // so that the browser will go ahead and load the CSS background images.
406
+ function appendHTML() {
407
+ if (!$box && document.body) {
408
+ init = false;
409
+ $window = $(window);
410
+ $box = $tag(div).attr({
411
+ id: colorbox,
412
+ 'class': $.support.opacity === false ? prefix + 'IE' : '', // class for optional IE8 & lower targeted CSS.
413
+ role: 'dialog',
414
+ tabindex: '-1'
415
+ }).hide();
416
+ $overlay = $tag(div, "Overlay").hide();
417
+ $loadingOverlay = $([$tag(div, "LoadingOverlay")[0],$tag(div, "LoadingGraphic")[0]]);
418
+ $wrap = $tag(div, "Wrapper");
419
+ $content = $tag(div, "Content").append(
420
+ $title = $tag(div, "Title"),
421
+ $current = $tag(div, "Current"),
422
+ $prev = $('<button type="button"/>').attr({id:prefix+'Previous'}),
423
+ $next = $('<button type="button"/>').attr({id:prefix+'Next'}),
424
+ $slideshow = $tag('button', "Slideshow"),
425
+ $loadingOverlay
426
+ );
427
+
428
+ $close = $('<button type="button"/>').attr({id:prefix+'Close'});
429
+
430
+ $wrap.append( // The 3x3 Grid that makes up Colorbox
431
+ $tag(div).append(
432
+ $tag(div, "TopLeft"),
433
+ $topBorder = $tag(div, "TopCenter"),
434
+ $tag(div, "TopRight")
435
+ ),
436
+ $tag(div, false, 'clear:left').append(
437
+ $leftBorder = $tag(div, "MiddleLeft"),
438
+ $content,
439
+ $rightBorder = $tag(div, "MiddleRight")
440
+ ),
441
+ $tag(div, false, 'clear:left').append(
442
+ $tag(div, "BottomLeft"),
443
+ $bottomBorder = $tag(div, "BottomCenter"),
444
+ $tag(div, "BottomRight")
445
+ )
446
+ ).find('div div').css({'float': 'left'});
447
+
448
+ $loadingBay = $tag(div, false, 'position:absolute; width:9999px; visibility:hidden; display:none');
449
+
450
+ $groupControls = $next.add($prev).add($current).add($slideshow);
451
+
452
+ $(document.body).append($overlay, $box.append($wrap, $loadingBay));
453
+ }
454
+ }
455
+
456
+ // Add Colorbox's event bindings
457
+ function addBindings() {
458
+ function clickHandler(e) {
459
+ // ignore non-left-mouse-clicks and clicks modified with ctrl / command, shift, or alt.
460
+ // See: http://jacklmoore.com/notes/click-events/
461
+ if (!(e.which > 1 || e.shiftKey || e.altKey || e.metaKey || e.ctrlKey)) {
462
+ e.preventDefault();
463
+ launch(this);
464
+ }
465
+ }
466
+
467
+ if ($box) {
468
+ if (!init) {
469
+ init = true;
470
+
471
+ // Anonymous functions here keep the public method from being cached, thereby allowing them to be redefined on the fly.
472
+ $next.click(function () {
473
+ publicMethod.next();
474
+ });
475
+ $prev.click(function () {
476
+ publicMethod.prev();
477
+ });
478
+ $close.click(function () {
479
+ publicMethod.close();
480
+ });
481
+ $overlay.click(function () {
482
+ if (settings.overlayClose) {
483
+ publicMethod.close();
484
+ }
485
+ });
486
+
487
+ // Key Bindings
488
+ $(document).bind('keydown.' + prefix, function (e) {
489
+ var key = e.keyCode;
490
+ if (open && settings.escKey && key === 27) {
491
+ e.preventDefault();
492
+ publicMethod.close();
493
+ }
494
+ if (open && settings.arrowKey && $related[1] && !e.altKey) {
495
+ if (key === 37) {
496
+ e.preventDefault();
497
+ $prev.click();
498
+ } else if (key === 39) {
499
+ e.preventDefault();
500
+ $next.click();
501
+ }
502
+ }
503
+ });
504
+
505
+ if ($.isFunction($.fn.on)) {
506
+ // For jQuery 1.7+
507
+ $(document).on('click.'+prefix, '.'+boxElement, clickHandler);
508
+ } else {
509
+ // For jQuery 1.3.x -> 1.6.x
510
+ // This code is never reached in jQuery 1.9, so do not contact me about 'live' being removed.
511
+ // This is not here for jQuery 1.9, it's here for legacy users.
512
+ $('.'+boxElement).live('click.'+prefix, clickHandler);
513
+ }
514
+ }
515
+ return true;
516
+ }
517
+ return false;
518
+ }
519
+
520
+ // Don't do anything if Colorbox already exists.
521
+ if ($.colorbox) {
522
+ return;
523
+ }
524
+
525
+ // Append the HTML when the DOM loads
526
+ $(appendHTML);
527
+
528
+
529
+ // ****************
530
+ // PUBLIC FUNCTIONS
531
+ // Usage format: $.colorbox.close();
532
+ // Usage from within an iframe: parent.jQuery.colorbox.close();
533
+ // ****************
534
+
535
+ publicMethod = $.fn[colorbox] = $[colorbox] = function (options, callback) {
536
+ var $this = this;
537
+
538
+ options = options || {};
539
+
540
+ appendHTML();
541
+
542
+ if (addBindings()) {
543
+ if ($.isFunction($this)) { // assume a call to $.colorbox
544
+ $this = $('<a/>');
545
+ options.open = true;
546
+ } else if (!$this[0]) { // colorbox being applied to empty collection
547
+ return $this;
548
+ }
549
+
550
+ if (callback) {
551
+ options.onComplete = callback;
552
+ }
553
+
554
+ $this.each(function () {
555
+ $.data(this, colorbox, $.extend({}, $.data(this, colorbox) || defaults, options));
556
+ }).addClass(boxElement);
557
+
558
+ if (($.isFunction(options.open) && options.open.call($this)) || options.open) {
559
+ launch($this[0]);
560
+ }
561
+ }
562
+
563
+ return $this;
564
+ };
565
+
566
+ publicMethod.position = function (speed, loadedCallback) {
567
+ var
568
+ css,
569
+ top = 0,
570
+ left = 0,
571
+ offset = $box.offset(),
572
+ scrollTop,
573
+ scrollLeft;
574
+
575
+ $window.unbind('cbResize.' + prefix);
576
+
577
+ // remove the modal so that it doesn't influence the document width/height
578
+ $box.css({top: -9e4, left: -9e4});
579
+
580
+ scrollTop = $window.scrollTop();
581
+ scrollLeft = $window.scrollLeft();
582
+
583
+ if (settings.fixed) {
584
+ offset.top -= scrollTop;
585
+ offset.left -= scrollLeft;
586
+ $box.css({position: 'fixed'});
587
+ } else {
588
+ top = scrollTop;
589
+ left = scrollLeft;
590
+ $box.css({position: 'absolute'});
591
+ }
592
+
593
+ // keeps the top and left positions within the browser's viewport.
594
+ if (settings.right !== false) {
595
+ left += Math.max($window.width() - settings.w - loadedWidth - interfaceWidth - setSize(settings.right, 'x'), 0);
596
+ } else if (settings.left !== false) {
597
+ left += setSize(settings.left, 'x');
598
+ } else {
599
+ left += Math.round(Math.max($window.width() - settings.w - loadedWidth - interfaceWidth, 0) / 2);
600
+ }
601
+
602
+ if (settings.bottom !== false) {
603
+ top += Math.max(winheight() - settings.h - loadedHeight - interfaceHeight - setSize(settings.bottom, 'y'), 0);
604
+ } else if (settings.top !== false) {
605
+ top += setSize(settings.top, 'y');
606
+ } else {
607
+ top += Math.round(Math.max(winheight() - settings.h - loadedHeight - interfaceHeight, 0) / 2);
608
+ }
609
+
610
+ $box.css({top: offset.top, left: offset.left, visibility:'visible'});
611
+
612
+ // this gives the wrapper plenty of breathing room so it's floated contents can move around smoothly,
613
+ // but it has to be shrank down around the size of div#colorbox when it's done. If not,
614
+ // it can invoke an obscure IE bug when using iframes.
615
+ $wrap[0].style.width = $wrap[0].style.height = "9999px";
616
+
617
+ function modalDimensions(that) {
618
+ $topBorder[0].style.width = $bottomBorder[0].style.width = $content[0].style.width = (parseInt(that.style.width,10) - interfaceWidth)+'px';
619
+ $content[0].style.height = $leftBorder[0].style.height = $rightBorder[0].style.height = (parseInt(that.style.height,10) - interfaceHeight)+'px';
620
+ }
621
+
622
+ css = {width: settings.w + loadedWidth + interfaceWidth, height: settings.h + loadedHeight + interfaceHeight, top: top, left: left};
623
+
624
+ // setting the speed to 0 if the content hasn't changed size or position
625
+ if (speed) {
626
+ var tempSpeed = 0;
627
+ $.each(css, function(i){
628
+ if (css[i] !== previousCSS[i]) {
629
+ tempSpeed = speed;
630
+ return;
631
+ }
632
+ });
633
+ speed = tempSpeed;
634
+ }
635
+
636
+ previousCSS = css;
637
+
638
+ $box.dequeue().animate(css, {
639
+ duration: speed || 0,
640
+ complete: function () {
641
+ modalDimensions(this);
642
+
643
+ active = false;
644
+
645
+ // shrink the wrapper down to exactly the size of colorbox to avoid a bug in IE's iframe implementation.
646
+ $wrap[0].style.width = (settings.w + loadedWidth + interfaceWidth) + "px";
647
+ $wrap[0].style.height = (settings.h + loadedHeight + interfaceHeight) + "px";
648
+
649
+ if (settings.reposition) {
650
+ setTimeout(function () { // small delay before binding oncbResize due to an IE8 bug.
651
+ $window.bind('cbResize.' + prefix, publicMethod.position);
652
+ }, 1);
653
+ }
654
+
655
+ if (loadedCallback) {
656
+ loadedCallback();
657
+ }
658
+ },
659
+ step: function () {
660
+ modalDimensions(this);
661
+ }
662
+ });
663
+ };
664
+
665
+ publicMethod.cbResize = function (options) {
666
+ var scrolltop;
667
+
668
+ if (open) {
669
+ options = options || {};
670
+
671
+ if (options.width) {
672
+ settings.w = setSize(options.width, 'x') - loadedWidth - interfaceWidth;
673
+ }
674
+
675
+ if (options.innerWidth) {
676
+ settings.w = setSize(options.innerWidth, 'x');
677
+ }
678
+
679
+ $loaded.css({width: settings.w});
680
+
681
+ if (options.height) {
682
+ settings.h = setSize(options.height, 'y') - loadedHeight - interfaceHeight;
683
+ }
684
+
685
+ if (options.innerHeight) {
686
+ settings.h = setSize(options.innerHeight, 'y');
687
+ }
688
+
689
+ if (!options.innerHeight && !options.height) {
690
+ scrolltop = $loaded.scrollTop();
691
+ $loaded.css({height: "auto"});
692
+ settings.h = $loaded.height();
693
+ }
694
+
695
+ $loaded.css({height: settings.h});
696
+
697
+ if(scrolltop) {
698
+ $loaded.scrollTop(scrolltop);
699
+ }
700
+
701
+ publicMethod.position(settings.transition === "none" ? 0 : settings.speed);
702
+ }
703
+ };
704
+
705
+ publicMethod.prep = function (object) {
706
+ if (!open) {
707
+ return;
708
+ }
709
+
710
+ var callback, speed = settings.transition === "none" ? 0 : settings.speed;
711
+
712
+ $loaded.empty().remove(); // Using empty first may prevent some IE7 issues.
713
+
714
+ $loaded = $tag(div, 'LoadedContent').append(object);
715
+
716
+ function getWidth() {
717
+ settings.w = settings.w || $loaded.width();
718
+ settings.w = settings.mw && settings.mw < settings.w ? settings.mw : settings.w;
719
+ return settings.w;
720
+ }
721
+ function getHeight() {
722
+ settings.h = settings.h || $loaded.height();
723
+ settings.h = settings.mh && settings.mh < settings.h ? settings.mh : settings.h;
724
+ return settings.h;
725
+ }
726
+
727
+ $loaded.hide()
728
+ .appendTo($loadingBay.show())// content has to be appended to the DOM for accurate size calculations.
729
+ .css({width: getWidth(), overflow: settings.scrolling ? 'auto' : 'hidden'})
730
+ .css({height: getHeight()})// sets the height independently from the width in case the new width influences the value of height.
731
+ .prependTo($content);
732
+
733
+ $loadingBay.hide();
734
+
735
+ // floating the IMG removes the bottom line-height and fixed a problem where IE miscalculates the width of the parent element as 100% of the document width.
736
+
737
+ $(photo).css({'float': 'none'});
738
+
739
+ callback = function () {
740
+ var total = $related.length,
741
+ iframe,
742
+ frameBorder = 'frameBorder',
743
+ allowTransparency = 'allowTransparency',
744
+ complete;
745
+
746
+ if (!open) {
747
+ return;
748
+ }
749
+
750
+ function removeFilter() { // Needed for IE7 & IE8 in versions of jQuery prior to 1.7.2
751
+ if ($.support.opacity === false) {
752
+ $box[0].style.removeAttribute('filter');
753
+ }
754
+ }
755
+
756
+ complete = function () {
757
+ clearTimeout(loadingTimer);
758
+ $loadingOverlay.hide();
759
+ trigger(event_complete, settings.onComplete);
760
+ };
761
+
762
+
763
+ $title.html(settings.title).add($loaded).show();
764
+
765
+ if (total > 1) { // handle grouping
766
+ if (typeof settings.current === "string") {
767
+ $current.html(settings.current.replace('{current}', index + 1).replace('{total}', total)).show();
768
+ }
769
+
770
+ $next[(settings.loop || index < total - 1) ? "show" : "hide"]().html(settings.next);
771
+ $prev[(settings.loop || index) ? "show" : "hide"]().html(settings.previous);
772
+
773
+ if (settings.slideshow) {
774
+ $slideshow.show();
775
+ }
776
+
777
+ // Preloads images within a rel group
778
+ if (settings.preloading) {
779
+ $.each([getIndex(-1), getIndex(1)], function(){
780
+ var src,
781
+ img,
782
+ i = $related[this],
783
+ data = $.data(i, colorbox);
784
+
785
+ if (data && data.href) {
786
+ src = data.href;
787
+ if ($.isFunction(src)) {
788
+ src = src.call(i);
789
+ }
790
+ } else {
791
+ src = $(i).attr('href');
792
+ }
793
+
794
+ if (src && isImage(data, src)) {
795
+ src = retinaUrl(data, src);
796
+ img = document.createElement('img');
797
+ img.src = src;
798
+ }
799
+ });
800
+ }
801
+ } else {
802
+ $groupControls.hide();
803
+ }
804
+
805
+ if (settings.iframe) {
806
+ iframe = $tag('iframe')[0];
807
+
808
+ if (frameBorder in iframe) {
809
+ iframe[frameBorder] = 0;
810
+ }
811
+
812
+ if (allowTransparency in iframe) {
813
+ iframe[allowTransparency] = "true";
814
+ }
815
+
816
+ if (!settings.scrolling) {
817
+ iframe.scrolling = "no";
818
+ }
819
+
820
+ $(iframe)
821
+ .attr({
822
+ src: settings.href,
823
+ name: (new Date()).getTime(), // give the iframe a unique name to prevent caching
824
+ 'class': prefix + 'Iframe',
825
+ allowFullScreen : true, // allow HTML5 video to go fullscreen
826
+ webkitAllowFullScreen : true,
827
+ mozallowfullscreen : true
828
+ })
829
+ .one('load', complete)
830
+ .appendTo($loaded);
831
+
832
+ $events.one(event_purge, function () {
833
+ iframe.src = "//about:blank";
834
+ });
835
+
836
+ if (settings.fastIframe) {
837
+ $(iframe).trigger('load');
838
+ }
839
+ } else {
840
+ complete();
841
+ }
842
+
843
+ if (settings.transition === 'fade') {
844
+ $box.fadeTo(speed, 1, removeFilter);
845
+ } else {
846
+ removeFilter();
847
+ }
848
+ };
849
+
850
+ if (settings.transition === 'fade') {
851
+ $box.fadeTo(speed, 0, function () {
852
+ publicMethod.position(0, callback);
853
+ });
854
+ } else {
855
+ publicMethod.position(speed, callback);
856
+ }
857
+ };
858
+
859
+ function load () {
860
+ var href, setResize, prep = publicMethod.prep, $inline, request = ++requests;
861
+
862
+ active = true;
863
+
864
+ photo = false;
865
+
866
+ element = $related[index];
867
+
868
+ makeSettings();
869
+
870
+ trigger(event_purge);
871
+
872
+ trigger(event_load, settings.onLoad);
873
+
874
+ settings.h = settings.height ?
875
+ setSize(settings.height, 'y') - loadedHeight - interfaceHeight :
876
+ settings.innerHeight && setSize(settings.innerHeight, 'y');
877
+
878
+ settings.w = settings.width ?
879
+ setSize(settings.width, 'x') - loadedWidth - interfaceWidth :
880
+ settings.innerWidth && setSize(settings.innerWidth, 'x');
881
+
882
+ // Sets the minimum dimensions for use in image scaling
883
+ settings.mw = settings.w;
884
+ settings.mh = settings.h;
885
+
886
+ // Re-evaluate the minimum width and height based on maxWidth and maxHeight values.
887
+ // If the width or height exceed the maxWidth or maxHeight, use the maximum values instead.
888
+ if (settings.maxWidth) {
889
+ settings.mw = setSize(settings.maxWidth, 'x') - loadedWidth - interfaceWidth;
890
+ settings.mw = settings.w && settings.w < settings.mw ? settings.w : settings.mw;
891
+ }
892
+ if (settings.maxHeight) {
893
+ settings.mh = setSize(settings.maxHeight, 'y') - loadedHeight - interfaceHeight;
894
+ settings.mh = settings.h && settings.h < settings.mh ? settings.h : settings.mh;
895
+ }
896
+
897
+ href = settings.href;
898
+
899
+ loadingTimer = setTimeout(function () {
900
+ $loadingOverlay.show();
901
+ }, 100);
902
+
903
+ if (settings.inline) {
904
+ // Inserts an empty placeholder where inline content is being pulled from.
905
+ // An event is bound to put inline content back when Colorbox closes or loads new content.
906
+ $inline = $tag(div).hide().insertBefore($(href)[0]);
907
+
908
+ $events.one(event_purge, function () {
909
+ $inline.replaceWith($loaded.children());
910
+ });
911
+
912
+ prep($(href));
913
+ } else if (settings.iframe) {
914
+ // IFrame element won't be added to the DOM until it is ready to be displayed,
915
+ // to avoid problems with DOM-ready JS that might be trying to run in that iframe.
916
+ prep(" ");
917
+ } else if (settings.html) {
918
+ prep(settings.html);
919
+ } else if (isImage(settings, href)) {
920
+
921
+ href = retinaUrl(settings, href);
922
+
923
+ photo = document.createElement('img');
924
+
925
+ $(photo)
926
+ .addClass(prefix + 'Photo')
927
+ .bind('error',function () {
928
+ settings.title = false;
929
+ prep($tag(div, 'Error').html(settings.imgError));
930
+ })
931
+ .one('load', function () {
932
+ var percent;
933
+
934
+ if (request !== requests) {
935
+ return;
936
+ }
937
+
938
+ photo.alt = $(element).attr('alt') || $(element).attr('data-alt') || '';
939
+
940
+ if (settings.retinaImage && window.devicePixelRatio > 1) {
941
+ photo.height = photo.height / window.devicePixelRatio;
942
+ photo.width = photo.width / window.devicePixelRatio;
943
+ }
944
+
945
+ if (settings.scalePhotos) {
946
+ setResize = function () {
947
+ photo.height -= photo.height * percent;
948
+ photo.width -= photo.width * percent;
949
+ };
950
+ if (settings.mw && photo.width > settings.mw) {
951
+ percent = (photo.width - settings.mw) / photo.width;
952
+ setResize();
953
+ }
954
+ if (settings.mh && photo.height > settings.mh) {
955
+ percent = (photo.height - settings.mh) / photo.height;
956
+ setResize();
957
+ }
958
+ }
959
+
960
+ if (settings.h) {
961
+ photo.style.marginTop = Math.max(settings.mh - photo.height, 0) / 2 + 'px';
962
+ }
963
+
964
+ if ($related[1] && (settings.loop || $related[index + 1])) {
965
+ photo.style.cursor = 'pointer';
966
+ photo.onclick = function () {
967
+ publicMethod.next();
968
+ };
969
+ }
970
+
971
+ photo.style.width = photo.width + 'px';
972
+ photo.style.height = photo.height + 'px';
973
+
974
+ setTimeout(function () { // A pause because Chrome will sometimes report a 0 by 0 size otherwise.
975
+ prep(photo);
976
+ }, 1);
977
+ });
978
+
979
+ setTimeout(function () { // A pause because Opera 10.6+ will sometimes not run the onload function otherwise.
980
+ photo.src = href;
981
+ }, 1);
982
+ } else if (href) {
983
+ $loadingBay.load(href, settings.data, function (data, status) {
984
+ if (request === requests) {
985
+ prep(status === 'error' ? $tag(div, 'Error').html(settings.xhrError) : $(this).contents());
986
+ }
987
+ });
988
+ }
989
+ }
990
+
991
+ // Navigates to the next page/image in a set.
992
+ publicMethod.next = function () {
993
+ if (!active && $related[1] && (settings.loop || $related[index + 1])) {
994
+ index = getIndex(1);
995
+ launch($related[index]);
996
+ }
997
+ };
998
+
999
+ publicMethod.prev = function () {
1000
+ if (!active && $related[1] && (settings.loop || index)) {
1001
+ index = getIndex(-1);
1002
+ launch($related[index]);
1003
+ }
1004
+ };
1005
+
1006
+ // Note: to use this within an iframe use the following format: parent.jQuery.colorbox.close();
1007
+ publicMethod.close = function () {
1008
+ if (open && !closing) {
1009
+
1010
+ closing = true;
1011
+
1012
+ open = false;
1013
+
1014
+ trigger(event_cleanup, settings.onCleanup);
1015
+
1016
+ $window.unbind('.' + prefix);
1017
+
1018
+ $overlay.fadeTo(settings.fadeOut || 0, 0);
1019
+
1020
+ $box.stop().fadeTo(settings.fadeOut || 0, 0, function () {
1021
+
1022
+ $box.add($overlay).css({'opacity': 1, cursor: 'auto'}).hide();
1023
+
1024
+ trigger(event_purge);
1025
+
1026
+ $loaded.empty().remove(); // Using empty first may prevent some IE7 issues.
1027
+
1028
+ setTimeout(function () {
1029
+ closing = false;
1030
+ trigger(event_closed, settings.onClosed);
1031
+ }, 1);
1032
+ });
1033
+ }
1034
+ };
1035
+
1036
+ // Removes changes Colorbox made to the document, but does not remove the plugin.
1037
+ publicMethod.remove = function () {
1038
+ if (!$box) { return; }
1039
+
1040
+ $box.stop();
1041
+ $.colorbox.close();
1042
+ $box.stop().remove();
1043
+ $overlay.remove();
1044
+ closing = false;
1045
+ $box = null;
1046
+ $('.' + boxElement)
1047
+ .removeData(colorbox)
1048
+ .removeClass(boxElement);
1049
+
1050
+ $(document).unbind('click.'+prefix);
1051
+ };
1052
+
1053
+ // A method for fetching the current element Colorbox is referencing.
1054
+ // returns a jQuery object.
1055
+ publicMethod.element = function () {
1056
+ return $(element);
1057
+ };
1058
+
1059
+ publicMethod.settings = defaults;
1060
+
1061
+ }(jQuery, document, window));
assets/metaslider/admin.css CHANGED
@@ -1,42 +1,3 @@
1
- .probutton,
2
- .probutton:hover {
3
- width: 36%;
4
- margin: 20px 32%;
5
- float: left;
6
- font-size: 1.4em;
7
- padding: 15px 0;
8
- background-color: #759ae9;
9
- background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #759ae9), color-stop(50%, #376fe0), color-stop(50%, #1a5ad9), color-stop(100%, #2463de));
10
- background-image: -webkit-linear-gradient(top, #759ae9 0%, #376fe0 50%, #1a5ad9 50%, #2463de 100%);
11
- background-image: -moz-linear-gradient(top, #759ae9 0%, #376fe0 50%, #1a5ad9 50%, #2463de 100%);
12
- background-image: -ms-linear-gradient(top, #759ae9 0%, #376fe0 50%, #1a5ad9 50%, #2463de 100%);
13
- background-image: -o-linear-gradient(top, #759ae9 0%, #376fe0 50%, #1a5ad9 50%, #2463de 100%);
14
- background-image: linear-gradient(top, #759ae9 0%, #376fe0 50%, #1a5ad9 50%, #2463de 100%);
15
- border-top: 1px solid #1f58cc;
16
- border-right: 1px solid #1b4db3;
17
- border-bottom: 1px solid #174299;
18
- border-left: 1px solid #1b4db3;
19
- border-radius: 4px;
20
- -webkit-box-shadow: inset 0 0 2px 0 rgba(57, 140, 255, 0.8);
21
- box-shadow: inset 0 0 2px 0 rgba(57, 140, 255, 0.8);
22
- color: #fff;
23
- font-family: 'PT Sans', helvetica, arial, sans-serif;
24
- text-shadow: 0 -1px 1px #1a5ad9;
25
- color: white;
26
- text-align: center;
27
- text-decoration: none;
28
- border-radius: 5px;
29
- line-height: 2em;
30
- }
31
- .super {
32
- text-transform: uppercase;
33
- font-size: 0.7em;
34
- vertical-align: top;
35
- line-height: 2em;
36
- }
37
- .logo {
38
- text-transform: uppercase;
39
- }
40
  .attachment-filters {
41
  display: none;
42
  }
@@ -74,7 +35,86 @@
74
  width: 100%;
75
  margin: 0 0 8px 0;
76
  }
77
- .metaslider .tooltip {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
78
  font-size: 0.9em;
79
  }
80
  .metaslider .nav-tab-active input {
@@ -185,8 +225,9 @@
185
  }
186
  .metaslider .left table tr.slide .new_window label {
187
  position: absolute;
188
- width: 78px;
189
- right: 0;
 
190
  top: -28px;
191
  }
192
  .metaslider .left table td {
@@ -215,6 +256,7 @@
215
  }
216
  .metaslider .right .settings .slider-lib-row {
217
  padding: 6px 3px;
 
218
  }
219
  .metaslider .right .settings #save {
220
  margin-right: 0;
@@ -232,6 +274,9 @@
232
  list-style-type: none;
233
  text-align: center;
234
  }
 
 
 
235
  @media (max-width: 1120px) {
236
  .metaslider .right .settings .slider-lib {
237
  width: 48%;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  .attachment-filters {
2
  display: none;
3
  }
35
  width: 100%;
36
  margin: 0 0 8px 0;
37
  }
38
+ #goProWrap {
39
+ border-right: 1px solid #ccc;
40
+ border-left: 1px solid #ccc;
41
+ border-bottom: 1px solid #ccc;
42
+ -webkit-border-bottom-left-radius: 3px;
43
+ -webkit-border-bottom-right-radius: 3px;
44
+ border-bottom-left-radius: 3px;
45
+ border-bottom-right-radius: 3px;
46
+ background: #e3e3e3;
47
+ background-image: -webkit-gradient(linear, left bottom, left top, from(#dfdfdf), to(#f1f1f1));
48
+ background-image: -webkit-linear-gradient(bottom, #dfdfdf, #f1f1f1);
49
+ background-image: -moz-linear-gradient(bottom, #dfdfdf, #f1f1f1);
50
+ background-image: -o-linear-gradient(bottom, #dfdfdf, #f1f1f1);
51
+ background-image: linear-gradient(to top, #dfdfdf, #f1f1f1);
52
+ float: right;
53
+ }
54
+ #goProWrap span {
55
+ z-index: 1;
56
+ padding: 0 6px;
57
+ height: 22px;
58
+ line-height: 22px;
59
+ font-size: 12px;
60
+ display: block;
61
+ text-shadow: rgba(255, 255, 255, 0.7) 0 1px 0;
62
+ }
63
+ #goProWrap a {
64
+ text-decoration: none;
65
+ }
66
+ .metaslider .section {
67
+ cursor: pointer;
68
+ }
69
+ .metaslider .hidden {
70
+ display: none;
71
+ }
72
+ .metaslider .probutton,
73
+ .metaslider .probutton:hover {
74
+ width: 36%;
75
+ margin: 20px 32% 10px 32%;
76
+ float: left;
77
+ font-size: 1.4em;
78
+ padding: 15px 0;
79
+ background-color: #759ae9;
80
+ background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #759ae9), color-stop(50%, #376fe0), color-stop(50%, #1a5ad9), color-stop(100%, #2463de));
81
+ background-image: -webkit-linear-gradient(top, #759ae9 0%, #376fe0 50%, #1a5ad9 50%, #2463de 100%);
82
+ background-image: -moz-linear-gradient(top, #759ae9 0%, #376fe0 50%, #1a5ad9 50%, #2463de 100%);
83
+ background-image: -ms-linear-gradient(top, #759ae9 0%, #376fe0 50%, #1a5ad9 50%, #2463de 100%);
84
+ background-image: -o-linear-gradient(top, #759ae9 0%, #376fe0 50%, #1a5ad9 50%, #2463de 100%);
85
+ background-image: linear-gradient(top, #759ae9 0%, #376fe0 50%, #1a5ad9 50%, #2463de 100%);
86
+ border-top: 1px solid #1f58cc;
87
+ border-right: 1px solid #1b4db3;
88
+ border-bottom: 1px solid #174299;
89
+ border-left: 1px solid #1b4db3;
90
+ border-radius: 4px;
91
+ -webkit-box-shadow: inset 0 0 2px 0 rgba(57, 140, 255, 0.8);
92
+ box-shadow: inset 0 0 2px 0 rgba(57, 140, 255, 0.8);
93
+ color: #fff;
94
+ font-family: 'PT Sans', helvetica, arial, sans-serif;
95
+ text-shadow: 0 -1px 1px #1a5ad9;
96
+ color: white;
97
+ text-align: center;
98
+ text-decoration: none;
99
+ border-radius: 5px;
100
+ line-height: 2em;
101
+ }
102
+ .metaslider .super {
103
+ text-transform: uppercase;
104
+ font-size: 0.7em;
105
+ vertical-align: top;
106
+ line-height: 2em;
107
+ }
108
+ .metaslider .subtext {
109
+ float: left;
110
+ width: 100%;
111
+ text-align: center;
112
+ font-style: italic;
113
+ }
114
+ .metaslider .logo {
115
+ text-transform: uppercase;
116
+ }
117
+ .metaslider .tipsy-tooltip {
118
  font-size: 0.9em;
119
  }
120
  .metaslider .nav-tab-active input {
225
  }
226
  .metaslider .left table tr.slide .new_window label {
227
  position: absolute;
228
+ width: 120px;
229
+ right: 6px;
230
+ text-align: right;
231
  top: -28px;
232
  }
233
  .metaslider .left table td {
256
  }
257
  .metaslider .right .settings .slider-lib-row {
258
  padding: 6px 3px;
259
+ text-shadow: 1px 1px 1px grey;
260
  }
261
  .metaslider .right .settings #save {
262
  margin-right: 0;
274
  list-style-type: none;
275
  text-align: center;
276
  }
277
+ .metaslider .right .settings .slider-lib input {
278
+ margin: 3px 0 0 0;
279
+ }
280
  @media (max-width: 1120px) {
281
  .metaslider .right .settings .slider-lib {
282
  width: 48%;
assets/metaslider/admin.js CHANGED
@@ -1,5 +1,5 @@
1
  jQuery(document).ready(function($) {
2
-
3
  // Enable the correct options for this slider type
4
  var switchType = function(slider) {
5
  jQuery('.metaslider .option:not(.' + slider + ')').attr('disabled', 'disabled').parents('tr').hide();
@@ -10,6 +10,11 @@ jQuery(document).ready(function($) {
10
  jQuery('.effect option:enabled:first').attr('selected', 'selected');
11
  }
12
 
 
 
 
 
 
13
  // slides - set red background on incompatible slides
14
  jQuery('.metaslider .slide:not(.' + slider + ')').css('background', '#FFD9D9');
15
  jQuery('.metaslider .slide.' + slider).css('background', '');
@@ -52,6 +57,12 @@ jQuery(document).ready(function($) {
52
  return confirm(metaslider.confirm);
53
  });
54
 
 
 
 
 
 
 
55
  // show the confirm dialogue
56
  jQuery(".toggle").live('click', function(e) {
57
  e.preventDefault();
@@ -59,8 +70,8 @@ jQuery(document).ready(function($) {
59
  });
60
 
61
  // helptext tooltips
62
- jQuery(".metaslider .tooltip").tipsy({className: 'msTipsy', live: true, delayIn: 1000, html: true, fade: true, gravity: 'e'});
63
- jQuery(".metaslider .tooltiptop").tipsy({live: true, delayIn: 1000, html: true, fade: true, gravity: 'se'});
64
 
65
  // Select input field contents when clicked
66
  jQuery(".metaslider .shortcode input").click(function() {
@@ -95,11 +106,19 @@ jQuery(document).ready(function($) {
95
 
96
  // return lightbox height
97
  var getLightboxHeight = function() {
98
- return parseInt(jQuery('input.height').val(), 10) + 80 + 'px';
 
 
 
 
 
 
 
 
99
  };
100
 
101
  // AJAX save & preview
102
- jQuery(".metaslider form").find(":submit").click(function(e) {
103
  e.preventDefault();
104
 
105
  // update slide order
@@ -120,6 +139,9 @@ jQuery(document).ready(function($) {
120
  cache: false,
121
  url: url,
122
  success: function(data) {
 
 
 
123
  if (button.id === 'preview') {
124
  jQuery.colorbox({
125
  iframe: true,
1
  jQuery(document).ready(function($) {
2
+
3
  // Enable the correct options for this slider type
4
  var switchType = function(slider) {
5
  jQuery('.metaslider .option:not(.' + slider + ')').attr('disabled', 'disabled').parents('tr').hide();
10
  jQuery('.effect option:enabled:first').attr('selected', 'selected');
11
  }
12
 
13
+ // make sure that the selected option is available for this slider type
14
+ if (jQuery('.theme option:selected').attr('disabled') === 'disabled') {
15
+ jQuery('.theme option:enabled:first').attr('selected', 'selected');
16
+ }
17
+
18
  // slides - set red background on incompatible slides
19
  jQuery('.metaslider .slide:not(.' + slider + ')').css('background', '#FFD9D9');
20
  jQuery('.metaslider .slide.' + slider).css('background', '');
57
  return confirm(metaslider.confirm);
58
  });
59
 
60
+ $('.useWithCaution').change(function(){
61
+ if(!this.checked) {
62
+ return alert(metaslider.useWithCaution);
63
+ }
64
+ });
65
+
66
  // show the confirm dialogue
67
  jQuery(".toggle").live('click', function(e) {
68
  e.preventDefault();
70
  });
71
 
72
  // helptext tooltips
73
+ jQuery(".metaslider .tipsy-tooltip").tipsy({className: 'msTipsy', live: true, delayIn: 500, html: true, fade: true, gravity: 'e'});
74
+ jQuery(".metaslider .tipsy-tooltip-top").tipsy({live: true, delayIn: 500, html: true, fade: true, gravity: 'se'});
75
 
76
  // Select input field contents when clicked
77
  jQuery(".metaslider .shortcode input").click(function() {
106
 
107
  // return lightbox height
108
  var getLightboxHeight = function() {
109
+ var height = parseInt(jQuery('input.height').val(), 10);
110
+
111
+ if (!isNaN(height)) {
112
+ height = height + 80 + 'px'
113
+ } else {
114
+ height = '70%';
115
+ }
116
+
117
+ return height;
118
  };
119
 
120
  // AJAX save & preview
121
+ jQuery(".metaslider form").find("input[type=submit]").click(function(e) {
122
  e.preventDefault();
123
 
124
  // update slide order
139
  cache: false,
140
  url: url,
141
  success: function(data) {
142
+ // update the slides with the response html
143
+ $(".metaslider .left tbody").html($(".metaslider .left tbody", data).html());
144
+
145
  if (button.id === 'preview') {
146
  jQuery.colorbox({
147
  iframe: true,
assets/metaslider/admin.less CHANGED
@@ -1,41 +1,3 @@
1
- .probutton, .probutton:hover {
2
- width: 36%;
3
- margin: 20px 32%;
4
- float: left;
5
- font-size: 1.4em;
6
- padding: 15px 0;
7
- background-color: #759ae9;
8
- background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #759ae9), color-stop(50%, #376fe0), color-stop(50%, #1a5ad9), color-stop(100%, #2463de));
9
- background-image: -webkit-linear-gradient(top, #759ae9 0%, #376fe0 50%, #1a5ad9 50%, #2463de 100%);
10
- background-image: -moz-linear-gradient(top, #759ae9 0%, #376fe0 50%, #1a5ad9 50%, #2463de 100%);
11
- background-image: -ms-linear-gradient(top, #759ae9 0%, #376fe0 50%, #1a5ad9 50%, #2463de 100%);
12
- background-image: -o-linear-gradient(top, #759ae9 0%, #376fe0 50%, #1a5ad9 50%, #2463de 100%);
13
- background-image: linear-gradient(top, #759ae9 0%, #376fe0 50%, #1a5ad9 50%, #2463de 100%);
14
- border-top: 1px solid #1f58cc;
15
- border-right: 1px solid #1b4db3;
16
- border-bottom: 1px solid #174299;
17
- border-left: 1px solid #1b4db3;
18
- border-radius: 4px;
19
- -webkit-box-shadow: inset 0 0 2px 0 rgba(57, 140, 255, 0.8);
20
- box-shadow: inset 0 0 2px 0 rgba(57, 140, 255, 0.8);
21
- color: #fff;
22
- font-family: 'PT Sans', helvetica, arial, sans-serif;
23
- text-shadow: 0 -1px 1px #1a5ad9;
24
- color: white;
25
- text-align: center;
26
- text-decoration: none;
27
- border-radius: 5px;
28
- line-height: 2em;
29
- }
30
- .super {
31
- text-transform: uppercase;
32
- font-size: 0.7em;
33
- vertical-align: top;
34
- line-height: 2em;
35
- }
36
- .logo {
37
- text-transform: uppercase;
38
- }
39
  .attachment-filters {
40
  display: none;
41
  }
@@ -77,8 +39,91 @@
77
  width: 100%;
78
  margin: 0 0 8px 0;
79
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
80
  .metaslider {
81
- .tooltip {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
82
  font-size: 0.9em;
83
  }
84
  .nav-tab-active {
@@ -211,8 +256,9 @@
211
  color: #a9a9a9;
212
  label {
213
  position: absolute;
214
- width: 78px;
215
- right: 0;
 
216
  top: -28px;
217
  }
218
  }
@@ -250,6 +296,7 @@
250
  .settings {
251
  .slider-lib-row {
252
  padding: 6px 3px;
 
253
  }
254
  #save {
255
  margin-right: 0;
@@ -267,6 +314,10 @@
267
  list-style-type: none;
268
  text-align: center;
269
 
 
 
 
 
270
  @media (max-width: 1120px) {
271
  width: 48%;
272
  margin: 1%;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  .attachment-filters {
2
  display: none;
3
  }
39
  width: 100%;
40
  margin: 0 0 8px 0;
41
  }
42
+ #goProWrap {
43
+ border-right: 1px solid #ccc;
44
+ border-left: 1px solid #ccc;
45
+ border-bottom: 1px solid #ccc;
46
+ -webkit-border-bottom-left-radius: 3px;
47
+ -webkit-border-bottom-right-radius: 3px;
48
+ border-bottom-left-radius: 3px;
49
+ border-bottom-right-radius: 3px;
50
+ background: #e3e3e3;
51
+ background-image: -webkit-gradient(linear,left bottom,left top,from(#dfdfdf),to(#f1f1f1));
52
+ background-image: -webkit-linear-gradient(bottom,#dfdfdf,#f1f1f1);
53
+ background-image: -moz-linear-gradient(bottom,#dfdfdf,#f1f1f1);
54
+ background-image: -o-linear-gradient(bottom,#dfdfdf,#f1f1f1);
55
+ background-image: linear-gradient(to top,#dfdfdf,#f1f1f1);
56
+ float: right;
57
+
58
+ span {
59
+ z-index: 1;
60
+ padding: 0 6px;
61
+ height: 22px;
62
+ line-height: 22px;
63
+ font-size: 12px;
64
+ display: block;
65
+ text-shadow: rgba(255,255,255,0.7) 0 1px 0;
66
+ }
67
+
68
+ a {
69
+ text-decoration: none;
70
+ }
71
+ }
72
  .metaslider {
73
+
74
+ .section {
75
+ cursor: pointer;
76
+ }
77
+
78
+ .hidden {
79
+ display: none;
80
+ }
81
+
82
+ .probutton, .probutton:hover {
83
+ width: 36%;
84
+ margin: 20px 32% 10px 32%;
85
+ float: left;
86
+ font-size: 1.4em;
87
+ padding: 15px 0;
88
+ background-color: #759ae9;
89
+ background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #759ae9), color-stop(50%, #376fe0), color-stop(50%, #1a5ad9), color-stop(100%, #2463de));
90
+ background-image: -webkit-linear-gradient(top, #759ae9 0%, #376fe0 50%, #1a5ad9 50%, #2463de 100%);
91
+ background-image: -moz-linear-gradient(top, #759ae9 0%, #376fe0 50%, #1a5ad9 50%, #2463de 100%);
92
+ background-image: -ms-linear-gradient(top, #759ae9 0%, #376fe0 50%, #1a5ad9 50%, #2463de 100%);
93
+ background-image: -o-linear-gradient(top, #759ae9 0%, #376fe0 50%, #1a5ad9 50%, #2463de 100%);
94
+ background-image: linear-gradient(top, #759ae9 0%, #376fe0 50%, #1a5ad9 50%, #2463de 100%);
95
+ border-top: 1px solid #1f58cc;
96
+ border-right: 1px solid #1b4db3;
97
+ border-bottom: 1px solid #174299;
98
+ border-left: 1px solid #1b4db3;
99
+ border-radius: 4px;
100
+ -webkit-box-shadow: inset 0 0 2px 0 rgba(57, 140, 255, 0.8);
101
+ box-shadow: inset 0 0 2px 0 rgba(57, 140, 255, 0.8);
102
+ color: #fff;
103
+ font-family: 'PT Sans', helvetica, arial, sans-serif;
104
+ text-shadow: 0 -1px 1px #1a5ad9;
105
+ color: white;
106
+ text-align: center;
107
+ text-decoration: none;
108
+ border-radius: 5px;
109
+ line-height: 2em;
110
+ }
111
+ .super {
112
+ text-transform: uppercase;
113
+ font-size: 0.7em;
114
+ vertical-align: top;
115
+ line-height: 2em;
116
+ }
117
+ .subtext {
118
+ float: left;
119
+ width: 100%;
120
+ text-align: center;
121
+ font-style: italic;
122
+ }
123
+ .logo {
124
+ text-transform: uppercase;
125
+ }
126
+ .tipsy-tooltip {
127
  font-size: 0.9em;
128
  }
129
  .nav-tab-active {
256
  color: #a9a9a9;
257
  label {
258
  position: absolute;
259
+ width: 120px;
260
+ right: 6px;
261
+ text-align: right;
262
  top: -28px;
263
  }
264
  }
296
  .settings {
297
  .slider-lib-row {
298
  padding: 6px 3px;
299
+ text-shadow: 1px 1px 1px grey;
300
  }
301
  #save {
302
  margin-right: 0;
314
  list-style-type: none;
315
  text-align: center;
316
 
317
+ input {
318
+ margin: 3px 0 0 0;
319
+ }
320
+
321
  @media (max-width: 1120px) {
322
  width: 48%;
323
  margin: 1%;
assets/metaslider/public.css CHANGED
@@ -4,131 +4,60 @@
4
  * - resets, in an attempt to ensure sliders display properly in all themes
5
  * - modifications to the default sliders CSS
6
  */
7
- .metaslider-responsive {
8
- position: relative;
9
- }
10
- .metaslider .flexslider .slides li,
11
- .metaslider ul.rslides li {
12
- position: relative;
13
- }
14
- .metaslider .flex-viewport {
15
- direction: ltr;
16
- }
17
- .metaslider .caption-wrap {
18
- position: absolute;
19
- bottom: 0;
20
- left: 0;
21
- background: black;
22
- color: white;
23
- line-height: 30px;
24
- opacity: 0.7;
25
- margin: 0;
26
- display: block;
27
- width: 100%;
28
  }
 
29
  .metaslider .caption {
30
- padding: 5px 10px;
31
  }
 
32
  .metaslider img {
33
- height: auto;
 
34
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
35
  .metaslider .flexslider ul,
36
  .metaslider .flexslider .slides li,
37
  .metaslider .flexslider .slides ul,
38
  .metaslider .flexslider .slides ol,
39
  .metaslider .flexslider .flex-direction-nav,
40
- .metaslider .rslides li,
41
- .metaslider .rslides .rslides_tabs {
42
- border: 0;
43
- border-top: 0;
44
- border-right: 0;
45
- border-bottom: 0;
46
- border-left: 0;
47
- margin: 0;
48
- margin-top: 0;
49
- margin-right: 0;
50
- margin-bottom: 0;
51
- margin-left: 0;
52
- list-style-type: none;
53
- }
54
- .metaslider .flexslider {
55
- border: 0;
56
- }
57
- .metaslider .flex-direction-nav a {
58
- -moz-transition: all .3s ease;
59
- transition: all .3s ease;
60
- }
61
- .metaslider li:before,
62
- .metaslider li:after {
63
- content: "" !important;
64
- }
65
- .metaslider .flexslider .slides p {
66
- margin: 0;
67
- }
68
- .metaslider .flexslider {
69
- background: none;
70
- box-shadow: none;
71
- -webkit-box-shadow: none;
72
- -moz-box-shadow: none;
73
- -o-box-shadow: none;
74
- }
75
- .metaslider .rslides_tabs {
76
- margin: 0;
77
- padding: 7px 0 !important;
78
- background: #333;
79
- font-size: 18px;
80
- list-style: none;
81
- padding: 10px 0;
82
- text-align: center;
83
- width: 100%;
84
- }
85
- .metaslider .rslides_tabs li {
86
- margin: 0;
87
- padding: 0;
88
- display: inline;
89
- float: none;
90
- margin-right: 1px;
91
- list-style-type: none;
92
- }
93
- .metaslider .rslides_tabs a {
94
- text-decoration: none;
95
- width: auto;
96
- line-height: 20px;
97
- padding: 9px 20px;
98
- height: auto;
99
- background: transparent;
100
- display: inline;
101
- color: white;
102
- }
103
- .metaslider .rslides_tabs a:hover {
104
- border: 0;
105
- color: white;
106
- }
107
- .metaslider .rslides_tabs li:first-child {
108
- margin-left: 0;
109
- }
110
- .metaslider .rslides_tabs .rslides_here a {
111
- background: rgba(255,255,255,.1);
112
- color: #fff;
113
- font-weight: bold;
114
- }
115
- .metaslider .rslides_nav {
116
- background-color: #000000;
117
- color: #FFFFFF;
118
- padding: 10px;
119
- position: absolute;
120
- top: 50%;
121
- z-index: 9;
122
- cursor: pointer;
123
- font-weight: bold;
124
- margin-top: -15px;
125
- opacity: 0.7;
126
- }
127
- .metaslider .rslides_nav.prev {
128
- left:0px;
129
- text-decoration: none;
130
- }
131
- .metaslider .rslides_nav.next {
132
- right:0px;
133
- text-decoration: none;
134
  }
4
  * - resets, in an attempt to ensure sliders display properly in all themes
5
  * - modifications to the default sliders CSS
6
  */
7
+
8
+ /* general resets */
9
+ .metaslider {
10
+ position: relative;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
11
  }
12
+
13
  .metaslider .caption {
14
+ padding: 5px 10px;
15
  }
16
+
17
  .metaslider img {
18
+ height: auto;
19
+ padding: 0;
20
  }
21
+
22
+ .metaslider li:before,
23
+ .metaslider li:after {
24
+ content: "" !important;
25
+ }
26
+
27
+ .metaslider .caption-wrap {
28
+ position: absolute;
29
+ bottom: 0;
30
+ left: 0;
31
+ background: black;
32
+ color: white;
33
+ line-height: 30px;
34
+ opacity: 0.7;
35
+ margin: 0;
36
+ display: block;
37
+ width: 100%;
38
+ }
39
+
40
+ /** quick resets **/
41
+ #widgets .metaslider ul,
42
+ #widgets .metaslider ol,
43
  .metaslider .flexslider ul,
44
  .metaslider .flexslider .slides li,
45
  .metaslider .flexslider .slides ul,
46
  .metaslider .flexslider .slides ol,
47
  .metaslider .flexslider .flex-direction-nav,
48
+ .metaslider .flexslider .flex-direction-nav li
49
+ {
50
+ border: 0;
51
+ border-top: 0;
52
+ border-right: 0;
53
+ border-bottom: 0;
54
+ border-left: 0;
55
+ margin: 0;
56
+ margin-top: 0;
57
+ margin-right: 0;
58
+ margin-bottom: 0;
59
+ margin-left: 0;
60
+ list-style-type: none;
61
+ list-style: none;
62
+ padding: 0;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
63
  }
assets/sliders/coinslider/coin-slider-styles.css CHANGED
@@ -2,19 +2,40 @@
2
  Coin Slider jQuery plugin CSS styles
3
  http://workshop.rs/projects/coin-slider
4
  */
5
- .coin-slider { overflow: hidden; zoom: 1; position: relative; }
6
  .coin-slider a{ text-decoration: none; outline: none; border: none; }
7
 
8
- .cs-buttons { font-size: 0px; padding: 10px; float: left; }
9
- .cs-buttons a { margin-left: 5px; height: 10px; width: 10px; float: left; border: 1px solid #B8C4CF; color: #B8C4CF; text-indent: -1000px; }
10
  .cs-active { background-color: #B8C4CF; color: #FFFFFF; }
11
 
12
- .cs-title { width: 100%; padding: 10px; background-color: #000000; color: #FFFFFF; }
 
 
 
 
 
 
 
13
 
14
  .cs-prev,
15
  .cs-next { background-color: #000000; color: #FFFFFF; padding: 0px 10px; }
16
 
 
 
 
 
 
 
 
 
 
 
17
  .cs-buttons a {
 
 
 
 
 
 
18
  border-radius: 50%;
19
  background: #CCC;
20
  background: -webkit-linear-gradient(top, #CCCCCC, #F3F3F3);
@@ -22,8 +43,10 @@
22
  background: -o-linear-gradient(top, #CCCCCC, #F3F3F3);
23
  background: -ms-linear-gradient(top, #CCCCCC, #F3F3F3);
24
  background: linear-gradient(top, #CCCCCC, #F3F3F3);
 
 
25
  }
26
- a.cs-active {
27
  background: #599BDC;
28
  background: -webkit-linear-gradient(top, #599BDC, #3072B3);
29
  background: -moz-linear-gradient(top, #599BDC, #3072B3);
@@ -32,5 +55,5 @@ a.cs-active {
32
  background: linear-gradient(top, #599BDC, #3072B3);
33
  border-radius: 50%;
34
  box-shadow: 0 0 3px #518CC6;
35
- border: 1px solid #3072B3 !important;
36
  }
2
  Coin Slider jQuery plugin CSS styles
3
  http://workshop.rs/projects/coin-slider
4
  */
5
+ .coin-slider { zoom: 1; position: relative; }
6
  .coin-slider a{ text-decoration: none; outline: none; border: none; }
7
 
 
 
8
  .cs-active { background-color: #B8C4CF; color: #FFFFFF; }
9
 
10
+ .cs-title {
11
+ box-sizing: border-box;
12
+ -moz-box-sizing: border-box;
13
+ width: 100%;
14
+ padding: 10px;
15
+ background-color: #000000;
16
+ color: #FFFFFF;
17
+ }
18
 
19
  .cs-prev,
20
  .cs-next { background-color: #000000; color: #FFFFFF; padding: 0px 10px; }
21
 
22
+ .cs-buttons {
23
+ font-size: 0px;
24
+ padding: 10px 0;
25
+ line-height: 10px;
26
+ float: left;
27
+ width: 100%;
28
+ text-align: center;
29
+ left: auto !important;
30
+ margin-left: 0 !important;
31
+ }
32
  .cs-buttons a {
33
+ margin-left: 5px;
34
+ height: 10px;
35
+ width: 10px;
36
+ border: 1px solid #B8C4CF;
37
+ color: #B8C4CF;
38
+ text-indent: -1000px;
39
  border-radius: 50%;
40
  background: #CCC;
41
  background: -webkit-linear-gradient(top, #CCCCCC, #F3F3F3);
43
  background: -o-linear-gradient(top, #CCCCCC, #F3F3F3);
44
  background: -ms-linear-gradient(top, #CCCCCC, #F3F3F3);
45
  background: linear-gradient(top, #CCCCCC, #F3F3F3);
46
+ display: inline-block;
47
+ text-align: center;
48
  }
49
+ .cs-buttons a.cs-active {
50
  background: #599BDC;
51
  background: -webkit-linear-gradient(top, #599BDC, #3072B3);
52
  background: -moz-linear-gradient(top, #599BDC, #3072B3);
55
  background: linear-gradient(top, #599BDC, #3072B3);
56
  border-radius: 50%;
57
  box-shadow: 0 0 3px #518CC6;
58
+ border: 1px solid #3072B3;
59
  }
assets/sliders/flexslider/flexslider.css CHANGED
@@ -18,11 +18,11 @@
18
  .slides,
19
  .flex-control-nav,
20
  .flex-direction-nav {margin: 0; padding: 0; list-style: none;}
21
- .flex-direction-nav li {margin: 0; padding: 0; list-style: none;}
22
 
23
  /* FlexSlider Necessary Styles
24
  *********************************/
25
  .flexslider {margin: 0; padding: 0;}
 
26
  .flexslider .slides img {width: 100%; display: block;}
27
  .flex-pauseplay span {text-transform: capitalize;}
28
 
@@ -49,7 +49,7 @@ html[xmlns] .slides {display: block;}
49
 
50
  /* Direction Nav */
51
  .flex-direction-nav {*height: 0;}
52
- .flex-direction-nav a {width: 30px; height: 30px; margin: -20px 0 0; display: block; background: url(../flexslider/bg_direction_nav.png) no-repeat 0 0; position: absolute; top: 50%; z-index: 10; cursor: pointer; text-indent: -9999px; opacity: 0; -webkit-transition: all .3s ease;}
53
  .flex-direction-nav .flex-next {background-position: 100% 0; right: -36px; }
54
  .flex-direction-nav .flex-prev {left: -36px;}
55
  .flexslider:hover .flex-next {opacity: 0.8; right: 5px;}
@@ -73,4 +73,53 @@ html[xmlns] .slides {display: block;}
73
  @media screen and (max-width: 860px) {
74
  .flex-direction-nav .flex-prev {opacity: 1; left: 0;}
75
  .flex-direction-nav .flex-next {opacity: 1; right: 0;}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
76
  }
18
  .slides,
19
  .flex-control-nav,
20
  .flex-direction-nav {margin: 0; padding: 0; list-style: none;}
 
21
 
22
  /* FlexSlider Necessary Styles
23
  *********************************/
24
  .flexslider {margin: 0; padding: 0;}
25
+ .flexslider .slides > li {display: none; -webkit-backface-visibility: hidden;} /* Hide the slides before the JS is loaded. Avoids image jumping */
26
  .flexslider .slides img {width: 100%; display: block;}
27
  .flex-pauseplay span {text-transform: capitalize;}
28
 
49
 
50
  /* Direction Nav */
51
  .flex-direction-nav {*height: 0;}
52
+ .flex-direction-nav a {width: 30px; height: 30px; margin: -20px 0 0; display: block; background: url(bg_direction_nav.png) no-repeat 0 0; position: absolute; top: 50%; z-index: 10; cursor: pointer; text-indent: -9999px; opacity: 0; -webkit-transition: all .3s ease;}
53
  .flex-direction-nav .flex-next {background-position: 100% 0; right: -36px; }
54
  .flex-direction-nav .flex-prev {left: -36px;}
55
  .flexslider:hover .flex-next {opacity: 0.8; right: 5px;}
73
  @media screen and (max-width: 860px) {
74
  .flex-direction-nav .flex-prev {opacity: 1; left: 0;}
75
  .flex-direction-nav .flex-next {opacity: 1; right: 0;}
76
+ }
77
+
78
+ /** Custom Meta Slider CSS **/
79
+ .flexslider {
80
+ background: none;
81
+ box-shadow: none;
82
+ -webkit-box-shadow: none;
83
+ -moz-box-shadow: none;
84
+ -o-box-shadow: none;
85
+ border: 0;
86
+ margin: 0 0 40px 0;
87
+ }
88
+
89
+ .flex-control-nav {
90
+ bottom: -30px;
91
+ line-height: 11px;
92
+ }
93
+
94
+
95
+ /** move margin from list items to anchors */
96
+ .flex-control-nav li {
97
+ margin: 0;
98
+ }
99
+ .flex-control-nav li a {
100
+ margin: 0 6px;
101
+ padding: 0;
102
+ }
103
+
104
+ .flexslider .slides li {
105
+ position: relative;
106
+ }
107
+
108
+ /** fix for users with RTL languages */
109
+ .flex-viewport {
110
+ direction: ltr;
111
+ }
112
+
113
+ /** add transition effects to firefox **/
114
+ .flex-direction-nav a {
115
+ -moz-transition: all .3s ease;
116
+ transition: all .3s ease;
117
+ }
118
+
119
+ .flexslider .slides p {
120
+ margin: 0;
121
+ }
122
+
123
+ .flex-control-nav {
124
+ margin: auto;
125
  }
assets/sliders/nivoslider/themes/default/default.css CHANGED
@@ -10,7 +10,6 @@ Supports Thumbs: true
10
 
11
  .theme-default .nivoSlider {
12
  position:relative;
13
- margin-bottom:10px;
14
  -webkit-box-shadow: 0px 1px 5px 0px #4a4a4a;
15
  -moz-box-shadow: 0px 1px 5px 0px #4a4a4a;
16
  box-shadow: 0px 1px 5px 0px #4a4a4a;
@@ -28,7 +27,9 @@ Supports Thumbs: true
28
 
29
  .theme-default .nivo-controlNav {
30
  text-align: center;
31
- padding: 20px 0;
 
 
32
  }
33
  .theme-default .nivo-controlNav a {
34
  display:inline-block;
10
 
11
  .theme-default .nivoSlider {
12
  position:relative;
 
13
  -webkit-box-shadow: 0px 1px 5px 0px #4a4a4a;
14
  -moz-box-shadow: 0px 1px 5px 0px #4a4a4a;
15
  box-shadow: 0px 1px 5px 0px #4a4a4a;
27
 
28
  .theme-default .nivo-controlNav {
29
  text-align: center;
30
+ padding: 15px 0;
31
+ width: 100%;
32
+ z-index: 99;
33
  }
34
  .theme-default .nivo-controlNav a {
35
  display:inline-block;
assets/sliders/responsiveslides/responsiveslides.css CHANGED
@@ -1,33 +1,117 @@
1
  /*! http://responsiveslides.com v1.53 by @viljamis */
2
 
3
  .rslides {
4
- position: relative;
5
- list-style: none;
6
- overflow: hidden;
7
- width: 100%;
8
- padding: 0;
9
- margin: 0 !important;
10
- }
11
 
12
  .rslides li {
13
- -webkit-backface-visibility: hidden;
14
- position: absolute;
15
- display: none;
16
- width: 100%;
17
- left: 0;
18
- top: 0;
19
- }
20
 
21
  .rslides li:first-child {
22
- position: relative;
23
- display: block;
24
- float: left;
25
- }
26
 
27
  .rslides img {
28
- display: block;
29
- height: auto;
30
- float: left;
31
- width: 100%;
32
- border: 0;
33
- }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  /*! http://responsiveslides.com v1.53 by @viljamis */
2
 
3
  .rslides {
4
+ position: relative;
5
+ list-style: none;
6
+ overflow: hidden;
7
+ width: 100%;
8
+ padding: 0;
9
+ margin: 0 !important;
10
+ }
11
 
12
  .rslides li {
13
+ -webkit-backface-visibility: hidden;
14
+ position: absolute;
15
+ display: none;
16
+ width: 100%;
17
+ left: 0;
18
+ top: 0;
19
+ }
20
 
21
  .rslides li:first-child {
22
+ position: relative;
23
+ display: block;
24
+ float: left;
25
+ }
26
 
27
  .rslides img {
28
+ display: block;
29
+ height: auto;
30
+ float: left;
31
+ width: 100%;
32
+ border: 0;
33
+ }
34
+ /** metaslider custom styles **/
35
+ .rslides_tabs {
36
+ margin: 0;
37
+ padding: 7px 0 !important;
38
+ background: #333;
39
+ font-size: 18px;
40
+ list-style: none;
41
+ padding: 10px 0;
42
+ text-align: center;
43
+ width: 100%;
44
+ }
45
+
46
+ .rslides_tabs li {
47
+ margin: 0;
48
+ padding: 0;
49
+ display: inline-block;
50
+ float: none;
51
+ margin-right: 1px;
52
+ list-style-type: none;
53
+ }
54
+
55
+ .rslides_tabs a {
56
+ text-decoration: none;
57
+ width: auto;
58
+ line-height: 20px;
59
+ padding: 9px 20px;
60
+ height: auto;
61
+ background: transparent;
62
+ display: inline;
63
+ color: white;
64
+ }
65
+
66
+ .rslides_tabs a:hover {
67
+ border: 0;
68
+ color: white;
69
+ }
70
+
71
+ .rslides_tabs li:first-child {
72
+ margin-left: 0;
73
+ }
74
+
75
+ .rslides_tabs .rslides_here a {
76
+ background: rgba(255,255,255,.1);
77
+ color: #fff;
78
+ font-weight: bold;
79
+ }
80
+
81
+ .rslides_nav {
82
+ background-color: #000000;
83
+ color: #FFFFFF;
84
+ padding: 10px;
85
+ position: absolute;
86
+ top: 50%;
87
+ z-index: 9;
88
+ cursor: pointer;
89
+ font-weight: bold;
90
+ margin-top: -15px;
91
+ opacity: 0.7;
92
+ }
93
+
94
+ .rslides_nav.prev {
95
+ left: 0px;
96
+ text-decoration: none;
97
+ }
98
+
99
+ .rslides_nav.next {
100
+ right: 0px;
101
+ text-decoration: none;
102
+ }
103
+
104
+ .rslides li,
105
+ .rslides .rslides_tabs {
106
+ border: 0;
107
+ border-top: 0;
108
+ border-right: 0;
109
+ border-bottom: 0;
110
+ border-left: 0;
111
+ margin: 0;
112
+ margin-top: 0;
113
+ margin-right: 0;
114
+ margin-bottom: 0;
115
+ margin-left: 0;
116
+ list-style-type: none;
117
+ }
inc/metaslider.imagehelper.class.php CHANGED
@@ -181,6 +181,11 @@ class MetaSliderImageHelper {
181
  $dest_width = $size['width'];
182
  $dest_height = $size['height'];
183
 
 
 
 
 
 
184
  // image info
185
  $info = pathinfo( $file_path );
186
  $dir = $info['dirname'];
181
  $dest_width = $size['width'];
182
  $dest_height = $size['height'];
183
 
184
+ // check if a resize is needed
185
+ if ($dest_width == $orig_width && $dest_height == $orig_height) {
186
+ return $this->url;
187
+ }
188
+
189
  // image info
190
  $info = pathinfo( $file_path );
191
  $dir = $info['dirname'];
inc/metaslider.widget.class.php ADDED
@@ -0,0 +1,132 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ /**
3
+ * Adds Meta Slider widget.
4
+ */
5
+ class MetaSlider_Widget extends WP_Widget {
6
+
7
+ /**
8
+ * Register widget with WordPress.
9
+ */
10
+ public function __construct() {
11
+ parent::__construct(
12
+ 'metaslider_widget', // Base ID
13
+ 'Meta Slider', // Name
14
+ array( 'description' => __( 'Meta Slider', 'metaslider' ), ) // Args
15
+ );
16
+ }
17
+
18
+ /**
19
+ * Front-end display of widget.
20
+ *
21
+ * @see WP_Widget::widget()
22
+ *
23
+ * @param array $args Widget arguments.
24
+ * @param array $instance Saved values from database.
25
+ */
26
+ public function widget( $args, $instance ) {
27
+ extract($args);
28
+
29
+ if (isset($instance['slider_id'])) {
30
+ $slider_id = $instance['slider_id'];
31
+
32
+ $title = apply_filters( 'widget_title', $instance['title'] );
33
+
34
+ echo $before_widget;
35
+ if ( ! empty( $title ) )
36
+ echo $before_title . $title . $after_title;
37
+
38
+ echo do_shortcode("[metaslider id={$slider_id}]");
39
+ echo $after_widget;
40
+ }
41
+ }
42
+
43
+ /**
44
+ * Sanitize widget form values as they are saved.
45
+ *
46
+ * @see WP_Widget::update()
47
+ *
48
+ * @param array $new_instance Values just sent to be saved.
49
+ * @param array $old_instance Previously saved values from database.
50
+ *
51
+ * @return array Updated safe values to be saved.
52
+ */
53
+ public function update( $new_instance, $old_instance ) {
54
+ $instance = array();
55
+ $instance['slider_id'] = strip_tags( $new_instance['slider_id'] );
56
+ $instance['title'] = strip_tags( $new_instance['title'] );
57
+
58
+ return $instance;
59
+ }
60
+
61
+ /**
62
+ * Back-end widget form.
63
+ *
64
+ * @see WP_Widget::form()
65
+ *
66
+ * @param array $instance Previously saved values from database.
67
+ */
68
+ public function form( $instance ) {
69
+ $selected_slider = 0;
70
+ $title = "";
71
+ $sliders = false;
72
+
73
+ if (isset($instance['slider_id'])) {
74
+ $selected_slider = $instance['slider_id'];
75
+ }
76
+
77
+ if (isset($instance['title'])) {
78
+ $title = $instance['title'];
79
+ }
80
+
81
+ // list the tabs
82
+ $args = array(
83
+ 'post_type' => 'ml-slider',
84
+ 'post_status' => 'publish',
85
+ 'orderby' => 'date',
86
+ 'order' => 'ASC',
87
+ 'posts_per_page' => -1
88
+ );
89
+
90
+ $the_query = new WP_Query($args);
91
+
92
+ while ($the_query->have_posts()) {
93
+ $the_query->the_post();
94
+ $active = $selected_slider == $the_query->post->ID ? true : false;
95
+
96
+ $sliders[] = array(
97
+ 'active' => $active,
98
+ 'title' => get_the_title(),
99
+ 'id' => $the_query->post->ID
100
+ );
101
+ }
102
+
103
+ ?>
104
+ <p>
105
+ <?php if ($sliders) { ?>
106
+ <p>
107
+ <label for="<?php echo $this->get_field_id( 'title' ); ?>"><?php _e( 'Title:' ); ?></label>
108
+ <input class="widefat" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" type="text" value="<?php echo esc_attr( $title ); ?>" />
109
+ </p>
110
+ <label for="<?php echo $this->get_field_id('slider_id'); ?>"><?php _e('Select Slider:', 'metaslider'); ?></label>
111
+ <select id="<?php echo $this->get_field_id('slider_id'); ?>" name="<?php echo $this->get_field_name('slider_id'); ?>">
112
+ <?php
113
+ foreach ($sliders as $slider) {
114
+ $selected = $slider['active'] ? 'selected=selected' : '';
115
+ echo "<option value='{$slider['id']}' {$selected}>{$slider['title']}</option>";
116
+ }
117
+ ?>
118
+ </select>
119
+ <?php } else {
120
+ _e('No slideshows found', 'metaslider');
121
+ } ?>
122
+ </p>
123
+ <?php
124
+ }
125
+ }
126
+
127
+ add_action('widgets_init', 'register_metaslider_widget');
128
+
129
+ function register_metaslider_widget() {
130
+ register_widget('MetaSlider_Widget');
131
+ }
132
+ ?>
inc/slide/metaslide.class.php CHANGED
@@ -51,13 +51,26 @@ class MetaSlide {
51
  * @return string slide html
52
  */
53
  public function get_slide_html() {
54
- return is_admin() && !isset($_GET['slider_id']) ? $this->get_admin_slide() : $this->get_public_slide();
 
 
 
 
 
 
 
 
55
  }
56
 
57
  /**
58
  * Tag the slide attachment to the slider tax category
59
  */
60
  public function tag_slide_to_slider() {
 
 
 
 
 
61
  // get the term thats name is the same as the ID of the slider
62
  $term = get_term_by('name', $this->slider->ID, 'ml-slider');
63
  // tag this slide to the taxonomy term
51
  * @return string slide html
52
  */
53
  public function get_slide_html() {
54
+ if (is_admin() && isset($_GET['page']) && $_GET['page'] == 'metaslider-theme-editor') {
55
+ return $this->get_public_slide();
56
+ }
57
+
58
+ if (is_admin() && !isset($_GET['slider_id'])) {
59
+ return $this->get_admin_slide();
60
+ }
61
+
62
+ return $this->get_public_slide();
63
  }
64
 
65
  /**
66
  * Tag the slide attachment to the slider tax category
67
  */
68
  public function tag_slide_to_slider() {
69
+ if (!term_exists($this->slider->ID, 'ml-slider')) {
70
+ // create the taxonomy term, the term is the ID of the slider itself
71
+ wp_insert_term($this->slider->ID, 'ml-slider');
72
+ }
73
+
74
  // get the term thats name is the same as the ID of the slider
75
  $term = get_term_by('name', $this->slider->ID, 'ml-slider');
76
  // tag this slide to the taxonomy term
inc/slide/metaslide.image.class.php CHANGED
@@ -138,14 +138,16 @@ class MetaImageSlide extends MetaSlide {
138
  * @return string slide html
139
  */
140
  private function get_flex_slider_markup($slide) {
141
- $html = "<img height='{$this->settings['height']}' width='{$this->settings['width']}' src='{$slide['thumb']}' alt='{$slide['alt']}' />";
142
 
143
  if (strlen($slide['url'])) {
144
- $html = "<a href='{$slide['url']}' target='{$slide['target']}'>" . $html . "</a>";
145
  }
146
 
147
  if (strlen($slide['caption'])) {
148
- $html .= "<div class='caption-wrap'><div class='caption'>" . $slide['caption'] . "</div></div>";
 
 
149
  }
150
 
151
  return $html;
@@ -157,12 +159,12 @@ class MetaImageSlide extends MetaSlide {
157
  * @return string slide html
158
  */
159
  private function get_coin_slider_markup($slide) {
160
- $url = strlen($slide['url']) ? $slide['url'] : "javascript:void(0)"; // coinslider always wants a URL
161
 
162
- $html = "<a href='{$url}' style='display: none;'>";
163
- $html .= "<img height='{$this->settings['height']}' width='{$this->settings['width']}' src='{$slide['thumb']}' alt='{$slide['alt']}' />"; // target doesn't work with coin
164
- $html .= "<span>{$slide['caption']}</span>";
165
- $html .= "</a>";
166
  return $html;
167
  }
168
 
@@ -172,14 +174,16 @@ class MetaImageSlide extends MetaSlide {
172
  * @return string slide html
173
  */
174
  private function get_responsive_slides_markup($slide) {
175
- $html = "<img height='{$this->settings['height']}' width='{$this->settings['width']}' src='{$slide['thumb']}' alt='{$slide['alt']}' />";
176
 
177
  if (strlen($slide['caption'])) {
178
- $html .= "<div class='caption-wrap'><div class='caption'>" . $slide['caption'] . "</div></div>";
 
 
179
  }
180
 
181
  if (strlen($slide['url'])) {
182
- $html = "<a href='{$slide['url']}' target='{$slide['target']}'>" . $html . "</a>";
183
  }
184
 
185
  return $html;
138
  * @return string slide html
139
  */
140
  private function get_flex_slider_markup($slide) {
141
+ $html = " <img height='{$this->settings['height']}' width='{$this->settings['width']}' src='{$slide['thumb']}' alt='{$slide['alt']}' />";
142
 
143
  if (strlen($slide['url'])) {
144
+ $html = " <a href='{$slide['url']}' target='{$slide['target']}'>\n " . $html . "\n </a>";
145
  }
146
 
147
  if (strlen($slide['caption'])) {
148
+ $html .= "\n <div class='caption-wrap'>";
149
+ $html .= "\n <div class='caption'>" . $slide['caption'] . "</div>";
150
+ $html .= "\n </div>";
151
  }
152
 
153
  return $html;
159
  * @return string slide html
160
  */
161
  private function get_coin_slider_markup($slide) {
162
+ $url = strlen($slide['url']) ? $slide['url'] : 'javascript:void(0)'; // coinslider always wants a URL
163
 
164
+ $html = " <a href='" . $url . "' style='display: none;'>";
165
+ $html .= "\n <img height='{$this->settings['height']}' width='{$this->settings['width']}' src='{$slide['thumb']}' alt='{$slide['alt']}' />"; // target doesn't work with coin
166
+ $html .= "\n <span>{$slide['caption']}</span>";
167
+ $html .= "\n </a>";
168
  return $html;
169
  }
170
 
174
  * @return string slide html
175
  */
176
  private function get_responsive_slides_markup($slide) {
177
+ $html = " <img height='{$this->settings['height']}' width='{$this->settings['width']}' src='{$slide['thumb']}' alt='{$slide['alt']}' />";
178
 
179
  if (strlen($slide['caption'])) {
180
+ $html .= "\n <div class='caption-wrap'>";
181
+ $html .= "\n <div class='caption'>{$slide['caption']}</div>";
182
+ $html .= "\n </div>";
183
  }
184
 
185
  if (strlen($slide['url'])) {
186
+ $html = " <a href='{$slide['url']}' target='{$slide['target']}'>\n " . $html . "\n </a>";
187
  }
188
 
189
  return $html;
inc/slider/metaslider.class.php CHANGED
@@ -21,6 +21,8 @@ class MetaSlider {
21
  $this->identifier = 'metaslider_' . $this->id;
22
  $this->save();
23
  $this->populate_slides();
 
 
24
  }
25
 
26
  /**
@@ -148,6 +150,7 @@ class MetaSlider {
148
  $slides = array();
149
 
150
  $args = array(
 
151
  'orderby' => 'menu_order',
152
  'order' => 'ASC',
153
  'post_type' => 'attachment',
@@ -170,7 +173,7 @@ class MetaSlider {
170
  $query->next_post();
171
 
172
  $type = get_post_meta($query->post->ID, 'ml-slider_type', true);
173
- $type = $type ? $type : 'image';
174
 
175
  if (has_filter("metaslider_get_{$type}_slide")) {
176
  $return = apply_filters("metaslider_get_{$type}_slide", $query->post->ID, $this->id);
@@ -183,11 +186,14 @@ class MetaSlider {
183
  }
184
  }
185
 
 
186
  if ($this->get_setting('random') == 'true' && !is_admin()) {
187
  shuffle($slides);
188
  }
189
 
190
  $this->slides = $slides;
 
 
191
  }
192
 
193
  /**
@@ -207,27 +213,73 @@ class MetaSlider {
207
  public function render_public_slides() {
208
  $class = "metaslider metaslider-{$this->get_setting('type')} metaslider-{$this->id} ml-slider";
209
 
 
210
  if ($this->get_setting('cssClass') != 'false') {
211
  $class .= " " . $this->get_setting('cssClass');
212
  }
213
 
 
 
 
 
214
  if ($this->get_setting('carouselMode') != 'true') {
215
  $style = "max-width: {$this->get_setting('width')}px;";
216
  } else {
217
  $style = "width: 100%;";
218
  }
219
 
 
220
  if ($this->get_setting('center') != 'false') {
221
  $style .= " margin: 0 auto;";
222
  }
223
 
224
- $html = "<div style='{$style}' class='{$class}'>" . $this->get_html() . "</div>";
 
 
 
 
 
 
225
  $html .= $this->get_inline_javascript();
226
- $html .= $this->get_inline_css();
 
227
 
228
  return $html;
229
  }
230
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
231
  /**
232
  * Build the javascript parameter arguments for the slider.
233
  *
@@ -236,6 +288,7 @@ class MetaSlider {
236
  private function get_javascript_parameters() {
237
  $options = array();
238
 
 
239
  foreach ($this->get_default_parameters() as $name => $default) {
240
  if ($param = $this->get_param($name)) {
241
  $val = $this->get_setting($name);
@@ -248,12 +301,14 @@ class MetaSlider {
248
  }
249
  }
250
 
 
251
  $type = $this->get_setting('type');
252
 
253
  if (has_filter("metaslider_{$type}_slider_parameters")) {
254
  $options = apply_filters("metaslider_{$type}_slider_parameters", $options, $this->id);
255
  }
256
 
 
257
  foreach ($options as $key => $value) {
258
  if (is_array($value)) {
259
  $pairs[] = "{$key}: function() {\n "
@@ -264,65 +319,62 @@ class MetaSlider {
264
  }
265
  }
266
 
267
- return implode(",\n ", $pairs);
268
  }
269
 
270
  /**
271
- * Return the Javascript to kick off the slider. Code is wrapped in a timer
272
- * to allow for themes that load jQuery at the bottom of the page.
273
  *
274
- * Delay execution of slider code until jQuery is ready (supports themes where
275
- * jQuery is loaded at the bottom of the page)
276
- *
277
- * @return string javascript
278
  */
279
- private function get_inline_javascript() {
280
- $identifier = $this->identifier;
281
- $type = $this->get_setting('type');
282
- $javascript = "";
283
- $javascript = apply_filters("metaslider_{$type}_slider_javascript", $javascript, $this->id);
284
-
285
- $return_value = "\n<script type='text/javascript'>";
286
- $return_value .= "\n var " . $identifier . " = function($) {";
287
- $return_value .= "\n $('#" . $identifier . "')." . $this->js_function . "({ ";
288
- $return_value .= "\n " . $this->get_javascript_parameters();
289
- $return_value .= "\n });";
290
- if (strlen ($javascript)) {
291
- $return_value .= "\n {$javascript}";
 
 
292
  }
293
- $return_value .= "\n };";
294
- $return_value .= "\n var timer_" . $identifier . " = function() {";
295
- $return_value .= "\n var slider = !window.jQuery ? window.setTimeout(timer_{$identifier}, 100) : !jQuery.isReady ? window.setTimeout(timer_{$identifier}, 100) : {$identifier}(window.jQuery);";
296
- $return_value .= "\n };";
297
- $return_value .= "\n timer_" . $identifier . "();";
298
- $return_value .= "\n</script>";
299
-
300
- return $return_value;
301
  }
302
 
303
  /**
304
- * @return string
305
  */
306
- private function get_inline_css() {
307
- if (has_filter("metaslider_css")) {
308
- return "<style type='text/css'>" . apply_filters("metaslider_css", $this->settings, $this->id) . "</style>";
 
 
 
 
 
 
 
 
309
  }
 
 
310
  }
311
 
 
312
  /**
313
  * Include slider assets, JS and CSS paths are specified by child classes.
314
  */
315
  public function enqueue_scripts() {
316
  if ($this->get_setting('printJs') == 'true') {
317
- wp_enqueue_script('metaslider-easing', METASLIDER_ASSETS_URL . 'easing/jQuery.easing.min.js', array('jquery'), METASLIDER_VERSION);
318
  wp_enqueue_script('metaslider-' . $this->get_setting('type') . '-slider', METASLIDER_ASSETS_URL . $this->js_path, array('jquery'), METASLIDER_VERSION);
319
  }
320
 
321
- if ($this->get_setting('printCss') == 'true') {
322
- wp_enqueue_style('metaslider-display-css', METASLIDER_ASSETS_URL . 'metaslider/public.css', false, METASLIDER_VERSION);
323
- wp_enqueue_style('metaslider-' . $this->get_setting('type') . '-slider-css', METASLIDER_ASSETS_URL . $this->css_path);
324
- }
325
-
326
  do_action('metaslider_register_public_styles');
327
  }
328
 
21
  $this->identifier = 'metaslider_' . $this->id;
22
  $this->save();
23
  $this->populate_slides();
24
+
25
+ add_filter('metaslider_css', array($this, 'get_slider_css'), 10, 3);
26
  }
27
 
28
  /**
150
  $slides = array();
151
 
152
  $args = array(
153
+ 'force_no_custom_order' => true,
154
  'orderby' => 'menu_order',
155
  'order' => 'ASC',
156
  'post_type' => 'attachment',
173
  $query->next_post();
174
 
175
  $type = get_post_meta($query->post->ID, 'ml-slider_type', true);
176
+ $type = $type ? $type : 'image'; // backwards compatibility, fall back to 'image'
177
 
178
  if (has_filter("metaslider_get_{$type}_slide")) {
179
  $return = apply_filters("metaslider_get_{$type}_slide", $query->post->ID, $this->id);
186
  }
187
  }
188
 
189
+ // apply random setting
190
  if ($this->get_setting('random') == 'true' && !is_admin()) {
191
  shuffle($slides);
192
  }
193
 
194
  $this->slides = $slides;
195
+
196
+ return $this->slides;
197
  }
198
 
199
  /**
213
  public function render_public_slides() {
214
  $class = "metaslider metaslider-{$this->get_setting('type')} metaslider-{$this->id} ml-slider";
215
 
216
+ // apply the css class setting
217
  if ($this->get_setting('cssClass') != 'false') {
218
  $class .= " " . $this->get_setting('cssClass');
219
  }
220
 
221
+ // handle any custom classes
222
+ $class = apply_filters('metaslider_css_classes', $class, $this->id, $this->settings);
223
+
224
+ // carousels are always 100% wide
225
  if ($this->get_setting('carouselMode') != 'true') {
226
  $style = "max-width: {$this->get_setting('width')}px;";
227
  } else {
228
  $style = "width: 100%;";
229
  }
230
 
231
+ // center align the slideshow
232
  if ($this->get_setting('center') != 'false') {
233
  $style .= " margin: 0 auto;";
234
  }
235
 
236
+ // build the HTML
237
+ $html = "\n<!--meta slider-->";
238
+ $html .= "\n<div style='{$style}' class='{$class}'>";
239
+ $html .= "\n " . $this->get_inline_css();
240
+ $html .= "\n <div id='metaslider_container_{$this->id}'>";
241
+ $html .= "\n " . $this->get_html();
242
+ $html .= "\n </div>";
243
  $html .= $this->get_inline_javascript();
244
+ $html .= "\n</div>";
245
+ $html .= "\n<!--//meta slider-->";
246
 
247
  return $html;
248
  }
249
 
250
+ /**
251
+ * Return the Javascript to kick off the slider. Code is wrapped in a timer
252
+ * to allow for themes that load jQuery at the bottom of the page.
253
+ *
254
+ * Delay execution of slider code until jQuery is ready (supports themes where
255
+ * jQuery is loaded at the bottom of the page)
256
+ *
257
+ * @return string javascript
258
+ */
259
+ private function get_inline_javascript() {
260
+ $identifier = $this->identifier;
261
+ $type = $this->get_setting('type');
262
+
263
+ $custom_js = apply_filters("metaslider_{$type}_slider_javascript", "", $this->id);
264
+
265
+ $script = "\n <script type='text/javascript'>";
266
+ $script .= "\n var " . $identifier . " = function($) {";
267
+ $script .= "\n $('#" . $identifier . "')." . $this->js_function . "({ ";
268
+ $script .= "\n " . $this->get_javascript_parameters();
269
+ $script .= "\n });";
270
+ if (strlen ($custom_js)) {
271
+ $script .= "\n {$custom_js}";
272
+ }
273
+ $script .= "\n };";
274
+ $script .= "\n var timer_" . $identifier . " = function() {";
275
+ $script .= "\n var slider = !window.jQuery ? window.setTimeout(timer_{$identifier}, 100) : !jQuery.isReady ? window.setTimeout(timer_{$identifier}, 100) : {$identifier}(window.jQuery);";
276
+ $script .= "\n };";
277
+ $script .= "\n timer_" . $identifier . "();";
278
+ $script .= "\n </script>";
279
+
280
+ return $script;
281
+ }
282
+
283
  /**
284
  * Build the javascript parameter arguments for the slider.
285
  *
288
  private function get_javascript_parameters() {
289
  $options = array();
290
 
291
+ // construct an array of all parameters
292
  foreach ($this->get_default_parameters() as $name => $default) {
293
  if ($param = $this->get_param($name)) {
294
  $val = $this->get_setting($name);
301
  }
302
  }
303
 
304
+ // deal with any customised parameters
305
  $type = $this->get_setting('type');
306
 
307
  if (has_filter("metaslider_{$type}_slider_parameters")) {
308
  $options = apply_filters("metaslider_{$type}_slider_parameters", $options, $this->id);
309
  }
310
 
311
+ // create key:value strings
312
  foreach ($options as $key => $value) {
313
  if (is_array($value)) {
314
  $pairs[] = "{$key}: function() {\n "
319
  }
320
  }
321
 
322
+ return implode(",\n ", $pairs);
323
  }
324
 
325
  /**
326
+ * Apply any custom inline styling
 
327
  *
328
+ * @return string
 
 
 
329
  */
330
+ private function get_inline_css() {
331
+ if (has_filter("metaslider_css")) {
332
+ $css = apply_filters("metaslider_css", "", $this->settings, $this->id);
333
+ $scoped = ' scoped';
334
+
335
+ if (isset($_SERVER['HTTP_USER_AGENT'])){
336
+ $agent = $_SERVER['HTTP_USER_AGENT'];
337
+ if (strlen(strstr($agent,"Firefox")) > 0 ){
338
+ $scoped = '';
339
+ }
340
+ }
341
+
342
+ if (strlen($css)) {
343
+ return "<style type='text/css'{$scoped}>{$css}\n </style>";
344
+ }
345
  }
346
+
347
+ return "";
 
 
 
 
 
 
348
  }
349
 
350
  /**
351
+ *
352
  */
353
+ public function get_slider_css($css, $settings, $slider_id) {
354
+ if ($slider_id != $this->id) {
355
+ return $css;
356
+ }
357
+
358
+ $imports = "";
359
+
360
+ if ($this->get_setting('printCss') == 'true') {
361
+ $stylesheets[] = "@import url('" . METASLIDER_ASSETS_URL . "metaslider/public.css?ver=" . METASLIDER_VERSION . "');";
362
+ $stylesheets[] = "@import url('" . METASLIDER_ASSETS_URL . $this->css_path . "?ver=" . METASLIDER_VERSION . "');";
363
+ $imports = "\n " . implode("\n ", $stylesheets);
364
  }
365
+
366
+ return $css . $imports;
367
  }
368
 
369
+
370
  /**
371
  * Include slider assets, JS and CSS paths are specified by child classes.
372
  */
373
  public function enqueue_scripts() {
374
  if ($this->get_setting('printJs') == 'true') {
 
375
  wp_enqueue_script('metaslider-' . $this->get_setting('type') . '-slider', METASLIDER_ASSETS_URL . $this->js_path, array('jquery'), METASLIDER_VERSION);
376
  }
377
 
 
 
 
 
 
378
  do_action('metaslider_register_public_styles');
379
  }
380
 
inc/slider/metaslider.coin.class.php CHANGED
@@ -48,10 +48,10 @@ class MetaCoinSlider extends MetaSlider {
48
  $retVal = "<div id='" . $this->get_identifier() . "' class='coin-slider'>";
49
 
50
  foreach ($this->slides as $slide) {
51
- $retVal .= $slide;
52
  }
53
 
54
- $retVal .= "</div>";
55
 
56
  return $retVal;
57
  }
48
  $retVal = "<div id='" . $this->get_identifier() . "' class='coin-slider'>";
49
 
50
  foreach ($this->slides as $slide) {
51
+ $retVal .= "\n" . $slide;
52
  }
53
 
54
+ $retVal .= "\n </div>";
55
 
56
  return $retVal;
57
  }
inc/slider/metaslider.flex.class.php CHANGED
@@ -7,17 +7,17 @@ class MetaFlexSlider extends MetaSlider {
7
  protected $js_function = 'flexslider';
8
  protected $js_path = 'sliders/flexslider/jquery.flexslider-min.js';
9
  protected $css_path = 'sliders/flexslider/flexslider.css';
10
-
11
  protected $carousel_item_margin = 5;
12
 
13
  public function __construct($id) {
14
  parent::__construct($id);
15
  add_filter('metaslider_flex_slider_parameters', array($this, 'enable_carousel_mode'), 10, 2);
16
  add_filter('metaslider_flex_slider_parameters', array($this, 'enable_easing'), 10, 2);
17
- add_filter('metaslider_css', array($this, 'get_carousel_css'), 10, 2);
 
 
18
  }
19
 
20
-
21
  /**
22
  * Adjust the slider parameters so they're comparible with the carousel mode
23
  */
@@ -56,10 +56,12 @@ class MetaFlexSlider extends MetaSlider {
56
  /**
57
  * Return css to ensure our slides are rendered correctly in the carousel
58
  */
59
- public function get_carousel_css($settings, $slider_id) {
60
  if (isset($settings["carouselMode"]) && $settings['carouselMode'] == 'true') {
61
- return "#metaslider_{$slider_id}.flexslider li {margin-right: {$this->carousel_item_margin}px;}";
62
  }
 
 
63
  }
64
 
65
  /**
@@ -91,20 +93,31 @@ class MetaFlexSlider extends MetaSlider {
91
  return false;
92
  }
93
 
 
 
 
 
 
 
 
 
 
 
94
  /**
95
  * Build the HTML for a slider.
96
  *
97
  * @return string slider markup.
98
  */
99
  protected function get_html() {
100
- $return_value = "<div id='" . $this->get_identifier() . "' class='flexslider'><ul class='slides'>";
 
101
 
102
  foreach ($this->slides as $slide) {
103
- $return_value .= "<li style='display: none;'>" . $slide . "</li>";
104
- $first = false;
105
  }
106
 
107
- $return_value .= "</ul></div>";
 
108
 
109
  return $return_value;
110
  }
7
  protected $js_function = 'flexslider';
8
  protected $js_path = 'sliders/flexslider/jquery.flexslider-min.js';
9
  protected $css_path = 'sliders/flexslider/flexslider.css';
 
10
  protected $carousel_item_margin = 5;
11
 
12
  public function __construct($id) {
13
  parent::__construct($id);
14
  add_filter('metaslider_flex_slider_parameters', array($this, 'enable_carousel_mode'), 10, 2);
15
  add_filter('metaslider_flex_slider_parameters', array($this, 'enable_easing'), 10, 2);
16
+ add_filter('metaslider_css', array($this, 'get_carousel_css'), 10, 3);
17
+
18
+ $this->carousel_item_margin = apply_filters('metaslider_carousel_margin', $this->carousel_item_margin, $id);
19
  }
20
 
 
21
  /**
22
  * Adjust the slider parameters so they're comparible with the carousel mode
23
  */
56
  /**
57
  * Return css to ensure our slides are rendered correctly in the carousel
58
  */
59
+ public function get_carousel_css($css, $settings, $slider_id) {
60
  if (isset($settings["carouselMode"]) && $settings['carouselMode'] == 'true') {
61
+ $css .= "\n#metaslider_{$slider_id}.flexslider li {margin-right: {$this->carousel_item_margin}px;}";
62
  }
63
+
64
+ return $css;
65
  }
66
 
67
  /**
93
  return false;
94
  }
95
 
96
+ /**
97
+ * Include slider assets
98
+ */
99
+ public function enqueue_scripts() {
100
+ parent::enqueue_scripts();
101
+ if ($this->get_setting('printJs') == 'true') {
102
+ wp_enqueue_script('metaslider-easing', METASLIDER_ASSETS_URL . 'easing/jQuery.easing.min.js', array('jquery'), METASLIDER_VERSION);
103
+ }
104
+ }
105
+
106
  /**
107
  * Build the HTML for a slider.
108
  *
109
  * @return string slider markup.
110
  */
111
  protected function get_html() {
112
+ $return_value = "<div id='" . $this->get_identifier() . "' class='flexslider'>";
113
+ $return_value .= "\n <ul class='slides'>";
114
 
115
  foreach ($this->slides as $slide) {
116
+ $return_value .= "\n <li style='display: none;'>\n " . $slide . "\n </li>";
 
117
  }
118
 
119
+ $return_value .= "\n </ul>";
120
+ $return_value .= "\n </div>";
121
 
122
  return $return_value;
123
  }
inc/slider/metaslider.nivo.class.php CHANGED
@@ -15,6 +15,7 @@ class MetaNivoSlider extends MetaSlider {
15
  parent::__construct($id);
16
 
17
  add_filter('metaslider_nivo_slider_parameters', array($this, 'set_autoplay_parameter'), 10, 2);
 
18
  }
19
 
20
  /**
@@ -67,16 +68,30 @@ class MetaNivoSlider extends MetaSlider {
67
  }
68
 
69
  /**
70
- * Include slider assets
71
  */
72
- public function enqueue_scripts() {
73
- parent::enqueue_scripts();
74
 
75
- // include the theme
76
  if ($this->get_setting('printCss') == 'true') {
77
- $theme = $this->get_setting('theme');
78
- wp_enqueue_style('ml-slider_nivo_slider_theme_' . $theme, METASLIDER_ASSETS_URL . "sliders/nivoslider/themes/{$theme}/{$theme}.css");
79
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
80
  }
81
 
82
  /**
@@ -85,15 +100,15 @@ class MetaNivoSlider extends MetaSlider {
85
  * @return string slider markup.
86
  */
87
  protected function get_html() {
88
- $retVal = "<div class='slider-wrapper theme-{$this->get_setting('theme')}'>";
89
- $retVal .= "<div class='ribbon'></div>";
90
- $retVal .= "<div id='" . $this->get_identifier() . "' class='nivoSlider'>";
91
 
92
  foreach ($this->slides as $slide) {
93
- $retVal .= $slide;
94
  }
95
 
96
- $retVal .= "</div></div>";
97
 
98
  return $retVal;
99
  }
15
  parent::__construct($id);
16
 
17
  add_filter('metaslider_nivo_slider_parameters', array($this, 'set_autoplay_parameter'), 10, 2);
18
+
19
  }
20
 
21
  /**
68
  }
69
 
70
  /**
71
+ *
72
  */
73
+ public function get_slider_css($css, $settings, $slider_id) {
74
+ $css = parent::get_slider_css($css, $settings, $slider_id);
75
 
 
76
  if ($this->get_setting('printCss') == 'true') {
77
+ $theme = $this->get_theme();
78
+ $css .= "\n @import url('" . METASLIDER_ASSETS_URL . "sliders/nivoslider/themes/{$theme}/{$theme}.css');";
79
  }
80
+
81
+ return $css;
82
+ }
83
+
84
+ /**
85
+ *
86
+ */
87
+ private function get_theme() {
88
+ $theme = $this->get_setting('theme');
89
+
90
+ if (!in_array($theme, array('dark', 'bar', 'light'))) {
91
+ $theme = 'default';
92
+ }
93
+
94
+ return $theme;
95
  }
96
 
97
  /**
100
  * @return string slider markup.
101
  */
102
  protected function get_html() {
103
+ $retVal = "<div class='slider-wrapper theme-{$this->get_theme()}'>";
104
+ $retVal .= "\n <div class='ribbon'></div>";
105
+ $retVal .= "\n <div id='" . $this->get_identifier() . "' class='nivoSlider'>";
106
 
107
  foreach ($this->slides as $slide) {
108
+ $retVal .= "\n " . $slide;
109
  }
110
 
111
+ $retVal .= "\n </div>\n </div>";
112
 
113
  return $retVal;
114
  }
inc/slider/metaslider.responsive.class.php CHANGED
@@ -43,14 +43,16 @@ class MetaResponsiveSlider extends MetaSlider {
43
 
44
  $first = true;
45
  foreach ($this->slides as $slide) {
 
 
46
  if (!$first) {
47
  $style = " style='display: none'";
48
  }
49
- $return_value .= "<li{$style}>" . $slide . "</li>";
50
  $first = false;
51
  }
52
 
53
- $return_value .= "</ul>";
54
 
55
  return $return_value;
56
  }
43
 
44
  $first = true;
45
  foreach ($this->slides as $slide) {
46
+ $style = "";
47
+
48
  if (!$first) {
49
  $style = " style='display: none'";
50
  }
51
+ $return_value .= "\n <li{$style}>\n" . $slide . "\n </li>";
52
  $first = false;
53
  }
54
 
55
+ $return_value .= "\n </ul>";
56
 
57
  return $return_value;
58
  }
languages/metaslider-es_ES.mo ADDED
Binary file
languages/metaslider-es_ES.po ADDED
@@ -0,0 +1,462 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: metaslider\n"
4
+ "POT-Creation-Date: 2013-06-28 14:00-0000\n"
5
+ "PO-Revision-Date: 2013-06-28 14:00-0000\n"
6
+ "Last-Translator: Miguel <contacto@eltipografico.com>\n"
7
+ "Language-Team: \n"
8
+ "MIME-Version: 1.0\n"
9
+ "Content-Type: text/plain; charset=UTF-8\n"
10
+ "Content-Transfer-Encoding: 8bit\n"
11
+ "X-Generator: Poedit 1.5.5\n"
12
+ "X-Poedit-KeywordsList: _;gettext;gettext_noop;__;_e\n"
13
+ "X-Poedit-Basepath: .\n"
14
+ "X-Poedit-SearchPath-0: .\n"
15
+ "X-Poedit-SearchPath-1: ..\n"
16
+
17
+ #: ../ml-slider.php:98
18
+ msgid "Go Pro"
19
+ msgstr "Comprar versión Pro"
20
+
21
+ #: ../ml-slider.php:142
22
+ msgid "Image"
23
+ msgstr "Imagen"
24
+
25
+ #: ../ml-slider.php:143
26
+ msgid "Add to slider"
27
+ msgstr "Añadir al pase"
28
+
29
+ #: ../ml-slider.php:162
30
+ msgid "More Slide Types"
31
+ msgstr "Más tipos de pases"
32
+
33
+ #: ../ml-slider.php:211 ../inc/slide/metaslide.image.class.php:49
34
+ msgid "URL"
35
+ msgstr "URL"
36
+
37
+ #: ../ml-slider.php:212 ../inc/slide/metaslide.image.class.php:47
38
+ msgid "Caption"
39
+ msgstr "Subtítulo"
40
+
41
+ #: ../ml-slider.php:213 ../inc/slide/metaslide.image.class.php:48
42
+ msgid "New Window"
43
+ msgstr "Nueva ventana"
44
+
45
+ #: ../ml-slider.php:214
46
+ msgid "Are you sure?"
47
+ msgstr "¿Estás seguro?"
48
+
49
+ #: ../ml-slider.php:217
50
+ msgid ""
51
+ "Caution: This setting is for advanced developers only. If you're unsure, "
52
+ "leave it checked."
53
+ msgstr ""
54
+ "Cuidado: Estos ajustes son solo para desarrolladores avanzados. Si tienes "
55
+ "dudas, déjalo marcado."
56
+
57
+ #: ../ml-slider.php:246
58
+ msgid "Upgrade to Pro $19"
59
+ msgstr ""
60
+
61
+ #: ../ml-slider.php:262
62
+ msgid "Documentation"
63
+ msgstr "Documentación"
64
+
65
+ #: ../ml-slider.php:383
66
+ msgid "New Slider"
67
+ msgstr "Nuevo pase"
68
+
69
+ #: ../ml-slider.php:476
70
+ msgid "Version"
71
+ msgstr "Versión"
72
+
73
+ #: ../ml-slider.php:477
74
+ msgid "Responsive"
75
+ msgstr "Responsibe"
76
+
77
+ #: ../ml-slider.php:478 ../ml-slider.php:482
78
+ msgid "Yes"
79
+ msgstr "Si"
80
+
81
+ #: ../ml-slider.php:478 ../ml-slider.php:482
82
+ msgid "No"
83
+ msgstr "No"
84
+
85
+ #: ../ml-slider.php:480 ../ml-slider.php:582
86
+ msgid "Size"
87
+ msgstr "Tamaño"
88
+
89
+ #: ../ml-slider.php:480
90
+ msgid "kb"
91
+ msgstr "kb"
92
+
93
+ #: ../ml-slider.php:481
94
+ msgid "Mobile Friendly"
95
+ msgstr "Apto para móviles"
96
+
97
+ #: ../ml-slider.php:529
98
+ msgid "Slides"
99
+ msgstr "Diapositivas"
100
+
101
+ #: ../ml-slider.php:532 ../ml-slider.php:533
102
+ msgid "Add Slide"
103
+ msgstr "Añadir diapositiva"
104
+
105
+ #: ../ml-slider.php:552
106
+ msgid "Settings"
107
+ msgstr "Ajustes"
108
+
109
+ #: ../ml-slider.php:553
110
+ msgid "Save"
111
+ msgstr "Guardar"
112
+
113
+ #: ../ml-slider.php:554
114
+ msgid "Save & Preview"
115
+ msgstr "Guardar y previsualizar"
116
+
117
+ #: ../ml-slider.php:581
118
+ msgid "Set the initial size for the slides (width x height)"
119
+ msgstr "Establecer el tamaño inicial para las dipositivas (ancho x alto)"
120
+
121
+ #: ../ml-slider.php:585
122
+ msgid "Width"
123
+ msgstr "Ancho"
124
+
125
+ #: ../ml-slider.php:586
126
+ msgid "Height"
127
+ msgstr "Alto"
128
+
129
+ #: ../ml-slider.php:590
130
+ msgid "Center align the slideshow"
131
+ msgstr "Centrar el pase de diapositvas"
132
+
133
+ #: ../ml-slider.php:591
134
+ msgid "Center align"
135
+ msgstr "Centrar"
136
+
137
+ #: ../ml-slider.php:598
138
+ msgid "Show slide navigation row"
139
+ msgstr "Mostrar la barra de navegación"
140
+
141
+ #: ../ml-slider.php:599
142
+ msgid "Controls"
143
+ msgstr "Controles"
144
+
145
+ #: ../ml-slider.php:602
146
+ msgid "Pager"
147
+ msgstr ""
148
+
149
+ #: ../ml-slider.php:603
150
+ msgid "Navigation"
151
+ msgstr ""
152
+
153
+ #: ../ml-slider.php:607
154
+ msgid "Slide transition effect"
155
+ msgstr "Efecto de la transición entre diapositivas"
156
+
157
+ #: ../ml-slider.php:608
158
+ msgid "Effect"
159
+ msgstr "Efecto"
160
+
161
+ #: ../ml-slider.php:612 ../ml-slider.php:722
162
+ msgid "Random"
163
+ msgstr "Aleatorio"
164
+
165
+ #: ../ml-slider.php:613
166
+ msgid "Swirl"
167
+ msgstr ""
168
+
169
+ #: ../ml-slider.php:614
170
+ msgid "Rain"
171
+ msgstr ""
172
+
173
+ #: ../ml-slider.php:615
174
+ msgid "Straight"
175
+ msgstr ""
176
+
177
+ #: ../ml-slider.php:616
178
+ #, fuzzy
179
+ msgid "Slide Down"
180
+ msgstr "Dirección del pase"
181
+
182
+ #: ../ml-slider.php:617
183
+ msgid "Slice Up"
184
+ msgstr ""
185
+
186
+ #: ../ml-slider.php:618
187
+ msgid "Slide Up Left"
188
+ msgstr ""
189
+
190
+ #: ../ml-slider.php:619
191
+ msgid "Slice Up Down"
192
+ msgstr ""
193
+
194
+ #: ../ml-slider.php:620
195
+ msgid "Slide Up Down Left"
196
+ msgstr ""
197
+
198
+ #: ../ml-slider.php:621
199
+ msgid "Fold"
200
+ msgstr ""
201
+
202
+ #: ../ml-slider.php:622
203
+ msgid "Fade"
204
+ msgstr ""
205
+
206
+ #: ../ml-slider.php:623
207
+ msgid "Slide In Right"
208
+ msgstr ""
209
+
210
+ #: ../ml-slider.php:624
211
+ #, fuzzy
212
+ msgid "Slide In Left"
213
+ msgstr "Efecto de la transición entre diapositivas"
214
+
215
+ #: ../ml-slider.php:625
216
+ #, fuzzy
217
+ msgid "Box Random"
218
+ msgstr "Aleatorio"
219
+
220
+ #: ../ml-slider.php:626
221
+ msgid "Box Rain"
222
+ msgstr ""
223
+
224
+ #: ../ml-slider.php:627
225
+ #, fuzzy
226
+ msgid "Box Rain Reverse"
227
+ msgstr "Invertir"
228
+
229
+ #: ../ml-slider.php:628
230
+ msgid "Box Rain Grow Reverse"
231
+ msgstr ""
232
+
233
+ #: ../ml-slider.php:629
234
+ #, fuzzy
235
+ msgid "Slide"
236
+ msgstr "Diapositivas"
237
+
238
+ #: ../ml-slider.php:634
239
+ msgid "Change the slider style"
240
+ msgstr "Cambar el estilo del pase"
241
+
242
+ #: ../ml-slider.php:635
243
+ msgid "Theme"
244
+ msgstr "Tema"
245
+
246
+ #: ../ml-slider.php:656
247
+ msgid "Advanced Settings"
248
+ msgstr "Ajustes avanzados"
249
+
250
+ #: ../ml-slider.php:659
251
+ msgid "Start the slideshow on page load"
252
+ msgstr "Comenzar el pase al cargar la página"
253
+
254
+ #: ../ml-slider.php:660
255
+ msgid "Auto play"
256
+ msgstr "Auto arranque"
257
+
258
+ #: ../ml-slider.php:667
259
+ msgid "Animation easing effect"
260
+ msgstr "Efecto de la animación suavizado"
261
+
262
+ #: ../ml-slider.php:668
263
+ msgid "Easing"
264
+ msgstr "Suavizado"
265
+
266
+ #: ../ml-slider.php:696
267
+ msgid "Select the sliding direction"
268
+ msgstr "Seleccionar la dirección del pase"
269
+
270
+ #: ../ml-slider.php:696
271
+ msgid "Slide direction"
272
+ msgstr "Dirección del pase"
273
+
274
+ #: ../ml-slider.php:699
275
+ msgid "Horizontal"
276
+ msgstr "Horizontal"
277
+
278
+ #: ../ml-slider.php:700
279
+ msgid "Vertical"
280
+ msgstr "Vertical"
281
+
282
+ #: ../ml-slider.php:705
283
+ msgid ""
284
+ "Smart Crop ensures your responsive slides are cropped to a ratio that "
285
+ "results in a consistent slideshow size"
286
+ msgstr ""
287
+ "El recorte inteligente asegura que tus pases responsive sean cortados en una "
288
+ "proporción correcta"
289
+
290
+ #: ../ml-slider.php:706
291
+ msgid "Smart crop"
292
+ msgstr "Recorte inteligente"
293
+
294
+ #: ../ml-slider.php:713
295
+ msgid ""
296
+ "Display as carousel - when selected the effect and direction options will be "
297
+ "ignored."
298
+ msgstr ""
299
+ "Mostar como carrusel - Cuando lo seleccionas, los efectos y ajusttes de "
300
+ "dirección son ignorados"
301
+
302
+ #: ../ml-slider.php:714
303
+ msgid "Carousel mode"
304
+ msgstr "Modo carrusel"
305
+
306
+ #: ../ml-slider.php:721
307
+ msgid "Randomise the order of the slides"
308
+ msgstr "Ordenar aleatoriamente las diapositivas"
309
+
310
+ #: ../ml-slider.php:729
311
+ msgid ""
312
+ "Pause the slideshow when hovering over slider, then resume when no longer "
313
+ "hovering"
314
+ msgstr ""
315
+ "Pausar el pase de diapositivas cuando el ratón se pose encima y continuar "
316
+ "con la reproducción cuando el ratón salga."
317
+
318
+ #: ../ml-slider.php:730
319
+ msgid "Hover pause"
320
+ msgstr "Pausar cuando situes el ratón encima"
321
+
322
+ #: ../ml-slider.php:737
323
+ msgid "Reverse the animation direction"
324
+ msgstr "Invertir orden de la animación"
325
+
326
+ #: ../ml-slider.php:738
327
+ msgid "Reverse"
328
+ msgstr "Invertir"
329
+
330
+ #: ../ml-slider.php:745
331
+ msgid "How long to display each slide, in milliseconds"
332
+ msgstr "Cuanto tiempo se muestra cada diapositiva en milisegundos"
333
+
334
+ #: ../ml-slider.php:746
335
+ msgid "Slide delay"
336
+ msgstr "Retraso de la diapositiva"
337
+
338
+ #: ../ml-slider.php:749 ../ml-slider.php:798 ../ml-slider.php:814
339
+ msgid "ms"
340
+ msgstr "ms"
341
+
342
+ #: ../ml-slider.php:753
343
+ msgid "Set the speed of animations, in milliseconds"
344
+ msgstr "Ajustar la duración de las animaciones en milisegundos"
345
+
346
+ #: ../ml-slider.php:754
347
+ msgid "Animation speed"
348
+ msgstr "Velocidad de la animación"
349
+
350
+ #: ../ml-slider.php:761
351
+ msgid "Number of squares (width x height)"
352
+ msgstr "Número de cuadros (ancho x alto)"
353
+
354
+ #: ../ml-slider.php:762
355
+ msgid "Number of squares"
356
+ msgstr "Nmúero de cuadros"
357
+
358
+ #: ../ml-slider.php:770 ../ml-slider.php:771
359
+ msgid "Number of slices"
360
+ msgstr "Número de cortes"
361
+
362
+ #: ../ml-slider.php:778
363
+ msgid "Set the text for the 'previous' direction item"
364
+ msgstr "Introducir el texto de \"anterior\" en la dirección del elemento"
365
+
366
+ #: ../ml-slider.php:779
367
+ msgid "Previous text"
368
+ msgstr "Texto \"previo\""
369
+
370
+ #: ../ml-slider.php:786
371
+ msgid "Set the text for the 'next' direction item"
372
+ msgstr "Introducir el texto de \"siguiente\" en la dirección del elemento"
373
+
374
+ #: ../ml-slider.php:787
375
+ msgid "Next text"
376
+ msgstr "Texto \"siguiente\""
377
+
378
+ #: ../ml-slider.php:794
379
+ msgid "Delay beetwen squares in ms"
380
+ msgstr "Retardo entre cuadros en ms"
381
+
382
+ #: ../ml-slider.php:795
383
+ msgid "Square delay"
384
+ msgstr "Retardo entre cuadros"
385
+
386
+ #: ../ml-slider.php:802
387
+ msgid "Opacity of title and navigation"
388
+ msgstr "Opacidad del título y navegación"
389
+
390
+ #: ../ml-slider.php:803
391
+ msgid "Opacity"
392
+ msgstr "Opacidad"
393
+
394
+ #: ../ml-slider.php:810
395
+ msgid "Set the fade in speed of the caption"
396
+ msgstr "Ajustar el fundido en la velocidad del subtítulo"
397
+
398
+ #: ../ml-slider.php:811
399
+ msgid "Caption speed"
400
+ msgstr "Velocidad del subtítulo"
401
+
402
+ #: ../ml-slider.php:818
403
+ msgid "Developer Options"
404
+ msgstr "Opciones de desarrollador"
405
+
406
+ #: ../ml-slider.php:821
407
+ msgid ""
408
+ "Specify any custom CSS Classes you would like to be added to the slider "
409
+ "wrapper"
410
+ msgstr "Añadir las clases CSS personalizadas en el pase de diapositivas"
411
+
412
+ #: ../ml-slider.php:822
413
+ msgid "CSS classes"
414
+ msgstr "Clases CSS"
415
+
416
+ #: ../ml-slider.php:829
417
+ msgid "Uncheck this is you would like to include your own CSS"
418
+ msgstr "Marca esta si quieres incluir tu propio CSS"
419
+
420
+ #: ../ml-slider.php:830
421
+ msgid "Print CSS"
422
+ msgstr "Imprimir CSS"
423
+
424
+ #: ../ml-slider.php:837
425
+ msgid "Uncheck this is you would like to include your own Javascript"
426
+ msgstr "Desmarca esto si quieres incluír tu propio javascript"
427
+
428
+ #: ../ml-slider.php:838
429
+ msgid "Print JS"
430
+ msgstr "Imprimir JS"
431
+
432
+ #: ../ml-slider.php:846
433
+ msgid "Delete Slider"
434
+ msgstr "Borrar pase"
435
+
436
+ #: ../ml-slider.php:855
437
+ msgid "Usage"
438
+ msgstr "Uso"
439
+
440
+ #: ../ml-slider.php:861
441
+ msgid "Shortcode"
442
+ msgstr "Shortcode"
443
+
444
+ #: ../ml-slider.php:867
445
+ msgid "Template Include"
446
+ msgstr "Template include"
447
+
448
+ #: ../inc/metaslider.widget.class.php:14
449
+ msgid "Meta Slider"
450
+ msgstr "Meta Slider"
451
+
452
+ #: ../inc/metaslider.widget.class.php:107
453
+ msgid "Title:"
454
+ msgstr ""
455
+
456
+ #: ../inc/metaslider.widget.class.php:110
457
+ msgid "Select Slider:"
458
+ msgstr "Seleccionar pase"
459
+
460
+ #: ../inc/metaslider.widget.class.php:120
461
+ msgid "No slideshows found"
462
+ msgstr "No se han encontrado pases de diapositiva"
languages/metaslider-fr_FR.mo CHANGED
Binary file
languages/metaslider-fr_FR.po CHANGED
@@ -1,356 +1,468 @@
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: metaslider\n"
4
- "POT-Creation-Date: 2013-04-13 15:30-0000\n"
5
- "PO-Revision-Date: 2013-04-23 11:38+0100\n"
6
  "Last-Translator: FB-graphiklab.com <referencement@fb-graphiklab.com>\n"
7
  "Language-Team: www.fb-graphiklab.com\n"
 
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
11
  "X-Generator: Poedit 1.5.5\n"
12
  "X-Poedit-KeywordsList: _;gettext;gettext_noop;__;_e\n"
13
  "X-Poedit-Basepath: .\n"
14
- "X-Poedit-Language: French\n"
15
- "X-Poedit-Country: FRANCE\n"
16
  "X-Poedit-SearchPath-0: .\n"
17
  "X-Poedit-SearchPath-1: ..\n"
18
 
19
- #: ../ml-slider.php:80
20
  msgid "Go Pro"
21
  msgstr "Passer Pro"
22
 
23
- #: ../ml-slider.php:127
24
  msgid "Image"
25
  msgstr "Image"
26
 
27
- #: ../ml-slider.php:128
28
  msgid "Add to slider"
29
  msgstr "Ajouter au diaporama"
30
 
31
- #: ../ml-slider.php:147
32
  msgid "More Slide Types"
33
  msgstr "Autres types de diapositive"
34
 
35
- #: ../ml-slider.php:193
36
- #: ../inc/slide/metaslide.image.class.php:49
37
  msgid "URL"
38
  msgstr "URL"
39
 
40
- #: ../ml-slider.php:194
41
- #: ../inc/slide/metaslide.image.class.php:47
42
  msgid "Caption"
43
  msgstr "Légende"
44
 
45
- #: ../ml-slider.php:195
46
- #: ../inc/slide/metaslide.image.class.php:48
47
  msgid "New Window"
48
  msgstr "Nouvelle fenêtre"
49
 
50
- #: ../ml-slider.php:196
51
  msgid "Are you sure?"
52
  msgstr "Êtes vous sûr ?"
53
 
54
- #: ../ml-slider.php:229
 
 
 
 
 
 
 
 
 
 
55
  msgid "Documentation"
56
  msgstr "Documentation"
57
 
58
- #: ../ml-slider.php:236
59
- msgid "Support Meta Slider"
60
- msgstr "Soutenir Meta Slider"
61
-
62
- #: ../ml-slider.php:351
63
  msgid "New Slider"
64
  msgstr "Nouveau diaporama"
65
 
66
- #: ../ml-slider.php:443
67
  msgid "Version"
68
  msgstr "Version"
69
 
70
- #: ../ml-slider.php:444
71
  msgid "Responsive"
72
  msgstr "Responsive"
73
 
74
- #: ../ml-slider.php:445
75
- #: ../ml-slider.php:449
76
  msgid "Yes"
77
  msgstr "Oui"
78
 
79
- #: ../ml-slider.php:445
80
- #: ../ml-slider.php:449
81
  msgid "No"
82
  msgstr "Non"
83
 
84
- #: ../ml-slider.php:447
85
- #: ../ml-slider.php:548
86
  msgid "Size"
87
  msgstr "Taille"
88
 
89
- #: ../ml-slider.php:447
90
  msgid "kb"
91
  msgstr "kb"
92
 
93
- #: ../ml-slider.php:448
94
  msgid "Mobile Friendly"
95
  msgstr "Compatible Mobiles"
96
 
97
- #: ../ml-slider.php:495
98
  msgid "Slides"
99
  msgstr "Diapositives"
100
 
101
- #: ../ml-slider.php:498
102
- #: ../ml-slider.php:499
103
  msgid "Add Slide"
104
  msgstr "Ajouter une diapositive"
105
 
106
- #: ../ml-slider.php:518
107
  msgid "Settings"
108
  msgstr "Paramètres"
109
 
110
- #: ../ml-slider.php:519
111
  msgid "Save"
112
  msgstr "Sauver"
113
 
114
- #: ../ml-slider.php:520
115
  msgid "Save & Preview"
116
  msgstr "Sauver & Prévisualiser"
117
 
118
- #: ../ml-slider.php:547
119
  msgid "Set the initial size for the slides (width x height)"
120
  msgstr "Définissez la taille initiale des diapositives (largeur x hauteur)"
121
 
122
- #: ../ml-slider.php:551
123
  msgid "Width"
124
  msgstr "Largeur"
125
 
126
- #: ../ml-slider.php:552
127
  msgid "Height"
128
  msgstr "Hauteur"
129
 
130
- #: ../ml-slider.php:556
131
  msgid "Center align the slideshow"
132
  msgstr "Alignement central du diaporama"
133
 
134
- #: ../ml-slider.php:557
135
  msgid "Center align"
136
  msgstr "Alignement central"
137
 
138
- #: ../ml-slider.php:564
139
  msgid "Show slide navigation row"
140
  msgstr "Montrer la rangée de navigation du diaporama"
141
 
142
- #: ../ml-slider.php:565
143
  msgid "Controls"
144
  msgstr "Contrôles"
145
 
146
- #: ../ml-slider.php:573
 
 
 
 
 
 
 
 
147
  msgid "Slide transition effect"
148
  msgstr "Effet de transition des diapositives"
149
 
150
- #: ../ml-slider.php:574
151
  msgid "Effect"
152
  msgstr "Effet"
153
 
154
- #: ../ml-slider.php:600
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
155
  msgid "Change the slider style"
156
  msgstr "Changer le style du diaporama"
157
 
158
- #: ../ml-slider.php:601
159
  msgid "Theme"
160
  msgstr "Thème"
161
 
162
- #: ../ml-slider.php:613
163
  msgid "Advanced Settings"
164
  msgstr "Paramètres avancés"
165
 
166
- #: ../ml-slider.php:616
167
  msgid "Start the slideshow on page load"
168
  msgstr "Démarrer le diaporama au chargement de la page"
169
 
170
- #: ../ml-slider.php:617
171
  msgid "Auto play"
172
  msgstr "Lecture auto"
173
 
174
- #: ../ml-slider.php:624
175
  msgid "Animation easing effect"
176
  msgstr "Effet \"easing\" de l'animation"
177
 
178
- #: ../ml-slider.php:625
179
  msgid "Easing"
180
  msgstr "Easing"
181
 
182
- #: ../ml-slider.php:653
183
  msgid "Select the sliding direction"
184
  msgstr "Choisissez le sens du défilement"
185
 
186
- #: ../ml-slider.php:653
187
  msgid "Slide direction"
188
  msgstr "Sens du défilement"
189
 
190
- #: ../ml-slider.php:656
191
  msgid "Horizontal"
192
  msgstr "Horizontal"
193
 
194
- #: ../ml-slider.php:657
195
  msgid "Vertical"
196
  msgstr "Vertical"
197
 
198
- #: ../ml-slider.php:662
199
- msgid "Smart Crop ensures your responsive slides are cropped to a ratio that results in a consistent slideshow size"
200
- msgstr "Cadrage intelligent veille à ce que les diapositives \"responsives\" soient recadrés à un ratio qui aboutit à une taille compatible avec celle du diaporama"
 
 
 
 
 
201
 
202
- #: ../ml-slider.php:663
203
  msgid "Smart crop"
204
  msgstr "Cadrage intelligent"
205
 
206
- #: ../ml-slider.php:670
207
- msgid "Display as carousel - when selected the effect and direction options will be ignored."
208
- msgstr "Afficher sous forme de carrousel - lorsque sélectionné l'effet et les options de direction seront ignorées."
 
 
 
 
209
 
210
- #: ../ml-slider.php:671
211
  msgid "Carousel mode"
212
  msgstr "Mode carrousel"
213
 
214
- #: ../ml-slider.php:678
215
  msgid "Randomise the order of the slides"
216
  msgstr "Aléatorisation de l'ordre des diapositives"
217
 
218
- #: ../ml-slider.php:679
219
- msgid "Random"
220
- msgstr "Aléatoire"
221
-
222
- #: ../ml-slider.php:686
223
- msgid "Pause the slideshow when hovering over slider, then resume when no longer hovering"
224
- msgstr "Mettre le diaporama en pause au survol, puis reprendre lorsqu'il ne l'est plus"
225
 
226
- #: ../ml-slider.php:687
227
  msgid "Hover pause"
228
  msgstr "Pause au survol"
229
 
230
- #: ../ml-slider.php:694
231
  msgid "Reverse the animation direction"
232
  msgstr "Inverser le sens de l'animation"
233
 
234
- #: ../ml-slider.php:695
235
  msgid "Reverse"
236
  msgstr "Inverser"
237
 
238
- #: ../ml-slider.php:702
239
  msgid "How long to display each slide, in milliseconds"
240
  msgstr "Durée d'affichage de chaque diapositive, en millisecondes"
241
 
242
- #: ../ml-slider.php:703
243
  msgid "Slide delay"
244
  msgstr "Délai entre les diapositives"
245
 
246
- #: ../ml-slider.php:706
247
- #: ../ml-slider.php:755
248
- #: ../ml-slider.php:771
249
  msgid "ms"
250
  msgstr "ms"
251
 
252
- #: ../ml-slider.php:710
253
  msgid "Set the speed of animations, in milliseconds"
254
  msgstr "Définir la vitesse des animations, en millisecondes"
255
 
256
- #: ../ml-slider.php:711
257
  msgid "Animation speed"
258
  msgstr "Vitesse d'animation"
259
 
260
- #: ../ml-slider.php:718
261
  msgid "Number of squares (width x height)"
262
  msgstr "Nombre de carrés (largeur x hauteur)"
263
 
264
- #: ../ml-slider.php:719
265
  msgid "Number of squares"
266
  msgstr "Nombre de carrés"
267
 
268
- #: ../ml-slider.php:727
269
- #: ../ml-slider.php:728
270
  msgid "Number of slices"
271
  msgstr "Nombre de tranches"
272
 
273
- #: ../ml-slider.php:735
274
  msgid "Set the text for the 'previous' direction item"
275
  msgstr "Définir le texte pour l'élément de direction «précédent»"
276
 
277
- #: ../ml-slider.php:736
278
  msgid "Previous text"
279
  msgstr "Précédent"
280
 
281
- #: ../ml-slider.php:743
282
  msgid "Set the text for the 'next' direction item"
283
  msgstr "Définir le texte pour l'élément de direction «suivant»"
284
 
285
- #: ../ml-slider.php:744
286
  msgid "Next text"
287
  msgstr "Suivant"
288
 
289
- #: ../ml-slider.php:751
290
  msgid "Delay beetwen squares in ms"
291
  msgstr "Délai entre les carrés en millisecondes"
292
 
293
- #: ../ml-slider.php:752
294
  msgid "Square delay"
295
  msgstr "Délai entre les carrés"
296
 
297
- #: ../ml-slider.php:759
298
  msgid "Opacity of title and navigation"
299
  msgstr "Opacité du titre et de la navigation"
300
 
301
- #: ../ml-slider.php:760
302
  msgid "Opacity"
303
  msgstr "Opacité"
304
 
305
- #: ../ml-slider.php:767
306
- msgid "Set the fade in speef of the caption"
 
307
  msgstr "Régler le fondu de la vitesse de la légende"
308
 
309
- #: ../ml-slider.php:768
310
  msgid "Caption speed"
311
  msgstr "Vitesse de la légende"
312
 
313
- #: ../ml-slider.php:775
314
  msgid "Developer Options"
315
  msgstr "Options pour les développeurs"
316
 
317
- #: ../ml-slider.php:778
318
- msgid "Specify any custom CSS Classes you would like to be added to the slider wrapper"
319
- msgstr "Spécifiez des classes CSS personnalisés que vous souhaitez ajouter à l'enveloppe (wrapper) du diaporama"
 
 
 
 
320
 
321
- #: ../ml-slider.php:779
322
  msgid "CSS classes"
323
  msgstr "Classes CSS"
324
 
325
- #: ../ml-slider.php:786
326
  msgid "Uncheck this is you would like to include your own CSS"
327
  msgstr "Décochez ceci si vous souhaitez inclure votre propre CSS"
328
 
329
- #: ../ml-slider.php:787
330
  msgid "Print CSS"
331
  msgstr "Imprimer CSS"
332
 
333
- #: ../ml-slider.php:794
334
  msgid "Uncheck this is you would like to include your own Javascript"
335
  msgstr "Décochez ceci si vous souhaitez inclure votre propre Javascript"
336
 
337
- #: ../ml-slider.php:795
338
  msgid "Print JS"
339
  msgstr "Imprimer JS"
340
 
341
- #: ../ml-slider.php:806
 
 
 
 
342
  msgid "Usage"
343
  msgstr "Utilisation"
344
 
345
- #: ../ml-slider.php:812
346
  msgid "Shortcode"
347
  msgstr "Shortcode"
348
 
349
- #: ../ml-slider.php:818
350
  msgid "Template Include"
351
  msgstr "Inclusion template"
352
 
353
- #: ../ml-slider.php:828
354
- msgid "Delete Slider"
355
- msgstr "Effacer diaporama"
 
 
 
 
 
 
 
 
 
 
 
 
356
 
 
 
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: metaslider\n"
4
+ "POT-Creation-Date: 2013-06-28 14:01-0000\n"
5
+ "PO-Revision-Date: 2013-06-28 14:01-0000\n"
6
  "Last-Translator: FB-graphiklab.com <referencement@fb-graphiklab.com>\n"
7
  "Language-Team: www.fb-graphiklab.com\n"
8
+ "Language: fr_FR\n"
9
  "MIME-Version: 1.0\n"
10
  "Content-Type: text/plain; charset=UTF-8\n"
11
  "Content-Transfer-Encoding: 8bit\n"
12
  "X-Generator: Poedit 1.5.5\n"
13
  "X-Poedit-KeywordsList: _;gettext;gettext_noop;__;_e\n"
14
  "X-Poedit-Basepath: .\n"
 
 
15
  "X-Poedit-SearchPath-0: .\n"
16
  "X-Poedit-SearchPath-1: ..\n"
17
 
18
+ #: ../ml-slider.php:98
19
  msgid "Go Pro"
20
  msgstr "Passer Pro"
21
 
22
+ #: ../ml-slider.php:142
23
  msgid "Image"
24
  msgstr "Image"
25
 
26
+ #: ../ml-slider.php:143
27
  msgid "Add to slider"
28
  msgstr "Ajouter au diaporama"
29
 
30
+ #: ../ml-slider.php:162
31
  msgid "More Slide Types"
32
  msgstr "Autres types de diapositive"
33
 
34
+ #: ../ml-slider.php:211 ../inc/slide/metaslide.image.class.php:49
 
35
  msgid "URL"
36
  msgstr "URL"
37
 
38
+ #: ../ml-slider.php:212 ../inc/slide/metaslide.image.class.php:47
 
39
  msgid "Caption"
40
  msgstr "Légende"
41
 
42
+ #: ../ml-slider.php:213 ../inc/slide/metaslide.image.class.php:48
 
43
  msgid "New Window"
44
  msgstr "Nouvelle fenêtre"
45
 
46
+ #: ../ml-slider.php:214
47
  msgid "Are you sure?"
48
  msgstr "Êtes vous sûr ?"
49
 
50
+ #: ../ml-slider.php:217
51
+ msgid ""
52
+ "Caution: This setting is for advanced developers only. If you're unsure, "
53
+ "leave it checked."
54
+ msgstr ""
55
+
56
+ #: ../ml-slider.php:246
57
+ msgid "Upgrade to Pro $19"
58
+ msgstr ""
59
+
60
+ #: ../ml-slider.php:262
61
  msgid "Documentation"
62
  msgstr "Documentation"
63
 
64
+ #: ../ml-slider.php:383
 
 
 
 
65
  msgid "New Slider"
66
  msgstr "Nouveau diaporama"
67
 
68
+ #: ../ml-slider.php:476
69
  msgid "Version"
70
  msgstr "Version"
71
 
72
+ #: ../ml-slider.php:477
73
  msgid "Responsive"
74
  msgstr "Responsive"
75
 
76
+ #: ../ml-slider.php:478 ../ml-slider.php:482
 
77
  msgid "Yes"
78
  msgstr "Oui"
79
 
80
+ #: ../ml-slider.php:478 ../ml-slider.php:482
 
81
  msgid "No"
82
  msgstr "Non"
83
 
84
+ #: ../ml-slider.php:480 ../ml-slider.php:582
 
85
  msgid "Size"
86
  msgstr "Taille"
87
 
88
+ #: ../ml-slider.php:480
89
  msgid "kb"
90
  msgstr "kb"
91
 
92
+ #: ../ml-slider.php:481
93
  msgid "Mobile Friendly"
94
  msgstr "Compatible Mobiles"
95
 
96
+ #: ../ml-slider.php:529
97
  msgid "Slides"
98
  msgstr "Diapositives"
99
 
100
+ #: ../ml-slider.php:532 ../ml-slider.php:533
 
101
  msgid "Add Slide"
102
  msgstr "Ajouter une diapositive"
103
 
104
+ #: ../ml-slider.php:552
105
  msgid "Settings"
106
  msgstr "Paramètres"
107
 
108
+ #: ../ml-slider.php:553
109
  msgid "Save"
110
  msgstr "Sauver"
111
 
112
+ #: ../ml-slider.php:554
113
  msgid "Save & Preview"
114
  msgstr "Sauver & Prévisualiser"
115
 
116
+ #: ../ml-slider.php:581
117
  msgid "Set the initial size for the slides (width x height)"
118
  msgstr "Définissez la taille initiale des diapositives (largeur x hauteur)"
119
 
120
+ #: ../ml-slider.php:585
121
  msgid "Width"
122
  msgstr "Largeur"
123
 
124
+ #: ../ml-slider.php:586
125
  msgid "Height"
126
  msgstr "Hauteur"
127
 
128
+ #: ../ml-slider.php:590
129
  msgid "Center align the slideshow"
130
  msgstr "Alignement central du diaporama"
131
 
132
+ #: ../ml-slider.php:591
133
  msgid "Center align"
134
  msgstr "Alignement central"
135
 
136
+ #: ../ml-slider.php:598
137
  msgid "Show slide navigation row"
138
  msgstr "Montrer la rangée de navigation du diaporama"
139
 
140
+ #: ../ml-slider.php:599
141
  msgid "Controls"
142
  msgstr "Contrôles"
143
 
144
+ #: ../ml-slider.php:602
145
+ msgid "Pager"
146
+ msgstr ""
147
+
148
+ #: ../ml-slider.php:603
149
+ msgid "Navigation"
150
+ msgstr ""
151
+
152
+ #: ../ml-slider.php:607
153
  msgid "Slide transition effect"
154
  msgstr "Effet de transition des diapositives"
155
 
156
+ #: ../ml-slider.php:608
157
  msgid "Effect"
158
  msgstr "Effet"
159
 
160
+ #: ../ml-slider.php:612 ../ml-slider.php:722
161
+ msgid "Random"
162
+ msgstr "Aléatoire"
163
+
164
+ #: ../ml-slider.php:613
165
+ msgid "Swirl"
166
+ msgstr ""
167
+
168
+ #: ../ml-slider.php:614
169
+ msgid "Rain"
170
+ msgstr ""
171
+
172
+ #: ../ml-slider.php:615
173
+ msgid "Straight"
174
+ msgstr ""
175
+
176
+ #: ../ml-slider.php:616
177
+ #, fuzzy
178
+ msgid "Slide Down"
179
+ msgstr "Sens du défilement"
180
+
181
+ #: ../ml-slider.php:617
182
+ msgid "Slice Up"
183
+ msgstr ""
184
+
185
+ #: ../ml-slider.php:618
186
+ msgid "Slide Up Left"
187
+ msgstr ""
188
+
189
+ #: ../ml-slider.php:619
190
+ msgid "Slice Up Down"
191
+ msgstr ""
192
+
193
+ #: ../ml-slider.php:620
194
+ msgid "Slide Up Down Left"
195
+ msgstr ""
196
+
197
+ #: ../ml-slider.php:621
198
+ msgid "Fold"
199
+ msgstr ""
200
+
201
+ #: ../ml-slider.php:622
202
+ msgid "Fade"
203
+ msgstr ""
204
+
205
+ #: ../ml-slider.php:623
206
+ msgid "Slide In Right"
207
+ msgstr ""
208
+
209
+ #: ../ml-slider.php:624
210
+ #, fuzzy
211
+ msgid "Slide In Left"
212
+ msgstr "Effet de transition des diapositives"
213
+
214
+ #: ../ml-slider.php:625
215
+ #, fuzzy
216
+ msgid "Box Random"
217
+ msgstr "Aléatoire"
218
+
219
+ #: ../ml-slider.php:626
220
+ msgid "Box Rain"
221
+ msgstr ""
222
+
223
+ #: ../ml-slider.php:627
224
+ #, fuzzy
225
+ msgid "Box Rain Reverse"
226
+ msgstr "Inverser"
227
+
228
+ #: ../ml-slider.php:628
229
+ msgid "Box Rain Grow Reverse"
230
+ msgstr ""
231
+
232
+ #: ../ml-slider.php:629
233
+ #, fuzzy
234
+ msgid "Slide"
235
+ msgstr "Diapositives"
236
+
237
+ #: ../ml-slider.php:634
238
  msgid "Change the slider style"
239
  msgstr "Changer le style du diaporama"
240
 
241
+ #: ../ml-slider.php:635
242
  msgid "Theme"
243
  msgstr "Thème"
244
 
245
+ #: ../ml-slider.php:656
246
  msgid "Advanced Settings"
247
  msgstr "Paramètres avancés"
248
 
249
+ #: ../ml-slider.php:659
250
  msgid "Start the slideshow on page load"
251
  msgstr "Démarrer le diaporama au chargement de la page"
252
 
253
+ #: ../ml-slider.php:660
254
  msgid "Auto play"
255
  msgstr "Lecture auto"
256
 
257
+ #: ../ml-slider.php:667
258
  msgid "Animation easing effect"
259
  msgstr "Effet \"easing\" de l'animation"
260
 
261
+ #: ../ml-slider.php:668
262
  msgid "Easing"
263
  msgstr "Easing"
264
 
265
+ #: ../ml-slider.php:696
266
  msgid "Select the sliding direction"
267
  msgstr "Choisissez le sens du défilement"
268
 
269
+ #: ../ml-slider.php:696
270
  msgid "Slide direction"
271
  msgstr "Sens du défilement"
272
 
273
+ #: ../ml-slider.php:699
274
  msgid "Horizontal"
275
  msgstr "Horizontal"
276
 
277
+ #: ../ml-slider.php:700
278
  msgid "Vertical"
279
  msgstr "Vertical"
280
 
281
+ #: ../ml-slider.php:705
282
+ msgid ""
283
+ "Smart Crop ensures your responsive slides are cropped to a ratio that "
284
+ "results in a consistent slideshow size"
285
+ msgstr ""
286
+ "Cadrage intelligent veille à ce que les diapositives \"responsives\" soient "
287
+ "recadrés à un ratio qui aboutit à une taille compatible avec celle du "
288
+ "diaporama"
289
 
290
+ #: ../ml-slider.php:706
291
  msgid "Smart crop"
292
  msgstr "Cadrage intelligent"
293
 
294
+ #: ../ml-slider.php:713
295
+ msgid ""
296
+ "Display as carousel - when selected the effect and direction options will be "
297
+ "ignored."
298
+ msgstr ""
299
+ "Afficher sous forme de carrousel - lorsque sélectionné l'effet et les "
300
+ "options de direction seront ignorées."
301
 
302
+ #: ../ml-slider.php:714
303
  msgid "Carousel mode"
304
  msgstr "Mode carrousel"
305
 
306
+ #: ../ml-slider.php:721
307
  msgid "Randomise the order of the slides"
308
  msgstr "Aléatorisation de l'ordre des diapositives"
309
 
310
+ #: ../ml-slider.php:729
311
+ msgid ""
312
+ "Pause the slideshow when hovering over slider, then resume when no longer "
313
+ "hovering"
314
+ msgstr ""
315
+ "Mettre le diaporama en pause au survol, puis reprendre lorsqu'il ne l'est "
316
+ "plus"
317
 
318
+ #: ../ml-slider.php:730
319
  msgid "Hover pause"
320
  msgstr "Pause au survol"
321
 
322
+ #: ../ml-slider.php:737
323
  msgid "Reverse the animation direction"
324
  msgstr "Inverser le sens de l'animation"
325
 
326
+ #: ../ml-slider.php:738
327
  msgid "Reverse"
328
  msgstr "Inverser"
329
 
330
+ #: ../ml-slider.php:745
331
  msgid "How long to display each slide, in milliseconds"
332
  msgstr "Durée d'affichage de chaque diapositive, en millisecondes"
333
 
334
+ #: ../ml-slider.php:746
335
  msgid "Slide delay"
336
  msgstr "Délai entre les diapositives"
337
 
338
+ #: ../ml-slider.php:749 ../ml-slider.php:798 ../ml-slider.php:814
 
 
339
  msgid "ms"
340
  msgstr "ms"
341
 
342
+ #: ../ml-slider.php:753
343
  msgid "Set the speed of animations, in milliseconds"
344
  msgstr "Définir la vitesse des animations, en millisecondes"
345
 
346
+ #: ../ml-slider.php:754
347
  msgid "Animation speed"
348
  msgstr "Vitesse d'animation"
349
 
350
+ #: ../ml-slider.php:761
351
  msgid "Number of squares (width x height)"
352
  msgstr "Nombre de carrés (largeur x hauteur)"
353
 
354
+ #: ../ml-slider.php:762
355
  msgid "Number of squares"
356
  msgstr "Nombre de carrés"
357
 
358
+ #: ../ml-slider.php:770 ../ml-slider.php:771
 
359
  msgid "Number of slices"
360
  msgstr "Nombre de tranches"
361
 
362
+ #: ../ml-slider.php:778
363
  msgid "Set the text for the 'previous' direction item"
364
  msgstr "Définir le texte pour l'élément de direction «précédent»"
365
 
366
+ #: ../ml-slider.php:779
367
  msgid "Previous text"
368
  msgstr "Précédent"
369
 
370
+ #: ../ml-slider.php:786
371
  msgid "Set the text for the 'next' direction item"
372
  msgstr "Définir le texte pour l'élément de direction «suivant»"
373
 
374
+ #: ../ml-slider.php:787
375
  msgid "Next text"
376
  msgstr "Suivant"
377
 
378
+ #: ../ml-slider.php:794
379
  msgid "Delay beetwen squares in ms"
380
  msgstr "Délai entre les carrés en millisecondes"
381
 
382
+ #: ../ml-slider.php:795
383
  msgid "Square delay"
384
  msgstr "Délai entre les carrés"
385
 
386
+ #: ../ml-slider.php:802
387
  msgid "Opacity of title and navigation"
388
  msgstr "Opacité du titre et de la navigation"
389
 
390
+ #: ../ml-slider.php:803
391
  msgid "Opacity"
392
  msgstr "Opacité"
393
 
394
+ #: ../ml-slider.php:810
395
+ #, fuzzy
396
+ msgid "Set the fade in speed of the caption"
397
  msgstr "Régler le fondu de la vitesse de la légende"
398
 
399
+ #: ../ml-slider.php:811
400
  msgid "Caption speed"
401
  msgstr "Vitesse de la légende"
402
 
403
+ #: ../ml-slider.php:818
404
  msgid "Developer Options"
405
  msgstr "Options pour les développeurs"
406
 
407
+ #: ../ml-slider.php:821
408
+ msgid ""
409
+ "Specify any custom CSS Classes you would like to be added to the slider "
410
+ "wrapper"
411
+ msgstr ""
412
+ "Spécifiez des classes CSS personnalisés que vous souhaitez ajouter à "
413
+ "l'enveloppe (wrapper) du diaporama"
414
 
415
+ #: ../ml-slider.php:822
416
  msgid "CSS classes"
417
  msgstr "Classes CSS"
418
 
419
+ #: ../ml-slider.php:829
420
  msgid "Uncheck this is you would like to include your own CSS"
421
  msgstr "Décochez ceci si vous souhaitez inclure votre propre CSS"
422
 
423
+ #: ../ml-slider.php:830
424
  msgid "Print CSS"
425
  msgstr "Imprimer CSS"
426
 
427
+ #: ../ml-slider.php:837
428
  msgid "Uncheck this is you would like to include your own Javascript"
429
  msgstr "Décochez ceci si vous souhaitez inclure votre propre Javascript"
430
 
431
+ #: ../ml-slider.php:838
432
  msgid "Print JS"
433
  msgstr "Imprimer JS"
434
 
435
+ #: ../ml-slider.php:846
436
+ msgid "Delete Slider"
437
+ msgstr "Effacer diaporama"
438
+
439
+ #: ../ml-slider.php:855
440
  msgid "Usage"
441
  msgstr "Utilisation"
442
 
443
+ #: ../ml-slider.php:861
444
  msgid "Shortcode"
445
  msgstr "Shortcode"
446
 
447
+ #: ../ml-slider.php:867
448
  msgid "Template Include"
449
  msgstr "Inclusion template"
450
 
451
+ #: ../inc/metaslider.widget.class.php:14
452
+ msgid "Meta Slider"
453
+ msgstr "Meta Slider"
454
+
455
+ #: ../inc/metaslider.widget.class.php:107
456
+ msgid "Title:"
457
+ msgstr ""
458
+
459
+ #: ../inc/metaslider.widget.class.php:110
460
+ msgid "Select Slider:"
461
+ msgstr ""
462
+
463
+ #: ../inc/metaslider.widget.class.php:120
464
+ msgid "No slideshows found"
465
+ msgstr ""
466
 
467
+ #~ msgid "Support Meta Slider"
468
+ #~ msgstr "Soutenir Meta Slider"
languages/metaslider.mo CHANGED
Binary file
languages/metaslider.po CHANGED
@@ -1,8 +1,8 @@
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: metaslider\n"
4
- "POT-Creation-Date: 2013-04-13 15:30-0000\n"
5
- "PO-Revision-Date: 2013-04-13 15:31-0000\n"
6
  "Last-Translator: \n"
7
  "Language-Team: \n"
8
  "MIME-Version: 1.0\n"
@@ -14,338 +14,436 @@ msgstr ""
14
  "X-Poedit-SearchPath-0: .\n"
15
  "X-Poedit-SearchPath-1: ..\n"
16
 
17
- #: ../ml-slider.php:80
18
  msgid "Go Pro"
19
  msgstr ""
20
 
21
- #: ../ml-slider.php:127
22
  msgid "Image"
23
  msgstr ""
24
 
25
- #: ../ml-slider.php:128
26
  msgid "Add to slider"
27
  msgstr ""
28
 
29
- #: ../ml-slider.php:147
30
  msgid "More Slide Types"
31
  msgstr ""
32
 
33
- #: ../ml-slider.php:193 ../inc/slide/metaslide.image.class.php:49
34
  msgid "URL"
35
  msgstr ""
36
 
37
- #: ../ml-slider.php:194 ../inc/slide/metaslide.image.class.php:47
38
  msgid "Caption"
39
  msgstr ""
40
 
41
- #: ../ml-slider.php:195 ../inc/slide/metaslide.image.class.php:48
42
  msgid "New Window"
43
  msgstr ""
44
 
45
- #: ../ml-slider.php:196
46
  msgid "Are you sure?"
47
  msgstr ""
48
 
49
- #: ../ml-slider.php:229
50
- msgid "Documentation"
 
 
 
 
 
 
51
  msgstr ""
52
 
53
- #: ../ml-slider.php:236
54
- msgid "Support Meta Slider"
55
  msgstr ""
56
 
57
- #: ../ml-slider.php:351
58
  msgid "New Slider"
59
  msgstr ""
60
 
61
- #: ../ml-slider.php:443
62
  msgid "Version"
63
  msgstr ""
64
 
65
- #: ../ml-slider.php:444
66
  msgid "Responsive"
67
  msgstr ""
68
 
69
- #: ../ml-slider.php:445 ../ml-slider.php:449
70
  msgid "Yes"
71
  msgstr ""
72
 
73
- #: ../ml-slider.php:445 ../ml-slider.php:449
74
  msgid "No"
75
  msgstr ""
76
 
77
- #: ../ml-slider.php:447 ../ml-slider.php:548
78
  msgid "Size"
79
  msgstr ""
80
 
81
- #: ../ml-slider.php:447
82
  msgid "kb"
83
  msgstr ""
84
 
85
- #: ../ml-slider.php:448
86
  msgid "Mobile Friendly"
87
  msgstr ""
88
 
89
- #: ../ml-slider.php:495
90
  msgid "Slides"
91
  msgstr ""
92
 
93
- #: ../ml-slider.php:498 ../ml-slider.php:499
94
  msgid "Add Slide"
95
  msgstr ""
96
 
97
- #: ../ml-slider.php:518
98
  msgid "Settings"
99
  msgstr ""
100
 
101
- #: ../ml-slider.php:519
102
  msgid "Save"
103
  msgstr ""
104
 
105
- #: ../ml-slider.php:520
106
  msgid "Save & Preview"
107
  msgstr ""
108
 
109
- #: ../ml-slider.php:547
110
  msgid "Set the initial size for the slides (width x height)"
111
  msgstr ""
112
 
113
- #: ../ml-slider.php:551
114
  msgid "Width"
115
  msgstr ""
116
 
117
- #: ../ml-slider.php:552
118
  msgid "Height"
119
  msgstr ""
120
 
121
- #: ../ml-slider.php:556
122
  msgid "Center align the slideshow"
123
  msgstr ""
124
 
125
- #: ../ml-slider.php:557
126
  msgid "Center align"
127
  msgstr ""
128
 
129
- #: ../ml-slider.php:564
130
  msgid "Show slide navigation row"
131
  msgstr ""
132
 
133
- #: ../ml-slider.php:565
134
  msgid "Controls"
135
  msgstr ""
136
 
137
- #: ../ml-slider.php:573
 
 
 
 
 
 
 
 
138
  msgid "Slide transition effect"
139
  msgstr ""
140
 
141
- #: ../ml-slider.php:574
142
  msgid "Effect"
143
  msgstr ""
144
 
145
- #: ../ml-slider.php:600
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
146
  msgid "Change the slider style"
147
  msgstr ""
148
 
149
- #: ../ml-slider.php:601
150
  msgid "Theme"
151
  msgstr ""
152
 
153
- #: ../ml-slider.php:613
154
  msgid "Advanced Settings"
155
  msgstr ""
156
 
157
- #: ../ml-slider.php:616
158
  msgid "Start the slideshow on page load"
159
  msgstr ""
160
 
161
- #: ../ml-slider.php:617
162
  msgid "Auto play"
163
  msgstr ""
164
 
165
- #: ../ml-slider.php:624
166
  msgid "Animation easing effect"
167
  msgstr ""
168
 
169
- #: ../ml-slider.php:625
170
  msgid "Easing"
171
  msgstr ""
172
 
173
- #: ../ml-slider.php:653
174
  msgid "Select the sliding direction"
175
  msgstr ""
176
 
177
- #: ../ml-slider.php:653
178
  msgid "Slide direction"
179
  msgstr ""
180
 
181
- #: ../ml-slider.php:656
182
  msgid "Horizontal"
183
  msgstr ""
184
 
185
- #: ../ml-slider.php:657
186
  msgid "Vertical"
187
  msgstr ""
188
 
189
- #: ../ml-slider.php:662
190
  msgid ""
191
  "Smart Crop ensures your responsive slides are cropped to a ratio that "
192
  "results in a consistent slideshow size"
193
  msgstr ""
194
 
195
- #: ../ml-slider.php:663
196
  msgid "Smart crop"
197
  msgstr ""
198
 
199
- #: ../ml-slider.php:670
200
  msgid ""
201
  "Display as carousel - when selected the effect and direction options will be "
202
  "ignored."
203
  msgstr ""
204
 
205
- #: ../ml-slider.php:671
206
  msgid "Carousel mode"
207
  msgstr ""
208
 
209
- #: ../ml-slider.php:678
210
  msgid "Randomise the order of the slides"
211
  msgstr ""
212
 
213
- #: ../ml-slider.php:679
214
- msgid "Random"
215
- msgstr ""
216
-
217
- #: ../ml-slider.php:686
218
  msgid ""
219
  "Pause the slideshow when hovering over slider, then resume when no longer "
220
  "hovering"
221
  msgstr ""
222
 
223
- #: ../ml-slider.php:687
224
  msgid "Hover pause"
225
  msgstr ""
226
 
227
- #: ../ml-slider.php:694
228
  msgid "Reverse the animation direction"
229
  msgstr ""
230
 
231
- #: ../ml-slider.php:695
232
  msgid "Reverse"
233
  msgstr ""
234
 
235
- #: ../ml-slider.php:702
236
  msgid "How long to display each slide, in milliseconds"
237
  msgstr ""
238
 
239
- #: ../ml-slider.php:703
240
  msgid "Slide delay"
241
  msgstr ""
242
 
243
- #: ../ml-slider.php:706 ../ml-slider.php:755 ../ml-slider.php:771
244
  msgid "ms"
245
  msgstr ""
246
 
247
- #: ../ml-slider.php:710
248
  msgid "Set the speed of animations, in milliseconds"
249
  msgstr ""
250
 
251
- #: ../ml-slider.php:711
252
  msgid "Animation speed"
253
  msgstr ""
254
 
255
- #: ../ml-slider.php:718
256
  msgid "Number of squares (width x height)"
257
  msgstr ""
258
 
259
- #: ../ml-slider.php:719
260
  msgid "Number of squares"
261
  msgstr ""
262
 
263
- #: ../ml-slider.php:727 ../ml-slider.php:728
264
  msgid "Number of slices"
265
  msgstr ""
266
 
267
- #: ../ml-slider.php:735
268
  msgid "Set the text for the 'previous' direction item"
269
  msgstr ""
270
 
271
- #: ../ml-slider.php:736
272
  msgid "Previous text"
273
  msgstr ""
274
 
275
- #: ../ml-slider.php:743
276
  msgid "Set the text for the 'next' direction item"
277
  msgstr ""
278
 
279
- #: ../ml-slider.php:744
280
  msgid "Next text"
281
  msgstr ""
282
 
283
- #: ../ml-slider.php:751
284
  msgid "Delay beetwen squares in ms"
285
  msgstr ""
286
 
287
- #: ../ml-slider.php:752
288
  msgid "Square delay"
289
  msgstr ""
290
 
291
- #: ../ml-slider.php:759
292
  msgid "Opacity of title and navigation"
293
  msgstr ""
294
 
295
- #: ../ml-slider.php:760
296
  msgid "Opacity"
297
  msgstr ""
298
 
299
- #: ../ml-slider.php:767
300
- msgid "Set the fade in speef of the caption"
301
  msgstr ""
302
 
303
- #: ../ml-slider.php:768
304
  msgid "Caption speed"
305
  msgstr ""
306
 
307
- #: ../ml-slider.php:775
308
  msgid "Developer Options"
309
  msgstr ""
310
 
311
- #: ../ml-slider.php:778
312
  msgid ""
313
  "Specify any custom CSS Classes you would like to be added to the slider "
314
  "wrapper"
315
  msgstr ""
316
 
317
- #: ../ml-slider.php:779
318
  msgid "CSS classes"
319
  msgstr ""
320
 
321
- #: ../ml-slider.php:786
322
  msgid "Uncheck this is you would like to include your own CSS"
323
  msgstr ""
324
 
325
- #: ../ml-slider.php:787
326
  msgid "Print CSS"
327
  msgstr ""
328
 
329
- #: ../ml-slider.php:794
330
  msgid "Uncheck this is you would like to include your own Javascript"
331
  msgstr ""
332
 
333
- #: ../ml-slider.php:795
334
  msgid "Print JS"
335
  msgstr ""
336
 
337
- #: ../ml-slider.php:806
 
 
 
 
338
  msgid "Usage"
339
  msgstr ""
340
 
341
- #: ../ml-slider.php:812
342
  msgid "Shortcode"
343
  msgstr ""
344
 
345
- #: ../ml-slider.php:818
346
  msgid "Template Include"
347
  msgstr ""
348
 
349
- #: ../ml-slider.php:828
350
- msgid "Delete Slider"
 
 
 
 
 
 
 
 
 
 
 
 
351
  msgstr ""
1
  msgid ""
2
  msgstr ""
3
  "Project-Id-Version: metaslider\n"
4
+ "POT-Creation-Date: 2013-06-28 14:01-0000\n"
5
+ "PO-Revision-Date: 2013-06-28 14:01-0000\n"
6
  "Last-Translator: \n"
7
  "Language-Team: \n"
8
  "MIME-Version: 1.0\n"
14
  "X-Poedit-SearchPath-0: .\n"
15
  "X-Poedit-SearchPath-1: ..\n"
16
 
17
+ #: ../ml-slider.php:98
18
  msgid "Go Pro"
19
  msgstr ""
20
 
21
+ #: ../ml-slider.php:142
22
  msgid "Image"
23
  msgstr ""
24
 
25
+ #: ../ml-slider.php:143
26
  msgid "Add to slider"
27
  msgstr ""
28
 
29
+ #: ../ml-slider.php:162
30
  msgid "More Slide Types"
31
  msgstr ""
32
 
33
+ #: ../ml-slider.php:211 ../inc/slide/metaslide.image.class.php:49
34
  msgid "URL"
35
  msgstr ""
36
 
37
+ #: ../ml-slider.php:212 ../inc/slide/metaslide.image.class.php:47
38
  msgid "Caption"
39
  msgstr ""
40
 
41
+ #: ../ml-slider.php:213 ../inc/slide/metaslide.image.class.php:48
42
  msgid "New Window"
43
  msgstr ""
44
 
45
+ #: ../ml-slider.php:214
46
  msgid "Are you sure?"
47
  msgstr ""
48
 
49
+ #: ../ml-slider.php:217
50
+ msgid ""
51
+ "Caution: This setting is for advanced developers only. If you're unsure, "
52
+ "leave it checked."
53
+ msgstr ""
54
+
55
+ #: ../ml-slider.php:246
56
+ msgid "Upgrade to Pro $19"
57
  msgstr ""
58
 
59
+ #: ../ml-slider.php:262
60
+ msgid "Documentation"
61
  msgstr ""
62
 
63
+ #: ../ml-slider.php:383
64
  msgid "New Slider"
65
  msgstr ""
66
 
67
+ #: ../ml-slider.php:476
68
  msgid "Version"
69
  msgstr ""
70
 
71
+ #: ../ml-slider.php:477
72
  msgid "Responsive"
73
  msgstr ""
74
 
75
+ #: ../ml-slider.php:478 ../ml-slider.php:482
76
  msgid "Yes"
77
  msgstr ""
78
 
79
+ #: ../ml-slider.php:478 ../ml-slider.php:482
80
  msgid "No"
81
  msgstr ""
82
 
83
+ #: ../ml-slider.php:480 ../ml-slider.php:582
84
  msgid "Size"
85
  msgstr ""
86
 
87
+ #: ../ml-slider.php:480
88
  msgid "kb"
89
  msgstr ""
90
 
91
+ #: ../ml-slider.php:481
92
  msgid "Mobile Friendly"
93
  msgstr ""
94
 
95
+ #: ../ml-slider.php:529
96
  msgid "Slides"
97
  msgstr ""
98
 
99
+ #: ../ml-slider.php:532 ../ml-slider.php:533
100
  msgid "Add Slide"
101
  msgstr ""
102
 
103
+ #: ../ml-slider.php:552
104
  msgid "Settings"
105
  msgstr ""
106
 
107
+ #: ../ml-slider.php:553
108
  msgid "Save"
109
  msgstr ""
110
 
111
+ #: ../ml-slider.php:554
112
  msgid "Save & Preview"
113
  msgstr ""
114
 
115
+ #: ../ml-slider.php:581
116
  msgid "Set the initial size for the slides (width x height)"
117
  msgstr ""
118
 
119
+ #: ../ml-slider.php:585
120
  msgid "Width"
121
  msgstr ""
122
 
123
+ #: ../ml-slider.php:586
124
  msgid "Height"
125
  msgstr ""
126
 
127
+ #: ../ml-slider.php:590
128
  msgid "Center align the slideshow"
129
  msgstr ""
130
 
131
+ #: ../ml-slider.php:591
132
  msgid "Center align"
133
  msgstr ""
134
 
135
+ #: ../ml-slider.php:598
136
  msgid "Show slide navigation row"
137
  msgstr ""
138
 
139
+ #: ../ml-slider.php:599
140
  msgid "Controls"
141
  msgstr ""
142
 
143
+ #: ../ml-slider.php:602
144
+ msgid "Pager"
145
+ msgstr ""
146
+
147
+ #: ../ml-slider.php:603
148
+ msgid "Navigation"
149
+ msgstr ""
150
+
151
+ #: ../ml-slider.php:607
152
  msgid "Slide transition effect"
153
  msgstr ""
154
 
155
+ #: ../ml-slider.php:608
156
  msgid "Effect"
157
  msgstr ""
158
 
159
+ #: ../ml-slider.php:612 ../ml-slider.php:722
160
+ msgid "Random"
161
+ msgstr ""
162
+
163
+ #: ../ml-slider.php:613
164
+ msgid "Swirl"
165
+ msgstr ""
166
+
167
+ #: ../ml-slider.php:614
168
+ msgid "Rain"
169
+ msgstr ""
170
+
171
+ #: ../ml-slider.php:615
172
+ msgid "Straight"
173
+ msgstr ""
174
+
175
+ #: ../ml-slider.php:616
176
+ msgid "Slide Down"
177
+ msgstr ""
178
+
179
+ #: ../ml-slider.php:617
180
+ msgid "Slice Up"
181
+ msgstr ""
182
+
183
+ #: ../ml-slider.php:618
184
+ msgid "Slide Up Left"
185
+ msgstr ""
186
+
187
+ #: ../ml-slider.php:619
188
+ msgid "Slice Up Down"
189
+ msgstr ""
190
+
191
+ #: ../ml-slider.php:620
192
+ msgid "Slide Up Down Left"
193
+ msgstr ""
194
+
195
+ #: ../ml-slider.php:621
196
+ msgid "Fold"
197
+ msgstr ""
198
+
199
+ #: ../ml-slider.php:622
200
+ msgid "Fade"
201
+ msgstr ""
202
+
203
+ #: ../ml-slider.php:623
204
+ msgid "Slide In Right"
205
+ msgstr ""
206
+
207
+ #: ../ml-slider.php:624
208
+ msgid "Slide In Left"
209
+ msgstr ""
210
+
211
+ #: ../ml-slider.php:625
212
+ msgid "Box Random"
213
+ msgstr ""
214
+
215
+ #: ../ml-slider.php:626
216
+ msgid "Box Rain"
217
+ msgstr ""
218
+
219
+ #: ../ml-slider.php:627
220
+ msgid "Box Rain Reverse"
221
+ msgstr ""
222
+
223
+ #: ../ml-slider.php:628
224
+ msgid "Box Rain Grow Reverse"
225
+ msgstr ""
226
+
227
+ #: ../ml-slider.php:629
228
+ msgid "Slide"
229
+ msgstr ""
230
+
231
+ #: ../ml-slider.php:634
232
  msgid "Change the slider style"
233
  msgstr ""
234
 
235
+ #: ../ml-slider.php:635
236
  msgid "Theme"
237
  msgstr ""
238
 
239
+ #: ../ml-slider.php:656
240
  msgid "Advanced Settings"
241
  msgstr ""
242
 
243
+ #: ../ml-slider.php:659
244
  msgid "Start the slideshow on page load"
245
  msgstr ""
246
 
247
+ #: ../ml-slider.php:660
248
  msgid "Auto play"
249
  msgstr ""
250
 
251
+ #: ../ml-slider.php:667
252
  msgid "Animation easing effect"
253
  msgstr ""
254
 
255
+ #: ../ml-slider.php:668
256
  msgid "Easing"
257
  msgstr ""
258
 
259
+ #: ../ml-slider.php:696
260
  msgid "Select the sliding direction"
261
  msgstr ""
262
 
263
+ #: ../ml-slider.php:696
264
  msgid "Slide direction"
265
  msgstr ""
266
 
267
+ #: ../ml-slider.php:699
268
  msgid "Horizontal"
269
  msgstr ""
270
 
271
+ #: ../ml-slider.php:700
272
  msgid "Vertical"
273
  msgstr ""
274
 
275
+ #: ../ml-slider.php:705
276
  msgid ""
277
  "Smart Crop ensures your responsive slides are cropped to a ratio that "
278
  "results in a consistent slideshow size"
279
  msgstr ""
280
 
281
+ #: ../ml-slider.php:706
282
  msgid "Smart crop"
283
  msgstr ""
284
 
285
+ #: ../ml-slider.php:713
286
  msgid ""
287
  "Display as carousel - when selected the effect and direction options will be "
288
  "ignored."
289
  msgstr ""
290
 
291
+ #: ../ml-slider.php:714
292
  msgid "Carousel mode"
293
  msgstr ""
294
 
295
+ #: ../ml-slider.php:721
296
  msgid "Randomise the order of the slides"
297
  msgstr ""
298
 
299
+ #: ../ml-slider.php:729
 
 
 
 
300
  msgid ""
301
  "Pause the slideshow when hovering over slider, then resume when no longer "
302
  "hovering"
303
  msgstr ""
304
 
305
+ #: ../ml-slider.php:730
306
  msgid "Hover pause"
307
  msgstr ""
308
 
309
+ #: ../ml-slider.php:737
310
  msgid "Reverse the animation direction"
311
  msgstr ""
312
 
313
+ #: ../ml-slider.php:738
314
  msgid "Reverse"
315
  msgstr ""
316
 
317
+ #: ../ml-slider.php:745
318
  msgid "How long to display each slide, in milliseconds"
319
  msgstr ""
320
 
321
+ #: ../ml-slider.php:746
322
  msgid "Slide delay"
323
  msgstr ""
324
 
325
+ #: ../ml-slider.php:749 ../ml-slider.php:798 ../ml-slider.php:814
326
  msgid "ms"
327
  msgstr ""
328
 
329
+ #: ../ml-slider.php:753
330
  msgid "Set the speed of animations, in milliseconds"
331
  msgstr ""
332
 
333
+ #: ../ml-slider.php:754
334
  msgid "Animation speed"
335
  msgstr ""
336
 
337
+ #: ../ml-slider.php:761
338
  msgid "Number of squares (width x height)"
339
  msgstr ""
340
 
341
+ #: ../ml-slider.php:762
342
  msgid "Number of squares"
343
  msgstr ""
344
 
345
+ #: ../ml-slider.php:770 ../ml-slider.php:771
346
  msgid "Number of slices"
347
  msgstr ""
348
 
349
+ #: ../ml-slider.php:778
350
  msgid "Set the text for the 'previous' direction item"
351
  msgstr ""
352
 
353
+ #: ../ml-slider.php:779
354
  msgid "Previous text"
355
  msgstr ""
356
 
357
+ #: ../ml-slider.php:786
358
  msgid "Set the text for the 'next' direction item"
359
  msgstr ""
360
 
361
+ #: ../ml-slider.php:787
362
  msgid "Next text"
363
  msgstr ""
364
 
365
+ #: ../ml-slider.php:794
366
  msgid "Delay beetwen squares in ms"
367
  msgstr ""
368
 
369
+ #: ../ml-slider.php:795
370
  msgid "Square delay"
371
  msgstr ""
372
 
373
+ #: ../ml-slider.php:802
374
  msgid "Opacity of title and navigation"
375
  msgstr ""
376
 
377
+ #: ../ml-slider.php:803
378
  msgid "Opacity"
379
  msgstr ""
380
 
381
+ #: ../ml-slider.php:810
382
+ msgid "Set the fade in speed of the caption"
383
  msgstr ""
384
 
385
+ #: ../ml-slider.php:811
386
  msgid "Caption speed"
387
  msgstr ""
388
 
389
+ #: ../ml-slider.php:818
390
  msgid "Developer Options"
391
  msgstr ""
392
 
393
+ #: ../ml-slider.php:821
394
  msgid ""
395
  "Specify any custom CSS Classes you would like to be added to the slider "
396
  "wrapper"
397
  msgstr ""
398
 
399
+ #: ../ml-slider.php:822
400
  msgid "CSS classes"
401
  msgstr ""
402
 
403
+ #: ../ml-slider.php:829
404
  msgid "Uncheck this is you would like to include your own CSS"
405
  msgstr ""
406
 
407
+ #: ../ml-slider.php:830
408
  msgid "Print CSS"
409
  msgstr ""
410
 
411
+ #: ../ml-slider.php:837
412
  msgid "Uncheck this is you would like to include your own Javascript"
413
  msgstr ""
414
 
415
+ #: ../ml-slider.php:838
416
  msgid "Print JS"
417
  msgstr ""
418
 
419
+ #: ../ml-slider.php:846
420
+ msgid "Delete Slider"
421
+ msgstr ""
422
+
423
+ #: ../ml-slider.php:855
424
  msgid "Usage"
425
  msgstr ""
426
 
427
+ #: ../ml-slider.php:861
428
  msgid "Shortcode"
429
  msgstr ""
430
 
431
+ #: ../ml-slider.php:867
432
  msgid "Template Include"
433
  msgstr ""
434
 
435
+ #: ../inc/metaslider.widget.class.php:14
436
+ msgid "Meta Slider"
437
+ msgstr ""
438
+
439
+ #: ../inc/metaslider.widget.class.php:107
440
+ msgid "Title:"
441
+ msgstr ""
442
+
443
+ #: ../inc/metaslider.widget.class.php:110
444
+ msgid "Select Slider:"
445
+ msgstr ""
446
+
447
+ #: ../inc/metaslider.widget.class.php:120
448
+ msgid "No slideshows found"
449
  msgstr ""
ml-slider.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Meta Slider
4
  * Plugin URI: http://www.metaslider.com
5
  * Description: 4 sliders in 1! Choose from Nivo Slider, Flex Slider, Coin Slider or Responsive Slides.
6
- * Version: 2.0.2
7
  * Author: Matcha Labs
8
  * Author URI: http://www.matchalabs.com
9
  * License: GPLv2 or later
@@ -14,7 +14,7 @@
14
  * GNU General Public License for more details.
15
  */
16
 
17
- define('METASLIDER_VERSION', '2.0.2');
18
  define('METASLIDER_BASE_URL', plugin_dir_url(__FILE__));
19
  define('METASLIDER_ASSETS_URL', METASLIDER_BASE_URL . 'assets/');
20
  define('METASLIDER_BASE_DIR_LONG', dirname(__FILE__));
@@ -34,6 +34,9 @@ require_once( METASLIDER_INC_DIR . 'slide/metaslide.image.class.php' );
34
  // include image helper
35
  require_once( METASLIDER_INC_DIR . 'metaslider.imagehelper.class.php' );
36
 
 
 
 
37
  /**
38
  * Register the plugin.
39
  *
@@ -64,12 +67,30 @@ class MetaSliderPlugin {
64
  add_filter('media_view_strings', array($this, 'custom_media_uploader_tabs'), 5);
65
  add_action('media_upload_metaslider_pro', array($this, 'metaslider_pro_tab'));
66
 
 
 
 
 
 
67
  $plugin = plugin_basename(__FILE__);
68
  add_filter("plugin_action_links_{$plugin}", array($this,'upgrade_to_pro') );
69
 
70
  $this->register_slide_types();
71
  }
72
 
 
 
 
 
 
 
 
 
 
 
 
 
 
73
  /**
74
  * Add settings link on plugin page
75
  */
@@ -90,10 +111,12 @@ class MetaSliderPlugin {
90
  */
91
  public function iframe() {
92
  wp_enqueue_style('metaslider-admin-styles', METASLIDER_ASSETS_URL . 'metaslider/admin.css', false, METASLIDER_VERSION);
93
- wp_enqueue_script('google-font-api', 'http://fonts.googleapis.com/css?family=PT+Sans:400,700|PT+Serif+Caption|PT+Serif:400,700');
94
-
95
- echo "<p style='text-align: center; font-size: 1.2em;'>Add support for <b>Post Feed</b> Slides, <b>YouTube</b> Slides, <b>HTML</b> Slides & <b>Vimeo</b> Slides</p>";
96
  echo "<a class='probutton' href='http://www.metaslider.com/upgrade/' target='_blank'>Get <span class='logo'><strong>Meta</strong>Slider</span><span class='super'>Pro</span></a>";
 
 
97
  }
98
 
99
  /**
@@ -190,7 +213,8 @@ class MetaSliderPlugin {
190
  'new_window' => __("New Window", 'metaslider'),
191
  'confirm' => __("Are you sure?", 'metaslider'),
192
  'ajaxurl' => admin_url( 'admin-ajax.php' ),
193
- 'iframeurl' => METASLIDER_BASE_URL . 'preview.php'
 
194
  ));
195
 
196
  do_action('metaslider_register_admin_scripts');
@@ -212,10 +236,24 @@ class MetaSliderPlugin {
212
  add_action('load-' . $page, array($this, 'help_tab'));
213
  }
214
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
215
  /**
216
  *
217
  */
218
- public function help_tab () {
219
  $screen = get_current_screen();
220
 
221
  // documentation tab
@@ -267,6 +305,7 @@ class MetaSliderPlugin {
267
  // lets go
268
  $this->set_slider($id);
269
  $this->slider->enqueue_scripts();
 
270
  return $this->slider->render_public_slides();
271
  }
272
 
@@ -380,6 +419,7 @@ class MetaSliderPlugin {
380
  */
381
  private function find_slider($orderby, $order) {
382
  $args = array(
 
383
  'post_type' => 'ml-slider',
384
  'num_posts' => 1,
385
  'post_status' => 'publish',
@@ -449,6 +489,7 @@ class MetaSliderPlugin {
449
  */
450
  public function render_admin_page() {
451
  $this->admin_process();
 
452
  ?>
453
 
454
  <script type='text/javascript'>
@@ -467,7 +508,7 @@ class MetaSliderPlugin {
467
  } else {
468
  echo "<a href='?page=metaslider&id={$tab['id']}' class='nav-tab'>" . $tab['title'] . "</a>";
469
  }
470
- }
471
  }
472
  ?>
473
 
@@ -519,34 +560,34 @@ class MetaSliderPlugin {
519
  <tr>
520
  <td colspan='2' class='slider-lib-row'>
521
  <div class='slider-lib flex'>
522
- <label for='flex' title='<?php echo $this->get_library_details(2.1, true, 17, true); ?>' class='tooltiptop'>FlexSlider</label>
523
  <input class="select-slider" id='flex' rel='flex' type='radio' name="settings[type]" <?php if ($this->slider->get_setting('type') == 'flex') echo 'checked=checked' ?> value='flex' />
524
  </div>
525
  <div class='slider-lib responsive'>
526
- <label for='responsive' title='<?php echo $this->get_library_details(1.53, true, 3, true); ?>' class='tooltiptop'>Responsive</label>
527
  <input class="select-slider" id='responsive' rel='responsive' type='radio' name="settings[type]" <?php if ($this->slider->get_setting('type') == 'responsive') echo 'checked=checked' ?> value='responsive' />
528
  </div>
529
  <div class='slider-lib nivo'>
530
- <label for='nivo' title='<?php echo $this->get_library_details(3.2, true, 12, true); ?>' class='tooltiptop'>NivoSlider</label>
531
  <input class="select-slider" id='nivo' rel='nivo' type='radio' name="settings[type]" <?php if ($this->slider->get_setting('type') == 'nivo') echo 'checked=checked' ?> value='nivo' />
532
  </div>
533
  <div class='slider-lib coin'>
534
- <label for='coin' title='<?php echo $this->get_library_details(1.0, false, 8, true); ?>' class='tooltiptop'>CoinSlider</label>
535
  <input class="select-slider" id='coin' rel='coin' type='radio' name="settings[type]" <?php if ($this->slider->get_setting('type') == 'coin') echo 'checked=checked' ?> value='coin' />
536
  </div>
537
  </td>
538
  </tr>
539
  <tr>
540
- <td width='40%' class='tooltip' title="<?php _e("Set the initial size for the slides (width x height)", 'metaslider') ?>">
541
  <?php _e("Size", 'metaslider') ?>
542
  </td>
543
  <td>
544
- <input type='text' size='3' class="width tooltiptop" title='<?php _e("Width", 'metaslider') ?>' name="settings[width]" value='<?php echo $this->slider->get_setting('width') ?>' />px X
545
- <input type='text' size='3' class="height tooltiptop" title='<?php _e("Height", 'metaslider') ?>' name="settings[height]" value='<?php echo $this->slider->get_setting('height') ?>' />px
546
  </td>
547
  </tr>
548
  <tr>
549
- <td class='tooltip' title="<?php _e("Center align the slideshow", 'metaslider') ?>">
550
  <?php _e("Center align", 'metaslider') ?>
551
  </td>
552
  <td>
@@ -554,51 +595,60 @@ class MetaSliderPlugin {
554
  </td>
555
  </tr>
556
  <tr>
557
- <td class='tooltip' title="<?php _e("Show slide navigation row", 'metaslider') ?>">
558
  <?php _e("Controls", 'metaslider') ?>
559
  </td>
560
  <td>
561
- <label class='option responsive nivo flex' ><input type='checkbox' name="settings[navigation]" <?php if ($this->slider->get_setting('navigation') == 'true') echo 'checked=checked' ?> />Pager</label>
562
- <label class='option coin responsive nivo flex' ><input type='checkbox' name="settings[links]" <?php if ($this->slider->get_setting('links') == 'true') echo 'checked=checked' ?> />Navigation</label>
563
  </td>
564
  </tr>
565
  <tr>
566
- <td class='tooltip' title="<?php _e("Slide transition effect", 'metaslider') ?>">
567
  <?php _e("Effect", 'metaslider') ?>
568
  </td>
569
  <td>
570
  <select name="settings[effect]" class='effect option coin nivo flex'>
571
- <option class='option coin nivo' value='random' <?php if ($this->slider->get_setting('effect') == 'random') echo 'selected=selected' ?>>Random</option>
572
- <option class='option coin' value='swirl' <?php if ($this->slider->get_setting('effect') == 'swirl') echo 'selected=selected' ?>>Swirl</option>
573
- <option class='option coin' value='rain' <?php if ($this->slider->get_setting('effect') == 'rain') echo 'selected=selected' ?>>Rain</option>
574
- <option class='option coin' value='straight' <?php if ($this->slider->get_setting('effect') == 'straight') echo 'selected=selected' ?>>Straight</option>
575
- <option class='option nivo' value='sliceDown' <?php if ($this->slider->get_setting('effect') == 'sliceDown') echo 'selected=selected' ?>>Slice Down</option>
576
- <option class='option nivo' value='sliceUp' <?php if ($this->slider->get_setting('effect') == 'sliceUp') echo 'selected=selected' ?>>Slice Up</option>
577
- <option class='option nivo' value='sliceUpLeft' <?php if ($this->slider->get_setting('effect') == 'sliceUpLeft') echo 'selected=selected' ?>>Slice Up Left</option>
578
- <option class='option nivo' value='sliceUpDown' <?php if ($this->slider->get_setting('effect') == 'sliceUpDown') echo 'selected=selected' ?>>Slice Up Down</option>
579
- <option class='option nivo' value='sliceUpDownLeft' <?php if ($this->slider->get_setting('effect') == 'sliceUpDownLeft') echo 'selected=selected' ?>>Slice Up Down Left</option>
580
- <option class='option nivo' value='fold' <?php if ($this->slider->get_setting('effect') == 'fold') echo 'selected=selected' ?>>Fold</option>
581
- <option class='option nivo flex' value='fade' <?php if ($this->slider->get_setting('effect') == 'fade') echo 'selected=selected' ?>>Fade</option>
582
- <option class='option nivo' value='slideInRight' <?php if ($this->slider->get_setting('effect') == 'slideInRight') echo 'selected=selected' ?>>Slide In Right</option>
583
- <option class='option nivo' value='slideInLeft' <?php if ($this->slider->get_setting('effect') == 'slideInLeft') echo 'selected=selected' ?>>Slide In Left</option>
584
- <option class='option nivo' value='boxRandom' <?php if ($this->slider->get_setting('effect') == 'boxRandom') echo 'selected=selected' ?>>Box Random</option>
585
- <option class='option nivo' value='boxRain' <?php if ($this->slider->get_setting('effect') == 'boxRain') echo 'selected=selected' ?>>Box Rain</option>
586
- <option class='option nivo' value='boxRainReverse' <?php if ($this->slider->get_setting('effect') == 'boxRainReverse') echo 'selected=selected' ?>>Box Rain Reverse</option>
587
- <option class='option nivo' value='boxRainGrowReverse' <?php if ($this->slider->get_setting('effect') == 'boxRainGrowReverse') echo 'selected=selected' ?>>Box Rain Grow Reverse</option>
588
- <option class='option flex' value='slide' <?php if ($this->slider->get_setting('effect') == 'slide') echo 'selected=selected' ?>>Slide</option>
589
  </select>
590
  </td>
591
  </tr>
592
  <tr>
593
- <td class='tooltip' title="<?php _e("Change the slider style", 'metaslider') ?>">
594
  <?php _e("Theme", 'metaslider') ?>
595
  </td>
596
  <td>
597
- <select class='option nivo' name="settings[theme]">
598
- <option value='default' <?php if ($this->slider->get_setting('theme') == 'default') echo 'selected=selected' ?>>Default</option>
599
- <option value='dark' <?php if ($this->slider->get_setting('theme') == 'dark') echo 'selected=selected' ?>>Dark</option>
600
- <option value='light' <?php if ($this->slider->get_setting('theme') == 'light') echo 'selected=selected' ?>>Light</option>
601
- <option value='bar' <?php if ($this->slider->get_setting('theme') == 'bar') echo 'selected=selected' ?>>Bar</option>
 
 
 
 
 
 
 
 
 
602
  </select>
603
  </td>
604
  </tr>
@@ -606,7 +656,7 @@ class MetaSliderPlugin {
606
  <td colspan='2' class='highlight'><?php _e("Advanced Settings", 'metaslider') ?></td>
607
  </tr>
608
  <tr>
609
- <td class='tooltip' title="<?php _e("Start the slideshow on page load", 'metaslider') ?>">
610
  <?php _e("Auto play", 'metaslider') ?>
611
  </td>
612
  <td>
@@ -614,7 +664,7 @@ class MetaSliderPlugin {
614
  </td>
615
  </tr>
616
  <tr>
617
- <td class='tooltip' title="<?php _e("Animation easing effect", 'metaslider') ?>">
618
  <?php _e("Easing", 'metaslider') ?>
619
  </td>
620
  <td>
@@ -643,7 +693,7 @@ class MetaSliderPlugin {
643
  </td>
644
  </tr>
645
  <tr>
646
- <td class='tooltip' title="<?php _e("Select the sliding direction", 'metaslider') ?>"><?php _e("Slide direction", 'metaslider') ?></td>
647
  <td>
648
  <select class='option flex' name="settings[direction]">
649
  <option value='horizontal' <?php if ($this->slider->get_setting('direction') == 'horizontal') echo 'selected=selected' ?>><?php _e("Horizontal", 'metaslider') ?></option>
@@ -652,7 +702,7 @@ class MetaSliderPlugin {
652
  </td>
653
  </tr>
654
  <tr>
655
- <td class='tooltip' title="<?php _e("Smart Crop ensures your responsive slides are cropped to a ratio that results in a consistent slideshow size", 'metaslider') ?>">
656
  <?php _e("Smart crop", 'metaslider') ?>
657
  </td>
658
  <td>
@@ -660,7 +710,7 @@ class MetaSliderPlugin {
660
  </td>
661
  </tr>
662
  <tr>
663
- <td class='tooltip' title="<?php _e("Display as carousel - when selected the effect and direction options will be ignored.", 'metaslider') ?>">
664
  <?php _e("Carousel mode", 'metaslider') ?>
665
  </td>
666
  <td>
@@ -668,7 +718,7 @@ class MetaSliderPlugin {
668
  </td>
669
  </tr>
670
  <tr>
671
- <td class='tooltip' title="<?php _e("Randomise the order of the slides", 'metaslider') ?>">
672
  <?php _e("Random", 'metaslider') ?>
673
  </td>
674
  <td>
@@ -676,7 +726,7 @@ class MetaSliderPlugin {
676
  </td>
677
  </tr>
678
  <tr>
679
- <td class='tooltip' title="<?php _e("Pause the slideshow when hovering over slider, then resume when no longer hovering", 'metaslider') ?>">
680
  <?php _e("Hover pause", 'metaslider') ?>
681
  </td>
682
  <td>
@@ -684,7 +734,7 @@ class MetaSliderPlugin {
684
  </td>
685
  </tr>
686
  <tr>
687
- <td class='tooltip' title="<?php _e("Reverse the animation direction", 'metaslider') ?>">
688
  <?php _e("Reverse", 'metaslider') ?>
689
  </td>
690
  <td>
@@ -692,7 +742,7 @@ class MetaSliderPlugin {
692
  </td>
693
  </tr>
694
  <tr>
695
- <td class='tooltip' title="<?php _e("How long to display each slide, in milliseconds", 'metaslider') ?>">
696
  <?php _e("Slide delay", 'metaslider') ?>
697
  </td>
698
  <td>
@@ -700,7 +750,7 @@ class MetaSliderPlugin {
700
  </td>
701
  </tr>
702
  <tr>
703
- <td class='tooltip' title="<?php _e("Set the speed of animations, in milliseconds", 'metaslider') ?>">
704
  <?php _e("Animation speed", 'metaslider') ?>
705
  </td>
706
  <td>
@@ -708,7 +758,7 @@ class MetaSliderPlugin {
708
  </td>
709
  </tr>
710
  <tr>
711
- <td class='tooltip' title="<?php _e("Number of squares (width x height)", 'metaslider') ?>">
712
  <?php _e("Number of squares", 'metaslider') ?>
713
  </td>
714
  <td>
@@ -717,7 +767,7 @@ class MetaSliderPlugin {
717
  </td>
718
  </tr>
719
  <tr>
720
- <td class='tooltip' title="<?php _e("Number of slices", 'metaslider') ?>">
721
  <?php _e("Number of slices", 'metaslider') ?>
722
  </td>
723
  <td>
@@ -725,7 +775,7 @@ class MetaSliderPlugin {
725
  </td>
726
  </tr>
727
  <tr>
728
- <td class='tooltip' title="<?php _e("Set the text for the 'previous' direction item", 'metaslider') ?>">
729
  <?php _e("Previous text", 'metaslider') ?>
730
  </td>
731
  <td>
@@ -733,7 +783,7 @@ class MetaSliderPlugin {
733
  </td>
734
  </tr>
735
  <tr>
736
- <td class='tooltip' title="<?php _e("Set the text for the 'next' direction item", 'metaslider') ?>">
737
  <?php _e("Next text", 'metaslider') ?>
738
  </td>
739
  <td>
@@ -741,7 +791,7 @@ class MetaSliderPlugin {
741
  </td>
742
  </tr>
743
  <tr>
744
- <td class='tooltip' title="<?php _e("Delay beetwen squares in ms", 'metaslider') ?>">
745
  <?php _e("Square delay", 'metaslider') ?>
746
  </td>
747
  <td>
@@ -749,7 +799,7 @@ class MetaSliderPlugin {
749
  </td>
750
  </tr>
751
  <tr>
752
- <td class='tooltip' title="<?php _e("Opacity of title and navigation", 'metaslider') ?>">
753
  <?php _e("Opacity", 'metaslider') ?>
754
  </td>
755
  <td>
@@ -757,19 +807,18 @@ class MetaSliderPlugin {
757
  </td>
758
  </tr>
759
  <tr>
760
- <td class='tooltip' title="<?php _e("Set the fade in speed of the caption", 'metaslider') ?>">
761
  <?php _e("Caption speed", 'metaslider') ?>
762
  </td>
763
  <td>
764
  <input class='option coin' type='number' min='0' max='10000' step='100' name="settings[titleSpeed]" value='<?php echo $this->slider->get_setting('titleSpeed') ?>' /><?php _e("ms", 'metaslider') ?>
765
  </td>
766
  </tr>
767
-
768
  <tr>
769
  <td colspan='2' class='highlight'><?php _e("Developer Options", 'metaslider') ?></td>
770
  </tr>
771
  <tr>
772
- <td class='tooltip' title="<?php _e("Specify any custom CSS Classes you would like to be added to the slider wrapper", 'metaslider') ?>">
773
  <?php _e("CSS classes", 'metaslider') ?>
774
  </td>
775
  <td>
@@ -777,19 +826,19 @@ class MetaSliderPlugin {
777
  </td>
778
  </tr>
779
  <tr>
780
- <td class='tooltip' title="<?php _e("Uncheck this is you would like to include your own CSS", 'metaslider') ?>">
781
  <?php _e("Print CSS", 'metaslider') ?>
782
  </td>
783
  <td>
784
- <input type='checkbox' name="settings[printCss]" <?php if ($this->slider->get_setting('printCss') == 'true') echo 'checked=checked' ?> />
785
  </td>
786
  </tr>
787
  <tr>
788
- <td class='tooltip' title="<?php _e("Uncheck this is you would like to include your own Javascript", 'metaslider') ?>">
789
  <?php _e("Print JS", 'metaslider') ?>
790
  </td>
791
  <td>
792
- <input type='checkbox' name="settings[printJs]" <?php if ($this->slider->get_setting('printJs') == 'true') echo 'checked=checked' ?> />
793
  </td>
794
  </tr>
795
  <tr>
3
  * Plugin Name: Meta Slider
4
  * Plugin URI: http://www.metaslider.com
5
  * Description: 4 sliders in 1! Choose from Nivo Slider, Flex Slider, Coin Slider or Responsive Slides.
6
+ * Version: 2.1.6
7
  * Author: Matcha Labs
8
  * Author URI: http://www.matchalabs.com
9
  * License: GPLv2 or later
14
  * GNU General Public License for more details.
15
  */
16
 
17
+ define('METASLIDER_VERSION', '2.1.6');
18
  define('METASLIDER_BASE_URL', plugin_dir_url(__FILE__));
19
  define('METASLIDER_ASSETS_URL', METASLIDER_BASE_URL . 'assets/');
20
  define('METASLIDER_BASE_DIR_LONG', dirname(__FILE__));
34
  // include image helper
35
  require_once( METASLIDER_INC_DIR . 'metaslider.imagehelper.class.php' );
36
 
37
+ // include widget
38
+ require_once( METASLIDER_INC_DIR . 'metaslider.widget.class.php' );
39
+
40
  /**
41
  * Register the plugin.
42
  *
67
  add_filter('media_view_strings', array($this, 'custom_media_uploader_tabs'), 5);
68
  add_action('media_upload_metaslider_pro', array($this, 'metaslider_pro_tab'));
69
 
70
+
71
+ // system check
72
+ add_action('admin_notices', array($this, 'system_check'));
73
+
74
+ // add 'go pro' link to plugin options
75
  $plugin = plugin_basename(__FILE__);
76
  add_filter("plugin_action_links_{$plugin}", array($this,'upgrade_to_pro') );
77
 
78
  $this->register_slide_types();
79
  }
80
 
81
+ /**
82
+ * Check our WordPress installation is compatible with Meta Slider
83
+ */
84
+ public function system_check(){
85
+ if (!function_exists('wp_enqueue_media')) {
86
+ echo '<div id="message" class="updated"><p><b>Warning</b> Meta Slider requires WordPress 3.5 or above. Please upgrade your WordPress installation.</p></div>';
87
+ }
88
+
89
+ if ((!extension_loaded('gd') || !function_exists('gd_info')) && (!extension_loaded( 'imagick' ) || !class_exists( 'Imagick' ) || !class_exists( 'ImagickPixel' ))) {
90
+ echo '<div id="message" class="updated"><p><b>Warning</b> Meta Slider requires the GD or ImageMagick PHP extension. Please contact your hosting provider.</p></div>';
91
+ }
92
+ }
93
+
94
  /**
95
  * Add settings link on plugin page
96
  */
111
  */
112
  public function iframe() {
113
  wp_enqueue_style('metaslider-admin-styles', METASLIDER_ASSETS_URL . 'metaslider/admin.css', false, METASLIDER_VERSION);
114
+ wp_enqueue_script('google-font-api', 'http://fonts.googleapis.com/css?family=PT+Sans:400,700');
115
+ echo "<div class='metaslider'>";
116
+ echo "<p style='text-align: center; font-size: 1.2em;'>Get the Pro Addon pack to add support for: <b>Content Feed</b> Slides, <b>YouTube</b> Slides, <b>HTML</b> Slides & <b>Vimeo</b> Slides</p>";
117
  echo "<a class='probutton' href='http://www.metaslider.com/upgrade/' target='_blank'>Get <span class='logo'><strong>Meta</strong>Slider</span><span class='super'>Pro</span></a>";
118
+ echo "<span class='subtext'>Opens in a new window</span>";
119
+ echo "</div>";
120
  }
121
 
122
  /**
213
  'new_window' => __("New Window", 'metaslider'),
214
  'confirm' => __("Are you sure?", 'metaslider'),
215
  'ajaxurl' => admin_url( 'admin-ajax.php' ),
216
+ 'iframeurl' => METASLIDER_BASE_URL . 'preview.php',
217
+ 'useWithCaution' => __("Caution: This setting is for advanced developers only. If you're unsure, leave it checked.", 'metaslider')
218
  ));
219
 
220
  do_action('metaslider_register_admin_scripts');
236
  add_action('load-' . $page, array($this, 'help_tab'));
237
  }
238
 
239
+ /**
240
+ * Upgrade CTA.
241
+ */
242
+ public function go_pro_cta() {
243
+ if (!is_plugin_active('ml-slider-pro/ml-slider-pro.php')) {
244
+ $goPro = "<div id='goProWrap'><span>Meta Slider Free v" . METASLIDER_VERSION .
245
+ " - <a target='_blank' href='http://www.metaslider.com'>" .
246
+ __('Upgrade to Pro $19', 'metaslider') .
247
+ "</a></span></div>";
248
+
249
+ echo $goPro;
250
+ }
251
+ }
252
+
253
  /**
254
  *
255
  */
256
+ public function help_tab() {
257
  $screen = get_current_screen();
258
 
259
  // documentation tab
305
  // lets go
306
  $this->set_slider($id);
307
  $this->slider->enqueue_scripts();
308
+
309
  return $this->slider->render_public_slides();
310
  }
311
 
419
  */
420
  private function find_slider($orderby, $order) {
421
  $args = array(
422
+ 'force_no_custom_order' => true,
423
  'post_type' => 'ml-slider',
424
  'num_posts' => 1,
425
  'post_status' => 'publish',
489
  */
490
  public function render_admin_page() {
491
  $this->admin_process();
492
+ $this->go_pro_cta();
493
  ?>
494
 
495
  <script type='text/javascript'>
508
  } else {
509
  echo "<a href='?page=metaslider&id={$tab['id']}' class='nav-tab'>" . $tab['title'] . "</a>";
510
  }
511
+ }
512
  }
513
  ?>
514
 
560
  <tr>
561
  <td colspan='2' class='slider-lib-row'>
562
  <div class='slider-lib flex'>
563
+ <label for='flex' title='<?php echo $this->get_library_details(2.1, true, 17, true); ?>' class='tipsy-tooltip-top'>FlexSlider</label>
564
  <input class="select-slider" id='flex' rel='flex' type='radio' name="settings[type]" <?php if ($this->slider->get_setting('type') == 'flex') echo 'checked=checked' ?> value='flex' />
565
  </div>
566
  <div class='slider-lib responsive'>
567
+ <label for='responsive' title='<?php echo $this->get_library_details(1.53, true, 3, true); ?>' class='tipsy-tooltip-top'>Responsive</label>
568
  <input class="select-slider" id='responsive' rel='responsive' type='radio' name="settings[type]" <?php if ($this->slider->get_setting('type') == 'responsive') echo 'checked=checked' ?> value='responsive' />
569
  </div>
570
  <div class='slider-lib nivo'>
571
+ <label for='nivo' title='<?php echo $this->get_library_details(3.2, true, 12, true); ?>' class='tipsy-tooltip-top'>NivoSlider</label>
572
  <input class="select-slider" id='nivo' rel='nivo' type='radio' name="settings[type]" <?php if ($this->slider->get_setting('type') == 'nivo') echo 'checked=checked' ?> value='nivo' />
573
  </div>
574
  <div class='slider-lib coin'>
575
+ <label for='coin' title='<?php echo $this->get_library_details(1.0, false, 8, true); ?>' class='tipsy-tooltip-top'>CoinSlider</label>
576
  <input class="select-slider" id='coin' rel='coin' type='radio' name="settings[type]" <?php if ($this->slider->get_setting('type') == 'coin') echo 'checked=checked' ?> value='coin' />
577
  </div>
578
  </td>
579
  </tr>
580
  <tr>
581
+ <td width='40%' class='tipsy-tooltip' title="<?php _e("Set the initial size for the slides (width x height)", 'metaslider') ?>">
582
  <?php _e("Size", 'metaslider') ?>
583
  </td>
584
  <td>
585
+ <input type='text' size='3' class="width tipsytop" title='<?php _e("Width", 'metaslider') ?>' name="settings[width]" value='<?php echo $this->slider->get_setting('width') ?>' />px X
586
+ <input type='text' size='3' class="height tipsytop" title='<?php _e("Height", 'metaslider') ?>' name="settings[height]" value='<?php echo $this->slider->get_setting('height') ?>' />px
587
  </td>
588
  </tr>
589
  <tr>
590
+ <td class='tipsy-tooltip' title="<?php _e("Center align the slideshow", 'metaslider') ?>">
591
  <?php _e("Center align", 'metaslider') ?>
592
  </td>
593
  <td>
595
  </td>
596
  </tr>
597
  <tr>
598
+ <td class='tipsy-tooltip' title="<?php _e("Show slide navigation row", 'metaslider') ?>">
599
  <?php _e("Controls", 'metaslider') ?>
600
  </td>
601
  <td>
602
+ <label class='option responsive nivo flex' ><input type='checkbox' name="settings[navigation]" <?php if ($this->slider->get_setting('navigation') == 'true') echo 'checked=checked' ?> /><?php _e("Pager", 'metaslider') ?></label>
603
+ <label class='option coin responsive nivo flex' ><input type='checkbox' name="settings[links]" <?php if ($this->slider->get_setting('links') == 'true') echo 'checked=checked' ?> /><?php _e("Navigation", 'metaslider') ?></label>
604
  </td>
605
  </tr>
606
  <tr>
607
+ <td class='tipsy-tooltip' title="<?php _e("Slide transition effect", 'metaslider') ?>">
608
  <?php _e("Effect", 'metaslider') ?>
609
  </td>
610
  <td>
611
  <select name="settings[effect]" class='effect option coin nivo flex'>
612
+ <option class='option coin nivo' value='random' <?php if ($this->slider->get_setting('effect') == 'random') echo 'selected=selected' ?>><?php _e("Random", 'metaslider') ?></option>
613
+ <option class='option coin' value='swirl' <?php if ($this->slider->get_setting('effect') == 'swirl') echo 'selected=selected' ?>><?php _e("Swirl", 'metaslider') ?></option>
614
+ <option class='option coin' value='rain' <?php if ($this->slider->get_setting('effect') == 'rain') echo 'selected=selected' ?>><?php _e("Rain", 'metaslider') ?></option>
615
+ <option class='option coin' value='straight' <?php if ($this->slider->get_setting('effect') == 'straight') echo 'selected=selected' ?>><?php _e("Straight", 'metaslider') ?></option>
616
+ <option class='option nivo' value='sliceDown' <?php if ($this->slider->get_setting('effect') == 'sliceDown') echo 'selected=selected' ?>><?php _e("Slide Down", 'metaslider') ?></option>
617
+ <option class='option nivo' value='sliceUp' <?php if ($this->slider->get_setting('effect') == 'sliceUp') echo 'selected=selected' ?>><?php _e("Slice Up", 'metaslider') ?></option>
618
+ <option class='option nivo' value='sliceUpLeft' <?php if ($this->slider->get_setting('effect') == 'sliceUpLeft') echo 'selected=selected' ?>><?php _e("Slide Up Left", 'metaslider') ?></option>
619
+ <option class='option nivo' value='sliceUpDown' <?php if ($this->slider->get_setting('effect') == 'sliceUpDown') echo 'selected=selected' ?>><?php _e("Slice Up Down", 'metaslider') ?></option>
620
+ <option class='option nivo' value='sliceUpDownLeft' <?php if ($this->slider->get_setting('effect') == 'sliceUpDownLeft') echo 'selected=selected' ?>><?php _e("Slide Up Down Left", 'metaslider') ?></option>
621
+ <option class='option nivo' value='fold' <?php if ($this->slider->get_setting('effect') == 'fold') echo 'selected=selected' ?>><?php _e("Fold", 'metaslider') ?></option>
622
+ <option class='option nivo flex' value='fade' <?php if ($this->slider->get_setting('effect') == 'fade') echo 'selected=selected' ?>><?php _e("Fade", 'metaslider') ?></option>
623
+ <option class='option nivo' value='slideInRight' <?php if ($this->slider->get_setting('effect') == 'slideInRight') echo 'selected=selected' ?>><?php _e("Slide In Right", 'metaslider') ?></option>
624
+ <option class='option nivo' value='slideInLeft' <?php if ($this->slider->get_setting('effect') == 'slideInLeft') echo 'selected=selected' ?>><?php _e("Slide In Left", 'metaslider') ?></option>
625
+ <option class='option nivo' value='boxRandom' <?php if ($this->slider->get_setting('effect') == 'boxRandom') echo 'selected=selected' ?>><?php _e("Box Random", 'metaslider') ?></option>
626
+ <option class='option nivo' value='boxRain' <?php if ($this->slider->get_setting('effect') == 'boxRain') echo 'selected=selected' ?>><?php _e("Box Rain", 'metaslider') ?></option>
627
+ <option class='option nivo' value='boxRainReverse' <?php if ($this->slider->get_setting('effect') == 'boxRainReverse') echo 'selected=selected' ?>><?php _e("Box Rain Reverse", 'metaslider') ?></option>
628
+ <option class='option nivo' value='boxRainGrowReverse' <?php if ($this->slider->get_setting('effect') == 'boxRainGrowReverse') echo 'selected=selected' ?>><?php _e("Box Rain Grow Reverse", 'metaslider') ?></option>
629
+ <option class='option flex' value='slide' <?php if ($this->slider->get_setting('effect') == 'slide') echo 'selected=selected' ?>><?php _e("Slide", 'metaslider') ?></option>
630
  </select>
631
  </td>
632
  </tr>
633
  <tr>
634
+ <td class='tipsy-tooltip' title="<?php _e("Change the slider style", 'metaslider') ?>">
635
  <?php _e("Theme", 'metaslider') ?>
636
  </td>
637
  <td>
638
+ <select name="settings[theme]" class='theme option coin nivo flex responsive'>
639
+ <?php
640
+ $defaultSelected = $this->slider->get_setting('theme') == 'default' ? 'selected=selected' : '';
641
+ $darkSelected = $this->slider->get_setting('theme') == 'dark' ? 'selected=selected' : '';
642
+ $lightSelected = $this->slider->get_setting('theme') == 'light' ? 'selected=selected' : '';
643
+ $barSelected = $this->slider->get_setting('theme') == 'bar' ? 'selected=selected' : '';
644
+
645
+ $themes = "<option value='default' class='option nivo flex coin responsive' {$defaultSelected}>Default</option>
646
+ <option value='dark' class='option nivo' {$darkSelected}>Dark (Nivo)</option>
647
+ <option value='light' class='option nivo' {$lightSelected}>Light (Nivo)</option>
648
+ <option value='bar' class='option nivo' {$barSelected}>Bar (Nivo)</option>";
649
+
650
+ echo apply_filters('metaslider_get_available_themes', $themes, $this->slider->get_setting('theme'));
651
+ ?>
652
  </select>
653
  </td>
654
  </tr>
656
  <td colspan='2' class='highlight'><?php _e("Advanced Settings", 'metaslider') ?></td>
657
  </tr>
658
  <tr>
659
+ <td width='40%' class='tipsy-tooltip' title="<?php _e("Start the slideshow on page load", 'metaslider') ?>">
660
  <?php _e("Auto play", 'metaslider') ?>
661
  </td>
662
  <td>
664
  </td>
665
  </tr>
666
  <tr>
667
+ <td class='tipsy-tooltip' title="<?php _e("Animation easing effect", 'metaslider') ?>">
668
  <?php _e("Easing", 'metaslider') ?>
669
  </td>
670
  <td>
693
  </td>
694
  </tr>
695
  <tr>
696
+ <td class='tipsy-tooltip' title="<?php _e("Select the sliding direction", 'metaslider') ?>"><?php _e("Slide direction", 'metaslider') ?></td>
697
  <td>
698
  <select class='option flex' name="settings[direction]">
699
  <option value='horizontal' <?php if ($this->slider->get_setting('direction') == 'horizontal') echo 'selected=selected' ?>><?php _e("Horizontal", 'metaslider') ?></option>
702
  </td>
703
  </tr>
704
  <tr>
705
+ <td class='tipsy-tooltip' title="<?php _e("Smart Crop ensures your responsive slides are cropped to a ratio that results in a consistent slideshow size", 'metaslider') ?>">
706
  <?php _e("Smart crop", 'metaslider') ?>
707
  </td>
708
  <td>
710
  </td>
711
  </tr>
712
  <tr>
713
+ <td class='tipsy-tooltip' title="<?php _e("Display as carousel - when selected the effect and direction options will be ignored.", 'metaslider') ?>">
714
  <?php _e("Carousel mode", 'metaslider') ?>
715
  </td>
716
  <td>
718
  </td>
719
  </tr>
720
  <tr>
721
+ <td class='tipsy-tooltip' title="<?php _e("Randomise the order of the slides", 'metaslider') ?>">
722
  <?php _e("Random", 'metaslider') ?>
723
  </td>
724
  <td>
726
  </td>
727
  </tr>
728
  <tr>
729
+ <td class='tipsy-tooltip' title="<?php _e("Pause the slideshow when hovering over slider, then resume when no longer hovering", 'metaslider') ?>">
730
  <?php _e("Hover pause", 'metaslider') ?>
731
  </td>
732
  <td>
734
  </td>
735
  </tr>
736
  <tr>
737
+ <td class='tipsy-tooltip' title="<?php _e("Reverse the animation direction", 'metaslider') ?>">
738
  <?php _e("Reverse", 'metaslider') ?>
739
  </td>
740
  <td>
742
  </td>
743
  </tr>
744
  <tr>
745
+ <td class='tipsy-tooltip' title="<?php _e("How long to display each slide, in milliseconds", 'metaslider') ?>">
746
  <?php _e("Slide delay", 'metaslider') ?>
747
  </td>
748
  <td>
750
  </td>
751
  </tr>
752
  <tr>
753
+ <td class='tipsy-tooltip' title="<?php _e("Set the speed of animations, in milliseconds", 'metaslider') ?>">
754
  <?php _e("Animation speed", 'metaslider') ?>
755
  </td>
756
  <td>
758
  </td>
759
  </tr>
760
  <tr>
761
+ <td class='tipsy-tooltip' title="<?php _e("Number of squares (width x height)", 'metaslider') ?>">
762
  <?php _e("Number of squares", 'metaslider') ?>
763
  </td>
764
  <td>
767
  </td>
768
  </tr>
769
  <tr>
770
+ <td class='tipsy-tooltip' title="<?php _e("Number of slices", 'metaslider') ?>">
771
  <?php _e("Number of slices", 'metaslider') ?>
772
  </td>
773
  <td>
775
  </td>
776
  </tr>
777
  <tr>
778
+ <td class='tipsy-tooltip' title="<?php _e("Set the text for the 'previous' direction item", 'metaslider') ?>">
779
  <?php _e("Previous text", 'metaslider') ?>
780
  </td>
781
  <td>
783
  </td>
784
  </tr>
785
  <tr>
786
+ <td class='tipsy-tooltip' title="<?php _e("Set the text for the 'next' direction item", 'metaslider') ?>">
787
  <?php _e("Next text", 'metaslider') ?>
788
  </td>
789
  <td>
791
  </td>
792
  </tr>
793
  <tr>
794
+ <td class='tipsy-tooltip' title="<?php _e("Delay beetwen squares in ms", 'metaslider') ?>">
795
  <?php _e("Square delay", 'metaslider') ?>
796
  </td>
797
  <td>
799
  </td>
800
  </tr>
801
  <tr>
802
+ <td class='tipsy-tooltip' title="<?php _e("Opacity of title and navigation", 'metaslider') ?>">
803
  <?php _e("Opacity", 'metaslider') ?>
804
  </td>
805
  <td>
807
  </td>
808
  </tr>
809
  <tr>
810
+ <td class='tipsy-tooltip' title="<?php _e("Set the fade in speed of the caption", 'metaslider') ?>">
811
  <?php _e("Caption speed", 'metaslider') ?>
812
  </td>
813
  <td>
814
  <input class='option coin' type='number' min='0' max='10000' step='100' name="settings[titleSpeed]" value='<?php echo $this->slider->get_setting('titleSpeed') ?>' /><?php _e("ms", 'metaslider') ?>
815
  </td>
816
  </tr>
 
817
  <tr>
818
  <td colspan='2' class='highlight'><?php _e("Developer Options", 'metaslider') ?></td>
819
  </tr>
820
  <tr>
821
+ <td width='40%' class='tipsy-tooltip' title="<?php _e("Specify any custom CSS Classes you would like to be added to the slider wrapper", 'metaslider') ?>">
822
  <?php _e("CSS classes", 'metaslider') ?>
823
  </td>
824
  <td>
826
  </td>
827
  </tr>
828
  <tr>
829
+ <td class='tipsy-tooltip' title="<?php _e("Uncheck this is you would like to include your own CSS", 'metaslider') ?>">
830
  <?php _e("Print CSS", 'metaslider') ?>
831
  </td>
832
  <td>
833
+ <input type='checkbox' class='useWithCaution' name="settings[printCss]" <?php if ($this->slider->get_setting('printCss') == 'true') echo 'checked=checked' ?> />
834
  </td>
835
  </tr>
836
  <tr>
837
+ <td class='tipsy-tooltip' title="<?php _e("Uncheck this is you would like to include your own Javascript", 'metaslider') ?>">
838
  <?php _e("Print JS", 'metaslider') ?>
839
  </td>
840
  <td>
841
+ <input type='checkbox' class='useWithCaution' name="settings[printJs]" <?php if ($this->slider->get_setting('printJs') == 'true') echo 'checked=checked' ?> />
842
  </td>
843
  </tr>
844
  <tr>
readme.txt CHANGED
@@ -1,9 +1,10 @@
1
  === Plugin Name ===
2
  Contributors: matchalabs
3
- Tags: wordpress slider,slideshow,wordpress slideshow,image slider,flexslider,flex slider,nivoslider,nivo slider,responsiveslides,responsive,responsive slides,coinslider,coin slider,slideshow,carousel,responsive slider,vertical slides,ml slider,image rotator,metaslider,meta,ajax,metaslider pro
 
4
  Requires at least: 3.5
5
  Tested up to: 3.6
6
- Stable tag: 2.0.1
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -11,31 +12,31 @@ License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
12
  == Description ==
13
 
14
- http://www.youtube.com/watch?v=5DgZGVulRRM
15
 
16
  Meta Slider is a flexible, intuitive slideshow administration plugin that lets you choose between 4 jQuery sliders.
17
 
18
- * Flex Slider 2 (Responsive, 2 transition effects, carousel mode)
19
- * Nivo Slider (Responsive, 16 transition effects, 4 themes)
20
- * Responsive Slides (Responsive, fade effect only, incredibly light weight!)
21
- * Coin Slider (4 transition effects)
22
 
23
  Features:
24
 
25
- * Intuitive, responsive AJAX powered administration panel
26
- * Create unlimited slideshows with unlimited number of slides
27
- * Change slideshow settings such as: speed, theme, hover pause, width, height, easing
28
- * Add Captions & URLs to slides
29
- * Drag & Drop reording
30
- * Fully integrated with the new WordPress 3.5 Media Manager
31
- * Lightweight, only the bare minimum in terms of JavaScript and CSS is outputted to your website
32
- * Built in intelligent image cropping
33
- * Carousel Mode available with Flex Slider
34
- * Supports localisation
35
 
36
  Meta Slider has been translated into the following languages:
37
 
38
  * French (thanks to fb-graphiklab)
 
39
 
40
  Read more and thanks to:
41
 
@@ -44,17 +45,27 @@ Read more and thanks to:
44
  * [http://workshop.rs/projects/coin-slider/](http://workshop.rs/projects/coin-slider/)
45
  * [http://dev7studios.com/nivo-slider/](http://dev7studios.com/nivo-slider/)
46
 
47
- Want More? Get the Meta Slider Pro addon pack to add support for:
48
 
 
49
  * YouTube slides
50
  * Vimeo slides
51
  * HTML slides
 
52
  * Dynamic Post Feed Slides (content slider)
53
 
54
  Find out more at http://www.metaslider.com
55
 
56
  == Installation ==
57
 
 
 
 
 
 
 
 
 
58
  1. Upload the `ml-slider` folder to the `/wp-content/plugins/` directory
59
  1. Activate the plugin through the 'Plugins' menu in WordPress
60
  1. Manage your slideshows using the 'MetaSlider' menu option
@@ -63,6 +74,23 @@ Find out more at http://www.metaslider.com
63
 
64
  http://www.metaslider.com/documentation/
65
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
66
  == Screenshots ==
67
 
68
  1. Meta Slider - for live demos see http://www.metaslider.com/examples/
@@ -74,11 +102,47 @@ http://www.metaslider.com/documentation/
74
 
75
  == Changelog ==
76
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
77
  = 2.0.2 =
78
  * Fix: PHP Error when using slides the same size as the slideshow
79
 
80
  = 2.0.1 =
81
- * New feature: French translation pack (thanks to: fb-graphiklab)
82
  * Fix: Use transparent background on default flexslider theme
83
  * Fix: Set direction to LTR for flexslider viewport (fix for RTL languages)
84
  * Fix: Nivoslider HTML Captions
1
  === Plugin Name ===
2
  Contributors: matchalabs
3
+ Tags: widget,wordpress slider,slideshow,wordpress slideshow,image slider,flexslider,flex slider,nivoslider,nivo slider,responsiveslides,responsive,responsive slides,coinslider,coin slider,slideshow,carousel,responsive slider,vertical slides,ml slider,image rotator,metaslider,meta,ajax,metaslider pro
4
+ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=CQ84KC4X8YKW8
5
  Requires at least: 3.5
6
  Tested up to: 3.6
7
+ Stable tag: 2.1.6
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
12
 
13
  == Description ==
14
 
15
+ http://www.youtube.com/watch?v=I7IfkV6iLqo
16
 
17
  Meta Slider is a flexible, intuitive slideshow administration plugin that lets you choose between 4 jQuery sliders.
18
 
19
+ * **Nivo Slider** (Responsive, 16 transition effects, 4 themes)
20
+ * **Coin Slider** (4 transition effects)
21
+ * **Flex Slider 2** (Responsive, 2 transition effects, carousel mode)
22
+ * **Responsive Slides** (Responsive, fade effect only, incredibly light weight!)
23
 
24
  Features:
25
 
26
+ * Easy to use **AJAX** powered administration panel
27
+ * Built in **Widget** and **Shortcode**
28
+ * Change settings per slideshow *(speed, theme, hover pause, width, height, easing etc)*
29
+ * Fully integrated with the new WordPress 3.5 media manager
30
+ * Add captions and URLs to slides
31
+ * **Drag and drop** reordering
32
+ * Lightweight
33
+ * Intelligent image cropping (Smart Crop)
34
+ * Fully localised
 
35
 
36
  Meta Slider has been translated into the following languages:
37
 
38
  * French (thanks to fb-graphiklab)
39
+ * Spanish (thanks to eltipografico)
40
 
41
  Read more and thanks to:
42
 
45
  * [http://workshop.rs/projects/coin-slider/](http://workshop.rs/projects/coin-slider/)
46
  * [http://dev7studios.com/nivo-slider/](http://dev7studios.com/nivo-slider/)
47
 
48
+ Want More? Get the **Meta Slider Pro** addon pack to add support for:
49
 
50
+ * Theme Editor (new!)
51
  * YouTube slides
52
  * Vimeo slides
53
  * HTML slides
54
+ * Layer Slides (new!)
55
  * Dynamic Post Feed Slides (content slider)
56
 
57
  Find out more at http://www.metaslider.com
58
 
59
  == Installation ==
60
 
61
+ The easy way:
62
+
63
+ 1. Go to the Plugins Menu in WordPress
64
+ 1. Search for "Meta Slider"
65
+ 1. Click 'Install'
66
+
67
+ The not so easy way:
68
+
69
  1. Upload the `ml-slider` folder to the `/wp-content/plugins/` directory
70
  1. Activate the plugin through the 'Plugins' menu in WordPress
71
  1. Manage your slideshows using the 'MetaSlider' menu option
74
 
75
  http://www.metaslider.com/documentation/
76
 
77
+ = How do I include a slideshow in the header of my site? =
78
+
79
+ You will need to paste the "Template Include" code into your theme (you can find this in the 'Usage' section underneath the slideshow settings)
80
+
81
+ * Go to Appearance > Editor in WordPress
82
+ * Edit a file called 'header.php' (or similar)
83
+ * Find the correct place to add it (for example above or below the logo)
84
+ * Paste in the code and save.
85
+
86
+ If you want to include the slideshow on your homepage only, use this code:
87
+
88
+ `<?php
89
+ if (is_front_page() || is_home()) {
90
+ echo do_shortcode("[metaslider id=123]"); //replace 123 with slider ID
91
+ }
92
+ ?>`
93
+
94
  == Screenshots ==
95
 
96
  1. Meta Slider - for live demos see http://www.metaslider.com/examples/
102
 
103
  == Changelog ==
104
 
105
+ = 2.1.6 =
106
+ * Fix: Use the original image file if the slideshow size is the same size as the image file
107
+ * Fix: Conflict with Advanced Post Types Order plugin
108
+ * Fix: Colorbox conflict when using resizable elements in lightbox
109
+ * Improvement: Refresh slides after clicking 'save'
110
+ * Improvement: Ensure taxonomy category exists before tagging slide to slideshow
111
+ * Fix: Only submit form when submit button is clicked (not all buttons)
112
+ * Fix: Coin slider caption width in FireFox
113
+ * Improvement: Added hook to adjust carousel image margin
114
+
115
+ = 2.1.5 =
116
+ * Fix: HTML 5 Validation
117
+
118
+ = 2.1.4 =
119
+ * Fix: Widget markup invalid (reported by and thanks to: CarlosCanvas)
120
+
121
+ = 2.1.3 =
122
+ * Fix: User Access Manager Plugin incompatibility issues (reported by and thanks to: eltipografico)
123
+
124
+ = 2.1.2 =
125
+ * Fix: Nivo Slider theme select dropdown (reported by and thanks to: macks)
126
+ * Fix: HTML5 Validation fix for inline styles
127
+ * Improvement: Title field added to widget (suggested by and thanks to: pa_esp)
128
+ * New feature: Spanish language pack (thanks to eltipografico)
129
+
130
+ = 2.1.1 =
131
+ * Fix: PHP version compatibility
132
+
133
+ = 2.1 =
134
+ * New feature: Widget added
135
+ * New feature: System check added (checks for required image libraries and WordPress version)
136
+ * Fix: Multiple CSS fixes added for popular themes
137
+ * Fix: Flex slider shows first slide when JS is disabled
138
+ * Improvement: Display warning message when unchecking Print JS and Print CSS options
139
+ * Improvement: Coinslider navigation centered
140
+
141
  = 2.0.2 =
142
  * Fix: PHP Error when using slides the same size as the slideshow
143
 
144
  = 2.0.1 =
145
+ * New feature: French language pack (thanks to: fb-graphiklab)
146
  * Fix: Use transparent background on default flexslider theme
147
  * Fix: Set direction to LTR for flexslider viewport (fix for RTL languages)
148
  * Fix: Nivoslider HTML Captions