Version Description
- Fixed bug that broke media uploader in WordPress v3.9.
- Fixed bug that prevented "Customize" panel from loading in WordPress v3.9.
Download this release
Release Info
Developer | MatthewRuddy |
Plugin | Easing Slider |
Version | 2.1.4 |
Comparing to | |
See all releases |
Code changes from version 2.1.3 to 2.1.4
- css/admin.css +4 -4
- css/admin.min.css +1 -1
- easingsliderlite.php +3 -3
- js/admin.js +3 -3
- js/admin.min.js +1 -2
- js/customizer.js +3 -5
- js/customizer.min.js +1 -1
- readme.txt +6 -2
css/admin.css
CHANGED
@@ -282,10 +282,6 @@ textarea.success {
|
|
282 |
}
|
283 |
|
284 |
/** ===== Additional ===== */
|
285 |
-
.supports-drag-drop {
|
286 |
-
z-index: 1000;
|
287 |
-
}
|
288 |
-
|
289 |
.easingsliderlite-updated-admin .welcome-panel {
|
290 |
padding-bottom: 11px;
|
291 |
}
|
@@ -306,6 +302,10 @@ textarea.success {
|
|
306 |
top: 4px !important;
|
307 |
}
|
308 |
|
|
|
|
|
|
|
|
|
309 |
.easingsliderlite-updated-admin .widgets-holder-wrap {
|
310 |
margin-bottom: 9px;
|
311 |
}
|
282 |
}
|
283 |
|
284 |
/** ===== Additional ===== */
|
|
|
|
|
|
|
|
|
285 |
.easingsliderlite-updated-admin .welcome-panel {
|
286 |
padding-bottom: 11px;
|
287 |
}
|
302 |
top: 4px !important;
|
303 |
}
|
304 |
|
305 |
+
.easingsliderlite-updated-admin .sidebar-content {
|
306 |
+
border-color: #fff;
|
307 |
+
}
|
308 |
+
|
309 |
.easingsliderlite-updated-admin .widgets-holder-wrap {
|
310 |
margin-bottom: 9px;
|
311 |
}
|
css/admin.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.pull-left{float:left}.pull-right{float:right}.clearfix{*zoom:1}.clearfix::after,.clearfix::before{display:table;content:'';line-height:0}.clearfix::after{clear:both}.column-id{width:2em}.wp-media-buttons .button{padding-left:.4em;margin-right:5px}.wp-media-buttons .button:last-child{margin-right:0}.wp-media-buttons span.wp-media-buttons-icon{display:inline-block;width:16px;height:16px;vertical-align:text-top;margin:0 2px}.wp-media-buttons .add-image span.wp-media-buttons-icon{background:url(../../../../wp-admin/images/media-button.png) no-repeat top left}.wp-media-buttons .delete-images span.wp-media-buttons-icon{background:url(../images/trash.png) no-repeat 0 0;margin-top:-1px}.wp-media-buttons .edit-settings span.wp-media-buttons-icon{background:url(../../../../wp-admin/images/menu.png) no-repeat top left;background-position:-336px -40px}.multiple-checkbox{overflow-x:hidden;overflow-y:auto;border:1px solid #dfdfdf;background-color:#fff;width:25%;height:120px;-webkit-border-radius:3px;border-radius:3px}.multiple-checkbox ul{list-style-type:none;width:auto;line-height:1.2;margin:0;padding:0}.multiple-checkbox ul li{margin:0;padding:2px 2px 0 0;line-height:1.2}.multiple-checkbox ul li.odd{background-color:#f9f9f9}.multiple-checkbox ul li input{margin:0 5px}input.error,textarea.error{border-color:#b94a48!important;-webkit-box-shadow:1px 1px 2px rgba(213,147,146,.3)!important;box-shadow:1px 1px 2px rgba(213,147,146,.3)!important}input.success,textarea.success{border-color:#468847!important;-webkit-box-shadow:1px 1px 2px rgba(122,186,123,.3)!important;box-shadow:1px 1px 2px rgba(122,186,123,.3)!important}.main-panel{position:relative}.main-panel .description{font-size:11px;font-style:italic;display:block;color:#777;padding:5px 0}.divider{padding:0;margin:20px 0;width:100%;height:1px;background:#e6e6e6}.settings-container{float:right;clear:right;width:285px;padding-right:5px}.settings-container .widgets-holder-wrap{margin-top:0}.settings-container .sidebar-content{border-width:0 1px 1px;border-style:none solid solid;-webkit-border-bottom-right-radius:3px;-webkit-border-bottom-left-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;padding:10px;min-height:20px}.settings-container .sidebar-content .divider{margin-bottom:0}.settings-container .sidebar-content .field,.settings-container .sidebar-content .radio{width:100%;margin:1em 0}.settings-container .sidebar-content .field span{font-weight:700;display:block}.settings-container .sidebar-content .field{float:left}.settings-container .sidebar-content .field input,.settings-container .sidebar-content .field select{width:90%}.settings-container .sidebar-content .field input[type=checkbox]{width:auto;margin-right:4px}.settings-container .sidebar-content .radio>span{font-weight:700;float:left}.settings-container .sidebar-content .radio .buttons{float:right}.settings-container .sidebar-content .radio .buttons label{margin-right:10px}.settings-container .sidebar-content .radio .buttons input{margin-top:0;margin-right:2px}.settings-container .dimension-settings .field{width:45%}.settings-container .dimension-settings .field:first-child{margin-right:5%}.thumbnails-container{float:left;clear:left;width:100%;margin:15px -300px 0 0}.thumbnails-container .inner{margin-right:300px}.thumbnails-container .thumbnail{float:left;position:relative}.thumbnails-container .thumbnail .delete-button{position:absolute;top:-15px;right:5px;width:36px;height:36px;z-index:10;background:url(../images/delete_icon.png) no-repeat top left;cursor:pointer;opacity:0;-webkit-transition:opacity .125s ease;-moz-transition:opacity .125s ease;-ms-transition:opacity .125s ease;-o-transition:opacity .125s ease;transition:opacity .125s ease}.thumbnails-container .thumbnail:hover .delete-button{opacity:1}.thumbnails-container .thumbnail img{-moz-box-shadow:0 1px 4px 0 #a5a5a5;-webkit-box-shadow:0 1px 4px 0 #a5a5a5;box-shadow:0 1px 4px 0 #a5a5a5;-webkit-border-radius:2px;border-radius:2px;cursor:pointer;width:150px;height:150px;padding:0;margin:0 20px 20px 0}.media-frame-content,.media-frame-router,.media-frame-title,.media-frame-toolbar{left:0!important}.media-frame-content{padding:0 16px}.media-main{margin-right:283px}.media-main h2{font-weight:200}.media-main input,.media-main textarea{max-width:500px!important}.media-main textarea{height:200px;resize:none}.media-main .embed-link-settings{top:0}.media-main .setting{margin-top:30px!important}.media-main .setting:first-child{margin-top:0!important}.media-main .description{font-size:11px;margin-top:5px}.media-main .thumbnail{position:relative}.media-main .thumbnail .change-image{position:absolute;bottom:10px;right:10px;z-index:9999}.main-settings label>input{margin-top:0;margin-right:4px}.main-settings label>span{margin-right:20px}.
|
1 |
+
.pull-left{float:left}.pull-right{float:right}.clearfix{*zoom:1}.clearfix::after,.clearfix::before{display:table;content:'';line-height:0}.clearfix::after{clear:both}.column-id{width:2em}.wp-media-buttons .button{padding-left:.4em;margin-right:5px}.wp-media-buttons .button:last-child{margin-right:0}.wp-media-buttons span.wp-media-buttons-icon{display:inline-block;width:16px;height:16px;vertical-align:text-top;margin:0 2px}.wp-media-buttons .add-image span.wp-media-buttons-icon{background:url(../../../../wp-admin/images/media-button.png) no-repeat top left}.wp-media-buttons .delete-images span.wp-media-buttons-icon{background:url(../images/trash.png) no-repeat 0 0;margin-top:-1px}.wp-media-buttons .edit-settings span.wp-media-buttons-icon{background:url(../../../../wp-admin/images/menu.png) no-repeat top left;background-position:-336px -40px}.multiple-checkbox{overflow-x:hidden;overflow-y:auto;border:1px solid #dfdfdf;background-color:#fff;width:25%;height:120px;-webkit-border-radius:3px;border-radius:3px}.multiple-checkbox ul{list-style-type:none;width:auto;line-height:1.2;margin:0;padding:0}.multiple-checkbox ul li{margin:0;padding:2px 2px 0 0;line-height:1.2}.multiple-checkbox ul li.odd{background-color:#f9f9f9}.multiple-checkbox ul li input{margin:0 5px}input.error,textarea.error{border-color:#b94a48!important;-webkit-box-shadow:1px 1px 2px rgba(213,147,146,.3)!important;box-shadow:1px 1px 2px rgba(213,147,146,.3)!important}input.success,textarea.success{border-color:#468847!important;-webkit-box-shadow:1px 1px 2px rgba(122,186,123,.3)!important;box-shadow:1px 1px 2px rgba(122,186,123,.3)!important}.main-panel{position:relative}.main-panel .description{font-size:11px;font-style:italic;display:block;color:#777;padding:5px 0}.divider{padding:0;margin:20px 0;width:100%;height:1px;background:#e6e6e6}.settings-container{float:right;clear:right;width:285px;padding-right:5px}.settings-container .widgets-holder-wrap{margin-top:0}.settings-container .sidebar-content{border-width:0 1px 1px;border-style:none solid solid;-webkit-border-bottom-right-radius:3px;-webkit-border-bottom-left-radius:3px;border-bottom-right-radius:3px;border-bottom-left-radius:3px;padding:10px;min-height:20px}.settings-container .sidebar-content .divider{margin-bottom:0}.settings-container .sidebar-content .field,.settings-container .sidebar-content .radio{width:100%;margin:1em 0}.settings-container .sidebar-content .field span{font-weight:700;display:block}.settings-container .sidebar-content .field{float:left}.settings-container .sidebar-content .field input,.settings-container .sidebar-content .field select{width:90%}.settings-container .sidebar-content .field input[type=checkbox]{width:auto;margin-right:4px}.settings-container .sidebar-content .radio>span{font-weight:700;float:left}.settings-container .sidebar-content .radio .buttons{float:right}.settings-container .sidebar-content .radio .buttons label{margin-right:10px}.settings-container .sidebar-content .radio .buttons input{margin-top:0;margin-right:2px}.settings-container .dimension-settings .field{width:45%}.settings-container .dimension-settings .field:first-child{margin-right:5%}.thumbnails-container{float:left;clear:left;width:100%;margin:15px -300px 0 0}.thumbnails-container .inner{margin-right:300px}.thumbnails-container .thumbnail{float:left;position:relative}.thumbnails-container .thumbnail .delete-button{position:absolute;top:-15px;right:5px;width:36px;height:36px;z-index:10;background:url(../images/delete_icon.png) no-repeat top left;cursor:pointer;opacity:0;-webkit-transition:opacity .125s ease;-moz-transition:opacity .125s ease;-ms-transition:opacity .125s ease;-o-transition:opacity .125s ease;transition:opacity .125s ease}.thumbnails-container .thumbnail:hover .delete-button{opacity:1}.thumbnails-container .thumbnail img{-moz-box-shadow:0 1px 4px 0 #a5a5a5;-webkit-box-shadow:0 1px 4px 0 #a5a5a5;box-shadow:0 1px 4px 0 #a5a5a5;-webkit-border-radius:2px;border-radius:2px;cursor:pointer;width:150px;height:150px;padding:0;margin:0 20px 20px 0}.media-frame-content,.media-frame-router,.media-frame-title,.media-frame-toolbar{left:0!important}.media-frame-content{padding:0 16px}.media-main{margin-right:283px}.media-main h2{font-weight:200}.media-main input,.media-main textarea{max-width:500px!important}.media-main textarea{height:200px;resize:none}.media-main .embed-link-settings{top:0}.media-main .setting{margin-top:30px!important}.media-main .setting:first-child{margin-top:0!important}.media-main .description{font-size:11px;margin-top:5px}.media-main .thumbnail{position:relative}.media-main .thumbnail .change-image{position:absolute;bottom:10px;right:10px;z-index:9999}.main-settings label>input{margin-top:0;margin-right:4px}.main-settings label>span{margin-right:20px}.easingsliderlite-updated-admin .welcome-panel{padding-bottom:11px}.easingsliderlite-updated-admin .sidebar-name{border-bottom:1px solid #eee}.easingsliderlite-updated-admin .closed .sidebar-name{border-width:0}.easingsliderlite-updated-admin .sidebar-name h3{padding:15px}.easingsliderlite-updated-admin .sidebar-name-arrow:before{top:4px!important}.easingsliderlite-updated-admin .sidebar-content{border-color:#fff}.easingsliderlite-updated-admin .widgets-holder-wrap{margin-bottom:9px}.easingsliderlite-updated-admin .settings-container .sidebar-content{padding-left:15px;padding-right:15px}.easingsliderlite-updated-admin .customize-container{background-image:none!important}
|
easingsliderlite.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
/*
|
4 |
Plugin Name: Easing Slider "Lite"
|
5 |
Plugin URI: http://easingslider.com/
|
6 |
-
Version: 2.1.
|
7 |
Author: Matthew Ruddy
|
8 |
Author URI: http://matthewruddy.com/
|
9 |
Description: Easing Slider "Lite" is an easy to use slideshow plugin for WordPress. Simple, lightweight & designed to get the job done, it allows you to get going without any fuss.
|
@@ -60,7 +60,7 @@ class EasingSliderLite {
|
|
60 |
*
|
61 |
* @since 2.0
|
62 |
*/
|
63 |
-
public static $version = '2.1.
|
64 |
|
65 |
/**
|
66 |
* Our array of Easing Slider "Lite" admin pages. These are used to conditionally load scripts.
|
@@ -1016,7 +1016,7 @@ class EasingSliderLite {
|
|
1016 |
echo '</script>';
|
1017 |
|
1018 |
/** Media Library custom sidebar */
|
1019 |
-
echo '<script type="text/html" id="tmpl-
|
1020 |
require dirname( self::get_file() ) . DIRECTORY_SEPARATOR .'templates'. DIRECTORY_SEPARATOR .'editslideshow-media-details.php';
|
1021 |
echo '</script>';
|
1022 |
|
3 |
/*
|
4 |
Plugin Name: Easing Slider "Lite"
|
5 |
Plugin URI: http://easingslider.com/
|
6 |
+
Version: 2.1.4
|
7 |
Author: Matthew Ruddy
|
8 |
Author URI: http://matthewruddy.com/
|
9 |
Description: Easing Slider "Lite" is an easy to use slideshow plugin for WordPress. Simple, lightweight & designed to get the job done, it allows you to get going without any fuss.
|
60 |
*
|
61 |
* @since 2.0
|
62 |
*/
|
63 |
+
public static $version = '2.1.4';
|
64 |
|
65 |
/**
|
66 |
* Our array of Easing Slider "Lite" admin pages. These are used to conditionally load scripts.
|
1016 |
echo '</script>';
|
1017 |
|
1018 |
/** Media Library custom sidebar */
|
1019 |
+
echo '<script type="text/html" id="tmpl-media-details">';
|
1020 |
require dirname( self::get_file() ) . DIRECTORY_SEPARATOR .'templates'. DIRECTORY_SEPARATOR .'editslideshow-media-details.php';
|
1021 |
echo '</script>';
|
1022 |
|
js/admin.js
CHANGED
@@ -369,7 +369,7 @@
|
|
369 |
return;
|
370 |
|
371 |
/** Create the media frame */
|
372 |
-
this.fileFrame = wp.media.frames.fileFrame =
|
373 |
title: this.frameProperties.title,
|
374 |
button: {
|
375 |
text: this.frameProperties.button
|
@@ -447,8 +447,8 @@
|
|
447 |
|
448 |
});
|
449 |
|
450 |
-
/** Override
|
451 |
-
wp.media.view.Attachment.Details.prototype.template = wp.media.template('
|
452 |
|
453 |
/** Show/hide settings functionality */
|
454 |
$('.sidebar-name').bind('click', function() {
|
369 |
return;
|
370 |
|
371 |
/** Create the media frame */
|
372 |
+
this.fileFrame = wp.media.frames.fileFrame = wp.media({
|
373 |
title: this.frameProperties.title,
|
374 |
button: {
|
375 |
text: this.frameProperties.button
|
447 |
|
448 |
});
|
449 |
|
450 |
+
/** Override Media Library sidebar template with our own */
|
451 |
+
wp.media.view.Attachment.Details.prototype.template = wp.media.template('media-details');
|
452 |
|
453 |
/** Show/hide settings functionality */
|
454 |
$('.sidebar-name').bind('click', function() {
|
js/admin.min.js
CHANGED
@@ -1,2 +1 @@
|
|
1 |
-
(function(
|
2 |
-
for(var b in this.modelAttributes){e[this.modelAttributes[b]]=d.get(this.modelAttributes[b])}this.model.set(e)},remove:function(){AddImageView.prototype.remove.apply(this,arguments);this.fileFrame.modal.$el.remove();this.fileFrame.uploader.$browser.remove()},});wp.media.view.Attachment.Details.prototype.template=wp.media.template("image-details");a(".sidebar-name").bind("click",function(){var c=a(this).parent(),b=c.find(".sidebar-content");if(!c.hasClass("exclude")){a(".sidebar-name").each(function(){var d=a(this).parent();if(!d.hasClass("exclude")&&!d.hasClass("closed")){d.find(".sidebar-content").slideUp(200,function(){d.addClass("closed")})}})}if(c.hasClass("closed")){b.slideDown(200,function(){c.removeClass("closed")})}else{b.slideUp(200,function(){c.addClass("closed")})}});a(".thumbnails-container").sortable({items:".thumbnail",containment:"parent",tolerance:"pointer",stop:function(d,e){var b=[],f=[];a(this).find(".thumbnail").each(function(){b.push(a(this).attr("data-id"))});for(var c=0;c<b.length;c++){f.push(slideCollection.get(b[c]))}slideCollection.reset(f).resetIDs().resetData()}});setTimeout(function(){a(".message").not(".permanent").each(function(){a(this).fadeOut(400,function(){a(this).remove()})})},5000);a(".warn").bind("click",function(){if(!confirm(easingsliderlite.warn)){return false}});if(a("#slideshow-images").length==0){return}window.slideCollection=new SlideCollection(JSON.parse(a("#slideshow-images").val()));window.slideView=new SlideView({collection:slideCollection});window.addImageView=new AddImageView({collection:slideCollection})})(jQuery);
|
1 |
+
(function(e){window.Slide=Backbone.Model.extend({defaults:{url:null,sizes:null,alt:null,title:null,link:null,linkTarget:"_blank"}});window.SlideCollection=Backbone.Collection.extend({model:Slide,primary:0,initialize:function(){var e=this;this.on("add",this.addModel,this);this.on("remove",this.removeModel,this);this.on("reset",this.resetData,this);this.on("change",this.resetData,this);setTimeout(function(){_.each(e.models,function(t){e.primary++})})},addModel:function(e){this.primary++;e.set({id:this.primary},{silent:true});this.reset(this.models,{silent:true});this.resetData()},removeModel:function(){var e=this;this.resetIDs();this.reset(this.models,{silent:true});this.resetData()},resetData:function(){e("#slideshow-images").val(JSON.stringify(this))},resetIDs:function(){var e=this;this.primary=0;_.each(this.models,function(t){e.primary++;t.set({id:e.primary},{silent:true})});return this}});window.SlideView=wp.media.View.extend({$container:e(".thumbnails-container .inner"),template:wp.media.template("slide"),initialize:function(){var t=this;this.collection.on("add",this.addThumb,this);this.collection.on("remove",this.render,this);this.collection.on("reset",this.render,this);this.collection.on("change:url",this.render,this);e(".delete-images").bind("click",function(e){e.preventDefault();if(confirm(easingsliderlite.delete_images))t.removeThumbs.call(t,e)});e(".add-image").bind("click",function(e){e.preventDefault();addImageView.render()});e(document).delegate(".delete-button","click",function(n){n.preventDefault();if(confirm(easingsliderlite.delete_image))t.collection.remove(t.collection.get(e(this).parent().attr("data-id")))});e(document).delegate(".thumbnails-container img","click",function(n){n.preventDefault();var r=e(this).parent().attr("data-id"),i=new EditSlideView({model:t.collection.get(r)});e(i.render().el).appendTo("body").focus()})},addThumb:function(e){this.$container.append(this.template(e.toJSON()))},removeThumbs:function(e){e.preventDefault();this.$container.empty();this.collection.reset();this.collection.primary=0},render:function(){var e=this;this.$container.empty();_.each(this.collection.models,function(t){e.$container.append(e.template(t.toJSON()))});return this}});window.EditSlideView=wp.media.View.extend({attributes:{tabindex:0},changeImageView:null,template:wp.media.template("edit-slide"),events:{change:"change","click .media-modal-backdrop, .media-modal-close":"discardChanges","click .change-image":"changeImage","click .media-modal-save":"close","click .media-menu-item":"toggleTab",keydown:"keyDown"},initialize:function(){this.origAttributes=_.clone(this.model.attributes);this.model.on("change:url",this.resetThumbnail,this)},toggleTab:function(t){t.preventDefault();var n=t.target.dataset.tab;e(".media-menu-item").removeClass("active");e(t.target).addClass("active");e(".media-tab",this.$el).each(function(){if(this.id===n)e(this).show();else e(this).hide()})},close:function(e){e.preventDefault();this.remove();if(this.changeImageView)this.changeImageView.remove()},change:function(e){var t=e.target,n={};n[t.id]=t.value;this.model.set(n)},discardChanges:function(e){e.preventDefault();var t=JSON.stringify(this.model.attributes),n=JSON.stringify(this.origAttributes);if(t===n)this.close(e);else{if(confirm(easingsliderlite.media_upload.discard_changes)){this.model.set(this.origAttributes);this.close(e)}}},resetThumbnail:function(e,t){var n=e.get("sizes"),r=n.large||n.medium||n.thumbnail;this.$(".slide-thumbnail").attr("src",r.url)},changeImage:function(t){t.preventDefault();var n=this;if(this.changeImageView===null){this.changeImageView=new ChangeImageView({id:this.model.get("id"),model:this.model})}this.changeImageView.render();e(".media-modal-backdrop").first().hide();this.changeImageView.fileFrame.on("close",function(){e(".media-modal-backdrop").first().show();n.$el.focus()})},keyDown:function(e){if(e.keyCode===27){e.preventDefault();this.discardChanges(e);return}},render:function(){e(this.el).html(this.template(this.model.toJSON()));return this}});window.AddImageView=Backbone.View.extend({fileFrame:null,frameProperties:{title:easingsliderlite.media_upload.title,button:easingsliderlite.media_upload.button,multiple:true},modelAttributes:["url","sizes","alt","title"],initialize:function(){if(this.fileFrame)return;this.fileFrame=wp.media.frames.fileFrame=wp.media({title:this.frameProperties.title,button:{text:this.frameProperties.button},multiple:this.frameProperties.multiple});this.fileFrame.on("select",this.onSelect,this)},onSelect:function(){var e=this.fileFrame.state().get("selection"),t=this;_.each(e.models,function(e){var n={};for(var r in t.modelAttributes)n[t.modelAttributes[r]]=e.get(t.modelAttributes[r]);t.collection.add([n])})},render:function(){this.fileFrame.open()}});window.ChangeImageView=AddImageView.extend({frameProperties:{title:easingsliderlite.media_upload.title,button:easingsliderlite.media_upload.change,multiple:false},onSelect:function(){var e=this.fileFrame.state().get("selection"),t=e.models[0],n={};for(var r in this.modelAttributes)n[this.modelAttributes[r]]=t.get(this.modelAttributes[r]);this.model.set(n)},remove:function(){AddImageView.prototype.remove.apply(this,arguments);this.fileFrame.modal.$el.remove();this.fileFrame.uploader.$browser.remove()}});wp.media.view.Attachment.Details.prototype.template=wp.media.template("media-details");e(".sidebar-name").bind("click",function(){var t=e(this).parent(),n=t.find(".sidebar-content");if(!t.hasClass("exclude")){e(".sidebar-name").each(function(){var t=e(this).parent();if(!t.hasClass("exclude")&&!t.hasClass("closed")){t.find(".sidebar-content").slideUp(200,function(){t.addClass("closed")})}})}if(t.hasClass("closed"))n.slideDown(200,function(){t.removeClass("closed")});else n.slideUp(200,function(){t.addClass("closed")})});e(".thumbnails-container").sortable({items:".thumbnail",containment:"parent",tolerance:"pointer",stop:function(t,n){var r=[],i=[];e(this).find(".thumbnail").each(function(){r.push(e(this).attr("data-id"))});for(var s=0;s<r.length;s++)i.push(slideCollection.get(r[s]));slideCollection.reset(i).resetIDs().resetData()}});setTimeout(function(){e(".message").not(".permanent").each(function(){e(this).fadeOut(400,function(){e(this).remove()})})},5e3);e(".warn").bind("click",function(){if(!confirm(easingsliderlite.warn))return false});if(e("#slideshow-images").length==0)return;window.slideCollection=new SlideCollection(JSON.parse(e("#slideshow-images").val()));window.slideView=new SlideView({collection:slideCollection});window.addImageView=new AddImageView({collection:slideCollection})})(jQuery)
|
|
js/customizer.js
CHANGED
@@ -14,6 +14,8 @@
|
|
14 |
/** Customize View */
|
15 |
window.CustomizeView = Backbone.View.extend({
|
16 |
|
|
|
|
|
17 |
events: {
|
18 |
'change': 'change'
|
19 |
},
|
@@ -23,9 +25,6 @@
|
|
23 |
var self = this,
|
24 |
$items = {};
|
25 |
|
26 |
-
/** Set the element */
|
27 |
-
this.$el = this.options.$el;
|
28 |
-
|
29 |
/** Title click functionality */
|
30 |
$('.customize-section-title').bind('click', function() {
|
31 |
|
@@ -145,7 +144,7 @@
|
|
145 |
|
146 |
/** Show the view */
|
147 |
this.$el.find('.wp-full-overlay').animate({ 'opacity': 1 }, { duration: 200 });
|
148 |
-
|
149 |
}
|
150 |
|
151 |
});
|
@@ -153,7 +152,6 @@
|
|
153 |
/** Let's go! */
|
154 |
$(document).ready(function() {
|
155 |
window.customizeView = new CustomizeView({
|
156 |
-
$el: $('#customize-container'),
|
157 |
model: new Customizations(JSON.parse($('#customizations').val()))
|
158 |
}).render();
|
159 |
});
|
14 |
/** Customize View */
|
15 |
window.CustomizeView = Backbone.View.extend({
|
16 |
|
17 |
+
el: '#customize-container',
|
18 |
+
|
19 |
events: {
|
20 |
'change': 'change'
|
21 |
},
|
25 |
var self = this,
|
26 |
$items = {};
|
27 |
|
|
|
|
|
|
|
28 |
/** Title click functionality */
|
29 |
$('.customize-section-title').bind('click', function() {
|
30 |
|
144 |
|
145 |
/** Show the view */
|
146 |
this.$el.find('.wp-full-overlay').animate({ 'opacity': 1 }, { duration: 200 });
|
147 |
+
|
148 |
}
|
149 |
|
150 |
});
|
152 |
/** Let's go! */
|
153 |
$(document).ready(function() {
|
154 |
window.customizeView = new CustomizeView({
|
|
|
155 |
model: new Customizations(JSON.parse($('#customizations').val()))
|
156 |
}).render();
|
157 |
});
|
js/customizer.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
(function(
|
1 |
+
(function(e){window.Customizations=Backbone.Model.extend({initialize:function(){this.on("change",function(){e("#customizations").val(JSON.stringify(this.attributes))},this)}});window.CustomizeView=Backbone.View.extend({el:"#customize-container",events:{change:"change"},initialize:function(){var t=this,n={};e(".customize-section-title").bind("click",function(){var t=e(this).parent();if(!t.hasClass("open")){e(".customize-section").removeClass("open");t.addClass("open")}else e(".customize-section").removeClass("open")});e(".collapse-sidebar").bind("click",function(){var t=e(".wp-full-overlay");if(t.hasClass("expanded"))t.removeClass("expanded").addClass("collapsed");else t.removeClass("collapsed").addClass("expanded")});e(".color-picker-hex").each(function(){e(this).wpColorPicker({change:function(e){t.change(e)},defaultColor:e(this).attr("data-default")})})},validate:function(t,n){for(var r in t){if(r=="background-image")t[r]="url("+t[r]+")";if(r=="border-width"){t["border-style"]="solid";e(".easingsliderlite-shadow").css({"margin-left":t[r]+"px"})}if(r=="height"&&n==".easingsliderlite-arrows")t["margin-top"]="-"+Math.floor(t[r]/2)+"px";if(r=="shadow-enable"){t["display"]=t[r]=="true"?"block":"none";if(e("img",n).length==0)e(n).append('<img src="'+e('input[data-property="shadow-image"]').val()+'" alt="" />');delete t[r]}if(r=="shadow-image"){e(n).html('<img src="'+t[r]+'" alt="" />');delete t[r]}if(r=="width"||r=="height"||r=="border-width"||r=="border-radius")t[r]=t[r]+"px"}return t},change:function(t){var n=t.target.name.split("["),r=n[0],i=n[1].replace("]",""),s=this.model.get(r),o={},u={};s[i]=t.target.value;o[r]=s;this.model.set(o).trigger("change");u[t.target.dataset.property]=t.target.value;e(t.target.dataset.selector).css(this.validate(u,t.target.dataset.selector))},render:function(){this.$el.find(".wp-full-overlay").animate({opacity:1},{duration:200})}});e(document).ready(function(){window.customizeView=(new CustomizeView({model:new Customizations(JSON.parse(e("#customizations").val()))})).render()})})(jQuery)
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Homepage: http://easingslider.com
|
|
3 |
Contributors: MatthewRuddy
|
4 |
Tags: slideshow, slider, slides, slide, gallery, images, image, responsive, mobile, jquery, javascript, featured, content
|
5 |
Requires at least: 3.5
|
6 |
-
Tested up to: 3.
|
7 |
-
Stable tag: 2.1.
|
8 |
|
9 |
Easing Slider "Lite" is an easy to use slideshow plugin. Simple and lightweight, built with native WordPress functionality.
|
10 |
|
@@ -77,6 +77,10 @@ This is easy. When viewing the <strong>"Edit Slideshow"</strong> Easing Slider "
|
|
77 |
|
78 |
== Changelog ==
|
79 |
|
|
|
|
|
|
|
|
|
80 |
= 2.1.3 =
|
81 |
* Plugin is now fully styled to fit thew new WordPress v3.8+ administration area.
|
82 |
* Fixed a bug that could cause "Add Images" to fail if the selected image doesn't have a thumbnail.
|
3 |
Contributors: MatthewRuddy
|
4 |
Tags: slideshow, slider, slides, slide, gallery, images, image, responsive, mobile, jquery, javascript, featured, content
|
5 |
Requires at least: 3.5
|
6 |
+
Tested up to: 3.9
|
7 |
+
Stable tag: 2.1.4
|
8 |
|
9 |
Easing Slider "Lite" is an easy to use slideshow plugin. Simple and lightweight, built with native WordPress functionality.
|
10 |
|
77 |
|
78 |
== Changelog ==
|
79 |
|
80 |
+
= 2.1.4 =
|
81 |
+
* Fixed bug that broke media uploader in WordPress v3.9.
|
82 |
+
* Fixed bug that prevented "Customize" panel from loading in WordPress v3.9.
|
83 |
+
|
84 |
= 2.1.3 =
|
85 |
* Plugin is now fully styled to fit thew new WordPress v3.8+ administration area.
|
86 |
* Fixed a bug that could cause "Add Images" to fail if the selected image doesn't have a thumbnail.
|