MetaSlider - Version 2.0.2

Version Description

  • Fix: PHP Error when using slides the same size as the slideshow
Download this release

Release Info

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

Code changes from version 1.3 to 2.0.2

Files changed (71) hide show
  1. assets/coinslider/coin-slider-styles.css +0 -17
  2. assets/coinslider/coin-slider.min.js +0 -51
  3. assets/colorbox/colorbox.css +86 -0
  4. assets/colorbox/images/border.png +0 -0
  5. assets/colorbox/images/controls.png +0 -0
  6. assets/colorbox/images/ie6/borderBottomCenter.png +0 -0
  7. assets/colorbox/images/ie6/borderBottomLeft.png +0 -0
  8. assets/colorbox/images/ie6/borderBottomRight.png +0 -0
  9. assets/colorbox/images/ie6/borderMiddleLeft.png +0 -0
  10. assets/colorbox/images/ie6/borderMiddleRight.png +0 -0
  11. assets/colorbox/images/ie6/borderTopCenter.png +0 -0
  12. assets/colorbox/images/ie6/borderTopLeft.png +0 -0
  13. assets/colorbox/images/ie6/borderTopRight.png +0 -0
  14. assets/colorbox/images/loading.gif +0 -0
  15. assets/colorbox/images/loading_background.png +0 -0
  16. assets/colorbox/images/overlay.png +0 -0
  17. assets/colorbox/jquery.colorbox-min.js +6 -0
  18. assets/easing/jQuery.easing.min.js +44 -0
  19. assets/metaslider-admin.css +0 -218
  20. assets/metaslider-display.css +0 -81
  21. assets/metaslider.js +0 -151
  22. assets/metaslider/admin.css +356 -0
  23. assets/metaslider/admin.js +137 -0
  24. assets/metaslider/admin.less +413 -0
  25. assets/metaslider/image/image.js +40 -0
  26. assets/metaslider/matchalabs.png +0 -0
  27. assets/metaslider/public.css +134 -0
  28. assets/sliders/coinslider/coin-slider-styles.css +36 -0
  29. assets/sliders/coinslider/coin-slider.min.js +11 -0
  30. assets/{flexslider → sliders/flexslider}/bg_direction_nav.png +0 -0
  31. assets/{flexslider → sliders/flexslider}/flexslider.css +1 -1
  32. assets/{flexslider → sliders/flexslider}/jquery.flexslider-min.js +0 -0
  33. assets/{nivoslider → sliders/nivoslider}/jquery.nivo.slider.pack.js +0 -0
  34. assets/{nivoslider → sliders/nivoslider}/nivo-slider.css +0 -0
  35. assets/{nivoslider → sliders/nivoslider}/themes/bar/arrows.png +0 -0
  36. assets/{nivoslider → sliders/nivoslider}/themes/bar/bar.css +0 -0
  37. assets/{nivoslider → sliders/nivoslider}/themes/bar/bullets.png +0 -0
  38. assets/{nivoslider → sliders/nivoslider}/themes/bar/loading.gif +0 -0
  39. assets/{nivoslider → sliders/nivoslider}/themes/dark/arrows.png +0 -0
  40. assets/{nivoslider → sliders/nivoslider}/themes/dark/bullets.png +0 -0
  41. assets/{nivoslider → sliders/nivoslider}/themes/dark/dark.css +0 -0
  42. assets/{nivoslider → sliders/nivoslider}/themes/dark/loading.gif +0 -0
  43. assets/{nivoslider → sliders/nivoslider}/themes/default/arrows.png +0 -0
  44. assets/{nivoslider → sliders/nivoslider}/themes/default/bullets.png +0 -0
  45. assets/{nivoslider → sliders/nivoslider}/themes/default/default.css +0 -1
  46. assets/{nivoslider → sliders/nivoslider}/themes/default/loading.gif +0 -0
  47. assets/{nivoslider → sliders/nivoslider}/themes/light/arrows.png +0 -0
  48. assets/{nivoslider → sliders/nivoslider}/themes/light/bullets.png +0 -0
  49. assets/{nivoslider → sliders/nivoslider}/themes/light/light.css +0 -0
  50. assets/{nivoslider → sliders/nivoslider}/themes/light/loading.gif +0 -0
  51. assets/{responsiveslides → sliders/responsiveslides}/responsiveslides.css +0 -0
  52. assets/{responsiveslides → sliders/responsiveslides}/responsiveslides.min.js +0 -0
  53. inc/metaslider.class.php +0 -210
  54. inc/metaslider.flex.class.php +0 -78
  55. inc/metaslider.imagehelper.class.php +210 -0
  56. inc/slide/metaslide.class.php +96 -0
  57. inc/slide/metaslide.image.class.php +208 -0
  58. inc/slider/metaslider.class.php +392 -0
  59. inc/{metaslider.coin.class.php → slider/metaslider.coin.class.php} +11 -30
  60. inc/slider/metaslider.flex.class.php +112 -0
  61. inc/{metaslider.nivo.class.php → slider/metaslider.nivo.class.php} +26 -17
  62. inc/{metaslider.responsive.class.php → slider/metaslider.responsive.class.php} +14 -31
  63. languages/default.mo +0 -0
  64. languages/default.po +0 -272
  65. languages/metaslider-fr_FR.mo +0 -0
  66. languages/metaslider-fr_FR.po +356 -0
  67. languages/metaslider.mo +0 -0
  68. languages/metaslider.po +351 -0
  69. ml-slider.php +460 -392
  70. preview.php +19 -0
  71. readme.txt +73 -41
assets/coinslider/coin-slider-styles.css DELETED
@@ -1,17 +0,0 @@
1
- /*
2
- Coin Slider jQuery plugin CSS styles
3
- http://workshop.rs/projects/coin-slider
4
- */
5
-
6
-
7
- .coin-slider { overflow: hidden; zoom: 1; position: relative; }
8
- .coin-slider a{ text-decoration: none; outline: none; border: none; }
9
-
10
- .cs-buttons { font-size: 0px; padding: 10px; float: left; }
11
- .cs-buttons a { margin-left: 5px; height: 10px; width: 10px; float: left; border: 1px solid #B8C4CF; color: #B8C4CF; text-indent: -1000px; }
12
- .cs-active { background-color: #B8C4CF; color: #FFFFFF; }
13
-
14
- .cs-title { width: 545px; padding: 10px; background-color: #000000; color: #FFFFFF; }
15
-
16
- .cs-prev,
17
- .cs-next { background-color: #000000; color: #FFFFFF; padding: 0px 10px; }
assets/coinslider/coin-slider.min.js DELETED
@@ -1,51 +0,0 @@
1
- /**
2
- * Coin Slider - Unique jQuery Image Slider
3
- * @version: 1.0 - (2010/04/04)
4
- * @requires jQuery v1.2.2 or later
5
- * @author Ivan Lazarevic
6
- * Examples and documentation at: http://workshop.rs/projects/coin-slider/
7
-
8
- * Licensed under MIT licence:
9
- * http://www.opensource.org/licenses/mit-license.php
10
- **/
11
-
12
- (function($){var params=new Array;var order=new Array;var images=new Array;var links=new Array;var linksTarget=new Array;var titles=new Array;var interval=new Array;var imagePos=new Array;var appInterval=new Array;var squarePos=new Array;var reverse=new Array;$.fn.coinslider=$.fn.CoinSlider=function(options){init=function(el){order[el.id]=new Array();images[el.id]=new Array();links[el.id]=new Array();linksTarget[el.id]=new Array();titles[el.id]=new Array();imagePos[el.id]=0;squarePos[el.id]=0;reverse[el.id]=1;params[el.id]=$.extend({},$.fn.coinslider.defaults,options);$.each($('#'+el.id+' img'),function(i,item){images[el.id][i]=$(item).attr('src');links[el.id][i]=$(item).parent().is('a')?$(item).parent().attr('href'):'';linksTarget[el.id][i]=$(item).parent().is('a')?$(item).parent().attr('target'):'';titles[el.id][i]=$(item).next().is('span')?$(item).next().html():'';$(item).hide();$(item).next().hide();});$(el).css({'background-image':'url('+images[el.id][0]+')','width':params[el.id].width,'height':params[el.id].height,'position':'relative','background-position':'top left'}).wrap("<div class='coin-slider' id='coin-slider-"+el.id+"' />");$('#'+el.id).append("<div class='cs-title' id='cs-title-"+el.id+"' style='position: absolute; bottom:0; left: 0; z-index: 1000;'></div>");$.setFields(el);if(params[el.id].navigation)
13
- $.setNavigation(el);$.transition(el,0);$.transitionCall(el);}
14
- $.setFields=function(el){tWidth=sWidth=parseInt(params[el.id].width/params[el.id].spw);tHeight=sHeight=parseInt(params[el.id].height/params[el.id].sph);counter=sLeft=sTop=0;tgapx=gapx=params[el.id].width-params[el.id].spw*sWidth;tgapy=gapy=params[el.id].height-params[el.id].sph*sHeight;for(i=1;i<=params[el.id].sph;i++){gapx=tgapx;if(gapy>0){gapy--;sHeight=tHeight+1;}else{sHeight=tHeight;}
15
- for(j=1;j<=params[el.id].spw;j++){if(gapx>0){gapx--;sWidth=tWidth+1;}else{sWidth=tWidth;}
16
- order[el.id][counter]=i+''+j;counter++;if(params[el.id].links)
17
- $('#'+el.id).append("<a href='"+links[el.id][0]+"' class='cs-"+el.id+"' id='cs-"+el.id+i+j+"' style='width:"+sWidth+"px; height:"+sHeight+"px; float: left; position: absolute;'></a>");else
18
- $('#'+el.id).append("<div class='cs-"+el.id+"' id='cs-"+el.id+i+j+"' style='width:"+sWidth+"px; height:"+sHeight+"px; float: left; position: absolute;'></div>");$("#cs-"+el.id+i+j).css({'background-position':-sLeft+'px '+(-sTop+'px'),'left':sLeft,'top':sTop});sLeft+=sWidth;}
19
- sTop+=sHeight;sLeft=0;}
20
- $('.cs-'+el.id).mouseover(function(){$('#cs-navigation-'+el.id).show();});$('.cs-'+el.id).mouseout(function(){$('#cs-navigation-'+el.id).hide();});$('#cs-title-'+el.id).mouseover(function(){$('#cs-navigation-'+el.id).show();});$('#cs-title-'+el.id).mouseout(function(){$('#cs-navigation-'+el.id).hide();});if(params[el.id].hoverPause){$('.cs-'+el.id).mouseover(function(){params[el.id].pause=true;});$('.cs-'+el.id).mouseout(function(){params[el.id].pause=false;});$('#cs-title-'+el.id).mouseover(function(){params[el.id].pause=true;});$('#cs-title-'+el.id).mouseout(function(){params[el.id].pause=false;});}};$.transitionCall=function(el){clearInterval(interval[el.id]);delay=params[el.id].delay+params[el.id].spw*params[el.id].sph*params[el.id].sDelay;interval[el.id]=setInterval(function(){$.transition(el)},delay);}
21
- $.transition=function(el,direction){if(params[el.id].pause==true)return;$.effect(el);squarePos[el.id]=0;appInterval[el.id]=setInterval(function(){$.appereance(el,order[el.id][squarePos[el.id]])},params[el.id].sDelay);$(el).css({'background-image':'url('+images[el.id][imagePos[el.id]]+')'});if(typeof(direction)=="undefined")
22
- imagePos[el.id]++;else
23
- if(direction=='prev')
24
- imagePos[el.id]--;else
25
- imagePos[el.id]=direction;if(imagePos[el.id]==images[el.id].length){imagePos[el.id]=0;}
26
- if(imagePos[el.id]==-1){imagePos[el.id]=images[el.id].length-1;}
27
- $('.cs-button-'+el.id).removeClass('cs-active');$('#cs-button-'+el.id+"-"+(imagePos[el.id]+1)).addClass('cs-active');if(titles[el.id][imagePos[el.id]]){$('#cs-title-'+el.id).css({'opacity':0}).animate({'opacity':params[el.id].opacity},params[el.id].titleSpeed);$('#cs-title-'+el.id).html(titles[el.id][imagePos[el.id]]);}else{$('#cs-title-'+el.id).css('opacity',0);}};$.appereance=function(el,sid){$('.cs-'+el.id).attr('href',links[el.id][imagePos[el.id]]).attr('target',linksTarget[el.id][imagePos[el.id]]);if(squarePos[el.id]==params[el.id].spw*params[el.id].sph){clearInterval(appInterval[el.id]);return;}
28
- $('#cs-'+el.id+sid).css({opacity:0,'background-image':'url('+images[el.id][imagePos[el.id]]+')'});$('#cs-'+el.id+sid).animate({opacity:1},300);squarePos[el.id]++;};$.setNavigation=function(el){$(el).append("<div id='cs-navigation-"+el.id+"'></div>");$('#cs-navigation-'+el.id).hide();$('#cs-navigation-'+el.id).append("<a href='#' id='cs-prev-"+el.id+"' class='cs-prev'>prev</a>");$('#cs-navigation-'+el.id).append("<a href='#' id='cs-next-"+el.id+"' class='cs-next'>next</a>");$('#cs-prev-'+el.id).css({'position':'absolute','top':params[el.id].height/2-15,'left':0,'z-index':1001,'line-height':'30px','opacity':params[el.id].opacity}).click(function(e){e.preventDefault();$.transition(el,'prev');$.transitionCall(el);}).mouseover(function(){$('#cs-navigation-'+el.id).show()});$('#cs-next-'+el.id).css({'position':'absolute','top':params[el.id].height/2-15,'right':0,'z-index':1001,'line-height':'30px','opacity':params[el.id].opacity}).click(function(e){e.preventDefault();$.transition(el);$.transitionCall(el);}).mouseover(function(){$('#cs-navigation-'+el.id).show()});$("<div id='cs-buttons-"+el.id+"' class='cs-buttons'></div>").appendTo($('#coin-slider-'+el.id));for(k=1;k<images[el.id].length+1;k++){$('#cs-buttons-'+el.id).append("<a href='#' class='cs-button-"+el.id+"' id='cs-button-"+el.id+"-"+k+"'>"+k+"</a>");}
29
- $.each($('.cs-button-'+el.id),function(i,item){$(item).click(function(e){$('.cs-button-'+el.id).removeClass('cs-active');$(this).addClass('cs-active');e.preventDefault();$.transition(el,i);$.transitionCall(el);})});$('#cs-navigation-'+el.id+' a').mouseout(function(){$('#cs-navigation-'+el.id).hide();params[el.id].pause=false;});$("#cs-buttons-"+el.id).css({'left':'50%','margin-left':-images[el.id].length*15/2-5,'position':'relative'});}
30
- $.effect=function(el){effA=['random','swirl','rain','straight'];if(params[el.id].effect=='')
31
- eff=effA[Math.floor(Math.random()*(effA.length))];else
32
- eff=params[el.id].effect;order[el.id]=new Array();if(eff=='random'){counter=0;for(i=1;i<=params[el.id].sph;i++){for(j=1;j<=params[el.id].spw;j++){order[el.id][counter]=i+''+j;counter++;}}
33
- $.random(order[el.id]);}
34
- if(eff=='rain'){$.rain(el);}
35
- if(eff=='swirl')
36
- $.swirl(el);if(eff=='straight')
37
- $.straight(el);reverse[el.id]*=-1;if(reverse[el.id]>0){order[el.id].reverse();}}
38
- $.random=function(arr){var i=arr.length;if(i==0)return false;while(--i){var j=Math.floor(Math.random()*(i+1));var tempi=arr[i];var tempj=arr[j];arr[i]=tempj;arr[j]=tempi;}}
39
- $.swirl=function(el){var n=params[el.id].sph;var m=params[el.id].spw;var x=1;var y=1;var going=0;var num=0;var c=0;var dowhile=true;while(dowhile){num=(going==0||going==2)?m:n;for(i=1;i<=num;i++){order[el.id][c]=x+''+y;c++;if(i!=num){switch(going){case 0:y++;break;case 1:x++;break;case 2:y--;break;case 3:x--;break;}}}
40
- going=(going+1)%4;switch(going){case 0:m--;y++;break;case 1:n--;x++;break;case 2:m--;y--;break;case 3:n--;x--;break;}
41
- check=$.max(n,m)-$.min(n,m);if(m<=check&&n<=check)
42
- dowhile=false;}}
43
- $.rain=function(el){var n=params[el.id].sph;var m=params[el.id].spw;var c=0;var to=to2=from=1;var dowhile=true;while(dowhile){for(i=from;i<=to;i++){order[el.id][c]=i+''+parseInt(to2-i+1);c++;}
44
- to2++;if(to<n&&to2<m&&n<m){to++;}
45
- if(to<n&&n>=m){to++;}
46
- if(to2>m){from++;}
47
- if(from>to)dowhile=false;}}
48
- $.straight=function(el){counter=0;for(i=1;i<=params[el.id].sph;i++){for(j=1;j<=params[el.id].spw;j++){order[el.id][counter]=i+''+j;counter++;}}}
49
- $.min=function(n,m){if(n>m)return m;else return n;}
50
- $.max=function(n,m){if(n<m)return m;else return n;}
51
- this.each(function(){init(this);});};$.fn.coinslider.defaults={width:565,height:290,spw:7,sph:5,delay:3000,sDelay:30,opacity:0.7,titleSpeed:500,effect:'',navigation:true,links:true,hoverPause:true};})(jQuery);
assets/colorbox/colorbox.css ADDED
@@ -0,0 +1,86 @@
1
+ /*
2
+ ColorBox Core Style:
3
+ The following CSS is consistent between example themes and should not be altered.
4
+ */
5
+ #colorbox, #cboxOverlay, #cboxWrapper{position:absolute; top:0; left:0; z-index:9999; overflow:hidden;}
6
+ #cboxOverlay{position:fixed; width:100%; height:100%;}
7
+ #cboxMiddleLeft, #cboxBottomLeft{clear:left;}
8
+ #cboxContent{position:relative;}
9
+ #cboxLoadedContent{overflow:auto; -webkit-overflow-scrolling: touch;}
10
+ #cboxTitle{margin:0;}
11
+ #cboxLoadingOverlay, #cboxLoadingGraphic{position:absolute; top:0; left:0; width:100%; height:100%;}
12
+ #cboxPrevious, #cboxNext, #cboxClose, #cboxSlideshow{cursor:pointer;}
13
+ .cboxPhoto{float:left; margin:auto; border:0; display:block; max-width:none;}
14
+ .cboxIframe{width:100%; height:100%; display:block; border:0;}
15
+ #colorbox, #cboxContent, #cboxLoadedContent{box-sizing:content-box; -moz-box-sizing:content-box; -webkit-box-sizing:content-box;}
16
+
17
+ /*
18
+ User Style:
19
+ Change the following styles to modify the appearance of ColorBox. They are
20
+ ordered & tabbed in a way that represents the nesting of the generated HTML.
21
+ */
22
+ #cboxOverlay{background:url(images/overlay.png) repeat 0 0;}
23
+ #colorbox{outline:0;}
24
+
25
+ #cboxContent{background:#fff; overflow:hidden; padding: 10px;}
26
+ .cboxIframe{background:#fff;}
27
+ #cboxError{padding:50px; border:1px solid #ccc;}
28
+ #cboxLoadedContent{margin-bottom:28px;}
29
+ #cboxTitle{position:absolute; bottom:4px; left:0; text-align:center; width:100%; color:#949494;}
30
+ #cboxCurrent{position:absolute; bottom:4px; left:58px; color:#949494;}
31
+ #cboxLoadingOverlay{background:url(images/loading_background.png) no-repeat center center;}
32
+ #cboxLoadingGraphic{background:url(images/loading.gif) no-repeat center center;}
33
+
34
+ /* these elements are buttons, and may need to have additional styles reset to avoid unwanted base styles */
35
+ #cboxPrevious, #cboxNext, #cboxSlideshow, #cboxClose {border:0; padding:0; margin:0; overflow:visible; width:auto; background:none; }
36
+
37
+ /* avoid outlines on :active (mouseclick), but preserve outlines on :focus (tabbed navigating) */
38
+ #cboxPrevious:active, #cboxNext:active, #cboxSlideshow:active, #cboxClose:active {outline:0;}
39
+
40
+ #cboxSlideshow{position:absolute; bottom:4px; right:30px; color:#0092ef;}
41
+ #cboxPrevious{position:absolute; bottom:0; left:0; background:url(images/controls.png) no-repeat -75px 0; width:25px; height:25px; text-indent:-9999px;}
42
+ #cboxPrevious:hover{background-position:-75px -25px;}
43
+ #cboxNext{position:absolute; bottom:0; left:27px; background:url(images/controls.png) no-repeat -50px 0; width:25px; height:25px; text-indent:-9999px;}
44
+ #cboxNext:hover{background-position:-50px -25px;}
45
+ #cboxClose{position:absolute; bottom:0; right:0; background:url(images/controls.png) no-repeat -25px 0; width:25px; height:25px; text-indent:-9999px;}
46
+ #cboxClose:hover{background-position:-25px -25px;}
47
+
48
+ /*
49
+ The following fixes a problem where IE7 and IE8 replace a PNG's alpha transparency with a black fill
50
+ when an alpha filter (opacity change) is set on the element or ancestor element. This style is not applied to or needed in IE9.
51
+ See: http://jacklmoore.com/notes/ie-transparency-problems/
52
+ */
53
+ .cboxIE #cboxTopLeft,
54
+ .cboxIE #cboxTopCenter,
55
+ .cboxIE #cboxTopRight,
56
+ .cboxIE #cboxBottomLeft,
57
+ .cboxIE #cboxBottomCenter,
58
+ .cboxIE #cboxBottomRight,
59
+ .cboxIE #cboxMiddleLeft,
60
+ .cboxIE #cboxMiddleRight {
61
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr=#00FFFFFF,endColorstr=#00FFFFFF);
62
+ }
63
+
64
+ /*
65
+ The following provides PNG transparency support for IE6
66
+ Feel free to remove this and the /ie6/ directory if you have dropped IE6 support.
67
+ */
68
+ .cboxIE6 #cboxTopLeft{background:url(images/ie6/borderTopLeft.png);}
69
+ .cboxIE6 #cboxTopCenter{background:url(images/ie6/borderTopCenter.png);}
70
+ .cboxIE6 #cboxTopRight{background:url(images/ie6/borderTopRight.png);}
71
+ .cboxIE6 #cboxBottomLeft{background:url(images/ie6/borderBottomLeft.png);}
72
+ .cboxIE6 #cboxBottomCenter{background:url(images/ie6/borderBottomCenter.png);}
73
+ .cboxIE6 #cboxBottomRight{background:url(images/ie6/borderBottomRight.png);}
74
+ .cboxIE6 #cboxMiddleLeft{background:url(images/ie6/borderMiddleLeft.png);}
75
+ .cboxIE6 #cboxMiddleRight{background:url(images/ie6/borderMiddleRight.png);}
76
+
77
+ .cboxIE6 #cboxTopLeft,
78
+ .cboxIE6 #cboxTopCenter,
79
+ .cboxIE6 #cboxTopRight,
80
+ .cboxIE6 #cboxBottomLeft,
81
+ .cboxIE6 #cboxBottomCenter,
82
+ .cboxIE6 #cboxBottomRight,
83
+ .cboxIE6 #cboxMiddleLeft,
84
+ .cboxIE6 #cboxMiddleRight {
85
+ _behavior: expression(this.src = this.src ? this.src : this.currentStyle.backgroundImage.split('"')[1], this.style.background = "none", this.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src=" + this.src + ", sizingMethod='scale')");
86
+ }
assets/colorbox/images/border.png ADDED
Binary file
assets/colorbox/images/controls.png ADDED
Binary file
assets/colorbox/images/ie6/borderBottomCenter.png ADDED
Binary file
assets/colorbox/images/ie6/borderBottomLeft.png ADDED
Binary file
assets/colorbox/images/ie6/borderBottomRight.png ADDED
Binary file
assets/colorbox/images/ie6/borderMiddleLeft.png ADDED
Binary file
assets/colorbox/images/ie6/borderMiddleRight.png ADDED
Binary file
assets/colorbox/images/ie6/borderTopCenter.png ADDED
Binary file
assets/colorbox/images/ie6/borderTopLeft.png ADDED
Binary file
assets/colorbox/images/ie6/borderTopRight.png ADDED
Binary file
assets/colorbox/images/loading.gif ADDED
Binary file
assets/colorbox/images/loading_background.png ADDED
Binary file
assets/colorbox/images/overlay.png ADDED
Binary file
assets/colorbox/jquery.colorbox-min.js ADDED
@@ -0,0 +1,6 @@
1
+ /*!
2
+ jQuery ColorBox v1.4.3 - 2013-02-18
3
+ (c) 2013 Jack Moore - jacklmoore.com/colorbox
4
+ license: http://www.opensource.org/licenses/mit-license.php
5
+ */
6
+ (function(e,t,i){function o(i,o,n){var r=t.createElement(i);return o&&(r.id=Y+o),n&&(r.style.cssText=n),e(r)}function n(e){var t=T.length,i=(A+e)%t;return 0>i?t+i:i}function r(e,t){return Math.round((/%/.test(e)?("x"===t?k.width():k.height())/100:1)*parseInt(e,10))}function h(e,t){return e.photo||e.photoRegex.test(t)}function l(e,t){return e.retinaUrl&&i.devicePixelRatio>1?t.replace(e.photoRegex,e.retinaSuffix):t}function s(e){"contains"in w[0]&&!w[0].contains(e.target)&&(e.stopPropagation(),w.focus())}function a(){var t,i=e.data(N,V);null==i?(K=e.extend({},J),console&&console.log&&console.log("Error: cboxElement missing settings object")):K=e.extend({},i);for(t in K)e.isFunction(K[t])&&"on"!==t.slice(0,2)&&(K[t]=K[t].call(N));K.rel=K.rel||N.rel||e(N).data("rel")||"nofollow",K.href=K.href||e(N).attr("href"),K.title=K.title||N.title,"string"==typeof K.href&&(K.href=e.trim(K.href))}function d(i,o){e(t).trigger(i),at.trigger(i),e.isFunction(o)&&o.call(N)}function c(){var e,t,i,o,n,r=Y+"Slideshow_",h="click."+Y;K.slideshow&&T[1]?(t=function(){clearTimeout(e)},i=function(){(K.loop||T[A+1])&&(e=setTimeout(G.next,K.slideshowSpeed))},o=function(){M.html(K.slideshowStop).unbind(h).one(h,n),at.bind(it,i).bind(tt,t).bind(ot,n),w.removeClass(r+"off").addClass(r+"on")},n=function(){t(),at.unbind(it,i).unbind(tt,t).unbind(ot,n),M.html(K.slideshowStart).unbind(h).one(h,function(){G.next(),o()}),w.removeClass(r+"on").addClass(r+"off")},K.slideshowAuto?o():n()):w.removeClass(r+"off "+r+"on")}function u(i){U||(N=i,a(),T=e(N),A=0,"nofollow"!==K.rel&&(T=e("."+Z).filter(function(){var t,i=e.data(this,V);return i&&(t=e(this).data("rel")||i.rel||this.rel),t===K.rel}),A=T.index(N),-1===A&&(T=T.add(N),A=T.length-1)),m.css({opacity:parseFloat(K.opacity),cursor:K.overlayClose?"pointer":"auto",visibility:"visible"}).show(),j||(j=q=!0,w.css({visibility:"hidden",display:"block"}),E=o(dt,"LoadedContent","width:0; height:0; overflow:hidden").appendTo(v),_=x.height()+C.height()+v.outerHeight(!0)-v.height(),z=y.width()+b.width()+v.outerWidth(!0)-v.width(),D=E.outerHeight(!0),B=E.outerWidth(!0),K.w=r(K.initialWidth,"x"),K.h=r(K.initialHeight,"y"),G.position(),lt&&k.bind("resize."+st+" scroll."+st,function(){m.css({width:k.width(),height:k.height(),top:k.scrollTop(),left:k.scrollLeft()})}).trigger("resize."+st),c(),d(et,K.onOpen),P.add(W).hide(),R.html(K.close).show(),w.focus(),t.addEventListener&&(t.addEventListener("focus",s,!0),at.one(nt,function(){t.removeEventListener("focus",s,!0)})),K.returnFocus&&at.one(nt,function(){e(N).focus()})),G.load(!0))}function f(){!w&&t.body&&(X=!1,k=e(i),w=o(dt).attr({id:V,"class":ht?Y+(lt?"IE6":"IE"):"",role:"dialog",tabindex:"-1"}).hide(),m=o(dt,"Overlay",lt?"position:absolute":"").hide(),L=o(dt,"LoadingOverlay").add(o(dt,"LoadingGraphic")),g=o(dt,"Wrapper"),v=o(dt,"Content").append(W=o(dt,"Title"),H=o(dt,"Current"),F=o("button","Previous"),S=o("button","Next"),M=o("button","Slideshow"),L,R=o("button","Close")),g.append(o(dt).append(o(dt,"TopLeft"),x=o(dt,"TopCenter"),o(dt,"TopRight")),o(dt,!1,"clear:left").append(y=o(dt,"MiddleLeft"),v,b=o(dt,"MiddleRight")),o(dt,!1,"clear:left").append(o(dt,"BottomLeft"),C=o(dt,"BottomCenter"),o(dt,"BottomRight"))).find("div div").css({"float":"left"}),I=o(dt,!1,"position:absolute; width:9999px; visibility:hidden; display:none"),P=S.add(F).add(H).add(M),e(t.body).append(m,w.append(g,I)))}function p(){function i(e){e.which>1||e.shiftKey||e.altKey||e.metaKey||(e.preventDefault(),u(this))}return w?(X||(X=!0,S.click(function(){G.next()}),F.click(function(){G.prev()}),R.click(function(){G.close()}),m.click(function(){K.overlayClose&&G.close()}),e(t).bind("keydown."+Y,function(e){var t=e.keyCode;j&&K.escKey&&27===t&&(e.preventDefault(),G.close()),j&&K.arrowKey&&T[1]&&!e.altKey&&(37===t?(e.preventDefault(),F.click()):39===t&&(e.preventDefault(),S.click()))}),e.isFunction(e.fn.on)?e(t).on("click."+Y,"."+Z,i):e("."+Z).live("click."+Y,i)),!0):!1}var m,w,g,v,x,y,b,C,T,k,E,I,L,W,H,M,S,F,R,P,K,_,z,D,B,N,A,O,j,q,U,$,G,Q,X,J={transition:"elastic",speed:300,width:!1,initialWidth:"600",innerWidth:!1,maxWidth:!1,height:!1,initialHeight:"450",innerHeight:!1,maxHeight:!1,scalePhotos:!0,scrolling:!0,inline:!1,html:!1,iframe:!1,fastIframe:!0,photo:!1,href:!1,title:!1,rel:!1,opacity:.9,preloading:!0,className:!1,retinaImage:!1,retinaUrl:!1,retinaSuffix:"@2x.$1",current:"image {current} of {total}",previous:"previous",next:"next",close:"close",xhrError:"This content failed to load.",imgError:"This image failed to load.",open:!1,returnFocus:!0,reposition:!0,loop:!0,slideshow:!1,slideshowAuto:!0,slideshowSpeed:2500,slideshowStart:"start slideshow",slideshowStop:"stop slideshow",photoRegex:/\.(gif|png|jp(e|g|eg)|bmp|ico)((#|\?).*)?#x2F;i,onOpen:!1,onLoad:!1,onComplete:!1,onCleanup:!1,onClosed:!1,overlayClose:!0,escKey:!0,arrowKey:!0,top:!1,bottom:!1,left:!1,right:!1,fixed:!1,data:void 0},V="colorbox",Y="cbox",Z=Y+"Element",et=Y+"_open",tt=Y+"_load",it=Y+"_complete",ot=Y+"_cleanup",nt=Y+"_closed",rt=Y+"_purge",ht=!e.support.leadingWhitespace,lt=ht&&!i.XMLHttpRequest,st=Y+"_IE6",at=e({}),dt="div";e.colorbox||(e(f),G=e.fn[V]=e[V]=function(t,i){var o=this;if(t=t||{},f(),p()){if(e.isFunction(o))o=e("<a/>"),t.open=!0;else if(!o[0])return o;i&&(t.onComplete=i),o.each(function(){e.data(this,V,e.extend({},e.data(this,V)||J,t))}).addClass(Z),(e.isFunction(t.open)&&t.open.call(o)||t.open)&&u(o[0])}return o},G.position=function(e,t){function i(e){x[0].style.width=C[0].style.width=v[0].style.width=parseInt(e.style.width,10)-z+"px",v[0].style.height=y[0].style.height=b[0].style.height=parseInt(e.style.height,10)-_+"px"}var o,n,h,l=0,s=0,a=w.offset();k.unbind("resize."+Y),w.css({top:-9e4,left:-9e4}),n=k.scrollTop(),h=k.scrollLeft(),K.fixed&&!lt?(a.top-=n,a.left-=h,w.css({position:"fixed"})):(l=n,s=h,w.css({position:"absolute"})),s+=K.right!==!1?Math.max(k.width()-K.w-B-z-r(K.right,"x"),0):K.left!==!1?r(K.left,"x"):Math.round(Math.max(k.width()-K.w-B-z,0)/2),l+=K.bottom!==!1?Math.max(k.height()-K.h-D-_-r(K.bottom,"y"),0):K.top!==!1?r(K.top,"y"):Math.round(Math.max(k.height()-K.h-D-_,0)/2),w.css({top:a.top,left:a.left,visibility:"visible"}),e=w.width()===K.w+B&&w.height()===K.h+D?0:e||0,g[0].style.width=g[0].style.height="9999px",o={width:K.w+B+z,height:K.h+D+_,top:l,left:s},0===e&&w.css(o),w.dequeue().animate(o,{duration:e,complete:function(){i(this),q=!1,g[0].style.width=K.w+B+z+"px",g[0].style.height=K.h+D+_+"px",K.reposition&&setTimeout(function(){k.bind("resize."+Y,G.position)},1),t&&t()},step:function(){i(this)}})},G.resize=function(e){j&&(e=e||{},e.width&&(K.w=r(e.width,"x")-B-z),e.innerWidth&&(K.w=r(e.innerWidth,"x")),E.css({width:K.w}),e.height&&(K.h=r(e.height,"y")-D-_),e.innerHeight&&(K.h=r(e.innerHeight,"y")),e.innerHeight||e.height||(E.css({height:"auto"}),K.h=E.height()),E.css({height:K.h}),G.position("none"===K.transition?0:K.speed))},G.prep=function(t){function i(){return K.w=K.w||E.width(),K.w=K.mw&&K.mw<K.w?K.mw:K.w,K.w}function r(){return K.h=K.h||E.height(),K.h=K.mh&&K.mh<K.h?K.mh:K.h,K.h}if(j){var s,a="none"===K.transition?0:K.speed;E.empty().remove(),E=o(dt,"LoadedContent").append(t),E.hide().appendTo(I.show()).css({width:i(),overflow:K.scrolling?"auto":"hidden"}).css({height:r()}).prependTo(v),I.hide(),e(O).css({"float":"none"}),s=function(){function t(){ht&&w[0].style.removeAttribute("filter")}var i,r,s=T.length,c="frameBorder",u="allowTransparency";j&&(r=function(){clearTimeout($),L.hide(),d(it,K.onComplete)},ht&&O&&E.fadeIn(100),W.html(K.title).add(E).show(),s>1?("string"==typeof K.current&&H.html(K.current.replace("{current}",A+1).replace("{total}",s)).show(),S[K.loop||s-1>A?"show":"hide"]().html(K.next),F[K.loop||A?"show":"hide"]().html(K.previous),K.slideshow&&M.show(),K.preloading&&e.each([n(-1),n(1)],function(){var t,i,o=T[this],n=e.data(o,V);n&&n.href?(t=n.href,e.isFunction(t)&&(t=t.call(o))):t=e(o).attr("href"),t&&h(n,t)&&(t=l(n,t),i=new Image,i.src=t)})):P.hide(),K.iframe?(i=o("iframe")[0],c in i&&(i[c]=0),u in i&&(i[u]="true"),K.scrolling||(i.scrolling="no"),e(i).attr({src:K.href,name:(new Date).getTime(),"class":Y+"Iframe",allowFullScreen:!0,webkitAllowFullScreen:!0,mozallowfullscreen:!0}).one("load",r).appendTo(E),at.one(rt,function(){i.src="//about:blank"}),K.fastIframe&&e(i).trigger("load")):r(),"fade"===K.transition?w.fadeTo(a,1,t):t())},"fade"===K.transition?w.fadeTo(a,0,function(){G.position(0,s)}):G.position(a,s)}},G.load=function(t){var n,s,c,u=G.prep;q=!0,O=!1,N=T[A],t||a(),Q&&w.add(m).removeClass(Q),K.className&&w.add(m).addClass(K.className),Q=K.className,d(rt),d(tt,K.onLoad),K.h=K.height?r(K.height,"y")-D-_:K.innerHeight&&r(K.innerHeight,"y"),K.w=K.width?r(K.width,"x")-B-z:K.innerWidth&&r(K.innerWidth,"x"),K.mw=K.w,K.mh=K.h,K.maxWidth&&(K.mw=r(K.maxWidth,"x")-B-z,K.mw=K.w&&K.w<K.mw?K.w:K.mw),K.maxHeight&&(K.mh=r(K.maxHeight,"y")-D-_,K.mh=K.h&&K.h<K.mh?K.h:K.mh),n=K.href,$=setTimeout(function(){L.show()},100),K.inline?(c=o(dt).hide().insertBefore(e(n)[0]),at.one(rt,function(){c.replaceWith(E.children())}),u(e(n))):K.iframe?u(" "):K.html?u(K.html):h(K,n)?(n=l(K,n),e(O=new Image).addClass(Y+"Photo").bind("error",function(){K.title=!1,u(o(dt,"Error").html(K.imgError))}).one("load",function(){var e;K.retinaImage&&i.devicePixelRatio>1&&(O.height=O.height/i.devicePixelRatio,O.width=O.width/i.devicePixelRatio),K.scalePhotos&&(s=function(){O.height-=O.height*e,O.width-=O.width*e},K.mw&&O.width>K.mw&&(e=(O.width-K.mw)/O.width,s()),K.mh&&O.height>K.mh&&(e=(O.height-K.mh)/O.height,s())),K.h&&(O.style.marginTop=Math.max(K.mh-O.height,0)/2+"px"),T[1]&&(K.loop||T[A+1])&&(O.style.cursor="pointer",O.onclick=function(){G.next()}),ht&&(O.style.msInterpolationMode="bicubic"),setTimeout(function(){u(O)},1)}),setTimeout(function(){O.src=n},1)):n&&I.load(n,K.data,function(t,i){u("error"===i?o(dt,"Error").html(K.xhrError):e(this).contents())})},G.next=function(){!q&&T[1]&&(K.loop||T[A+1])&&(A=n(1),G.load())},G.prev=function(){!q&&T[1]&&(K.loop||A)&&(A=n(-1),G.load())},G.close=function(){j&&!U&&(U=!0,j=!1,d(ot,K.onCleanup),k.unbind("."+Y+" ."+st),m.fadeTo(200,0),w.stop().fadeTo(300,0,function(){w.add(m).css({opacity:1,cursor:"auto"}).hide(),d(rt),E.empty().remove(),setTimeout(function(){U=!1,d(nt,K.onClosed)},1)}))},G.remove=function(){e([]).add(w).add(m).remove(),w=null,e("."+Z).removeData(V).removeClass(Z),e(t).unbind("click."+Y)},G.element=function(){return e(N)},G.settings=J)})(jQuery,document,window);
assets/easing/jQuery.easing.min.js ADDED
@@ -0,0 +1,44 @@
1
+ /*
2
+ * jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/
3
+ *
4
+ * Uses the built in easing capabilities added In jQuery 1.1
5
+ * to offer multiple easing options
6
+ *
7
+ * TERMS OF USE - EASING EQUATIONS
8
+ *
9
+ * Open source under the BSD License.
10
+ *
11
+ * Copyright © 2001 Robert Penner
12
+ * All rights reserved.
13
+ *
14
+ * TERMS OF USE - jQuery Easing
15
+ *
16
+ * Open source under the BSD License.
17
+ *
18
+ * Copyright © 2008 George McGinley Smith
19
+ * All rights reserved.
20
+ *
21
+ * Redistribution and use in source and binary forms, with or without modification,
22
+ * are permitted provided that the following conditions are met:
23
+ *
24
+ * Redistributions of source code must retain the above copyright notice, this list of
25
+ * conditions and the following disclaimer.
26
+ * Redistributions in binary form must reproduce the above copyright notice, this list
27
+ * of conditions and the following disclaimer in the documentation and/or other materials
28
+ * provided with the distribution.
29
+ *
30
+ * Neither the name of the author nor the names of contributors may be used to endorse
31
+ * or promote products derived from this software without specific prior written permission.
32
+ *
33
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
34
+ * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
35
+ * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
36
+ * COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
37
+ * EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
38
+ * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
39
+ * AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
40
+ * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
41
+ * OF THE POSSIBILITY OF SUCH DAMAGE.
42
+ *
43
+ */
44
+ jQuery.easing.jswing=jQuery.easing.swing;jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(e,f,a,h,g){return jQuery.easing[jQuery.easing.def](e,f,a,h,g)},easeInQuad:function(e,f,a,h,g){return h*(f/=g)*f+a},easeOutQuad:function(e,f,a,h,g){return -h*(f/=g)*(f-2)+a},easeInOutQuad:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f+a}return -h/2*((--f)*(f-2)-1)+a},easeInCubic:function(e,f,a,h,g){return h*(f/=g)*f*f+a},easeOutCubic:function(e,f,a,h,g){return h*((f=f/g-1)*f*f+1)+a},easeInOutCubic:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f+a}return h/2*((f-=2)*f*f+2)+a},easeInQuart:function(e,f,a,h,g){return h*(f/=g)*f*f*f+a},easeOutQuart:function(e,f,a,h,g){return -h*((f=f/g-1)*f*f*f-1)+a},easeInOutQuart:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f*f+a}return -h/2*((f-=2)*f*f*f-2)+a},easeInQuint:function(e,f,a,h,g){return h*(f/=g)*f*f*f*f+a},easeOutQuint:function(e,f,a,h,g){return h*((f=f/g-1)*f*f*f*f+1)+a},easeInOutQuint:function(e,f,a,h,g){if((f/=g/2)<1){return h/2*f*f*f*f*f+a}return h/2*((f-=2)*f*f*f*f+2)+a},easeInSine:function(e,f,a,h,g){return -h*Math.cos(f/g*(Math.PI/2))+h+a},easeOutSine:function(e,f,a,h,g){return h*Math.sin(f/g*(Math.PI/2))+a},easeInOutSine:function(e,f,a,h,g){return -h/2*(Math.cos(Math.PI*f/g)-1)+a},easeInExpo:function(e,f,a,h,g){return(f==0)?a:h*Math.pow(2,10*(f/g-1))+a},easeOutExpo:function(e,f,a,h,g){return(f==g)?a+h:h*(-Math.pow(2,-10*f/g)+1)+a},easeInOutExpo:function(e,f,a,h,g){if(f==0){return a}if(f==g){return a+h}if((f/=g/2)<1){return h/2*Math.pow(2,10*(f-1))+a}return h/2*(-Math.pow(2,-10*--f)+2)+a},easeInCirc:function(e,f,a,h,g){return -h*(Math.sqrt(1-(f/=g)*f)-1)+a},easeOutCirc:function(e,f,a,h,g){return h*Math.sqrt(1-(f=f/g-1)*f)+a},easeInOutCirc:function(e,f,a,h,g){if((f/=g/2)<1){return -h/2*(Math.sqrt(1-f*f)-1)+a}return h/2*(Math.sqrt(1-(f-=2)*f)+1)+a},easeInElastic:function(f,h,e,l,k){var i=1.70158;var j=0;var g=l;if(h==0){return e}if((h/=k)==1){return e+l}if(!j){j=k*0.3}if(g<Math.abs(l)){g=l;var i=j/4}else{var i=j/(2*Math.PI)*Math.asin(l/g)}return -(g*Math.pow(2,10*(h-=1))*Math.sin((h*k-i)*(2*Math.PI)/j))+e},easeOutElastic:function(f,h,e,l,k){var i=1.70158;var j=0;var g=l;if(h==0){return e}if((h/=k)==1){return e+l}if(!j){j=k*0.3}if(g<Math.abs(l)){g=l;var i=j/4}else{var i=j/(2*Math.PI)*Math.asin(l/g)}return g*Math.pow(2,-10*h)*Math.sin((h*k-i)*(2*Math.PI)/j)+l+e},easeInOutElastic:function(f,h,e,l,k){var i=1.70158;var j=0;var g=l;if(h==0){return e}if((h/=k/2)==2){return e+l}if(!j){j=k*(0.3*1.5)}if(g<Math.abs(l)){g=l;var i=j/4}else{var i=j/(2*Math.PI)*Math.asin(l/g)}if(h<1){return -0.5*(g*Math.pow(2,10*(h-=1))*Math.sin((h*k-i)*(2*Math.PI)/j))+e}return g*Math.pow(2,-10*(h-=1))*Math.sin((h*k-i)*(2*Math.PI)/j)*0.5+l+e},easeInBack:function(e,f,a,i,h,g){if(g==undefined){g=1.70158}return i*(f/=h)*f*((g+1)*f-g)+a},easeOutBack:function(e,f,a,i,h,g){if(g==undefined){g=1.70158}return i*((f=f/h-1)*f*((g+1)*f+g)+1)+a},easeInOutBack:function(e,f,a,i,h,g){if(g==undefined){g=1.70158}if((f/=h/2)<1){return i/2*(f*f*(((g*=(1.525))+1)*f-g))+a}return i/2*((f-=2)*f*(((g*=(1.525))+1)*f+g)+2)+a},easeInBounce:function(e,f,a,h,g){return h-jQuery.easing.easeOutBounce(e,g-f,0,h,g)+a},easeOutBounce:function(e,f,a,h,g){if((f/=g)<(1/2.75)){return h*(7.5625*f*f)+a}else{if(f<(2/2.75)){return h*(7.5625*(f-=(1.5/2.75))*f+0.75)+a}else{if(f<(2.5/2.75)){return h*(7.5625*(f-=(2.25/2.75))*f+0.9375)+a}else{return h*(7.5625*(f-=(2.625/2.75))*f+0.984375)+a}}}},easeInOutBounce:function(e,f,a,h,g){if(f<g/2){return jQuery.easing.easeInBounce(e,f*2,0,h,g)*0.5+a}return jQuery.easing.easeOutBounce(e,f*2-g,0,h,g)*0.5+h*0.5+a}});
assets/metaslider-admin.css DELETED
@@ -1,218 +0,0 @@
1
- .msTipsy .tipsy-inner { color: white; background-color: #555; }
2
- .msTipsy .tipsy-arrow-n { border-bottom-color: #555; }
3
- .msTipsy .tipsy-arrow-s { border-top-color: #555; }
4
- .msTipsy .tipsy-arrow-e { border-left-color: #555; }
5
- .msTipsy .tipsy-arrow-w { border-right-color: #555; }
6
-
7
- .metaslider .highlight {
8
- background: #f1f1f1;
9
- background-image: -webkit-gradient(linear, left bottom, left top, from(#ececec), to(#f9f9f9));
10
- background-image: -webkit-linear-gradient(bottom, #ececec, #f9f9f9);
11
- background-image: -moz-linear-gradient(bottom, #ececec, #f9f9f9);
12
- background-image: -o-linear-gradient(bottom, #ececec, #f9f9f9);
13
- background-image: linear-gradient(to top, #ececec, #f9f9f9);
14
- }
15
- .metaslider .ui-sortable-helper {
16
- box-shadow: 3px 3px 5px #cccccc;
17
- }
18
- .metaslider tr.slide .new_window {
19
- position: relative;
20
- float: right;
21
- font-size: 10px;
22
- padding: 0px 3px;
23
- color: #a9a9a9;
24
- }
25
- .metaslider tr.slide .new_window label {
26
- position: absolute;
27
- width: 78px;
28
- right: 0;
29
- top: -30px;
30
- }
31
- .metaslider tr.slide .new_window label input {
32
- margin: 1px 0 0 4px;
33
- margin-bottom: 0;
34
- }
35
- .metaslider .shortcode {
36
- width: 100%;
37
- margin-top: 20px;
38
-
39
- }
40
- .metaslider .shortcode input {
41
- width: 100%;
42
- font-size: 0.9em;
43
- background: transparent;
44
- border: 0;
45
- }
46
- .metaslider .shortcode td {
47
- border-bottom: 0;
48
- border-top: 0;
49
- font-size: 0.9em;
50
- }
51
- .metaslider .nav-tab,
52
- .metaslider h2.nav-tab-wrapper {
53
- font-size: 13px;
54
- }
55
- .metaslider .nav-tab-active input {
56
- padding: 0;
57
- margin: 0;
58
- border: 0;
59
- width: 100px;
60
- font-size: 13px;
61
- }
62
- .metaslider .left {
63
- width: 68%;
64
- margin-top: 20px;
65
- float: left;
66
- clear: none;
67
- }
68
- .metaslider .right {
69
- width: 30%;
70
- float: right;
71
- margin-top: 20px;
72
- clear: none;
73
- }
74
- .metaslider table.slides td {
75
- border-bottom: 0;
76
- border-top: 0;
77
- background: #f9f9f9;
78
- cursor: move;
79
- padding: 5px 10px 5px 10px;
80
- }
81
- .metaslider table.slides td.col-1 {
82
- padding: 10px 10px 0 10px;
83
- }
84
- .metaslider table.slides td.col-2 {
85
- padding: 10px 10px 0 0;
86
- }
87
- .metaslider table.slides tr:last-child td {
88
- padding-bottom: 10px;
89
- }
90
- .metaslider .unsaved {
91
- float: right;
92
- background: #ff3019; /* Old browsers */
93
- background: -moz-linear-gradient(top, #ff3019 0%, #cf0404 100%); /* FF3.6+ */
94
- background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ff3019), color-stop(100%,#cf0404)); /* Chrome,Safari4+ */
95
- background: -webkit-linear-gradient(top, #ff3019 0%,#cf0404 100%); /* Chrome10+,Safari5.1+ */
96
- background: -o-linear-gradient(top, #ff3019 0%,#cf0404 100%); /* Opera 11.10+ */
97
- background: -ms-linear-gradient(top, #ff3019 0%,#cf0404 100%); /* IE10+ */
98
- background: linear-gradient(to bottom, #ff3019 0%,#cf0404 100%); /* W3C */
99
- filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ff3019', endColorstr='#cf0404',GradientType=0 ); /* IE6-9 */
100
- color: white;
101
- padding: 1px 9px;
102
- border-radius: 3px;
103
- margin-top: 2px;
104
- font-weight: bold;
105
- font-size: 1em !important;
106
- text-rendering: optimizeLegibility;
107
- margin: 2px 10px;
108
- }
109
- .metaslider tr.slide {
110
- background-color: #f9f9f9;
111
- }
112
- .metaslider tr.slide textarea {
113
- width: 100%;
114
- height: 75px;
115
- margin-bottom: 5px;
116
- }
117
- .metaslider tr.slide input {
118
- margin-bottom: 10px;
119
- }
120
- .metaslider tr.slide input.alt,
121
- .metaslider tr.slide input.url {
122
- width: 100%;
123
- }
124
- .metaslider .delete-slide {
125
- position: relative;
126
- top: 0px;
127
- left: 0px;
128
- background: #EE2C2C;
129
- color: white;
130
- width: 16px;
131
- height: 16px;
132
- float: left;
133
- text-align: center;
134
- display: none;
135
- }
136
- .metaslider tr.slide td.col-1:hover .delete-slide {
137
- display: block;
138
- }
139
-
140
- .metaslider .slider-wrap {
141
- border-left: 1px solid #ccc;
142
- border-right: 1px solid #ccc;
143
- border-bottom: 1px solid #ccc;
144
- width: 100%;
145
- float: left;
146
- }
147
-
148
- .metaslider .slider-lib {
149
- float: left;
150
- width: 23%;
151
- margin: 1%;
152
- list-style-type: none;
153
- text-align: center;
154
- }
155
-
156
- .metaslider .tooltip {
157
- font-size: 0.9em;
158
- }
159
-
160
- .metaslider .settings td {
161
- font-size: 0.9em;
162
- vertical-align: middle;
163
- padding: 3px 0px 3px 6px;
164
- border-bottom: 0;
165
- }
166
-
167
- .metaslider .slider-lib label {
168
- color: white;
169
- border-radius: 10%;
170
- float: left;
171
- width: 100%;
172
- padding: 10px 0px;
173
- vertical-align: bottom;
174
- }
175
-
176
- .metaslider .slider-lib.nivo label {
177
- background: #b6e026; /* Old browsers */
178
- background: -moz-linear-gradient(top, #b6e026 0%, #abdc28 100%); /* FF3.6+ */
179
- background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#b6e026), color-stop(100%,#abdc28)); /* Chrome,Safari4+ */
180
- background: -webkit-linear-gradient(top, #b6e026 0%,#abdc28 100%); /* Chrome10+,Safari5.1+ */
181
- background: -o-linear-gradient(top, #b6e026 0%,#abdc28 100%); /* Opera 11.10+ */
182
- background: -ms-linear-gradient(top, #b6e026 0%,#abdc28 100%); /* IE10+ */
183
- background: linear-gradient(to bottom, #b6e026 0%,#abdc28 100%); /* W3C */
184
- filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#b6e026', endColorstr='#abdc28',GradientType=0 ); /* IE6-9 */
185
- }
186
- .metaslider .slider-lib.flex label {
187
- background: #00b7ea; /* Old browsers */
188
- background: -moz-linear-gradient(top, #00b7ea 0%, #009ec3 100%); /* FF3.6+ */
189
- background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#00b7ea), color-stop(100%,#009ec3)); /* Chrome,Safari4+ */
190
- background: -webkit-linear-gradient(top, #00b7ea 0%,#009ec3 100%); /* Chrome10+,Safari5.1+ */
191
- background: -o-linear-gradient(top, #00b7ea 0%,#009ec3 100%); /* Opera 11.10+ */
192
- background: -ms-linear-gradient(top, #00b7ea 0%,#009ec3 100%); /* IE10+ */
193
- background: linear-gradient(to bottom, #00b7ea 0%,#009ec3 100%); /* W3C */
194
- filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00b7ea', endColorstr='#009ec3',GradientType=0 ); /* IE6-9 */
195
- }
196
-
197
- .metaslider .slider-lib.coin label {
198
- background: #ffd65e; /* Old browsers */
199
- background: -moz-linear-gradient(top, #ffd65e 0%, #febf04 100%); /* FF3.6+ */
200
- background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ffd65e), color-stop(100%,#febf04)); /* Chrome,Safari4+ */
201
- background: -webkit-linear-gradient(top, #ffd65e 0%,#febf04 100%); /* Chrome10+,Safari5.1+ */
202
- background: -o-linear-gradient(top, #ffd65e 0%,#febf04 100%); /* Opera 11.10+ */
203
- background: -ms-linear-gradient(top, #ffd65e 0%,#febf04 100%); /* IE10+ */
204
- background: linear-gradient(to bottom, #ffd65e 0%,#febf04 100%); /* W3C */
205
- filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffd65e', endColorstr='#febf04',GradientType=0 ); /* IE6-9 */
206
- }
207
-
208
- .metaslider .slider-lib.responsive label {
209
- background: #959595; /* Old browsers */
210
- background: -moz-linear-gradient(top, #959595 0%, #0d0d0d 46%, #010101 50%, #0a0a0a 53%, #4e4e4e 76%, #383838 87%, #1b1b1b 100%); /* FF3.6+ */
211
- background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#959595), color-stop(46%,#0d0d0d), color-stop(50%,#010101), color-stop(53%,#0a0a0a), color-stop(76%,#4e4e4e), color-stop(87%,#383838), color-stop(100%,#1b1b1b)); /* Chrome,Safari4+ */
212
- background: -webkit-linear-gradient(top, #959595 0%,#0d0d0d 46%,#010101 50%,#0a0a0a 53%,#4e4e4e 76%,#383838 87%,#1b1b1b 100%); /* Chrome10+,Safari5.1+ */
213
- background: -o-linear-gradient(top, #959595 0%,#0d0d0d 46%,#010101 50%,#0a0a0a 53%,#4e4e4e 76%,#383838 87%,#1b1b1b 100%); /* Opera 11.10+ */
214
- background: -ms-linear-gradient(top, #959595 0%,#0d0d0d 46%,#010101 50%,#0a0a0a 53%,#4e4e4e 76%,#383838 87%,#1b1b1b 100%); /* IE10+ */
215
- background: linear-gradient(to bottom, #959595 0%,#0d0d0d 46%,#010101 50%,#0a0a0a 53%,#4e4e4e 76%,#383838 87%,#1b1b1b 100%); /* W3C */
216
- filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#959595', endColorstr='#1b1b1b',GradientType=0 ); /* IE6-9 */
217
- }
218
-
assets/metaslider-display.css DELETED
@@ -1,81 +0,0 @@
1
- .metaslider .flexslider,
2
- .metaslider .flexslider ul,
3
- .metaslider .flexslider .slides li,
4
- .metaslider .flexslider .slides ul,
5
- .metaslider .flexslider .slides ol,
6
- .metaslider .flexslider .flex-direction-nav,
7
- .metaslider .rslides li,
8
- .metaslider .rslides .rslides_tabs {
9
- border: 0;
10
- margin: 0;
11
- list-style-type: none;
12
- }
13
- .metaslider .flexslider .slides p {
14
- margin: 0;
15
- }
16
- .metaslider .flexslider .flex-control-nav {
17
- position: inherit;
18
- bottom: auto;
19
- }
20
- .metaslider .rslides_tabs {
21
- margin: 0;
22
- padding: 7px 0 !important;
23
- background: #333;
24
- box-shadow: 0 0 1px rgba(255,255,255,.3), inset 0 0 5px rgba(0,0,0,1.0);
25
- -moz-box-shadow: 0 0 1px rgba(255,255,255,.3), inset 0 0 5px rgba(0,0,0,1.0);
26
- -webkit-box-shadow: 0 0 1px rgba(255,255,255,.3), inset 0 0 5px rgba(0,0,0,1.0);
27
- font-size: 18px;
28
- list-style: none;
29
- margin: 0 auto 50px;
30
- padding: 10px 0;
31
- text-align: center;
32
- width: 100%;
33
- }
34
- .metaslider .rslides_tabs li {
35
- margin: 0;
36
- padding: 0;
37
- display: inline;
38
- float: none;
39
- margin-right: 1px;
40
- list-style-type: none;
41
- }
42
- .metaslider .rslides_tabs a {
43
- text-decoration: none;
44
- width: auto;
45
- line-height: 20px;
46
- padding: 9px 20px;
47
- height: auto;
48
- background: transparent;
49
- display: inline;
50
- }
51
- .metaslider .rslides_tabs a:hover {
52
- border: 0;
53
- color: white;
54
- }
55
-
56
- .metaslider .rslides_tabs li:first-child {
57
- margin-left: 0;
58
- }
59
- .metaslider .rslides_tabs .rslides_here a {
60
- background: rgba(255,255,255,.1);
61
- color: #fff;
62
- font-weight: bold;
63
- }
64
- .metaslider-responsive {
65
- position: relative;
66
- }
67
- .metaslider .rslides_nav {
68
- background-color: #000000;
69
- color: #FFFFFF;
70
- padding: 0px 10px;
71
- position:absolute;
72
- top:45%;
73
- z-index:9;
74
- cursor:pointer;
75
- }
76
- .metaslider .rslides_nav.prev {
77
- left:0px;
78
- }
79
- .metaslider .rslides_nav.next {
80
- right:0px;
81
- }
assets/metaslider.js DELETED
@@ -1,151 +0,0 @@
1
- /**
2
- * Ml SLider
3
- */
4
- (function ($) {
5
- $(function () {
6
-
7
- /**
8
- * Reindex the slides after they have been dragged/dropped
9
- */
10
- var updateSlideOrder = function() {
11
- $('.metaslider table.sortable tr').each(function() {
12
- $('input.menu_order', $(this)).val($(this).index());
13
- });
14
- }
15
-
16
- /**
17
- * Enable the correct options for this slider type
18
- */
19
- var enableOptions = function(slider) {
20
- $('.metaslider .option:not(.' + slider + ')').attr('disabled', 'disabled').css('color','#ccc').parents('tr').hide();
21
- $('.metaslider .option.' + slider).removeAttr('disabled').css('color','').parents('tr').show();
22
-
23
- if ($('.effect option:selected').attr('disabled') == 'disabled') {
24
- $('.effect option:enabled:first').attr('selected', 'selected');
25
- }
26
- }
27
-
28
- /**
29
- * Enable the correct options on page load
30
- */
31
- enableOptions($('.metaslider .select-slider:checked').attr('rel'));
32
-
33
- /**
34
- * Handle slide libary switching
35
- */
36
- $('.metaslider .select-slider').click(function() {
37
- enableOptions($(this).attr('rel'));
38
- });
39
-
40
- // Return a helper with preserved width of cells
41
- var helper = function(e, ui) {
42
- ui.children().each(function() {
43
- $(this).width($(this).width());
44
- });
45
- return ui;
46
- };
47
-
48
- $(".metaslider table.sortable tbody").sortable({
49
- helper: helper,
50
- stop: function() {
51
- updateSlideOrder()
52
- }
53
- });
54
-
55
-
56
- $(".confirm").click(function() {
57
- return confirm(metaslider.confirm);
58
- });
59
-
60
- /**
61
- * Helptext tooltips
62
- */
63
- $(".metaslider .tooltip").tipsy({className: 'msTipsy', live: true, delayIn: 200, html: true, fade: true, gravity: 'e'});
64
- $(".metaslider .tooltiptop").tipsy({live: true, delayIn: 500, html: true, fade: true, gravity: 'se'});
65
-
66
- /**
67
- * Image uploader
68
- */
69
- var file_frame;
70
-
71
- jQuery('.upload_image_button').live('click', function( event ){
72
- event.preventDefault();
73
-
74
- // If the media frame already exists, reopen it.
75
- if ( file_frame ) {
76
- file_frame.open();
77
- return;
78
- }
79
-
80
- // Create the media frame.
81
- file_frame = wp.media.frames.file_frame = wp.media({
82
- title: jQuery( this ).data( 'uploader_title' ),
83
- button: {
84
- text: jQuery( this ).data( 'uploader_button_text' ),
85
- },
86
- multiple: 'add'
87
- });
88
-
89
- // When an image is selected, run a callback.
90
- file_frame.on( 'select', function() {
91
- var selection = file_frame.state().get('selection');
92
-
93
- selection.map( function( attachment ) {
94
-
95
- attachment = attachment.toJSON();
96
-
97
- if (attachment.subtype == 'bmp') {
98
- alert('Warning: BML images not allowed');
99
- return;
100
- }
101
-
102
- var url = attachment.url;
103
-
104
- if (typeof(attachment.sizes.thumbnail) != 'undefined') {
105
- url = attachment.sizes.thumbnail.url;
106
- }
107
-
108
- var tableRow = "<tr class='slide'><td class='col-1'>" +
109
- "<div style='position: absolute'><a class='delete-slide remove-slide' href='#'>x</a></div>" +
110
- "<img src='" + url + "' width='150px'></td>" +
111
- "<td class='col-2'><textarea name='attachment[" + attachment.id + "][post_excerpt]' placeholder='" + metaslider.caption + "'>" + attachment.caption + "</textarea>" +
112
- "<input class='url' type='text' name='attachment[" + attachment.id + "][url]' placeholder='" + metaslider.url + "' value=''>" +
113
- "<div class='new_window'>" +
114
- "<label>" + metaslider.new_window + "<input type='checkbox' name='attachment[" + attachment.id + "][new_window]'></label>" +
115
- "</div>" +
116
- "<input type='hidden' class='menu_order' name='attachment[" + attachment.id + "][menu_order]'>" +
117
- "</td></tr>";
118
-
119
- // add slide to existing slides table
120
- jQuery(".metaslider .slides tbody").append(tableRow);
121
-
122
- // display the unsaved changes warning
123
- $('.metaslider .unsaved').show();
124
- });
125
-
126
- // the slides haven't been assigned to the slider yet, so just remove the row if the delete
127
- // button is clicked
128
- jQuery(".remove-slide").live('click', function(e){
129
- e.preventDefault();
130
- $(this).closest('tr').remove();
131
- });
132
-
133
- // reindex the slides
134
- updateSlideOrder();
135
-
136
- });
137
-
138
- file_frame.open();
139
- });
140
-
141
- // show the unsaved changes when the form is changed
142
- $('.metaslider form').live('change', function() {
143
- $('.metaslider .unsaved').fadeIn();
144
- });
145
-
146
- $(".metaslider .shortcode input").click(function(){
147
- // Select input field contents
148
- this.select();
149
- });
150
- });
151
- }(jQuery));
assets/metaslider/admin.css ADDED
@@ -0,0 +1,356 @@
1
+ .probutton,
2
+ .probutton:hover {
3
+ width: 36%;
4
+ margin: 20px 32%;
5
+ float: left;
6
+ font-size: 1.4em;
7
+ padding: 15px 0;
8
+ background-color: #759ae9;
9
+ background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #759ae9), color-stop(50%, #376fe0), color-stop(50%, #1a5ad9), color-stop(100%, #2463de));
10
+ background-image: -webkit-linear-gradient(top, #759ae9 0%, #376fe0 50%, #1a5ad9 50%, #2463de 100%);
11
+ background-image: -moz-linear-gradient(top, #759ae9 0%, #376fe0 50%, #1a5ad9 50%, #2463de 100%);
12
+ background-image: -ms-linear-gradient(top, #759ae9 0%, #376fe0 50%, #1a5ad9 50%, #2463de 100%);
13
+ background-image: -o-linear-gradient(top, #759ae9 0%, #376fe0 50%, #1a5ad9 50%, #2463de 100%);
14
+ background-image: linear-gradient(top, #759ae9 0%, #376fe0 50%, #1a5ad9 50%, #2463de 100%);
15
+ border-top: 1px solid #1f58cc;
16
+ border-right: 1px solid #1b4db3;
17
+ border-bottom: 1px solid #174299;
18
+ border-left: 1px solid #1b4db3;
19
+ border-radius: 4px;
20
+ -webkit-box-shadow: inset 0 0 2px 0 rgba(57, 140, 255, 0.8);
21
+ box-shadow: inset 0 0 2px 0 rgba(57, 140, 255, 0.8);
22
+ color: #fff;
23
+ font-family: 'PT Sans', helvetica, arial, sans-serif;
24
+ text-shadow: 0 -1px 1px #1a5ad9;
25
+ color: white;
26
+ text-align: center;
27
+ text-decoration: none;
28
+ border-radius: 5px;
29
+ line-height: 2em;
30
+ }
31
+ .super {
32
+ text-transform: uppercase;
33
+ font-size: 0.7em;
34
+ vertical-align: top;
35
+ line-height: 2em;
36
+ }
37
+ .logo {
38
+ text-transform: uppercase;
39
+ }
40
+ .attachment-filters {
41
+ display: none;
42
+ }
43
+ .media-frame-menu .separator {
44
+ display: none;
45
+ }
46
+ .msTipsy .tipsy-arrow-s {
47
+ border-top-color: #555;
48
+ }
49
+ .msTipsy .tipsy-arrow-w {
50
+ border-right-color: #555;
51
+ }
52
+ .msTipsy .tipsy-arrow-n {
53
+ border-bottom-color: #555;
54
+ }
55
+ .msTipsy .tipsy-inner {
56
+ color: white;
57
+ background-color: #555;
58
+ }
59
+ .msTipsy .tipsy-arrow-e {
60
+ border-left-color: #555;
61
+ }
62
+ #cboxLoadedContent {
63
+ overflow: hidden !important;
64
+ }
65
+ #cboxLoadedContent iframe {
66
+ border: 0 none;
67
+ display: block;
68
+ height: 100%;
69
+ overflow: hidden;
70
+ width: 100%;
71
+ }
72
+ .metaslider .left table tr.slide input.alt,
73
+ .metaslider .left table tr.slide input.url {
74
+ width: 100%;
75
+ margin: 0 0 8px 0;
76
+ }
77
+ .metaslider .tooltip {
78
+ font-size: 0.9em;
79
+ }
80
+ .metaslider .nav-tab-active input {
81
+ padding: 0;
82
+ margin: 0;
83
+ border: 0;
84
+ width: 100px;
85
+ font-size: 13px;
86
+ }
87
+ .metaslider .button {
88
+ font-family: sans-serif;
89
+ }
90
+ .metaslider .widefat th {
91
+ padding: 6px 7px 5px;
92
+ font-size: 15px;
93
+ line-height: 1.4em;
94
+ }
95
+ .metaslider .nav-tab-wrapper :first-child {
96
+ margin-left: 5px;
97
+ }
98
+ .metaslider .ui-sortable-helper {
99
+ box-shadow: 3px 3px 5px #cccccc;
100
+ }
101
+ .metaslider .left {
102
+ width: 68%;
103
+ margin-top: 20px;
104
+ float: left;
105
+ clear: none;
106
+ }
107
+ @media (max-width: 900px) {
108
+ .metaslider .left {
109
+ width: 100%;
110
+ float: none;
111
+ }
112
+ }
113
+ .metaslider .left table {
114
+ width: 100%;
115
+ }
116
+ .metaslider .left table thead input {
117
+ margin-left: 5px;
118
+ }
119
+ .metaslider .left table thead .add-slide {
120
+ padding-left: 0.4em;
121
+ padding-right: 0.6em;
122
+ }
123
+ .metaslider .left table thead .add-slide .wp-media-buttons-icon {
124
+ background: url('../../../../../wp-admin/images/media-button.png') no-repeat top left;
125
+ display: inline-block;
126
+ width: 16px;
127
+ height: 16px;
128
+ vertical-align: text-top;
129
+ margin: 0 2px;
130
+ }
131
+ .metaslider .left table tr.slide {
132
+ background: #f9f9f9;
133
+ height: 167px;
134
+ }
135
+ .metaslider .left table tr.slide label input {
136
+ margin: 1px 0 10px 3px;
137
+ }
138
+ .metaslider .left table tr.slide textarea {
139
+ width: 100%;
140
+ height: 75px;
141
+ margin: 0 0 5px 0;
142
+ }
143
+ .metaslider .left table tr.slide td.col-1 {
144
+ cursor: move;
145
+ }
146
+ .metaslider .left table tr.slide td.col-1 .thumb {
147
+ position: relative;
148
+ height: 150px;
149
+ width: 150px;
150
+ background-size: auto 150px;
151
+ background-position: center;
152
+ }
153
+ .metaslider .left table tr.slide td.col-1 .thumb .delete-slide {
154
+ position: absolute;
155
+ top: 0px;
156
+ left: 0px;
157
+ background: #EE2C2C;
158
+ color: white;
159
+ width: 16px;
160
+ height: 16px;
161
+ float: left;
162
+ text-align: center;
163
+ display: none;
164
+ }
165
+ .metaslider .left table tr.slide td.col-1 .thumb .slide-details {
166
+ bottom: 0;
167
+ left: 0;
168
+ position: absolute;
169
+ background: #333;
170
+ color: white;
171
+ padding: 0 5px;
172
+ text-transform: uppercase;
173
+ font-size: 9px;
174
+ opacity: 0.6;
175
+ }
176
+ .metaslider .left table tr.slide td.col-1:hover .delete-slide {
177
+ display: block;
178
+ }
179
+ .metaslider .left table tr.slide .new_window {
180
+ position: relative;
181
+ float: right;
182
+ font-size: 10px;
183
+ padding: 0px 3px;
184
+ color: #a9a9a9;
185
+ }
186
+ .metaslider .left table tr.slide .new_window label {
187
+ position: absolute;
188
+ width: 78px;
189
+ right: 0;
190
+ top: -28px;
191
+ }
192
+ .metaslider .left table td {
193
+ border-top: 0;
194
+ padding: 8px;
195
+ }
196
+ .metaslider .left table td.col-2 {
197
+ padding: 8px 8px 8px 0;
198
+ }
199
+ .metaslider .right {
200
+ width: 30%;
201
+ float: right;
202
+ margin-top: 20px;
203
+ clear: none;
204
+ }
205
+ @media (max-width: 900px) {
206
+ .metaslider .right {
207
+ width: 100%;
208
+ float: none;
209
+ }
210
+ }
211
+ .metaslider .right .highlight {
212
+ background: #f1f1f1;
213
+ border-top: 3px solid #f9f9f9;
214
+ border-bottom: 3px solid #f9f9f9;
215
+ }
216
+ .metaslider .right .settings .slider-lib-row {
217
+ padding: 6px 3px;
218
+ }
219
+ .metaslider .right .settings #save {
220
+ margin-right: 0;
221
+ }
222
+ .metaslider .right .settings input {
223
+ margin-right: 5px;
224
+ }
225
+ .metaslider .right .settings label {
226
+ margin-right: 10px;
227
+ }
228
+ .metaslider .right .settings .slider-lib {
229
+ float: left;
230
+ width: 23%;
231
+ margin: 1%;
232
+ list-style-type: none;
233
+ text-align: center;
234
+ }
235
+ @media (max-width: 1120px) {
236
+ .metaslider .right .settings .slider-lib {
237
+ width: 48%;
238
+ margin: 1%;
239
+ }
240
+ }
241
+ @media (max-width: 900px) {
242
+ .metaslider .right .settings .slider-lib {
243
+ width: 23%;
244
+ margin: 1%;
245
+ }
246
+ }
247
+ .metaslider .right .settings .slider-lib label {
248
+ color: white;
249
+ border-radius: 2px;
250
+ float: left;
251
+ width: 100%;
252
+ padding: 5px 0px;
253
+ vertical-align: bottom;
254
+ }
255
+ .metaslider .right .settings .slider-lib.nivo label {
256
+ background: #b6e026;
257
+ background: -moz-linear-gradient(top, #b6e026 0%, #abdc28 100%);
258
+ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #b6e026), color-stop(100%, #abdc28));
259
+ background: -webkit-linear-gradient(top, #b6e026 0%, #abdc28 100%);
260
+ background: -o-linear-gradient(top, #b6e026 0%, #abdc28 100%);
261
+ background: -ms-linear-gradient(top, #b6e026 0%, #abdc28 100%);
262
+ background: linear-gradient(to bottom, #b6e026 0%, #abdc28 100%);
263
+ }
264
+ .metaslider .right .settings .slider-lib.responsive label {
265
+ background: #959595;
266
+ background: -moz-linear-gradient(top, #959595 0%, #0d0d0d 46%, #010101 50%, #0a0a0a 53%, #4e4e4e 76%, #383838 87%, #1b1b1b 100%);
267
+ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #959595), color-stop(46%, #0d0d0d), color-stop(50%, #010101), color-stop(53%, #0a0a0a), color-stop(76%, #4e4e4e), color-stop(87%, #383838), color-stop(100%, #1b1b1b));
268
+ background: -webkit-linear-gradient(top, #959595 0%, #0d0d0d 46%, #010101 50%, #0a0a0a 53%, #4e4e4e 76%, #383838 87%, #1b1b1b 100%);
269
+ background: -o-linear-gradient(top, #959595 0%, #0d0d0d 46%, #010101 50%, #0a0a0a 53%, #4e4e4e 76%, #383838 87%, #1b1b1b 100%);
270
+ background: -ms-linear-gradient(top, #959595 0%, #0d0d0d 46%, #010101 50%, #0a0a0a 53%, #4e4e4e 76%, #383838 87%, #1b1b1b 100%);
271
+ background: linear-gradient(to bottom, #959595 0%, #0d0d0d 46%, #010101 50%, #0a0a0a 53%, #4e4e4e 76%, #383838 87%, #1b1b1b 100%);
272
+ }
273
+ .metaslider .right .settings .slider-lib.coin label {
274
+ background: #ffd65e;
275
+ background: -moz-linear-gradient(top, #ffd65e 0%, #febf04 100%);
276
+ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #ffd65e), color-stop(100%, #febf04));
277
+ background: -webkit-linear-gradient(top, #ffd65e 0%, #febf04 100%);
278
+ background: -o-linear-gradient(top, #ffd65e 0%, #febf04 100%);
279
+ background: -ms-linear-gradient(top, #ffd65e 0%, #febf04 100%);
280
+ background: linear-gradient(to bottom, #ffd65e 0%, #febf04 100%);
281
+ }
282
+ .metaslider .right .settings .slider-lib.flex label {
283
+ background: #00b7ea;
284
+ background: -moz-linear-gradient(top, #00b7ea 0%, #009ec3 100%);
285
+ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #00b7ea), color-stop(100%, #009ec3));
286
+ background: -webkit-linear-gradient(top, #00b7ea 0%, #009ec3 100%);
287
+ background: -o-linear-gradient(top, #00b7ea 0%, #009ec3 100%);
288
+ background: -ms-linear-gradient(top, #00b7ea 0%, #009ec3 100%);
289
+ background: linear-gradient(to bottom, #00b7ea 0%, #009ec3 100%);
290
+ }
291
+ @media (max-width: 1120px) {
292
+ .metaslider .right .settings .configuration {
293
+ display: none;
294
+ }
295
+ }
296
+ @media (max-width: 900px) {
297
+ .metaslider .right .settings .configuration {
298
+ display: inline;
299
+ }
300
+ }
301
+ @media (max-width: 900px) {
302
+ .metaslider .right .settings .button {
303
+ width: auto;
304
+ float: right;
305
+ }
306
+ }
307
+ .metaslider .right .shortcode {
308
+ width: 100%;
309
+ margin-top: 20px;
310
+ }
311
+ .metaslider .right .shortcode td {
312
+ border-bottom: 0;
313
+ border-top: 0;
314
+ font-size: 0.9em;
315
+ }
316
+ .metaslider .right .shortcode input,
317
+ .metaslider .right .shortcode input:active {
318
+ font-family: monospace;
319
+ width: 100%;
320
+ font-size: 0.9em;
321
+ background: transparent;
322
+ border: 0;
323
+ box-shadow: none;
324
+ }
325
+ .metaslider .right table td {
326
+ border-top: 0;
327
+ height: 28px;
328
+ font-size: 0.9em;
329
+ vertical-align: middle;
330
+ padding: 0 6px;
331
+ border-bottom: 0;
332
+ }
333
+ .metaslider .right table td input[type='checkbox'] {
334
+ margin-left: 2px;
335
+ }
336
+ .metaslider .right table .slider-lib-row {
337
+ padding: 3px;
338
+ }
339
+ .metaslider .nav-tab,
340
+ .metaslider h2.nav-tab-wrapper {
341
+ font-size: 13px;
342
+ }
343
+ ul.info {
344
+ width: 100%;
345
+ margin-top: 20px;
346
+ border-radius: 5px;
347
+ }
348
+ ul.info li {
349
+ text-align: right;
350
+ display: inline;
351
+ width: 33%;
352
+ float: left;
353
+ }
354
+ .delete-slider {
355
+ margin: 0 5px 3px 0 !important;
356
+ }
assets/metaslider/admin.js ADDED
@@ -0,0 +1,137 @@
1
+ jQuery(document).ready(function($) {
2
+
3
+ // Enable the correct options for this slider type
4
+ var switchType = function(slider) {
5
+ jQuery('.metaslider .option:not(.' + slider + ')').attr('disabled', 'disabled').parents('tr').hide();
6
+ jQuery('.metaslider .option.' + slider).removeAttr('disabled').parents('tr').show();
7
+
8
+ // make sure that the selected option is available for this slider type
9
+ if (jQuery('.effect option:selected').attr('disabled') === 'disabled') {
10
+ jQuery('.effect option:enabled:first').attr('selected', 'selected');
11
+ }
12
+
13
+ // slides - set red background on incompatible slides
14
+ jQuery('.metaslider .slide:not(.' + slider + ')').css('background', '#FFD9D9');
15
+ jQuery('.metaslider .slide.' + slider).css('background', '');
16
+ };
17
+
18
+ // enable the correct options on page load
19
+ switchType(jQuery('.metaslider .select-slider:checked').attr('rel'));
20
+
21
+ // handle slide libary switching
22
+ jQuery('.metaslider .select-slider').click(function() {
23
+ switchType(jQuery(this).attr('rel'));
24
+ });
25
+
26
+ // return a helper with preserved width of cells
27
+ var helper = function(e, ui) {
28
+ ui.children().each(function() {
29
+ jQuery(this).width(jQuery(this).width());
30
+ });
31
+ return ui;
32
+ };
33
+
34
+ // drag and drop slides, update the slide order on drop
35
+ jQuery(".metaslider .left table tbody").sortable({
36
+ helper: helper,
37
+ handle: 'td.col-1',
38
+ stop: function() {
39
+ jQuery(".metaslider .left table").trigger('updateSlideOrder');
40
+ }
41
+ });
42
+
43
+ // bind an event to the slides table to update the menu order of each slide
44
+ jQuery('.metaslider .left table').bind('updateSlideOrder', function(event) {
45
+ jQuery('tr', this).each(function() {
46
+ jQuery('input.menu_order', jQuery(this)).val(jQuery(this).index());
47
+ });
48
+ });
49
+
50
+ // show the confirm dialogue
51
+ jQuery(".confirm").live('click', function() {
52
+ return confirm(metaslider.confirm);
53
+ });
54
+
55
+ // show the confirm dialogue
56
+ jQuery(".toggle").live('click', function(e) {
57
+ e.preventDefault();
58
+ jQuery(this).next('.message').toggle();
59
+ });
60
+
61
+ // helptext tooltips
62
+ jQuery(".metaslider .tooltip").tipsy({className: 'msTipsy', live: true, delayIn: 1000, html: true, fade: true, gravity: 'e'});
63
+ jQuery(".metaslider .tooltiptop").tipsy({live: true, delayIn: 1000, html: true, fade: true, gravity: 'se'});
64
+
65
+ // Select input field contents when clicked
66
+ jQuery(".metaslider .shortcode input").click(function() {
67
+ this.select();
68
+ });
69
+
70
+ // show the spinner while slides are being added
71
+ function checkPendingRequest() {
72
+ if (jQuery.active > 0) {
73
+ jQuery(".metaslider .spinner").show();
74
+ jQuery(".metaslider input[type=submit]").attr('disabled', 'disabled');
75
+ } else {
76
+ jQuery(".metaslider .spinner").hide();
77
+ jQuery(".metaslider input[type=submit]").removeAttr('disabled');
78
+ }
79
+
80
+ setTimeout(checkPendingRequest, 1000);
81
+ }
82
+
83
+ checkPendingRequest();
84
+
85
+ // return lightbox width
86
+ var getLightboxWidth = function() {
87
+ var width = parseInt(jQuery('input.width').val(), 10) + 'px';
88
+
89
+ if (jQuery('#carouselMode').is(':checked')) {
90
+ width = '75%';
91
+ }
92
+
93
+ return width;
94
+ };
95
+
96
+ // return lightbox height
97
+ var getLightboxHeight = function() {
98
+ return parseInt(jQuery('input.height').val(), 10) + 80 + 'px';
99
+ };
100
+
101
+ // AJAX save & preview
102
+ jQuery(".metaslider form").find(":submit").click(function(e) {
103
+ e.preventDefault();
104
+
105
+ // update slide order
106
+ jQuery(".metaslider .left table").trigger('updateSlideOrder');
107
+
108
+ // get some values from elements on the page:
109
+ var the_form = jQuery(this).parents("form");
110
+ var data = the_form.serialize();
111
+ var url = the_form.attr( 'action' );
112
+ var button = e.target;
113
+
114
+ jQuery(".metaslider .spinner").show();
115
+ jQuery(".metaslider input[type=submit]").attr('disabled', 'disabled');
116
+
117
+ jQuery.ajax({
118
+ type: "POST",
119
+ data : data,
120
+ cache: false,
121
+ url: url,
122
+ success: function(data) {
123
+ if (button.id === 'preview') {
124
+ jQuery.colorbox({
125
+ iframe: true,
126
+ href: metaslider.iframeurl + "?slider_id=" + jQuery(button).data("slider_id"),
127
+ transition: "elastic",
128
+ innerHeight: getLightboxHeight(),
129
+ innerWidth: getLightboxWidth(),
130
+ scrolling: false,
131
+ fastIframe: false
132
+ });
133
+ }
134
+ }
135
+ });
136
+ });
137
+ });
assets/metaslider/admin.less ADDED
@@ -0,0 +1,413 @@
1
+ .probutton, .probutton:hover {
2
+ width: 36%;
3
+ margin: 20px 32%;
4
+ float: left;
5
+ font-size: 1.4em;
6
+ padding: 15px 0;
7
+ background-color: #759ae9;
8
+ background-image: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #759ae9), color-stop(50%, #376fe0), color-stop(50%, #1a5ad9), color-stop(100%, #2463de));
9
+ background-image: -webkit-linear-gradient(top, #759ae9 0%, #376fe0 50%, #1a5ad9 50%, #2463de 100%);
10
+ background-image: -moz-linear-gradient(top, #759ae9 0%, #376fe0 50%, #1a5ad9 50%, #2463de 100%);
11
+ background-image: -ms-linear-gradient(top, #759ae9 0%, #376fe0 50%, #1a5ad9 50%, #2463de 100%);
12
+ background-image: -o-linear-gradient(top, #759ae9 0%, #376fe0 50%, #1a5ad9 50%, #2463de 100%);
13
+ background-image: linear-gradient(top, #759ae9 0%, #376fe0 50%, #1a5ad9 50%, #2463de 100%);
14
+ border-top: 1px solid #1f58cc;
15
+ border-right: 1px solid #1b4db3;
16
+ border-bottom: 1px solid #174299;
17
+ border-left: 1px solid #1b4db3;
18
+ border-radius: 4px;
19
+ -webkit-box-shadow: inset 0 0 2px 0 rgba(57, 140, 255, 0.8);
20
+ box-shadow: inset 0 0 2px 0 rgba(57, 140, 255, 0.8);
21
+ color: #fff;
22
+ font-family: 'PT Sans', helvetica, arial, sans-serif;
23
+ text-shadow: 0 -1px 1px #1a5ad9;
24
+ color: white;
25
+ text-align: center;
26
+ text-decoration: none;
27
+ border-radius: 5px;
28
+ line-height: 2em;
29
+ }
30
+ .super {
31
+ text-transform: uppercase;
32
+ font-size: 0.7em;
33
+ vertical-align: top;
34
+ line-height: 2em;
35
+ }
36
+ .logo {
37
+ text-transform: uppercase;
38
+ }
39
+ .attachment-filters {
40
+ display: none;
41
+ }
42
+ .media-frame-menu {
43
+ .separator {
44
+ display: none;
45
+ }
46
+ }
47
+ .msTipsy {
48
+ .tipsy-arrow-s {
49
+ border-top-color: #555;
50
+ }
51
+ .tipsy-arrow-w {
52
+ border-right-color: #555;
53
+ }
54
+ .tipsy-arrow-n {
55
+ border-bottom-color: #555;
56
+ }
57
+ .tipsy-inner {
58
+ color: white;
59
+ background-color: #555;
60
+ }
61
+ .tipsy-arrow-e {
62
+ border-left-color: #555;
63
+ }
64
+ }
65
+ #cboxLoadedContent {
66
+ overflow: hidden !important;
67
+ iframe {
68
+ border: 0 none;
69
+ display: block;
70
+ height: 100%;
71
+ overflow: hidden;
72
+ width: 100%;
73
+ }
74
+ }
75
+ .metaslider .left table tr.slide input.alt,
76
+ .metaslider .left table tr.slide input.url {
77
+ width: 100%;
78
+ margin: 0 0 8px 0;
79
+ }
80
+ .metaslider {
81
+ .tooltip {
82
+ font-size: 0.9em;
83
+ }
84
+ .nav-tab-active {
85
+ input {
86
+ padding: 0;
87
+ margin: 0;
88
+ border: 0;
89
+ width: 100px;
90
+ font-size: 13px;
91
+ }
92
+ }
93
+ .button {
94
+ font-family: sans-serif;
95
+ }
96
+ .widefat {
97
+ th {
98
+ padding: 6px 7px 5px;
99
+ font-size: 15px;
100
+ line-height: 1.4em;
101
+ }
102
+ }
103
+ .nav-tab-wrapper {
104
+ :first-child {
105
+ margin-left: 5px;
106
+ }
107
+ }
108
+
109
+ .ui-sortable-helper {
110
+ box-shadow: 3px 3px 5px #cccccc;
111
+ }
112
+
113
+
114
+ .left {
115
+ width: 68%;
116
+ margin-top: 20px;
117
+ float: left;
118
+ clear: none;
119
+
120
+
121
+ @media (max-width: 900px) {
122
+ width: 100%;
123
+ float: none;
124
+ }
125
+
126
+ table {
127
+ width: 100%;
128
+ thead {
129
+ input {
130
+ margin-left: 5px;
131
+ }
132
+
133
+ .add-slide {
134
+ padding-left: 0.4em;
135
+ padding-right: 0.6em;
136
+ .wp-media-buttons-icon {
137
+ background: url('../../../../../wp-admin/images/media-button.png') no-repeat top left;
138
+ display: inline-block;
139
+ width: 16px;
140
+ height: 16px;
141
+ vertical-align: text-top;
142
+ margin: 0 2px;
143
+ }
144
+ }
145
+ }
146
+
147
+ tr.slide {
148
+ background: #f9f9f9;
149
+ height: 167px;
150
+
151
+ label {
152
+ input {
153
+ margin: 1px 0 10px 3px;
154
+ }
155
+ }
156
+
157
+ textarea {
158
+ width: 100%;
159
+ height: 75px;
160
+ margin: 0 0 5px 0;
161
+ }
162
+
163
+ td.col-1 {
164
+ cursor: move;
165
+ .thumb {
166
+ position: relative;
167
+ height: 150px;
168
+ width: 150px;
169
+ background-size: auto 150px;
170
+ background-position: center;
171
+
172
+ .delete-slide {
173
+ position: absolute;
174
+ top: 0px;
175
+ left: 0px;
176
+ background: #EE2C2C;
177
+ color: white;
178
+ width: 16px;
179
+ height: 16px;
180
+ float: left;
181
+ text-align: center;
182
+ display: none;
183
+ }
184
+
185
+ .slide-details {
186
+ bottom: 0;
187
+ left: 0;
188
+ position: absolute;
189
+ background: #333;
190
+ color: white;
191
+ padding: 0 5px;
192
+ text-transform: uppercase;
193
+ font-size: 9px;
194
+ opacity: 0.6;
195
+ }
196
+ }
197
+
198
+ }
199
+
200
+ td.col-1:hover {
201
+ .delete-slide {
202
+ display: block;
203
+ }
204
+ }
205
+
206
+ .new_window {
207
+ position: relative;
208
+ float: right;
209
+ font-size: 10px;
210
+ padding: 0px 3px;
211
+ color: #a9a9a9;
212
+ label {
213
+ position: absolute;
214
+ width: 78px;
215
+ right: 0;
216
+ top: -28px;
217
+ }
218
+ }
219
+ }
220
+
221
+ td {
222
+ border-top: 0;
223
+ padding: 8px;
224
+ }
225
+ td.col-2 {
226
+ padding: 8px 8px 8px 0;
227
+ }
228
+ }
229
+ }
230
+
231
+ .right {
232
+ width: 30%;
233
+ float: right;
234
+ margin-top: 20px;
235
+ clear: none;
236
+
237
+
238
+ @media (max-width: 900px) {
239
+ width: 100%;
240
+ float: none;
241
+ }
242
+
243
+
244
+ .highlight {
245
+ background: #f1f1f1;
246
+ border-top: 3px solid #f9f9f9;
247
+ border-bottom: 3px solid #f9f9f9;
248
+ }
249
+
250
+ .settings {
251
+ .slider-lib-row {
252
+ padding: 6px 3px;
253
+ }
254
+ #save {
255
+ margin-right: 0;
256
+ }
257
+ input {
258
+ margin-right: 5px;
259
+ }
260
+ label {
261
+ margin-right: 10px;
262
+ }
263
+ .slider-lib {
264
+ float: left;
265
+ width: 23%;
266
+ margin: 1%;
267
+ list-style-type: none;
268
+ text-align: center;
269
+
270
+ @media (max-width: 1120px) {
271
+ width: 48%;
272
+ margin: 1%;
273
+ }
274
+
275
+ @media (max-width: 900px) {
276
+ width: 23%;
277
+ margin: 1%;
278
+ }
279
+
280
+ label {
281
+ color: white;
282
+ border-radius: 2px;
283
+ float: left;
284
+ width: 100%;
285
+ padding: 5px 0px;
286
+ vertical-align: bottom;
287
+ }
288
+ }
289
+
290
+ .slider-lib.nivo {
291
+ label {
292
+ background: #b6e026;
293
+ background: -moz-linear-gradient(top, #b6e026 0%, #abdc28 100%);
294
+ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#b6e026), color-stop(100%,#abdc28));
295
+ background: -webkit-linear-gradient(top, #b6e026 0%,#abdc28 100%);
296
+ background: -o-linear-gradient(top, #b6e026 0%,#abdc28 100%);
297
+ background: -ms-linear-gradient(top, #b6e026 0%,#abdc28 100%);
298
+ background: linear-gradient(to bottom, #b6e026 0%,#abdc28 100%);
299
+ }
300
+ }
301
+ .slider-lib.responsive {
302
+ label {
303
+ background: #959595;
304
+ background: -moz-linear-gradient(top, #959595 0%, #0d0d0d 46%, #010101 50%, #0a0a0a 53%, #4e4e4e 76%, #383838 87%, #1b1b1b 100%);
305
+ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#959595), color-stop(46%,#0d0d0d), color-stop(50%,#010101), color-stop(53%,#0a0a0a), color-stop(76%,#4e4e4e), color-stop(87%,#383838), color-stop(100%,#1b1b1b));
306
+ background: -webkit-linear-gradient(top, #959595 0%,#0d0d0d 46%,#010101 50%,#0a0a0a 53%,#4e4e4e 76%,#383838 87%,#1b1b1b 100%);
307
+ background: -o-linear-gradient(top, #959595 0%,#0d0d0d 46%,#010101 50%,#0a0a0a 53%,#4e4e4e 76%,#383838 87%,#1b1b1b 100%);
308
+ background: -ms-linear-gradient(top, #959595 0%,#0d0d0d 46%,#010101 50%,#0a0a0a 53%,#4e4e4e 76%,#383838 87%,#1b1b1b 100%);
309
+ background: linear-gradient(to bottom, #959595 0%,#0d0d0d 46%,#010101 50%,#0a0a0a 53%,#4e4e4e 76%,#383838 87%,#1b1b1b 100%);
310
+ }
311
+ }
312
+ .slider-lib.coin {
313
+ label {
314
+ background: #ffd65e;
315
+ background: -moz-linear-gradient(top, #ffd65e 0%, #febf04 100%);
316
+ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ffd65e), color-stop(100%,#febf04));
317
+ background: -webkit-linear-gradient(top, #ffd65e 0%,#febf04 100%);
318
+ background: -o-linear-gradient(top, #ffd65e 0%,#febf04 100%);
319
+ background: -ms-linear-gradient(top, #ffd65e 0%,#febf04 100%);
320
+ background: linear-gradient(to bottom, #ffd65e 0%,#febf04 100%);
321
+ }
322
+ }
323
+ .slider-lib.flex {
324
+ label {
325
+ background: #00b7ea;
326
+ background: -moz-linear-gradient(top, #00b7ea 0%, #009ec3 100%);
327
+ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#00b7ea), color-stop(100%,#009ec3));
328
+ background: -webkit-linear-gradient(top, #00b7ea 0%,#009ec3 100%);
329
+ background: -o-linear-gradient(top, #00b7ea 0%,#009ec3 100%);
330
+ background: -ms-linear-gradient(top, #00b7ea 0%,#009ec3 100%);
331
+ background: linear-gradient(to bottom, #00b7ea 0%,#009ec3 100%);
332
+ }
333
+ }
334
+
335
+
336
+ .configuration {
337
+ @media (max-width: 1120px) {
338
+ display: none;
339
+ }
340
+ @media (max-width: 900px) {
341
+ display: inline;
342
+ }
343
+ }
344
+
345
+ .button {
346
+ @media (max-width: 900px) {
347
+ width: auto;
348
+ float: right;
349
+ }
350
+ }
351
+ }
352
+
353
+
354
+ .shortcode {
355
+ width: 100%;
356
+ margin-top: 20px;
357
+ td {
358
+ border-bottom: 0;
359
+ border-top: 0;
360
+ font-size: 0.9em;
361
+ }
362
+ input, input:active {
363
+ font-family: monospace;
364
+ width: 100%;
365
+ font-size: 0.9em;
366
+ background: transparent;
367
+ border: 0;
368
+ box-shadow: none;
369
+ }
370
+ }
371
+
372
+ table {
373
+ td {
374
+ border-bottom: 0;
375
+ border-top: 0;
376
+ height: 28px;
377
+ font-size: 0.9em;
378
+ vertical-align: middle;
379
+ padding: 0 6px;
380
+ border-bottom: 0;
381
+
382
+ input[type='checkbox'] {
383
+ margin-left: 2px;
384
+ }
385
+ }
386
+
387
+ .slider-lib-row {
388
+ padding: 3px;
389
+ }
390
+ }
391
+ }
392
+ }
393
+ .metaslider .nav-tab,.metaslider h2.nav-tab-wrapper {
394
+ font-size: 13px;
395
+ }
396
+
397
+ ul.info {
398
+ width: 100%;
399
+ margin-top: 20px;
400
+ border-radius: 5px;
401
+
402
+
403
+ li {
404
+ text-align: right;
405
+ display: inline;
406
+ width: 33%;
407
+ float: left;
408
+ }
409
+ }
410
+
411
+ .delete-slider {
412
+ margin: 0 5px 3px 0 !important;
413
+ }
assets/metaslider/image/image.js ADDED
@@ -0,0 +1,40 @@
1
+ /**
2
+ * Meta Slider
3
+ */
4
+ (function ($) {
5
+ $(function () {
6
+ jQuery('.metaslider .add-slide').live('click', function(event){
7
+ event.preventDefault();
8
+
9
+ // Create the media frame.
10
+ file_frame = wp.media.frames.file_frame = wp.media({
11
+ multiple: 'add',
12
+ frame: 'post',
13
+ library: {type: 'image'}
14
+ });
15
+
16
+ // When an image is selected, run a callback.
17
+ file_frame.on('insert', function() {
18
+ var selection = file_frame.state().get('selection');
19
+
20
+ selection.map( function( attachment ) {
21
+
22
+ attachment = attachment.toJSON();
23
+
24
+ var data = {
25
+ action: 'create_image_slide',
26
+ slide_id: attachment.id,
27
+ slider_id: window.parent.metaslider_slider_id
28
+ };
29
+
30
+ jQuery.post(ajaxurl, data, function(response) {
31
+ jQuery(".metaslider .left table").append(response);
32
+ });
33
+ });
34
+ });
35
+
36
+ file_frame.open();
37
+ });
38
+ });
39
+
40
+ }(jQuery));
assets/metaslider/matchalabs.png ADDED
Binary file
assets/metaslider/public.css ADDED
@@ -0,0 +1,134 @@
1
+ /**
2
+ * The files in /assets are unmodified.
3
+ * This file contains
4
+ * - resets, in an attempt to ensure sliders display properly in all themes
5
+ * - modifications to the default sliders CSS
6
+ */
7
+ .metaslider-responsive {
8
+ position: relative;
9
+ }
10
+ .metaslider .flexslider .slides li,
11
+ .metaslider ul.rslides li {
12
+ position: relative;
13
+ }
14
+ .metaslider .flex-viewport {
15
+ direction: ltr;
16
+ }
17
+ .metaslider .caption-wrap {
18
+ position: absolute;
19
+ bottom: 0;
20
+ left: 0;
21
+ background: black;
22
+ color: white;
23
+ line-height: 30px;
24
+ opacity: 0.7;
25
+ margin: 0;
26
+ display: block;
27
+ width: 100%;
28
+ }
29
+ .metaslider .caption {
30
+ padding: 5px 10px;
31
+ }
32
+ .metaslider img {
33
+ height: auto;
34
+ }
35
+ .metaslider .flexslider ul,
36
+ .metaslider .flexslider .slides li,
37
+ .metaslider .flexslider .slides ul,
38
+ .metaslider .flexslider .slides ol,
39
+ .metaslider .flexslider .flex-direction-nav,
40
+ .metaslider .rslides li,
41
+ .metaslider .rslides .rslides_tabs {
42
+ border: 0;
43
+ border-top: 0;
44
+ border-right: 0;
45
+ border-bottom: 0;
46
+ border-left: 0;
47
+ margin: 0;
48
+ margin-top: 0;
49
+ margin-right: 0;
50
+ margin-bottom: 0;
51
+ margin-left: 0;
52
+ list-style-type: none;
53
+ }
54
+ .metaslider .flexslider {
55
+ border: 0;
56
+ }
57
+ .metaslider .flex-direction-nav a {
58
+ -moz-transition: all .3s ease;
59
+ transition: all .3s ease;
60
+ }
61
+ .metaslider li:before,
62
+ .metaslider li:after {
63
+ content: "" !important;
64
+ }
65
+ .metaslider .flexslider .slides p {
66
+ margin: 0;
67
+ }
68
+ .metaslider .flexslider {
69
+ background: none;
70
+ box-shadow: none;
71
+ -webkit-box-shadow: none;
72
+ -moz-box-shadow: none;
73
+ -o-box-shadow: none;
74
+ }
75
+ .metaslider .rslides_tabs {
76
+ margin: 0;
77
+ padding: 7px 0 !important;
78
+ background: #333;
79
+ font-size: 18px;
80
+ list-style: none;
81
+ padding: 10px 0;
82
+ text-align: center;
83
+ width: 100%;
84
+ }
85
+ .metaslider .rslides_tabs li {
86
+ margin: 0;
87
+ padding: 0;
88
+ display: inline;
89
+ float: none;
90
+ margin-right: 1px;
91
+ list-style-type: none;
92
+ }
93
+ .metaslider .rslides_tabs a {
94
+ text-decoration: none;
95
+ width: auto;
96
+ line-height: 20px;
97
+ padding: 9px 20px;
98
+ height: auto;
99
+ background: transparent;
100
+ display: inline;
101
+ color: white;
102
+ }
103
+ .metaslider .rslides_tabs a:hover {
104
+ border: 0;
105
+ color: white;
106
+ }
107
+ .metaslider .rslides_tabs li:first-child {
108
+ margin-left: 0;
109
+ }
110
+ .metaslider .rslides_tabs .rslides_here a {
111
+ background: rgba(255,255,255,.1);
112
+ color: #fff;
113
+ font-weight: bold;
114
+ }
115
+ .metaslider .rslides_nav {
116
+ background-color: #000000;
117
+ color: #FFFFFF;
118
+ padding: 10px;
119
+ position: absolute;
120
+ top: 50%;
121
+ z-index: 9;
122
+ cursor: pointer;
123
+ font-weight: bold;
124
+ margin-top: -15px;
125
+ opacity: 0.7;
126
+ }
127
+ .metaslider .rslides_nav.prev {
128
+ left:0px;
129
+ text-decoration: none;
130
+ }
131
+ .metaslider .rslides_nav.next {
132
+ right:0px;
133
+ text-decoration: none;
134
+ }
assets/sliders/coinslider/coin-slider-styles.css ADDED
@@ -0,0 +1,36 @@
1
+ /*
2
+ Coin Slider jQuery plugin CSS styles
3
+ http://workshop.rs/projects/coin-slider
4
+ */
5
+ .coin-slider { overflow: hidden; zoom: 1; position: relative; }
6
+ .coin-slider a{ text-decoration: none; outline: none; border: none; }
7
+
8
+ .cs-buttons { font-size: 0px; padding: 10px; float: left; }
9
+ .cs-buttons a { margin-left: 5px; height: 10px; width: 10px; float: left; border: 1px solid #B8C4CF; color: #B8C4CF; text-indent: -1000px; }
10
+ .cs-active { background-color: #B8C4CF; color: #FFFFFF; }
11
+
12
+ .cs-title { width: 100%; padding: 10px; background-color: #000000; color: #FFFFFF; }
13
+
14
+ .cs-prev,
15
+ .cs-next { background-color: #000000; color: #FFFFFF; padding: 0px 10px; }
16
+
17
+ .cs-buttons a {
18
+ border-radius: 50%;
19
+ background: #CCC;
20
+ background: -webkit-linear-gradient(top, #CCCCCC, #F3F3F3);
21
+ background: -moz-linear-gradient(top, #CCCCCC, #F3F3F3);
22
+ background: -o-linear-gradient(top, #CCCCCC, #F3F3F3);
23
+ background: -ms-linear-gradient(top, #CCCCCC, #F3F3F3);
24
+ background: linear-gradient(top, #CCCCCC, #F3F3F3);
25
+ }
26
+ a.cs-active {
27
+ background: #599BDC;
28
+ background: -webkit-linear-gradient(top, #599BDC, #3072B3);
29
+ background: -moz-linear-gradient(top, #599BDC, #3072B3);
30
+ background: -o-linear-gradient(top, #599BDC, #3072B3);
31
+ background: -ms-linear-gradient(top, #599BDC, #3072B3);
32
+ background: linear-gradient(top, #599BDC, #3072B3);
33
+ border-radius: 50%;
34
+ box-shadow: 0 0 3px #518CC6;
35
+ border: 1px solid #3072B3 !important;
36
+ }
assets/sliders/coinslider/coin-slider.min.js ADDED
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Coin Slider - Unique jQuery Image Slider
3
+ * @version: 1.0 - (2010/04/04)
4
+ * @requires jQuery v1.2.2 or later
5
+ * @author Ivan Lazarevic
6
+ * Examples and documentation at: http://workshop.rs/projects/coin-slider/
7
+
8
+ * Licensed under MIT licence:
9
+ * http://www.opensource.org/licenses/mit-license.php
10
+ **/
11
+ (function($){var params=[],order=[],images=[],links=[],linksTarget=[],titles=[],interval=[],imagePos=[],appInterval=[],squarePos=[],reverse=[];$.fn.coinslider=$.fn.CoinSlider=function(options){var setFields=function(el){var tWidth=parseInt(params[el.id].width/params[el.id].spw),sWidth=tWidth,tHeight=parseInt(params[el.id].height/params[el.id].sph),sHeight=tHeight,counter=0,sLeft=0,sTop=0,i,j,tgapx=params[el.id].width-params[el.id].spw*sWidth,gapx=tgapx,tgapy=params[el.id].height-params[el.id].sph*sHeight,gapy=tgapy;for(i=1;i<=params[el.id].sph;i++){gapx=tgapx;if(gapy>0){gapy--;sHeight=tHeight+1}else{sHeight=tHeight}for(j=1;j<=params[el.id].spw;j++){if(gapx>0){gapx--;sWidth=tWidth+1}else{sWidth=tWidth}order[el.id][counter]=i+""+j;counter++;if(params[el.id].links){$('#'+el.id).append("<a href='"+links[el.id][0]+"' class='cs-"+el.id+"' id='cs-"+el.id+i+j+"' style='width:"+sWidth+"px; height:"+sHeight+"px; float: left; position: absolute;'></a>")}else{$('#'+el.id).append("<div class='cs-"+el.id+"' id='cs-"+el.id+i+j+"' style='width:"+sWidth+"px; height:"+sHeight+"px; float: left; position: absolute;'></div>")}$("#cs-"+el.id+i+j).css({'background-position':-sLeft+'px '+(-sTop+'px'),'left':sLeft,'top':sTop});sLeft+=sWidth}sTop+=sHeight;sLeft=0}if(!params[el.id].navigationPrevNextAlwaysShown){$('.cs-'+el.id).mouseover(function(){$('#cs-navigation-'+el.id).show()});$('.cs-'+el.id).mouseout(function(){$('#cs-navigation-'+el.id).hide()});$('#cs-title-'+el.id).mouseover(function(){$('#cs-navigation-'+el.id).show()});$('#cs-title-'+el.id).mouseout(function(){$('#cs-navigation-'+el.id).hide()})}if(params[el.id].hoverPause){$('.cs-'+el.id).mouseover(function(){params[el.id].pause=true});$('.cs-'+el.id).mouseout(function(){params[el.id].pause=false});$('#cs-title-'+el.id).mouseover(function(){params[el.id].pause=true});$('#cs-title-'+el.id).mouseout(function(){params[el.id].pause=false})}};var transitionCall=function(el){clearInterval(interval[el.id]);var delay=params[el.id].delay+params[el.id].spw*params[el.id].sph*params[el.id].sDelay;interval[el.id]=setInterval(function(){transition(el)},delay)};var transition=function(el,direction){if(params[el.id].pause===true){return}effect(el);squarePos[el.id]=0;appInterval[el.id]=setInterval(function(){appereance(el,order[el.id][squarePos[el.id]])},params[el.id].sDelay);$(el).css({'background-image':'url('+images[el.id][imagePos[el.id]]+')'});if(typeof(direction)=="undefined"){imagePos[el.id]++}else{if(direction=='prev'){imagePos[el.id]--}else{imagePos[el.id]=direction}}if(imagePos[el.id]==images[el.id].length){imagePos[el.id]=0}if(imagePos[el.id]==-1){imagePos[el.id]=images[el.id].length-1}$('.cs-button-'+el.id).removeClass('cs-active');$('#cs-button-'+el.id+"-"+(imagePos[el.id]+1)).addClass('cs-active');if(titles[el.id][imagePos[el.id]]){$('#cs-title-'+el.id).css({'opacity':0}).animate({'opacity':params[el.id].opacity},params[el.id].titleSpeed);$('#cs-title-'+el.id).html(titles[el.id][imagePos[el.id]])}else{$('#cs-title-'+el.id).css('opacity',0)}};var appereance=function(el,sid){$('.cs-'+el.id).attr('href',links[el.id][imagePos[el.id]]).attr('target',linksTarget[el.id][imagePos[el.id]]);if(squarePos[el.id]==params[el.id].spw*params[el.id].sph){clearInterval(appInterval[el.id]);return}$('#cs-'+el.id+sid).css({opacity:0,'background-image':'url('+images[el.id][imagePos[el.id]]+')'});$('#cs-'+el.id+sid).animate({opacity:1},300);squarePos[el.id]++};var setNavigation=function(el){if(params[el.id].showNavigationPrevNext){$(el).append("<div id='cs-navigation-"+el.id+"'></div>");if(!params[el.id].navigationPrevNextAlwaysShown){$('#cs-navigation-'+el.id).hide()}$('#cs-navigation-'+el.id).append("<a href='#' id='cs-prev-"+el.id+"' class='cs-prev'>"+params[el.id].prevText+"</a>");$('#cs-navigation-'+el.id).append("<a href='#' id='cs-next-"+el.id+"' class='cs-next'>"+params[el.id].nextText+"</a>");$('#cs-prev-'+el.id).css({'position':'absolute','top':params[el.id].height/2-15,'left':0,'z-index':1001,'line-height':'30px','opacity':params[el.id].opacity}).click(function(e){e.preventDefault();transition(el,'prev');transitionCall(el)}).mouseover(function(){$('#cs-navigation-'+el.id).show()});$('#cs-next-'+el.id).css({'position':'absolute','top':params[el.id].height/2-15,'right':0,'z-index':1001,'line-height':'30px','opacity':params[el.id].opacity}).click(function(e){e.preventDefault();transition(el);transitionCall(el)}).mouseover(function(){$('#cs-navigation-'+el.id).show()});$('#cs-navigation-'+el.id+' a').mouseout(function(){if(!params[el.id].navigationPrevNextAlwaysShown)$('#cs-navigation-'+el.id).hide();params[el.id].pause=false})}if(params[el.id].showNavigationButtons){$("<div id='cs-buttons-"+el.id+"' class='cs-buttons'></div>").appendTo($('#coin-slider-'+el.id));var k;for(k=1;k<images[el.id].length+1;k++){$('#cs-buttons-'+el.id).append("<a href='#' class='cs-button-"+el.id+"' id='cs-button-"+el.id+"-"+k+"'>"+k+"</a>")}$.each($('.cs-button-'+el.id),function(i,item){$(item).click(function(e){$('.cs-button-'+el.id).removeClass('cs-active');$(this).addClass('cs-active');e.preventDefault();transition(el,i);transitionCall(el)})});$("#cs-buttons-"+el.id).css({'left':'50%','margin-left':-images[el.id].length*15/2-5,'position':'relative'})}};var effect=function(el){var effA=['random','swirl','rain','straight'],i,j,counter,eff;if(params[el.id].effect===''){eff=effA[Math.floor(Math.random()*(effA.length))]}else{eff=params[el.id].effect}order[el.id]=[];if(eff=='random'){counter=0;for(i=1;i<=params[el.id].sph;i++){for(j=1;j<=params[el.id].spw;j++){order[el.id][counter]=i+""+j;counter++}}randomEffect(order[el.id])}if(eff=='rain'){rain(el)}if(eff=='swirl'){swirl(el)}if(eff=='straight'){straight(el)}reverse[el.id]*=-1;if(reverse[el.id]>0){order[el.id].reverse()}};var randomEffect=function(arr){var i=arr.length,j,tempi,tempj;if(i===0){return false}while(--i){j=Math.floor(Math.random()*(i+1));tempi=arr[i];tempj=arr[j];arr[i]=tempj;arr[j]=tempi}};var swirl=function(el){var n=params[el.id].sph,m=params[el.id].spw,x=1,y=1,going=0,num=0,c=0,check,dowhile=true,i;while(dowhile){num=(going===0||going===2)?m:n;for(i=1;i<=num;i++){order[el.id][c]=x+""+y;c++;if(i!=num){switch(going){case 0:y++;break;case 1:x++;break;case 2:y--;break;case 3:x--;break}}}going=(going+1)%4;switch(going){case 0:m--;y++;break;case 1:n--;x++;break;case 2:m--;y--;break;case 3:n--;x--;break}check=max(n,m)-min(n,m);if(m<=check&&n<=check){dowhile=false}}};var rain=function(el){var n=params[el.id].sph,m=params[el.id].spw,c=0,to=1,to2=1,from=1,dowhile=true;while(dowhile){for(i=from;i<=to;i++){order[el.id][c]=i+''+parseInt(to2-i+1);c++}to2++;if(to<n&&to2<m&&n<m){to++}if(to<n&&n>=m){to++}if(to2>m){from++}if(from>to){dowhile=false}}};var straight=function(el){var counter=0,i,j;for(i=1;i<=params[el.id].sph;i++){for(j=1;j<=params[el.id].spw;j++){order[el.id][counter]=i+''+j;counter++}}};var min=function(n,m){if(n>m){return m}else{return n}};var max=function(n,m){if(n<m){return m}else{return n}};var init=function(el){order[el.id]=[];images[el.id]=[];links[el.id]=[];linksTarget[el.id]=[];titles[el.id]=[];imagePos[el.id]=0;squarePos[el.id]=0;reverse[el.id]=1;params[el.id]=$.extend({},$.fn.coinslider.defaults,options);$.each($('#'+el.id+' img'),function(i,item){images[el.id][i]=$(item).attr('src');links[el.id][i]=$(item).parent().is('a')?$(item).parent().attr('href'):'';linksTarget[el.id][i]=$(item).parent().is('a')?$(item).parent().attr('target'):'';titles[el.id][i]=$(item).next().is('span')?$(item).next().html():'';$(item).hide();$(item).next().hide()});$(el).css({'background-image':'url('+images[el.id][0]+')','width':params[el.id].width,'height':params[el.id].height,'position':'relative','background-position':'top left'}).wrap("<div class='coin-slider' id='coin-slider-"+el.id+"' />");$('#'+el.id).append("<div class='cs-title' id='cs-title-"+el.id+"' style='position: absolute; bottom:0; left: 0; z-index: 1000;'></div>");setFields(el);if(params[el.id].navigation){setNavigation(el)}transition(el,0);transitionCall(el)};this.each(function(){init(this)})};$.fn.coinslider.defaults={width:565,height:290,spw:7,sph:5,delay:3000,sDelay:30,opacity:0.7,titleSpeed:500,effect:'',links:true,hoverPause:true,prevText:'prev',nextText:'next',navigation:true,showNavigationPrevNext:true,showNavigationButtons:true,navigationPrevNextAlwaysShown:false}})(jQuery);
assets/{flexslider → sliders/flexslider}/bg_direction_nav.png RENAMED
File without changes