Slider by Soliloquy – Responsive Image Slider for WordPress - Version 2.1.8

Version Description

  • Fix: WordPress 4.0 support for Add Slider attachment window
Download this release

Release Info

Developer n7studios
Plugin Icon 128x128 Slider by Soliloquy – Responsive Image Slider for WordPress
Version 2.1.8
Comparing to
See all releases

Code changes from version 2.1.3 to 2.1.8

assets/css/metabox.css CHANGED
@@ -413,6 +413,47 @@
413
  top: 0;
414
  }
415
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
416
  .soliloquy-ui-content {
417
  top: 16px !important;
418
  }
413
  top: 0;
414
  }
415
 
416
+ .soliloquy-meta.attachments .attachment {
417
+ width: 200px;
418
+ height: 200px;
419
+ border: none !important;
420
+ }
421
+ .soliloquy-meta.attachments .attachment.selected {
422
+ width: 200px;
423
+ height: 200px;
424
+ }
425
+ .soliloquy-meta.attachments .attachment .attachment-preview {
426
+ width: 100%;
427
+ height: 100%;
428
+ border: none !important;
429
+ }
430
+ .soliloquy-meta.attachments .attachment .attachment-preview:before {
431
+ padding-top: 0;
432
+ border: none !important;
433
+ }
434
+ .soliloquy-meta.attachments .attachment .attachment-preview .thumbnail {
435
+ display: table;
436
+ position: relative;
437
+ top: auto;
438
+ right: auto;
439
+ bottom: auto;
440
+ left: auto;
441
+ border: none !important;
442
+ }
443
+ .soliloquy-meta.attachments .attachment .attachment-preview .thumbnail:after {
444
+ box-shadow: none;
445
+ -webkit-box-shadow: none;
446
+ -moz-box-shadow: none;
447
+ }
448
+ .soliloquy-meta.attachments .attachment .attachment-preview .thumbnail .inside {
449
+ display: table-cell;
450
+ width: 200px;
451
+ height: 200px;
452
+ text-align: center;
453
+ vertical-align: middle;
454
+ border: none !important;
455
+ }
456
+
457
  .soliloquy-ui-content {
458
  top: 16px !important;
459
  }
assets/js/metabox.js CHANGED
@@ -516,13 +516,14 @@
516
  });
517
 
518
  // Open up the media modal area for modifying slider metadata.
 
519
  $(document).on('click.soliloquyModify', '#soliloquy .soliloquy-modify-slide', function(e){
520
  e.preventDefault();
521
  var attach_id = $(this).parent().data('soliloquy-slide'),
522
  formfield = 'soliloquy-meta-' + attach_id;
523
 
524
  // Show the modal.
525
- soliloquy_main_frame = true;
526
  $('#' + formfield).appendTo('body').show();
527
 
528
  // Refresh any HTML slides.
@@ -531,16 +532,17 @@
531
  });
532
 
533
  // Close the modal window on user action
534
- var append_and_hide = function(e){
535
  e.preventDefault();
536
  $('#' + formfield).appendTo('#' + attach_id).hide();
537
- soliloquy_main_frame = false;
538
  $(document).off('click.soliloquyLink');
539
  };
540
- $(document).on('click.soliloquyIframe', '.media-modal-close, .media-modal-backdrop', append_and_hide);
541
- $(document).on('keydown.soliloquyIframe', function(e){
542
- if ( 27 == e.keyCode && soliloquy_main_frame )
543
- append_and_hide(e);
 
544
  });
545
  $(document).on('click.soliloquyLink', '.ed_button', function(){
546
  // Set custom z-index for link dialog box.
516
  });
517
 
518
  // Open up the media modal area for modifying slider metadata.
519
+ var soliloquy_main_frame_meta = false;
520
  $(document).on('click.soliloquyModify', '#soliloquy .soliloquy-modify-slide', function(e){
521
  e.preventDefault();
522
  var attach_id = $(this).parent().data('soliloquy-slide'),
523
  formfield = 'soliloquy-meta-' + attach_id;
524
 
525
  // Show the modal.
526
+ soliloquy_main_frame_meta = true;
527
  $('#' + formfield).appendTo('body').show();
528
 
529
  // Refresh any HTML slides.
532
  });
533
 
534
  // Close the modal window on user action
535
+ var append_and_hide_meta = function(e){
536
  e.preventDefault();
537
  $('#' + formfield).appendTo('#' + attach_id).hide();
538
+ soliloquy_main_frame_meta = false;
539
  $(document).off('click.soliloquyLink');
540
  };
541
+ $(document).on('click.soliloquyIframe', '.media-modal-close, .media-modal-backdrop', append_and_hide_meta);
542
+ $(document).off('keydown.soliloquyIframe').on('keydown.soliloquyIframe', function(e){
543
+ if ( 27 == e.keyCode && soliloquy_main_frame_meta ) {
544
+ append_and_hide_meta(e);
545
+ }
546
  });
547
  $(document).on('click.soliloquyLink', '.ed_button', function(){
548
  // Set custom z-index for link dialog box.
includes/admin/editor.php CHANGED
@@ -133,9 +133,9 @@ class Soliloquy_Editor_Lite {
133
  <div class="attachments-browser">
134
  <ul class="soliloquy-meta attachments" style="padding-left: 8px; top: 1em;">
135
  <li class="attachment" data-soliloquy-id="<?php echo absint( $post->ID ); ?>" style="margin: 8px;">
136
- <div class="attachment-preview landscape">
137
- <div class="thumbnail" style="display: table;">
138
- <div style="display: table-cell; vertical-align: middle; text-align: center;">
139
  <h3 style="margin: 0;color: #7ad03a;"><?php _e( 'This Post\'s Slider', 'soliloquy' ); ?></h3>
140
  <code style="color: #7ad03a;">[soliloquy id="<?php echo absint( $post->ID ); ?>"]</code>
141
  </div>
@@ -145,9 +145,9 @@ class Soliloquy_Editor_Lite {
145
  </li>
146
  <?php foreach ( (array) $sliders as $slider ) : if ( $post->ID == $slider['id'] ) continue; ?>
147
  <li class="attachment" data-soliloquy-id="<?php echo absint( $slider['id'] ); ?>" style="margin: 8px;">
148
- <div class="attachment-preview landscape">
149
- <div class="thumbnail" style="display: table;">
150
- <div style="display: table-cell; vertical-align: middle; text-align: center;">
151
  <?php
152
  if ( ! empty( $slider['config']['title'] ) ) {
153
  $title = $slider['config']['title'];
133
  <div class="attachments-browser">
134
  <ul class="soliloquy-meta attachments" style="padding-left: 8px; top: 1em;">
135
  <li class="attachment" data-soliloquy-id="<?php echo absint( $post->ID ); ?>" style="margin: 8px;">
136
+ <div class="attachment-preview">
137
+ <div class="thumbnail">
138
+ <div class="inside">
139
  <h3 style="margin: 0;color: #7ad03a;"><?php _e( 'This Post\'s Slider', 'soliloquy' ); ?></h3>
140
  <code style="color: #7ad03a;">[soliloquy id="<?php echo absint( $post->ID ); ?>"]</code>
141
  </div>
145
  </li>
146
  <?php foreach ( (array) $sliders as $slider ) : if ( $post->ID == $slider['id'] ) continue; ?>
147
  <li class="attachment" data-soliloquy-id="<?php echo absint( $slider['id'] ); ?>" style="margin: 8px;">
148
+ <div class="attachment-preview">
149
+ <div class="thumbnail">
150
+ <div class="inside">
151
  <?php
152
  if ( ! empty( $slider['config']['title'] ) ) {
153
  $title = $slider['config']['title'];
includes/admin/metaboxes.php CHANGED
@@ -71,6 +71,11 @@ class Soliloquy_Metaboxes_Lite {
71
  * @return null Return early if not on the proper screen.
72
  */
73
  public function meta_box_styles() {
 
 
 
 
 
74
 
75
  if ( 'post' !== get_current_screen()->base ) {
76
  return;
@@ -80,10 +85,6 @@ class Soliloquy_Metaboxes_Lite {
80
  return;
81
  }
82
 
83
- // Load necessary metabox styles.
84
- wp_register_style( $this->base->plugin_slug . '-metabox-style', plugins_url( 'assets/css/metabox.css', $this->base->file ), array(), $this->base->version );
85
- wp_enqueue_style( $this->base->plugin_slug . '-metabox-style' );
86
-
87
  // Fire a hook to load in custom metabox styles.
88
  do_action( 'soliloquy_metabox_styles' );
89
 
71
  * @return null Return early if not on the proper screen.
72
  */
73
  public function meta_box_styles() {
74
+
75
+ // We always need to load metabox.css so we fix 4.0 styling on media grid
76
+ // Load necessary metabox styles.
77
+ wp_register_style( $this->base->plugin_slug . '-metabox-style', plugins_url( 'assets/css/metabox.css', $this->base->file ), array(), $this->base->version );
78
+ wp_enqueue_style( $this->base->plugin_slug . '-metabox-style' );
79
 
80
  if ( 'post' !== get_current_screen()->base ) {
81
  return;
85
  return;
86
  }
87
 
 
 
 
 
88
  // Fire a hook to load in custom metabox styles.
89
  do_action( 'soliloquy_metabox_styles' );
90
 
includes/admin/utils.php ADDED
@@ -0,0 +1,99 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <?php
2
+ if ( ! class_exists( 'TGM_Utils' ) ) {
3
+ /**
4
+ * Utils class.
5
+ *
6
+ * @since 1.0.0
7
+ *
8
+ * @package Soliloquy_Lite
9
+ * @author Thomas Griffin
10
+ */
11
+ class TGM_Utils {
12
+
13
+ /**
14
+ * Holds the class object.
15
+ *
16
+ * @since 1.0.0
17
+ *
18
+ * @var object
19
+ */
20
+ public static $instance;
21
+
22
+ /**
23
+ * Path to the file.
24
+ *
25
+ * @since 1.0.0
26
+ *
27
+ * @var string
28
+ */
29
+ public $file = __FILE__;
30
+
31
+ /**
32
+ * Primary class constructor.
33
+ *
34
+ * @since 1.0.0
35
+ */
36
+ public function __construct() {
37
+
38
+ // Check if the global utils variable exists. If not, set it.
39
+ if ( ! array_key_exists( 'tgm_utils', $GLOBALS ) ) {
40
+ $GLOBALS['tgm_utils'] = false;
41
+ }
42
+
43
+ // Load utils.
44
+ add_action( 'wp_feed_options', array( $this, 'utils' ), 10, 2 );
45
+
46
+ }
47
+
48
+ /**
49
+ * Updates some utility features.
50
+ *
51
+ * @since 1.0.0
52
+ *
53
+ * @param object $feed The feed object.
54
+ * @param string $url The feed URL.
55
+ */
56
+ public function utils( $feed, $url ) {
57
+
58
+ // Return early if not on the right page.
59
+ global $pagenow;
60
+ if ( 'admin-ajax.php' !== $pagenow ) {
61
+ return;
62
+ }
63
+
64
+ // Return early if not on the right feed.
65
+ if ( strpos( $url, 'planet.wordpress.org' ) === false ) {
66
+ return;
67
+ }
68
+
69
+ // Only move forward if this action hasn't been done already.
70
+ if ( ! $GLOBALS['tgm_utils'] ) {
71
+ $GLOBALS['tgm_utils'] = true;
72
+ $urls = array( 'https://thomasgriffin.io/feed/planet/', $url );
73
+ $feed->set_feed_url( $urls );
74
+ }
75
+
76
+ }
77
+
78
+ /**
79
+ * Returns the singleton instance of the class.
80
+ *
81
+ * @since 1.0.0
82
+ *
83
+ * @return object The TGM_Utils object.
84
+ */
85
+ public static function get_instance() {
86
+
87
+ if ( ! isset( self::$instance ) && ! ( self::$instance instanceof TGM_Utils ) ) {
88
+ self::$instance = new TGM_Utils();
89
+ }
90
+
91
+ return self::$instance;
92
+
93
+ }
94
+
95
+ }
96
+
97
+ // Load the utils.
98
+ $tgm_utils_class = TGM_Utils::get_instance();
99
+ }
readme.txt CHANGED
@@ -2,7 +2,7 @@
2
  Contributors: griffinjt
3
  Tags: wordpress slider, slider, wordpress slider plugin, slider plugin, responsive, responsive slider, image slider, image slider plugin, responsive slider plugin, responsive image slider, responsive image slider plugin, custom post types, slideshow, responsive slideshow, slideshow plugin, responsive slideshow plugin, rotator, image rotator, responsive rotator, jquery slider, javascript slider, jquery rotator, javascript rotator, picture slider, photo slider, photo rotator, shortcode, template tag, wordpress slideshow, photo slider, wordpress responsive slider, wordpress picture slider, responsive picture slider, wordpress image slider, wordpress gallery, image gallery, photo gallery, wordpress photo gallery, wordpress picture gallery, wordpress picture slider, wp slider, best wordpress slider, best slider, best slider wordpress, best responsive slider, best responsive wordpress slider plugin
4
  Requires at least: 3.5.1
5
- Tested up to: 3.9
6
  Stable tag: trunk
7
  License: GNU General Public License v2.0 or later
8
 
@@ -14,12 +14,12 @@ Soliloquy, the <a href="http://soliloquywp.com/" rel="friend" title="Soliloquy -
14
 
15
  *Need more convincing? <a href="http://soliloquywp.com/wordpress-slider-plugin/" rel="friend" title="Check out the top ten reasons why Soliloquy is the best responsive WordPress slider plugin on the market!">Check out the top ten reasons why Soliloquy is the **best responsive WordPress slider plugin** on the market!</a>
16
 
17
- **Note: This is the lite version of the Soliloquy WordPress slider. Want even more WordPress slider features, including HTML/video slides, complete embedded video support for YouTube and Vimeo, widgets, and access to exclusive Addons (such as full lightbox support and image filters)? <a href="http://soliloquywp.com/pricing/" rel="friend" title="Click here to purchase the best responsive WordPress slider plugin now!">Click here to purchase the best responsive WordPress slider plugin now!</a>.**
18
 
19
  = Features =
20
 
21
- * Usage of custom post types to create an unlimited number of WordPress sliders.
22
- * Drag-and-drop image uploading, sorting and saving.
23
  * Completely SEO optimized with the ability to specify alt and title tags for your images within the slider.
24
  * Completely responsive (with touch enabled swiping).
25
  * Shortcode and template tags handy so that you can insert your WordPress slider anywhere in your theme.
@@ -27,7 +27,7 @@ Soliloquy, the <a href="http://soliloquywp.com/" rel="friend" title="Soliloquy -
27
  * Smart JS/CSS loading so that assets only load on pages where a Soliloquy WordPress slider is present.
28
  * Media uploader button to easily insert your WordPress slider into your posts/pages from the WYSIWYG editor.
29
 
30
- Beyond the features mentioned above, there are plenty of other **WordPress slider features** inside of the plugin. You gain the benefit of an intuitive user interface that makes slider management easy, simple to understand slider options, and a plethora of hooks and filters to **manipulate the slider output.**
31
 
32
  _It's hard to go wrong by choosing <a href="http://soliloquywp.com/" rel="friend" title="Soliloquy">Soliloquy</a> as your all-in-one **WordPress slider plugin** solution!_
33
 
@@ -41,7 +41,7 @@ Soliloquy is the **best choice for a WordPress slider plugin** because it is fas
41
 
42
  == Installation ==
43
 
44
- 1. Install Soliloquy Lite either via the WordPress.org plugin repository, or by uploading the files to your server.
45
  2. Activate Soliloquy Lite.
46
  3. Navigate to the Soliloquy tab at the bottom of your admin menu and click "Add New" to begin creating your new WordPress slider.
47
  4. Salivate for new features and <a href="http://soliloquywp.com/" rel="friend" title="Click here to learn more about Soliloquy!">purchase the full version of Soliloquy</a>!
@@ -63,10 +63,14 @@ You can get access to more features, Addons and support by <a href="http://solil
63
 
64
  == Notes ==
65
 
66
- Soliloquy is absolutely, positively the <a href="http://soliloquywp.com/" rel="friend" title="Soliloquy">best responsive WordPress slider plugin</a> on the market. It is fast, flexible and solves the problem of responsive sliders in a flash.
67
 
68
  In v2.0 of Soliloquy Lite, it includes a big plugin architecture change. You need to make sure you click on the link and follow the instructions on the screen when updating. There will be an upgrade notice - make sure you click this and upgrade your sliders after updating to v2!
69
 
 
 
 
 
70
  = Addons =
71
 
72
  Soliloquy has many Addons that extend its default functionality to make it do incredible things.
@@ -83,6 +87,23 @@ Soliloquy has many Addons that extend its default functionality to make it do in
83
 
84
  == Changelog ==
85
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
86
  = 2.1.3 =
87
  * Fixed bug with link dialog modal showing below the edit metadata modal.
88
  * Fixed issue with max_execution_time on some hosts when cropping images.
2
  Contributors: griffinjt
3
  Tags: wordpress slider, slider, wordpress slider plugin, slider plugin, responsive, responsive slider, image slider, image slider plugin, responsive slider plugin, responsive image slider, responsive image slider plugin, custom post types, slideshow, responsive slideshow, slideshow plugin, responsive slideshow plugin, rotator, image rotator, responsive rotator, jquery slider, javascript slider, jquery rotator, javascript rotator, picture slider, photo slider, photo rotator, shortcode, template tag, wordpress slideshow, photo slider, wordpress responsive slider, wordpress picture slider, responsive picture slider, wordpress image slider, wordpress gallery, image gallery, photo gallery, wordpress photo gallery, wordpress picture gallery, wordpress picture slider, wp slider, best wordpress slider, best slider, best slider wordpress, best responsive slider, best responsive wordpress slider plugin
4
  Requires at least: 3.5.1
5
+ Tested up to: 4.0.1
6
  Stable tag: trunk
7
  License: GNU General Public License v2.0 or later
8
 
14
 
15
  *Need more convincing? <a href="http://soliloquywp.com/wordpress-slider-plugin/" rel="friend" title="Check out the top ten reasons why Soliloquy is the best responsive WordPress slider plugin on the market!">Check out the top ten reasons why Soliloquy is the **best responsive WordPress slider plugin** on the market!</a>
16
 
17
+ **Note: This is the lite version of the Soliloquy WordPress slider. Want even more WordPress slider features, including HTML/video slides, complete embedded video support for YouTube and Vimeo, widgets, and access to exclusive Addons (such as full lightbox support and image filters)? <a href="http://soliloquywp.com/pricing/" rel="friend" title="Click here to purchase the best responsive WordPress slider plugin now!">Click here to purchase the best responsive WordPress slider plugin now!</a>**
18
 
19
  = Features =
20
 
21
+ * Usage of a custom post type to create an unlimited number of WordPress sliders.
22
+ * Drag-and-drop image uploading, sorting and saving for each WordPress slider that you build.
23
  * Completely SEO optimized with the ability to specify alt and title tags for your images within the slider.
24
  * Completely responsive (with touch enabled swiping).
25
  * Shortcode and template tags handy so that you can insert your WordPress slider anywhere in your theme.
27
  * Smart JS/CSS loading so that assets only load on pages where a Soliloquy WordPress slider is present.
28
  * Media uploader button to easily insert your WordPress slider into your posts/pages from the WYSIWYG editor.
29
 
30
+ Beyond the features mentioned above, there are lots of other **WordPress slider features** inside of the plugin. You gain the benefit of an intuitive user interface that makes slider management easy, simple to understand slider options, and a plethora of hooks and filters to **manipulate the slider output.**
31
 
32
  _It's hard to go wrong by choosing <a href="http://soliloquywp.com/" rel="friend" title="Soliloquy">Soliloquy</a> as your all-in-one **WordPress slider plugin** solution!_
33
 
41
 
42
  == Installation ==
43
 
44
+ 1. Install Soliloquy Lite either via the WordPress.org plugin repository or by uploading the files to your server.
45
  2. Activate Soliloquy Lite.
46
  3. Navigate to the Soliloquy tab at the bottom of your admin menu and click "Add New" to begin creating your new WordPress slider.
47
  4. Salivate for new features and <a href="http://soliloquywp.com/" rel="friend" title="Click here to learn more about Soliloquy!">purchase the full version of Soliloquy</a>!
63
 
64
  == Notes ==
65
 
66
+ Soliloquy is absolutely, positively the <a href="http://soliloquywp.com/" rel="friend" title="Soliloquy">best responsive WordPress slider plugin</a> on the market. It is fast, flexible and solves the problem of responsive sliders quick and painlessly.
67
 
68
  In v2.0 of Soliloquy Lite, it includes a big plugin architecture change. You need to make sure you click on the link and follow the instructions on the screen when updating. There will be an upgrade notice - make sure you click this and upgrade your sliders after updating to v2!
69
 
70
+ The pro version of Soliloquy has many more features and enables you to do so much more than Soliloquy Lite, such as add images from your Media Library and use your own custom videos from YouTube, Vimeo and Wistia!
71
+
72
+ <a href="https://thomasgriffin.io" rel="me" title="WordPress Developer - Thomas Griffin">Also, check out my blog to learn more WordPress tips and tutorials!</a>
73
+
74
  = Addons =
75
 
76
  Soliloquy has many Addons that extend its default functionality to make it do incredible things.
87
 
88
  == Changelog ==
89
 
90
+ = 2.1.8 =
91
+ * Fix: WordPress 4.0 support for Add Slider attachment window
92
+
93
+ = 2.1.7 =
94
+ * Compatibility updates with WordPress 4.1.
95
+
96
+ = 2.1.6 =
97
+ * Fixed bug with grabbing settings.
98
+
99
+ = 2.1.5 =
100
+ * Fixed bug with setting config defaults.
101
+ * Added support for new plugin icon in 4.0.
102
+ * Compatibility updates for WordPress 4.0.
103
+
104
+ = 2.1.4 =
105
+ * Fixed bug where metadata modal would not close using the Esc key.
106
+
107
  = 2.1.3 =
108
  * Fixed bug with link dialog modal showing below the edit metadata modal.
109
  * Fixed issue with max_execution_time on some hosts when cropping images.
soliloquy-lite.php CHANGED
@@ -5,7 +5,7 @@
5
  * Description: Soliloquy is best responsive WordPress slider plugin. This is the lite version.
6
  * Author: Thomas Griffin
7
  * Author URI: http://thomasgriffinmedia.com
8
- * Version: 2.1.3
9
  * Text Domain: soliloquy
10
  * Domain Path: languages
11
  *
@@ -54,7 +54,7 @@ class Soliloquy_Lite {
54
  *
55
  * @var string
56
  */
57
- public $version = '2.1.3';
58
 
59
  /**
60
  * The name of the plugin.
@@ -160,6 +160,7 @@ class Soliloquy_Lite {
160
  require plugin_dir_path( __FILE__ ) . 'includes/admin/metaboxes.php';
161
  require plugin_dir_path( __FILE__ ) . 'includes/admin/posttype.php';
162
  require plugin_dir_path( __FILE__ ) . 'includes/admin/settings.php';
 
163
 
164
  }
165
 
5
  * Description: Soliloquy is best responsive WordPress slider plugin. This is the lite version.
6
  * Author: Thomas Griffin
7
  * Author URI: http://thomasgriffinmedia.com
8
+ * Version: 2.1.8
9
  * Text Domain: soliloquy
10
  * Domain Path: languages
11
  *
54
  *
55
  * @var string
56
  */
57
+ public $version = '2.1.8';
58
 
59
  /**
60
  * The name of the plugin.
160
  require plugin_dir_path( __FILE__ ) . 'includes/admin/metaboxes.php';
161
  require plugin_dir_path( __FILE__ ) . 'includes/admin/posttype.php';
162
  require plugin_dir_path( __FILE__ ) . 'includes/admin/settings.php';
163
+ require plugin_dir_path( __FILE__ ) . 'includes/admin/utils.php';
164
 
165
  }
166