Easing Slider - Version 2.0.1.3

Version Description

  • Made some alterations to give a better success rate when upgrading from v1.x.
  • Added options to manually import v1.x options, instead of automatically (which often failed and caused major problems).
  • Fixed IE7 bugs
  • Reconfigured admin script & style functions to hopefully resolve some issues that were preventing them from loading for some users (inexplicably).
  • Disable image resizing functionality on activation due to some rare unknown issues. Feel free to use it if you like!
Download this release

Release Info

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

Code changes from version 2.0.1.2 to 2.0.1.3

easingsliderlite.php CHANGED
@@ -3,7 +3,7 @@
3
  /*
4
  Plugin Name: Easing Slider "Lite"
5
  Plugin URI: http://easingslider.com/
6
- Version: 2.0.1.2
7
  Author: Matthew Ruddy
8
  Author URI: http://matthewruddy.com/
9
  Description: Easing Slider "Lite" is an easy to use slideshow plugin for WordPress. Simple, lightweight & designed to get the job done, it allows you to get going without any fuss.
@@ -60,7 +60,14 @@ class EasingSliderLite {
60
  *
61
  * @since 2.0
62
  */
63
- public static $version = '2.0.1.2';
 
 
 
 
 
 
 
64
 
65
  /**
66
  * Arrays of admin messages
@@ -139,10 +146,10 @@ class EasingSliderLite {
139
  add_shortcode( 'easingslider', array( $this, 'do_shortcode' ) );
140
 
141
  /** Plugin actions */
142
- add_action( 'init', array( $this, 'register_all_styles' ) );
143
- add_action( 'init', array( $this, 'register_all_scripts' ) );
144
  add_action( 'admin_menu', array( $this, 'add_menus' ) );
145
  add_action( 'admin_menu', array( $this, 'do_actions' ) );
 
 
146
  add_action( 'media_buttons', array( $this, 'add_media_button' ), 11 );
147
  add_action( 'print_media_templates', array( $this, 'print_backbone_templates' ) );
148
  add_action( 'wp_before_admin_bar_render', array( $this, 'add_admin_bar_links' ) );
@@ -271,7 +278,7 @@ class EasingSliderLite {
271
  add_option( 'easingsliderlite_slideshow', $this->defaults() );
272
  add_option( 'easingsliderlite_settings',
273
  array(
274
- 'resizing' => true,
275
  'load_styles' => 'header',
276
  'load_scripts' => 'header'
277
  )
@@ -443,11 +450,10 @@ class EasingSliderLite {
443
  public function add_menus() {
444
 
445
  /** Hook suffixs for admin menus */
446
- $suffixes = array();
447
  $pages = array( 'easingsliderlite_edit_slideshow', 'easingsliderlite_edit_settings' );
448
 
449
  /** Toplevel menu */
450
- $hook_suffixes[] = add_menu_page(
451
  __( 'Slideshow', 'easingsliderlite' ),
452
  __( 'Slideshow', 'easingsliderlite' ),
453
  'easingsliderlite_edit_slideshow',
@@ -456,7 +462,7 @@ class EasingSliderLite {
456
  );
457
 
458
  /** Submenus */
459
- $hook_suffixes[] = add_submenu_page(
460
  'easingsliderlite_edit_slideshow',
461
  __( 'Edit Slideshow', 'easingsliderlite' ),
462
  __( 'Edit Slideshow', 'easingsliderlite' ),
@@ -464,7 +470,7 @@ class EasingSliderLite {
464
  'easingsliderlite_edit_slideshow',
465
  array( $this, 'edit_slideshow_view' )
466
  );
467
- $hook_suffixes[] = add_submenu_page(
468
  'easingsliderlite_edit_slideshow',
469
  __( 'Edit Settings', 'easingsliderlite' ),
470
  __( 'Settings', 'easingsliderlite' ),
@@ -477,12 +483,6 @@ class EasingSliderLite {
477
  if ( isset( $_GET['page'] ) && in_array( $_GET['page'], $pages ) )
478
  $this->is_easingsliderlite_page = true;
479
 
480
- /** Load our scripts and styles for our plugin menus */
481
- foreach ( $hook_suffixes as $hook_suffix ) {
482
- add_action( "admin_print_styles-{$hook_suffix}", array( $this, 'enqueue_admin_styles' ) );
483
- add_action( "admin_print_scripts-{$hook_suffix}", array( $this, 'enqueue_admin_scripts' ) );
484
- }
485
-
486
  }
487
 
488
  /**
@@ -614,6 +614,26 @@ class EasingSliderLite {
614
  if ( isset( $_GET['disable_welcome_panel'] ) )
615
  update_option( 'easingsliderlite_disable_welcome_panel', filter_var( $_GET['disable_welcome_panel'], FILTER_VALIDATE_BOOLEAN ) );
616
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
617
  /** Save or update a slideshow. Whichever is appropriate. */
618
  if ( isset( $_POST['save'] ) ) {
619
 
@@ -650,12 +670,32 @@ class EasingSliderLite {
650
  */
651
  public function do_settings_actions( $page ) {
652
 
653
- /** Removes old legacy Easing Slider settings */
654
- if ( isset( $_POST['easingslider'] ) ) {
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
655
 
656
  /** Security check */
657
- if ( !$this->security_check( 'easingslider', $page ) ) {
658
- wp_die( __( 'Security check has failed. Action has been prevented. Please try again.', 'easingsliderlite' ) );
659
  exit();
660
  }
661
 
@@ -773,46 +813,21 @@ class EasingSliderLite {
773
  }
774
 
775
  /**
776
- * Register all admin stylesheets
777
  *
778
  * @since 2.0
779
  */
780
- public function register_all_styles() {
781
-
782
- /** Get the extension */
783
- $ext = ( apply_filters( 'easingsliderlite_style_debug', __return_false() ) === true ) ? '.css' : '.min.css';
784
 
785
- /** Register styles */
786
- wp_register_style( 'rsd-admin', plugins_url( dirname( plugin_basename( self::get_file() ) ) . DIRECTORY_SEPARATOR .'css'. DIRECTORY_SEPARATOR .'admin'. $ext ), false, self::$version );
787
- wp_register_style( 'rsd-slideshow', plugins_url( dirname( plugin_basename( self::get_file() ) ) . DIRECTORY_SEPARATOR .'css'. DIRECTORY_SEPARATOR .'slideshow'. $ext ), false, self::$version );
788
-
789
- }
790
-
791
- /**
792
- * Register all admin scripts
793
- *
794
- * @since 2.0
795
- */
796
- public function register_all_scripts() {
797
 
798
  /** Get the extension */
799
- $ext = ( apply_filters( 'easingsliderlite_script_debug', __return_false() ) ) ? '.js' : '.min.js';
800
-
801
- /** Register scripts */
802
- wp_register_script( 'rsd-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);
803
- wp_register_script( 'rsd-slideshow', plugins_url( dirname( plugin_basename( self::get_file() ) ) . DIRECTORY_SEPARATOR .'js'. DIRECTORY_SEPARATOR .'slideshow'. $ext ), false, self::$version );
804
-
805
- }
806
-
807
- /**
808
- * Loads admin stylesheets
809
- *
810
- * @since 2.0
811
- */
812
- public function enqueue_admin_styles() {
813
 
814
- /** Load admin styling */
815
- wp_enqueue_style( 'rsd-admin' );
816
 
817
  /** Load your custom admin styles here */
818
  do_action( 'easingsliderlite_enqueue_admin_styles' );
@@ -824,16 +839,21 @@ class EasingSliderLite {
824
  *
825
  * @since 2.0
826
  */
827
- public function enqueue_admin_scripts() {
828
 
829
- /** Load new media uploader functionality */
830
- wp_enqueue_media();
 
831
 
832
- /** Load admin scripting and jQuery sortables plugin */
833
- wp_enqueue_script( 'rsd-admin' );
 
 
 
 
834
 
835
  /** Print Localized variables */
836
- wp_localize_script( 'rsd-admin', 'easingsliderlite', $this->localizations() );
837
 
838
  /** Load your custom admin scripts here */
839
  do_action( 'easingsliderlite_enqueue_admin_scripts' );
@@ -848,6 +868,7 @@ class EasingSliderLite {
848
  public function localizations() {
849
  return array(
850
  'plugin_url' => '/wp-content/plugins/'. dirname( plugin_basename( self::get_file() ) ) .'/',
 
851
  'delete_image' => __( 'Are you sure you wish to delete this image? This cannot be reversed.', 'easingsliderlite' ),
852
  'delete_images' => __( 'Are you sure you wish to delete all of this slideshows images? This cannot be reversed.', 'easingsliderlite' ),
853
  'media_upload' => array(
3
  /*
4
  Plugin Name: Easing Slider "Lite"
5
  Plugin URI: http://easingslider.com/
6
+ Version: 2.0.1.3
7
  Author: Matthew Ruddy
8
  Author URI: http://matthewruddy.com/
9
  Description: Easing Slider "Lite" is an easy to use slideshow plugin for WordPress. Simple, lightweight & designed to get the job done, it allows you to get going without any fuss.
60
  *
61
  * @since 2.0
62
  */
63
+ public static $version = '2.0.1.3';
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
+ */
70
+ public $whitelist = array();
71
 
72
  /**
73
  * Arrays of admin messages
146
  add_shortcode( 'easingslider', array( $this, 'do_shortcode' ) );
147
 
148
  /** Plugin actions */
 
 
149
  add_action( 'admin_menu', array( $this, 'add_menus' ) );
150
  add_action( 'admin_menu', array( $this, 'do_actions' ) );
151
+ add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_admin_styles' ) );
152
+ add_action( 'admin_enqueue_scripts', array( $this, 'enqueue_admin_scripts' ) );
153
  add_action( 'media_buttons', array( $this, 'add_media_button' ), 11 );
154
  add_action( 'print_media_templates', array( $this, 'print_backbone_templates' ) );
155
  add_action( 'wp_before_admin_bar_render', array( $this, 'add_admin_bar_links' ) );
278
  add_option( 'easingsliderlite_slideshow', $this->defaults() );
279
  add_option( 'easingsliderlite_settings',
280
  array(
281
+ 'resizing' => false,
282
  'load_styles' => 'header',
283
  'load_scripts' => 'header'
284
  )
450
  public function add_menus() {
451
 
452
  /** Hook suffixs for admin menus */
 
453
  $pages = array( 'easingsliderlite_edit_slideshow', 'easingsliderlite_edit_settings' );
454
 
455
  /** Toplevel menu */
456
+ $this->whitelist[] = add_menu_page(
457
  __( 'Slideshow', 'easingsliderlite' ),
458
  __( 'Slideshow', 'easingsliderlite' ),
459
  'easingsliderlite_edit_slideshow',
462
  );
463
 
464
  /** Submenus */
465
+ $this->whitelist[] = add_submenu_page(
466
  'easingsliderlite_edit_slideshow',
467
  __( 'Edit Slideshow', 'easingsliderlite' ),
468
  __( 'Edit Slideshow', 'easingsliderlite' ),
470
  'easingsliderlite_edit_slideshow',
471
  array( $this, 'edit_slideshow_view' )
472
  );
473
+ $this->whitelist[] = add_submenu_page(
474
  'easingsliderlite_edit_slideshow',
475
  __( 'Edit Settings', 'easingsliderlite' ),
476
  __( 'Settings', 'easingsliderlite' ),
483
  if ( isset( $_GET['page'] ) && in_array( $_GET['page'], $pages ) )
484
  $this->is_easingsliderlite_page = true;
485
 
 
 
 
 
 
 
486
  }
487
 
488
  /**
614
  if ( isset( $_GET['disable_welcome_panel'] ) )
615
  update_option( 'easingsliderlite_disable_welcome_panel', filter_var( $_GET['disable_welcome_panel'], FILTER_VALIDATE_BOOLEAN ) );
616
 
617
+ /** Imports legacy Easing Slider setting */
618
+ if ( isset( $_POST['legacy-import'] ) ) {
619
+
620
+ /** Security check */
621
+ if ( !$this->security_check( 'legacy-import', $page ) ) {
622
+ wp_die( __( 'Security check has failed. Import has been prevented. Please try again.', 'easingsliderlite' ) );
623
+ exit();
624
+ }
625
+
626
+ /** Uninstall the plugin (thus removing its settings) */
627
+ $this->uninstall();
628
+
629
+ /** Import old settings */
630
+ ESL_Upgrade::do_major_upgrade();
631
+
632
+ /** Queue message */
633
+ return $this->queue_message( __( 'Easing Slider settings have been imported.', 'easingsliderlite' ), 'updated' );
634
+
635
+ }
636
+
637
  /** Save or update a slideshow. Whichever is appropriate. */
638
  if ( isset( $_POST['save'] ) ) {
639
 
670
  */
671
  public function do_settings_actions( $page ) {
672
 
673
+ /** Imports legacy Easing Slider setting */
674
+ if ( isset( $_POST['legacy-import'] ) ) {
675
+
676
+ /** Security check */
677
+ if ( !$this->security_check( 'legacy-import', $page ) ) {
678
+ wp_die( __( 'Security check has failed. Import has been prevented. Please try again.', 'easingsliderlite' ) );
679
+ exit();
680
+ }
681
+
682
+ /** Uninstall the plugin (thus removing its settings) */
683
+ $this->uninstall();
684
+
685
+ /** Import old settings */
686
+ ESL_Upgrade::do_major_upgrade();
687
+
688
+ /** Queue message */
689
+ return $this->queue_message( __( 'Easing Slider settings have been imported.', 'easingsliderlite' ), 'updated' );
690
+
691
+ }
692
+
693
+ /** Removes legacy Easing Slider settings */
694
+ if ( isset( $_POST['legacy-remove'] ) ) {
695
 
696
  /** Security check */
697
+ if ( !$this->security_check( 'legacy-remove', $page ) ) {
698
+ wp_die( __( 'Security check has failed. Removal has been prevented. Please try again.', 'easingsliderlite' ) );
699
  exit();
700
  }
701
 
813
  }
814
 
815
  /**
816
+ * Loads admin stylesheets
817
  *
818
  * @since 2.0
819
  */
820
+ public function enqueue_admin_styles( $hook ) {
 
 
 
821
 
822
+ /** Bail if not an Easing Slider "Lite" page */
823
+ if ( !in_array( $hook, $this->whitelist ) )
824
+ return;
 
 
 
 
 
 
 
 
 
825
 
826
  /** Get the extension */
827
+ $ext = ( apply_filters( 'easingsliderlite_style_debug', __return_false() ) === true ) ? '.css' : '.min.css';
 
 
 
 
 
 
 
 
 
 
 
 
 
828
 
829
+ /** Load styles */
830
+ wp_enqueue_style( 'esl-admin', plugins_url( dirname( plugin_basename( self::get_file() ) ) . DIRECTORY_SEPARATOR .'css'. DIRECTORY_SEPARATOR .'admin'. $ext ), false, self::$version );
831
 
832
  /** Load your custom admin styles here */
833
  do_action( 'easingsliderlite_enqueue_admin_styles' );
839
  *
840
  * @since 2.0
841
  */
842
+ public function enqueue_admin_scripts( $hook ) {
843
 
844
+ /** Bail if not an Easing Slider "Lite" page */
845
+ if ( !in_array( $hook, $this->whitelist ) )
846
+ return;
847
 
848
+ /** Get the extension */
849
+ $ext = ( apply_filters( 'easingsliderlite_script_debug', __return_false() ) ) ? '.js' : '.min.js';
850
+
851
+ /** Load scripts */
852
+ wp_enqueue_media();
853
+ wp_enqueue_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 );
854
 
855
  /** Print Localized variables */
856
+ wp_localize_script( 'esl-admin', 'easingsliderlite', $this->localizations() );
857
 
858
  /** Load your custom admin scripts here */
859
  do_action( 'easingsliderlite_enqueue_admin_scripts' );
868
  public function localizations() {
869
  return array(
870
  'plugin_url' => '/wp-content/plugins/'. dirname( plugin_basename( self::get_file() ) ) .'/',
871
+ 'warn' => __( 'Are you sure you wish to do this? This cannot be reversed.', 'easingsliderlite' ),
872
  'delete_image' => __( 'Are you sure you wish to delete this image? This cannot be reversed.', 'easingsliderlite' ),
873
  'delete_images' => __( 'Are you sure you wish to delete all of this slideshows images? This cannot be reversed.', 'easingsliderlite' ),
874
  'media_upload' => array(
includes/Slideshow.php CHANGED
@@ -35,8 +35,11 @@ class ESL_Slideshow {
35
  */
36
  public static function enqueue_styles() {
37
 
 
 
 
38
  /** Load styling */
39
- wp_enqueue_style( 'rsd-slideshow' );
40
 
41
  /** Trigger actions */
42
  do_action( 'easingsliderlite_enqueue_styles' );
@@ -50,14 +53,15 @@ class ESL_Slideshow {
50
  */
51
  public static function enqueue_scripts() {
52
 
 
 
 
53
  /** Get plugin settings */
54
  $settings = get_option( 'easingsliderlite_settings' );
55
 
56
- /** Load jQuery */
57
  wp_enqueue_script( 'jquery' );
58
-
59
- /** Load slideshow script */
60
- wp_enqueue_script( 'rsd-slideshow' );
61
 
62
  /** Trigger actions */
63
  do_action( 'easingsliderlite_enqueue_scripts' );
35
  */
36
  public static function enqueue_styles() {
37
 
38
+ /** Get the extension */
39
+ $ext = ( apply_filters( 'easingsliderlite_style_debug', __return_false() ) === true ) ? '.css' : '.min.css';
40
+
41
  /** Load styling */
42
+ wp_enqueue_style( 'esl-slideshow', plugins_url( dirname( plugin_basename( EasingSliderLite::get_file() ) ) . DIRECTORY_SEPARATOR .'css'. DIRECTORY_SEPARATOR .'slideshow'. $ext ), false, EasingSliderLite::$version );
43
 
44
  /** Trigger actions */
45
  do_action( 'easingsliderlite_enqueue_styles' );
53
  */
54
  public static function enqueue_scripts() {
55
 
56
+ /** Get the extension */
57
+ $ext = ( apply_filters( 'easingsliderlite_script_debug', __return_false() ) === true ) ? '.js' : '.min.js';
58
+
59
  /** Get plugin settings */
60
  $settings = get_option( 'easingsliderlite_settings' );
61
 
62
+ /** Load scripts */
63
  wp_enqueue_script( 'jquery' );
64
+ wp_enqueue_script( 'esl-slideshow', plugins_url( dirname( plugin_basename( EasingSliderLite::get_file() ) ) . DIRECTORY_SEPARATOR .'js'. DIRECTORY_SEPARATOR .'slideshow'. $ext ), false, EasingSliderLite::$version );
 
 
65
 
66
  /** Trigger actions */
67
  do_action( 'easingsliderlite_enqueue_scripts' );
includes/Upgrade.php CHANGED
@@ -18,74 +18,32 @@ class ESL_Upgrade {
18
  /** Get current plugin version */
19
  $version = get_option( 'easingsliderlite_version' );
20
 
21
- /** Let the upgrades begin! */
22
- if ( self::should_do_major_upgrade() )
23
- self::do_major_upgrade();
24
-
25
- /** Bail if we are already up to date */
26
- if ( $version == EasingSliderLite::$version )
27
- return;
28
-
29
- /** Do 2.0 to 2.0.1 upgrade */
30
- if ( get_option( 'rivasliderlite_version') )
31
  self::do_201_upgrade();
 
 
32
 
33
  /** Custom hooks */
34
  do_action( 'easingsliderlite_upgrades', EasingSliderLite::$version, $version );
35
 
36
- /** Update plugin version */
37
- update_option( 'easingsliderlite_version', EasingSliderLite::$version );
38
-
39
- }
40
-
41
- /**
42
- * Do 2.0.1 upgrades
43
- *
44
- * @since 2.0.1
45
- */
46
- public static final function do_201_upgrade() {
47
-
48
- global $wp_roles;
49
-
50
- /** Transfer old options for plugin name revert */
51
- update_option( 'easingsliderlite_version', get_option( 'rivasliderlite_version' ) );
52
- update_option( 'easingsliderlite_slideshow', get_option( 'rivasliderlite_slideshow' ) );
53
- update_option( 'easingsliderlite_settings', get_option( 'rivasliderlite_settings' ) );
54
- update_option( 'easingsliderlite_major_upgrade', get_option( 'rivasliderlite_easingslider_upgrade' ) );
55
- update_option( 'easingsliderlite_disable_welcome_panel', get_option( 'rivasliderlite_disable_welcome_panel' ) );
56
- delete_option( 'rivasliderlite_version' );
57
- delete_option( 'rivasliderlite_slideshow' );
58
- delete_option( 'rivasliderlite_settings' );
59
- delete_option( 'rivasliderlite_easingslider_upgrade' );
60
- delete_option( 'rivasliderlite_disable_welcome_panel' );
61
-
62
- /** Remove old permissions and add new ones */
63
- foreach ( $wp_roles->roles as $role => $info ) {
64
- $user_role = get_role( $role );
65
- EasingSliderLite::get_instance()->remove_capability( 'rivasliderlite_edit_slideshow', $user_role );
66
- EasingSliderLite::get_instance()->remove_capability( 'rivasliderlite_edit_settings', $user_role );
67
- }
68
- EasingSliderLite::get_instance()->manage_capabilities( 'add' );
69
- }
70
-
71
-
72
- /**
73
- * Checks if we should do an Easing Slider upgrade procedure
74
- *
75
- * @since 2.0
76
- */
77
- public static final function should_do_major_upgrade() {
78
-
79
- if ( get_option( 'easingslider_version' ) !== false || get_option( 'activation' ) !== false || get_option( 'sImg1' ) !== false ) {
80
- if ( get_option( 'easingsliderlite_major_upgrade' ) === false )
81
- return true;
82
- }
83
- return false;
84
 
85
  }
86
 
87
  /**
88
  * Upgrade settings from the old Easing Slider plugin
 
89
  *
90
  * @since 2.0
91
  */
@@ -140,13 +98,55 @@ class ESL_Upgrade {
140
  /** Update the slideshow settings */
141
  update_option( 'easingsliderlite_slideshow', $slideshow );
142
 
143
- /** Make some settings changes */
144
- $settings = get_option( 'easingsliderlite_settings' );
145
- $settings['resizing'] = false;
146
- update_option( 'easingsliderlite_settings', $settings );
147
-
148
  /** Flag upgrade */
149
  update_option( 'easingsliderlite_major_upgrade', 1 );
150
 
151
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
152
  }
18
  /** Get current plugin version */
19
  $version = get_option( 'easingsliderlite_version' );
20
 
21
+ /** Trigger activation if needed */
22
+ if ( !$version )
23
+ EasingSliderLite::get_instance()->activate();
24
+
25
+ /**
26
+ * Check and do upgrade for v2.0.1.
27
+ * Bug fix included here incase upgrade from v2.0 - v2.0.1.3 didn't go smoothly and plugin wasn't activated correctly.
28
+ * A name change occurred in this version, so we check for the old database option before execution (because the user may never have upgraded to v2.0!)
29
+ */
30
+ if ( get_option( 'rivasliderlite_version' ) && ( version_compare( $version, '2.0.1', '<' ) || version_compare( $version, '2.0.1.3', '=' ) ) )
31
  self::do_201_upgrade();
32
+ if ( get_option( 'rivasliderlite_version' ) && ( version_compare( $version, '2.0.1', '=' ) ) )
33
+ self::do_201_cleanup();
34
 
35
  /** Custom hooks */
36
  do_action( 'easingsliderlite_upgrades', EasingSliderLite::$version, $version );
37
 
38
+ /** Update plugin version number if needed */
39
+ if ( !version_compare( $version, EasingSliderLite::$version, '=' ) )
40
+ update_option( 'easingsliderlite_version', EasingSliderLite::$version );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
41
 
42
  }
43
 
44
  /**
45
  * Upgrade settings from the old Easing Slider plugin
46
+ * We don't do this automatically. Instead, we give the user the choice through the 'Edit Slideshow' panel.
47
  *
48
  * @since 2.0
49
  */
98
  /** Update the slideshow settings */
99
  update_option( 'easingsliderlite_slideshow', $slideshow );
100
 
 
 
 
 
 
101
  /** Flag upgrade */
102
  update_option( 'easingsliderlite_major_upgrade', 1 );
103
 
104
  }
105
+
106
+ /**
107
+ * Do 2.0.1 upgrades
108
+ *
109
+ * @since 2.0.1
110
+ */
111
+ public static final function do_201_upgrade() {
112
+
113
+ global $wp_roles;
114
+
115
+ /** Transfer old options for plugin name revert */
116
+ update_option( 'easingsliderlite_version', get_option( 'rivasliderlite_version' ) );
117
+ update_option( 'easingsliderlite_slideshow', get_option( 'rivasliderlite_slideshow' ) );
118
+ update_option( 'easingsliderlite_settings', get_option( 'rivasliderlite_settings' ) );
119
+ /**
120
+ * If we've upgraded to v2.0, regardless if our major upgrade fired successfully or not
121
+ * we don't want to fire it again and destroy up any changes we've made since
122
+ */
123
+ update_option( 'easingsliderlite_major_upgrade', 1 );
124
+ update_option( 'easingsliderlite_disable_welcome_panel', get_option( 'rivasliderlite_disable_welcome_panel' ) );
125
+
126
+ /** Cleanup the old settings */
127
+ self::do_201_cleanup();
128
+
129
+ /** Remove old permissions and add new ones */
130
+ foreach ( $wp_roles->roles as $role => $info ) {
131
+ $user_role = get_role( $role );
132
+ EasingSliderLite::get_instance()->remove_capability( 'rivasliderlite_edit_slideshow', $user_role );
133
+ EasingSliderLite::get_instance()->remove_capability( 'rivasliderlite_edit_settings', $user_role );
134
+ }
135
+ EasingSliderLite::get_instance()->manage_capabilities( 'add' );
136
+
137
+ }
138
+
139
+ /**
140
+ * Clean's up setting after v2.0.1 upgrade
141
+ *
142
+ * @since 2.0.1.3
143
+ */
144
+ public static final function do_201_cleanup() {
145
+ delete_option( 'rivasliderlite_version' );
146
+ delete_option( 'rivasliderlite_slideshow' );
147
+ delete_option( 'rivasliderlite_settings' );
148
+ delete_option( 'rivasliderlite_easingslider_upgrade' );
149
+ delete_option( 'rivasliderlite_disable_welcome_panel' );
150
+ }
151
+
152
  }
js/admin.js CHANGED
@@ -1,5 +1,3 @@
1
- "use strict";
2
-
3
  ;(function($) {
4
 
5
  /** Backbone pre-compiled template loader */
@@ -547,7 +545,7 @@
547
 
548
  /** Show warning prompts */
549
  $('.warn').bind('click', function() {
550
- if ( !confirm('Are you sure you want to do this? This cannot be reversed.' ) )
551
  return false;
552
  });
553
 
 
 
1
  ;(function($) {
2
 
3
  /** Backbone pre-compiled template loader */
545
 
546
  /** Show warning prompts */
547
  $('.warn').bind('click', function() {
548
+ if ( !confirm( easingsliderlite.warn ) )
549
  return false;
550
  });
551
 
js/admin.min.js CHANGED
@@ -1,2 +1,2 @@
1
- "use strict";(function(a){window.TemplateLoader={get:function(b){if(!this.templates){this.templates={}}var c=this.templates[b];if(!c){c=a(b).html();c=_.template(c);this.templates[b]=c}return c}};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=Backbone.View.extend({$container:a(".thumbnails-container .inner"),initialize:function(){var b=this;this.template=TemplateLoader.get("#tmpl-slide");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=Backbone.View.extend({attributes:{tabindex:0},changeImageView:null,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.template=TemplateLoader.get("#tmpl-edit-slide");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()
2
- }});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={};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("Are you sure you want to do this? This cannot be reversed.")){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.TemplateLoader={get:function(b){if(!this.templates){this.templates={}}var c=this.templates[b];if(!c){c=a(b).html();c=_.template(c);this.templates[b]=c}return c}};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=Backbone.View.extend({$container:a(".thumbnails-container .inner"),initialize:function(){var b=this;this.template=TemplateLoader.get("#tmpl-slide");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=Backbone.View.extend({attributes:{tabindex:0},changeImageView:null,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.template=TemplateLoader.get("#tmpl-edit-slide");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);
js/slideshow.js CHANGED
@@ -16,7 +16,7 @@
16
  base.$images = base.$slides.find('.easingsliderlite-image');
17
 
18
  /** Get the plugin options */
19
- base.options = o = $.extend({}, $.EasingSliderLite.defaults, JSON.parse(base.$el.attr('data-options')));
20
 
21
  /** State variables */
22
  base.current = 0;
@@ -259,8 +259,6 @@
259
 
260
  });
261
 
262
- return 'test';
263
-
264
  };
265
 
266
  /**
@@ -569,7 +567,7 @@
569
  */
570
  $.EasingSliderLite.defaults = {
571
  general: {
572
- enableCSS3: true,
573
  },
574
  navigation: {
575
  arrows: true,
@@ -578,16 +576,16 @@
578
  pagination: true,
579
  pagination_hover: true,
580
  pagination_position: 'inside',
581
- pagination_location: 'bottom-left',
582
  },
583
  dimensions: {
584
  width: 500,
585
  height: 200,
586
- responsive: true,
587
  },
588
  transitions: {
589
  effect: 'slide',
590
- duration: 500,
591
  },
592
  playback: {
593
  enabled: false,
16
  base.$images = base.$slides.find('.easingsliderlite-image');
17
 
18
  /** Get the plugin options */
19
+ base.options = o = $.extend({}, $.EasingSliderLite.defaults, $.parseJSON(base.$el.attr('data-options')));
20
 
21
  /** State variables */
22
  base.current = 0;
259
 
260
  });
261
 
 
 
262
  };
263
 
264
  /**
567
  */
568
  $.EasingSliderLite.defaults = {
569
  general: {
570
+ enableCSS3: true
571
  },
572
  navigation: {
573
  arrows: true,
576
  pagination: true,
577
  pagination_hover: true,
578
  pagination_position: 'inside',
579
+ pagination_location: 'bottom-left'
580
  },
581
  dimensions: {
582
  width: 500,
583
  height: 200,
584
+ responsive: true
585
  },
586
  transitions: {
587
  effect: 'slide',
588
+ duration: 500
589
  },
590
  playback: {
591
  enabled: false,
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,JSON.parse(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");c.$el.bind("beforetransition",function(){f.removeClass("active").eq(c.current).addClass("active")});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.each(function(){var g=a(this),f=g.attr("src");a("<img />").attr("src",f).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")}})}})});return"test"};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.off("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)}};c.endPlayback=function(e){e=a.extend({},{silent:false},e);
2
- 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("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");c.$el.bind("beforetransition",function(){f.removeClass("active").eq(c.current).addClass("active")});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.each(function(){var g=a(this),f=g.attr("src");a("<img />").attr("src",f).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")}})}})})};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.off("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)}};c.endPlayback=function(e){e=a.extend({},{silent:false},e);
2
+ 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);
readme.txt CHANGED
@@ -4,7 +4,7 @@ Contributors: MatthewRuddy
4
  Tags: slideshow, slider, slides, slide, gallery, images, image, responsive, mobile, jquery, javascript, featured, content
5
  Requires at least: 3.5
6
  Tested up to: 3.5.1
7
- Stable tag: 2.0.1.2
8
 
9
  Easing Slider "Lite" is an easy to use slideshow plugin. Simple and lightweight, built with native WordPress functionality.
10
 
@@ -43,6 +43,18 @@ To insert the slideshow into your theme, add the following code to the appropria
43
 
44
  `<?php if ( function_exists( "easingsliderlite" ) ) { easingsliderlite(); } ?>`
45
 
 
 
 
 
 
 
 
 
 
 
 
 
46
  == Screenshots ==
47
 
48
  1. The integrated Media Uploader. Use it to add images to your slideshows one at a time, or in bulk.
@@ -52,6 +64,13 @@ To insert the slideshow into your theme, add the following code to the appropria
52
 
53
  == Changelog ==
54
 
 
 
 
 
 
 
 
55
  = 2.0.1.2 =
56
  * Fixed backwards compatibility issues with older versions of jQuery
57
 
4
  Tags: slideshow, slider, slides, slide, gallery, images, image, responsive, mobile, jquery, javascript, featured, content
5
  Requires at least: 3.5
6
  Tested up to: 3.5.1
7
+ Stable tag: 2.0.1.3
8
 
9
  Easing Slider "Lite" is an easy to use slideshow plugin. Simple and lightweight, built with native WordPress functionality.
10
 
43
 
44
  `<?php if ( function_exists( "easingsliderlite" ) ) { easingsliderlite(); } ?>`
45
 
46
+ = Upgrading from v1.x to v2.x =
47
+ If you are upgrading from v1.0+ of Easing Slider to v2.0+, you'll need to import your slideshow settings manually after the upgrade process. You can do this by clicking the button titled <strong>"Import my Easing Slider v1.x settings"</strong> in the <strong>"Edit Slideshows"</strong> admin menu. Have a look at the screencast below for more information.
48
+
49
+ http://cl.ly/1V0V411I1V09
50
+
51
+ == Frequently Asked Questions ==
52
+
53
+ = I'm having issues upgrading from v1.x to v2.x. My settings weren't imported. Please help! =
54
+ Don't sweat! Simply navigate to the <strong>"Edit Slideshow"</strong> admin panel and click the <strong>"Import my Easing Slider v1.x settings"</strong> button. That's it! If you run into any trouble, don't hesitate to open a support topic, or have a look at the screencast below.
55
+
56
+ http://cl.ly/1V0V411I1V09
57
+
58
  == Screenshots ==
59
 
60
  1. The integrated Media Uploader. Use it to add images to your slideshows one at a time, or in bulk.
64
 
65
  == Changelog ==
66
 
67
+ = 2.0.1.3 =
68
+ * Made some alterations to give a better success rate when upgrading from v1.x.
69
+ * Added options to manually import v1.x options, instead of automatically (which often failed and caused major problems).
70
+ * Fixed IE7 bugs
71
+ * Reconfigured admin script & style functions to hopefully resolve some issues that were preventing them from loading for some users (inexplicably).
72
+ * Disable image resizing functionality on activation due to some rare unknown issues. Feel free to use it if you like!
73
+
74
  = 2.0.1.2 =
75
  * Fixed backwards compatibility issues with older versions of jQuery
76
 
templates/editsettings.php CHANGED
@@ -10,7 +10,8 @@
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-easingslider_{$_GET['page']}", "easingsliderlite-easingslider_{$_GET['page']}", false );
 
14
  ?>
15
  <div class="main-panel">
16
  <div class="messages-container">
@@ -67,17 +68,18 @@
67
  </tbody>
68
  </table>
69
 
70
- <?php if ( get_option( 'easingslider_version' ) ) : ?>
71
  <div class="divider"></div>
72
 
73
  <h3><?php _e( 'Legacy Settings', 'easingsliderlite' ); ?></h3>
74
  <table class="form-table settings">
75
  <tbody>
76
  <tr valign="top">
77
- <th scope="row"><label for="load_scripts"><?php _e( 'Old Settings', 'easingsliderlite' ); ?></label></th>
78
  <td>
79
- <input type="submit" name="easingslider" class="button button-secondary warn" value="<?php _e( 'Remove v1.x Old Settings', 'easingsliderlite' ); ?>">
80
- <p class="description"><?php _e( 'Clicking this button will permanently delete your Easing Slider old settings v1.x versions. Only do this if you are sure you will not be downgrading the plugin.', 'easingsliderlite' ); ?></p>
 
81
  </td>
82
  </tr>
83
  </tbody>
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">
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 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>
templates/editslideshow-welcome.php CHANGED
@@ -13,6 +13,31 @@ if ( get_option( 'easingsliderlite_disable_welcome_panel' ) == false ) :
13
 
14
  ?>
15
  <div id="easingsliderlite-welcome-message" class="welcome-panel">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
16
  <a href="admin.php?page=easingsliderlite_edit_slideshow&amp;disable_welcome_panel=true" class="welcome-panel-close"><?php _e( 'Dismiss', 'easingsliderlite' ); ?></a>
17
  <div class="welcome-panel-content">
18
  <h3><?php _e( 'Welcome to Easing Slider "Lite"', 'easingsliderlite' ); ?></h3>
@@ -24,7 +49,6 @@ if ( get_option( 'easingsliderlite_disable_welcome_panel' ) == false ) :
24
  _e( 'Thanks for installing Easing Slider "Lite". Here are some links to help get you started.', 'easingsliderlite' );
25
  ?>
26
  </p>
27
-
28
  <div class="welcome-panel-column-container">
29
  <div class="welcome-panel-column">
30
  <h4><?php _e( 'Get Started', 'easingsliderlite' ); ?></h4>
13
 
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>
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">
54
  <h4><?php _e( 'Get Started', 'easingsliderlite' ); ?></h4>
templates/slideshow.php CHANGED
@@ -3,25 +3,28 @@
3
  /** Get the slideshow */
4
  $slideshow = $s = EasingSliderLite::get_instance()->validate( get_option( 'easingsliderlite_slideshow' ) );
5
 
6
- /** Return WordPress error if slideshow doesn't exist */
7
- if ( $s === false )
8
- return printf( __( 'The slideshow does not appear to exist. Oh dear! Please try contacting support.', 'easingsliderlite' ), $id );
 
 
 
 
 
 
 
 
 
 
9
 
10
  /** Get plugin settings */
11
  $settings = get_option( 'easingsliderlite_settings' );
12
 
13
  /** Load slideshow scripts and styles in foooter (if set to do so) */
14
  if ( isset( $settings['load_styles'] ) && $settings['load_styles'] == 'footer' )
15
- add_action( 'wp_footer', array( $this, 'enqueue_styles' ) );
16
  if ( isset( $settings['load_scripts'] ) && $settings['load_scripts'] == 'footer' )
17
- add_action( 'wp_footer', array( $this, 'enqueue_scripts' ) );
18
-
19
- /** Bail if there are no slides to display */
20
- if ( count( $slideshow->slides ) == 0 ) {
21
- if ( current_user_can( 'easingsliderlite_edit_slideshow' ) )
22
- _e( '<p>This slideshow contains no slides. Uh oh!', 'easingsliderlite' );
23
- return;
24
- }
25
 
26
  /** Inline slideshow styles */
27
  if ( $s->dimensions->responsive )
3
  /** Get the slideshow */
4
  $slideshow = $s = EasingSliderLite::get_instance()->validate( get_option( 'easingsliderlite_slideshow' ) );
5
 
6
+ /** Bail if we failed to retrieve the slideshow */
7
+ if ( $s === false ) {
8
+ if ( current_user_can( 'easingsliderlite_edit_slideshow' ) )
9
+ _e( '<p style="background-color: #ffebe8; border: 1px solid #c00; border-radius: 4px; padding: 8px !important;">The slideshow does not appear to exist. Oh dear! Please try contacting support.</p>', 'easingsliderlite' );
10
+ return;
11
+ }
12
+
13
+ /** Bail if there are no slides to display */
14
+ if ( count( $slideshow->slides ) == 0 ) {
15
+ if ( current_user_can( 'easingsliderlite_edit_slideshow' ) )
16
+ _e( '<p style="background-color: #ffebe8; border: 1px solid #c00; border-radius: 4px; padding: 8px !important;">This slideshow contains no slides. Uh oh!', 'easingsliderlite' );
17
+ return;
18
+ }
19
 
20
  /** Get plugin settings */
21
  $settings = get_option( 'easingsliderlite_settings' );
22
 
23
  /** Load slideshow scripts and styles in foooter (if set to do so) */
24
  if ( isset( $settings['load_styles'] ) && $settings['load_styles'] == 'footer' )
25
+ add_action( 'wp_footer', array( 'ESL_Slideshow', 'enqueue_styles' ) );
26
  if ( isset( $settings['load_scripts'] ) && $settings['load_scripts'] == 'footer' )
27
+ add_action( 'wp_footer', array( 'ESL_Slideshow', 'enqueue_scripts' ) );
 
 
 
 
 
 
 
28
 
29
  /** Inline slideshow styles */
30
  if ( $s->dimensions->responsive )