Real Testimonials - Version 2.2.16

Version Description

  • Jul 08, 2021 =
  • New: HTML Tag for reviewer full name.
  • Fix: Minor tweaking.
Download this release

Release Info

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

Code changes from version 2.2.15 to 2.2.16

admin/views/testimonial-metaboxs.php CHANGED
@@ -107,7 +107,7 @@ SPFTESTIMONIAL::createSection(
107
  'id' => 'number_of_total_testimonials',
108
  'type' => 'spinner',
109
  'title' => __( 'Limit', 'testimonial-free' ),
110
- 'subtitle' => __( 'Limit number of testimonials to show.', 'testimonial-free' ),
111
  'default' => '12',
112
  'min' => -1,
113
  ),
@@ -157,24 +157,26 @@ SPFTESTIMONIAL::createSection(
157
  ),
158
  'default' => 'DESC',
159
  ),
160
- array(
161
- 'id' => 'preloader',
162
- 'type' => 'switcher',
163
- 'title' => __( 'Preloader', 'testimonial-free' ),
164
- 'subtitle' => __( 'On/off preloader.', 'testimonial-free' ),
165
- 'default' => false,
166
- ),
167
  array(
168
  'id' => 'schema_markup',
169
  'type' => 'switcher',
170
  'title' => __( 'Schema Markup', 'testimonial-free' ),
171
  'subtitle' => __( 'Enable/Disable schema markup.', 'testimonial-free' ),
172
- 'text_on' => __( 'Enable', 'testimonial-free' ),
173
- 'text_off' => __( 'Disable', 'testimonial-free' ),
174
- 'text_width' => 90,
 
 
 
 
 
 
 
 
 
 
175
  'default' => false,
176
  ),
177
-
178
  ),
179
  )
180
  );
@@ -475,6 +477,29 @@ SPFTESTIMONIAL::createSection(
475
  'text_width' => 80,
476
  'default' => true,
477
  ),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
478
  array(
479
  'id' => 'testimonial_client_rating',
480
  'type' => 'switcher',
@@ -682,6 +707,127 @@ SPFTESTIMONIAL::createSection(
682
  )
683
  );
684
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
685
  //
686
  // Slider Settings section.
687
  //
@@ -919,127 +1065,6 @@ SPFTESTIMONIAL::createSection(
919
  )
920
  );
921
 
922
- //
923
- // Image Settings section.
924
- //
925
- SPFTESTIMONIAL::createSection(
926
- $prefix_shortcode_opts,
927
- array(
928
- 'title' => __( 'Image Settings', 'testimonial-free' ),
929
- 'icon' => 'fa fa-image',
930
- 'fields' => array(
931
-
932
- array(
933
- 'id' => 'client_image',
934
- 'type' => 'switcher',
935
- 'title' => __( 'Testimonial Image', 'testimonial-free' ),
936
- 'subtitle' => __( 'Show/Hide testimonial image.', 'testimonial-free' ),
937
- 'text_on' => __( 'Show', 'testimonial-free' ),
938
- 'text_off' => __( 'Hide', 'testimonial-free' ),
939
- 'text_width' => 80,
940
- 'default' => true,
941
- ),
942
-
943
- array(
944
- 'id' => 'thumbnail_slider',
945
- 'type' => 'checkbox',
946
- 'class' => 'pro_only_field',
947
- 'attributes' => array( 'disabled' => 'disabled' ),
948
- 'title' => __( 'Enable Thumbnail Slider', 'testimonial-free' ),
949
- 'subtitle' => __( 'Check to enable thumbnail slider. (Pro)', 'testimonial-free' ),
950
- 'default' => false,
951
- ),
952
- array(
953
- 'id' => 'client_image_style',
954
- 'class' => 'client_image_style',
955
- 'type' => 'image_select',
956
- 'title' => __( 'Image Shape', 'testimonial-free' ),
957
- 'subtitle' => __( 'Choose a image shape.', 'testimonial-free' ),
958
- 'options' => array(
959
- 'three' => array(
960
- 'image' => plugin_dir_url( __FILE__ ) . 'framework/assets/images/image-shape/circle.svg',
961
- 'name' => __( 'Circle', 'testimonial-free' ),
962
- ),
963
- 'two' => array(
964
- 'image' => plugin_dir_url( __FILE__ ) . 'framework/assets/images/image-shape/rounded.svg',
965
- 'name' => __( 'Rounded', 'testimonial-free' ),
966
- 'class' => 'pro-feature',
967
- ),
968
- 'one' => array(
969
- 'image' => plugin_dir_url( __FILE__ ) . 'framework/assets/images/image-shape/square.svg',
970
- 'name' => __( 'Square', 'testimonial-free' ),
971
- 'class' => 'pro-feature',
972
- ),
973
- ),
974
- 'default' => 'three',
975
- 'dependency' => array(
976
- 'client_image',
977
- '==',
978
- 'true',
979
- ),
980
- ),
981
- array(
982
- 'id' => 'image_sizes',
983
- 'type' => 'image_sizes',
984
- 'title' => __( 'Testimonial Image Size', 'testimonial-free' ),
985
- 'subtitle' => __( 'Select which size image to show with your Testimonials.', 'testimonial-free' ),
986
- 'default' => 'tf-client-image-size',
987
- 'dependency' => array(
988
- 'client_image',
989
- '==',
990
- 'true',
991
- ),
992
- ),
993
- array(
994
- 'id' => 'image_custom_size',
995
- 'type' => 'custom_size',
996
- 'class' => 'disabled',
997
- 'title' => __( 'Custom Size', 'testimonial-free' ),
998
- 'subtitle' => __( 'Set a custom width and height of the image.', 'testimonial-free' ),
999
- 'default' => array(
1000
- 'width' => '120',
1001
- 'height' => '120',
1002
- 'crop' => 'hard-crop',
1003
- 'unit' => 'px',
1004
- ),
1005
- 'attributes' => array(
1006
- 'min' => 0,
1007
- ),
1008
- 'dependency' => array(
1009
- 'client_image|image_sizes',
1010
- '==|==',
1011
- 'true|custom',
1012
- ),
1013
- ),
1014
- array(
1015
- 'id' => 'image_grayscale',
1016
- 'type' => 'select',
1017
- 'title' => __( 'Image Mode', 'testimonial-free' ),
1018
- 'subtitle' => __( 'Select a image mode.', 'testimonial-free' ),
1019
- 'options' => array(
1020
- 'none' => __( 'Normal', 'testimonial-free' ),
1021
- 'normal_on_hover' => __( 'Grayscale and normal on hover (Pro)', 'testimonial-free' ),
1022
- 'on_hover' => __( 'Grayscale on hover (Pro)', 'testimonial-free' ),
1023
- 'always' => __( 'Always grayscale (Pro)', 'testimonial-free' ),
1024
- ),
1025
- 'default' => 'none',
1026
- ),
1027
- array(
1028
- 'id' => 'video_icon',
1029
- 'type' => 'switcher',
1030
- 'class' => 'pro_switcher',
1031
- 'attributes' => array( 'disabled' => 'disabled' ),
1032
- 'title' => __( 'Video Testimonial', 'testimonial-free' ),
1033
- 'subtitle' => __( 'Show/Hide video testimonial.', 'testimonial-free' ),
1034
- 'text_on' => __( 'Show', 'testimonial-free' ),
1035
- 'text_off' => __( 'Hide', 'testimonial-free' ),
1036
- 'text_width' => 80,
1037
- 'default' => false,
1038
- ),
1039
- ),
1040
- )
1041
- );
1042
-
1043
  //
1044
  // Typography section.
1045
  //
107
  'id' => 'number_of_total_testimonials',
108
  'type' => 'spinner',
109
  'title' => __( 'Limit', 'testimonial-free' ),
110
+ 'subtitle' => __( 'Limit number of testimonials to show. Leave it empty to show all testimonials.', 'testimonial-free' ),
111
  'default' => '12',
112
  'min' => -1,
113
  ),
157
  ),
158
  'default' => 'DESC',
159
  ),
 
 
 
 
 
 
 
160
  array(
161
  'id' => 'schema_markup',
162
  'type' => 'switcher',
163
  'title' => __( 'Schema Markup', 'testimonial-free' ),
164
  'subtitle' => __( 'Enable/Disable schema markup.', 'testimonial-free' ),
165
+ 'text_on' => __( 'Enabled', 'testimonial-free' ),
166
+ 'text_off' => __( 'Disabled', 'testimonial-free' ),
167
+ 'text_width' => 94,
168
+ 'default' => false,
169
+ ),
170
+ array(
171
+ 'id' => 'preloader',
172
+ 'type' => 'switcher',
173
+ 'title' => __( 'Preloader', 'testimonial-free' ),
174
+ 'subtitle' => __( 'Enable/Disable preloader.', 'testimonial-free' ),
175
+ 'text_on' => __( 'Enabled', 'testimonial-free' ),
176
+ 'text_off' => __( 'Disabled', 'testimonial-free' ),
177
+ 'text_width' => 94,
178
  'default' => false,
179
  ),
 
180
  ),
181
  )
182
  );
477
  'text_width' => 80,
478
  'default' => true,
479
  ),
480
+ array(
481
+ 'id' => 'testimonial_name_tag',
482
+ 'type' => 'select',
483
+ 'title' => __( 'HTML Tag', 'testimonial-free' ),
484
+ 'subtitle' => __( 'Select reviewer name HTML tag.', 'testimonial-free' ),
485
+ 'options' => array(
486
+ 'h1' => 'h1',
487
+ 'h2' => 'h2',
488
+ 'h3' => 'h3',
489
+ 'h4' => 'h4',
490
+ 'h5' => 'h5',
491
+ 'h6' => 'h6',
492
+ 'p' => 'p',
493
+ 'span' => 'span',
494
+ 'div' => 'div',
495
+ ),
496
+ 'default' => 'h4',
497
+ 'dependency' => array(
498
+ 'testimonial_client_name',
499
+ '==',
500
+ 'true',
501
+ ),
502
+ ),
503
  array(
504
  'id' => 'testimonial_client_rating',
505
  'type' => 'switcher',
707
  )
708
  );
709
 
710
+ //
711
+ // Image Settings section.
712
+ //
713
+ SPFTESTIMONIAL::createSection(
714
+ $prefix_shortcode_opts,
715
+ array(
716
+ 'title' => __( 'Image Settings', 'testimonial-free' ),
717
+ 'icon' => 'fa fa-image',
718
+ 'fields' => array(
719
+
720
+ array(
721
+ 'id' => 'client_image',
722
+ 'type' => 'switcher',
723
+ 'title' => __( 'Testimonial Image', 'testimonial-free' ),
724
+ 'subtitle' => __( 'Show/Hide testimonial image.', 'testimonial-free' ),
725
+ 'text_on' => __( 'Show', 'testimonial-free' ),
726
+ 'text_off' => __( 'Hide', 'testimonial-free' ),
727
+ 'text_width' => 80,
728
+ 'default' => true,
729
+ ),
730
+
731
+ array(
732
+ 'id' => 'thumbnail_slider',
733
+ 'type' => 'checkbox',
734
+ 'class' => 'pro_only_field',
735
+ 'attributes' => array( 'disabled' => 'disabled' ),
736
+ 'title' => __( 'Enable Thumbnail Slider', 'testimonial-free' ),
737
+ 'subtitle' => __( 'Check to enable thumbnail slider. (Pro)', 'testimonial-free' ),
738
+ 'default' => false,
739
+ ),
740
+ array(
741
+ 'id' => 'client_image_style',
742
+ 'class' => 'client_image_style',
743
+ 'type' => 'image_select',
744
+ 'title' => __( 'Image Shape', 'testimonial-free' ),
745
+ 'subtitle' => __( 'Choose a image shape.', 'testimonial-free' ),
746
+ 'options' => array(
747
+ 'three' => array(
748
+ 'image' => plugin_dir_url( __FILE__ ) . 'framework/assets/images/image-shape/circle.svg',
749
+ 'name' => __( 'Circle', 'testimonial-free' ),
750
+ ),
751
+ 'two' => array(
752
+ 'image' => plugin_dir_url( __FILE__ ) . 'framework/assets/images/image-shape/rounded.svg',
753
+ 'name' => __( 'Rounded', 'testimonial-free' ),
754
+ 'class' => 'pro-feature',
755
+ ),
756
+ 'one' => array(
757
+ 'image' => plugin_dir_url( __FILE__ ) . 'framework/assets/images/image-shape/square.svg',
758
+ 'name' => __( 'Square', 'testimonial-free' ),
759
+ 'class' => 'pro-feature',
760
+ ),
761
+ ),
762
+ 'default' => 'three',
763
+ 'dependency' => array(
764
+ 'client_image',
765
+ '==',
766
+ 'true',
767
+ ),
768
+ ),
769
+ array(
770
+ 'id' => 'image_sizes',
771
+ 'type' => 'image_sizes',
772
+ 'title' => __( 'Testimonial Image Size', 'testimonial-free' ),
773
+ 'subtitle' => __( 'Select which size image to show with your Testimonials.', 'testimonial-free' ),
774
+ 'default' => 'tf-client-image-size',
775
+ 'dependency' => array(
776
+ 'client_image',
777
+ '==',
778
+ 'true',
779
+ ),
780
+ ),
781
+ array(
782
+ 'id' => 'image_custom_size',
783
+ 'type' => 'custom_size',
784
+ 'class' => 'disabled',
785
+ 'title' => __( 'Custom Size', 'testimonial-free' ),
786
+ 'subtitle' => __( 'Set a custom width and height of the image.', 'testimonial-free' ),
787
+ 'default' => array(
788
+ 'width' => '120',
789
+ 'height' => '120',
790
+ 'crop' => 'hard-crop',
791
+ 'unit' => 'px',
792
+ ),
793
+ 'attributes' => array(
794
+ 'min' => 0,
795
+ ),
796
+ 'dependency' => array(
797
+ 'client_image|image_sizes',
798
+ '==|==',
799
+ 'true|custom',
800
+ ),
801
+ ),
802
+ array(
803
+ 'id' => 'image_grayscale',
804
+ 'type' => 'select',
805
+ 'title' => __( 'Image Mode', 'testimonial-free' ),
806
+ 'subtitle' => __( 'Select a image mode.', 'testimonial-free' ),
807
+ 'options' => array(
808
+ 'none' => __( 'Normal', 'testimonial-free' ),
809
+ 'normal_on_hover' => __( 'Grayscale and normal on hover (Pro)', 'testimonial-free' ),
810
+ 'on_hover' => __( 'Grayscale on hover (Pro)', 'testimonial-free' ),
811
+ 'always' => __( 'Always grayscale (Pro)', 'testimonial-free' ),
812
+ ),
813
+ 'default' => 'none',
814
+ ),
815
+ array(
816
+ 'id' => 'video_icon',
817
+ 'type' => 'switcher',
818
+ 'class' => 'pro_switcher',
819
+ 'attributes' => array( 'disabled' => 'disabled' ),
820
+ 'title' => __( 'Video Testimonial', 'testimonial-free' ),
821
+ 'subtitle' => __( 'Show/Hide video testimonial.', 'testimonial-free' ),
822
+ 'text_on' => __( 'Show', 'testimonial-free' ),
823
+ 'text_off' => __( 'Hide', 'testimonial-free' ),
824
+ 'text_width' => 80,
825
+ 'default' => false,
826
+ ),
827
+ ),
828
+ )
829
+ );
830
+
831
  //
832
  // Slider Settings section.
833
  //
1065
  )
1066
  );
1067
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1068
  //
1069
  // Typography section.
1070
  //
public/views/shortcoderender.php CHANGED
@@ -191,6 +191,7 @@ if ( ! class_exists( 'TFREE_Shortcode_Render' ) ) {
191
  $testimonial_title_tag = isset( $shortcode_data['testimonial_title_tag'] ) ? $shortcode_data['testimonial_title_tag'] : 'h3';
192
  $testimonial_text = isset( $shortcode_data['testimonial_text'] ) ? $shortcode_data['testimonial_text'] : '';
193
  $reviewer_name = isset( $shortcode_data['testimonial_client_name'] ) ? $shortcode_data['testimonial_client_name'] : '';
 
194
  $star_rating = isset( $shortcode_data['testimonial_client_rating'] ) ? $shortcode_data['testimonial_client_rating'] : '';
195
  $star_rating_color = isset( $shortcode_data['testimonial_client_rating_color'] ) ? $shortcode_data['testimonial_client_rating_color'] : '#f3bb00';
196
  $reviewer_position = isset( $shortcode_data['client_designation'] ) ? $shortcode_data['client_designation'] : '';
@@ -286,7 +287,7 @@ if ( ! class_exists( 'TFREE_Shortcode_Render' ) ) {
286
  'post_type' => 'spt_testimonial',
287
  'orderby' => $order_by,
288
  'order' => $order,
289
- 'posts_per_page' => $number_of_total_testimonials,
290
  );
291
 
292
  $post_query = new WP_Query( $args );
191
  $testimonial_title_tag = isset( $shortcode_data['testimonial_title_tag'] ) ? $shortcode_data['testimonial_title_tag'] : 'h3';
192
  $testimonial_text = isset( $shortcode_data['testimonial_text'] ) ? $shortcode_data['testimonial_text'] : '';
193
  $reviewer_name = isset( $shortcode_data['testimonial_client_name'] ) ? $shortcode_data['testimonial_client_name'] : '';
194
+ $reviewer_name_tag = ( isset( $shortcode_data['testimonial_name_tag'] ) && $shortcode_data['testimonial_name_tag'] ) ? $shortcode_data['testimonial_name_tag'] : 'h4';
195
  $star_rating = isset( $shortcode_data['testimonial_client_rating'] ) ? $shortcode_data['testimonial_client_rating'] : '';
196
  $star_rating_color = isset( $shortcode_data['testimonial_client_rating_color'] ) ? $shortcode_data['testimonial_client_rating_color'] : '#f3bb00';
197
  $reviewer_position = isset( $shortcode_data['client_designation'] ) ? $shortcode_data['client_designation'] : '';
287
  'post_type' => 'spt_testimonial',
288
  'orderby' => $order_by,
289
  'order' => $order,
290
+ 'posts_per_page' => empty( $number_of_total_testimonials ) ? '10000' : $number_of_total_testimonials,
291
  );
292
 
293
  $post_query = new WP_Query( $args );
public/views/templates/theme-one.php CHANGED
@@ -23,7 +23,7 @@ if ( $testimonial_text && ! empty( get_the_content() ) ) {
23
  }
24
 
25
  if ( $reviewer_name && ! empty( $tfree_name ) ) {
26
- $outline .= '<h4 class="tfree-client-name">' . $tfree_name . '</h4>';
27
  }
28
 
29
  if ( $star_rating && ! empty( $tfree_rating_star ) ) {
23
  }
24
 
25
  if ( $reviewer_name && ! empty( $tfree_name ) ) {
26
+ $outline .= '<' . $reviewer_name_tag . ' class="tfree-client-name">' . $tfree_name . '</' . $reviewer_name_tag . '>';
27
  }
28
 
29
  if ( $star_rating && ! empty( $tfree_rating_star ) ) {
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: shapedplugin, rubel_miah, khalilu, shamimmiashuhagh
3
  Donate link: http://shapedplugin.com/donate
4
  Tags: testimonial, testimonials, testimonial showcase, testimonials showcase, testimonial slider, testimonials slider, testimonial carousel, testimonial front-end submission form, testimonials widget, easy testimonial, testimonial rotator, random testimonials, custom testimonial, collect testimonials, social proof, simple testimonial plugin, best testimonials showcase plugin, free testimonial, customers reviews
5
  Requires at least: 4.0
6
- Tested up to: 5.7.2
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -193,6 +193,10 @@ Thank you!
193
 
194
  == Changelog ==
195
 
 
 
 
 
196
  = 2.2.15 - Jun 18, 2021 =
197
  * Updated: Themes design typo updated.
198
 
3
  Donate link: http://shapedplugin.com/donate
4
  Tags: testimonial, testimonials, testimonial showcase, testimonials showcase, testimonial slider, testimonials slider, testimonial carousel, testimonial front-end submission form, testimonials widget, easy testimonial, testimonial rotator, random testimonials, custom testimonial, collect testimonials, social proof, simple testimonial plugin, best testimonials showcase plugin, free testimonial, customers reviews
5
  Requires at least: 4.0
6
+ Tested up to: 5.8
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
193
 
194
  == Changelog ==
195
 
196
+ = 2.2.16 - Jul 08, 2021 =
197
+ * New: HTML Tag for reviewer full name.
198
+ * Fix: Minor tweaking.
199
+
200
  = 2.2.15 - Jun 18, 2021 =
201
  * Updated: Themes design typo updated.
202
 
testimonial-free.php CHANGED
@@ -12,7 +12,7 @@
12
  * Plugin Name: Testimonial
13
  * Plugin URI: https://shapedplugin.com/plugin/testimonial-pro/?ref=1
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.15
16
  * Author: ShapedPlugin
17
  * Author URI: https://shapedplugin.com/
18
  * Text Domain: testimonial-free
@@ -59,7 +59,7 @@ if ( ! class_exists( 'SP_Testimonial_FREE' ) ) {
59
  *
60
  * @var string
61
  */
62
- public $version = '2.2.15';
63
 
64
  /**
65
  * @var SP_TFREE_Testimonial $shortcode
12
  * Plugin Name: Testimonial
13
  * Plugin URI: https://shapedplugin.com/plugin/testimonial-pro/?ref=1
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.16
16
  * Author: ShapedPlugin
17
  * Author URI: https://shapedplugin.com/
18
  * Text Domain: testimonial-free
59
  *
60
  * @var string
61
  */
62
+ public $version = '2.2.16';
63
 
64
  /**
65
  * @var SP_TFREE_Testimonial $shortcode