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

Version Description

  • Added: Option to open slide link in new window / tab
Download this release

Release Info

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

Code changes from version 2.2.0 to 2.2.1

assets/js/metabox.js CHANGED
@@ -567,9 +567,16 @@
567
  meta.caption = $('#soliloquy-meta-table-' + attach_id).find('textarea[name="_soliloquy[meta_caption]"]').val();
568
 
569
  // Get all meta fields and values.
570
- $('#soliloquy-meta-table-' + attach_id).find(':input').not('.ed_button').each(function(i, el){
571
- if ( $(this).data('soliloquy-meta') )
572
- meta[$(this).data('soliloquy-meta')] = $(this).val();
 
 
 
 
 
 
 
573
  });
574
 
575
  // Prepare the data to be sent.
567
  meta.caption = $('#soliloquy-meta-table-' + attach_id).find('textarea[name="_soliloquy[meta_caption]"]').val();
568
 
569
  // Get all meta fields and values.
570
+ $('#soliloquy-meta-table-' + attach_id).find(':input,select').not('.ed_button').each(function(i, el){
571
+ if ( $(this).data('soliloquy-meta') ) {
572
+ if ( 'checkbox' == $(this).attr('type') || 'radio' == $(this).attr('type') ) {
573
+ meta[$(this).data('soliloquy-meta')] = $(this).is(':checked') ? 1 : 0;
574
+ } else if ( 'select' == $(this).attr('type') ) {
575
+ meta[$(this).data('soliloquy-meta')] = $(this).find(':selected').val();
576
+ } else {
577
+ meta[$(this).data('soliloquy-meta')] = $(this).val();
578
+ }
579
+ }
580
  });
581
 
582
  // Prepare the data to be sent.
includes/admin/ajax.php CHANGED
@@ -512,6 +512,12 @@ function soliloquy_lite_ajax_save_meta() {
512
  $slider_data['slider'][$attach_id]['link'] = esc_url( $meta['link'] );
513
  }
514
 
 
 
 
 
 
 
515
  if ( isset( $meta['caption'] ) ) {
516
  $slider_data['slider'][$attach_id]['caption'] = trim( $meta['caption'] );
517
  }
512
  $slider_data['slider'][$attach_id]['link'] = esc_url( $meta['link'] );
513
  }
514
 
515
+ if ( isset( $meta['linktab'] ) && $meta['linktab'] ) {
516
+ $slider_data['slider'][ $attach_id ]['linktab'] = 1;
517
+ } else {
518
+ $slider_data['slider'][ $attach_id ]['linktab'] = 0;
519
+ }
520
+
521
  if ( isset( $meta['caption'] ) ) {
522
  $slider_data['slider'][$attach_id]['caption'] = trim( $meta['caption'] );
523
  }
includes/admin/metaboxes.php CHANGED
@@ -1027,6 +1027,7 @@ class Soliloquy_Metaboxes_Lite {
1027
  <p class="description"><?php _e( 'The image alt text is used for SEO. You should probably fill this one out!', 'soliloquy' ); ?></p>
1028
  </td>
1029
  </tr>
 
1030
  <?php do_action( 'soliloquy_before_image_meta_link', $id, $data, $post_id ); ?>
1031
  <tr id="soliloquy-link-box-<?php echo $id; ?>" class="soliloquy-link-cell" valign="middle">
1032
  <th scope="row"><label for="soliloquy-link-<?php echo $id; ?>"><?php _e( 'Image Hyperlink', 'soliloquy' ); ?></label></th>
@@ -1035,6 +1036,16 @@ class Soliloquy_Metaboxes_Lite {
1035
  <p class="description"><?php _e( 'The image hyperlink determines what opens once the image is clicked. If left empty, no link will be added.', 'soliloquy' ); ?></p>
1036
  </td>
1037
  </tr>
 
 
 
 
 
 
 
 
 
 
1038
  <?php do_action( 'soliloquy_before_image_meta_caption', $id, $data, $post_id ); ?>
1039
  <tr id="soliloquy-caption-box-<?php echo $id; ?>" valign="middle">
1040
  <th scope="row"><label for="soliloquy-caption-<?php echo $id; ?>"><?php _e( 'Image Caption', 'soliloquy' ); ?></label></th>
1027
  <p class="description"><?php _e( 'The image alt text is used for SEO. You should probably fill this one out!', 'soliloquy' ); ?></p>
1028
  </td>
1029
  </tr>
1030
+
1031
  <?php do_action( 'soliloquy_before_image_meta_link', $id, $data, $post_id ); ?>
1032
  <tr id="soliloquy-link-box-<?php echo $id; ?>" class="soliloquy-link-cell" valign="middle">
1033
  <th scope="row"><label for="soliloquy-link-<?php echo $id; ?>"><?php _e( 'Image Hyperlink', 'soliloquy' ); ?></label></th>
1036
  <p class="description"><?php _e( 'The image hyperlink determines what opens once the image is clicked. If left empty, no link will be added.', 'soliloquy' ); ?></p>
1037
  </td>
1038
  </tr>
1039
+
1040
+ <?php do_action( 'soliloquy_before_image_meta_tab', $id, $data, $post_id ); ?>
1041
+ <tr id="soliloquy-tab-box-<?php echo $id; ?>" class="soliloquy-tab-cell" valign="middle">
1042
+ <th scope="row"><label for="soliloquy-link-<?php echo $id; ?>"><?php _e( 'Open Link in New Tab', 'soliloquy' ); ?></label></th>
1043
+ <td>
1044
+ <input id="soliloquy-tab-<?php echo $id; ?>" class="soliloquy-tab" type="checkbox" name="_soliloquy[meta_tab]" value="1" <?php checked( ( ! empty( $data['linktab'] ) && $data['linktab'] ? 1 : 0 ), 1 ); ?> data-soliloquy-meta="linktab" />
1045
+ <p class="description"><?php _e( 'If enabled, opens the Image Hyperlink in a new browser window/tab.', 'soliloquy' ); ?></p>
1046
+ </td>
1047
+ </tr>
1048
+
1049
  <?php do_action( 'soliloquy_before_image_meta_caption', $id, $data, $post_id ); ?>
1050
  <tr id="soliloquy-caption-box-<?php echo $id; ?>" valign="middle">
1051
  <th scope="row"><label for="soliloquy-caption-<?php echo $id; ?>"><?php _e( 'Image Caption', 'soliloquy' ); ?></label></th>
includes/global/shortcode.php CHANGED
@@ -291,7 +291,11 @@ class Soliloquy_Shortcode_Lite {
291
  // If our image is linked, link it.
292
  if ( ! empty( $item['link'] ) ) {
293
  $output = apply_filters( 'soliloquy_output_before_link', $output, $id, $item, $data, $i );
294
- $output .= '<a href="' . esc_url( $item['link'] ) . '" class="soliloquy-link" title="' . esc_attr( $item['title'] ) . '"' . apply_filters( 'soliloquy_output_link_attr', '', $id, $item, $data, $i ) . '>';
 
 
 
 
295
  }
296
 
297
  $output = apply_filters( 'soliloquy_output_before_image', $output, $id, $item, $data, $i );
291
  // If our image is linked, link it.
292
  if ( ! empty( $item['link'] ) ) {
293
  $output = apply_filters( 'soliloquy_output_before_link', $output, $id, $item, $data, $i );
294
+ if ( ! empty( $item['linktab'] ) && $item['linktab'] ) {
295
+ $output .= '<a href="' . esc_url( $item['link'] ) . '" class="soliloquy-link" title="' . esc_attr( $item['title'] ) . '" target="_blank"' . apply_filters( 'soliloquy_output_link_attr', '', $id, $item, $data, $i ) . '>';
296
+ } else {
297
+ $output .= '<a href="' . esc_url( $item['link'] ) . '" class="soliloquy-link" title="' . esc_attr( $item['title'] ) . '"' . apply_filters( 'soliloquy_output_link_attr', '', $id, $item, $data, $i ) . '>';
298
+ }
299
  }
300
 
301
  $output = apply_filters( 'soliloquy_output_before_image', $output, $id, $item, $data, $i );
readme.txt CHANGED
@@ -87,6 +87,9 @@ Soliloquy has many Addons that extend its default functionality to make it do in
87
 
88
  == Changelog ==
89
 
 
 
 
90
  = 2.2.0 =
91
  * Fix: Metadata - wp_editor too large for smaller screen resolutions
92
 
87
 
88
  == Changelog ==
89
 
90
+ = 2.2.1 =
91
+ * Added: Option to open slide link in new window / tab
92
+
93
  = 2.2.0 =
94
  * Fix: Metadata - wp_editor too large for smaller screen resolutions
95
 
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.2.0
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.2.0';
58
 
59
  /**
60
  * The name of the plugin.
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.2.1
9
  * Text Domain: soliloquy
10
  * Domain Path: languages
11
  *
54
  *
55
  * @var string
56
  */
57
+ public $version = '2.2.1';
58
 
59
  /**
60
  * The name of the plugin.