Easing Slider - Version 2.1.3

Version Description

  • Plugin is now fully styled to fit thew new WordPress v3.8+ administration area.
  • Fixed a bug that could cause "Add Images" to fail if the selected image doesn't have a thumbnail.
Download this release

Release Info

Developer MatthewRuddy
Plugin Icon 128x128 Easing Slider
Version 2.1.3
Comparing to
See all releases

Code changes from version 2.1.2 to 2.1.3

css/admin.css CHANGED
@@ -284,4 +284,37 @@ textarea.success {
284
  /** ===== Additional ===== */
285
  .supports-drag-drop {
286
  z-index: 1000;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
287
  }
284
  /** ===== Additional ===== */
285
  .supports-drag-drop {
286
  z-index: 1000;
287
+ }
288
+
289
+ .easingsliderlite-updated-admin .welcome-panel {
290
+ padding-bottom: 11px;
291
+ }
292
+
293
+ .easingsliderlite-updated-admin .sidebar-name {
294
+ border-bottom: 1px solid #eee;
295
+ }
296
+
297
+ .easingsliderlite-updated-admin .closed .sidebar-name {
298
+ border-width: 0;
299
+ }
300
+
301
+ .easingsliderlite-updated-admin .sidebar-name h3 {
302
+ padding: 15px;
303
+ }
304
+
305
+ .easingsliderlite-updated-admin .sidebar-name-arrow:before {
306
+ top: 4px !important;
307
+ }
308
+
309
+ .easingsliderlite-updated-admin .widgets-holder-wrap {
310
+ margin-bottom: 9px;
311
+ }
312
+
313
+ .easingsliderlite-updated-admin .settings-container .sidebar-content {
314
+ padding-left: 15px;
315
+ padding-right: 15px;
316
+ }
317
+
318
+ .easingsliderlite-updated-admin .customize-container {
319
+ background-image: none !important;
320
  }
css/admin.min.css CHANGED
@@ -1 +1 @@
1
- .pull-left{float:left}.pull-right{float:right}.clearfix{*zoom:1}.clearfix::before,.clearfix::after{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,0.3)!important;box-shadow:1px 1px 2px rgba(213,147,146,0.3)!important}input.success,textarea.success{border-color:#468847!important;-webkit-box-shadow:1px 1px 2px rgba(122,186,123,0.3)!important;box-shadow:1px 1px 2px rgba(122,186,123,0.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:bold;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:bold;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-title,.media-frame-router,.media-frame-content,.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}.supports-drag-drop{z-index:1000}
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}.supports-drag-drop{z-index:1000}.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 .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.2
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.2';
64
 
65
  /**
66
  * Our array of Easing Slider "Lite" admin pages. These are used to conditionally load scripts.
@@ -76,6 +76,13 @@ class EasingSliderLite {
76
  */
77
  public $admin_messages = array();
78
 
 
 
 
 
 
 
 
79
  /**
80
  * Flag for indicating that we are on a EasingSliderLite plugin page
81
  *
@@ -127,9 +134,14 @@ class EasingSliderLite {
127
  */
128
  private function __construct() {
129
 
 
 
130
  /** Load plugin textdomain for language capabilities */
131
  load_plugin_textdomain( 'easingsliderlite', false, dirname( plugin_basename( self::get_file() ) ) . '/languages' );
132
 
 
 
 
133
  /** Activation and deactivation hooks. Static methods are used to avoid activation/uninstallation scoping errors. */
134
  if ( is_multisite() ) {
135
  register_activation_hook( __FILE__, array( __CLASS__, 'do_network_activation' ) );
@@ -152,6 +164,7 @@ class EasingSliderLite {
152
  add_action( 'init', array( $this, 'register_all_scripts' ) );
153
  add_action( 'admin_menu', array( $this, 'add_menus' ) );
154
  add_action( 'admin_menu', array( $this, 'do_actions' ) );
 
155
  add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_admin_styles' ) );
156
  add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_admin_scripts' ) );
157
  add_action( 'media_buttons', array( $this, 'add_media_button' ), 11 );
@@ -547,6 +560,10 @@ class EasingSliderLite {
547
 
548
  global $wp_admin_bar;
549
 
 
 
 
 
550
  /** Add the new toplevel menu */
551
  $wp_admin_bar->add_menu(
552
  array(
@@ -590,20 +607,9 @@ class EasingSliderLite {
590
  * @since 2.0
591
  */
592
  function add_media_button( $editor_id ) {
593
- $img = '<span class="insert-slideshow-icon"></span>';
 
594
  ?>
595
- <style type="text/css">
596
- .insert-slideshow.button .insert-slideshow-icon {
597
- width: 16px;
598
- height: 16px;
599
- margin-top: -1px;
600
- margin-left: -1px;
601
- margin-right: 4px;
602
- display: inline-block;
603
- vertical-align: text-top;
604
- background: url(<?php echo plugins_url( dirname( plugin_basename( self::get_file() ) ) . DIRECTORY_SEPARATOR .'images'. DIRECTORY_SEPARATOR .'menu_icon_single_grey.png' ); ?>) no-repeat top left;
605
- }
606
- </style>
607
  <script type="text/javascript">
608
  function insertSlideshow() {
609
  send_to_editor( '[easingsliderlite]' );
@@ -611,8 +617,47 @@ class EasingSliderLite {
611
  return false;
612
  }
613
  </script>
614
- <a onClick="insertSlideshow();" class="button insert-slideshow" data-editor="<?php echo esc_attr( $editor_id ); ?>" title="<?php _e( 'Add a slideshow', 'easingsliderlite' ); ?>"><?php echo $img . __( 'Add Slideshow', 'easingsliderlite' ); ?></a>
615
  <?php
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
616
  }
617
 
618
  /**
@@ -836,6 +881,22 @@ class EasingSliderLite {
836
  return trim( $slideshow );
837
 
838
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
839
 
840
  /**
841
  * Register all admin stylesheets
@@ -881,6 +942,11 @@ class EasingSliderLite {
881
  if ( !in_array( $hook, $this->whitelist ) )
882
  return;
883
 
 
 
 
 
 
884
  /** Load styles */
885
  wp_enqueue_style( 'esl-admin' );
886
  do_action( 'easingsliderlite_enqueue_admin_styles' );
@@ -940,7 +1006,9 @@ class EasingSliderLite {
940
  return;
941
 
942
  /** Slide template */
943
- echo '<script type="text/html" id="tmpl-slide"><div class="thumbnail" data-id="{{ data.id }}"><a href="#" class="delete-button"></a><img src="{{ data.sizes.thumbnail.url }}" alt="{{ data.alt }}" /></div></script>';
 
 
944
 
945
  /** Slide editor template */
946
  echo '<script type="text/html" id="tmpl-edit-slide">';
3
  /*
4
  Plugin Name: Easing Slider "Lite"
5
  Plugin URI: http://easingslider.com/
6
+ Version: 2.1.3
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.3';
64
 
65
  /**
66
  * Our array of Easing Slider "Lite" admin pages. These are used to conditionally load scripts.
76
  */
77
  public $admin_messages = array();
78
 
79
+ /**
80
+ * A handy flag for identifying if we are currently using the new WordPress admin area
81
+ *
82
+ * @since 2.1.3
83
+ */
84
+ private $is_updated_admin = false;
85
+
86
  /**
87
  * Flag for indicating that we are on a EasingSliderLite plugin page
88
  *
134
  */
135
  private function __construct() {
136
 
137
+ global $wp_version;
138
+
139
  /** Load plugin textdomain for language capabilities */
140
  load_plugin_textdomain( 'easingsliderlite', false, dirname( plugin_basename( self::get_file() ) ) . '/languages' );
141
 
142
+ /** Flag the new admin area if appropriate */
143
+ $this->is_updated_admin = ( version_compare( $wp_version, '3.8', '>=' ) ) ? true : false;
144
+
145
  /** Activation and deactivation hooks. Static methods are used to avoid activation/uninstallation scoping errors. */
146
  if ( is_multisite() ) {
147
  register_activation_hook( __FILE__, array( __CLASS__, 'do_network_activation' ) );
164
  add_action( 'init', array( $this, 'register_all_scripts' ) );
165
  add_action( 'admin_menu', array( $this, 'add_menus' ) );
166
  add_action( 'admin_menu', array( $this, 'do_actions' ) );
167
+ add_action( 'admin_body_class', array( $this, 'admin_body_classes' ) );
168
  add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_admin_styles' ) );
169
  add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_admin_scripts' ) );
170
  add_action( 'media_buttons', array( $this, 'add_media_button' ), 11 );
560
 
561
  global $wp_admin_bar;
562
 
563
+ /** Avoid showing these links when not logged into admin (prevents buddypress bug) */
564
+ if ( ! is_admin() )
565
+ return;
566
+
567
  /** Add the new toplevel menu */
568
  $wp_admin_bar->add_menu(
569
  array(
607
  * @since 2.0
608
  */
609
  function add_media_button( $editor_id ) {
610
+
611
+ /** Load button javascript */
612
  ?>
 
 
 
 
 
 
 
 
 
 
 
 
613
  <script type="text/javascript">
614
  function insertSlideshow() {
615
  send_to_editor( '[easingsliderlite]' );
617
  return false;
618
  }
619
  </script>
 
620
  <?php
621
+
622
+ /** Show appropriate button and styling */
623
+ if ( $this->is_updated_admin ) {
624
+
625
+ /** WordPress v3.8+ button */
626
+ ?>
627
+ <style type="text/css">
628
+ .insert-slideshow.button .insert-slideshow-icon:before {
629
+ content: "\f128";
630
+ font: 400 18px/1 dashicons;
631
+ speak: none;
632
+ -webkit-font-smoothing: antialiased;
633
+ -moz-osx-font-smoothing: grayscale;
634
+ }
635
+ </style>
636
+ <a onClick="insertSlideshow();" class="button insert-slideshow" data-editor="<?php echo esc_attr( $editor_id ); ?>" title="<?php _e( 'Add a slideshow', 'easingsliderlite' ); ?>"><?php echo '<span class="wp-media-buttons-icon insert-slideshow-icon"></span>' . __( ' Add Slideshow', 'easingsliderlite' ); ?></a>
637
+ <?php
638
+
639
+ }
640
+ else {
641
+
642
+ /** Backwards compatibility button */
643
+ ?>
644
+ <style type="text/css">
645
+ .insert-slideshow.button .insert-slideshow-icon {
646
+ width: 16px;
647
+ height: 16px;
648
+ margin-top: -1px;
649
+ margin-left: -1px;
650
+ margin-right: 4px;
651
+ display: inline-block;
652
+ vertical-align: text-top;
653
+ background: url(<?php echo plugins_url( dirname( plugin_basename( self::get_file() ) ) . DIRECTORY_SEPARATOR .'images'. DIRECTORY_SEPARATOR .'menu_icon_single_grey.png' ); ?>) no-repeat top left;
654
+ }
655
+ </style>
656
+ <a onClick="insertSlideshow();" class="button insert-slideshow" data-editor="<?php echo esc_attr( $editor_id ); ?>" title="<?php _e( 'Add a slideshow', 'easingsliderlite' ); ?>"><?php echo '<span class="insert-slideshow-icon"></span>' . __( 'Add Slideshow', 'easingsliderlite' ); ?></a>
657
+ <?php
658
+
659
+ }
660
+
661
  }
662
 
663
  /**
881
  return trim( $slideshow );
882
 
883
  }
884
+
885
+ /**
886
+ * Adds our admin specific body classes
887
+ *
888
+ * @since 2.1.3
889
+ */
890
+ public function admin_body_classes( $classes ) {
891
+
892
+ /** Add a reference to the new-look flat WordPress admin area if appropriate */
893
+ if ( $this->is_updated_admin ) {
894
+ $classes .= 'easingsliderlite-updated-admin';
895
+ }
896
+
897
+ return $classes;
898
+
899
+ }
900
 
901
  /**
902
  * Register all admin stylesheets
942
  if ( !in_array( $hook, $this->whitelist ) )
943
  return;
944
 
945
+ /** Load dashicons if using the new flat administration area */
946
+ if ( $this->is_updated_admin ) {
947
+ wp_enqueue_style( 'dashicons' );
948
+ }
949
+
950
  /** Load styles */
951
  wp_enqueue_style( 'esl-admin' );
952
  do_action( 'easingsliderlite_enqueue_admin_styles' );
1006
  return;
1007
 
1008
  /** Slide template */
1009
+ echo '<script type="text/html" id="tmpl-slide">';
1010
+ require dirname( self::get_file() ) . DIRECTORY_SEPARATOR .'templates'. DIRECTORY_SEPARATOR .'editslideshow-thumbnail.php';
1011
+ echo '</script>';
1012
 
1013
  /** Slide editor template */
1014
  echo '<script type="text/html" id="tmpl-edit-slide">';
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.6
7
- Stable tag: 2.1.2
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.2 =
81
  * Added accordion CSS to fix WordPress 3.6 bugs.
82
  * Fixed clearing and border edge case CSS issues
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.8
7
+ Stable tag: 2.1.3
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.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.
83
+
84
  = 2.1.2 =
85
  * Added accordion CSS to fix WordPress 3.6 bugs.
86
  * Fixed clearing and border edge case CSS issues
templates/editslideshow-thumbnail.php ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
1
+ <# var thumbnail = data.sizes.thumbnail || data.sizes.medium || data.sizes.large || data.sizes.full || { url: data.url } #>
2
+
3
+ <div class="thumbnail" data-id="{{ data.id }}">
4
+ <a href="#" class="delete-button"></a>
5
+ <img src="{{ thumbnail.url }}" alt="{{ data.alt }}" />
6
+ </div>
templates/editslideshow.php CHANGED
@@ -21,9 +21,33 @@
21
  <div class="inner clearfix">
22
  <?php
23
  /** We display the current slides anyway using PHP (rather than Javascript) to avoid any rendering delays */
24
- if ( $s->slides )
25
- foreach ( $s->slides as $slide )
26
- echo "<div class='thumbnail' data-id='{$slide->id}'><a href='#' class='delete-button'></a><img src='{$slide->sizes->thumbnail->url}' alt='{$slide->alt}' /></div>";
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
27
  ?>
28
  </div>
29
  </div>
21
  <div class="inner clearfix">
22
  <?php
23
  /** We display the current slides anyway using PHP (rather than Javascript) to avoid any rendering delays */
24
+ if ( $s->slides ) {
25
+ foreach ( $s->slides as $slide ) {
26
+
27
+ /** Pretty rebust set of fallbacks for the slide thumbnail! Shouldn't ever fail. */
28
+ if (isset($slide->sizes->thumbnail)) {
29
+ $thumbnail = $slide->sizes->thumbnail->url;
30
+ }
31
+ else if (isset($slide->sizes->small)) {
32
+ $thumbnail = $slide->sizes->small->url;
33
+ }
34
+ else if (isset($slide->sizes->medium)) {
35
+ $thumbnail = $slide->sizes->medium->url;
36
+ }
37
+ else if (isset($slide->sizes->large)) {
38
+ $thumbnail = $slide->sizes->large->url;
39
+ }
40
+ else if (isset($slide->sizes->full)) {
41
+ $thumbnail = $slide->sizes->full->url;
42
+ }
43
+ else {
44
+ $thumbnail = $slide->url;
45
+ }
46
+
47
+ echo "<div class='thumbnail' data-id='{$slide->id}'><a href='#' class='delete-button'></a><img src='{$thumbnail}' alt='{$slide->alt}' /></div>";
48
+
49
+ }
50
+ }
51
  ?>
52
  </div>
53
  </div>