Real Testimonials - Version 2.1.3

Version Description

  • Mar 11, 2019 =
  • Fix: WPGlobus plugin compatibility issue.
Download this release

Release Info

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

Code changes from version 2.1.2 to 2.1.3

admin/assets/css/admin.css CHANGED
File without changes
admin/views/partials/general-settings.php CHANGED
File without changes
admin/views/partials/slider-settings.php CHANGED
File without changes
class/metabox.php CHANGED
@@ -1,7 +1,7 @@
1
  <?php
2
 
3
  if ( ! defined( 'ABSPATH' ) ) {
4
- exit; // Exit if accessed directly
5
  }
6
 
7
  /**
@@ -50,10 +50,10 @@ class SP_TFREE_MetaBox {
50
  * @since 2.0
51
  */
52
  public function add_generator_meta_box() {
53
- add_meta_box( 'sp_tfree_shortcode_options', __( 'Shortcode Options', 'testimonial-free' ), array(
54
- $this,
55
- 'sp_tfree_shortcode_meta_boxes'
56
- ), 'sp_tfree_shortcodes', 'normal', 'default'
57
  );
58
  }
59
 
@@ -69,7 +69,6 @@ class SP_TFREE_MetaBox {
69
  include_once SP_TFREE_PATH . 'admin/views/tab-navigation.php';
70
  }
71
 
72
-
73
  /**
74
  * Save Generator Meta Box
75
  *
@@ -81,7 +80,7 @@ class SP_TFREE_MetaBox {
81
  return;
82
  }
83
 
84
- // Check if nonce is set
85
  if ( ! isset( $_POST['sp_tfree_shortcodes_nonce_name'], $_POST['sp_tfree_meta_box'] ) ) {
86
  return;
87
  }
@@ -90,8 +89,7 @@ class SP_TFREE_MetaBox {
90
  return;
91
  }
92
 
93
-
94
- // Check if user has permissions to save data
95
  if ( ! current_user_can( 'edit_post', $post_id ) ) {
96
  return;
97
  }
@@ -106,4 +104,4 @@ class SP_TFREE_MetaBox {
106
 
107
  }
108
 
109
- }
1
  <?php
2
 
3
  if ( ! defined( 'ABSPATH' ) ) {
4
+ exit; // Exit if accessed directly.
5
  }
6
 
7
  /**
50
  * @since 2.0
51
  */
52
  public function add_generator_meta_box() {
53
+ add_meta_box( 'sp_tfree_shortcode_options', __( 'Shortcode Options', 'testimonial-free' ),
54
+ array(
55
+ $this, 'sp_tfree_shortcode_meta_boxes'
56
+ ), 'sp_tfree_shortcodes', 'normal', 'default'
57
  );
58
  }
59
 
69
  include_once SP_TFREE_PATH . 'admin/views/tab-navigation.php';
70
  }
71
 
 
72
  /**
73
  * Save Generator Meta Box
74
  *
80
  return;
81
  }
82
 
83
+ // Check if nonce is set.
84
  if ( ! isset( $_POST['sp_tfree_shortcodes_nonce_name'], $_POST['sp_tfree_meta_box'] ) ) {
85
  return;
86
  }
89
  return;
90
  }
91
 
92
+ // Check if user has permissions to save data.
 
93
  if ( ! current_user_can( 'edit_post', $post_id ) ) {
94
  return;
95
  }
104
 
105
  }
106
 
107
+ }
class/shortcodes.php CHANGED
@@ -5,7 +5,7 @@
5
  */
6
 
7
  if ( ! defined( 'ABSPATH' ) ) {
8
- exit; // Exit if accessed directly
9
  }
10
 
11
  class SP_TFREE_Shortcodes {
@@ -24,7 +24,7 @@ class SP_TFREE_Shortcodes {
24
  * @since 2.0
25
  */
26
  public function __construct() {
27
- add_filter('init', array($this, 'register_post_type'));
28
  }
29
 
30
  /**
@@ -71,4 +71,4 @@ class SP_TFREE_Shortcodes {
71
  )
72
  ) );
73
  }
74
- }
5
  */
6
 
7
  if ( ! defined( 'ABSPATH' ) ) {
8
+ exit; // Exit if accessed directly.
9
  }
10
 
11
  class SP_TFREE_Shortcodes {
24
  * @since 2.0
25
  */
26
  public function __construct() {
27
+ add_filter( 'init', array( $this, 'register_post_type' ) );
28
  }
29
 
30
  /**
71
  )
72
  ) );
73
  }
74
+ }
includes/free/loader.php CHANGED
@@ -1,20 +1,22 @@
1
  <?php
2
  /**
3
  * The Free Loader Class
 
4
  * @package testimonial-free
 
5
  * @since 2.0
6
  */
7
  class SP_TFREE_Loader {
8
 
9
  function __construct() {
10
- require_once( SP_TFREE_PATH . "admin/views/scripts.php" );
11
- require_once( SP_TFREE_PATH . "admin/views/mce-button.php" );
12
- require_once( SP_TFREE_PATH . "admin/views/widget.php" );
13
- require_once( SP_TFREE_PATH . "public/views/shortcoderender.php" );
14
- require_once( SP_TFREE_PATH . "public/views/deprecated-shortcodes.php" );
15
- require_once( SP_TFREE_PATH . "public/views/scripts.php" );
16
  }
17
 
18
  }
19
 
20
- new SP_TFREE_Loader();
1
  <?php
2
  /**
3
  * The Free Loader Class
4
+ *
5
  * @package testimonial-free
6
+ *
7
  * @since 2.0
8
  */
9
  class SP_TFREE_Loader {
10
 
11
  function __construct() {
12
+ require_once( SP_TFREE_PATH . 'admin/views/scripts.php' );
13
+ require_once( SP_TFREE_PATH . 'admin/views/mce-button.php' );
14
+ require_once( SP_TFREE_PATH . 'admin/views/widget.php' );
15
+ require_once( SP_TFREE_PATH . 'public/views/shortcoderender.php' );
16
+ require_once( SP_TFREE_PATH . 'public/views/deprecated-shortcodes.php' );
17
+ require_once( SP_TFREE_PATH . 'public/views/scripts.php' );
18
  }
19
 
20
  }
21
 
22
+ new SP_TFREE_Loader();
includes/functions.php CHANGED
@@ -15,7 +15,7 @@ class SP_Testimonial_Free_Functions {
15
  add_filter( 'post_updated_messages', array( $this, 'sp_tfree_change_default_post_update_message' ) );
16
  add_filter( 'admin_footer_text', array( $this, 'admin_footer' ), 1, 2 );
17
  add_action( 'admin_menu', array( $this, 'admin_menu' ) );
18
- // Post thumbnails
19
  add_theme_support( 'post-thumbnails' );
20
  add_image_size( 'tf-client-image-size', 120, 120, true );
21
  }
@@ -31,7 +31,7 @@ class SP_Testimonial_Free_Functions {
31
  $message['post'][6] = $title = esc_html__( 'Shortcode published.', 'testimonial-free' );
32
  $message['post'][8] = $title = esc_html__( 'Shortcode submitted.', 'testimonial-free' );
33
  $message['post'][10] = $title = esc_html__( 'Shortcode draft updated.', 'testimonial-free' );
34
- }elseif ( 'spt_testimonial' == $screen->post_type ) {
35
  $message['post'][1] = $title = esc_html__( 'Testimonial updated.', 'testimonial-free' );
36
  $message['post'][4] = $title = esc_html__( 'Testimonial updated.', 'testimonial-free' );
37
  $message['post'][6] = $title = esc_html__( 'Testimonial published.', 'testimonial-free' );
@@ -310,18 +310,18 @@ new SP_Testimonial_Free_Functions();
310
  *
311
  */
312
 
313
- // Polylang plugin support for multi language support
314
  if ( class_exists('Polylang') ) {
315
 
316
  add_filter( 'pll_get_post_types', 'sp_tfree_testimonial_polylang', 10, 2 );
317
 
318
  function sp_free_testimonial_polylang( $post_types, $is_settings ) {
319
  if ( $is_settings ) {
320
- // hides 'spt_testimonial,sp_tfree_shortcodes' from the list of custom post types in Polylang settings
321
  unset( $post_types['spt_testimonial'] );
322
  unset( $post_types['sp_tfree_shortcodes'] );
323
  } else {
324
- // enables language and translation management for 'tspt_testimonial,sp_free_shortcodes'
325
  $post_types['spt_testimonial'] = 'spt_testimonial';
326
  $post_types['sp_tfree_shortcodes'] = 'sp_tfree_shortcodes';
327
  }
@@ -342,4 +342,4 @@ foreach ( $old_post_types as $old_type => $type ) {
342
  WHERE guid LIKE %s", "post_type={$old_type}", "post_type={$type}", "%post_type={$type}%" ) );
343
  $wpdb->query( $wpdb->prepare( "UPDATE {$wpdb->posts} SET guid = REPLACE(guid, %s, %s)
344
  WHERE guid LIKE %s", "/{$old_type}/", "/{$type}/", "%/{$old_type}/%" ) );
345
- }
15
  add_filter( 'post_updated_messages', array( $this, 'sp_tfree_change_default_post_update_message' ) );
16
  add_filter( 'admin_footer_text', array( $this, 'admin_footer' ), 1, 2 );
17
  add_action( 'admin_menu', array( $this, 'admin_menu' ) );
18
+ // Post thumbnails.
19
  add_theme_support( 'post-thumbnails' );
20
  add_image_size( 'tf-client-image-size', 120, 120, true );
21
  }
31
  $message['post'][6] = $title = esc_html__( 'Shortcode published.', 'testimonial-free' );
32
  $message['post'][8] = $title = esc_html__( 'Shortcode submitted.', 'testimonial-free' );
33
  $message['post'][10] = $title = esc_html__( 'Shortcode draft updated.', 'testimonial-free' );
34
+ } elseif ( 'spt_testimonial' == $screen->post_type ) {
35
  $message['post'][1] = $title = esc_html__( 'Testimonial updated.', 'testimonial-free' );
36
  $message['post'][4] = $title = esc_html__( 'Testimonial updated.', 'testimonial-free' );
37
  $message['post'][6] = $title = esc_html__( 'Testimonial published.', 'testimonial-free' );
310
  *
311
  */
312
 
313
+ // Polylang plugin support for multi language support.
314
  if ( class_exists('Polylang') ) {
315
 
316
  add_filter( 'pll_get_post_types', 'sp_tfree_testimonial_polylang', 10, 2 );
317
 
318
  function sp_free_testimonial_polylang( $post_types, $is_settings ) {
319
  if ( $is_settings ) {
320
+ // hides 'spt_testimonial,sp_tfree_shortcodes' from the list of custom post types in Polylang settings.
321
  unset( $post_types['spt_testimonial'] );
322
  unset( $post_types['sp_tfree_shortcodes'] );
323
  } else {
324
+ // enables language and translation management for 'tspt_testimonial,sp_free_shortcodes'.
325
  $post_types['spt_testimonial'] = 'spt_testimonial';
326
  $post_types['sp_tfree_shortcodes'] = 'sp_tfree_shortcodes';
327
  }
342
  WHERE guid LIKE %s", "post_type={$old_type}", "post_type={$type}", "%post_type={$type}%" ) );
343
  $wpdb->query( $wpdb->prepare( "UPDATE {$wpdb->posts} SET guid = REPLACE(guid, %s, %s)
344
  WHERE guid LIKE %s", "/{$old_type}/", "/{$type}/", "%/{$old_type}/%" ) );
345
+ }
public/assets/css/style.css CHANGED
File without changes
public/assets/js/sp-slick-active.js CHANGED
File without changes
public/views/deprecated-shortcodes.php CHANGED
@@ -79,7 +79,7 @@ function sp_testimonial_free_shortcode( $atts ) {
79
  $outline .= '</div>';
80
  }
81
  $outline .= '<div class="tf-client-testimonial">';
82
- $outline .= get_the_content();
83
  $outline .= '</div>';
84
  $outline .= '<h2 class="tf-client-name">';
85
  if ( isset( $testimonial_data['tpro_name'] ) && $testimonial_data['tpro_name'] !== '' ) {
79
  $outline .= '</div>';
80
  }
81
  $outline .= '<div class="tf-client-testimonial">';
82
+ $outline .= apply_filters( 'the_content', get_the_content() );
83
  $outline .= '</div>';
84
  $outline .= '<h2 class="tf-client-name">';
85
  if ( isset( $testimonial_data['tpro_name'] ) && $testimonial_data['tpro_name'] !== '' ) {
public/views/scripts.php CHANGED
File without changes
public/views/shortcoderender.php CHANGED
File without changes
public/views/templates/theme-one.php CHANGED
@@ -24,7 +24,7 @@ if ( $testimonial_title == 'true' && get_the_title() !== '' ) {
24
  if ( $testimonial_content == 'true' && get_the_content() !== '' ) {
25
  $outline .= '<div class="tfree-client-testimonial" itemprop="reviewBody">';
26
 
27
- $outline .= '<p class="tfree-testimonial-content">'. get_the_content() . '</p>';
28
 
29
  $outline .= '</div>';
30
  }
24
  if ( $testimonial_content == 'true' && get_the_content() !== '' ) {
25
  $outline .= '<div class="tfree-client-testimonial" itemprop="reviewBody">';
26
 
27
+ $outline .= '<p class="tfree-testimonial-content">' . apply_filters( 'the_content', get_the_content() ) . '</p>';
28
 
29
  $outline .= '</div>';
30
  }
readme.txt CHANGED
@@ -315,6 +315,9 @@ Thank you!
315
 
316
  == Changelog ==
317
 
 
 
 
318
  = 2.1.2 - Feb 28, 2019 =
319
  * New: Adaptive height option.
320
  * Improved: Slider script.
315
 
316
  == Changelog ==
317
 
318
+ = 2.1.3 - Mar 11, 2019 =
319
+ * Fix: WPGlobus plugin compatibility issue.
320
+
321
  = 2.1.2 - Feb 28, 2019 =
322
  * New: Adaptive height option.
323
  * Improved: Slider script.
testimonial-free.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Testimonial
4
  * Plugin URI: https://shapedplugin.com/plugin/testimonial-pro/
5
  * 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.
6
- * Version: 2.1.2
7
  * Author: ShapedPlugin
8
  * Author URI: https://shapedplugin.com/
9
  * Text Domain: testimonial-free
@@ -27,7 +27,7 @@ if ( ! class_exists( 'SP_Testimonial_FREE' ) ) {
27
  *
28
  * @var string
29
  */
30
- public $version = '2.1.2';
31
 
32
  /**
33
  * @var SP_TFREE_Testimonial $shortcode
3
  * Plugin Name: Testimonial
4
  * Plugin URI: https://shapedplugin.com/plugin/testimonial-pro/
5
  * 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.
6
+ * Version: 2.1.3
7
  * Author: ShapedPlugin
8
  * Author URI: https://shapedplugin.com/
9
  * Text Domain: testimonial-free
27
  *
28
  * @var string
29
  */
30
+ public $version = '2.1.3';
31
 
32
  /**
33
  * @var SP_TFREE_Testimonial $shortcode