Real Testimonials - Version 2.2.7

Version Description

  • Oct 07, 2020 =
  • Fix: Responsive column(s) issue.
Download this release

Release Info

Developer shapedplugin
Plugin Icon 128x128 Real Testimonials
Version 2.2.7
Comparing to
See all releases

Code changes from version 2.2.6 to 2.2.7

public/views/shortcoderender.php CHANGED
@@ -105,11 +105,12 @@ if ( ! class_exists( 'TFREE_Shortcode_Render' ) ) {
105
  $number_of_total_testimonials = isset( $shortcode_data['number_of_total_testimonials'] ) ? $shortcode_data['number_of_total_testimonials'] : '10';
106
  $order_by = isset( $shortcode_data['testimonial_order_by'] ) ? $shortcode_data['testimonial_order_by'] : 'date';
107
  $order = isset( $shortcode_data['testimonial_order'] ) ? $shortcode_data['testimonial_order'] : 'DESC';
108
- $number_of_column = isset( $shortcode_data['number_of_testimonials'] ) ? $shortcode_data['number_of_testimonials'] : '1';
109
- $number_of_column_desktop = isset( $shortcode_data['number_of_testimonials_desktop'] ) ? $shortcode_data['number_of_testimonials_desktop'] : '1';
110
- $number_of_column_small_desktop = isset( $shortcode_data['number_of_testimonials_small_desktop'] ) ? $shortcode_data['number_of_testimonials_small_desktop'] : '1';
111
- $number_of_column_tablet = isset( $shortcode_data['number_of_testimonials_tablet'] ) ? $shortcode_data['number_of_testimonials_tablet'] : '1';
112
- $number_of_column_mobile = isset( $shortcode_data['number_of_testimonials_mobile'] ) ? $shortcode_data['number_of_testimonials_mobile'] : '1';
 
113
 
114
  // Slider Settings.
115
  $slider_auto_play = isset( $shortcode_data['slider_auto_play'] ) ? $shortcode_data['slider_auto_play'] : 'true';
@@ -282,19 +283,19 @@ if ( ! class_exists( 'TFREE_Shortcode_Render' ) ) {
282
  $outline .= '<h2 class="sp-testimonial-free-section-title">' . get_the_title( $post_id ) . '</h2>';
283
  }
284
 
285
- $outline .= '<div id="sp-testimonial-free-' . $post_id . '" class="sp-testimonial-free-section tfree-style-' . $theme_style . '" dir="' . $slider_direction . '" data-slick=\'{"dots": ' . $pagination . ', "adaptiveHeight": ' . $adaptive_height . ', "pauseOnHover": ' . $slider_pause_on_hover . ', "slidesToShow": ' . $number_of_column . ', "speed": ' . $slider_scroll_speed . ', "arrows": ' . $navigation . ', "autoplay": ' . $auto_play . ', "autoplaySpeed": ' . $slider_auto_play_speed . ', "swipe": ' . $slider_swipe . ', "swipeToSlide": ' . $swipe_to_slide . ', "draggable": ' . $slider_draggable . ', "rtl": ' . $rtl_mode . ', "infinite": ' . $slider_infinite . ', "responsive": [
286
  {
287
- "breakpoint": 1280, "settings": { "slidesToShow": ' . $number_of_column_desktop . ' }
288
  },
289
  {
290
- "breakpoint": 980, "settings": { "slidesToShow": ' . $number_of_column_small_desktop . ' }
291
  },
292
  {
293
- "breakpoint": 736, "settings": { "slidesToShow": ' . $number_of_column_tablet . ' }
294
  },
295
  {
296
  "breakpoint": 480, "settings": {
297
- "slidesToShow": ' . $number_of_column_mobile . ',
298
  "dots": ' . $pagination_mobile . ',
299
  "arrows": ' . $navigation_mobile . ',
300
  "autoplay": ' . $auto_play_mobile . '
105
  $number_of_total_testimonials = isset( $shortcode_data['number_of_total_testimonials'] ) ? $shortcode_data['number_of_total_testimonials'] : '10';
106
  $order_by = isset( $shortcode_data['testimonial_order_by'] ) ? $shortcode_data['testimonial_order_by'] : 'date';
107
  $order = isset( $shortcode_data['testimonial_order'] ) ? $shortcode_data['testimonial_order'] : 'DESC';
108
+ $columns = isset( $shortcode_data['columns'] ) ? $shortcode_data['columns'] : '';
109
+ $columns_large_desktop = isset( $columns['large_desktop'] ) ? $columns['large_desktop'] : '1';
110
+ $columns_desktop = isset( $columns['desktop'] ) ? $columns['desktop'] : '1';
111
+ $columns_laptop = isset( $columns['laptop'] ) ? $columns['laptop'] : '1';
112
+ $columns_tablet = isset( $columns['tablet'] ) ? $columns['tablet'] : '1';
113
+ $columns_mobile = isset( $columns['mobile'] ) ? $columns['mobile'] : '1';
114
 
115
  // Slider Settings.
116
  $slider_auto_play = isset( $shortcode_data['slider_auto_play'] ) ? $shortcode_data['slider_auto_play'] : 'true';
283
  $outline .= '<h2 class="sp-testimonial-free-section-title">' . get_the_title( $post_id ) . '</h2>';
284
  }
285
 
286
+ $outline .= '<div id="sp-testimonial-free-' . $post_id . '" class="sp-testimonial-free-section tfree-style-' . $theme_style . '" dir="' . $slider_direction . '" data-slick=\'{"dots": ' . $pagination . ', "adaptiveHeight": ' . $adaptive_height . ', "pauseOnHover": ' . $slider_pause_on_hover . ', "slidesToShow": ' . $columns_large_desktop . ', "speed": ' . $slider_scroll_speed . ', "arrows": ' . $navigation . ', "autoplay": ' . $auto_play . ', "autoplaySpeed": ' . $slider_auto_play_speed . ', "swipe": ' . $slider_swipe . ', "swipeToSlide": ' . $swipe_to_slide . ', "draggable": ' . $slider_draggable . ', "rtl": ' . $rtl_mode . ', "infinite": ' . $slider_infinite . ', "responsive": [
287
  {
288
+ "breakpoint": 1280, "settings": { "slidesToShow": ' . $columns_desktop . ' }
289
  },
290
  {
291
+ "breakpoint": 980, "settings": { "slidesToShow": ' . $columns_laptop . ' }
292
  },
293
  {
294
+ "breakpoint": 736, "settings": { "slidesToShow": ' . $columns_tablet . ' }
295
  },
296
  {
297
  "breakpoint": 480, "settings": {
298
+ "slidesToShow": ' . $columns_mobile . ',
299
  "dots": ' . $pagination_mobile . ',
300
  "arrows": ' . $navigation_mobile . ',
301
  "autoplay": ' . $auto_play_mobile . '
readme.txt CHANGED
@@ -199,6 +199,9 @@ Thank you!
199
 
200
  == Changelog ==
201
 
 
 
 
202
  = 2.2.6 - Oct 06, 2020 =
203
  * Fix: Testimonial image hide issue.
204
 
199
 
200
  == Changelog ==
201
 
202
+ = 2.2.7 - Oct 07, 2020 =
203
+ * Fix: Responsive column(s) issue.
204
+
205
  = 2.2.6 - Oct 06, 2020 =
206
  * Fix: Testimonial image hide issue.
207
 
testimonial-free.php CHANGED
@@ -12,7 +12,7 @@
12
  * Plugin Name: Testimonial
13
  * Plugin URI: https://shapedplugin.com/plugin/testimonial-pro/
14
  * Description: Most Customizable and Powerful Testimonials Showcase Plugin for WordPress that allows you to manage and display Testimonials or Reviews on any page or widget.
15
- * Version: 2.2.6
16
  * Author: ShapedPlugin
17
  * Author URI: https://shapedplugin.com/
18
  * Text Domain: testimonial-free
@@ -67,7 +67,7 @@ if ( ! class_exists( 'SP_Testimonial_FREE' ) ) {
67
  *
68
  * @var string
69
  */
70
- public $version = '2.2.6';
71
 
72
  /**
73
  * @var SP_TFREE_Testimonial $shortcode
12
  * Plugin Name: Testimonial
13
  * Plugin URI: https://shapedplugin.com/plugin/testimonial-pro/
14
  * Description: Most Customizable and Powerful Testimonials Showcase Plugin for WordPress that allows you to manage and display Testimonials or Reviews on any page or widget.
15
+ * Version: 2.2.7
16
  * Author: ShapedPlugin
17
  * Author URI: https://shapedplugin.com/
18
  * Text Domain: testimonial-free
67
  *
68
  * @var string
69
  */
70
+ public $version = '2.2.7';
71
 
72
  /**
73
  * @var SP_TFREE_Testimonial $shortcode