Cherry Testimonials - Version 1.1.0.3

Version Description

Download this release

Release Info

Developer TemplateMonster 2002
Plugin Icon 128x128 Cherry Testimonials
Version 1.1.0.3
Comparing to
See all releases

Code changes from version 1.1.0.2 to 1.1.0.3

public/assets/js/public.js CHANGED
@@ -31,16 +31,14 @@
31
  }
32
  }
33
 
 
 
34
  swiper = new Swiper( $container, params );
35
 
36
  }
37
 
38
  function imgPagination( swiper, index, className ) {
39
 
40
- console.log(swiper);
41
- console.log(index);
42
- console.log(className);
43
-
44
  if ( ! swiper.paginationContainer ) {
45
  return '<span class="' + className + '"></span>';
46
  }
31
  }
32
  }
33
 
34
+ params.slidesPerView = 1;
35
+
36
  swiper = new Swiper( $container, params );
37
 
38
  }
39
 
40
  function imgPagination( swiper, index, className ) {
41
 
 
 
 
 
42
  if ( ! swiper.paginationContainer ) {
43
  return '<span class="' + className + '"></span>';
44
  }
public/includes/class-tm-testimonials-data.php CHANGED
@@ -482,7 +482,11 @@ class TM_Testimonials_Data {
482
  }
483
  }
484
 
485
- if ( ! $args['pagination'] || ! $args['img_pagination'] ) {
 
 
 
 
486
  return false;
487
  }
488
 
482
  }
483
  }
484
 
485
+ if ( ! isset( $args['pagination'] ) || ! isset( $args['img_pagination'] ) ) {
486
+ return false;
487
+ }
488
+
489
+ if ( empty( $args['pagination'] ) || empty( $args['img_pagination'] ) ) {
490
  return false;
491
  }
492
 
public/includes/class-tm-testimonials-template-callbacks.php CHANGED
@@ -154,11 +154,8 @@ class TM_Testimonials_Template_Callbacks {
154
  $format = '<a class="%3$s" href="%2$s" target="_blank">%1$s</a>';
155
  }
156
 
157
- $name = sprintf( $format,
158
- esc_html( get_the_title( $post->ID ) ),
159
- esc_url( $post_meta['url'] ),
160
- 'tm-testi__item-name'
161
- );
162
 
163
  return apply_filters( 'tm_testimonials_author_name_template_callbacks',
164
  $name,
154
  $format = '<a class="%3$s" href="%2$s" target="_blank">%1$s</a>';
155
  }
156
 
157
+ $url = isset( $post_meta['url'] ) ? $post_meta['url'] : '';
158
+ $name = sprintf( $format, esc_html( get_the_title( $post->ID ) ), $url, 'tm-testi__item-name' );
 
 
 
159
 
160
  return apply_filters( 'tm_testimonials_author_name_template_callbacks',
161
  $name,
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: TemplateMonster 2002
3
  Tags: testimonials, reviews, custom post type, slider, swiper, cherry framework, elementor
4
  Requires at least: 4.5
5
- Tested up to: 4.8.1
6
- Stable tag: 1.1.0.2
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
2
  Contributors: TemplateMonster 2002
3
  Tags: testimonials, reviews, custom post type, slider, swiper, cherry framework, elementor
4
  Requires at least: 4.5
5
+ Tested up to: 4.8.3
6
+ Stable tag: 1.1.0.3
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
testimonials.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Cherry Testimonials
4
  * Plugin URI:
5
  * Description: A testimonials management plugin for WordPress.
6
- * Version: 1.1.0.2
7
  * Author: JetImpex
8
  * Author URI: https://jetimpex.com/wordpress/
9
  * Text Domain: cherry-testi
@@ -104,7 +104,7 @@ if ( ! class_exists( 'TM_Testimonials_Plugin' ) ) {
104
  *
105
  * @since 1.0.0
106
  */
107
- define( 'TM_TESTI_VERSION', '1.1.0.2' );
108
 
109
  /**
110
  * Set the name for the `meta_key` value in the `wp_postmeta` table.
3
  * Plugin Name: Cherry Testimonials
4
  * Plugin URI:
5
  * Description: A testimonials management plugin for WordPress.
6
+ * Version: 1.1.0.3
7
  * Author: JetImpex
8
  * Author URI: https://jetimpex.com/wordpress/
9
  * Text Domain: cherry-testi
104
  *
105
  * @since 1.0.0
106
  */
107
+ define( 'TM_TESTI_VERSION', '1.1.0.3' );
108
 
109
  /**
110
  * Set the name for the `meta_key` value in the `wp_postmeta` table.