Serious Slider - Version 0.6.4

Version Description

  • Added check to hide caption titles and text when they are not defined
  • Fixed widget slider no longer displaying slider output buffering shortcode in 0.6.1
  • Improved styling to remove prev/next buttons border on some themes
Download this release

Release Info

Developer Cryout Creations
Plugin Icon 128x128 Serious Slider
Version 0.6.4
Comparing to
See all releases

Code changes from version 0.6.3 to 0.6.4

cryout-serious-slider.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Cryout Serious Slider
4
  Plugin URI: http://www.cryoutcreations.eu/serious-slider
5
  Description: Responsive slider, built on Bootstrap Carousel, uses core WordPress functionality, easy to use, seriously.
6
- Version: 0.6.3
7
  Author: Cryout Creations
8
  Author URI: http://www.cryoutcreations.eu
9
  Text Domain: cryout-serious-slider
@@ -13,7 +13,7 @@
13
 
14
  class Cryout_Serious_Slider {
15
 
16
- public $version = "0.6.3";
17
  public $options = array();
18
  public $shortcode_tag = 'serious-slider';
19
  public $mce_tag = 'serious_slider';
3
  Plugin Name: Cryout Serious Slider
4
  Plugin URI: http://www.cryoutcreations.eu/serious-slider
5
  Description: Responsive slider, built on Bootstrap Carousel, uses core WordPress functionality, easy to use, seriously.
6
+ Version: 0.6.4
7
  Author: Cryout Creations
8
  Author URI: http://www.cryoutcreations.eu
9
  Text Domain: cryout-serious-slider
13
 
14
  class Cryout_Serious_Slider {
15
 
16
+ public $version = "0.6.4";
17
  public $options = array();
18
  public $shortcode_tag = 'serious-slider';
19
  public $mce_tag = 'serious_slider';
inc/shortcodes.php CHANGED
@@ -145,6 +145,9 @@ class Cryout_Serious_Slider_Shortcode {
145
  $image_data = wp_get_attachment_image_src (get_post_thumbnail_ID( get_the_ID() ), 'full' );
146
 
147
  if ( !empty($sizing) && $sizing ) $sizes = 'width="' . $width . '" height="' . $height . '"';
 
 
 
148
 
149
  ?>
150
 
@@ -154,12 +157,12 @@ class Cryout_Serious_Slider_Shortcode {
154
  <img src="<?php echo $image_data[0] ?>" alt="<?php the_title(); ?>" <?php echo $sizes ?>>
155
  </a>
156
  <?php endif; ?>
 
157
  <div class="seriousslider-caption">
158
- <h3 class="seriousslider-caption-title">
159
- <?php the_title(); ?>
160
- </h3>
161
- <div class="seriousslider-caption-text"><?php the_content() ?></div>
162
  </div>
 
163
  </div>
164
 
165
  <?php endwhile; ?>
145
  $image_data = wp_get_attachment_image_src (get_post_thumbnail_ID( get_the_ID() ), 'full' );
146
 
147
  if ( !empty($sizing) && $sizing ) $sizes = 'width="' . $width . '" height="' . $height . '"';
148
+
149
+ $slide_title = get_the_title();
150
+ $slide_text = get_the_content();
151
 
152
  ?>
153
 
157
  <img src="<?php echo $image_data[0] ?>" alt="<?php the_title(); ?>" <?php echo $sizes ?>>
158
  </a>
159
  <?php endif; ?>
160
+ <?php if ( !empty($slide_title) || !empty($slide_text) ): ?>
161
  <div class="seriousslider-caption">
162
+ <?php if (!empty($slide_title)) { ?><h3 class="seriousslider-caption-title"><?php the_title(); ?></h3><?php } ?>
163
+ <?php if (!empty($slide_text)) { ?><div class="seriousslider-caption-text"><?php the_content() ?></div><?php } ?>
 
 
164
  </div>
165
+ <?php endif; ?>
166
  </div>
167
 
168
  <?php endwhile; ?>
inc/widgets.php CHANGED
@@ -43,7 +43,7 @@ class Cryout_Serious_Slider_Widget extends WP_Widget {
43
  if(!empty($instance['sid'])) {
44
  $slider_id = $instance['sid'];
45
  echo $args['before_widget'];
46
- do_shortcode( '[' . $this->shortcode_tag . ' id=' . $slider_id. ']' );
47
  echo $args['after_widget'];
48
  };
49
  } // widget()
43
  if(!empty($instance['sid'])) {
44
  $slider_id = $instance['sid'];
45
  echo $args['before_widget'];
46
+ echo do_shortcode( '[' . $this->shortcode_tag . ' id=' . $slider_id. ']' );
47
  echo $args['after_widget'];
48
  };
49
  } // widget()
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: Cryout Creations
3
  Donate link: https://www.cryoutcreations.eu/donate/
4
  Tags: slider, carousel, shortcode, bootstrap, responsive, responsive slider
5
  Requires at least: 4.0
6
- Tested up to: 4.7.2
7
- Stable tag: 0.6.3
8
  Text Domain: cryout-serious-slider
9
  License: GPLv3
10
  License URI: http://www.gnu.org/licenses/gpl.html
@@ -45,6 +45,11 @@ Responsive slider, built on Bootstrap Carousel, uses core WordPress functionalit
45
 
46
  == Changelog ==
47
 
 
 
 
 
 
48
  = 0.6.3 =
49
  * Fixed leftover debug output in 0.6.2
50
 
3
  Donate link: https://www.cryoutcreations.eu/donate/
4
  Tags: slider, carousel, shortcode, bootstrap, responsive, responsive slider
5
  Requires at least: 4.0
6
+ Tested up to: 4.7.4
7
+ Stable tag: 0.6.4
8
  Text Domain: cryout-serious-slider
9
  License: GPLv3
10
  License URI: http://www.gnu.org/licenses/gpl.html
45
 
46
  == Changelog ==
47
 
48
+ = 0.6.4 =
49
+ * Added check to hide caption titles and text when they are not defined
50
+ * Fixed widget slider no longer displaying slider output buffering shortcode in 0.6.1
51
+ * Improved styling to remove prev/next buttons border on some themes
52
+
53
  = 0.6.3 =
54
  * Fixed leftover debug output in 0.6.2
55
 
resources/style.css CHANGED
@@ -421,6 +421,7 @@
421
  font-size: 30px;
422
  cursor: pointer;
423
  background: transparent;
 
424
  }
425
 
426
  .seriousslider-control:hover {
421
  font-size: 30px;
422
  cursor: pointer;
423
  background: transparent;
424
+ border: 0;
425
  }
426
 
427
  .seriousslider-control:hover {