Easing Slider - Version 2.1.1

Version Description

  • Fixed all IE bugs. Now working perfectly in IE7+.
  • Separated legacy code into its own separate file.
  • Added languages file with .pot for translating the plugin.
  • Fixed some textual mistakes and commenting errors.
  • Fixed backface visbility bugs in Webkit browsers.
  • Improved reliability of responsive functionality on plugin initialization.
  • Fixed escaping issues related to slashes and quotation marks in strings.
  • Improved admin notices functionality: now using WordPress native hooks.
Download this release

Release Info

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

Code changes from version 2.1 to 2.1.1

css/slideshow.css CHANGED
@@ -1,6 +1,5 @@
1
  /*
2
- * Easing Slider Dev
3
- * @version 2.0
4
  *
5
  * Slideshow CSS. Advised you don't make changes to this. Instead, add styling changing to your theme's style.css file.
6
  *
@@ -63,6 +62,7 @@
63
  .easingsliderlite-viewport {
64
  position: relative !important;
65
  overflow: hidden !important;
 
66
  }
67
 
68
  .easingsliderlite-slides-container {
@@ -97,6 +97,11 @@
97
  transition: none;
98
  }
99
 
 
 
 
 
 
100
  .easingsliderlite.use-slide .easingsliderlite-slide {
101
  float: left !important;
102
  position: relative !important;
@@ -126,32 +131,6 @@
126
  display: block !important;
127
  }
128
 
129
- .easingsliderlite-slide-content {
130
- position: absolute !important;
131
- top: 0;
132
- left: 0;
133
- }
134
-
135
- .easingsliderlite-slide-content .caption.left {
136
- top: 0 !important;
137
- left: 0 !important;
138
- }
139
-
140
- .easingsliderlite-slide-content .caption.right {
141
- top: 0 !important;
142
- right: 0 !important;
143
- }
144
-
145
- .easingsliderlite-slide-content .caption.top {
146
- top: 0 !important;
147
- left: 0 !important;
148
- }
149
-
150
- .easingsliderlite-slide-content .caption.bottom {
151
- bottom: 0 !important;
152
- left: 0 !important;
153
- }
154
-
155
  .easingsliderlite-shadow,
156
  .easingsliderlite-shadow img {
157
  padding: 0 !important;
@@ -306,6 +285,8 @@
306
  background-repeat: no-repeat;
307
  background-position: 0 0;
308
  display: inline-block;
 
 
309
  z-index: 30;
310
  cursor: pointer;
311
  }
1
  /*
2
+ * Easing Slider "Lite"
 
3
  *
4
  * Slideshow CSS. Advised you don't make changes to this. Instead, add styling changing to your theme's style.css file.
5
  *
62
  .easingsliderlite-viewport {
63
  position: relative !important;
64
  overflow: hidden !important;
65
+ width: 100% !important;
66
  }
67
 
68
  .easingsliderlite-slides-container {
97
  transition: none;
98
  }
99
 
100
+ .easingsliderlite.use-css3 .easingsliderlite-slide {
101
+ -webkit-perspective: 1000;
102
+ -webkit-backface-visibility: hidden;
103
+ }
104
+
105
  .easingsliderlite.use-slide .easingsliderlite-slide {
106
  float: left !important;
107
  position: relative !important;
131
  display: block !important;
132
  }
133
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
134
  .easingsliderlite-shadow,
135
  .easingsliderlite-shadow img {
136
  padding: 0 !important;
285
  background-repeat: no-repeat;
286
  background-position: 0 0;
287
  display: inline-block;
288
+ *display: inline; /** IE7 hack */
289
+ zoom: 1; /** IE7 hack */
290
  z-index: 30;
291
  cursor: pointer;
292
  }
css/slideshow.min.css CHANGED
@@ -1,2 +1 @@
1
- .easingsliderlite,.easingsliderlite div,.easingsliderlite a,.easingsliderlite img{margin:0!important;padding:0!important;line-height:0!important;outline:none!important}.easingsliderlite div,.easingsliderlite a .easingsliderlite img{border:0!important}.easingsliderlite{position:relative!important}.easingsliderlite-preload{background:url(../images/loading.gif) no-repeat center center #fff!important;width:100%!important;height:100%!important;position:absolute!important;top:0!important;left:0!important;z-index:50!important}.easingsliderlite-arrows.has-hover{opacity:0}.easingsliderlite:hover .easingsliderlite-arrows.has-hover{opacity:1}.easingsliderlite-pagination.has-hover{opacity:0}.easingsliderlite:hover .easingsliderlite-pagination.has-hover{opacity:1}.easingsliderlite-viewport{position:relative!important;overflow:hidden!important}.easingsliderlite-slides-container{overflow:hidden!important;position:absolute!important;top:0;left:0;display:block!important}.easingsliderlite.use-css3 .easingsliderlite-slides-container{-webkit-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0);-ms-transform:translate3d(0,0,0);-o-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}.easingsliderlite.use-slide.use-css3 .easingsliderlite-slides-container{-webkit-transition:-webkit-transform .5s ease;-moz-transition:-moz-transform .5s ease;-ms-transition:-ms-transform .5s ease;-o-transition:-o-transform .5s ease;transition:transform .5s ease}.easingsliderlite.use-fade.use-css3 .easingsliderlite-slides-container{-webkit-transition:none;-moz-transition:none;-ms-transition:none;-o-transition:none;transition:none}.easingsliderlite.use-slide .easingsliderlite-slide{float:left!important;position:relative!important}.easingsliderlite.use-fade .easingsliderlite-slide{position:absolute!important;top:0!important;left:0!important}.easingsliderlite.use-fade .easingsliderlite-slide.active{z-index:10}.easingsliderlite-slide{width:100%}.easingsliderlite-slide>a{display:block!important}.easingsliderlite-image{width:100%!important;max-width:100%!important;display:block!important}.easingsliderlite-slide-content{position:absolute!important;top:0;left:0}.easingsliderlite-slide-content .caption.left{top:0!important;left:0!important}.easingsliderlite-slide-content .caption.right{top:0!important;right:0!important}.easingsliderlite-slide-content .caption.top{top:0!important;left:0!important}.easingsliderlite-slide-content .caption.bottom{bottom:0!important;left:0!important}.easingsliderlite-shadow,.easingsliderlite-shadow img{padding:0!important;line-height:0!important;outline:none!important;-webkit-box-shadow:none!important;-moz-box-shadow:none!important;box-shadow:none!important}.easingsliderlite-shadow img{margin:0!important;width:100%}.easingsliderlite-arrows{position:absolute;top:46%;width:30px;height:30px;background-repeat:no-repeat;z-index:30;cursor:pointer;opacity:0;-webkit-transition:opacity .25s linear;-moz-transition:opacity .25s linear;-ms-transition:opacity .25s linear;-o-transition:opacity .25s linear;transition:opacity .25s linear}.easingsliderlite-arrows.easingsliderlite-next{background-image:url(../images/slideshow_arrow_next.png);background-position:top left}.easingsliderlite-arrows.easingsliderlite-prev{background-image:url(../images/slideshow_arrow_prev.png);background-position:top right}.easingsliderlite-next.inside{right:10px}.easingsliderlite-next.outside{right:-40px;padding-left:20px}.easingsliderlite-prev.inside{left:10px}.easingsliderlite-prev.outside{left:-40px;padding-right:20px}.easingsliderlite-pagination{position:absolute;z-index:30;opacity:0;-webkit-transition:opacity .25s linear;-moz-transition:opacity .25s linear;-ms-transition:opacity .25s linear;-o-transition:opacity .25s linear;transition:opacity .25s linear}.easingsliderlite-pagination.inside.bottom-left{bottom:10px;left:10px}.easingsliderlite-pagination.inside.bottom-right{bottom:10px;right:10px}.easingsliderlite-pagination.inside.bottom-center{bottom:10px;left:0;width:100%;text-align:center}.easingsliderlite-pagination.inside.top-left{top:10px;left:10px}.easingsliderlite-pagination.inside.top-right{top:10px;right:10px}.easingsliderlite-pagination.inside.top-center{top:10px;left:0;width:100%;text-align:center}.easingsliderlite-pagination.outside.bottom-left{bottom:-25px;left:0;padding-top:20px}.easingsliderlite-pagination.outside.bottom-right{bottom:-25px;right:0;padding-top:20px}.easingsliderlite-pagination.outside.bottom-center{bottom:-25px;left:0;width:100%;text-align:center;padding-top:20px}.easingsliderlite-pagination.outside.top-left{top:-25px;left:0;padding-bottom:20px}.easingsliderlite-pagination.outside.top-right{top:-25px;right:0;padding-bottom:20px}.easingsliderlite-pagination.outside.top-center{top:-25px;left:0;width:100%;text-align:center;padding-bottom:20px}.easingsliderlite-icon{width:15px;height:15px;margin:0;padding:0;background-image:url(../images/slideshow_icon_inactive.png);background-repeat:no-repeat;background-position:0 0;display:inline-block;z-index:30;cursor:pointer}
2
- .easingsliderlite-icon:last-child{margin-right:0}.easingsliderlite-icon.active{background-image:url(../images/slideshow_icon_active.png)}
1
+ .easingsliderlite,.easingsliderlite div,.easingsliderlite a,.easingsliderlite img{margin:0!important;padding:0!important;line-height:0!important;outline:none!important}.easingsliderlite div,.easingsliderlite a .easingsliderlite img{border:0!important}.easingsliderlite{position:relative!important}.easingsliderlite-preload{background:url(../images/loading.gif) no-repeat center center #fff!important;width:100%!important;height:100%!important;position:absolute!important;top:0!important;left:0!important;z-index:50!important}.easingsliderlite-arrows.has-hover{opacity:0}.easingsliderlite:hover .easingsliderlite-arrows.has-hover{opacity:1}.easingsliderlite-pagination.has-hover{opacity:0}.easingsliderlite:hover .easingsliderlite-pagination.has-hover{opacity:1}.easingsliderlite-viewport{position:relative!important;overflow:hidden!important;width:100%!important}.easingsliderlite-slides-container{overflow:hidden!important;position:absolute!important;top:0;left:0;display:block!important}.easingsliderlite.use-css3 .easingsliderlite-slides-container{-webkit-transform:translate3d(0,0,0);-moz-transform:translate3d(0,0,0);-ms-transform:translate3d(0,0,0);-o-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}.easingsliderlite.use-slide.use-css3 .easingsliderlite-slides-container{-webkit-transition:-webkit-transform .5s ease;-moz-transition:-moz-transform .5s ease;-ms-transition:-ms-transform .5s ease;-o-transition:-o-transform .5s ease;transition:transform .5s ease}.easingsliderlite.use-fade.use-css3 .easingsliderlite-slides-container{-webkit-transition:none;-moz-transition:none;-ms-transition:none;-o-transition:none;transition:none}.easingsliderlite.use-css3 .easingsliderlite-slide{-webkit-perspective:1000;-webkit-backface-visibility:hidden}.easingsliderlite.use-slide .easingsliderlite-slide{float:left!important;position:relative!important}.easingsliderlite.use-fade .easingsliderlite-slide{position:absolute!important;top:0!important;left:0!important}.easingsliderlite.use-fade .easingsliderlite-slide.active{z-index:10}.easingsliderlite-slide{width:100%}.easingsliderlite-slide>a{display:block!important}.easingsliderlite-image{width:100%!important;max-width:100%!important;display:block!important}.easingsliderlite-shadow,.easingsliderlite-shadow img{padding:0!important;line-height:0!important;outline:none!important;-webkit-box-shadow:none!important;-moz-box-shadow:none!important;box-shadow:none!important}.easingsliderlite-shadow img{margin:0!important;width:100%}.easingsliderlite-arrows{position:absolute;top:46%;width:30px;height:30px;background-repeat:no-repeat;z-index:30;cursor:pointer;opacity:0;-webkit-transition:opacity .25s linear;-moz-transition:opacity .25s linear;-ms-transition:opacity .25s linear;-o-transition:opacity .25s linear;transition:opacity .25s linear}.easingsliderlite-arrows.easingsliderlite-next{background-image:url(../images/slideshow_arrow_next.png);background-position:top left}.easingsliderlite-arrows.easingsliderlite-prev{background-image:url(../images/slideshow_arrow_prev.png);background-position:top right}.easingsliderlite-next.inside{right:10px}.easingsliderlite-next.outside{right:-40px;padding-left:20px}.easingsliderlite-prev.inside{left:10px}.easingsliderlite-prev.outside{left:-40px;padding-right:20px}.easingsliderlite-pagination{position:absolute;z-index:30;opacity:0;-webkit-transition:opacity .25s linear;-moz-transition:opacity .25s linear;-ms-transition:opacity .25s linear;-o-transition:opacity .25s linear;transition:opacity .25s linear}.easingsliderlite-pagination.inside.bottom-left{bottom:10px;left:10px}.easingsliderlite-pagination.inside.bottom-right{bottom:10px;right:10px}.easingsliderlite-pagination.inside.bottom-center{bottom:10px;left:0;width:100%;text-align:center}.easingsliderlite-pagination.inside.top-left{top:10px;left:10px}.easingsliderlite-pagination.inside.top-right{top:10px;right:10px}.easingsliderlite-pagination.inside.top-center{top:10px;left:0;width:100%;text-align:center}.easingsliderlite-pagination.outside.bottom-left{bottom:-25px;left:0;padding-top:20px}.easingsliderlite-pagination.outside.bottom-right{bottom:-25px;right:0;padding-top:20px}.easingsliderlite-pagination.outside.bottom-center{bottom:-25px;left:0;width:100%;text-align:center;padding-top:20px}.easingsliderlite-pagination.outside.top-left{top:-25px;left:0;padding-bottom:20px}.easingsliderlite-pagination.outside.top-right{top:-25px;right:0;padding-bottom:20px}.easingsliderlite-pagination.outside.top-center{top:-25px;left:0;width:100%;text-align:center;padding-bottom:20px}.easingsliderlite-icon{width:15px;height:15px;margin:0;padding:0;background-image:url(../images/slideshow_icon_inactive.png);background-repeat:no-repeat;background-position:0 0;display:inline-block;*display:inline;zoom:1;z-index:30;cursor:pointer}.easingsliderlite-icon:last-child{margin-right:0}.easingsliderlite-icon.active{background-image:url(../images/slideshow_icon_active.png)}
 
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,10 +60,10 @@ 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
67
  *
68
  * @since 2.0.1.2
69
  */
@@ -140,10 +140,12 @@ class EasingSliderLite {
140
  register_uninstall_hook( __FILE__, array( __CLASS__, 'do_uninstall' ) );
141
  }
142
 
 
 
 
 
143
  /** Plugin shortcodes */
144
  add_shortcode( 'easingsliderlite', array( $this, 'do_shortcode' ) );
145
- add_shortcode( 'rivasliderlite', array( $this, 'do_shortcode' ) );
146
- add_shortcode( 'easingslider', array( $this, 'do_shortcode' ) );
147
 
148
  /** Plugin actions */
149
  add_action( 'init', array( $this, 'register_all_styles' ) );
@@ -619,8 +621,10 @@ class EasingSliderLite {
619
  * @since 2.0
620
  */
621
  public function queue_message( $text, $type ) {
 
 
622
  $message = "<div class='message $type'><p>$text</p></div>";
623
- add_action( 'easingsliderlite_admin_messages', create_function( '', 'echo "'. $message .'";' ) );
624
  }
625
 
626
  /**
@@ -672,26 +676,6 @@ class EasingSliderLite {
672
  if ( isset( $_GET['disable_welcome_panel'] ) )
673
  update_option( 'easingsliderlite_disable_welcome_panel', filter_var( $_GET['disable_welcome_panel'], FILTER_VALIDATE_BOOLEAN ) );
674
 
675
- /** Imports legacy Easing Slider setting */
676
- if ( isset( $_POST['legacy-import'] ) ) {
677
-
678
- /** Security check */
679
- if ( !$this->security_check( 'legacy-import', $page ) ) {
680
- wp_die( __( 'Security check has failed. Import has been prevented. Please try again.', 'easingsliderlite' ) );
681
- exit();
682
- }
683
-
684
- /** Uninstall the plugin (thus removing its settings) */
685
- $this->uninstall();
686
-
687
- /** Import old settings */
688
- ESL_Upgrade::do_major_upgrade();
689
-
690
- /** Queue message */
691
- return $this->queue_message( __( 'Easing Slider settings have been imported.', 'easingsliderlite' ), 'updated' );
692
-
693
- }
694
-
695
  /** Save or update a slideshow. Whichever is appropriate. */
696
  if ( isset( $_POST['save'] ) ) {
697
 
@@ -758,53 +742,6 @@ class EasingSliderLite {
758
  */
759
  public function do_settings_actions( $page ) {
760
 
761
- /** Imports legacy Easing Slider setting */
762
- if ( isset( $_POST['legacy-import'] ) ) {
763
-
764
- /** Security check */
765
- if ( !$this->security_check( 'legacy-import', $page ) ) {
766
- wp_die( __( 'Security check has failed. Import has been prevented. Please try again.', 'easingsliderlite' ) );
767
- exit();
768
- }
769
-
770
- /** Uninstall the plugin (thus removing its settings) */
771
- $this->uninstall();
772
-
773
- /** Import old settings */
774
- ESL_Upgrade::do_major_upgrade();
775
-
776
- /** Queue message */
777
- return $this->queue_message( __( 'Easing Slider settings have been imported.', 'easingsliderlite' ), 'updated' );
778
-
779
- }
780
-
781
- /** Removes legacy Easing Slider settings */
782
- if ( isset( $_POST['legacy-remove'] ) ) {
783
-
784
- /** Security check */
785
- if ( !$this->security_check( 'legacy-remove', $page ) ) {
786
- wp_die( __( 'Security check has failed. Removal has been prevented. Please try again.', 'easingsliderlite' ) );
787
- exit();
788
- }
789
-
790
- /** Horrific amount of options. God I was bad back then! */
791
- $options = array(
792
- 'sImg1', 'sImg2', 'sImg3', 'sImg4', 'sImg5', 'sImg6', 'sImg7', 'sImg8', 'sImg9', 'sImg10',
793
- 'sImglink1', 'sImglink2', 'sImglink3', 'sImglink4', 'sImglink5', 'sImglink6', 'sImglink7', 'sImglink8', 'sImglink9', 'sImglink10',
794
- 'activation', 'width', 'height', 'shadow', 'interval', 'transition', 'bgcolour', 'transpeed', 'bwidth', 'bcolour', 'preload', 'starts',
795
- 'buttons', 'source', 'featcat', 'featpost', 'padbottom', 'padleft', 'padright', 'paddingtop', 'shadowstyle', 'paginationon', 'paginationoff',
796
- 'next', 'prev', 'pageposition', 'pageside', 'permalink', 'jquery', 'easingslider_version'
797
- );
798
-
799
- /** Delete the options */
800
- foreach ( $options as $option )
801
- delete_option( $option );
802
-
803
- /** Queue message */
804
- return $this->queue_message( __( 'Easing Slider settings have been permanently deleted!', 'easingsliderlite' ), 'updated' );
805
-
806
- }
807
-
808
  /** Reset plugin */
809
  if ( isset( $_POST['reset'] ) ) {
810
 
@@ -928,7 +865,7 @@ class EasingSliderLite {
928
 
929
  /** Register scripts */
930
  wp_register_script( 'esl-admin', plugins_url( dirname( plugin_basename( self::get_file() ) ) . DIRECTORY_SEPARATOR .'js'. DIRECTORY_SEPARATOR .'admin'. $ext ), array( 'jquery', 'jquery-ui-sortable', 'backbone' ), self::$version, true );
931
- wp_register_script( 'esl-customizer', plugins_url( dirname( plugin_basename( self::get_file() ) ) . DIRECTORY_SEPARATOR .'js'. DIRECTORY_SEPARATOR .'customizer'. $ext ), array( 'jquery', 'backbone' ), self::$version );
932
  wp_register_script( 'esl-slideshow', plugins_url( dirname( plugin_basename( self::get_file() ) ) . DIRECTORY_SEPARATOR .'js'. DIRECTORY_SEPARATOR .'slideshow'. $ext ), false, self::$version );
933
 
934
  }
@@ -1056,7 +993,7 @@ class EasingSliderLite {
1056
  }
1057
 
1058
  /**
1059
- * Handy helper & legacy functions for displaying a slideshow
1060
  *
1061
  * @author Matthew Ruddy
1062
  * @since 2.0
@@ -1065,14 +1002,4 @@ if ( !function_exists( 'easingsliderlite' ) ) {
1065
  function easingsliderlite() {
1066
  echo ESL_Slideshow::get_instance()->display_slideshow();
1067
  }
1068
- }
1069
- if ( !function_exists( 'rivasliderlite' ) ) {
1070
- function rivasliderlite() {
1071
- echo ESL_Slideshow::get_instance()->display_slideshow();
1072
- }
1073
- }
1074
- if ( !function_exists( 'easing_slider' ) ) {
1075
- function easing_slider() {
1076
- echo ESL_Slideshow::get_instance()->display_slideshow();
1077
- }
1078
  }
3
  /*
4
  Plugin Name: Easing Slider "Lite"
5
  Plugin URI: http://easingslider.com/
6
+ Version: 2.1.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
  *
61
  * @since 2.0
62
  */
63
+ public static $version = '2.1.1';
64
 
65
  /**
66
+ * Our array of Easing Slider "Lite" admin pages. These are used to conditionally load scripts.
67
  *
68
  * @since 2.0.1.2
69
  */
140
  register_uninstall_hook( __FILE__, array( __CLASS__, 'do_uninstall' ) );
141
  }
142
 
143
+ /** Legacy functionality */
144
+ if ( apply_filters( 'easingsliderlite_legacy', __return_true() ) )
145
+ add_action( 'easingsliderlite', array( 'ESL_Legacy', 'init' ) );
146
+
147
  /** Plugin shortcodes */
148
  add_shortcode( 'easingsliderlite', array( $this, 'do_shortcode' ) );
 
 
149
 
150
  /** Plugin actions */
151
  add_action( 'init', array( $this, 'register_all_styles' ) );
621
  * @since 2.0
622
  */
623
  public function queue_message( $text, $type ) {
624
+ if ( !$this->is_easingsliderlite_page )
625
+ return;
626
  $message = "<div class='message $type'><p>$text</p></div>";
627
+ add_action( 'admin_notices', create_function( '', 'echo "'. $message .'";' ) );
628
  }
629
 
630
  /**
676
  if ( isset( $_GET['disable_welcome_panel'] ) )
677
  update_option( 'easingsliderlite_disable_welcome_panel', filter_var( $_GET['disable_welcome_panel'], FILTER_VALIDATE_BOOLEAN ) );
678
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
679
  /** Save or update a slideshow. Whichever is appropriate. */
680
  if ( isset( $_POST['save'] ) ) {
681
 
742
  */
743
  public function do_settings_actions( $page ) {
744
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
745
  /** Reset plugin */
746
  if ( isset( $_POST['reset'] ) ) {
747
 
865
 
866
  /** Register scripts */
867
  wp_register_script( 'esl-admin', plugins_url( dirname( plugin_basename( self::get_file() ) ) . DIRECTORY_SEPARATOR .'js'. DIRECTORY_SEPARATOR .'admin'. $ext ), array( 'jquery', 'jquery-ui-sortable', 'backbone' ), self::$version, true );
868
+ wp_register_script( 'esl-customizer', plugins_url( dirname( plugin_basename( self::get_file() ) ) . DIRECTORY_SEPARATOR .'js'. DIRECTORY_SEPARATOR .'customizer'. $ext ), array( 'jquery', 'backbone' ), self::$version );
869
  wp_register_script( 'esl-slideshow', plugins_url( dirname( plugin_basename( self::get_file() ) ) . DIRECTORY_SEPARATOR .'js'. DIRECTORY_SEPARATOR .'slideshow'. $ext ), false, self::$version );
870
 
871
  }
993
  }
994
 
995
  /**
996
+ * Slideshow helper function
997
  *
998
  * @author Matthew Ruddy
999
  * @since 2.0
1002
  function easingsliderlite() {
1003
  echo ESL_Slideshow::get_instance()->display_slideshow();
1004
  }
 
 
 
 
 
 
 
 
 
 
1005
  }
images/advert.png ADDED
Binary file
includes/Legacy.php ADDED
@@ -0,0 +1,258 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+
3
+ /**
4
+ * Legacy plugin functionality.
5
+ * All v1.x related functionality is located here.
6
+ *
7
+ * @author Matthew Ruddy
8
+ * @since 2.1.1
9
+ */
10
+ class ESL_Legacy {
11
+
12
+ /**
13
+ * Parent class object
14
+ *
15
+ * @since 2.1.1
16
+ */
17
+ private static $class;
18
+
19
+ /**
20
+ * Initialize legacy functionality
21
+ *
22
+ * @since 2.1.1
23
+ */
24
+ public static final function init( $class ) {
25
+
26
+ global $pagenow;
27
+
28
+ /** Store parent */
29
+ self::$class = $class;
30
+
31
+ /** Hook old shortcodes */
32
+ add_shortcode( 'rivasliderlite', array( $class, 'do_shortcode' ) );
33
+ add_shortcode( 'easingslider', array( $class, 'do_shortcode' ) );
34
+
35
+ /** Bail if there are no legacy settings to act upon */
36
+ if ( !get_option( 'easingslider_version' ) || !get_option( 'activation' ) || !get_option( 'sImg1' ) )
37
+ return;
38
+
39
+ /** Import settings admin notice */
40
+ if ( $pagenow == 'plugins.php' && !get_option( 'easingsliderlite_major_upgrade' ) )
41
+ add_action( 'admin_notices', create_function( '', '_e( "<div class=\'message updated\'><p>Don\'t forget to import your old Easing Slider settings. <a href=\'admin.php?page=easingsliderlite_edit_slideshow\'>Click here.</a></p></div>", "easingsliderlite" );' ) );
42
+
43
+ /** Hook actions */
44
+ add_action( 'easingsliderlite_edit_slideshow_actions', array( __CLASS__, 'do_legacy_import' ) );
45
+ add_action( 'easingsliderlite_edit_settings_actions', array( __CLASS__, 'do_legacy_import' ) );
46
+ add_action( 'easingsliderlite_edit_settings_actions', array( __CLASS__, 'do_legacy_remove' ) );
47
+ add_action( 'easingsliderlite_welcome_panel_before', array( __CLASS__, 'print_legacy_message' ) );
48
+ add_action( 'easingsliderlite_settings_after', array( __CLASS__, 'print_legacy_settings_field' ), 10, 2 );
49
+
50
+ }
51
+
52
+ /**
53
+ * Imports old settings from the old Easing Slider plugin (v1.x).
54
+ * We don't do this automatically in the ESL_Upgrade class. Instead, we give the user the choice through the 'Edit Slideshow' panel.
55
+ * This is because users were having issues with the plugin deactivating after upgrade, failing to fire the automatic process.
56
+ * Although this solution isn't ideal, it is the best failsafe.
57
+ *
58
+ * @since 2.1.1
59
+ */
60
+ public static final function legacy_import() {
61
+
62
+ /** Reset the plugin */
63
+ EasingSliderLite::get_instance()->uninstall();
64
+ EasingSliderLite::get_instance()->activate();
65
+
66
+ /** Get default slideshow settings */
67
+ $slideshow = EasingSliderLite::get_instance()->slideshow_defaults();
68
+
69
+ /** Transfer the settings */
70
+ $slideshow->dimensions->width = get_option( 'width' );
71
+ $slideshow->dimensions->height = get_option( 'height' );
72
+ $slideshow->dimensions->responsive = false;
73
+ $slideshow->transitions->effect = ( get_option( 'transition' ) == 'fade' ) ? 'fade' : 'slide';
74
+ $slideshow->transitions->duration = get_option( 'transpeed' );
75
+ $slideshow->navigation->arrows = ( get_option( 'buttons' ) == '' ) ? 'false' : 'true';
76
+ $slideshow->navigation->pagination = ( get_option( 'sPagination' ) == '' ) ? 'false' : 'true';
77
+ $slideshow->playback->pause = get_option( 'interval' );
78
+
79
+ /** Add the slides */
80
+ $slideshow->slides = array();
81
+ for ( $i = 1; $i <= 10; $i++ ) {
82
+
83
+ /** Check if the slide has an image. Bail if not. */
84
+ $image = get_option( "sImg{$i}" );
85
+ if ( empty( $image ) )
86
+ continue;
87
+
88
+ /** Resize the image and get its thumbnail */
89
+ $sizes = (object) array(
90
+ 'thumbnail' => (object) array(
91
+ 'url' => $image
92
+ )
93
+ );
94
+
95
+ /** Add the slide image & link */
96
+ $slideshow->slides[] = (object) array(
97
+ 'id' => $i,
98
+ 'url' => $image,
99
+ 'alt' => null,
100
+ 'title' => null,
101
+ 'link' => get_option( "sImgLink{$i}" ),
102
+ 'linkTarget' => '_blank',
103
+ 'sizes' => $sizes
104
+ );
105
+
106
+ }
107
+
108
+ /** Update the slideshow settings */
109
+ update_option( 'easingsliderlite_slideshow', $slideshow );
110
+
111
+ /** Flag upgrade */
112
+ update_option( 'easingsliderlite_major_upgrade', 1 );
113
+
114
+ }
115
+
116
+ /**
117
+ * Does a legacy settings import
118
+ *
119
+ * @since 2.1.1
120
+ */
121
+ public static final function do_legacy_import( $page ) {
122
+
123
+ /** Imports legacy Easing Slider setting */
124
+ if ( isset( $_POST['legacy-import'] ) ) {
125
+
126
+ /** Security check */
127
+ if ( !self::$class->security_check( 'legacy-import', $page ) ) {
128
+ wp_die( __( 'Security check has failed. Import has been prevented. Please try again.', 'easingsliderlite' ) );
129
+ exit();
130
+ }
131
+
132
+ /** Do upgrade (thus importing settings) */
133
+ self::legacy_import();
134
+
135
+ /** Queue message */
136
+ return self::$class->queue_message( __( 'Easing Slider settings have been imported.', 'easingsliderlite' ), 'updated' );
137
+
138
+ }
139
+
140
+ }
141
+
142
+ /**
143
+ * Does the removal of legacy settings
144
+ *
145
+ * @since 2.1.1
146
+ */
147
+ public static final function do_legacy_remove( $page ) {
148
+
149
+ /** Removes legacy Easing Slider settings */
150
+ if ( isset( $_POST['legacy-remove'] ) ) {
151
+
152
+ /** Security check */
153
+ if ( !self::$class->security_check( 'legacy-remove', $page ) ) {
154
+ wp_die( __( 'Security check has failed. Removal has been prevented. Please try again.', 'easingsliderlite' ) );
155
+ exit();
156
+ }
157
+
158
+ /** Horrific amount of options. God I was bad back then! */
159
+ $options = array(
160
+ 'sImg1', 'sImg2', 'sImg3', 'sImg4', 'sImg5', 'sImg6', 'sImg7', 'sImg8', 'sImg9', 'sImg10',
161
+ 'sImglink1', 'sImglink2', 'sImglink3', 'sImglink4', 'sImglink5', 'sImglink6', 'sImglink7', 'sImglink8', 'sImglink9', 'sImglink10',
162
+ 'activation', 'width', 'height', 'shadow', 'interval', 'transition', 'bgcolour', 'transpeed', 'bwidth', 'bcolour', 'preload', 'starts',
163
+ 'buttons', 'source', 'featcat', 'featpost', 'padbottom', 'padleft', 'padright', 'paddingtop', 'shadowstyle', 'paginationon', 'paginationoff',
164
+ 'next', 'prev', 'pageposition', 'pageside', 'permalink', 'jquery', 'easingslider_version'
165
+ );
166
+
167
+ /** Delete the options */
168
+ foreach ( $options as $option )
169
+ delete_option( $option );
170
+
171
+ /** Queue message */
172
+ return self::$class->queue_message( __( 'Easing Slider settings have been permanently deleted!', 'easingsliderlite' ), 'updated' );
173
+
174
+ }
175
+ }
176
+
177
+ /**
178
+ * Prints the legacy settings warning message in the "Welcome" panel.
179
+ *
180
+ * @since 2.1.1
181
+ */
182
+ public static final function print_legacy_message() {
183
+
184
+ /** Display import legacy settings message in welcome panel */
185
+ if ( !get_option( 'easingsliderlite_major_upgrade' ) ) :
186
+ ?>
187
+ <div class="welcome-panel-content">
188
+ <?php
189
+ /** Security field */
190
+ wp_nonce_field( "easingsliderlite-legacy-import_{$_GET['page']}", "easingsliderlite-legacy-import_{$_GET['page']}", false );
191
+ ?>
192
+ <h2><?php _e( 'Legacy Settings Detected', 'easingsliderlite' ); ?></h2>
193
+ <p class="about-description">
194
+ <?php _e( 'Click the button below to import your settings from Easing Slider v1.x', 'easingsliderlite' ); ?>
195
+ </p>
196
+ <div class="welcome-panel-column-container">
197
+ <div class="welcome-panel-column">
198
+ <h4><?php _e( 'Import your old settings', 'easingsliderlite' ); ?></h4>
199
+ <input type="submit" name="legacy-import" class="button button-primary button-hero" value="<?php _e( 'Import my v1.x Easing Slider settings.', 'easingsliderlite' ); ?>">
200
+ </div>
201
+ </div>
202
+ </div>
203
+ <div class="divider"></div>
204
+ <?php
205
+ endif;
206
+
207
+ }
208
+
209
+ /**
210
+ * Prints the legacy settings options fields in the "Settings" panel.
211
+ *
212
+ * @since 2.1.1
213
+ */
214
+ public static final function print_legacy_settings_field( $settings, $page ) {
215
+
216
+ /** Display field related to legacy settings in "Settings" admin panel */
217
+ ?>
218
+ <h3><?php _e( 'Legacy Settings', 'easingsliderlite' ); ?></h3>
219
+ <table class="form-table main-settings">
220
+ <tbody>
221
+ <tr valign="top">
222
+ <?php
223
+ /** Security nonce fields */
224
+ wp_nonce_field( "easingsliderlite-legacy-import_{$_GET['page']}", "easingsliderlite-legacy-import_{$_GET['page']}", false );
225
+ wp_nonce_field( "easingsliderlite-legacy-remove_{$_GET['page']}", "easingsliderlite-legacy-remove_{$_GET['page']}", false );
226
+ ?>
227
+ <th scope="row"><label for="load_scripts"><?php _e( 'Legacy Settings', 'easingsliderlite' ); ?></label></th>
228
+ <td>
229
+ <input type="submit" name="legacy-import" class="button button-primary warn" value="<?php _e( 'Import v1.x Settings', 'easingsliderlite' ); ?>">
230
+ <input type="submit" name="legacy-remove" class="button button-secondary warn" value="<?php _e( 'Remove v1.x Settings', 'easingsliderlite' ); ?>">
231
+ <p class="description"><?php _e( 'These buttons allow you to import and remove your old Easing Slider v1.x settings. Only remove them if you are sure you will not be downgrading the plugin in the future.', 'easingsliderlite' ); ?></p>
232
+ </td>
233
+ </tr>
234
+ </tbody>
235
+ </table>
236
+
237
+ <div class="divider"></div>
238
+ <?php
239
+
240
+ }
241
+
242
+ }
243
+
244
+ /**
245
+ * Handy helper & legacy functions for displaying a slideshow
246
+ *
247
+ * @since 2.1.1
248
+ */
249
+ if ( !function_exists( 'rivasliderlite' ) ) {
250
+ function rivasliderlite() {
251
+ echo ESL_Slideshow::get_instance()->display_slideshow();
252
+ }
253
+ }
254
+ if ( !function_exists( 'easing_slider' ) ) {
255
+ function easing_slider() {
256
+ echo ESL_Slideshow::get_instance()->display_slideshow();
257
+ }
258
+ }
includes/Upgrade.php CHANGED
@@ -45,68 +45,6 @@ class ESL_Upgrade {
45
 
46
  }
47
 
48
- /**
49
- * Upgrade settings from the old Easing Slider plugin
50
- * We don't do this automatically. Instead, we give the user the choice through the 'Edit Slideshow' panel.
51
- *
52
- * @since 2.0
53
- */
54
- public static final function do_major_upgrade() {
55
-
56
- /** Fire plugin activation (won't have been fired by upgrade) */
57
- EasingSliderLite::get_instance()->activate();
58
-
59
- /** Get default slideshow settings */
60
- $slideshow = EasingSliderLite::get_instance()->slideshow_defaults();
61
-
62
- /** Transfer the settings */
63
- $slideshow->dimensions->width = get_option( 'width' );
64
- $slideshow->dimensions->height = get_option( 'height' );
65
- $slideshow->dimensions->responsive = false;
66
- $slideshow->transitions->effect = ( get_option( 'transition' ) == 'fade' ) ? 'fade' : 'slide';
67
- $slideshow->transitions->duration = get_option( 'transpeed' );
68
- $slideshow->navigation->arrows = ( get_option( 'buttons' ) == '' ) ? 'false' : 'true';
69
- $slideshow->navigation->pagination = ( get_option( 'sPagination' ) == '' ) ? 'false' : 'true';
70
- $slideshow->playback->pause = get_option( 'interval' );
71
-
72
- /** Add the slides */
73
- $slideshow->slides = array();
74
- for ( $i = 1; $i <= 10; $i++ ) {
75
-
76
- /** Check if the slide has an image. Bail if not. */
77
- $image = get_option( "sImg{$i}" );
78
- if ( empty( $image ) )
79
- continue;
80
-
81
- /** Resize the image and get its thumbnail */
82
- $resize = ESL_Resize::resize( $image, 150, 150, true );
83
- $sizes = (object) array(
84
- 'thumbnail' => (object) array(
85
- 'url' => $resize['url']
86
- )
87
- );
88
-
89
- /** Add the slide image & link */
90
- $slideshow->slides[] = (object) array(
91
- 'id' => $i,
92
- 'url' => $image,
93
- 'alt' => null,
94
- 'title' => null,
95
- 'link' => get_option( "sImgLink{$i}" ),
96
- 'linkTarget' => '_blank',
97
- 'sizes' => $sizes
98
- );
99
-
100
- }
101
-
102
- /** Update the slideshow settings */
103
- update_option( 'easingsliderlite_slideshow', $slideshow );
104
-
105
- /** Flag upgrade */
106
- update_option( 'easingsliderlite_major_upgrade', 1 );
107
-
108
- }
109
-
110
  /**
111
  * Do 2.0.1 upgrades
112
  *
45
 
46
  }
47
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
48
  /**
49
  * Do 2.0.1 upgrades
50
  *
js/admin.js CHANGED
@@ -120,7 +120,7 @@
120
  event.preventDefault();
121
 
122
  /** Remove all of the thumbnails */
123
- if ( confirm( easingsliderlite.delete_images) )
124
  self.removeThumbs.call(self, event);
125
 
126
  });
@@ -291,7 +291,7 @@
291
  else {
292
  if ( confirm( easingsliderlite.media_upload.discard_changes ) ) {
293
  this.model.set(this.origAttributes);
294
- this.close();
295
  }
296
  }
297
 
120
  event.preventDefault();
121
 
122
  /** Remove all of the thumbnails */
123
+ if ( confirm( easingsliderlite.delete_images ) )
124
  self.removeThumbs.call(self, event);
125
 
126
  });
291
  else {
292
  if ( confirm( easingsliderlite.media_upload.discard_changes ) ) {
293
  this.model.set(this.origAttributes);
294
+ this.close(event);
295
  }
296
  }
297
 
js/admin.min.js CHANGED
@@ -1,2 +1,2 @@
1
- (function(a){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 b=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(b.models,function(c){b.primary++})})},addModel:function(b){this.primary++;b.set({id:this.primary},{silent:true});this.reset(this.models,{silent:true});this.resetData()},removeModel:function(){var b=this;this.resetIDs();this.reset(this.models,{silent:true});this.resetData()},resetData:function(){a("#slideshow-images").val(JSON.stringify(this))},resetIDs:function(){var b=this;this.primary=0;_.each(this.models,function(c){b.primary++;c.set({id:b.primary},{silent:true})});return this},});window.SlideView=wp.media.View.extend({$container:a(".thumbnails-container .inner"),template:wp.media.template("slide"),initialize:function(){var b=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);a(".delete-images").bind("click",function(c){c.preventDefault();if(confirm(easingsliderlite.delete_images)){b.removeThumbs.call(b,c)}});a(".add-image").bind("click",function(c){c.preventDefault();addImageView.render()});a(document).delegate(".delete-button","click",function(c){c.preventDefault();if(confirm(easingsliderlite.delete_image)){b.collection.remove(b.collection.get(a(this).parent().attr("data-id")))}});a(document).delegate(".thumbnails-container img","click",function(c){c.preventDefault();var e=a(this).parent().attr("data-id"),d=new EditSlideView({model:b.collection.get(e)});a(d.render().el).appendTo("body").focus()})},addThumb:function(b){this.$container.append(this.template(b.toJSON()))},removeThumbs:function(b){b.preventDefault();this.$container.empty();this.collection.reset();this.collection.primary=0},render:function(){var b=this;this.$container.empty();_.each(this.collection.models,function(c){b.$container.append(b.template(c.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(b){b.preventDefault();var c=b.target.dataset.tab;a(".media-menu-item").removeClass("active");a(b.target).addClass("active");a(".media-tab",this.$el).each(function(){if(this.id===c){a(this).show()}else{a(this).hide()}})},close:function(b){b.preventDefault();this.remove();if(this.changeImageView){this.changeImageView.remove()}},change:function(b){var c=b.target,d={};d[c.id]=c.value;this.model.set(d)},discardChanges:function(c){c.preventDefault();var d=JSON.stringify(this.model.attributes),b=JSON.stringify(this.origAttributes);if(d===b){this.close(c)}else{if(confirm(easingsliderlite.media_upload.discard_changes)){this.model.set(this.origAttributes);this.close()}}},resetThumbnail:function(b,e){var d=b.get("sizes"),c=d.large||d.medium||d.thumbnail;this.$(".slide-thumbnail").attr("src",c.url)},changeImage:function(c){c.preventDefault();var b=this;if(this.changeImageView===null){this.changeImageView=new ChangeImageView({id:this.model.get("id"),model:this.model})}this.changeImageView.render();a(".media-modal-backdrop").first().hide();this.changeImageView.fileFrame.on("close",function(){a(".media-modal-backdrop").first().show();b.$el.focus()})},keyDown:function(b){if(b.keyCode===27){b.preventDefault();this.discardChanges(b);return}},render:function(){a(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=new 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 c=this.fileFrame.state().get("selection"),b=this;_.each(c.models,function(e){var f={};for(var d in b.modelAttributes){f[b.modelAttributes[d]]=e.get(b.modelAttributes[d])}b.collection.add([f])})},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 c=this.fileFrame.state().get("selection"),d=c.models[0],e={};
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(a){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 b=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(b.models,function(c){b.primary++})})},addModel:function(b){this.primary++;b.set({id:this.primary},{silent:true});this.reset(this.models,{silent:true});this.resetData()},removeModel:function(){var b=this;this.resetIDs();this.reset(this.models,{silent:true});this.resetData()},resetData:function(){a("#slideshow-images").val(JSON.stringify(this))},resetIDs:function(){var b=this;this.primary=0;_.each(this.models,function(c){b.primary++;c.set({id:b.primary},{silent:true})});return this},});window.SlideView=wp.media.View.extend({$container:a(".thumbnails-container .inner"),template:wp.media.template("slide"),initialize:function(){var b=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);a(".delete-images").bind("click",function(c){c.preventDefault();if(confirm(easingsliderlite.delete_images)){b.removeThumbs.call(b,c)}});a(".add-image").bind("click",function(c){c.preventDefault();addImageView.render()});a(document).delegate(".delete-button","click",function(c){c.preventDefault();if(confirm(easingsliderlite.delete_image)){b.collection.remove(b.collection.get(a(this).parent().attr("data-id")))}});a(document).delegate(".thumbnails-container img","click",function(c){c.preventDefault();var e=a(this).parent().attr("data-id"),d=new EditSlideView({model:b.collection.get(e)});a(d.render().el).appendTo("body").focus()})},addThumb:function(b){this.$container.append(this.template(b.toJSON()))},removeThumbs:function(b){b.preventDefault();this.$container.empty();this.collection.reset();this.collection.primary=0},render:function(){var b=this;this.$container.empty();_.each(this.collection.models,function(c){b.$container.append(b.template(c.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(b){b.preventDefault();var c=b.target.dataset.tab;a(".media-menu-item").removeClass("active");a(b.target).addClass("active");a(".media-tab",this.$el).each(function(){if(this.id===c){a(this).show()}else{a(this).hide()}})},close:function(b){b.preventDefault();this.remove();if(this.changeImageView){this.changeImageView.remove()}},change:function(b){var c=b.target,d={};d[c.id]=c.value;this.model.set(d)},discardChanges:function(c){c.preventDefault();var d=JSON.stringify(this.model.attributes),b=JSON.stringify(this.origAttributes);if(d===b){this.close(c)}else{if(confirm(easingsliderlite.media_upload.discard_changes)){this.model.set(this.origAttributes);this.close(c)}}},resetThumbnail:function(b,e){var d=b.get("sizes"),c=d.large||d.medium||d.thumbnail;this.$(".slide-thumbnail").attr("src",c.url)},changeImage:function(c){c.preventDefault();var b=this;if(this.changeImageView===null){this.changeImageView=new ChangeImageView({id:this.model.get("id"),model:this.model})}this.changeImageView.render();a(".media-modal-backdrop").first().hide();this.changeImageView.fileFrame.on("close",function(){a(".media-modal-backdrop").first().show();b.$el.focus()})},keyDown:function(b){if(b.keyCode===27){b.preventDefault();this.discardChanges(b);return}},render:function(){a(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=new 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 c=this.fileFrame.state().get("selection"),b=this;_.each(c.models,function(e){var f={};for(var d in b.modelAttributes){f[b.modelAttributes[d]]=e.get(b.modelAttributes[d])}b.collection.add([f])})},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 c=this.fileFrame.state().get("selection"),d=c.models[0],e={};
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);
js/slideshow.js CHANGED
@@ -66,7 +66,7 @@
66
 
67
  /** Queue playback (if enabled) */
68
  if ( o.playback.enabled )
69
- base.$el.one('load', base.startPlayback);
70
 
71
  /** Preload slideshow */
72
  base._preload();
@@ -108,7 +108,7 @@
108
  base.$el.addClass('is-responsive');
109
 
110
  /** Resize slideshow on window resize */
111
- $(window).bind('resize.easingsliderlite', function(event) {
112
 
113
  /** Queue custom resize end event */
114
  clearTimeout(base.resizeEnd);
@@ -122,7 +122,7 @@
122
  height = base.$viewport.outerHeight();
123
 
124
  /** Bail if slideshow width hasn't changed */
125
- if ( width === base.width )
126
  return;
127
 
128
  /** Save new dimensions */
@@ -130,12 +130,16 @@
130
  base.height = height;
131
 
132
  /** Prevent transitions from triggering & reset container positioning */
133
- if ( base.useCSS3 && o.transitions.effect == 'slide' ) {
134
 
135
  /** Apply our CSS changes */
136
  var properties = {};
137
- properties[ '-'+ base.vendorPrefix +'-transition-duration' ] = '0ms';
138
- properties[ '-'+ base.vendorPrefix +'-transform' ] = 'translate3d(-'+ ( base.current * base.width ) +'px, 0, 0)';
 
 
 
 
139
  base.$container.css(properties);
140
 
141
  /** Queue transition duration reset */
@@ -152,7 +156,7 @@
152
  });
153
 
154
  /** Trigger a resize now */
155
- $(window).trigger('resize.easingsliderlite');
156
 
157
  };
158
 
@@ -183,7 +187,7 @@
183
  if ( o.navigation.arrows_hover )
184
  $arrows.addClass('has-hover');
185
  else {
186
- base.$el.one('load', function() {
187
  $arrows.css({ 'opacity': 1 });
188
  });
189
  }
@@ -221,7 +225,7 @@
221
  if ( o.navigation.pagination_hover )
222
  $pagination.addClass('has-hover');
223
  else {
224
- base.$el.one('load', function() {
225
  $pagination.css({ 'opacity': 1 });
226
  });
227
  }
@@ -238,25 +242,42 @@
238
  * @since 2.0
239
  */
240
  base._preload = function() {
241
-
242
- /** Loop through and preload each slide image */
243
- var index = 0;
244
- base.$images.one('load', function() {
245
 
246
- /** Increment load count */
247
- index++;
248
 
249
- /** Fade out the preloader if we've loaded the last image */
250
- if ( base.count == index ) {
251
- base.$el.find('.easingsliderlite-preload').animate({ 'opacity': 0 }, { duration: 200, complete: function() {
 
 
 
252
  $(this).remove();
253
- base.$el.trigger('load');
254
  }});
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
255
  }
 
 
 
 
 
256
 
257
- }).each(function() {
258
- if ( this.complete )
259
- $(this).trigger('load');
260
  });
261
 
262
  };
@@ -301,7 +322,7 @@
301
  }
302
  else {
303
  /** Otherwise fallback to jQuery/Zepto animate */
304
- base.$container.animate({ 'left': '-'+ ( base.width * base.current )}, o.transitions.duration);
305
  }
306
 
307
  }
@@ -329,7 +350,7 @@
329
 
330
  });
331
 
332
- /** Only do jQuery/Zepto animate for this transition. CSS3 opacity effects mke no performance difference */
333
  base.$slides.eq(base.current).css({ 'opacity': '0', 'display': 'block', 'z-index': base.order }).animate({ 'opacity': '1' }, o.transitions.duration);
334
 
335
  }
66
 
67
  /** Queue playback (if enabled) */
68
  if ( o.playback.enabled )
69
+ base.$el.one('onload', base.startPlayback);
70
 
71
  /** Preload slideshow */
72
  base._preload();
108
  base.$el.addClass('is-responsive');
109
 
110
  /** Resize slideshow on window resize */
111
+ $(window).bind('resize.easingsliderlite', function(event, force) {
112
 
113
  /** Queue custom resize end event */
114
  clearTimeout(base.resizeEnd);
122
  height = base.$viewport.outerHeight();
123
 
124
  /** Bail if slideshow width hasn't changed */
125
+ if ( width === base.width && !force )
126
  return;
127
 
128
  /** Save new dimensions */
130
  base.height = height;
131
 
132
  /** Prevent transitions from triggering & reset container positioning */
133
+ if ( o.transitions.effect == 'slide' ) {
134
 
135
  /** Apply our CSS changes */
136
  var properties = {};
137
+ if ( base.useCSS3 ) {
138
+ properties[ '-'+ base.vendorPrefix +'-transition-duration' ] = '0ms';
139
+ properties[ '-'+ base.vendorPrefix +'-transform' ] = 'translate3d(-'+ ( base.current * base.width ) +'px, 0, 0)';
140
+ }
141
+ else
142
+ properties['left'] = '-'+ ( base.current * base.width ) +'px';
143
  base.$container.css(properties);
144
 
145
  /** Queue transition duration reset */
156
  });
157
 
158
  /** Trigger a resize now */
159
+ $(window).trigger('resize.easingsliderlite', true);
160
 
161
  };
162
 
187
  if ( o.navigation.arrows_hover )
188
  $arrows.addClass('has-hover');
189
  else {
190
+ base.$el.one('onload', function() {
191
  $arrows.css({ 'opacity': 1 });
192
  });
193
  }
225
  if ( o.navigation.pagination_hover )
226
  $pagination.addClass('has-hover');
227
  else {
228
+ base.$el.one('onload', function() {
229
  $pagination.css({ 'opacity': 1 });
230
  });
231
  }
242
  * @since 2.0
243
  */
244
  base._preload = function() {
 
 
 
 
245
 
246
+ /** Preloaded image count */
247
+ var count = 0;
248
 
249
+ /** Complete function run after image is preloaded */
250
+ var loadComplete = function() {
251
+
252
+ count++;
253
+ if ( count >= base.count )
254
+ base.$el.find('.easingsliderlite-preload').animate({ 'opacity': 0 }, { duration: 400, complete: function() {
255
  $(this).remove();
256
+ base.$el.trigger('onload');
257
  }});
258
+
259
+ };
260
+
261
+ /** Loop through and preload each image. Doesn't stop on failure, just continues instead */
262
+ base.$images.each(function(index, image) {
263
+
264
+ /**
265
+ * Create a virtual image element. We set its src after event handler is registered.
266
+ * We have to do this to prevent IE bugs (it doesn't always fire the onload event if image are loaded (from cache) before the event is bound)
267
+ */
268
+ preloadImage = new Image();
269
+
270
+ /** Bind preload functions. Still continues if a preload fails */
271
+ if ( !preloadImage.complete ) {
272
+ preloadImage.onload = loadComplete;
273
+ preloadImage.onerror = loadComplete;
274
  }
275
+ else
276
+ loadComplete();
277
+
278
+ /** Set image src attribute */
279
+ preloadImage.src = image.src;
280
 
 
 
 
281
  });
282
 
283
  };
322
  }
323
  else {
324
  /** Otherwise fallback to jQuery/Zepto animate */
325
+ base.$container.animate({ 'left': '-'+ ( base.width * base.current ) +'px' }, o.transitions.duration);
326
  }
327
 
328
  }
350
 
351
  });
352
 
353
+ /** Only do jQuery animate for this transition. CSS3 opacity effects mke no performance difference */
354
  base.$slides.eq(base.current).css({ 'opacity': '0', 'display': 'block', 'z-index': base.order }).animate({ 'opacity': '1' }, o.transitions.duration);
355
 
356
  }
js/slideshow.min.js CHANGED
@@ -1,2 +1,2 @@
1
- (function(a){a.EasingSliderLite=function(b){var c=this,d;c.el=b;c.$el=a(c.el);c.$viewport=c.$el.find(".easingsliderlite-viewport");c.$container=c.$viewport.find(".easingsliderlite-slides-container");c.$slides=c.$container.find(".easingsliderlite-slide");c.$images=c.$slides.find(".easingsliderlite-image");c.options=d=a.extend({},a.EasingSliderLite.defaults,a.parseJSON(c.$el.attr("data-options")));c.current=0;c.previous=0;c.count=c.$slides.length;c.width=d.dimensions.width;c.height=d.dimensions.height;c.$el.data("easingsliderlite",c);c.initialize=function(){c.$container.css({display:""});c.useCSS3=(d.general.enableCSS3)?c._supportsCSS3():false;if(c.useCSS3){c.$el.addClass("use-css3")}if(d.dimensions.responsive){c._setupResponsive()}c.supportsTouch=("ontouchstart" in document.documentElement&&d.general.enableTouch)?true:false;c.clickEvent=(c.supportsTouch)?"touchstart.easingsliderlite":"click.easingsliderlite";if(d.navigation.arrows){c._setupArrows()}if(d.navigation.pagination){c._setupPagination()}c.$slides.eq(c.current).addClass("active");c.$el.bind("beforetransition",function(){c.$slides.removeClass("active").eq(c.current).addClass("active")});if(d.playback.enabled){c.$el.one("load",c.startPlayback)}c._preload();c.$el.trigger("initialize",c)};c._supportsCSS3=function(){var f=document.createElement("div"),g=["perspectiveProperty","WebkitPerspective","MozPerspective","OPerspective","msPerspective"];for(var e in g){if(typeof f.style[g[e]]!=="undefined"){c.vendorPrefix=g[e].replace("Perspective","").toLowerCase();return true}}return false};c._setupResponsive=function(){c.$el.addClass("is-responsive");a(window).bind("resize.easingsliderlite",function(h){clearTimeout(c.resizeEnd);c.resizeEnd=setTimeout(function(){a(window).trigger("resizeend");delete c.resizeEnd},50);var g=c.$viewport.outerWidth(),e=c.$viewport.outerHeight();if(g===c.width){return}c.width=g;c.height=e;if(c.useCSS3&&d.transitions.effect=="slide"){var f={};f["-"+c.vendorPrefix+"-transition-duration"]="0ms";f["-"+c.vendorPrefix+"-transform"]="translate3d(-"+(c.current*c.width)+"px, 0, 0)";c.$container.css(f);a(window).one("resizeend",function(){f["-"+c.vendorPrefix+"-transition-duration"]=d.transitions.duration+"ms";c.$container.css(f)})}c.$slides.css({width:g+"px",height:e+"px"})});a(window).trigger("resize.easingsliderlite")};c._setupArrows=function(){var e=a(".easingsliderlite-next"),f=a(".easingsliderlite-prev"),g=a().add(e).add(f);e.bind(c.clickEvent,function(h){c.nextSlide();return false});f.bind(c.clickEvent,function(h){c.prevSlide();return false});if(d.navigation.arrows_hover){g.addClass("has-hover")}else{c.$el.one("load",function(){g.css({opacity:1})})}c.$el.trigger("setuparrows",c)};c._setupPagination=function(){var e=a(".easingsliderlite-pagination"),f=e.children("div");f.bind(c.clickEvent,function(g){c.goToSlide(a(this).index());return false});f.eq(c.current).addClass("active").removeClass("inactive");c.$el.bind("beforetransition",function(){f.removeClass("active").addClass("inactive").eq(c.current).addClass("active").removeClass("inactive")});if(d.navigation.pagination_hover){e.addClass("has-hover")}else{c.$el.one("load",function(){e.css({opacity:1})})}c.$el.trigger("setuppagination",c)};c._preload=function(){var e=0;c.$images.one("load",function(){e++;if(c.count==e){c.$el.find(".easingsliderlite-preload").animate({opacity:0},{duration:200,complete:function(){a(this).remove();c.$el.trigger("load")}})}}).each(function(){if(this.complete){a(this).trigger("load")}})};c._transition=function(){c._beforeTransition();clearTimeout(c.afterTransition);c.afterTransition=setTimeout(function(){c._afterTransition();delete c.afterTransition},d.transitions.duration);if(d.transitions.effect=="slide"){if(c.useCSS3){var e={};e["-"+c.vendorPrefix+"-transition-duration"]=d.transitions.duration;e["-"+c.vendorPrefix+"-transform"]="translate3d(-"+(c.width*c.current)+"px, 0, 0)";c.$container.css(e)}else{c.$container.animate({left:"-"+(c.width*c.current)},d.transitions.duration)}}else{if(d.transitions.effect=="fade"){if(c.current===c.previous){return}c.order=(c.order)?c.order+1:1;c.$el.unbind("aftertransition._transition").one("aftertransition._transition",function(){c.$slides.each(function(f){var g=(f===c.current)?{"z-index":""}:{opacity:0,display:"none","z-index":""};a(this).css(g)});delete c.order;delete c.animationClear});c.$slides.eq(c.current).css({opacity:"0",display:"block","z-index":c.order}).animate({opacity:"1"},d.transitions.duration)}else{c.$el.trigger("transition",c,d.transitions.effect)}}};c._beforeTransition=function(){if(d.playback.enabled){clearTimeout(c.playbackTimer)}c.$el.trigger("beforetransition",c)};c._afterTransition=function(){if(d.playback.enabled){c.startPlayback({silent:true})}c.$el.trigger("aftertransition",c)};c.startPlayback=function(e){e=a.extend({},{silent:false},e);if(!d.playback.enabled){d.playback.enabled=true}c.runtime=new Date();c.pauseTime=d.playback.pause;c.playbackTimer=setTimeout(function(){c.nextSlide()},c.pauseTime);if(!e.silent){c.$el.trigger("startplayback",c)
2
- }};c.endPlayback=function(e){e=a.extend({},{silent:false},e);if(d.playback.enabled){d.playback.enabled=false}clearTimeout(c.playbackTimer);if(!e.silent){c.$el.trigger("endplayback",c)}};c.pausePlayback=function(e){e=a.extend({},{silent:false},e);clearTimeout(c.playbackTimer);c.runtime=Math.ceil(new Date()-c.runtime);if(!e.silent){c.$el.trigger("pauseplayback",c)}};c.resumePlayback=function(e){e=a.extend({},{silent:false},e);c.pauseTime=Math.ceil(c.pauseTime-c.runtime);c.runtime=new Date();c.playbackTimer=setTimeout(function(){c.nextSlide()},c.pauseTime);if(!e.silent){c.$el.trigger("resumeplayback",c)}};c.nextSlide=function(e){e=a.extend({},{silent:false},e);c.previous=c.current;c.current=(c.current==(c.count-1))?0:(c.current+1);c._transition(c.current,c.previous);if(!e.silent){c.$el.trigger("nextslide",c)}};c.prevSlide=function(e){e=a.extend({},{silent:false},e);c.previous=c.current;c.current=(c.current==0)?(c.count-1):(c.current-1);c._transition(c.current,c.previous);if(!e.silent){c.$el.trigger("prevslide",c)}};c.goToSlide=function(e,f){f=a.extend({},{silent:false},f);if(c.$slides.eq(e).length==0){return}c.previous=c.current;c.current=e;c._transition(c.current,c.previous,true);if(!f.silent){c.$el.trigger("gotoslide",c,e)}};c=a.extend({},c,a.EasingSliderLite.extensions);c.initialize()};a.EasingSliderLite.defaults={general:{enableCSS3:true},navigation:{arrows:true,arrows_hover:true,arrows_position:"inside",pagination:true,pagination_hover:true,pagination_position:"inside",pagination_location:"bottom-left"},dimensions:{width:500,height:200,responsive:true},transitions:{effect:"slide",duration:500},playback:{enabled:false,pause:1000}};a.EasingSliderLite.extensions={};a.fn.EasingSliderLite=function(){return this.each(function(){new a.EasingSliderLite(this)})};a(document).ready(function(){a(".easingsliderlite").EasingSliderLite()})})(jQuery);
1
+ (function(a){a.EasingSliderLite=function(b){var c=this,d;c.el=b;c.$el=a(c.el);c.$viewport=c.$el.find(".easingsliderlite-viewport");c.$container=c.$viewport.find(".easingsliderlite-slides-container");c.$slides=c.$container.find(".easingsliderlite-slide");c.$images=c.$slides.find(".easingsliderlite-image");c.options=d=a.extend({},a.EasingSliderLite.defaults,a.parseJSON(c.$el.attr("data-options")));c.current=0;c.previous=0;c.count=c.$slides.length;c.width=d.dimensions.width;c.height=d.dimensions.height;c.$el.data("easingsliderlite",c);c.initialize=function(){c.$container.css({display:""});c.useCSS3=(d.general.enableCSS3)?c._supportsCSS3():false;if(c.useCSS3){c.$el.addClass("use-css3")}if(d.dimensions.responsive){c._setupResponsive()}c.supportsTouch=("ontouchstart" in document.documentElement&&d.general.enableTouch)?true:false;c.clickEvent=(c.supportsTouch)?"touchstart.easingsliderlite":"click.easingsliderlite";if(d.navigation.arrows){c._setupArrows()}if(d.navigation.pagination){c._setupPagination()}c.$slides.eq(c.current).addClass("active");c.$el.bind("beforetransition",function(){c.$slides.removeClass("active").eq(c.current).addClass("active")});if(d.playback.enabled){c.$el.one("onload",c.startPlayback)}c._preload();c.$el.trigger("initialize",c)};c._supportsCSS3=function(){var f=document.createElement("div"),g=["perspectiveProperty","WebkitPerspective","MozPerspective","OPerspective","msPerspective"];for(var e in g){if(typeof f.style[g[e]]!=="undefined"){c.vendorPrefix=g[e].replace("Perspective","").toLowerCase();return true}}return false};c._setupResponsive=function(){c.$el.addClass("is-responsive");a(window).bind("resize.easingsliderlite",function(h,i){clearTimeout(c.resizeEnd);c.resizeEnd=setTimeout(function(){a(window).trigger("resizeend");delete c.resizeEnd},50);var g=c.$viewport.outerWidth(),e=c.$viewport.outerHeight();if(g===c.width&&!i){return}c.width=g;c.height=e;if(d.transitions.effect=="slide"){var f={};if(c.useCSS3){f["-"+c.vendorPrefix+"-transition-duration"]="0ms";f["-"+c.vendorPrefix+"-transform"]="translate3d(-"+(c.current*c.width)+"px, 0, 0)"}else{f.left="-"+(c.current*c.width)+"px"}c.$container.css(f);a(window).one("resizeend",function(){f["-"+c.vendorPrefix+"-transition-duration"]=d.transitions.duration+"ms";c.$container.css(f)})}c.$slides.css({width:g+"px",height:e+"px"})});a(window).trigger("resize.easingsliderlite",true)};c._setupArrows=function(){var e=a(".easingsliderlite-next"),f=a(".easingsliderlite-prev"),g=a().add(e).add(f);e.bind(c.clickEvent,function(h){c.nextSlide();return false});f.bind(c.clickEvent,function(h){c.prevSlide();return false});if(d.navigation.arrows_hover){g.addClass("has-hover")}else{c.$el.one("onload",function(){g.css({opacity:1})})}c.$el.trigger("setuparrows",c)};c._setupPagination=function(){var e=a(".easingsliderlite-pagination"),f=e.children("div");f.bind(c.clickEvent,function(g){c.goToSlide(a(this).index());return false});f.eq(c.current).addClass("active").removeClass("inactive");c.$el.bind("beforetransition",function(){f.removeClass("active").addClass("inactive").eq(c.current).addClass("active").removeClass("inactive")});if(d.navigation.pagination_hover){e.addClass("has-hover")}else{c.$el.one("onload",function(){e.css({opacity:1})})}c.$el.trigger("setuppagination",c)};c._preload=function(){var f=0;var e=function(){f++;if(f>=c.count){c.$el.find(".easingsliderlite-preload").animate({opacity:0},{duration:400,complete:function(){a(this).remove();c.$el.trigger("onload")}})}};c.$images.each(function(g,h){preloadImage=new Image();if(!preloadImage.complete){preloadImage.onload=e;preloadImage.onerror=e}else{e()}preloadImage.src=h.src})};c._transition=function(){c._beforeTransition();clearTimeout(c.afterTransition);c.afterTransition=setTimeout(function(){c._afterTransition();delete c.afterTransition},d.transitions.duration);if(d.transitions.effect=="slide"){if(c.useCSS3){var e={};e["-"+c.vendorPrefix+"-transition-duration"]=d.transitions.duration;e["-"+c.vendorPrefix+"-transform"]="translate3d(-"+(c.width*c.current)+"px, 0, 0)";c.$container.css(e)}else{c.$container.animate({left:"-"+(c.width*c.current)+"px"},d.transitions.duration)}}else{if(d.transitions.effect=="fade"){if(c.current===c.previous){return}c.order=(c.order)?c.order+1:1;c.$el.unbind("aftertransition._transition").one("aftertransition._transition",function(){c.$slides.each(function(f){var g=(f===c.current)?{"z-index":""}:{opacity:0,display:"none","z-index":""};a(this).css(g)});delete c.order;delete c.animationClear});c.$slides.eq(c.current).css({opacity:"0",display:"block","z-index":c.order}).animate({opacity:"1"},d.transitions.duration)}else{c.$el.trigger("transition",c,d.transitions.effect)}}};c._beforeTransition=function(){if(d.playback.enabled){clearTimeout(c.playbackTimer)}c.$el.trigger("beforetransition",c)};c._afterTransition=function(){if(d.playback.enabled){c.startPlayback({silent:true})}c.$el.trigger("aftertransition",c)};c.startPlayback=function(e){e=a.extend({},{silent:false},e);if(!d.playback.enabled){d.playback.enabled=true
2
+ }c.runtime=new Date();c.pauseTime=d.playback.pause;c.playbackTimer=setTimeout(function(){c.nextSlide()},c.pauseTime);if(!e.silent){c.$el.trigger("startplayback",c)}};c.endPlayback=function(e){e=a.extend({},{silent:false},e);if(d.playback.enabled){d.playback.enabled=false}clearTimeout(c.playbackTimer);if(!e.silent){c.$el.trigger("endplayback",c)}};c.pausePlayback=function(e){e=a.extend({},{silent:false},e);clearTimeout(c.playbackTimer);c.runtime=Math.ceil(new Date()-c.runtime);if(!e.silent){c.$el.trigger("pauseplayback",c)}};c.resumePlayback=function(e){e=a.extend({},{silent:false},e);c.pauseTime=Math.ceil(c.pauseTime-c.runtime);c.runtime=new Date();c.playbackTimer=setTimeout(function(){c.nextSlide()},c.pauseTime);if(!e.silent){c.$el.trigger("resumeplayback",c)}};c.nextSlide=function(e){e=a.extend({},{silent:false},e);c.previous=c.current;c.current=(c.current==(c.count-1))?0:(c.current+1);c._transition(c.current,c.previous);if(!e.silent){c.$el.trigger("nextslide",c)}};c.prevSlide=function(e){e=a.extend({},{silent:false},e);c.previous=c.current;c.current=(c.current==0)?(c.count-1):(c.current-1);c._transition(c.current,c.previous);if(!e.silent){c.$el.trigger("prevslide",c)}};c.goToSlide=function(e,f){f=a.extend({},{silent:false},f);if(c.$slides.eq(e).length==0){return}c.previous=c.current;c.current=e;c._transition(c.current,c.previous,true);if(!f.silent){c.$el.trigger("gotoslide",c,e)}};c=a.extend({},c,a.EasingSliderLite.extensions);c.initialize()};a.EasingSliderLite.defaults={general:{enableCSS3:true},navigation:{arrows:true,arrows_hover:true,arrows_position:"inside",pagination:true,pagination_hover:true,pagination_position:"inside",pagination_location:"bottom-left"},dimensions:{width:500,height:200,responsive:true},transitions:{effect:"slide",duration:500},playback:{enabled:false,pause:1000}};a.EasingSliderLite.extensions={};a.fn.EasingSliderLite=function(){return this.each(function(){new a.EasingSliderLite(this)})};a(document).ready(function(){a(".easingsliderlite").EasingSliderLite()})})(jQuery);
languages/easingsliderlite.pot ADDED
@@ -0,0 +1,646 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Easing Slider \"Lite\"\n"
4
+ "POT-Creation-Date: 2013-04-09 16:43-0000\n"
5
+ "PO-Revision-Date: 2013-04-09 16:44-0000\n"
6
+ "Last-Translator: \n"
7
+ "Language-Team: \n"
8
+ "MIME-Version: 1.0\n"
9
+ "Content-Type: text/plain; charset=UTF-8\n"
10
+ "Content-Transfer-Encoding: 8bit\n"
11
+ "X-Generator: Poedit 1.5.5\n"
12
+ "X-Poedit-KeywordsList: _;gettext;gettext_noop;__;_e\n"
13
+ "X-Poedit-Basepath: .\n"
14
+ "X-Poedit-SourceCharset: UTF-8\n"
15
+ "X-Poedit-SearchPath-0: ..\n"
16
+ "X-Poedit-SearchPath-1: .\n"
17
+
18
+ #: ../easingsliderlite.php:379
19
+ msgid "Unknown"
20
+ msgstr ""
21
+
22
+ #: ../easingsliderlite.php:501 ../easingsliderlite.php:502
23
+ #: ../easingsliderlite.php:554 ../includes/Widget.php:19
24
+ msgid "Slideshow"
25
+ msgstr ""
26
+
27
+ #: ../easingsliderlite.php:511 ../easingsliderlite.php:512
28
+ #: ../easingsliderlite.php:564 ../templates/editslideshow.php:8
29
+ msgid "Edit Slideshow"
30
+ msgstr ""
31
+
32
+ #: ../easingsliderlite.php:519
33
+ msgid "Customizer"
34
+ msgstr ""
35
+
36
+ #: ../easingsliderlite.php:520 ../easingsliderlite.php:572
37
+ msgid "Customize"
38
+ msgstr ""
39
+
40
+ #: ../easingsliderlite.php:527 ../templates/editsettings.php:7
41
+ msgid "Edit Settings"
42
+ msgstr ""
43
+
44
+ #: ../easingsliderlite.php:528 ../easingsliderlite.php:580
45
+ msgid "Settings"
46
+ msgstr ""
47
+
48
+ #: ../easingsliderlite.php:614
49
+ msgid "Add a slideshow"
50
+ msgstr ""
51
+
52
+ #: ../easingsliderlite.php:614
53
+ msgid "Add Slideshow"
54
+ msgstr ""
55
+
56
+ #: ../easingsliderlite.php:684 ../easingsliderlite.php:720
57
+ #: ../easingsliderlite.php:768
58
+ msgid "Security check has failed. Save has been prevented. Please try again."
59
+ msgstr ""
60
+
61
+ #: ../easingsliderlite.php:702
62
+ msgid "Slideshow has been <strong>saved</strong> successfully."
63
+ msgstr ""
64
+
65
+ #: ../easingsliderlite.php:750
66
+ msgid "Security check has failed. Reset has been prevented. Please try again."
67
+ msgstr ""
68
+
69
+ #: ../easingsliderlite.php:759
70
+ msgid "Plugin has been reset successfully."
71
+ msgstr ""
72
+
73
+ #: ../easingsliderlite.php:779
74
+ msgid "Settings have been <strong>saved</strong> successfully."
75
+ msgstr ""
76
+
77
+ #: ../easingsliderlite.php:919
78
+ msgid "Are you sure you wish to do this? This cannot be reversed."
79
+ msgstr ""
80
+
81
+ #: ../easingsliderlite.php:920
82
+ msgid "Are you sure you wish to delete this image? This cannot be reversed."
83
+ msgstr ""
84
+
85
+ #: ../easingsliderlite.php:921
86
+ msgid ""
87
+ "Are you sure you wish to delete all of this slideshows images? This cannot "
88
+ "be reversed."
89
+ msgstr ""
90
+
91
+ #: ../easingsliderlite.php:923
92
+ msgid "Add Images to Slideshow"
93
+ msgstr ""
94
+
95
+ #: ../easingsliderlite.php:924
96
+ msgid "Insert into slideshow"
97
+ msgstr ""
98
+
99
+ #: ../easingsliderlite.php:925
100
+ msgid "Use this image"
101
+ msgstr ""
102
+
103
+ #: ../easingsliderlite.php:926
104
+ msgid "Are you sure you wish to discard changes?"
105
+ msgstr ""
106
+
107
+ #: ../includes/Legacy.php:128
108
+ msgid "Security check has failed. Import has been prevented. Please try again."
109
+ msgstr ""
110
+
111
+ #: ../includes/Legacy.php:136
112
+ msgid "Easing Slider settings have been imported."
113
+ msgstr ""
114
+
115
+ #: ../includes/Legacy.php:154
116
+ msgid ""
117
+ "Security check has failed. Removal has been prevented. Please try again."
118
+ msgstr ""
119
+
120
+ #: ../includes/Legacy.php:172
121
+ msgid "Easing Slider settings have been permanently deleted!"
122
+ msgstr ""
123
+
124
+ #: ../includes/Legacy.php:192
125
+ msgid "Legacy Settings Detected"
126
+ msgstr ""
127
+
128
+ #: ../includes/Legacy.php:194
129
+ msgid "Click the button below to import your settings from Easing Slider v1.x"
130
+ msgstr ""
131
+
132
+ #: ../includes/Legacy.php:198
133
+ msgid "Import your old settings"
134
+ msgstr ""
135
+
136
+ #: ../includes/Legacy.php:199
137
+ msgid "Import my v1.x Easing Slider settings."
138
+ msgstr ""
139
+
140
+ #: ../includes/Legacy.php:218 ../includes/Legacy.php:227
141
+ msgid "Legacy Settings"
142
+ msgstr ""
143
+
144
+ #: ../includes/Legacy.php:229
145
+ msgid "Import v1.x Settings"
146
+ msgstr ""
147
+
148
+ #: ../includes/Legacy.php:230
149
+ msgid "Remove v1.x Settings"
150
+ msgstr ""
151
+
152
+ #: ../includes/Legacy.php:231
153
+ msgid ""
154
+ "These buttons allow you to import and remove your old Easing Slider v1.x "
155
+ "settings. Only remove them if you are sure you will not be downgrading the "
156
+ "plugin in the future."
157
+ msgstr ""
158
+
159
+ #: ../includes/Resize.php:22
160
+ msgid "No image URL has been entered."
161
+ msgstr ""
162
+
163
+ #: ../includes/Widget.php:20
164
+ msgid "Display a slideshow using a widget"
165
+ msgstr ""
166
+
167
+ #: ../includes/Widget.php:71 ../templates/editslideshow-slide.php:33
168
+ msgid "Title"
169
+ msgstr ""
170
+
171
+ #: ../templates/customizer.php:32
172
+ msgid "Save"
173
+ msgstr ""
174
+
175
+ #: ../templates/customizer.php:34
176
+ msgid "Close"
177
+ msgstr ""
178
+
179
+ #: ../templates/customizer.php:40
180
+ msgid ""
181
+ "You are customizing <strong class=\"theme-name\">Easing Slider \"Lite\"</"
182
+ "strong>"
183
+ msgstr ""
184
+
185
+ #: ../templates/customizer.php:46 ../templates/editslideshow-sidebar.php:104
186
+ msgid "Next & Previous Arrows"
187
+ msgstr ""
188
+
189
+ #: ../templates/customizer.php:50
190
+ msgid "\"Next\" Arrow Image"
191
+ msgstr ""
192
+
193
+ #: ../templates/customizer.php:56
194
+ msgid "\"Previous\" Arrow Image"
195
+ msgstr ""
196
+
197
+ #: ../templates/customizer.php:62 ../templates/customizer.php:116
198
+ msgid "Width"
199
+ msgstr ""
200
+
201
+ #: ../templates/customizer.php:68
202
+ msgid "Height"
203
+ msgstr ""
204
+
205
+ #: ../templates/customizer.php:76 ../templates/editslideshow-sidebar.php:157
206
+ msgid "Pagination Icons"
207
+ msgstr ""
208
+
209
+ #: ../templates/customizer.php:80
210
+ msgid "\"Inactive\" Image"
211
+ msgstr ""
212
+
213
+ #: ../templates/customizer.php:86
214
+ msgid "\"Active\" Image"
215
+ msgstr ""
216
+
217
+ #: ../templates/customizer.php:92
218
+ msgid "Icon Width"
219
+ msgstr ""
220
+
221
+ #: ../templates/customizer.php:98
222
+ msgid "Icon Height"
223
+ msgstr ""
224
+
225
+ #: ../templates/customizer.php:106
226
+ msgid "Border"
227
+ msgstr ""
228
+
229
+ #: ../templates/customizer.php:110
230
+ msgid "Color"
231
+ msgstr ""
232
+
233
+ #: ../templates/customizer.php:122
234
+ msgid "Radius"
235
+ msgstr ""
236
+
237
+ #: ../templates/customizer.php:131
238
+ msgid "Drop Shadow"
239
+ msgstr ""
240
+
241
+ #: ../templates/customizer.php:135
242
+ msgid "Display a Drop Shadow"
243
+ msgstr ""
244
+
245
+ #: ../templates/customizer.php:136 ../templates/editslideshow-sidebar.php:127
246
+ #: ../templates/editslideshow-sidebar.php:180
247
+ msgid "True"
248
+ msgstr ""
249
+
250
+ #: ../templates/customizer.php:137 ../templates/editslideshow-sidebar.php:130
251
+ #: ../templates/editslideshow-sidebar.php:183
252
+ msgid "False"
253
+ msgstr ""
254
+
255
+ #: ../templates/customizer.php:142
256
+ msgid "Shadow Image"
257
+ msgstr ""
258
+
259
+ #: ../templates/customizer.php:154
260
+ msgid "Collapse Sidebar"
261
+ msgstr ""
262
+
263
+ #: ../templates/customizer.php:156
264
+ msgid "Collapse"
265
+ msgstr ""
266
+
267
+ #: ../templates/editsettings.php:20
268
+ msgid "General Settings"
269
+ msgstr ""
270
+
271
+ #: ../templates/editsettings.php:24
272
+ msgid "Image Resizing"
273
+ msgstr ""
274
+
275
+ #: ../templates/editsettings.php:27 ../templates/editslideshow-sidebar.php:112
276
+ #: ../templates/editslideshow-sidebar.php:165
277
+ #: ../templates/editslideshow-sidebar.php:226
278
+ msgid "Enable"
279
+ msgstr ""
280
+
281
+ #: ../templates/editsettings.php:30 ../templates/editslideshow-sidebar.php:115
282
+ #: ../templates/editslideshow-sidebar.php:168
283
+ #: ../templates/editslideshow-sidebar.php:229
284
+ msgid "Disable"
285
+ msgstr ""
286
+
287
+ #: ../templates/editsettings.php:32
288
+ msgid ""
289
+ "Enable or disable the plugins image resizing functionality. Disable this if "
290
+ "you do not want the slide images to be resized."
291
+ msgstr ""
292
+
293
+ #: ../templates/editsettings.php:37
294
+ msgid "Output JS"
295
+ msgstr ""
296
+
297
+ #: ../templates/editsettings.php:40 ../templates/editsettings.php:56
298
+ msgid "Header"
299
+ msgstr ""
300
+
301
+ #: ../templates/editsettings.php:43 ../templates/editsettings.php:59
302
+ msgid "Footer"
303
+ msgstr ""
304
+
305
+ #: ../templates/editsettings.php:46 ../templates/editsettings.php:62
306
+ msgid "Off"
307
+ msgstr ""
308
+
309
+ #: ../templates/editsettings.php:48
310
+ msgid ""
311
+ "Settings for Javascript output. Scripts loaded in the \"Footer\" are only "
312
+ "when they are needed. This decreases page loading times but is prone to "
313
+ "errors."
314
+ msgstr ""
315
+
316
+ #: ../templates/editsettings.php:53
317
+ msgid "Output CSS"
318
+ msgstr ""
319
+
320
+ #: ../templates/editsettings.php:64
321
+ msgid ""
322
+ "Settings for CSS output. Styles loaded in the \"Footer\" will invalidate the "
323
+ "HTML, but will prevent them from loading when not needed."
324
+ msgstr ""
325
+
326
+ #: ../templates/editsettings.php:72 ../templates/editsettings.php:78
327
+ msgid "Reset Plugin"
328
+ msgstr ""
329
+
330
+ #: ../templates/editsettings.php:76
331
+ msgid "Plugin Settings"
332
+ msgstr ""
333
+
334
+ #: ../templates/editsettings.php:79
335
+ msgid ""
336
+ "Click this button to reset the plugin to its default settings. This cannot "
337
+ "be reversed, so be sure before you do this!"
338
+ msgstr ""
339
+
340
+ #: ../templates/editsettings.php:87
341
+ msgid "Installation Settings"
342
+ msgstr ""
343
+
344
+ #: ../templates/editsettings.php:91
345
+ msgid "PHP Version"
346
+ msgstr ""
347
+
348
+ #: ../templates/editsettings.php:96
349
+ msgid "MySQL Version"
350
+ msgstr ""
351
+
352
+ #: ../templates/editsettings.php:101
353
+ msgid "WordPress Version"
354
+ msgstr ""
355
+
356
+ #: ../templates/editsettings.php:106
357
+ msgid "Plugin Version"
358
+ msgstr ""
359
+
360
+ #: ../templates/editsettings.php:120
361
+ msgid "Save Settings"
362
+ msgstr ""
363
+
364
+ #: ../templates/editslideshow-media-details.php:3
365
+ msgid "Image Details"
366
+ msgstr ""
367
+
368
+ #: ../templates/editslideshow-media-details.php:30
369
+ msgid "Edit Image"
370
+ msgstr ""
371
+
372
+ #: ../templates/editslideshow-media-details.php:31
373
+ msgid "Refresh"
374
+ msgstr ""
375
+
376
+ #: ../templates/editslideshow-media-details.php:36
377
+ msgid "Delete Permanently"
378
+ msgstr ""
379
+
380
+ #: ../templates/editslideshow-sidebar.php:4
381
+ msgid "Easing Slider, Go Pro!"
382
+ msgstr ""
383
+
384
+ #: ../templates/editslideshow-sidebar.php:13
385
+ msgid "Manage Slides"
386
+ msgstr ""
387
+
388
+ #: ../templates/editslideshow-sidebar.php:17
389
+ msgid "Add Images"
390
+ msgstr ""
391
+
392
+ #: ../templates/editslideshow-sidebar.php:18
393
+ msgid "Delete Images"
394
+ msgstr ""
395
+
396
+ #: ../templates/editslideshow-sidebar.php:24
397
+ msgid "Randomize the slideshow order."
398
+ msgstr ""
399
+
400
+ #: ../templates/editslideshow-sidebar.php:35
401
+ msgid "Dimensions"
402
+ msgstr ""
403
+
404
+ #: ../templates/editslideshow-sidebar.php:41
405
+ msgid "Width:"
406
+ msgstr ""
407
+
408
+ #: ../templates/editslideshow-sidebar.php:47
409
+ msgid "Height:"
410
+ msgstr ""
411
+
412
+ #: ../templates/editslideshow-sidebar.php:51
413
+ msgid "Slideshow \"width\" and \"height\" values (in pixels)."
414
+ msgstr ""
415
+
416
+ #: ../templates/editslideshow-sidebar.php:58
417
+ msgid "Make this slideshow responsive."
418
+ msgstr ""
419
+
420
+ #: ../templates/editslideshow-sidebar.php:61
421
+ msgid ""
422
+ "Check this option to make this slideshow responsive. If enabled, the \"width"
423
+ "\" and \"height\" values above will act as maximums."
424
+ msgstr ""
425
+
426
+ #: ../templates/editslideshow-sidebar.php:71
427
+ msgid "Transitions"
428
+ msgstr ""
429
+
430
+ #: ../templates/editslideshow-sidebar.php:77
431
+ msgid "Effect:"
432
+ msgstr ""
433
+
434
+ #: ../templates/editslideshow-sidebar.php:79
435
+ msgid "Slide"
436
+ msgstr ""
437
+
438
+ #: ../templates/editslideshow-sidebar.php:80
439
+ msgid "Fade"
440
+ msgstr ""
441
+
442
+ #: ../templates/editslideshow-sidebar.php:84
443
+ msgid "Choose the transition effect you would like to use."
444
+ msgstr ""
445
+
446
+ #: ../templates/editslideshow-sidebar.php:90
447
+ msgid "Duration:"
448
+ msgstr ""
449
+
450
+ #: ../templates/editslideshow-sidebar.php:94
451
+ msgid "Sets the duration (in milliseconds) for the slideshow transition."
452
+ msgstr ""
453
+
454
+ #: ../templates/editslideshow-sidebar.php:109
455
+ msgid "Arrows:"
456
+ msgstr ""
457
+
458
+ #: ../templates/editslideshow-sidebar.php:119
459
+ msgid "Toggles the next and previous slide arrows."
460
+ msgstr ""
461
+
462
+ #: ../templates/editslideshow-sidebar.php:124
463
+ #: ../templates/editslideshow-sidebar.php:177
464
+ msgid "On Hover:"
465
+ msgstr ""
466
+
467
+ #: ../templates/editslideshow-sidebar.php:134
468
+ msgid ""
469
+ "Set to \"True\" to only show the arrows when the user hovers over the "
470
+ "slideshow."
471
+ msgstr ""
472
+
473
+ #: ../templates/editslideshow-sidebar.php:140
474
+ #: ../templates/editslideshow-sidebar.php:193
475
+ msgid "Position:"
476
+ msgstr ""
477
+
478
+ #: ../templates/editslideshow-sidebar.php:142
479
+ #: ../templates/editslideshow-sidebar.php:195
480
+ msgid "Inside"
481
+ msgstr ""
482
+
483
+ #: ../templates/editslideshow-sidebar.php:143
484
+ #: ../templates/editslideshow-sidebar.php:196
485
+ msgid "Outside"
486
+ msgstr ""
487
+
488
+ #: ../templates/editslideshow-sidebar.php:147
489
+ msgid "Select a position for the arrows."
490
+ msgstr ""
491
+
492
+ #: ../templates/editslideshow-sidebar.php:162
493
+ msgid "Pagination:"
494
+ msgstr ""
495
+
496
+ #: ../templates/editslideshow-sidebar.php:172
497
+ msgid ""
498
+ "Enable/Disable the Pagination Icons. Each icon represents a slide in their "
499
+ "respective order."
500
+ msgstr ""
501
+
502
+ #: ../templates/editslideshow-sidebar.php:187
503
+ msgid ""
504
+ "Set to \"True\" to only show the pagination when the user hovers over the "
505
+ "slideshow."
506
+ msgstr ""
507
+
508
+ #: ../templates/editslideshow-sidebar.php:199
509
+ msgid "Top Left"
510
+ msgstr ""
511
+
512
+ #: ../templates/editslideshow-sidebar.php:200
513
+ msgid "Top Right"
514
+ msgstr ""
515
+
516
+ #: ../templates/editslideshow-sidebar.php:201
517
+ msgid "Top Center"
518
+ msgstr ""
519
+
520
+ #: ../templates/editslideshow-sidebar.php:202
521
+ msgid "Bottom Left"
522
+ msgstr ""
523
+
524
+ #: ../templates/editslideshow-sidebar.php:203
525
+ msgid "Bottom Right"
526
+ msgstr ""
527
+
528
+ #: ../templates/editslideshow-sidebar.php:204
529
+ msgid "Bottom Center"
530
+ msgstr ""
531
+
532
+ #: ../templates/editslideshow-sidebar.php:208
533
+ msgid "Select a position for the pagination icons."
534
+ msgstr ""
535
+
536
+ #: ../templates/editslideshow-sidebar.php:218
537
+ msgid "Automatic Playback"
538
+ msgstr ""
539
+
540
+ #: ../templates/editslideshow-sidebar.php:223
541
+ msgid "Playback:"
542
+ msgstr ""
543
+
544
+ #: ../templates/editslideshow-sidebar.php:233
545
+ msgid "Enable/Disable slideshow automatic playback."
546
+ msgstr ""
547
+
548
+ #: ../templates/editslideshow-sidebar.php:239
549
+ msgid "Pause Duration:"
550
+ msgstr ""
551
+
552
+ #: ../templates/editslideshow-sidebar.php:243
553
+ msgid ""
554
+ "Sets the duration (in milliseconds) for the pause between slide transitions."
555
+ msgstr ""
556
+
557
+ #: ../templates/editslideshow-slide.php:7
558
+ msgid "Edit a Slide: #{{ data.id }}"
559
+ msgstr ""
560
+
561
+ #: ../templates/editslideshow-slide.php:23
562
+ msgid "Link URL"
563
+ msgstr ""
564
+
565
+ #: ../templates/editslideshow-slide.php:26
566
+ msgid "Open link same tab/window"
567
+ msgstr ""
568
+
569
+ #: ../templates/editslideshow-slide.php:27
570
+ msgid "Open link in new tab/window"
571
+ msgstr ""
572
+
573
+ #: ../templates/editslideshow-slide.php:29
574
+ msgid "Enter a URL to link this slide to another page."
575
+ msgstr ""
576
+
577
+ #: ../templates/editslideshow-slide.php:35
578
+ msgid "Enter a value for the image \"title\" attribute."
579
+ msgstr ""
580
+
581
+ #: ../templates/editslideshow-slide.php:39
582
+ msgid "Alt Text"
583
+ msgstr ""
584
+
585
+ #: ../templates/editslideshow-slide.php:41
586
+ msgid "Enter a value for the image \"alt\" text attribute."
587
+ msgstr ""
588
+
589
+ #: ../templates/editslideshow-slide.php:50
590
+ msgid "Apply Changes"
591
+ msgstr ""
592
+
593
+ #: ../templates/editslideshow-welcome.php:21
594
+ msgid "Dismiss"
595
+ msgstr ""
596
+
597
+ #: ../templates/editslideshow-welcome.php:23
598
+ msgid "Welcome to Easing Slider \"Lite\""
599
+ msgstr ""
600
+
601
+ #: ../templates/editslideshow-welcome.php:25
602
+ msgid ""
603
+ "Thanks for upgrading to Easing Slider \"Lite\". Here are some links to get "
604
+ "you clued up on the new plugin."
605
+ msgstr ""
606
+
607
+ #: ../templates/editslideshow-welcome.php:29
608
+ msgid "Get Started"
609
+ msgstr ""
610
+
611
+ #: ../templates/editslideshow-welcome.php:30
612
+ msgid "View the Documentation"
613
+ msgstr ""
614
+
615
+ #: ../templates/editslideshow-welcome.php:34
616
+ msgid "Need some help?"
617
+ msgstr ""
618
+
619
+ #: ../templates/editslideshow-welcome.php:36
620
+ msgid "Displaying a Slideshow"
621
+ msgstr ""
622
+
623
+ #: ../templates/editslideshow-welcome.php:37
624
+ msgid "Frequently Asked Questions"
625
+ msgstr ""
626
+
627
+ #: ../templates/editslideshow-welcome.php:38
628
+ msgid "Support Forums"
629
+ msgstr ""
630
+
631
+ #: ../templates/editslideshow.php:38
632
+ msgid "Save Slideshow"
633
+ msgstr ""
634
+
635
+ #: ../templates/slideshow.php:12
636
+ msgid ""
637
+ "<p style=\"background-color: #ffebe8; border: 1px solid #c00; border-radius: "
638
+ "4px; padding: 8px !important;\">The slideshow does not appear to exist. Oh "
639
+ "dear! Please try contacting support.</p>"
640
+ msgstr ""
641
+
642
+ #: ../templates/slideshow.php:19
643
+ msgid ""
644
+ "<p style=\"background-color: #ffebe8; border: 1px solid #c00; border-radius: "
645
+ "4px; padding: 8px !important;\">This slideshow contains no slides. Uh oh!"
646
+ msgstr ""
readme.txt CHANGED
@@ -77,6 +77,16 @@ This is easy. When viewing the <strong>"Edit Slideshow"</strong> Easing Slider "
77
 
78
  == Changelog ==
79
 
 
 
 
 
 
 
 
 
 
 
80
  = 2.1 =
81
  * Added "Customize" panel which allows you to make basic slideshow styling alterations using a new visual editor.
82
  * Reconfigured preloading functionality to fix a bug.
77
 
78
  == Changelog ==
79
 
80
+ = 2.1.1 =
81
+ * Fixed all IE bugs. Now working perfectly in IE7+.
82
+ * Separated legacy code into its own separate file.
83
+ * Added languages file with .pot for translating the plugin.
84
+ * Fixed some textual mistakes and commenting errors.
85
+ * Fixed backface visbility bugs in Webkit browsers.
86
+ * Improved reliability of responsive functionality on plugin initialization.
87
+ * Fixed escaping issues related to slashes and quotation marks in strings.
88
+ * Improved admin notices functionality: now using WordPress native hooks.
89
+
90
  = 2.1 =
91
  * Added "Customize" panel which allows you to make basic slideshow styling alterations using a new visual editor.
92
  * Reconfigured preloading functionality to fix a bug.
templates/customizer.php CHANGED
@@ -159,7 +159,7 @@
159
 
160
  <input type="hidden" name="customizations" id="customizations" value="">
161
  <?php /** This ensures that the JSON is encoded correctly. Using PHP JSON encode can cause magic quote issues */ ?>
162
- <script type="text/javascript">document.getElementById('customizations').value = '<?php echo json_encode( $customizations ); ?>';</script>
163
  </form>
164
 
165
  <div id="customize-preview" class="wp-full-overlay-main" style="position: relative;">
159
 
160
  <input type="hidden" name="customizations" id="customizations" value="">
161
  <?php /** This ensures that the JSON is encoded correctly. Using PHP JSON encode can cause magic quote issues */ ?>
162
+ <script type="text/javascript">document.getElementById('customizations').value = '<?php echo addslashes( json_encode( $customizations ) ); ?>';</script>
163
  </form>
164
 
165
  <div id="customize-preview" class="wp-full-overlay-main" style="position: relative;">
templates/editsettings.php CHANGED
@@ -7,17 +7,16 @@
7
  <h2><?php _e( 'Edit Settings', 'easingsliderlite' ); ?></h2>
8
  <form name="post" action="admin.php?page=easingsliderlite_edit_settings" method="post">
9
  <?php
 
10
  /** Security nonce fields */
11
  wp_nonce_field( "easingsliderlite-save_{$_GET['page']}", "easingsliderlite-save_{$_GET['page']}", false );
12
  wp_nonce_field( "easingsliderlite-reset_{$_GET['page']}", "easingsliderlite-reset_{$_GET['page']}", false );
13
- wp_nonce_field( "easingsliderlite-legacy-import_{$_GET['page']}", "easingsliderlite-legacy-import_{$_GET['page']}", false );
14
- wp_nonce_field( "easingsliderlite-legacy-remove_{$_GET['page']}", "easingsliderlite-legacy-remove_{$_GET['page']}", false );
 
 
15
  ?>
16
  <div class="main-panel">
17
- <div class="messages-container">
18
- <?php do_action( 'easingsliderlite_admin_messages' ); ?>
19
- </div>
20
-
21
  <h3><?php _e( 'General Settings', 'easingsliderlite' ); ?></h3>
22
  <table class="form-table main-settings">
23
  <tbody>
@@ -68,24 +67,6 @@
68
  </tbody>
69
  </table>
70
 
71
- <?php if ( get_option( 'easingslider_version' ) || get_option( 'activation' ) || get_option( 'sImg1' ) ) : ?>
72
- <div class="divider"></div>
73
-
74
- <h3><?php _e( 'Legacy Settings', 'easingsliderlite' ); ?></h3>
75
- <table class="form-table main-settings">
76
- <tbody>
77
- <tr valign="top">
78
- <th scope="row"><label for="load_scripts"><?php _e( 'Legacy Settings', 'easingsliderlite' ); ?></label></th>
79
- <td>
80
- <input type="submit" name="legacy-import" class="button button-primary warn" value="<?php _e( 'Import v1.x Settings', 'easingsliderlite' ); ?>">
81
- <input type="submit" name="legacy-remove" class="button button-secondary warn" value="<?php _e( 'Remove v1.x Settings', 'easingsliderlite' ); ?>">
82
- <p class="description"><?php _e( 'These buttons allow you to import and remove your old Easing Slider v1.x settings. Only remove them if you are sure you will not be downgrading the plugin in the future.', 'easingsliderlite' ); ?></p>
83
- </td>
84
- </tr>
85
- </tbody>
86
- </table>
87
- <?php endif; ?>
88
-
89
  <div class="divider"></div>
90
 
91
  <h3><?php _e( 'Reset Plugin', 'easingsliderlite' ); ?></h3>
@@ -130,6 +111,11 @@
130
 
131
  <div class="divider"></div>
132
 
 
 
 
 
 
133
  <p class="submit">
134
  <input type="submit" name="save" class="button button-primary button-large" id="save" accesskey="p" value="<?php _e( 'Save Settings', 'easingsliderlite' ); ?>">
135
  </p>
7
  <h2><?php _e( 'Edit Settings', 'easingsliderlite' ); ?></h2>
8
  <form name="post" action="admin.php?page=easingsliderlite_edit_settings" method="post">
9
  <?php
10
+
11
  /** Security nonce fields */
12
  wp_nonce_field( "easingsliderlite-save_{$_GET['page']}", "easingsliderlite-save_{$_GET['page']}", false );
13
  wp_nonce_field( "easingsliderlite-reset_{$_GET['page']}", "easingsliderlite-reset_{$_GET['page']}", false );
14
+
15
+ /** Before actions */
16
+ do_action( 'easingsliderlite_settings_before', $s, $_GET['page'] );
17
+
18
  ?>
19
  <div class="main-panel">
 
 
 
 
20
  <h3><?php _e( 'General Settings', 'easingsliderlite' ); ?></h3>
21
  <table class="form-table main-settings">
22
  <tbody>
67
  </tbody>
68
  </table>
69
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
70
  <div class="divider"></div>
71
 
72
  <h3><?php _e( 'Reset Plugin', 'easingsliderlite' ); ?></h3>
111
 
112
  <div class="divider"></div>
113
 
114
+ <?php
115
+ /** After actions */
116
+ do_action( 'easingsliderlite_settings_after', $s, $_GET['page'] );
117
+ ?>
118
+
119
  <p class="submit">
120
  <input type="submit" name="save" class="button button-primary button-large" id="save" accesskey="p" value="<?php _e( 'Save Settings', 'easingsliderlite' ); ?>">
121
  </p>
templates/editslideshow-sidebar.php CHANGED
@@ -1,3 +1,11 @@
 
 
 
 
 
 
 
 
1
  <!-- Manage Slides -->
2
  <div class="widgets-holder-wrap exclude">
3
  <div class="sidebar-name">
1
+ <?php if ( !apply_filters( 'easingsliderlite_hide_advert', __return_false() ) ) : ?>
2
+ <div style="margin-bottom: 15px;">
3
+ <a href="http://easingslider.com/" target="_blank">
4
+ <img src="<?php echo plugins_url( dirname( plugin_basename( EasingSliderLite::get_file() ) ) ) . DIRECTORY_SEPARATOR .'images'. DIRECTORY_SEPARATOR .'advert.png'; ?>" width="285" height="100" alt="<?php _e( 'Easing Slider, Go Pro!', 'easingsliderlite' ); ?>" />
5
+ </a>
6
+ </div>
7
+ <?php endif; ?>
8
+
9
  <!-- Manage Slides -->
10
  <div class="widgets-holder-wrap exclude">
11
  <div class="sidebar-name">
templates/editslideshow-slide.php CHANGED
@@ -14,8 +14,8 @@
14
  <div id="general" class="media-tab">
15
  <div class="embed-link-settings" style="top: 0;">
16
  <div class="thumbnail">
17
- <# var size = data.sizes.large || data.sizes.medium || data.sizes.thumbnail || data.url; #>
18
- <img src="{{ data.url }}" class="slide-thumbnail" alt="{{ data.alt }}" />
19
  <a href="#" id="change-image" class="button button-primary button-large change-image" data-editor="content" title="Change Image"><span class="wp-media-buttons-icon"></span> Change Image</a>
20
  </div>
21
 
14
  <div id="general" class="media-tab">
15
  <div class="embed-link-settings" style="top: 0;">
16
  <div class="thumbnail">
17
+ <# var thumbnail = data.sizes.large || data.sizes.medium || data.sizes.thumbnail || { url: data.url }; #>
18
+ <img src="{{ thumbnail.url }}" class="slide-thumbnail" alt="{{ data.alt }}" />
19
  <a href="#" id="change-image" class="button button-primary button-large change-image" data-editor="content" title="Change Image"><span class="wp-media-buttons-icon"></span> Change Image</a>
20
  </div>
21
 
templates/editslideshow-welcome.php CHANGED
@@ -14,40 +14,15 @@ if ( get_option( 'easingsliderlite_disable_welcome_panel' ) == false ) :
14
  ?>
15
  <div id="easingsliderlite-welcome-message" class="welcome-panel">
16
  <?php
17
- /** Display import legacy settings panel */
18
- if ( !get_option( 'easingsliderlite_major_upgrade' ) && ( get_option( 'easingslider_version' ) || get_option( 'activation' ) || get_option( 'sImg1' ) ) ) :
19
- ?>
20
- <div class="welcome-panel-content">
21
- <?php
22
- /** Security field */
23
- wp_nonce_field( "easingsliderlite-legacy-import_{$_GET['page']}", "easingsliderlite-legacy-import_{$_GET['page']}", false );
24
- ?>
25
- <h2><?php _e( 'Legacy Settings Detected', 'easingsliderlite' ); ?></h2>
26
- <p class="about-description">
27
- <?php _e( 'Click the button below to import your settings from Easing Slider v1.x', 'easingsliderlite' ); ?>
28
- </p>
29
- <div class="welcome-panel-column-container">
30
- <div class="welcome-panel-column">
31
- <h4><?php _e( 'Import your old settings', 'easingsliderlite' ); ?></h4>
32
- <input type="submit" name="legacy-import" class="button button-primary button-hero" value="<?php _e( 'Import my v1.x Easing Slider settings.', 'easingsliderlite' ); ?>">
33
- </div>
34
- </div>
35
- </div>
36
- <div class="divider"></div>
37
- <?php
38
- endif;
39
  ?>
40
 
41
  <a href="admin.php?page=easingsliderlite_edit_slideshow&amp;disable_welcome_panel=true" class="welcome-panel-close"><?php _e( 'Dismiss', 'easingsliderlite' ); ?></a>
42
  <div class="welcome-panel-content">
43
  <h3><?php _e( 'Welcome to Easing Slider "Lite"', 'easingsliderlite' ); ?></h3>
44
  <p class="about-description">
45
- <?php
46
- if ( get_option( 'easingsliderlite_major_upgrade' ) )
47
- _e( 'Thanks for upgrading to Easing Slider "Lite". Here are some links to get you clued up on the new plugin.', 'easingsliderlite' );
48
- else
49
- _e( 'Thanks for installing Easing Slider "Lite". Here are some links to help get you started.', 'easingsliderlite' );
50
- ?>
51
  </p>
52
  <div class="welcome-panel-column-container">
53
  <div class="welcome-panel-column">
@@ -65,5 +40,10 @@ if ( get_option( 'easingsliderlite_disable_welcome_panel' ) == false ) :
65
  </div>
66
  </div>
67
  </div>
 
 
 
 
 
68
  </div>
69
  <?php endif; ?>
14
  ?>
15
  <div id="easingsliderlite-welcome-message" class="welcome-panel">
16
  <?php
17
+ /** Before actions */
18
+ do_action( 'easingsliderlite_welcome_panel_before' );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19
  ?>
20
 
21
  <a href="admin.php?page=easingsliderlite_edit_slideshow&amp;disable_welcome_panel=true" class="welcome-panel-close"><?php _e( 'Dismiss', 'easingsliderlite' ); ?></a>
22
  <div class="welcome-panel-content">
23
  <h3><?php _e( 'Welcome to Easing Slider "Lite"', 'easingsliderlite' ); ?></h3>
24
  <p class="about-description">
25
+ <?php _e( 'Thanks for upgrading to Easing Slider "Lite". Here are some links to get you clued up on the new plugin.', 'easingsliderlite' ); ?>
 
 
 
 
 
26
  </p>
27
  <div class="welcome-panel-column-container">
28
  <div class="welcome-panel-column">
40
  </div>
41
  </div>
42
  </div>
43
+
44
+ <?php
45
+ /** After actions */
46
+ do_action( 'easingsliderlite_welcome_panel_after' );
47
+ ?>
48
  </div>
49
  <?php endif; ?>
templates/editslideshow.php CHANGED
@@ -16,10 +16,6 @@
16
 
17
  ?>
18
  <div class="main-panel">
19
- <div class="messages-container">
20
- <?php do_action( 'easingsliderlite_admin_messages' ); ?>
21
- </div>
22
-
23
  <div class="clearfix">
24
  <div class="thumbnails-container">
25
  <div class="inner clearfix">
@@ -41,7 +37,7 @@
41
  <input type="hidden" name="slides" id="slideshow-images" value="">
42
  <input type="submit" name="save" class="button button-primary button-large" id="save" accesskey="p" value="<?php _e( 'Save Slideshow', 'easingsliderlite' ); ?>">
43
  <?php /** This ensures that the slide's JSON is encoded correctly. Using PHP JSON encode can cause magic quote issues */ ?>
44
- <script type="text/javascript">document.getElementById('slideshow-images').value = '<?php echo json_encode( $s->slides ); ?>';</script>
45
  </div>
46
  </form>
47
  </div>
16
 
17
  ?>
18
  <div class="main-panel">
 
 
 
 
19
  <div class="clearfix">
20
  <div class="thumbnails-container">
21
  <div class="inner clearfix">
37
  <input type="hidden" name="slides" id="slideshow-images" value="">
38
  <input type="submit" name="save" class="button button-primary button-large" id="save" accesskey="p" value="<?php _e( 'Save Slideshow', 'easingsliderlite' ); ?>">
39
  <?php /** This ensures that the slide's JSON is encoded correctly. Using PHP JSON encode can cause magic quote issues */ ?>
40
+ <script type="text/javascript">document.getElementById('slideshow-images').value = '<?php echo addslashes( json_encode( $s->slides ) ); ?>';</script>
41
  </div>
42
  </form>
43
  </div>
templates/slideshow.php CHANGED
@@ -80,22 +80,21 @@
80
  /** Apply filter for custom styles */
81
  $slide_styles = apply_filters( 'easingsliderlite_slide_styles', $slide_styles, $slide, $s );
82
 
83
- /** Resized image */
84
- if ( $settings['resizing'] )
85
- $image = ESL_Resize::resize( $slide->url, $s->dimensions->width, $s->dimensions->height, true, true );
86
- else
87
- $image = array( 'url' => $slide->url, 'width' => $s->dimensions->width, 'height' => $s->dimensions->height );
 
 
 
 
88
 
89
  ?>
90
  <div class="easingsliderlite-slide" style="<?php echo $slide_styles; ?>">
91
  <?php if ( !empty( $slide->link ) ) { ?><a href="<?php echo esc_attr( $slide->link ); ?>" target="<?php echo esc_attr( $slide->linkTarget ); ?>"><?php } ?>
92
  <img src="<?php echo esc_attr( $image['url'] ); ?>" class="easingsliderlite-image" alt="<?php echo esc_attr( $slide->alt ); ?>" title="<?php echo esc_attr( $slide->title ); ?>" />
93
  <?php if ( !empty( $slide->link ) ) { ?></a><?php } ?>
94
- <?php if ( !empty( $slide->content ) ) { ?>
95
- <div class="easingsliderlite-slide-content">
96
- <?php echo do_shortcode( html_entity_decode( $slide->content ) ) ?>
97
- </div>
98
- <?php } ?>
99
  </div>
100
  <?php endforeach; ?>
101
  </div>
@@ -130,7 +129,7 @@
130
 
131
  /** Get the inline styling */
132
  $styles = ( $c->shadow->enable ) ? 'display: block; ' : 'display: none; ';
133
- $styles .= ( $s->dimensions->responsive ) ? "max-width: {$s->dimensions->width}px; " : "width: {$s->dimensions->width}px ";
134
  $styles .= ( $c->border->width !== 0 ) ? "margin-left: {$c->border->width}px;" : '';
135
 
136
  /** Print the shadow */
80
  /** Apply filter for custom styles */
81
  $slide_styles = apply_filters( 'easingsliderlite_slide_styles', $slide_styles, $slide, $s );
82
 
83
+ /** Image array */
84
+ $image = array( 'url' => $slide->url, 'width' => $s->dimensions->width, 'height' => $s->dimensions->height );
85
+
86
+ /** Resize the image (if enabled) */
87
+ if ( $settings['resizing'] ) {
88
+ $resized_image = ESL_Resize::resize( $slide->url, $s->dimensions->width, $s->dimensions->height, true, false );
89
+ if ( !is_wp_error( $resized_image ) )
90
+ $image = $resized_image;
91
+ }
92
 
93
  ?>
94
  <div class="easingsliderlite-slide" style="<?php echo $slide_styles; ?>">
95
  <?php if ( !empty( $slide->link ) ) { ?><a href="<?php echo esc_attr( $slide->link ); ?>" target="<?php echo esc_attr( $slide->linkTarget ); ?>"><?php } ?>
96
  <img src="<?php echo esc_attr( $image['url'] ); ?>" class="easingsliderlite-image" alt="<?php echo esc_attr( $slide->alt ); ?>" title="<?php echo esc_attr( $slide->title ); ?>" />
97
  <?php if ( !empty( $slide->link ) ) { ?></a><?php } ?>
 
 
 
 
 
98
  </div>
99
  <?php endforeach; ?>
100
  </div>
129
 
130
  /** Get the inline styling */
131
  $styles = ( $c->shadow->enable ) ? 'display: block; ' : 'display: none; ';
132
+ $styles .= ( $s->dimensions->responsive ) ? "max-width: {$s->dimensions->width}px; " : "width: {$s->dimensions->width}px; ";
133
  $styles .= ( $c->border->width !== 0 ) ? "margin-left: {$c->border->width}px;" : '';
134
 
135
  /** Print the shadow */