Changeset 407189
- Timestamp:
- 07/08/2011 11:43:56 PM (15 years ago)
- Location:
- anythingslider-for-wordpress
- Files:
-
- 39 added
- 4 edited
-
tags/0.6.2 (added)
-
tags/0.6.2/css (added)
-
tags/0.6.2/css/admin.css (added)
-
tags/0.6.2/css/anythingslider-ie.css (added)
-
tags/0.6.2/css/anythingslider.css (added)
-
tags/0.6.2/css/theme-construction.css (added)
-
tags/0.6.2/css/theme-cs-portfolio.css (added)
-
tags/0.6.2/css/theme-metallic.css (added)
-
tags/0.6.2/css/theme-minimalist-round.css (added)
-
tags/0.6.2/css/theme-minimalist-square.css (added)
-
tags/0.6.2/images (added)
-
tags/0.6.2/images/arrows-construction.gif (added)
-
tags/0.6.2/images/arrows-cs-portfolio.jpg (added)
-
tags/0.6.2/images/arrows-default.png (added)
-
tags/0.6.2/images/arrows-metallic.png (added)
-
tags/0.6.2/images/arrows-minimalist.png (added)
-
tags/0.6.2/images/bg-cs-portfolio.jpg (added)
-
tags/0.6.2/images/cellshade.png (added)
-
tags/0.6.2/images/nav-construction.png (added)
-
tags/0.6.2/images/nav-cs-portfolio.png (added)
-
tags/0.6.2/js (added)
-
tags/0.6.2/js/admin.js (added)
-
tags/0.6.2/js/jquery.anythingslider.fx.js (added)
-
tags/0.6.2/js/jquery.anythingslider.fx.min.js (added)
-
tags/0.6.2/js/jquery.anythingslider.js (added)
-
tags/0.6.2/js/jquery.anythingslider.min.js (added)
-
tags/0.6.2/js/jquery.anythingslider.video.js (added)
-
tags/0.6.2/js/jquery.anythingslider.video.min.js (added)
-
tags/0.6.2/js/jquery.easing.1.2.js (added)
-
tags/0.6.2/js/swfobject.js (added)
-
tags/0.6.2/jtd-anything-slider.php (added)
-
tags/0.6.2/readme.txt (added)
-
tags/0.6.2/screenshot-1.jpg (added)
-
tags/0.6.2/screenshot-2.jpg (added)
-
tags/0.6.2/screenshot-3.jpg (added)
-
tags/0.6.2/screenshot-4.jpg (added)
-
tags/0.6.2/uninstall.php (added)
-
trunk/css/admin.css (added)
-
trunk/css/anythingslider.css (modified) (1 diff)
-
trunk/js/admin.js (added)
-
trunk/js/jquery.anythingslider.min.js (modified) (1 diff)
-
trunk/jtd-anything-slider.php (modified) (28 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
anythingslider-for-wordpress/trunk/css/anythingslider.css
r405807 r407189 138 138 div.anythingSlider .anythingControls { outline: 0; display: none; } 139 139 div.anythingSlider .thumbNav { margin: 0; padding: 0; } 140 div.anythingSlider .thumbNav li { display: inline; }140 div.anythingSlider .thumbNav li { display: block; float: left; } 141 141 div.anythingSlider .thumbNav a { 142 142 font: 11px/18px Georgia, Serif; 143 display: inline-block;143 display: block; 144 144 text-decoration: none; 145 145 padding: 2px 8px; -
anythingslider-for-wordpress/trunk/js/jquery.anythingslider.min.js
r405807 r407189 1 1 /* 2 AnythingSlider v1.7. 1minified using Google Closure Compiler2 AnythingSlider v1.7.3 minified using Google Closure Compiler 3 3 Original by Chris Coyier: http://css-tricks.com 4 4 Get the latest version: https://github.com/ProLoser/AnythingSlider 5 5 */ 6 6 7 (function(d){d.anythingSlider=function(i,j){var a=this,b;a.$el=d(i).addClass("anythingBase").wrap('<div class="anythingSlider"><div class="anythingWindow" /></div>');a.$el.data("AnythingSlider",a);a.init=function(){a.options=b=d.extend({},d.anythingSlider.defaults,j);a.initialized=!1;d.isFunction(b.onBeforeInitialize)&&a.$el.bind("before_initialize",b.onBeforeInitialize);a.$el.trigger("before_initialize",a);a.$wrapper=a.$el.parent().closest("div.anythingSlider").addClass("anythingSlider-"+b.theme); a.$window=a.$el.closest("div.anythingWindow");a.win=window;a.$win=d(a.win);a.$controls=d('<div class="anythingControls"></div>').appendTo(b.appendControlsTo!==null&&d(b.appendControlsTo).length?d(b.appendControlsTo):a.$wrapper);a.$startStop=d('<a href="#" class="start-stop"></a>');b.buildStartStop&&a.$startStop.appendTo(b.appendStartStopTo!==null&&d(b.appendStartStopTo).length?d(b.appendStartStopTo):a.$controls);a.$nav=d('<ul class="thumbNav" />').appendTo(b.appendNavigationTo!==null&&d(b.appendNavigationTo).length? d(b.appendNavigationTo):a.$controls);a.flag=!1;a.playing= !1;a.slideshow=!1;a.hovered=!1;a.panelSize=[];a.currentPage=b.startPanel=parseInt(b.startPanel,10)||1;a.adj=b.infiniteSlides?0:1;a.width=a.$el.width();a.height=a.$el.height();a.outerPad=[a.$wrapper.innerWidth()-a.$wrapper.width(),a.$wrapper.innerHeight()-a.$wrapper.height()];b.playRtl&&a.$wrapper.addClass("rtl");if(b.expand)a.$outer=a.$wrapper.parent(),a.$window.css({width:"100%",height:"100%"}),a.checkResize();b.buildStartStop?(a.playing=b.autoPlay, a.buildAutoPlay()):b.autoPlayLocked=!1;b.buildArrows&&a.buildNextBackButtons();a.updateSlider();a.$lastPage=a.$currentPage;a.runTimes=d("div.anythingSlider").index(a.$wrapper)+1;a.regex=RegExp("panel"+a.runTimes+"-(\\d+)","i");if(!d.isFunction(d.easing[b.easing]))b.easing="swing";b.pauseOnHover&&a.$wrapper.hover(function(){a.playing&&(a.$el.trigger("slideshow_paused",a),a.clearTimer(!0))},function(){a.playing&&(a.$el.trigger("slideshow_unpaused",a),a.startStop(a.playing,!0))});var c,f=b.hashTags? a.gotoHash()||b.startPanel:b.startPanel;a.setCurrentPage(f,!1);a.slideControls(!1);a.$wrapper.bind("mouseenter mouseleave",function(b){a.hovered=b.type==="mouseenter"?!0:!1;a.slideControls(a.hovered,!1)});d(document).keyup(function(c){var f;f=a.$wrapper.is(".activeSlider")&&!c.target.tagName.match("TEXTAREA|INPUT|SELECT");switch(c.which){case 9:c=d(":focus");f=c.closest(".anythingSlider");f[0]===a.$wrapper[0]&&(a.makeActive(),a.$window.scrollLeft(0),a.gotoPage(c.closest(".panel").index()+a.adj)); break;case 39:f&&b.enableKeyboard&&a.goForward();break;case 37:f&&b.enableKeyboard&&a.goBack()}});c="slideshow_paused slideshow_unpaused slide_init slide_begin slideshow_stop slideshow_start initialized swf_completed".split(" ");d.each("onShowPause onShowUnpause onSlideInit onSlideBegin onShowStop onShowStart onInitialized onSWFComplete".split(" "),function(f,g){d.isFunction(b[g])&&a.$el.bind(c[f],b[g])});d.isFunction(b.onSlideComplete)&&a.$el.bind("slide_complete",function(){setTimeout(function(){b.onSlideComplete(a)}, 0)});a.initialized=!0;a.$el.trigger("initialized",a);a.startStop(a.playing)};a.updateSlider=function(){a.$el.children(".cloned").remove();a.$nav.empty();a.currentPage=a.currentPage||1;a.$items=a.$el.children();a.pages=a.$items.length;b.showMultiple=parseInt(b.showMultiple,10)||1;if(b.showMultiple>1){if(b.showMultiple>a.pages)b.showMultiple=a.pages;a.adjustMultiple=b.infiniteSlides&&a.pages>1?0:b.showMultiple-1;a.pages=a.$items.length-a.adjustMultiple}a.$controls.add(a.$nav).add(a.$startStop).add(a.$forward).add(a.$back)[a.pages<= 1?"hide":"show"]();a.pages>1&&a.buildNavigation();b.infiniteSlides&&a.pages>1&&(a.$el.prepend(a.$items.filter(":last").clone().addClass("cloned").removeAttr("id")),b.showMultiple>1?a.$el.append(a.$items.filter(":lt("+b.showMultiple+")").clone().addClass("cloned").addClass("multiple").removeAttr("id")):a.$el.append(a.$items.filter(":first").clone().addClass("cloned").removeAttr("id")),a.$el.find(".cloned").each(function(){d(this).find("a,input,textarea,select,button,area").attr("disabled","disabled"); d(this).find("[id]").removeAttr("id")}));a.$items=a.$el.children().addClass("panel");a.setDimensions();b.resizeContents&&a.pages>1?(a.$items.css("width",a.width),a.$wrapper.css("width",a.getDim(a.currentPage)[0]),a.$wrapper.add(a.$items).css("height",a.height)):a.$win.load(function(){a.setDimensions()});if(a.currentPage>a.pages)a.currentPage=a.pages;a.setCurrentPage(a.currentPage,!1);a.$nav.find("a").eq(a.currentPage-1).addClass("cur")};a.buildNavigation=function(){if(b.buildNavigation&&a.pages>1){var c, f,e;a.$items.filter(":not(.cloned)").each(function(g){var h=g+1;f=(h===1?"first":"")+(h===a.pages?"last":"");e=d('<a href="#"></a>').addClass("panel"+h).wrap('<li class="'+f+'" />');a.$nav.append(e.parent());d.isFunction(b.navigationFormatter)?(c=b.navigationFormatter(h,d(this)),e.html("<span>"+c+"</span>"),parseInt(e.find("span").css("text-indent"),10)<0&&e.addClass(b.tooltipClass).attr("title",c)):e.html("<span>"+h+"</span>");e.bind(b.clickControls,function(c){if(!a.flag&&b.enableNavigation)a.flag= !0,setTimeout(function(){a.flag=!1},100),a.gotoPage(h),b.hashTags&&a.setHash(h);c.preventDefault()})})}};a.buildNextBackButtons=function(){a.$forward=d('<span class="arrow forward"><a href="#"><span>'+b.forwardText+"</span></a></span>");a.$back=d('<span class="arrow back"><a href="#"><span>'+b.backText+"</span></a></span>");a.$back.bind(b.clickBackArrow,function(c){if(b.enableArrows&&!a.flag)a.flag=!0,setTimeout(function(){a.flag=!1},100),a.goBack();c.preventDefault()});a.$forward.bind(b.clickForwardArrow, function(c){if(b.enableArrows&&!a.flag)a.flag=!0,setTimeout(function(){a.flag=!1},100),a.goForward();c.preventDefault()});a.$back.add(a.$forward).find("a").bind("focusin focusout",function(){d(this).toggleClass("hover")});a.$forward.appendTo(b.appendFowardTo!==null&&d(b.appendFowardTo).length?d(b.appendFowardTo):a.$wrapper);a.$back.appendTo(b.appendBackTo!==null&&d(b.appendBackTo).length?d(b.appendBackTo):a.$wrapper);a.$arrowWidth=a.$forward.width()};a.buildAutoPlay=function(){a.$startStop.html("<span>"+ (a.playing?b.stopText:b.startText)+"</span>").bind(b.clickSlideshow,function(c){b.enableStartStop&&(a.startStop(!a.playing),a.makeActive(),a.playing&&!b.autoPlayDelayed&&a.goForward(!0));c.preventDefault()}).bind("focusin focusout",function(){d(this).toggleClass("hover")})};a.checkResize=function(c){clearTimeout(a.resizeTimer);a.resizeTimer=setTimeout(function(){var f=a.$outer.width()-a.outerPad[0],d=(a.$outer[0].tagName==="BODY"?a.$win.height():a.$outer.height())-a.outerPad[1];if(a.width*b.showMultiple!== f||a.height!==d)a.setDimensions(),a.gotoPage(a.currentPage,a.playing,null,1);typeof c==="undefined"&&a.checkResize()},500)};a.setDimensions=function(){var c,f,e,g=0,h=b.showMultiple>1?a.width||a.$window.width()/b.showMultiple:a.$window.width(),i=a.$win.width();if(b.expand)c=a.$outer.width()-a.outerPad[0],a.height=f=a.$outer.height()-a.outerPad[1],a.$wrapper.add(a.$window).add(a.$items).css({width:c,height:f}),a.width=h=b.showMultiple>1?c/b.showMultiple:c;a.$items.each(function(j){e=d(this).children(); b.resizeContents?(c=a.width,d(this).css({width:c,height:a.height}),e.length&&e[0].tagName==="EMBED"&&e.attr({width:"100%",height:"100%"}),e.length===1&&e.css({width:"100%",height:"100%"})):(c=d(this).width(),e.length===1&&c>=i&&(c=e.width()>=i?h:e.width(),e.css("max-width",c)),d(this).css("width",c),f=d(this).outerHeight(),d(this).css("height",f));a.panelSize[j]=[c,f,g];g+=c});a.$el.css("width",g)};a.getDim=function(c){if(!(a.pages<1)){var c=b.infiniteSlides&&a.pages>1?c:c-1,f,d=a.panelSize[c][0], g=a.panelSize[c][1];if(b.showMultiple>1)for(f=1;f<b.showMultiple;f++)d+=a.panelSize[(c+f)%b.showMultiple][0],g=Math.max(g,a.panelSize[c+f][1]);return[d,g]}};a.goForward=function(c){a.gotoPage(a.currentPage+parseInt(b.changeBy,10)*(b.playRtl?-1:1),c)};a.goBack=function(c){a.gotoPage(a.currentPage+parseInt(b.changeBy,10)*(b.playRtl?1:-1),c)};a.gotoPage=function(c,d,e,g){d!==!0&&(d=!1,a.startStop(!1),a.makeActive());b.changeBy!==1&&(c<0&&(c+=a.pages),c>a.pages&&(c-=a.pages));if(!(a.pages<=1)){a.$lastPage= a.$currentPage;if(typeof c!=="number")c=b.startPanel,a.setCurrentPage(c);if(!d||!b.isVideoPlaying(a))c>a.pages+1-a.adj&&(c=!b.infiniteSlides&&!b.stopAtEnd?1:a.pages),c<a.adj&&(c=!b.infiniteSlides&&!b.stopAtEnd?a.pages:1),a.currentPage=c>a.pages?a.pages:c<1?1:a.currentPage,a.$currentPage=a.$items.eq(a.currentPage-a.adj),a.exactPage=c,a.$targetPage=a.$items.eq(c===0?a.pages-a.adj:c>a.pages?1-a.adj:c-a.adj),a.$el.trigger("slide_init",a),a.slideControls(!0,!1),d!==!0&&(d=!1),(!d||b.stopAtEnd&&c===a.pages)&& a.startStop(!1),a.$el.trigger("slide_begin",a),b.resizeContents||(d=a.getDim(c),a.$wrapper.filter(":not(:animated)").animate({width:d[0],height:d[1]},{queue:!1,duration:g||b.animationTime,easing:b.easing})),a.$el.filter(":not(:animated)").animate({left:-a.panelSize[b.infiniteSlides&&a.pages>1?c:c-1][2]},{queue:!1,duration:g||b.animationTime,easing:b.easing,complete:function(){a.endAnimation(c,e)}})}};a.endAnimation=function(c,d){c===0?(a.$el.css("left",-a.panelSize[a.pages][2]),c=a.pages):c>a.pages&& (a.$el.css("left",-a.panelSize[1][2]),c=1);a.exactPage=c;a.setCurrentPage(c,!1);a.$items.removeClass("activePage").eq(c-a.adj).addClass("activePage");a.hovered||a.slideControls(!1);a.$el.trigger("slide_complete",a);typeof d==="function"&&d(a);b.autoPlayLocked&&!a.playing&&setTimeout(function(){a.startStop(!0)},b.resumeDelay-b.delay)};a.setCurrentPage=function(c,d){if(!(a.pages<1||c===0)){c=parseInt(c,10);c>a.pages+1-a.adj&&(c=a.pages-a.adj);c<a.adj&&(c=1);b.buildNavigation&&a.$nav.find(".cur").removeClass("cur").end().find("a").eq(c- 1).addClass("cur");!b.infiniteSlides&&b.stopAtEnd&&(a.$wrapper.find("span.forward")[c===a.pages?"addClass":"removeClass"]("disabled").end().find("span.back")[c===1?"addClass":"removeClass"]("disabled"),c===a.pages&&a.playing&&a.startStop());if(!d){var e=a.getDim(c);a.$wrapper.css({width:e[0],height:e[1]}).add(a.$window).scrollLeft(0);a.$el.css("left",-a.panelSize[b.infiniteSlides&&a.pages>1?c:c-1][2])}a.currentPage=c;a.$currentPage=a.$items.removeClass("activePage").eq(c-a.adj).addClass("activePage")}}; a.makeActive=function(){a.$wrapper.is(".activeSlider")||(d(".activeSlider").removeClass("activeSlider"),a.$wrapper.addClass("activeSlider"))};a.gotoHash=function(){var b=a.win.location.hash.match(a.regex);return b===null?"":parseInt(b[1],10)};a.setHash=function(b){var d="panel"+a.runTimes+"-",e=a.win.location.hash;if(typeof e!=="undefined")a.win.location.hash=e.indexOf(d)>0?e.replace(a.regex,d+b):e+"&"+d+b};a.slideControls=function(c){var d=c?0:b.animationTime,e=c?b.animationTime:0,g=c?1:0,h=c?0: 1;b.toggleControls&&a.$controls.stop(!0,!0).delay(d)[c?"slideDown":"slideUp"](b.animationTime/2).delay(e);b.buildArrows&&b.toggleArrows&&(!a.hovered&&a.playing&&(h=1,g=0),a.$forward.stop(!0,!0).delay(d).animate({right:h*a.$arrowWidth,opacity:g},b.animationTime/2),a.$back.stop(!0,!0).delay(d).animate({left:h*a.$arrowWidth,opacity:g},b.animationTime/2))};a.clearTimer=function(b){if(a.timer&&(a.win.clearInterval(a.timer),!b&&a.slideshow))a.$el.trigger("slideshow_stop",a),a.slideshow=!1};a.startStop= function(c,d){c!==!0&&(c=!1);if(c&&!d)a.$el.trigger("slideshow_start",a),a.slideshow=!0;a.playing=c;b.buildStartStop&&(a.$startStop.toggleClass("playing",c).html("<span>"+(c?b.stopText:b.startText)+"</span>"),parseInt(a.$startStop.find("span").css("text-indent"),10)<0&&a.$startStop.addClass(b.tooltipClass).attr("title",c?"Stop":"Start"));c&&b.resumeOnVideoEnd?(a.clearTimer(!0),a.timer=a.win.setInterval(function(){b.isVideoPlaying(a)||a.goForward(!0)},b.delay)):a.clearTimer()};a.init()};d.anythingSlider.defaults= {theme:"default",expand:!1,resizeContents:!0,showMultiple:!1,easing:"swing",buildArrows:!0,buildNavigation:!0,buildStartStop:!0,appendFowardTo:null,appendBackTo:null,appendControlsTo:null,appendNavigationTo:null,appendStartStopTo:null,toggleArrows:!1,toggleControls:!1,startText:"Start",stopText:"Stop",forwardText:"»",backText:"«",tooltipClass:"tooltip",enableArrows:!0,enableNavigation:!0,enableStartStop:!0,enableKeyboard:!0,startPanel:1,changeBy:1,hashTags:!0,infiniteSlides:!0,navigationFormatter:null, autoPlay:!1,autoPlayLocked:!1,autoPlayDelayed:!1,pauseOnHover:!0,stopAtEnd:!1,playRtl:!1,delay:3E3,resumeDelay:15E3,animationTime:600,clickForwardArrow:"click",clickBackArrow:"click",clickControls:"click focusin",clickSlideshow:"click",resumeOnVideoEnd:!0,addWmodeToObject:"opaque",isVideoPlaying:function(){return!1}};d.fn.anythingSlider=function(i,j){return this.each(function(){var a,b=d(this).data("AnythingSlider");(typeof i).match("object|undefined")?b?b.updateSlider():new d.anythingSlider(this,i):/\d/.test(i)&&!isNaN(i)&&b&&(a=typeof i==="number"?i:parseInt(d.trim(i),10),a>=1&&a<=b.pages&&b.gotoPage(a,!1,j))})}})(jQuery);7 (function(d){d.anythingSlider=function(i,j){var a=this,b;a.$el=d(i).addClass("anythingBase").wrap('<div class="anythingSlider"><div class="anythingWindow" /></div>');a.$el.data("AnythingSlider",a);a.init=function(){a.options=b=d.extend({},d.anythingSlider.defaults,j);a.initialized=!1;d.isFunction(b.onBeforeInitialize)&&a.$el.bind("before_initialize",b.onBeforeInitialize);a.$el.trigger("before_initialize",a);a.$wrapper=a.$el.parent().closest("div.anythingSlider").addClass("anythingSlider-"+b.theme); a.$window=a.$el.closest("div.anythingWindow");a.win=window;a.$win=d(a.win);a.$controls=d('<div class="anythingControls"></div>').appendTo(b.appendControlsTo!==null&&d(b.appendControlsTo).length?d(b.appendControlsTo):a.$wrapper);a.$startStop=d('<a href="#" class="start-stop"></a>');b.buildStartStop&&a.$startStop.appendTo(b.appendStartStopTo!==null&&d(b.appendStartStopTo).length?d(b.appendStartStopTo):a.$controls);a.$nav=d('<ul class="thumbNav" />').appendTo(b.appendNavigationTo!==null&&d(b.appendNavigationTo).length? d(b.appendNavigationTo):a.$controls);a.flag=!1;a.playing=b.autoPlay;a.slideshow=!1;a.hovered=!1;a.panelSize=[];a.currentPage=b.startPanel=parseInt(b.startPanel,10)||1;a.adj=b.infiniteSlides?0:1;a.width=a.$el.width();a.height=a.$el.height();a.outerPad=[a.$wrapper.innerWidth()-a.$wrapper.width(),a.$wrapper.innerHeight()-a.$wrapper.height()];b.playRtl&&a.$wrapper.addClass("rtl");if(b.expand)a.$outer=a.$wrapper.parent(),a.$window.css({width:"100%",height:"100%"}),a.checkResize();b.buildStartStop&&a.buildAutoPlay(); b.buildArrows&&a.buildNextBackButtons();if(!b.autoPlay)b.autoPlayLocked=!1;a.updateSlider();a.$lastPage=a.$currentPage;a.runTimes=d("div.anythingSlider").index(a.$wrapper)+1;a.regex=RegExp("panel"+a.runTimes+"-(\\d+)","i");if(!d.isFunction(d.easing[b.easing]))b.easing="swing";b.pauseOnHover&&a.$wrapper.hover(function(){a.playing&&(a.$el.trigger("slideshow_paused",a),a.clearTimer(!0))},function(){a.playing&&(a.$el.trigger("slideshow_unpaused",a),a.startStop(a.playing,!0))});var c,h=b.hashTags?a.gotoHash()|| b.startPanel:b.startPanel;a.setCurrentPage(h,!1);a.slideControls(!1);a.$wrapper.bind("mouseenter mouseleave",function(b){a.hovered=b.type==="mouseenter"?!0:!1;a.slideControls(a.hovered,!1)});d(document).keyup(function(c){if(b.enableKeyboard&&a.$wrapper.is(".activeSlider")&&!c.target.tagName.match("TEXTAREA|INPUT|SELECT"))switch(c.which){case 39:a.goForward();break;case 37:a.goBack()}});a.$items.delegate("a","focus.AnythingSlider",function(c){var h=d(this).closest(".panel"),g=a.$items.index(h)+a.adj; a.$items.find(".focusedLink").removeClass("focusedLink");d(this).addClass("focusedLink");a.$window.scrollLeft(0);!h.is(".activePage")&&a.currentPage+b.showMultiple-1>g&&(a.gotoPage(g),c.preventDefault())});c="slideshow_paused slideshow_unpaused slide_init slide_begin slideshow_stop slideshow_start initialized swf_completed".split(" ");d.each("onShowPause onShowUnpause onSlideInit onSlideBegin onShowStop onShowStart onInitialized onSWFComplete".split(" "),function(h,f){d.isFunction(b[f])&&a.$el.bind(c[h], b[f])});d.isFunction(b.onSlideComplete)&&a.$el.bind("slide_complete",function(){setTimeout(function(){b.onSlideComplete(a)},0)});a.initialized=!0;a.$el.trigger("initialized",a);a.startStop(a.playing)};a.updateSlider=function(){a.$el.children(".cloned").remove();a.$nav.empty();a.currentPage=a.currentPage||1;a.$items=a.$el.children();a.pages=a.$items.length;b.showMultiple=parseInt(b.showMultiple,10)||1;if(b.showMultiple>1){if(b.showMultiple>a.pages)b.showMultiple=a.pages;a.adjustMultiple=b.infiniteSlides&& a.pages>1?0:b.showMultiple-1;a.pages=a.$items.length-a.adjustMultiple}a.$controls.add(a.$nav).add(a.$startStop).add(a.$forward).add(a.$back)[a.pages<=1?"hide":"show"]();a.pages>1&&a.buildNavigation();b.infiniteSlides&&a.pages>1&&(a.$el.prepend(a.$items.filter(":last").clone().addClass("cloned").removeAttr("id")),b.showMultiple>1?a.$el.append(a.$items.filter(":lt("+b.showMultiple+")").clone().addClass("cloned").addClass("multiple").removeAttr("id")):a.$el.append(a.$items.filter(":first").clone().addClass("cloned").removeAttr("id")), a.$el.find(".cloned").each(function(){d(this).find("a,input,textarea,select,button,area").attr("disabled","disabled");d(this).find("[id]").removeAttr("id")}));a.$items=a.$el.children().addClass("panel");a.setDimensions();b.resizeContents&&a.pages>1?(a.$items.css("width",a.width),a.$wrapper.css("width",a.getDim(a.currentPage)[0]),a.$wrapper.add(a.$items).css("height",a.height)):a.$win.load(function(){a.setDimensions()});if(a.currentPage>a.pages)a.currentPage=a.pages;a.setCurrentPage(a.currentPage, !1);a.$nav.find("a").eq(a.currentPage-1).addClass("cur")};a.buildNavigation=function(){if(b.buildNavigation&&a.pages>1){var c,h,e;a.$items.filter(":not(.cloned)").each(function(f){var g=f+1;h=(g===1?"first":"")+(g===a.pages?"last":"");e=d('<a href="#"></a>').addClass("panel"+g).wrap('<li class="'+h+'" />');a.$nav.append(e.parent());d.isFunction(b.navigationFormatter)?(c=b.navigationFormatter(g,d(this)),e.html("<span>"+c+"</span>"),parseInt(e.find("span").css("text-indent"),10)<0&&e.addClass(b.tooltipClass).attr("title", c)):e.html("<span>"+g+"</span>");e.bind(b.clickControls,function(c){if(!a.flag&&b.enableNavigation)a.flag=!0,setTimeout(function(){a.flag=!1},100),a.gotoPage(g),b.hashTags&&a.setHash(g);c.preventDefault()})})}};a.buildNextBackButtons=function(){a.$forward=d('<span class="arrow forward"><a href="#"><span>'+b.forwardText+"</span></a></span>");a.$back=d('<span class="arrow back"><a href="#"><span>'+b.backText+"</span></a></span>");a.$back.bind(b.clickBackArrow,function(c){if(b.enableArrows&&!a.flag)a.flag= !0,setTimeout(function(){a.flag=!1},100),a.goBack();c.preventDefault()});a.$forward.bind(b.clickForwardArrow,function(c){if(b.enableArrows&&!a.flag)a.flag=!0,setTimeout(function(){a.flag=!1},100),a.goForward();c.preventDefault()});a.$back.add(a.$forward).find("a").bind("focusin focusout",function(){d(this).toggleClass("hover")});a.$forward.appendTo(b.appendFowardTo!==null&&d(b.appendFowardTo).length?d(b.appendFowardTo):a.$wrapper);a.$back.appendTo(b.appendBackTo!==null&&d(b.appendBackTo).length?d(b.appendBackTo): a.$wrapper);a.$arrowWidth=a.$forward.width()};a.buildAutoPlay=function(){a.$startStop.html("<span>"+(a.playing?b.stopText:b.startText)+"</span>").bind(b.clickSlideshow,function(c){b.enableStartStop&&(a.startStop(!a.playing),a.makeActive(),a.playing&&!b.autoPlayDelayed&&a.goForward(!0));c.preventDefault()}).bind("focusin focusout",function(){d(this).toggleClass("hover")})};a.checkResize=function(c){clearTimeout(a.resizeTimer);a.resizeTimer=setTimeout(function(){var d=a.$outer.width()-a.outerPad[0], e=(a.$outer[0].tagName==="BODY"?a.$win.height():a.$outer.height())-a.outerPad[1];if(a.width*b.showMultiple!==d||a.height!==e)a.setDimensions(),a.gotoPage(a.currentPage,a.playing,null,1);typeof c==="undefined"&&a.checkResize()},500)};a.setDimensions=function(){var c,h,e,f=0,g=b.showMultiple>1?a.width||a.$window.width()/b.showMultiple:a.$window.width(),i=a.$win.width();if(b.expand)c=a.$outer.width()-a.outerPad[0],a.height=h=a.$outer.height()-a.outerPad[1],a.$wrapper.add(a.$window).add(a.$items).css({width:c, height:h}),a.width=g=b.showMultiple>1?c/b.showMultiple:c;a.$items.each(function(j){e=d(this).children();b.resizeContents?(c=a.width,d(this).css({width:c,height:a.height}),e.length&&e[0].tagName==="EMBED"&&e.attr({width:"100%",height:"100%"}),e.length===1&&e.css({width:"100%",height:"100%"})):(c=d(this).width(),e.length===1&&c>=i&&(c=e.width()>=i?g:e.width(),e.css("max-width",c)),d(this).css("width",c),h=d(this).outerHeight(),d(this).css("height",h));a.panelSize[j]=[c,h,f];f+=c});a.$el.css("width", f)};a.getDim=function(c){if(!(a.pages<1)){var c=b.infiniteSlides&&a.pages>1?c:c-1,d,e=a.panelSize[c][0],f=a.panelSize[c][1];if(b.showMultiple>1)for(d=1;d<b.showMultiple;d++)e+=a.panelSize[(c+d)%b.showMultiple][0],f=Math.max(f,a.panelSize[c+d][1]);return[e,f]}};a.goForward=function(c){a.gotoPage(a.currentPage+parseInt(b.changeBy,10)*(b.playRtl?-1:1),c)};a.goBack=function(c){a.gotoPage(a.currentPage+parseInt(b.changeBy,10)*(b.playRtl?1:-1),c)};a.gotoPage=function(c,d,e,f){d!==!0&&(d=!1,a.startStop(!1), a.makeActive());b.changeBy!==1&&(c<0&&(c+=a.pages),c>a.pages&&(c-=a.pages));if(!(a.pages<=1)){a.$lastPage=a.$currentPage;if(typeof c!=="number")c=b.startPanel,a.setCurrentPage(c);if(!d||!b.isVideoPlaying(a))c>a.pages+1-a.adj&&(c=!b.infiniteSlides&&!b.stopAtEnd?1:a.pages),c<a.adj&&(c=!b.infiniteSlides&&!b.stopAtEnd?a.pages:1),a.currentPage=c>a.pages?a.pages:c<1?1:a.currentPage,a.$currentPage=a.$items.eq(a.currentPage-a.adj),a.exactPage=c,a.$targetPage=a.$items.eq(c===0?a.pages-a.adj:c>a.pages?1-a.adj: c-a.adj),a.$el.trigger("slide_init",a),a.slideControls(!0,!1),d!==!0&&(d=!1),(!d||b.stopAtEnd&&c===a.pages)&&a.startStop(!1),a.$el.trigger("slide_begin",a),b.resizeContents||(d=a.getDim(c),a.$wrapper.filter(":not(:animated)").animate({width:d[0],height:d[1]},{queue:!1,duration:f||b.animationTime,easing:b.easing})),a.$el.filter(":not(:animated)").animate({left:-a.panelSize[b.infiniteSlides&&a.pages>1?c:c-1][2]},{queue:!1,duration:f||b.animationTime,easing:b.easing,complete:function(){a.endAnimation(c, e)}})}};a.endAnimation=function(c,d){c===0?(a.$el.css("left",-a.panelSize[a.pages][2]),c=a.pages):c>a.pages&&(a.$el.css("left",-a.panelSize[1][2]),c=1);a.exactPage=c;a.setCurrentPage(c,!1);a.$items.removeClass("activePage").eq(c-a.adj).addClass("activePage");a.hovered||a.slideControls(!1);a.$el.trigger("slide_complete",a);typeof d==="function"&&d(a);b.autoPlayLocked&&!a.playing&&setTimeout(function(){a.startStop(!0)},b.resumeDelay-b.delay)};a.setCurrentPage=function(c,d){if(!(a.pages<1||c===0)){c= parseInt(c,10);c>a.pages+1-a.adj&&(c=a.pages-a.adj);c<a.adj&&(c=1);b.buildNavigation&&a.$nav.find(".cur").removeClass("cur").end().find("a").eq(c-1).addClass("cur");!b.infiniteSlides&&b.stopAtEnd&&(a.$wrapper.find("span.forward")[c===a.pages?"addClass":"removeClass"]("disabled").end().find("span.back")[c===1?"addClass":"removeClass"]("disabled"),c===a.pages&&a.playing&&a.startStop());if(!d){var e=a.getDim(c);a.$wrapper.css({width:e[0],height:e[1]}).add(a.$window).scrollLeft(0);a.$el.css("left",-a.panelSize[b.infiniteSlides&& a.pages>1?c:c-1][2])}a.currentPage=c;a.$currentPage=a.$items.removeClass("activePage").eq(c-a.adj).addClass("activePage")}};a.makeActive=function(){a.$wrapper.is(".activeSlider")||(d(".activeSlider").removeClass("activeSlider"),a.$wrapper.addClass("activeSlider"))};a.gotoHash=function(){var b=a.win.location.hash.match(a.regex);return b===null?"":parseInt(b[1],10)};a.setHash=function(b){var d="panel"+a.runTimes+"-",e=a.win.location.hash;if(typeof e!=="undefined")a.win.location.hash=e.indexOf(d)>0? e.replace(a.regex,d+b):e+"&"+d+b};a.slideControls=function(c){var d=c?0:b.animationTime,e=c?b.animationTime:0,f=c?1:0,g=c?0:1;b.toggleControls&&a.$controls.stop(!0,!0).delay(d)[c?"slideDown":"slideUp"](b.animationTime/2).delay(e);b.buildArrows&&b.toggleArrows&&(!a.hovered&&a.playing&&(g=1,f=0),a.$forward.stop(!0,!0).delay(d).animate({right:g*a.$arrowWidth,opacity:f},b.animationTime/2),a.$back.stop(!0,!0).delay(d).animate({left:g*a.$arrowWidth,opacity:f},b.animationTime/2))};a.clearTimer=function(b){if(a.timer&& (a.win.clearInterval(a.timer),!b&&a.slideshow))a.$el.trigger("slideshow_stop",a),a.slideshow=!1};a.startStop=function(c,d){c!==!0&&(c=!1);if(c&&!d)a.$el.trigger("slideshow_start",a),a.slideshow=!0;a.playing=c;b.buildStartStop&&(a.$startStop.toggleClass("playing",c).html("<span>"+(c?b.stopText:b.startText)+"</span>"),parseInt(a.$startStop.find("span").css("text-indent"),10)<0&&a.$startStop.addClass(b.tooltipClass).attr("title",c?"Stop":"Start"));c&&b.resumeOnVideoEnd?(a.clearTimer(!0),a.timer=a.win.setInterval(function(){b.isVideoPlaying(a)|| a.goForward(!0)},b.delay)):a.clearTimer()};a.init()};d.anythingSlider.defaults={theme:"default",expand:!1,resizeContents:!0,showMultiple:!1,easing:"swing",buildArrows:!0,buildNavigation:!0,buildStartStop:!0,appendFowardTo:null,appendBackTo:null,appendControlsTo:null,appendNavigationTo:null,appendStartStopTo:null,toggleArrows:!1,toggleControls:!1,startText:"Start",stopText:"Stop",forwardText:"»",backText:"«",tooltipClass:"tooltip",enableArrows:!0,enableNavigation:!0,enableStartStop:!0, enableKeyboard:!0,startPanel:1,changeBy:1,hashTags:!0,infiniteSlides:!0,navigationFormatter:null,autoPlay:!1,autoPlayLocked:!1,autoPlayDelayed:!1,pauseOnHover:!0,stopAtEnd:!1,playRtl:!1,delay:3E3,resumeDelay:15E3,animationTime:600,clickForwardArrow:"click",clickBackArrow:"click",clickControls:"click focusin",clickSlideshow:"click",resumeOnVideoEnd:!0,addWmodeToObject:"opaque",isVideoPlaying:function(){return!1}};d.fn.anythingSlider=function(i,j){return this.each(function(){var a,b=d(this).data("AnythingSlider"); (typeof i).match("object|undefined")?b?b.updateSlider():new d.anythingSlider(this,i):/\d/.test(i)&&!isNaN(i)&&b&&(a=typeof i==="number"?i:parseInt(d.trim(i),10),a>=1&&a<=b.pages&&b.gotoPage(a,!1,j))})}})(jQuery); -
anythingslider-for-wordpress/trunk/jtd-anything-slider.php
r405814 r407189 6 6 Author: Jacob Dubail 7 7 Author URI: http://jacobdubail.com 8 Version: 0.6 8 Version: 0.6.2 9 9 */ 10 10 … … 22 22 $options = get_option( 'jtd_anything_slides_options' ); 23 23 $video = $options['video']; 24 $easing = $options['easing']; 24 25 25 26 wp_enqueue_script( 'jquery' ); 26 wp_enqueue_script( 'jquery.anythingslider', JTD_INSERTJS . '/jquery.anythingslider.min.js', array( 'jquery' ), '1.7.1' ); 27 27 wp_enqueue_script( 'jquery.anythingslider', JTD_INSERTJS . '/jquery.anythingslider.min.js', array( 'jquery' ), '1.7.2' ); 28 29 30 // If video is selected, load the video extension 28 31 if ( $video !== 'false' ) { 29 32 30 wp_enqueue_script( 'jquery.anythingslider.video', JTD_INSERTJS . '/jquery.anythingslider.video.min.js', array( 'jquery' ), '1.7. 1' );33 wp_enqueue_script( 'jquery.anythingslider.video', JTD_INSERTJS . '/jquery.anythingslider.video.min.js', array( 'jquery' ), '1.7.2' ); 31 34 wp_enqueue_script( 'swfobject', JTD_INSERTJS . '/swfobject.js', '', '2.2' ); 35 36 } 37 38 // If advanced Easing is required, load the easing library 39 if ( $easing !== 'swing' && $easing !== 'linear' ) { 40 41 wp_enqueue_script( 'jquery.easing', JTD_INSERTJS . '/jquery.easing.1.2.js', array( 'jquery' ), '1.2' ); 32 42 33 43 } … … 59 69 $theme = $options['theme']; 60 70 61 wp_register_style( 'anythingslider-theme', JTD_INSERTCSS . '/theme-' . $theme . '.css', '', '1.7. 1' );71 wp_register_style( 'anythingslider-theme', JTD_INSERTCSS . '/theme-' . $theme . '.css', '', '1.7.2' ); 62 72 63 73 if ( $theme != '' && $theme != 'default' ) { … … 186 196 $width = ( isset( $attr['width'] ) ) ? $attr['width'] : ( ( $options['width'] ) ? $options['width'] : 570 ); 187 197 $height = ( isset( $attr['height'] ) ) ? $attr['height'] : ( ( $options['height'] ) ? $options['height'] : 300 ); 198 $theme = ( isset( $options['theme'] ) ) ? $options['theme'] : 'default'; 188 199 $expand = ( isset( $attr['expand'] ) ) ? $attr['expand'] : ( ( $options['expand'] ) ? $options['expand'] : 'false' ); 189 200 $resizeContents = ( isset( $attr['resizeContents'] ) ) ? $attr['resizeContents'] : ( ( $options['resizeContents'] ) ? $options['resizeContents'] : 'true' ); 190 201 $showMultiple = ( isset( $attr['showMultiple'] ) ) ? $attr['showMultiple'] : ( ( $options['showMultiple'] ) ? $options['showMultiple'] : 'false' ); 202 $easing = ( isset( $options['easing'] ) ) ? $options['easing'] : 'swing'; 203 204 $buildArrows = ( isset( $options['arrows'] ) ) ? $options['arrows'] : 'true'; 205 $buildNav = ( isset( $options['navigation'] ) ) ? $options['navigation'] : 'true'; 206 $startStopped = ( isset( $options['startStop'] ) ) ? $options['startStop'] : 'false'; 207 208 $toggleArrows = ( isset( $options['toggleArrows'] ) ) ? $options['toggleArrows'] : 'false'; 209 $toggleControls = ( isset( $options['toggleControls'] ) ) ? $options['toggleControls'] : 'false'; 210 $startText = ( isset( $options['startText'] ) ) ? $options['startText'] : 'Start'; 211 $stopText = ( isset( $options['stopText'] ) ) ? $options['stopText'] : 'Stop'; 212 $forwardText = ( isset( $options['forwardText'] ) ) ? $options['forwardText'] : '»'; 213 $backText = ( isset( $options['backText'] ) ) ? $options['backText'] : '«'; 191 214 $tooltipClass = ( isset( $attr['tooltipClass'] ) ) ? $attr['tooltipClass'] : ( ( $options['tooltipClass'] ) ? $options['tooltipClass'] : 'tooltip' ); 192 $theme = ( isset( $options['theme'] ) ) ? $options['theme'] : 'default'; 193 194 // Navigation 195 $startPanel = ( $options['startPanel'] != NULL ) ? $options['startPanel'] : '1'; 215 216 217 218 // Function Settings 219 $enableArrows = ( isset( $options['enableArrows'] ) ) ? $options['enableArrows'] : 'true'; 220 $enableNav = ( isset( $options['enableNav'] ) ) ? $options['enableNav'] : 'true'; 221 $enablePlay = ( isset( $options['enablePlay'] ) ) ? $options['enablePlay'] : 'true'; 222 $enableKeyboard = ( isset( $options['keyboard'] ) ) ? $options['keyboard'] : 'true'; 223 224 225 226 227 // Navigation Settings 228 $startPanel = ( isset( $options['startPanel'] ) ) ? $options['startPanel'] : '1'; 229 $changeBy = ( isset( $options['changeBy'] ) ) ? $options['changeBy'] : '1'; 196 230 $hashTags = ( isset( $options['hashTags'] ) ) ? $options['hashTags'] : 'false'; 197 231 $infiniteSlides = ( isset( $options['infinite'] ) ) ? $options['infinite'] : 'true'; 198 $enableKeyboard = ( $options['keyboard'] != NULL ) ? $options['keyboard'] : 'true'; 199 $buildArrows = ( isset( $options['arrows'] ) ) ? $options['arrows'] : 'true'; 200 $toggleArrows = ( isset( $options['toggleArrows'] ) ) ? $options['toggleArrows'] : 'false'; 201 $buildNav = ( isset( $options['navigation'] ) ) ? $options['navigation'] : 'true'; 202 $enableNav = ( isset( $options['enableNav'] ) ) ? $options['enableNav'] : 'true'; 203 $toggleControls = ( $options['toggleControls'] != NULL ) ? $options['toggleControls'] : 'false'; 204 // $appendControls = ( isset( $options['appendControls'] ) ) ? $options['appendControls'] : 'NULL'; 205 $forwardText = ( $options['forwardText'] != NULL ) ? $options['forwardText'] : '»'; 206 $backText = ( $options['backText'] != NULL ) ? $options['backText'] : '«'; 232 233 234 207 235 208 236 // Slideshow options 209 $enablePlay = ( isset( $options['enablePlay'] ) ) ? $options['enablePlay'] : 'true'; 210 $autoPlay = ( isset( $options['autoPlay'] ) ) ? $options['autoPlay'] : 'true'; 211 $autoPlayLocked = ( isset( $options['autoPlayLocked'] ) ) ? $options['autoPlayLocked'] : 'false'; 212 $startStopped = ( isset( $options['startStopped'] ) ) ? $options['startStopped'] : 'false'; 213 $pauseOnHover = ( isset( $options['pauseOnHover'] ) ) ? $options['pauseOnHover'] : 'true'; 214 $stopAtEnd = ( isset( $options['stopAtEnd'] ) ) ? $options['stopAtEnd'] : 'false'; 215 $playRtl = ( isset( $options['playRtl'] ) ) ? $options['playRtl'] : 'false'; 216 $startText = ( isset( $options['startText'] ) ) ? $options['startText'] : 'Start'; 217 $stopText = ( isset( $options['stopText'] ) ) ? $options['stopText'] : 'Stop'; 218 $delay = ( isset( $attr['delay'] ) ) ? $attr['delay'] : ( ( $options['delay'] ) ? $options['delay'] : 5000 ); 219 $resumeDelay = ( isset( $attr['resume'] ) ) ? $attr['resume'] : ( ( $options['resume'] ) ? $options['resume'] : 9000 ); 220 $animation = ( isset( $attr['animation'] ) ) ? $attr['animation'] : ( ( $options['animation'] ) ? $options['animation'] : 800 ); 221 // $easing = ( isset( $options['easing'] ) ) ? $options['easing'] : 'swing'; 237 $autoPlay = ( isset( $options['autoPlay'] ) ) ? $options['autoPlay'] : 'true'; 238 $autoPlayLocked = ( isset( $options['autoPlayLocked'] ) ) ? $options['autoPlayLocked'] : 'false'; 239 $autoPlayDelayed = ( isset( $options['autoPlayDelayed'] ) ) ? $options['autoPlayDelayed'] : 'false'; 240 $pauseOnHover = ( isset( $options['pauseOnHover'] ) ) ? $options['pauseOnHover'] : 'true'; 241 $stopAtEnd = ( isset( $options['stopAtEnd'] ) ) ? $options['stopAtEnd'] : 'false'; 242 $playRtl = ( isset( $options['playRtl'] ) ) ? $options['playRtl'] : 'false'; 243 244 245 246 247 // Timing Settings 248 $delay = ( isset( $attr['delay'] ) ) ? $attr['delay'] : ( ( $options['delay'] ) ? $options['delay'] : 5000 ); 249 $resumeDelay = ( isset( $attr['resume'] ) ) ? $attr['resume'] : ( ( $options['resume'] ) ? $options['resume'] : 9000 ); 250 $animation = ( isset( $attr['animation'] ) ) ? $attr['animation'] : ( ( $options['animation'] ) ? $options['animation'] : 800 ); 251 252 253 254 // Interactivity Settings 255 $clickForwardArrow = ( isset( $options['clickForwardArrow'] ) ) ? $options['clickForwardArrow'] : 'click'; 256 $clickBackArrow = ( isset( $options['clickBackArrow'] ) ) ? $options['clickBackArrow'] : 'click'; 257 $clickControls = ( isset( $options['clickControls'] ) ) ? $options['clickControls'] : 'click'; 258 $clickSlideshow = ( isset( $options['clickSlideshow'] ) ) ? $options['clickSlideshow'] : 'click focusin'; 259 260 222 261 223 262 // Video 224 // $video = ( isset( $options['video'] ) ) ? $options['video'] : 'false'; 225 $resumeOnVideo = ( isset( $options['resumeOnVideo'] ) ) ? $options['resumeOnVideo'] : 'true'; 263 $video = ( isset( $options['video'] ) ) ? $options['video'] : 'false'; 226 264 $addWmode = ( isset( $options['wmode'] ) ) ? $options['wmode'] : 'NULL'; 227 // $isVideoPlaying = 'function(base){ return false; }';228 265 229 266 … … 293 330 jQuery('#slider-{$rand}').anythingSlider({ 294 331 295 // Appearance 296 expand : {$expand}, 297 resizeContents : {$resizeContents}, 298 showMultiple : {$showMultiple}, 299 tooltipClass : '{$tooltipClass}', 300 theme : '{$theme}', 301 302 // Navigation 303 startPanel : {$startPanel}, 304 hashTags : {$hashTags}, 332 theme : '{$theme}', 333 expand : {$expand}, 334 resizeContents : {$resizeContents}, 335 showMultiple : {$showMultiple}, 336 easing : '{$easing}', 337 338 buildArrows : {$buildArrows}, 339 buildNavigation : {$buildNav}, 340 buildStartStop : {$startStopped}, 341 342 343 toggleArrows : {$toggleArrows}, 344 toggleControls : {$toggleControls}, 345 346 startText : '{$startText}', 347 stopText : '{$stopText}', 348 forwardText : '{$forwardText}', 349 backText : '{$backText}', 350 tooltipClass : '{$tooltipClass}', 351 352 353 enableArrows : {$enableArrows}, 354 enableNavigation : {$enableNav}, 355 enableStartStop : {$enablePlay}, 356 enableKeyboard : {$enableKeyboard}, 357 358 359 startPanel : '{$startPanel}', 360 changeBy : '{$changeBy}', 361 hashTags : {$hashTags}, 305 362 infiniteSlides : {$infiniteSlides}, 306 enableKeyboard : {$enableKeyboard}, 307 buildArrows : {$buildArrows}, 308 toggleArrows : {$toggleArrows}, 309 buildNavigation : {$buildNav}, 310 enableNavigation : {$enableNav}, 311 toggleControls : {$toggleControls}, 312 navigationFormatter : {$navFormat}, 313 forwardText : '{$forwardText}', 314 backText : '{$backText}', 315 316 // Slideshow Options 317 enablePlay : {$enablePlay}, 363 navigationFormatter : {$navFormat}, 364 365 318 366 autoPlay : {$autoPlay}, 319 autoPlayLocked : {$autoPlayLocked}, 320 startStopped : {$startStopped}, 321 pauseOnHover : {$pauseOnHover}, 322 resumeOnVideoEnd : {$resumeOnVideo}, 323 stopAtEnd : {$stopAtEnd}, 324 playRtl : {$playRtl}, 325 startText : '{$startText}', 326 stopText : '{$stopText}', 367 autoPlayLocked : {$autoPlayLocked}, 368 autoPlayDelayed : {$autoPlayDelayed}, 369 pauseOnHover : {$pauseOnHover}, 370 stopAtEnd : {$stopAtEnd}, 371 playRtl : {$playRtl}, 372 373 327 374 delay : {$delay}, 328 375 resumeDelay : {$resumeDelay}, 329 animationTime : {$animation}, 330 easing : 'swing', 331 332 //Video 333 resumeOnVideoEnd : {$resumeOnVideo}, 376 animationTime : {$animation}, 377 378 379 clickForwardArrow : '{$clickForwardArrow}', 380 clickBackArrow : '{$clickBackArrow}', 381 clickControls : '{$clickControls}', 382 clickSlideshow : '{$clickSlideshow}', 383 384 385 resumeOnVideoEnd : {$video}, 334 386 addWmodeToObject : '{$addWmode}' 335 387 … … 343 395 } 344 396 397 398 399 400 // Add Admin Options Page 401 add_action( 'admin_menu', 'jtd_anything_slides_create_settings_menu' ); 402 function jtd_anything_slides_create_settings_menu() { 403 404 $settings = add_options_page( 'Anything Slider Settings', 'AnythingSlider', 'manage_options', 'anything_slider', 'jtd_anything_slides_settingspage' ); 405 406 // Add admin CSS 407 add_action( 'load-'.$settings, 'jtd_anything_slides_insert_admin_css' ); 408 409 } 410 411 412 function jtd_anything_slides_insert_admin_css() { 413 414 wp_enqueue_style( 'anything_slider_admin', JTD_INSERTCSS . '/admin.css' ); 415 wp_enqueue_script( 'anything_slider_admin', JTD_INSERTJS . '/admin.js' ); 416 417 } 418 419 420 421 function jtd_anything_slides_settingspage() { 422 ?> 423 <div class="wrap"> 424 <?php screen_icon(); ?> 425 <h2>Anything Slider for WordPress</h2> 426 <form action="options.php" method="post"> 427 428 <div class="anythingslider-holder"> 429 <?php settings_fields('jtd_anything_slides_options'); ?> 430 <?php do_settings_sections('anything_slider_appearance'); ?> 431 <?php do_settings_sections('anything_slider_function'); ?> 432 <?php do_settings_sections('anything_slider_navigation'); ?> 433 <?php do_settings_sections('anything_slider_options'); ?> 434 <?php do_settings_sections('anything_slider_timing'); ?> 435 <?php do_settings_sections('anything_slider_interactivity'); ?> 436 <?php do_settings_sections('anything_slider_video'); ?> 437 </div><!-- end .inside --> 438 439 </div><!-- end metabox-holder --> 440 441 <input name="Submit" type="submit" value="Save Changes" class="button-primary" /> 442 <!-- <input name="reset" type="reset" value="RESET ALL OPTIONS" class="button-secondary" /> --> 443 </form> 444 </div> 445 <?php 446 447 } 448 449 450 451 452 // Regsiter Admin Settings and Options 453 add_action( 'admin_init', 'jtd_anything_slides_admin_settings' ); 454 function jtd_anything_slides_admin_settings() { 455 456 // Register the Option so we can store all of the settings into the DB 457 register_setting( 'jtd_anything_slides_options', 'jtd_anything_slides_options', 'jtd_anything_slides_validate_options' ); 458 459 // Register a settings section into which we can print all of the options fields 460 add_settings_section( 'jtd_anything_slides_option_section', 'Appearance Settings <span class="sidebar-name-arrow"></span>', 'jtd_anything_slides_option_appearance_text', 'anything_slider_appearance' ); 461 add_settings_section( 'jtd_anything_slides_option_section', '</div><h3>Function Settings <span class="sidebar-name-arrow"></span></h3>', 'jtd_anything_slides_option_function_text', 'anything_slider_function' ); 462 add_settings_section( 'jtd_anything_slides_option_section', '</div><h3>Navigation Settings <span class="sidebar-name-arrow"></span></h3>', 'jtd_anything_slides_option_navigation_text', 'anything_slider_navigation' ); 463 add_settings_section( 'jtd_anything_slides_option_section', '</div><h3>Slideshow Options <span class="sidebar-name-arrow"></span></h3>', 'jtd_anything_slides_option_options_text', 'anything_slider_options' ); 464 add_settings_section( 'jtd_anything_slides_option_section', '</div><h3>Timing Options <span class="sidebar-name-arrow"></span></h3>', 'jtd_anything_slides_option_timing_text', 'anything_slider_timing' ); 465 add_settings_section( 'jtd_anything_slides_option_section', '</div><h3>Interactivity Settings (advanced and beta)<span class="sidebar-name-arrow"></span></h3>', 'jtd_anything_slides_option_interactivity_text', 'anything_slider_interactivity' ); 466 add_settings_section( 'jtd_anything_slides_option_section', '</div><h3>Video Settings <span class="sidebar-name-arrow"></span></h3>', 'jtd_anything_slides_option_video_text', 'anything_slider_video' ); 467 468 469 470 471 // Register each of the fields that will be displayed on the options page -> set a callback for each setting to spit out the actual form field 472 // Appearance Settings 473 add_settings_field( 'jtd_anything_slides-width', '<label for="width">Width</label>', 'jtd_anything_slides_width_callback', 'anything_slider_appearance', 'jtd_anything_slides_option_section' ); 474 add_settings_field( 'jtd_anything_slides-height', '<label for="height">Height</label>', 'jtd_anything_slides_height_callback', 'anything_slider_appearance', 'jtd_anything_slides_option_section' ); 475 add_settings_field( 'jtd_anything_slides-theme', '<label for="theme">Theme</label>', 'jtd_anything_slides_theme_callback', 'anything_slider_appearance', 'jtd_anything_slides_option_section' ); 476 add_settings_field( 'jtd_anything_slides-expand', '<label for="expand">Expand</label>', 'jtd_anything_slides_expand_callback', 'anything_slider_appearance', 'jtd_anything_slides_option_section' ); 477 add_settings_field( 'jtd_anything_slides-resizeContents','<label for="resizeContents">Resize</label>', 'jtd_anything_slides_resize_callback', 'anything_slider_appearance', 'jtd_anything_slides_option_section' ); 478 add_settings_field( 'jtd_anything_slides-showMultiple', '<label for="showMultiple">Show Multiple</label>', 'jtd_anything_slides_showMultiple_callback', 'anything_slider_appearance', 'jtd_anything_slides_option_section' ); 479 add_settings_field( 'jtd_anything_slides-easing', '<label for="easing">Easing</label>', 'jtd_anything_slides_easing_callback', 'anything_slider_appearance', 'jtd_anything_slides_option_section' ); 480 481 add_settings_field( 'jtd_anything_slides-arrows', '<label for="arrows">Build Arrows</label>', 'jtd_anything_slides_arrows_callback', 'anything_slider_appearance', 'jtd_anything_slides_option_section' ); 482 add_settings_field( 'jtd_anything_slides-navigation', '<label for="navigation">Build Navigation</label>', 'jtd_anything_slides_navigation_callback', 'anything_slider_appearance', 'jtd_anything_slides_option_section' ); 483 add_settings_field( 'jtd_anything_slides-startStop', '<label for="startStop">Build Start/Stop</label>', 'jtd_anything_slides_startStop_callback', 'anything_slider_appearance', 'jtd_anything_slides_option_section' ); 484 485 add_settings_field( 'jtd_anything_slides-toggleArrows', '<label for="toggleArrows">Toggle Arrows</label>', 'jtd_anything_slides_toggleArrows_callback', 'anything_slider_appearance', 'jtd_anything_slides_option_section' ); 486 add_settings_field( 'jtd_anything_slides-toggleContr', '<label for="toggleContr">Toggle Controls</label>', 'jtd_anything_slides_toggleContr_callback', 'anything_slider_appearance', 'jtd_anything_slides_option_section' ); 487 488 add_settings_field( 'jtd_anything_slides-startText', '<label for="startText">Start Text</label>', 'jtd_anything_slides_startText_callback', 'anything_slider_appearance', 'jtd_anything_slides_option_section' ); 489 add_settings_field( 'jtd_anything_slides-stopText', '<label for="stopText">Stop Text</label>', 'jtd_anything_slides_stopText_callback', 'anything_slider_appearance', 'jtd_anything_slides_option_section' ); 490 add_settings_field( 'jtd_anything_slides-forwardText', '<label for="forwardText">Forward Text</label>', 'jtd_anything_slides_forwardText_callback', 'anything_slider_appearance', 'jtd_anything_slides_option_section' ); 491 add_settings_field( 'jtd_anything_slides-backText', '<label for="backText">Back Text</label>', 'jtd_anything_slides_backText_callback', 'anything_slider_appearance', 'jtd_anything_slides_option_section' ); 492 add_settings_field( 'jtd_anything_slides-tooltipClass', '<label for="tooltipClass">Tooltip Class</label>', 'jtd_anything_slides_tooltipClass_callback', 'anything_slider_appearance', 'jtd_anything_slides_option_section' ); 345 493 /* 494 // ** Appearance ** 346 495 theme : "default", // Theme name 347 496 expand : false, // If true, the entire slider will expand to fit the parent element … … 354 503 buildStartStop : true, // ** If true, builds the start/stop button 355 504 356 appendFowardTo : null, // Append forward arrow to a HTML element (jQuery Object, selector or HTMLNode), if not null357 appendBackTo : null, // Append back arrow to a HTML element (jQuery Object, selector or HTMLNode), if not null358 appendControlsTo : null, // Append controls (navigation + start-stop) to a HTML element (jQuery Object, selector or HTMLNode), if not null359 appendNavigationTo : null, // Append navigation buttons to a HTML element (jQuery Object, selector or HTMLNode), if not null360 appendStartStopTo : null, // Append start-stop button to a HTML element (jQuery Object, selector or HTMLNode), if not null361 362 505 toggleArrows : false, // If true, side navigation arrows will slide out on hovering & hide @ other times 363 506 toggleControls : false, // if true, slide in controls (navigation + play/stop button) on hover and slide change, hide @ other times … … 368 511 backText : "«", // Link text used to move the slider back (hidden by CSS, replace with arrow image) 369 512 tooltipClass : "tooltip", // Class added to navigation & start/stop button (text copied to title if it is hidden by a negative text indent) 370 513 */ 514 515 516 // Function Settings 517 add_settings_field( 'jtd_anything_slides-enableArrows', '<label for="enableArrows">Enable Arrows</label>', 'jtd_anything_slides_enableArrows_callback', 'anything_slider_function', 'jtd_anything_slides_option_section' ); 518 add_settings_field( 'jtd_anything_slides-enableNav', '<label for="enableNav">Enable Navigation</label>', 'jtd_anything_slides_enableNav_callback', 'anything_slider_function', 'jtd_anything_slides_option_section' ); 519 add_settings_field( 'jtd_anything_slides-enablePlay', '<label for="enablePlay">Enable Start Stop</label>', 'jtd_anything_slides_enablePlay_callback', 'anything_slider_function', 'jtd_anything_slides_option_section' ); 520 add_settings_field( 'jtd_anything_slides-keyboard', '<label for="keyboard">Enable Keyboard</label>', 'jtd_anything_slides_keyboard_callback', 'anything_slider_function', 'jtd_anything_slides_option_section' ); 521 /* 371 522 // Function 372 523 enableArrows : true, // if false, arrows will be visible, but not clickable. … … 374 525 enableStartStop : true, // if false, the play/stop button will still be visible, but not clickable. Previously "enablePlay" 375 526 enableKeyboard : true, // if false, keyboard arrow keys will not work for this slider. 376 527 */ 528 529 530 // Navigation Settings 531 add_settings_field( 'jtd_anything_slides-startPanel', '<label for="startPanel">Start Panel</label>', 'jtd_anything_slides_startPanel_callback', 'anything_slider_navigation', 'jtd_anything_slides_option_section' ); 532 add_settings_field( 'jtd_anything_slides-changeBy', '<label for="changeBy">Change Slides By</label>', 'jtd_anything_slides_changeBy_callback', 'anything_slider_navigation', 'jtd_anything_slides_option_section' ); 533 add_settings_field( 'jtd_anything_slides-hashTags', '<label for="hashTags">Display Hash Tags</label>', 'jtd_anything_slides_hashTags_callback', 'anything_slider_navigation', 'jtd_anything_slides_option_section' ); 534 add_settings_field( 'jtd_anything_slides-infinite', '<label for="infinite">Infinite Slides</label>', 'jtd_anything_slides_infinite_callback', 'anything_slider_navigation', 'jtd_anything_slides_option_section' ); 535 // add_settings_field( 'jtd_anything_slides-navFormatter', '<label for="navFormatter">Navigation Formatter</label>', 'jtd_anything_slides_navFormatter_callback', 'anything_slider_navigation', 'jtd_anything_slides_option_section' ); 536 /* 377 537 // Navigation 378 538 startPanel : 1, // This sets the initial panel … … 381 541 infiniteSlides : true, // if false, the slider will not wrap & not clone any panels 382 542 navigationFormatter : null, // Details at the top of the file on this use (advanced use) 383 543 */ 544 545 546 // Slideshow Options 547 add_settings_field( 'jtd_anything_slides-autoPlay', '<label for="autoPlay">Auto Play</label>', 'jtd_anything_slides_autoPlay_callback', 'anything_slider_options', 'jtd_anything_slides_option_section' ); 548 add_settings_field( 'jtd_anything_slides-autoPlayLocked', '<label for="autoPlayLocked">Auto Play Locked</label>', 'jtd_anything_slides_autoPlayLocked_callback', 'anything_slider_options', 'jtd_anything_slides_option_section' ); 549 add_settings_field( 'jtd_anything_slides-autoPlayDelayed', '<label for="autoPlayDelayed">Auto Play Delayed</label>', 'jtd_anything_slides_autoPlayDelayed_callback', 'anything_slider_options', 'jtd_anything_slides_option_section' ); 550 add_settings_field( 'jtd_anything_slides-pauseOnHover', '<label for="pauseOnHover">Pause on Hover</label>', 'jtd_anything_slides_pauseOnHover_callback', 'anything_slider_options', 'jtd_anything_slides_option_section' ); 551 add_settings_field( 'jtd_anything_slides-stopAtEnd', '<label for="stopAtEnd">Stop at end of slides</label>', 'jtd_anything_slides_stopAtEnd_callback', 'anything_slider_options', 'jtd_anything_slides_option_section' ); 552 add_settings_field( 'jtd_anything_slides-playRtl', '<label for="playRtl">Play Right to Left</label>', 'jtd_anything_slides_playRtl_callback', 'anything_slider_options', 'jtd_anything_slides_option_section' ); 553 /* 384 554 // Slideshow options 385 555 autoPlay : false, // If true, the slideshow will start running; replaces "startStopped" option … … 389 559 stopAtEnd : false, // If true & the slideshow is active, the slideshow will stop on the last page. This also stops the rewind effect when infiniteSlides is false. 390 560 playRtl : false, // If true, the slideshow will move right-to-left 391 561 */ 562 563 564 // Timing Options 565 add_settings_field( 'jtd_anything_slides-delay', '<label for="delay">Delay</label>', 'jtd_anything_slides_delay_callback', 'anything_slider_timing', 'jtd_anything_slides_option_section' ); 566 add_settings_field( 'jtd_anything_slides-resume', '<label for="resume">Resume Delay</label>', 'jtd_anything_slides_resume_callback', 'anything_slider_timing', 'jtd_anything_slides_option_section' ); 567 add_settings_field( 'jtd_anything_slides-animation', '<label for="animation">Animation Time</label>', 'jtd_anything_slides_animation_callback', 'anything_slider_timing', 'jtd_anything_slides_option_section' ); 568 /* 392 569 // Times 393 570 delay : 3000, // How long between slideshow transitions in AutoPlay mode (in milliseconds) 394 571 resumeDelay : 15000, // Resume slideshow after user interaction, only if autoplayLocked is true (in milliseconds). 395 572 animationTime : 600, // How long the slideshow transition takes (in milliseconds) 396 397 // Callbacks 398 onBeforeInitialize : function(e, slider) {}, // Callback before the plugin initializes 399 onInitialized : function(e, slider) {}, // Callback when the plugin finished initializing 400 onShowStart : function(e, slider) {}, // Callback on slideshow start 401 onShowStop : function(e, slider) {}, // Callback after slideshow stops 402 onShowPause : function(e, slider) {}, // Callback when slideshow pauses 403 onShowUnpause : function(e, slider) {}, // Callback when slideshow unpauses - may not trigger properly if user clicks on any controls 404 onSlideInit : function(e, slider) {}, // Callback when slide initiates, before control animation 405 onSlideBegin : function(e, slider) {}, // Callback before slide animates 406 onSlideComplete : function(slider) {}, // Callback when slide completes; this is the only callback without an event "e" variable 407 573 */ 574 575 576 // Interactivity Options -- Very Beta 577 add_settings_field( 'jtd_anything_slides-clickForwardArrow', '<label for="clickForwardArrow">Forward Arrow Click Event</label>', 'jtd_anything_slides_clickForwardArrow_callback', 'anything_slider_interactivity', 'jtd_anything_slides_option_section' ); 578 add_settings_field( 'jtd_anything_slides-clickBackArrow', '<label for="clickBackArrow">Back Arrow Click Event</label>', 'jtd_anything_slides_clickBackArrow_callback', 'anything_slider_interactivity', 'jtd_anything_slides_option_section' ); 579 add_settings_field( 'jtd_anything_slides-clickControls', '<label for="clickControls">Navigation Click Event</label>', 'jtd_anything_slides_clickControls_callback', 'anything_slider_interactivity', 'jtd_anything_slides_option_section' ); 580 add_settings_field( 'jtd_anything_slides-clickSlideshow', '<label for="clickSlideshow">Slideshow Click Event</label>', 'jtd_anything_slides_clickSlideshow_callback', 'anything_slider_interactivity', 'jtd_anything_slides_option_section' ); 581 /* 408 582 // Interactivity 409 583 clickForwardArrow : "click", // Event used to activate forward arrow functionality (e.g. add jQuery mobile's "swiperight") … … 411 585 clickControls : "click focusin", // Events used to activate navigation control functionality 412 586 clickSlideshow : "click", // Event used to activate slideshow play/stop button 413 414 // Video 415 resumeOnVideoEnd : true, // If true & the slideshow is active & a supported video is playing, it will pause the autoplay until the video is complete 416 addWmodeToObject : "opaque", // If your slider has an embedded object, the script will automatically add a wmode parameter with this setting 417 isVideoPlaying : function(base){ return false; } // return true if video is playing or false if not - used by video extension 418 */ 419 420 421 422 423 // Add Admin Options Page 424 add_action( 'admin_menu', 'jtd_anything_slides_create_settings_menu' ); 425 function jtd_anything_slides_create_settings_menu() { 426 427 $settings = add_options_page( 'Anything Slider Settings', 'AnythingSlider', 'manage_options', 'anything_slider', 'jtd_anything_slides_settingspage' ); 428 429 // Add admin CSS 430 add_action( 'load-'.$settings, 'jtd_anything_slides_insert_admin_css' ); 431 432 } 433 434 435 function jtd_anything_slides_insert_admin_css() { 436 437 wp_enqueue_style( 'anything_slider_admin', JTD_INSERTCSS . '/admin.css' ); 438 439 } 440 441 442 443 function jtd_anything_slides_settingspage() { 444 ?> 445 <div class="wrap"> 446 <?php screen_icon(); ?> 447 <h2>Anything Slider for WordPress</h2> 448 <form action="options.php" method="post"> 449 450 <div class="anythingslider-holder"> 451 <?php settings_fields('jtd_anything_slides_options'); ?> 452 <?php do_settings_sections('anything_slider_appearance'); ?> 453 <?php do_settings_sections('anything_slider_navigation'); ?> 454 <?php do_settings_sections('anything_slider_slideshow'); ?> 455 <?php do_settings_sections('anything_slider_video'); ?> 456 </div><!-- end .inside --> 457 458 </div><!-- end metabox-holder --> 459 460 <input name="Submit" type="submit" value="Save Changes" class="button-primary" /> 461 <!-- <input name="reset" type="reset" value="RESET ALL OPTIONS" class="button-secondary" /> --> 462 </form> 463 </div> 464 <?php 465 466 } 467 468 469 470 471 // Regsiter Admin Settings and Options 472 add_action( 'admin_init', 'jtd_anything_slides_admin_settings' ); 473 function jtd_anything_slides_admin_settings() { 474 475 // Register the Option so we can store all of the settings into the DB 476 register_setting( 'jtd_anything_slides_options', 'jtd_anything_slides_options', 'jtd_anything_slides_validate_options' ); 477 478 // Register a settings section into which we can print all of the options fields 479 add_settings_section( 'jtd_anything_slides_option_section', 'Appearance Settings', 'jtd_anything_slides_option_appearance_text', 'anything_slider_appearance' ); 480 add_settings_section( 'jtd_anything_slides_option_section', '</div><h3>Navigation Settings</h3>', 'jtd_anything_slides_option_navigation_text', 'anything_slider_navigation' ); 481 add_settings_section( 'jtd_anything_slides_option_section', '</div><h3>Slideshow Options</h3>', 'jtd_anything_slides_option_slideshow_text', 'anything_slider_slideshow' ); 482 add_settings_section( 'jtd_anything_slides_option_section', '</div><h3>Video Settings</h3>', 'jtd_anything_slides_option_video_text', 'anything_slider_video' ); 483 484 // Register each of the fields that will be displayed on the options page -> set a callback for each setting to spit out the actual form field 485 // Appearance Settings 486 add_settings_field( 'jtd_anything_slides-width', '<label for="width">Width</label>', 'jtd_anything_slides_width_callback', 'anything_slider_appearance', 'jtd_anything_slides_option_section' ); 487 add_settings_field( 'jtd_anything_slides-height', '<label for="height">Height</label>', 'jtd_anything_slides_height_callback', 'anything_slider_appearance', 'jtd_anything_slides_option_section' ); 488 add_settings_field( 'jtd_anything_slides-expand', '<label for="expand">Expand</label>', 'jtd_anything_slides_expand_callback', 'anything_slider_appearance', 'jtd_anything_slides_option_section' ); 489 add_settings_field( 'jtd_anything_slides-resizeContents','<label for="resizeContents">Resize</label>', 'jtd_anything_slides_resize_callback', 'anything_slider_appearance', 'jtd_anything_slides_option_section' ); 490 add_settings_field( 'jtd_anything_slides-showMultiple', '<label for="showMultiple">Show Multiple</label>', 'jtd_anything_slides_showMultiple_callback', 'anything_slider_appearance', 'jtd_anything_slides_option_section' ); 491 add_settings_field( 'jtd_anything_slides-tooltipClass', '<label for="tooltipClass">Tooltip Class</label>', 'jtd_anything_slides_tooltipClass_callback', 'anything_slider_appearance', 'jtd_anything_slides_option_section' ); 492 add_settings_field( 'jtd_anything_slides-theme', '<label for="theme">Theme</label>', 'jtd_anything_slides_theme_callback', 'anything_slider_appearance', 'jtd_anything_slides_option_section' ); 493 494 495 // Navigation Settings 496 add_settings_field( 'jtd_anything_slides-startPanel', '<label for="startPanel">Start Panel</label>', 'jtd_anything_slides_startPanel_callback', 'anything_slider_navigation', 'jtd_anything_slides_option_section' ); 497 add_settings_field( 'jtd_anything_slides-hashTags', '<label for="hashTags">Display Hash Tags</label>', 'jtd_anything_slides_hashTags_callback', 'anything_slider_navigation', 'jtd_anything_slides_option_section' ); 498 add_settings_field( 'jtd_anything_slides-infinite', '<label for="infinite">Infinite Slides</label>', 'jtd_anything_slides_infinite_callback', 'anything_slider_navigation', 'jtd_anything_slides_option_section' ); 499 add_settings_field( 'jtd_anything_slides-keyboard', '<label for="keyboard">Enable Keyboard</label>', 'jtd_anything_slides_keyboard_callback', 'anything_slider_navigation', 'jtd_anything_slides_option_section' ); 500 add_settings_field( 'jtd_anything_slides-arrows', '<label for="arrows">Arrows</label>', 'jtd_anything_slides_arrows_callback', 'anything_slider_navigation', 'jtd_anything_slides_option_section' ); 501 add_settings_field( 'jtd_anything_slides-toggleArrows', '<label for="toggleArrows">Toggle Arrows</label>', 'jtd_anything_slides_toggleArrows_callback', 'anything_slider_navigation', 'jtd_anything_slides_option_section' ); 502 add_settings_field( 'jtd_anything_slides-navigation', '<label for="navigation">Build Navigation</label>', 'jtd_anything_slides_navigation_callback', 'anything_slider_navigation', 'jtd_anything_slides_option_section' ); 503 add_settings_field( 'jtd_anything_slides-enableNav', '<label for="enableNav">Enable Navigation</label>', 'jtd_anything_slides_enableNav_callback', 'anything_slider_navigation', 'jtd_anything_slides_option_section' ); 504 add_settings_field( 'jtd_anything_slides-toggleContr', '<label for="toggleContr">Toggle Controls</label>', 'jtd_anything_slides_toggleContr_callback', 'anything_slider_navigation', 'jtd_anything_slides_option_section' ); 505 // add_settings_field( 'jtd_anything_slides-appendContr', '<label for="appendContr">Append Controls</label>', 'jtd_anything_slides_appendContr_callback', 'anything_slider_navigation', 'jtd_anything_slides_option_section' ); 506 // add_settings_field( 'jtd_anything_slides-navFormatter', '<label for="navFormatter">Navigation Formatter</label>', 'jtd_anything_slides_navFormatter_callback', 'anything_slider_navigation', 'jtd_anything_slides_option_section' ); 507 add_settings_field( 'jtd_anything_slides-forwardText', '<label for="forwardText">Forward Text</label>', 'jtd_anything_slides_forwardText_callback', 'anything_slider_navigation', 'jtd_anything_slides_option_section' ); 508 add_settings_field( 'jtd_anything_slides-backText', '<label for="backText">Back Text</label>', 'jtd_anything_slides_backText_callback', 'anything_slider_navigation', 'jtd_anything_slides_option_section' ); 509 510 // Slideshow Options 511 add_settings_field( 'jtd_anything_slides-enablePlay', '<label for="enablePlay">Enable Play</label>', 'jtd_anything_slides_enablePlay_callback', 'anything_slider_slideshow', 'jtd_anything_slides_option_section' ); 512 add_settings_field( 'jtd_anything_slides-autoPlay', '<label for="autoPlay">Auto Play</label>', 'jtd_anything_slides_autoPlay_callback', 'anything_slider_slideshow', 'jtd_anything_slides_option_section' ); 513 add_settings_field( 'jtd_anything_slides-autoPlayLocked', '<label for="autoPlayLocked">Auto Play Locked</label>', 'jtd_anything_slides_autoPlayLocked_callback', 'anything_slider_slideshow', 'jtd_anything_slides_option_section' ); 514 // add_settings_field( 'jtd_anything_slides-startStopped', '<label for="startStopped">Start Stopped</label>', 'jtd_anything_slides_startStopped_callback', 'anything_slider', 'jtd_anything_slides_option_section' ); 515 // add_settings_field( 'jtd_anything_slides-pauseOnHover', '<label for="pauseOnHover">Paust on Hover</label>', 'jtd_anything_slides_pauseOnHover_callback', 'anything_slider', 'jtd_anything_slides_option_section' ); 516 // add_settings_field( 'jtd_anything_slides-stopAtEnd', '<label for="stopAtEnd">Stop at end of slides</label>', 'jtd_anything_slides_stopAtEnd_callback', 'anything_slider', 'jtd_anything_slides_option_section' ); 517 // add_settings_field( 'jtd_anything_slides-playRtl', '<label for="playRtl">Play Right to Left</label>', 'jtd_anything_slides_playRtl_callback', 'anything_slider', 'jtd_anything_slides_option_section' ); 518 // add_settings_field( 'jtd_anything_slides-startText', '<label for="startText">Start Text</label>', 'jtd_anything_slides_startText_callback', 'anything_slider', 'jtd_anything_slides_option_section' ); 519 // add_settings_field( 'jtd_anything_slides-stopText', '<label for="stopText">Stop Text</label>', 'jtd_anything_slides_stopText_callback', 'anything_slider', 'jtd_anything_slides_option_section' ); 520 add_settings_field( 'jtd_anything_slides-delay', '<label for="delay">Delay</label>', 'jtd_anything_slides_delay_callback', 'anything_slider_slideshow', 'jtd_anything_slides_option_section' ); 521 add_settings_field( 'jtd_anything_slides-resume', '<label for="resume">Resume Delay</label>', 'jtd_anything_slides_resume_callback', 'anything_slider_slideshow', 'jtd_anything_slides_option_section' ); 522 add_settings_field( 'jtd_anything_slides-animation', '<label for="animation">Animation Time</label>', 'jtd_anything_slides_animation_callback', 'anything_slider_slideshow', 'jtd_anything_slides_option_section' ); 523 // add_settings_field( 'jtd_anything_slides-easing', '<label for="easing">Easing</label>', 'jtd_anything_slides_easing_callback', 'anything_slider', 'jtd_anything_slides_option_section' ); 587 */ 524 588 525 589 … … 527 591 // add_settings_field( 'jtd_anything_slides-resumeOnVideo', '<label for="resumeOnVideo">Resume After Video</label>','jtd_anything_slides_resumeOnVideo_callback', 'anything_slider', 'jtd_anything_slides_option_section' ); 528 592 add_settings_field( 'jtd_anything_slides-video', '<label for="video">Video</label>', 'jtd_anything_slides_video_callback', 'anything_slider_video', 'jtd_anything_slides_option_section' ); 529 add_settings_field( 'jtd_anything_slides-wmode', '<label for="wmode">Wmode</label>', 'jtd_anything_slides_wmode_callback', 'anything_slider_video', 'jtd_anything_slides_option_section' ); 530 } 531 532 593 add_settings_field( 'jtd_anything_slides-wmode', '<label for="wmode">Wmode</label>', 'jtd_anything_slides_wmode_callback', 'anything_slider_video', 'jtd_anything_slides_option_section' ); 594 /* 595 // Video 596 resumeOnVideoEnd : true, // If true & the slideshow is active & a supported video is playing, it will pause the autoplay until the video is complete 597 addWmodeToObject : "opaque", // If your slider has an embedded object, the script will automatically add a wmode parameter with this setting 598 isVideoPlaying : function(base){ return false; } // return true if video is playing or false if not - used by video extension 599 */ 600 601 } 533 602 534 603 … … 539 608 echo '<div class="inside">'; 540 609 } 610 function jtd_anything_slides_option_function_text() { 611 echo '<div class="inside">'; 612 } 541 613 function jtd_anything_slides_option_navigation_text() { 542 614 echo '<div class="inside">'; 543 615 } 544 function jtd_anything_slides_option_slideshow_text() { 616 function jtd_anything_slides_option_options_text() { 617 echo '<div class="inside">'; 618 } 619 function jtd_anything_slides_option_timing_text() { 620 echo '<div class="inside">'; 621 } 622 function jtd_anything_slides_option_interactivity_text() { 545 623 echo '<div class="inside">'; 546 624 } … … 553 631 554 632 555 556 633 // Display and fill the form field 557 /* 558 ** Appearance 559 */ 560 /* Appearance 561 width : null, // Override the default CSS width 562 height : null, // Override the default CSS height 563 expand : false, // If true, the entire slider will expand to fit the parent element 564 resizeContents : true, // If true, solitary images/objects in the panel will expand to fit the viewport 565 showMultiple : false, // Set this value to a number and it will show that many slides at once 566 tooltipClass : 'tooltip', // Class added to navigation & start/stop button (text copied to title if it is hidden by a negative text indent) 567 theme : 'default', // Theme name - adds a class name to the base element "anythingSlider-{theme}" so the loaded theme will work. 634 635 /* 636 ******************** 637 Appearance Settings 638 ******************** 568 639 */ 569 640 function jtd_anything_slides_width_callback() { … … 578 649 echo "<input id='height' name='jtd_anything_slides_options[height]' type='number' min=0 value='$height' />"; 579 650 echo "<span class='description'>Override the default CSS height</span>"; 651 } 652 function jtd_anything_slides_theme_callback() { 653 $options = get_option( 'jtd_anything_slides_options' ); 654 $theme = $options['theme']; 655 echo "<select id='theme' name='jtd_anything_slides_options[theme]'> 656 <option value=''" . selected( $theme, '', false ) . ">Default</option> 657 <option value='construction'" . selected( $theme, 'construction', false ) . ">Construction</option> 658 <option value='cs-portfolio'" . selected( $theme, 'cs-portfolio', false ) . ">CS Portfolio</option> 659 <option value='metallic'" . selected( $theme, 'metallic', false ) . ">Metallic</option> 660 <option value='minimalist-round'" . selected( $theme, 'minimalist-round', false ) . ">Minimalist Round</option> 661 <option value='minimalist-square'" . selected( $theme, 'minimalist-square', false ) . ">Minimalist Square</option> 662 </select>"; 663 echo "<span class='description'>Select a theme, or leave blank for default</span>"; 580 664 } 581 665 function jtd_anything_slides_expand_callback() { … … 599 683 echo "<span class='description'>Set this value to a number and it will show that many slides at once</span>"; 600 684 } 601 function jtd_anything_slides_tooltipClass_callback() { 602 $options = get_option( 'jtd_anything_slides_options' ); 603 $tooltip = $options['tooltipClass']; 604 echo "<input id='tooltipClass' name='jtd_anything_slides_options[tooltipClass]' type='text' value='$tooltip' />"; 605 echo "<span class='description'>Set this value to a number and it will show that many slides at once</span>"; 606 } 607 function jtd_anything_slides_theme_callback() { 608 $options = get_option( 'jtd_anything_slides_options' ); 609 $theme = $options['theme']; 610 echo "<select id='theme' name='jtd_anything_slides_options[theme]'> 611 <option value=''" . selected( $theme, '', false ) . ">Default</option> 612 <option value='construction'" . selected( $theme, 'construction', false ) . ">Construction</option> 613 <option value='cs-portfolio'" . selected( $theme, 'cs-portfolio', false ) . ">CS Portfolio</option> 614 <option value='metallic'" . selected( $theme, 'metallic', false ) . ">Metallic</option> 615 <option value='minimalist-round'" . selected( $theme, 'minimalist-round', false ) . ">Minimalist Round</option> 616 <option value='minimalist-square'" . selected( $theme, 'minimalist-square', false ) . ">Minimalist Square</option> 685 686 function jtd_anything_slides_easing_callback() { 687 $options = get_option( 'jtd_anything_slides_options' ); 688 $easing = $options['easing']; 689 echo "<select id='easing' name='jtd_anything_slides_options[easing]'> 690 <option value='swing'" . selected( $easing, 'swing', false ) . ">Swing</option> 691 <option value='linear'" . selected( $easing, 'linear', false ) . ">Linear</option> 692 <option value='easeInQuad'" . selected( $easing, 'easeInQuad', false ) . ">easeInQuad</option> 693 <option value='easeOutQuad'" . selected( $easing, 'easeOutQuad', false ) . ">easeOutQuad</option> 694 <option value='easeInOutQuad'" . selected( $easing, 'easeInOutQuad', false ) . ">easeInOutQuad</option> 695 <option value='easeInCubic'" . selected( $easing, 'easeInCubic', false ) . ">easeInCubic</option> 696 <option value='easeOutCubic'" . selected( $easing, 'easeOutCubic', false ) . ">easeOutCubic</option> 697 <option value='easeInOutCubic'" . selected( $easing, 'easeInOutCubic', false ) . ">easeInOutCubic</option> 698 <option value='easeInQuart'" . selected( $easing, 'easeInQuart', false ) . ">easeInQuart</option> 699 <option value='easeOutQuart'" . selected( $easing, 'easeOutQuart', false ) . ">easeOutQuart</option> 700 <option value='easeInOutQuart'" . selected( $easing, 'easeInOutQuart', false ) . ">easeInOutQuart</option> 701 <option value='easeInQuint'" . selected( $easing, 'easeInQuint', false ) . ">easeInQuint</option> 702 <option value='easeOutQuint'" . selected( $easing, 'easeOutQuint', false ) . ">easeOutQuint</option> 703 <option value='easeInOutQuint'" . selected( $easing, 'easeInOutQuint', false ) . ">easeInOutQuint</option> 704 <option value='easeInSine'" . selected( $easing, 'easeInSine', false ) . ">easeInSine</option> 705 <option value='easeOutSine'" . selected( $easing, 'easeOutSine', false ) . ">easeOutSine</option> 706 <option value='easeInOutSine'" . selected( $easing, 'easeInOutSine', false ) . ">easeInOutSine</option> 707 <option value='easeInExpo'" . selected( $easing, 'easeInExpo', false ) . ">easeInExpo</option> 708 <option value='easeOutExpo'" . selected( $easing, 'easeOutExpo', false ) . ">easeOutExpo</option> 709 <option value='easeInOutExpo'" . selected( $easing, 'easeInOutExpo', false ) . ">easeInOutExpo</option> 710 <option value='easeInCirc'" . selected( $easing, 'easeInCirc', false ) . ">easeInCirc</option> 711 <option value='easeOutCirc'" . selected( $easing, 'easeOutCirc', false ) . ">easeOutCirc</option> 712 <option value='easeInOutCirc'" . selected( $easing, 'easeInOutCirc', false ) . ">easeInOutCirc</option> 713 <option value='easeInElastic'" . selected( $easing, 'easeInElastic', false ) . ">easeInElastic</option> 714 <option value='easeOutElastic'" . selected( $easing, 'easeOutElastic', false ) . ">easeOutElastic</option> 715 <option value='easeInOutElastic'" . selected( $easing, 'easeInOutElastic', false ) . ">easeInOutElastic</option> 716 <option value='easeOutBack'" . selected( $easing, 'easeOutBack', false ) . ">easeInBack</option> 717 <option value='easeOutBack'" . selected( $easing, 'easeOutBack', false ) . ">easeOutBack</option> 718 <option value='easeInOutBack'" . selected( $easing, 'easeInOutBack', false ) . ">easeInOutBack</option> 719 <option value='easeInBounce'" . selected( $easing, 'easeInBounce', false ) . ">easeInBounce</option> 720 <option value='easeOutBounce'" . selected( $easing, 'easeOutBounce', false ) . ">easeOutBounce</option> 721 <option value='easeInOutBounce'" . selected( $easing, 'easeInOutBounce', false ) . ">easeInOutBounce</option> 617 722 </select>"; 618 echo "<span class='description'>Select a theme, or leave blank for default</span>"; 619 } 620 621 622 /* 623 ** Navigation 624 */ 625 /* Navigation 626 startPanel : 1, // This sets the initial panel 627 hashTags : true, // Should links change the hashtag in the URL? 628 infiniteSlides : true, // if false, the slider will not wrap 629 enableKeyboard : true, // if false, keyboard arrow keys will not work for the current panel. 630 buildArrows : true, // If true, builds the forwards and backwards buttons 631 toggleArrows : false, // if true, side navigation arrows will slide out on hovering & hide @ other times 632 buildNavigation : true, // If true, builds a list of anchor links to link to each panel 633 enableNavigation : true, // if false, navigation links will still be visible, but not clickable. 634 toggleControls : false, // if true, slide in controls (navigation + play/stop button) on hover and slide change, hide @ other times 635 appendControlsTo : null, // A HTML element (jQuery Object, selector or HTMLNode) to which the controls will be appended if not null 636 navigationFormatter : null, // Details at the top of the file on this use (advanced use) 637 forwardText : "»", // Link text used to move the slider forward (hidden by CSS, replaced with arrow image) 638 backText : "«", // Link text used to move the slider back (hidden by CSS, replace with arrow image) 639 */ 640 641 function jtd_anything_slides_startPanel_callback() { 642 $options = get_option( 'jtd_anything_slides_options' ); 643 $startPanel = $options['startPanel']; 644 echo "<input id='startPanel' name='jtd_anything_slides_options[startPanel]' type='text' value='$startPanel' />"; 645 echo "<span class='description'>This sets the initial panel</span>"; 646 } 647 function jtd_anything_slides_hashTags_callback() { 648 $options = get_option( 'jtd_anything_slides_options' ); 649 $hashTags = $options['hashTags']; 650 echo "<label>Yes <input id='hashTags' name='jtd_anything_slides_options[hashTags]' type='radio' value='true'" . checked( $hashTags, 'true', false ) . "/></label><br />"; 651 echo "<label>No <input id='hashTags' name='jtd_anything_slides_options[hashTags]' type='radio' value='false'" . checked( $hashTags, 'false', false ) . "/></label>"; 652 echo "<span class='description'>Should links change the hashtag in the URL?</span>"; 653 } 654 function jtd_anything_slides_infinite_callback() { 655 $options = get_option( 'jtd_anything_slides_options' ); 656 $infinite = $options['infinite']; 657 echo "<label>Yes <input id='infinite' name='jtd_anything_slides_options[infinite]' type='radio' value='true'" . checked( $infinite, 'true', false ) . "/></label><br />"; 658 echo "<label>No <input id='infinite' name='jtd_anything_slides_options[infinite]' type='radio' value='false'" . checked( $infinite, 'false', false ) . "/></label>"; 659 echo "<span class='description'>if no, the slider will not wrap</span>"; 660 } 661 function jtd_anything_slides_keyboard_callback() { 662 $options = get_option( 'jtd_anything_slides_options' ); 663 $keyboard = $options['keyboard']; 664 echo "<label>Yes <input id='keyboard' name='jtd_anything_slides_options[keyboard]' type='radio' value='true'" . checked( $keyboard, 'true', false ) . "/></label><br />"; 665 echo "<label>No <input id='keyboard' name='jtd_anything_slides_options[keyboard]' type='radio' value='false'" . checked( $keyboard, 'false', false ) . "/></label>"; 666 echo "<span class='description'>If no, keyboard arrow keys will not work for the current panel</span>"; 667 } 723 echo "<span class='description'>Anything other than 'linear' or 'swing' requires the easing plugin or jQuery UI</span>"; 724 } 725 668 726 function jtd_anything_slides_arrows_callback() { 669 727 $options = get_option( 'jtd_anything_slides_options' ); … … 673 731 echo "<span class='description'>If yes, builds the forwards and backwards buttons</span>"; 674 732 } 733 function jtd_anything_slides_navigation_callback() { 734 $options = get_option( 'jtd_anything_slides_options' ); 735 $navigation = $options['navigation']; 736 echo "<label>Yes <input id='navigation' name='jtd_anything_slides_options[navigation]' type='radio' value='true'" . checked( $navigation, 'true', false ) . " /></label><br />"; 737 echo "<label>No <input id='navigation' name='jtd_anything_slides_options[navigation]' type='radio' value='false'" . checked( $navigation, 'false', false ) . " /></label>"; 738 echo "<span class='description'>If yes, builds a list of anchor links to link to each panel</span>"; 739 } 740 function jtd_anything_slides_startStop_callback() { 741 $options = get_option( 'jtd_anything_slides_options' ); 742 $startStop = $options['startStop']; 743 echo "<label>Yes <input id='startStop' name='jtd_anything_slides_options[startStop]' type='radio' value='true'" . checked( $startStop, 'true', false ) . " /></label><br />"; 744 echo "<label>No <input id='startStop' name='jtd_anything_slides_options[startStop]' type='radio' value='false'" . checked( $startStop, 'false', false ) . " /></label>"; 745 echo "<span class='description'>If yes, builds the start/stop button</span>"; 746 } 747 675 748 function jtd_anything_slides_toggleArrows_callback() { 676 749 $options = get_option( 'jtd_anything_slides_options' ); … … 680 753 echo "<span class='description'>if yes, side navigation arrows will slide out on hovering & hide @ other times</span>"; 681 754 } 682 function jtd_anything_slides_navigation_callback() {683 $options = get_option( 'jtd_anything_slides_options' );684 $navigation = $options['navigation'];685 echo "<label>Yes <input id='navigation' name='jtd_anything_slides_options[navigation]' type='radio' value='true'" . checked( $navigation, 'true', false ) . " /></label><br />";686 echo "<label>No <input id='navigation' name='jtd_anything_slides_options[navigation]' type='radio' value='false'" . checked( $navigation, 'false', false ) . " /></label>";687 echo "<span class='description'>If yes, builds a list of anchor links to link to each panel</span>";688 }689 function jtd_anything_slides_enableNav_callback() {690 $options = get_option( 'jtd_anything_slides_options' );691 $enableNav = $options['enableNav'];692 echo "<label>Yes <input id='enableNav' name='jtd_anything_slides_options[enableNav]' type='radio' value='true'" . checked( $enableNav, 'true', false ) . " /></label><br />";693 echo "<label>No <input id='enableNav' name='jtd_anything_slides_options[enableNav]' type='radio' value='false'" . checked( $enableNav, 'false', false ) . " /></label>";694 echo "<span class='description'>if no, navigation links will still be visible, but not clickable.</span>";695 }696 755 function jtd_anything_slides_toggleContr_callback() { 697 756 $options = get_option( 'jtd_anything_slides_options' ); … … 701 760 echo "<span class='description'>if yes, slide in controls (navigation + play/stop button) on hover and slide change, hide @ other times</span>"; 702 761 } 703 /* 704 function jtd_anything_slides_navFormatter_callback() { 705 $options = get_option( 'jtd_anything_slides_options' ); 706 $navFormatter = $options['navFormatter']; 707 echo "<label>Yes <input id='navFormatter' name='jtd_anything_slides_options[navFormatter]' type='radio' value='true'" . checked( $autoPlayLocked, 'true', false ) . " /></label><br />"; 708 echo "<label>No <input id='navFormatter' name='jtd_anything_slides_options[navFormatter]' type='radio' value='false'" . checked( $autoPlayLocked, 'false', false ) . " /></label>"; 709 echo "<span class='description'>Details at the top of the file on this use (advanced use).</span>"; 710 } 711 */ 762 763 function jtd_anything_slides_startText_callback() { 764 $options = get_option( 'jtd_anything_slides_options' ); 765 $startText = $options['startText']; 766 echo "<input id='startText' name='jtd_anything_slides_options[startText]' type='text' value='$startText' />"; 767 echo "<span class='description'>Start button text</span>"; 768 } 769 function jtd_anything_slides_stopText_callback() { 770 $options = get_option( 'jtd_anything_slides_options' ); 771 $stopText = $options['stopText']; 772 echo "<input id='stopText' name='jtd_anything_slides_options[stopText]' type='text' value='$stopText' />"; 773 echo "<span class='description'>Stop button text</span>"; 774 } 712 775 function jtd_anything_slides_forwardText_callback() { 713 776 $options = get_option( 'jtd_anything_slides_options' ); … … 722 785 echo "<span class='description'>Link text used to move the slider back (hidden by CSS, replace with arrow image)</span>"; 723 786 } 724 725 726 /* 727 ** Slideshow options 728 */ 729 /* Slideshow options 730 enablePlay : true, // if false, the play/stop button will still be visible, but not clickable. 731 autoPlay : true, // This turns off the entire slideshow FUNCTIONALY, not just if it starts running or not 732 autoPlayLocked : false, // If true, user changing slides will not stop the slideshow 733 734 startStopped : false, // If autoPlay is on, this can force it to start stopped 735 pauseOnHover : true, // If true & the slideshow is active, the slideshow will pause on hover 736 resumeOnVideoEnd : true, // If true & the slideshow is active & a youtube video is playing, the autoplay will pause until the video completes 737 stopAtEnd : false, // If true & the slideshow is active, the slideshow will stop on the last page. This also stops the rewind effect when infiniteSlides is false. 738 playRtl : false, // If true, the slideshow will move right-to-left 739 startText : "Start", // Start button text 740 stopText : "Stop", // Stop button text 741 742 delay : 3000, // How long between slideshow transitions in AutoPlay mode (in milliseconds) 743 resumeDelay : 15000, // Resume slideshow after user interaction, only if autoplayLocked is true (in milliseconds). 744 animationTime : 600, // How long the slideshow transition takes (in milliseconds) 745 easing : "swing", // Anything other than "linear" or "swing" requires the easing plugin 746 */ 787 function jtd_anything_slides_tooltipClass_callback() { 788 $options = get_option( 'jtd_anything_slides_options' ); 789 $tooltip = $options['tooltipClass']; 790 echo "<input id='tooltipClass' name='jtd_anything_slides_options[tooltipClass]' type='text' value='$tooltip' />"; 791 echo "<span class='description'>Set this value to a number and it will show that many slides at once</span>"; 792 } 793 794 795 796 797 /* 798 ****************** 799 Function Settings 800 ****************** 801 */ 802 function jtd_anything_slides_enableArrows_callback() { 803 $options = get_option( 'jtd_anything_slides_options' ); 804 $enableArrows = $options['enableArrows']; 805 echo "<label>Yes <input id='enableArrows' name='jtd_anything_slides_options[enableArrows]' type='radio' value='true'" . checked( $enableArrows, 'true', false ) . " /></label><br />"; 806 echo "<label>No <input id='enableArrows' name='jtd_anything_slides_options[enableArrows]' type='radio' value='false'" . checked( $enableArrows, 'false', false ) . " /></label>"; 807 echo "<span class='description'>if no, arrows will be visible, but not clickable.</span>"; 808 } 809 function jtd_anything_slides_enableNav_callback() { 810 $options = get_option( 'jtd_anything_slides_options' ); 811 $enableNav = $options['enableNav']; 812 echo "<label>Yes <input id='enableNav' name='jtd_anything_slides_options[enableNav]' type='radio' value='true'" . checked( $enableNav, 'true', false ) . " /></label><br />"; 813 echo "<label>No <input id='enableNav' name='jtd_anything_slides_options[enableNav]' type='radio' value='false'" . checked( $enableNav, 'false', false ) . " /></label>"; 814 echo "<span class='description'>if no, navigation links will still be visible, but not clickable.</span>"; 815 } 747 816 function jtd_anything_slides_enablePlay_callback() { 748 817 $options = get_option( 'jtd_anything_slides_options' ); … … 752 821 echo "<span class='description'>if no, the play/stop button will still be visible, but not clickable.</span>"; 753 822 } 823 function jtd_anything_slides_keyboard_callback() { 824 $options = get_option( 'jtd_anything_slides_options' ); 825 $keyboard = $options['keyboard']; 826 echo "<label>Yes <input id='keyboard' name='jtd_anything_slides_options[keyboard]' type='radio' value='true'" . checked( $keyboard, 'true', false ) . "/></label><br />"; 827 echo "<label>No <input id='keyboard' name='jtd_anything_slides_options[keyboard]' type='radio' value='false'" . checked( $keyboard, 'false', false ) . "/></label>"; 828 echo "<span class='description'>If no, keyboard arrow keys will not work for the current panel</span>"; 829 } 830 831 832 833 834 /* 835 ******************** 836 Navigation Settings 837 ******************** 838 */ 839 function jtd_anything_slides_startPanel_callback() { 840 $options = get_option( 'jtd_anything_slides_options' ); 841 $startPanel = $options['startPanel']; 842 echo "<input id='startPanel' name='jtd_anything_slides_options[startPanel]' type='text' value='$startPanel' />"; 843 echo "<span class='description'>This sets the initial panel</span>"; 844 } 845 function jtd_anything_slides_changeBy_callback() { 846 $options = get_option( 'jtd_anything_slides_options' ); 847 $changeBy = $options['changeBy']; 848 echo "<input id='changeBy' name='jtd_anything_slides_options[changeBy]' type='number' min=0 value='$changeBy' />"; 849 echo "<span class='description'>Amount to go forward or back when changing panels.</span>"; 850 } 851 function jtd_anything_slides_hashTags_callback() { 852 $options = get_option( 'jtd_anything_slides_options' ); 853 $hashTags = $options['hashTags']; 854 echo "<label>Yes <input id='hashTags' name='jtd_anything_slides_options[hashTags]' type='radio' value='true'" . checked( $hashTags, 'true', false ) . "/></label><br />"; 855 echo "<label>No <input id='hashTags' name='jtd_anything_slides_options[hashTags]' type='radio' value='false'" . checked( $hashTags, 'false', false ) . "/></label>"; 856 echo "<span class='description'>Should links change the hashtag in the URL?</span>"; 857 } 858 function jtd_anything_slides_infinite_callback() { 859 $options = get_option( 'jtd_anything_slides_options' ); 860 $infinite = $options['infinite']; 861 echo "<label>Yes <input id='infinite' name='jtd_anything_slides_options[infinite]' type='radio' value='true'" . checked( $infinite, 'true', false ) . "/></label><br />"; 862 echo "<label>No <input id='infinite' name='jtd_anything_slides_options[infinite]' type='radio' value='false'" . checked( $infinite, 'false', false ) . "/></label>"; 863 echo "<span class='description'>if no, the slider will not wrap</span>"; 864 } 865 866 867 868 869 870 /* 871 ***************** 872 Slidshow Options 873 ***************** 874 */ 754 875 function jtd_anything_slides_autoPlay_callback() { 755 876 $options = get_option( 'jtd_anything_slides_options' ); 756 877 $autoPlay = $options['autoPlay']; 757 echo "<label>Yes <input id='autoPlay' name='jtd_anything_slides_options[autoPlay]' type='radio' value='true'" . checked( $autoPlay, 'true', false ) . " /></label><br />";878 echo "<label>Yes <input id='autoPlay' name='jtd_anything_slides_options[autoPlay]' type='radio' value='true'" . checked( $autoPlay, 'true', false ) . " /></label><br />"; 758 879 echo "<label>No <input id='autoPlay' name='jtd_anything_slides_options[autoPlay]' type='radio' value='false'" . checked( $autoPlay, 'false', false ) . " /></label>"; 759 echo "<span class='description'> This turns off the entire slideshow functionality, not just if it starts running or not</span>";880 echo "<span class='description'>If yes, the slideshow will start running</span>"; 760 881 } 761 882 function jtd_anything_slides_autoPlayLocked_callback() { 762 883 $options = get_option( 'jtd_anything_slides_options' ); 763 884 $autoPlayLocked = $options['autoPlayLocked']; 764 echo "<label>Yes <input id='autoPlayLocked' name='jtd_anything_slides_options[autoPlayLocked]' type='radio' value='true'" . checked( $autoPlayLocked, 'true', false ) . " /></label><br />";885 echo "<label>Yes <input id='autoPlayLocked' name='jtd_anything_slides_options[autoPlayLocked]' type='radio' value='true'" . checked( $autoPlayLocked, 'true', false ) . " /></label><br />"; 765 886 echo "<label>No <input id='autoPlayLocked' name='jtd_anything_slides_options[autoPlayLocked]' type='radio' value='false'" . checked( $autoPlayLocked, 'false', false ) . " /></label>"; 766 887 echo "<span class='description'>If yes, user changing slides will not stop the slideshow</span>"; 767 888 } 768 769 770 771 889 function jtd_anything_slides_autoPlayDelayed_callback() { 890 $options = get_option( 'jtd_anything_slides_options' ); 891 $autoPlayDelayed = $options['autoPlayDelayed']; 892 echo "<label>Yes <input id='autoPlayDelayed' name='jtd_anything_slides_options[autoPlayDelayed]' type='radio' value='true'" . checked( $autoPlayDelayed, 'true', false ) . " /></label><br />"; 893 echo "<label>No <input id='autoPlayDelayed' name='jtd_anything_slides_options[autoPlayDelayed]' type='radio' value='false'" . checked( $autoPlayDelayed, 'false', false ) . " /></label>"; 894 echo "<span class='description'>If yes, starting a slideshow will delay advancing slides; if false, the slider will immediately advance to the next slide when slideshow starts</span>"; 895 } 896 function jtd_anything_slides_pauseOnHover_callback() { 897 $options = get_option( 'jtd_anything_slides_options' ); 898 $pauseOnHover = $options['pauseOnHover']; 899 echo "<label>Yes <input id='pauseOnHover' name='jtd_anything_slides_options[pauseOnHover]' type='radio' value='true'" . checked( $pauseOnHover, 'true', false ) . " /></label><br />"; 900 echo "<label>No <input id='pauseOnHover' name='jtd_anything_slides_options[pauseOnHover]' type='radio' value='false'" . checked( $pauseOnHover, 'false', false ) . " /></label>"; 901 echo "<span class='description'>If yes & the slideshow is active, the slideshow will pause on hover</span>"; 902 } 903 function jtd_anything_slides_stopAtEnd_callback() { 904 $options = get_option( 'jtd_anything_slides_options' ); 905 $stopAtEnd = $options['stopAtEnd']; 906 echo "<label>Yes <input id='stopAtEnd' name='jtd_anything_slides_options[stopAtEnd]' type='radio' value='true'" . checked( $stopAtEnd, 'true', false ) . " /></label><br />"; 907 echo "<label>No <input id='stopAtEnd' name='jtd_anything_slides_options[stopAtEnd]' type='radio' value='false'" . checked( $stopAtEnd, 'false', false ) . " /></label>"; 908 echo "<span class='description'>If yes & the slideshow is active, the slideshow will stop on the last page. This also stops the rewind effect when infiniteSlides is false.</span>"; 909 } 910 function jtd_anything_slides_playRtl_callback() { 911 $options = get_option( 'jtd_anything_slides_options' ); 912 $playRtl = $options['playRtl']; 913 echo "<label>Yes <input id='playRtl' name='jtd_anything_slides_options[playRtl]' type='radio' value='true'" . checked( $playRtl, 'true', false ) . " /></label><br />"; 914 echo "<label>No <input id='playRtl' name='jtd_anything_slides_options[playRtl]' type='radio' value='false'" . checked( $playRtl, 'false', false ) . " /></label>"; 915 echo "<span class='description'>If yes, the slideshow will move right-to-left</span>"; 916 } 917 918 919 920 921 922 923 /* 924 *************** 925 Timing Options 926 *************** 927 */ 772 928 function jtd_anything_slides_delay_callback() { 773 929 $options = get_option( 'jtd_anything_slides_options' ); … … 791 947 792 948 793 /* 794 ** Video Settings 949 950 951 /* 952 ********************** 953 Interactivity Options 954 ********************** 955 */ 956 function jtd_anything_slides_clickForwardArrow_callback() { 957 $options = get_option( 'jtd_anything_slides_options' ); 958 $clickForwardArrow = $options['clickForwardArrow']; 959 960 echo "<input id='clickForwardArrow' name='jtd_anything_slides_options[clickForwardArrow]' type='text' value='$clickForwardArrow' />"; 961 echo "<span class='description'>Event used to activate forward arrow functionality (e.g. add jQuery mobile's 'swiperight')</span>"; 962 } 963 function jtd_anything_slides_clickBackArrow_callback() { 964 $options = get_option( 'jtd_anything_slides_options' ); 965 $clickBackArrow = $options['clickBackArrow']; 966 967 echo "<input id='clickBackArrow' name='jtd_anything_slides_options[clickBackArrow]' type='text' value='$clickBackArrow' />"; 968 echo "<span class='description'>Event used to activate back arrow functionality (e.g. add jQuery mobile's 'swipeleft')</span>"; 969 } 970 function jtd_anything_slides_clickControls_callback() { 971 $options = get_option( 'jtd_anything_slides_options' ); 972 $clickControls = $options['clickControls']; 973 974 echo "<input id='clickControls' name='jtd_anything_slides_options[clickControls]' type='text' value='$clickControls' />"; 975 echo "<span class='description'>Events used to activate navigation control functionality</span>"; 976 } 977 function jtd_anything_slides_clickSlideshow_callback() { 978 $options = get_option( 'jtd_anything_slides_options' ); 979 $clickSlideshow = $options['clickSlideshow']; 980 981 echo "<input id='clickSlideshow' name='jtd_anything_slides_options[clickSlideshow]' type='text' value='$clickSlideshow' />"; 982 echo "<span class='description'>Event used to activate slideshow play/stop button</span>"; 983 } 984 985 986 987 988 989 990 /* 991 *************** 992 Video Settings 993 *************** 795 994 */ 796 995 … … 830 1029 // Validate user input (we want numbers only) 831 1030 function jtd_anything_slides_validate_options($input) { 1031 $easing = array( 'swing', 'linear', 'easeInQuad', 'easeOutQuad', 'easeInOutQuad', 'easeInCubic', 'easeOutCubic', 'easeInOutCubic', 'easeInQuart', 'easeOutQuart', 'easeInOutQuart', 'easeInQuint', 'easeOutQuint', 'easeInOutQuint', 'easeInSine', 'easeOutSine', 'easeInOutSine', 'easeInExpo', 'easeOutExpo', 'easeInOutExpo', 'easeInCirc', 'easeOutCirc', 'easeInOutCirc', 'easeInElastic', 'easeOutElastic', 'easeInOutElastic', 'easeInBack', 'easeOutBack', 'easeInOutBack', 'easeInBounce', 'easeOutBounce', 'easeInOutBounce' ); 832 1032 $themes = array( 'construction', 'cs-portfolio', 'metallic', 'minimalist-round', 'minimalist-square' ); 833 1033 $wmodes = array( '', 'opaque', 'transparent' ); … … 836 1036 $valid = array(); 837 1037 838 // Appearance 1038 // Appearance Settings 839 1039 $valid['width'] = preg_replace( '/[^0-9]/', '', $input['width'] ); 840 1040 $valid['height'] = preg_replace( '/[^0-9]/', '', $input['height'] ); 1041 $valid['theme'] = ( in_array( mysql_real_escape_string($input['theme']), $themes ) ) ? $input['theme'] : 'default'; 841 1042 $valid['expand'] = ( in_array( mysql_real_escape_string($input['expand']), $boolean ) ) ? $input['expand'] : 'false'; 842 1043 $valid['resizeContents'] = ( in_array( mysql_real_escape_string($input['resizeContents']), $boolean ) ) ? $input['resizeContents'] : 'false'; 843 1044 $valid['showMultiple'] = preg_replace( '/[^0-9]/', '', $input['showMultiple'] ); 1045 $valid['easing'] = ( in_array( mysql_real_escape_string($input['easing']), $easing ) ) ? $input['easing'] : 'swing'; 1046 //$valid['easing'] = esc_html( $input['easing'] ); 1047 1048 $valid['arrows'] = ( in_array( mysql_real_escape_string($input['arrows']), $boolean ) ) ? $input['arrows'] : 'false'; 1049 $valid['navigation'] = ( in_array( mysql_real_escape_string($input['navigation']), $boolean ) ) ? $input['navigation'] : 'false'; 1050 $valid['startStop'] = ( in_array( mysql_real_escape_string($input['startStop']), $boolean ) ) ? $input['startStop'] : 'false'; 1051 1052 $valid['toggleArrows'] = ( in_array( mysql_real_escape_string($input['toggleArrows']), $boolean ) ) ? $input['toggleArrows'] : 'false'; 1053 $valid['toggleContr'] = ( in_array( mysql_real_escape_string($input['toggleContr']), $boolean ) ) ? $input['toggleContr'] : 'false'; 1054 $valid['startText'] = esc_html( $input['startText'] ); 1055 $valid['stopText'] = esc_html( $input['stopText'] ); 1056 $valid['forwardText'] = esc_html( $input['forwardText'] ); 1057 $valid['backText'] = esc_html( $input['backText'] ); 844 1058 $valid['tooltipClass'] = preg_replace( '/[^A-Za-z0-9_]/', '', $input['tooltipClass'] ); 845 $valid['theme'] = ( in_array( mysql_real_escape_string($input['theme']), $themes ) ) ? $input['theme'] : 'default'; 846 847 848 // Navigation 1059 1060 1061 1062 // Function Settings 1063 $valid['enableArrows'] = ( in_array( mysql_real_escape_string($input['enableArrows']), $boolean ) ) ? $input['enableArrows'] : 'false'; 1064 $valid['enableNav'] = ( in_array( mysql_real_escape_string($input['enableNav']), $boolean ) ) ? $input['enableNav'] : 'false'; 1065 $valid['enablePlay'] = ( in_array( mysql_real_escape_string($input['enablePlay']), $boolean ) ) ? $input['enablePlay'] : 'false'; 1066 $valid['keyboard'] = ( in_array( mysql_real_escape_string($input['keyboard']), $boolean ) ) ? $input['keyboard'] : 'false'; 1067 1068 1069 1070 1071 // Navigation Settings 849 1072 $valid['startPanel'] = preg_replace( '/[^0-9]/', '', $input['startPanel'] ); 1073 $valid['changeBy'] = preg_replace( '/[^0-9]/', '', $input['changeBy'] ); 850 1074 $valid['hashTags'] = ( in_array( mysql_real_escape_string($input['hashTags']), $boolean ) ) ? $input['hashTags'] : 'false'; 851 1075 $valid['infinite'] = ( in_array( mysql_real_escape_string($input['infinite']), $boolean ) ) ? $input['infinite'] : 'false'; 852 $valid['keyboard'] = ( in_array( mysql_real_escape_string($input['keyboard']), $boolean ) ) ? $input['keyboard'] : 'false'; 853 $valid['arrows'] = ( in_array( mysql_real_escape_string($input['arrows']), $boolean ) ) ? $input['arrows'] : 'false'; 854 $valid['toggleArrows'] = ( in_array( mysql_real_escape_string($input['toggleArrows']), $boolean ) ) ? $input['toggleArrows'] : 'false'; 855 $valid['navigation'] = ( in_array( mysql_real_escape_string($input['navigation']), $boolean ) ) ? $input['navigation'] : 'false'; 856 $valid['enableNav'] = ( in_array( mysql_real_escape_string($input['enableNav']), $boolean ) ) ? $input['enableNav'] : 'false'; 857 $valid['toggleContr'] = ( in_array( mysql_real_escape_string($input['toggleContr']), $boolean ) ) ? $input['toggleContr'] : 'false'; 858 $valid['forwardText'] = esc_html( $input['forwardText'] ); 859 $valid['backText'] = esc_html( $input['backText'] ); 860 1076 1077 1078 861 1079 // Slideshow options 862 $valid['enablePlay'] = ( in_array( mysql_real_escape_string($input['enablePlay']), $boolean ) ) ? $input['enablePlay'] : 'false'; 863 $valid['autoPlay'] = ( in_array( mysql_real_escape_string($input['autoPlay']), $boolean ) ) ? $input['autoPlay'] : 'false'; 864 $valid['autoPlayLocked'] = ( in_array( mysql_real_escape_string($input['autoPlayLocked']), $boolean ) ) ? $input['autoPlayLocked'] : 'false'; 865 $valid['delay'] = preg_replace( '/[^0-9]/', '', $input['delay'] ); 866 $valid['resume'] = preg_replace( '/[^0-9]/', '', $input['resume'] ); 867 $valid['animation'] = preg_replace( '/[^0-9]/', '', $input['animation'] ); 1080 $valid['autoPlay'] = ( in_array( mysql_real_escape_string($input['autoPlay']), $boolean ) ) ? $input['autoPlay'] : 'false'; 1081 $valid['autoPlayLocked'] = ( in_array( mysql_real_escape_string($input['autoPlayLocked']), $boolean ) ) ? $input['autoPlayLocked'] : 'false'; 1082 $valid['autoPlayDelayed'] = ( in_array( mysql_real_escape_string($input['autoPlayDelayed']), $boolean ) ) ? $input['autoPlayDelayed'] : 'false'; 1083 $valid['pauseOnHover'] = ( in_array( mysql_real_escape_string($input['pauseOnHover']), $boolean ) ) ? $input['pauseOnHover'] : 'false'; 1084 $valid['stopAtEnd'] = ( in_array( mysql_real_escape_string($input['stopAtEnd']), $boolean ) ) ? $input['stopAtEnd'] : 'false'; 1085 $valid['playRtl'] = ( in_array( mysql_real_escape_string($input['playRtl']), $boolean ) ) ? $input['playRtl'] : 'false'; 1086 1087 1088 1089 // Timing Settings 1090 $valid['delay'] = preg_replace( '/[^0-9]/', '', $input['delay'] ); 1091 $valid['resume'] = preg_replace( '/[^0-9]/', '', $input['resume'] ); 1092 $valid['animation'] = preg_replace( '/[^0-9]/', '', $input['animation'] ); 1093 1094 1095 1096 // Interactivity Settings 1097 $valid['clickForwardArrow'] = esc_html( $input['clickForwardArrow'] ); 1098 $valid['clickBackArrow'] = esc_html( $input['clickBackArrow'] ); 1099 $valid['clickControls'] = esc_html( $input['clickControls'] ); 1100 $valid['clickSlideshow'] = esc_html( $input['clickSlideshow'] ); 1101 868 1102 869 1103 … … 873 1107 874 1108 875 876 877 878 879 880 881 1109 1110 882 1111 /* 883 // Slideshow options884 startStopped : false, // If autoPlay is on, this can force it to start stopped885 pauseOnHover : true, // If true & the slideshow is active, the slideshow will pause on hover886 resumeOnVideoEnd : true, // If true & the slideshow is active & a youtube video is playing, the autoplay will pause until the video completes887 stopAtEnd : false, // If true & the slideshow is active, the slideshow will stop on the last page. This also stops the rewind effect when infiniteSlides is false.888 playRtl : false, // If true, the slideshow will move right-to-left889 startText : "Start", // Start button text890 stopText : "Stop", // Stop button text891 delay : 3000, // How long between slideshow transitions in AutoPlay mode (in milliseconds)892 resumeDelay : 15000, // Resume slideshow after user interaction, only if autoplayLocked is true (in milliseconds).893 animationTime : 600, // How long the slideshow transition takes (in milliseconds)894 easing : "swing", // Anything other than "linear" or "swing" requires the easing plugin895 896 */897 898 899 1112 if( $valid['width'] != $input['width'] ) { 900 1113 add_settings_error( … … 937 1150 ); 938 1151 } 1152 */ 939 1153 940 1154 return $valid; … … 961 1175 if ( ( !is_array( $tmp ) ) ) { 962 1176 $o = array( 963 'width' => '570', // Override the default CSS width 964 'height' => '190', // Override the default CSS height 965 'expand' => 'false', // If true, the entire slider will expand to fit the parent element 966 'resizeContents' => 'true', // If true, solitary images/objects in the panel will expand to fit the viewport 967 'showMultiple' => 1, // Set this value to a number and it will show that many slides at once 968 'tooltipClass' => 'tooltip', // Class added to navigation & start/stop button (text copied to title if it is hidden by a negative text indent) 969 'theme' => 'default', 970 971 'startPanel' => 1, // This sets the initial panel 972 'hashTags' => 'true', // Should links change the hashtag in the URL? 973 'infinite' => 'true', // if false, the slider will not wrap 974 'keyboard' => 'true', // if false, keyboard arrow keys will not work for the current panel. 975 'arrows' => 'true', // If 'true', builds the forwards and backwards buttons 976 'toggleArrows' => 'false', // if 'true', side navigation arrows will slide out on hovering & hide @ other times 977 'navigation' => 'true', // If 'true', builds a list of anchor links to link to each panel 978 'enableNav' => 'true', // if 'false', navigation links will still be visible, but not clickable. 979 'toggleControls' => 'false', // if 'true', slide in controls (navigation + play/stop button) on hover and slide change, hide @ other times 980 'appendControlsTo' => null, // A HTML element (jQuery Object, selector or HTMLNode) to which the controls will be appended if not null 981 'navigationFormatter' => null, // Details at the top of the file on this use (advanced use) 982 'forwardText' => "»", // Link text used to move the slider forward (hidden by CSS, replaced with arrow image) 983 'backText' => "«", // Link text used to move the slider back (hidden by CSS, replace with arrow image) 984 985 'enablePlay' => 'true', // if 'false', the play/stop button will still be visible, but not clickable. 986 'autoPlay' => 'true', // This turns off the entire slideshow FUNCTIONALY, not just if it starts running or not 987 'autoPlayLocked' => 'false', // If 'true', user changing slides will not stop the slideshow 988 'startStopped' => 'false', // If autoPlay is on, this can force it to start stopped 989 'pauseOnHover' => 'true', // If 'true' & the slideshow is active, the slideshow will pause on hover 990 'resumeOnVideo' => 'true', // If 'true' & the slideshow is active & a youtube video is playing, the autoplay will pause until the video completes 991 'stopAtEnd' => 'false', // If true & the slideshow is active, the slideshow will stop on the last page. This also stops the rewind effect when infiniteSlides is 'false'. 992 'playRtl' => 'false', // If true, the slideshow will move right-to-left 993 'startText' => "Start", // Start button text 994 'stopText' => "Stop", // Stop button text 995 'delay' => 3000, // How long between slideshow transitions in AutoPlay mode (in milliseconds) 996 'resume' => 15000, // Resume slideshow after user interaction, only if autoplayLocked is true (in milliseconds). 997 'animation' => 600, // How long the slideshow transition takes (in milliseconds) 998 'easing' => "swing", // Anything other than "linear" or "swing" requires the easing plugin 999 1000 'video' => 'false', 1001 'wmode' => 'disabled' 1002 1177 'width' => '570', 1178 'height' => '190', 1179 'theme' => "default", 1180 'expand' => false, 1181 'resizeContents' => true, 1182 'showMultiple' => '1', 1183 'easing' => "swing", 1184 1185 'arrows' => true, 1186 'navigation' => true, 1187 'StartStop' => true, 1188 1189 'toggleArrows' => false, 1190 'toggleContr' => false, 1191 1192 'startText' => "Start", 1193 'stopText' => "Stop", 1194 'forwardText' => "»", 1195 'backText' => "«", 1196 'tooltipClass' => "tooltip", 1197 1198 1199 'enableArrows' => true, 1200 'enableNav' => true, 1201 'enablePlay' => true, 1202 'keyboard' => true, 1203 1204 1205 'startPanel' => '1', 1206 'changeBy' => '1', 1207 'hashTags' => true, 1208 'infinite' => true, 1209 1210 'autoPlay' => false, 1211 'autoPlayLocked' => false, 1212 'autoPlayDelayed' => false, 1213 'pauseOnHover' => true, 1214 'stopAtEnd' => false, 1215 'playRtl' => false, 1216 1217 1218 'delay' => 3000, 1219 'resume' => 15000, 1220 'animation' => 750, 1221 1222 1223 'clickForwardArrow' => "click", 1224 'clickBackArrow' => "click", 1225 'clickControls' => "click focusin", 1226 'clickSlideshow' => "click", 1227 1228 1229 'video' => true, 1230 'wmode' => "opaque" 1231 1003 1232 ); 1004 1233 -
anythingslider-for-wordpress/trunk/readme.txt
r405815 r407189 10 10 Requires at least: 3.0 11 11 Tested up to: 3.2 12 Stable tag: 0.6. 112 Stable tag: 0.6.2 13 13 14 14 … … 27 27 28 28 = Changelog = 29 30 = 0.6.2 = 31 32 * Update plugin scripts to version 1.7.2 * 33 * Added the new options available in the latest version of the jQuery plugin * 34 * Added a touch of JS to the admin options page to make it a little more manageable * 35 * Added Easing options * 29 36 30 37 = 0.6.1 =
Note: See TracChangeset
for help on using the changeset viewer.