Real Testimonials - Version 2.1.2

Version Description

  • Feb 28, 2019 =
  • New: Adaptive height option.
  • Improved: Slider script.
Download this release

Release Info

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

Code changes from version 2.1.1 to 2.1.2

Files changed (73) hide show
  1. admin/assets/css/admin-meta.css +0 -0
  2. admin/assets/css/admin.css +9 -1
  3. admin/assets/css/chosen.css +0 -0
  4. admin/assets/images/chosen-sprite.png +0 -0
  5. admin/assets/images/chosen-sprite@2x.png +0 -0
  6. admin/assets/images/icon-32.png +0 -0
  7. admin/assets/images/logo.png +0 -0
  8. admin/assets/images/nav-1.png +0 -0
  9. admin/assets/js/admin-meta.js +0 -0
  10. admin/assets/js/chosen.js +0 -0
  11. admin/assets/js/help.js +0 -0
  12. admin/assets/js/icon-32.png +0 -0
  13. admin/assets/js/mce-button.js +0 -0
  14. admin/views/mce-button.php +0 -0
  15. admin/views/metabox/assets/css/sp-custom.css +0 -0
  16. admin/views/metabox/assets/css/sp-framework-rtl.css +0 -0
  17. admin/views/metabox/assets/css/sp-framework.css +0 -0
  18. admin/views/metabox/assets/js/sp-framework.js +0 -0
  19. admin/views/metabox/assets/js/sp-framework.min.js +0 -0
  20. admin/views/metabox/assets/js/sp-plugins.js +0 -0
  21. admin/views/metabox/assets/js/sp-plugins.min.js +0 -0
  22. admin/views/metabox/classes/abstract.class.php +0 -0
  23. admin/views/metabox/classes/framework.class.php +0 -0
  24. admin/views/metabox/classes/metabox.class.php +0 -0
  25. admin/views/metabox/classes/options.class.php +0 -0
  26. admin/views/metabox/config/metabox.config.php +0 -0
  27. admin/views/metabox/fields/d_text/d_text.php +0 -0
  28. admin/views/metabox/fields/notice/notice.php +0 -0
  29. admin/views/metabox/fields/rating/rating.php +0 -0
  30. admin/views/metabox/fields/text/text.php +0 -0
  31. admin/views/metabox/functions/actions.php +0 -0
  32. admin/views/metabox/functions/enqueue.php +0 -0
  33. admin/views/metabox/functions/fallback.php +0 -0
  34. admin/views/metabox/functions/helpers.php +0 -0
  35. admin/views/metabox/functions/sanitize.php +0 -0
  36. admin/views/metabox/functions/validate.php +0 -0
  37. admin/views/metabox/index.php +0 -0
  38. admin/views/metabox/sp-framework-path.php +0 -0
  39. admin/views/metabox/sp-framework.php +0 -0
  40. admin/views/partials/general-settings.php +12 -13
  41. admin/views/partials/slider-settings.php +17 -11
  42. admin/views/partials/stylization.php +0 -0
  43. admin/views/partials/typography.php +0 -0
  44. admin/views/partials/upgrade-to-pro.php +0 -0
  45. admin/views/scripts.php +0 -0
  46. admin/views/tab-navigation.php +0 -0
  47. admin/views/widget.php +0 -0
  48. class/metabox.php +0 -0
  49. class/metaboxform.php +0 -0
  50. class/router.php +0 -0
  51. class/shortcodes.php +0 -0
  52. class/testimonial.php +0 -0
  53. includes/free/loader.php +0 -0
  54. includes/functions.php +0 -0
  55. public/assets/css/deprecated-style.css +0 -0
  56. public/assets/css/font-awesome.min.css +0 -0
  57. public/assets/css/responsive.css +0 -0
  58. public/assets/css/slick.css +0 -0
  59. public/assets/css/style.css +0 -4
  60. public/assets/fonts/FontAwesome.otf +0 -0
  61. public/assets/fonts/fontawesome-webfont.eot +0 -0
  62. public/assets/fonts/fontawesome-webfont.svg +0 -0
  63. public/assets/fonts/fontawesome-webfont.ttf +0 -0
  64. public/assets/fonts/fontawesome-webfont.woff +0 -0
  65. public/assets/fonts/fontawesome-webfont.woff2 +0 -0
  66. public/assets/js/slick.min.js +0 -0
  67. public/assets/js/sp-slick-active.js +1 -42
  68. public/views/deprecated-shortcodes.php +9 -12
  69. public/views/scripts.php +4 -5
  70. public/views/shortcoderender.php +20 -25
  71. public/views/templates/theme-one.php +5 -5
  72. readme.txt +6 -3
  73. testimonial-free.php +18 -18
admin/assets/css/admin-meta.css CHANGED
File without changes
admin/assets/css/admin.css CHANGED
@@ -14,7 +14,15 @@ div.sp-tfree-help .wp-badge{
14
  box-shadow: none;
15
  height: auto;
16
  }
17
-
 
 
 
 
 
 
 
 
18
  div.sp-tfree-help .headline-feature.feature-video iframe{
19
  position: absolute;
20
  top: 0;
14
  box-shadow: none;
15
  height: auto;
16
  }
17
+ div.sp-tfree-help .headline-feature.feature-video {
18
+ position: relative;
19
+ margin: 40px 0;
20
+ padding-bottom: 56.25%;
21
+ width: 100%;
22
+ max-width: 100%;
23
+ height: 0;
24
+ text-align: center;
25
+ }
26
  div.sp-tfree-help .headline-feature.feature-video iframe{
27
  position: absolute;
28
  top: 0;
admin/assets/css/chosen.css CHANGED
File without changes
admin/assets/images/chosen-sprite.png CHANGED
File without changes
admin/assets/images/chosen-sprite@2x.png CHANGED
File without changes
admin/assets/images/icon-32.png CHANGED
File without changes
admin/assets/images/logo.png CHANGED
File without changes
admin/assets/images/nav-1.png CHANGED
File without changes
admin/assets/js/admin-meta.js CHANGED
File without changes
admin/assets/js/chosen.js CHANGED
File without changes
admin/assets/js/help.js CHANGED
File without changes
admin/assets/js/icon-32.png CHANGED
File without changes
admin/assets/js/mce-button.js CHANGED
File without changes
admin/views/mce-button.php CHANGED
File without changes
admin/views/metabox/assets/css/sp-custom.css CHANGED
File without changes
admin/views/metabox/assets/css/sp-framework-rtl.css CHANGED
File without changes
admin/views/metabox/assets/css/sp-framework.css CHANGED
File without changes
admin/views/metabox/assets/js/sp-framework.js CHANGED
File without changes
admin/views/metabox/assets/js/sp-framework.min.js CHANGED
File without changes
admin/views/metabox/assets/js/sp-plugins.js CHANGED
File without changes
admin/views/metabox/assets/js/sp-plugins.min.js CHANGED
File without changes
admin/views/metabox/classes/abstract.class.php CHANGED
File without changes
admin/views/metabox/classes/framework.class.php CHANGED
File without changes
admin/views/metabox/classes/metabox.class.php CHANGED
File without changes
admin/views/metabox/classes/options.class.php CHANGED
File without changes
admin/views/metabox/config/metabox.config.php CHANGED
File without changes
admin/views/metabox/fields/d_text/d_text.php CHANGED
File without changes
admin/views/metabox/fields/notice/notice.php CHANGED
File without changes
admin/views/metabox/fields/rating/rating.php CHANGED
File without changes
admin/views/metabox/fields/text/text.php CHANGED
File without changes
admin/views/metabox/functions/actions.php CHANGED
File without changes
admin/views/metabox/functions/enqueue.php CHANGED
File without changes
admin/views/metabox/functions/fallback.php CHANGED
File without changes
admin/views/metabox/functions/helpers.php CHANGED
File without changes
admin/views/metabox/functions/sanitize.php CHANGED
File without changes
admin/views/metabox/functions/validate.php CHANGED
File without changes
admin/views/metabox/index.php CHANGED
File without changes
admin/views/metabox/sp-framework-path.php CHANGED
File without changes
admin/views/metabox/sp-framework.php CHANGED
File without changes
admin/views/partials/general-settings.php CHANGED
@@ -15,7 +15,7 @@
15
  'id' => 'tfree_slider_layout',
16
  'name' => __( 'Layout', 'testimonial-free' ),
17
  'desc' => __( 'Select a layout to display the testimonials.', 'testimonial-free' ),
18
- 'default' => 'slider'
19
  ) );
20
  $this->metaboxform->select( array(
21
  'id' => 'tfree_themes',
@@ -24,49 +24,49 @@
24
  'options' => array(
25
  'theme-one' => __( 'Theme One', 'testimonial-free' ),
26
  ),
27
- 'default' => 'theme-one'
28
  ) );
29
  $this->metaboxform->select_testimonials_from( array(
30
  'id' => 'tfree_testimonials_from',
31
  'name' => __( 'Display Testimonials from', 'testimonial-free' ),
32
  'desc' => __( 'Select an option to display the testimonials.', 'testimonial-free' ),
33
- 'default' => 'latest'
34
  ) );
35
  $this->metaboxform->number( array(
36
  'id' => 'tfree_number_of_total_testimonials',
37
  'name' => __( 'Total Testimonials', 'testimonial-free' ),
38
  'desc' => __( 'Number of total testimonials to display.', 'testimonial-free' ),
39
- 'default' => 50
40
  ) );
41
  $this->metaboxform->number( array(
42
  'id' => 'tfree_number_of_column',
43
  'name' => __( 'Testimonial Column(s)', 'testimonial-free' ),
44
  'desc' => __( 'Set number of column(s) for the screen larger than 1280px.', 'testimonial-free' ),
45
- 'default' => 1
46
  ) );
47
  $this->metaboxform->number( array(
48
  'id' => 'tfree_number_of_column_desktop',
49
  'name' => __( 'Testimonial Column(s) on Desktop', 'testimonial-free' ),
50
  'desc' => __( 'Set number of column on desktop for the screen smaller than 1280px.', 'testimonial-free' ),
51
- 'default' => 1
52
  ) );
53
  $this->metaboxform->number( array(
54
  'id' => 'tfree_number_of_column_small_desktop',
55
  'name' => __( 'Testimonial Column(s) on Small Desktop', 'testimonial-free' ),
56
  'desc' => __( 'Set number of column on small desktop for the screen smaller than 980px.', 'testimonial-free' ),
57
- 'default' => 1
58
  ) );
59
  $this->metaboxform->number( array(
60
  'id' => 'tfree_number_of_column_tablet',
61
  'name' => __( 'Testimonial Column(s) on Tablet', 'testimonial-free' ),
62
  'desc' => __( 'Set number of column on tablet for the screen smaller than 736px.', 'testimonial-free' ),
63
- 'default' => 1
64
  ) );
65
  $this->metaboxform->number( array(
66
  'id' => 'tfree_number_of_column_mobile',
67
  'name' => __( 'Testimonial Column(s) on Mobile', 'testimonial-free' ),
68
  'desc' => __( 'Set number of column on mobile for the screen smaller than 480px.', 'testimonial-free' ),
69
- 'default' => 1
70
  ) );
71
  $this->metaboxform->select( array(
72
  'id' => 'tfree_order_by',
@@ -78,7 +78,7 @@
78
  'title' => __( 'Title', 'testimonial-free' ),
79
  'modified' => __( 'Modified', 'testimonial-free' ),
80
  ),
81
- 'default' => 'date'
82
  ) );
83
  $this->metaboxform->select( array(
84
  'id' => 'tfree_order',
@@ -88,9 +88,8 @@
88
  'ASC' => __( 'Ascending', 'testimonial-free' ),
89
  'DESC' => __( 'Descending', 'testimonial-free' ),
90
  ),
91
- 'default' => 'DESC'
92
  ) );
93
 
94
  ?>
95
-
96
- </div>
15
  'id' => 'tfree_slider_layout',
16
  'name' => __( 'Layout', 'testimonial-free' ),
17
  'desc' => __( 'Select a layout to display the testimonials.', 'testimonial-free' ),
18
+ 'default' => 'slider',
19
  ) );
20
  $this->metaboxform->select( array(
21
  'id' => 'tfree_themes',
24
  'options' => array(
25
  'theme-one' => __( 'Theme One', 'testimonial-free' ),
26
  ),
27
+ 'default' => 'theme-one',
28
  ) );
29
  $this->metaboxform->select_testimonials_from( array(
30
  'id' => 'tfree_testimonials_from',
31
  'name' => __( 'Display Testimonials from', 'testimonial-free' ),
32
  'desc' => __( 'Select an option to display the testimonials.', 'testimonial-free' ),
33
+ 'default' => 'latest',
34
  ) );
35
  $this->metaboxform->number( array(
36
  'id' => 'tfree_number_of_total_testimonials',
37
  'name' => __( 'Total Testimonials', 'testimonial-free' ),
38
  'desc' => __( 'Number of total testimonials to display.', 'testimonial-free' ),
39
+ 'default' => 10,
40
  ) );
41
  $this->metaboxform->number( array(
42
  'id' => 'tfree_number_of_column',
43
  'name' => __( 'Testimonial Column(s)', 'testimonial-free' ),
44
  'desc' => __( 'Set number of column(s) for the screen larger than 1280px.', 'testimonial-free' ),
45
+ 'default' => 1,
46
  ) );
47
  $this->metaboxform->number( array(
48
  'id' => 'tfree_number_of_column_desktop',
49
  'name' => __( 'Testimonial Column(s) on Desktop', 'testimonial-free' ),
50
  'desc' => __( 'Set number of column on desktop for the screen smaller than 1280px.', 'testimonial-free' ),
51
+ 'default' => 1,
52
  ) );
53
  $this->metaboxform->number( array(
54
  'id' => 'tfree_number_of_column_small_desktop',
55
  'name' => __( 'Testimonial Column(s) on Small Desktop', 'testimonial-free' ),
56
  'desc' => __( 'Set number of column on small desktop for the screen smaller than 980px.', 'testimonial-free' ),
57
+ 'default' => 1,
58
  ) );
59
  $this->metaboxform->number( array(
60
  'id' => 'tfree_number_of_column_tablet',
61
  'name' => __( 'Testimonial Column(s) on Tablet', 'testimonial-free' ),
62
  'desc' => __( 'Set number of column on tablet for the screen smaller than 736px.', 'testimonial-free' ),
63
+ 'default' => 1,
64
  ) );
65
  $this->metaboxform->number( array(
66
  'id' => 'tfree_number_of_column_mobile',
67
  'name' => __( 'Testimonial Column(s) on Mobile', 'testimonial-free' ),
68
  'desc' => __( 'Set number of column on mobile for the screen smaller than 480px.', 'testimonial-free' ),
69
+ 'default' => 1,
70
  ) );
71
  $this->metaboxform->select( array(
72
  'id' => 'tfree_order_by',
78
  'title' => __( 'Title', 'testimonial-free' ),
79
  'modified' => __( 'Modified', 'testimonial-free' ),
80
  ),
81
+ 'default' => 'date',
82
  ) );
83
  $this->metaboxform->select( array(
84
  'id' => 'tfree_order',
88
  'ASC' => __( 'Ascending', 'testimonial-free' ),
89
  'DESC' => __( 'Descending', 'testimonial-free' ),
90
  ),
91
+ 'default' => 'DESC',
92
  ) );
93
 
94
  ?>
95
+ </div>
 
admin/views/partials/slider-settings.php CHANGED
@@ -21,14 +21,14 @@
21
  'name' => __( 'AutoPlay Speed', 'testimonial-free' ),
22
  'desc' => __( 'Set autoplay speed.', 'testimonial-free' ),
23
  'after' => __( '(Millisecond)', 'testimonial-free' ),
24
- 'default' => 3000
25
  ) );
26
  $this->metaboxform->number( array(
27
  'id' => 'tfree_scroll_speed',
28
  'name' => __( 'Pagination Speed', 'testimonial-free' ),
29
  'desc' => __( 'Set pagination/slide scroll speed.', 'testimonial-free' ),
30
  'after' => __( '(Millisecond).', 'testimonial-free' ),
31
- 'default' => 600
32
  ) );
33
  $this->metaboxform->checkbox( array(
34
  'id' => 'tfree_pause_on_hover',
@@ -63,14 +63,14 @@
63
  'type' => 'color',
64
  'name' => __( 'Arrow Color', 'testimonial-free' ),
65
  'desc' => __( 'Set the navigation arrow color.', 'testimonial-free' ),
66
- 'default' => '#444444'
67
  ) );
68
  $this->metaboxform->color( array(
69
  'id' => 'tfree_nav_arrow_hover',
70
  'type' => 'color',
71
  'name' => __( 'Arrow Hover Color', 'testimonial-free' ),
72
  'desc' => __( 'Set the navigation arrow hover color.', 'testimonial-free' ),
73
- 'default' => '#52b3d9'
74
  ) );
75
 
76
  $this->metaboxform->subheading( array(
@@ -81,7 +81,7 @@
81
  'id' => 'tfree_pagination',
82
  'name' => __( 'Pagination', 'testimonial-free' ),
83
  'desc' => __( 'Show/Hide pagination.', 'testimonial-free' ),
84
- 'default' => 'on'
85
  ) );
86
 
87
  $this->metaboxform->color( array(
@@ -89,36 +89,42 @@
89
  'type' => 'color',
90
  'name' => __( 'Dots Color', 'testimonial-free' ),
91
  'desc' => __( 'Set the pagination dots color.', 'testimonial-free' ),
92
- 'default' => '#cccccc'
93
  ) );
94
  $this->metaboxform->color( array(
95
  'id' => 'tfree_pagination_active_color',
96
  'type' => 'color',
97
  'name' => __( 'Active Color', 'testimonial-free' ),
98
  'desc' => __( 'Set the pagination active color.', 'testimonial-free' ),
99
- 'default' => '#52b3d9'
100
  ) );
101
  $this->metaboxform->subheading( array(
102
  'id' => 'subheading',
103
  'name' => __( 'Misc. Settings', 'testimonial-free' ),
104
  ) );
 
 
 
 
 
 
105
  $this->metaboxform->checkbox( array(
106
  'id' => 'tfree_swipe',
107
  'name' => __( 'Swipe', 'testimonial-free' ),
108
  'desc' => __( 'On/Off swipe mode.', 'testimonial-free' ),
109
- 'default' => 'on'
110
  ) );
111
  $this->metaboxform->checkbox( array(
112
  'id' => 'tfree_mouse_draggable',
113
  'name' => __( 'Mouse Draggable', 'testimonial-free' ),
114
  'desc' => __( 'On/Off mouse draggable mode.', 'testimonial-free' ),
115
- 'default' => 'on'
116
  ) );
117
  $this->metaboxform->checkbox( array(
118
  'id' => 'tfree_rtl',
119
  'name' => __( 'RTL', 'testimonial-free' ),
120
  'desc' => __( 'On/Off right to left mode.', 'testimonial-free' ),
121
- 'default' => 'off'
122
  ) );
123
  ?>
124
- </div>
21
  'name' => __( 'AutoPlay Speed', 'testimonial-free' ),
22
  'desc' => __( 'Set autoplay speed.', 'testimonial-free' ),
23
  'after' => __( '(Millisecond)', 'testimonial-free' ),
24
+ 'default' => 3000,
25
  ) );
26
  $this->metaboxform->number( array(
27
  'id' => 'tfree_scroll_speed',
28
  'name' => __( 'Pagination Speed', 'testimonial-free' ),
29
  'desc' => __( 'Set pagination/slide scroll speed.', 'testimonial-free' ),
30
  'after' => __( '(Millisecond).', 'testimonial-free' ),
31
+ 'default' => 600,
32
  ) );
33
  $this->metaboxform->checkbox( array(
34
  'id' => 'tfree_pause_on_hover',
63
  'type' => 'color',
64
  'name' => __( 'Arrow Color', 'testimonial-free' ),
65
  'desc' => __( 'Set the navigation arrow color.', 'testimonial-free' ),
66
+ 'default' => '#444444',
67
  ) );
68
  $this->metaboxform->color( array(
69
  'id' => 'tfree_nav_arrow_hover',
70
  'type' => 'color',
71
  'name' => __( 'Arrow Hover Color', 'testimonial-free' ),
72
  'desc' => __( 'Set the navigation arrow hover color.', 'testimonial-free' ),
73
+ 'default' => '#52b3d9',
74
  ) );
75
 
76
  $this->metaboxform->subheading( array(
81
  'id' => 'tfree_pagination',
82
  'name' => __( 'Pagination', 'testimonial-free' ),
83
  'desc' => __( 'Show/Hide pagination.', 'testimonial-free' ),
84
+ 'default' => 'on',
85
  ) );
86
 
87
  $this->metaboxform->color( array(
89
  'type' => 'color',
90
  'name' => __( 'Dots Color', 'testimonial-free' ),
91
  'desc' => __( 'Set the pagination dots color.', 'testimonial-free' ),
92
+ 'default' => '#cccccc',
93
  ) );
94
  $this->metaboxform->color( array(
95
  'id' => 'tfree_pagination_active_color',
96
  'type' => 'color',
97
  'name' => __( 'Active Color', 'testimonial-free' ),
98
  'desc' => __( 'Set the pagination active color.', 'testimonial-free' ),
99
+ 'default' => '#52b3d9',
100
  ) );
101
  $this->metaboxform->subheading( array(
102
  'id' => 'subheading',
103
  'name' => __( 'Misc. Settings', 'testimonial-free' ),
104
  ) );
105
+ $this->metaboxform->checkbox( array(
106
+ 'id' => 'tfree_adaptive',
107
+ 'name' => __( 'Adaptive Height', 'testimonial-free' ),
108
+ 'desc' => __( 'On/Off adaptive height for the slider.', 'testimonial-free' ),
109
+ 'default' => 'on',
110
+ ) );
111
  $this->metaboxform->checkbox( array(
112
  'id' => 'tfree_swipe',
113
  'name' => __( 'Swipe', 'testimonial-free' ),
114
  'desc' => __( 'On/Off swipe mode.', 'testimonial-free' ),
115
+ 'default' => 'on',
116
  ) );
117
  $this->metaboxform->checkbox( array(
118
  'id' => 'tfree_mouse_draggable',
119
  'name' => __( 'Mouse Draggable', 'testimonial-free' ),
120
  'desc' => __( 'On/Off mouse draggable mode.', 'testimonial-free' ),
121
+ 'default' => 'on',
122
  ) );
123
  $this->metaboxform->checkbox( array(
124
  'id' => 'tfree_rtl',
125
  'name' => __( 'RTL', 'testimonial-free' ),
126
  'desc' => __( 'On/Off right to left mode.', 'testimonial-free' ),
127
+ 'default' => 'off',
128
  ) );
129
  ?>
130
+ </div>
admin/views/partials/stylization.php CHANGED
File without changes
admin/views/partials/typography.php CHANGED
File without changes
admin/views/partials/upgrade-to-pro.php CHANGED
File without changes
admin/views/scripts.php CHANGED
File without changes
admin/views/tab-navigation.php CHANGED
File without changes
admin/views/widget.php CHANGED
File without changes
class/metabox.php CHANGED
File without changes
class/metaboxform.php CHANGED
File without changes
class/router.php CHANGED
File without changes
class/shortcodes.php CHANGED
File without changes
class/testimonial.php CHANGED
File without changes
includes/free/loader.php CHANGED
File without changes
includes/functions.php CHANGED
File without changes
public/assets/css/deprecated-style.css CHANGED
File without changes
public/assets/css/font-awesome.min.css CHANGED
File without changes
public/assets/css/responsive.css DELETED
File without changes
public/assets/css/slick.css CHANGED
File without changes
public/assets/css/style.css CHANGED
@@ -1,7 +1,3 @@
1
- .sp-tfree-config{
2
- display: none;
3
- }
4
-
5
  div.sp-testimonial-free-section{
6
  display: none;
7
  }
 
 
 
 
1
  div.sp-testimonial-free-section{
2
  display: none;
3
  }
public/assets/fonts/FontAwesome.otf CHANGED
File without changes
public/assets/fonts/fontawesome-webfont.eot CHANGED
File without changes
public/assets/fonts/fontawesome-webfont.svg CHANGED
File without changes
public/assets/fonts/fontawesome-webfont.ttf CHANGED
File without changes
public/assets/fonts/fontawesome-webfont.woff CHANGED
File without changes
public/assets/fonts/fontawesome-webfont.woff2 CHANGED
File without changes
public/assets/js/slick.min.js CHANGED
File without changes
public/assets/js/sp-slick-active.js CHANGED
@@ -1,55 +1,14 @@
1
  jQuery(document).ready(function ($) {
2
 
3
  $('.sp-testimonial-free-section').each(function (index) {
4
-
5
  var tfree_custom_slider_id = $(this).attr('id');
6
- var tfree_config = $.parseJSON($(this).closest('.sp-testimonial-free-wrapper').find('.sp-tfree-config').text());
7
-
8
-
9
  if ( tfree_custom_slider_id != '') {
10
-
11
  jQuery('#' + tfree_custom_slider_id).slick({
12
  pauseOnFocus: false,
13
- infinite: (tfree_config.infinite_loop) == "true" ? true : false,
14
- slidesToShow: parseInt(tfree_config.number_of_column),
15
  slidesToScroll: 1,
16
- autoplay: (tfree_config.auto_play) == "true" ? true : false,
17
- autoplaySpeed: parseInt(tfree_config.auto_play_speed),
18
- speed: parseInt(tfree_config.scroll_speed),
19
- pauseOnHover: (tfree_config.pause_on_hover) == "true" ? true : false,
20
- swipe: (tfree_config.swipe_on) == "true" ? true : false,
21
- draggable: (tfree_config.mouse_draggable) == "true" ? true : false,
22
- arrows: (tfree_config.navigation) == "true" ? true : false,
23
  prevArrow: "<div class='slick-prev'><i class='fa fa-angle-left'></i></div>",
24
  nextArrow: "<div class='slick-next'><i class='fa fa-angle-right'></i></div>",
25
- dots: (tfree_config.pagination) == "true" ? true : false,
26
- rtl: (tfree_config.rtl_mode) == "true" ? true : false,
27
- responsive: [
28
- {
29
- breakpoint: 1280,
30
- settings: {
31
- slidesToShow: parseInt(tfree_config.number_of_column_desktop)
32
- }
33
- },
34
- {
35
- breakpoint: 980,
36
- settings: {
37
- slidesToShow: parseInt(tfree_config.number_of_column_small_desktop)
38
- }
39
- },
40
- {
41
- breakpoint: 736,
42
- settings: {
43
- slidesToShow: parseInt(tfree_config.number_of_column_tablet)
44
- }
45
- },
46
- {
47
- breakpoint: 480,
48
- settings: {
49
- slidesToShow: parseInt(tfree_config.number_of_column_mobile)
50
- }
51
- }
52
- ]
53
  });
54
  }
55
  });
1
  jQuery(document).ready(function ($) {
2
 
3
  $('.sp-testimonial-free-section').each(function (index) {
 
4
  var tfree_custom_slider_id = $(this).attr('id');
5
+
 
 
6
  if ( tfree_custom_slider_id != '') {
 
7
  jQuery('#' + tfree_custom_slider_id).slick({
8
  pauseOnFocus: false,
 
 
9
  slidesToScroll: 1,
 
 
 
 
 
 
 
10
  prevArrow: "<div class='slick-prev'><i class='fa fa-angle-left'></i></div>",
11
  nextArrow: "<div class='slick-next'><i class='fa fa-angle-right'></i></div>",
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
12
  });
13
  }
14
  });
public/views/deprecated-shortcodes.php CHANGED
@@ -1,9 +1,9 @@
1
  <?php
2
  if ( ! defined( 'ABSPATH' ) ) {
3
  exit;
4
- } // Exit if accessed directly
5
 
6
- // Testimonial Free shortcode
7
  function sp_testimonial_free_shortcode( $atts ) {
8
  extract( shortcode_atts( array(
9
  'color' => '#52b3d9',
@@ -12,7 +12,6 @@ function sp_testimonial_free_shortcode( $atts ) {
12
  'autoplay' => 'true',
13
  ), $atts, 'testimonial-free' ) );
14
 
15
-
16
  $args = array(
17
  'post_type' => 'spt_testimonial',
18
  'orderby' => 'date',
@@ -44,7 +43,6 @@ function sp_testimonial_free_shortcode( $atts ) {
44
  });
45
  </script>';
46
 
47
-
48
  if ( $nav == 'false' ) {
49
  echo "<style type='text/css'>
50
  .sp-testimonial-section .testimonial-free{
@@ -56,7 +54,6 @@ function sp_testimonial_free_shortcode( $atts ) {
56
  </style>";
57
  }
58
 
59
-
60
  $outline .= '<style type="text/css">
61
  #sp-testimonial-free' . $custom_id . '.sp-testimonial-section .slick-prev:hover,
62
  #sp-testimonial-free' . $custom_id . '.sp-testimonial-section .slick-next:hover{
@@ -85,24 +82,24 @@ function sp_testimonial_free_shortcode( $atts ) {
85
  $outline .= get_the_content();
86
  $outline .= '</div>';
87
  $outline .= '<h2 class="tf-client-name">';
88
- if(isset($testimonial_data['tpro_name']) && $testimonial_data['tpro_name'] !== ''){
89
  $outline .= $testimonial_data['tpro_name'];
90
- } else{
91
  $outline .= get_the_title();
92
  }
93
  $outline .= '</h2>';
94
- if (isset($testimonial_data['tpro_designation']) || $tf_designation ) {
95
  $outline .= '<h6 class="tf-client-designation">';
96
- if(isset($tf_designation) && $tf_designation !== ''){
97
  $outline .= $tf_designation;
98
- } elseif(isset($testimonial_data['tpro_designation'])){
99
  $outline .= $testimonial_data['tpro_designation'];
100
  }
101
 
102
  $outline .= '</h6>';
103
  }
104
 
105
- $outline .= '</div>'; //testimonial free
106
 
107
  endwhile;
108
  } else {
@@ -116,4 +113,4 @@ function sp_testimonial_free_shortcode( $atts ) {
116
 
117
  }
118
 
119
- add_shortcode( 'testimonial-free', 'sp_testimonial_free_shortcode' );
1
  <?php
2
  if ( ! defined( 'ABSPATH' ) ) {
3
  exit;
4
+ } // Exit if accessed directly.
5
 
6
+ // Testimonial Free shortcode.
7
  function sp_testimonial_free_shortcode( $atts ) {
8
  extract( shortcode_atts( array(
9
  'color' => '#52b3d9',
12
  'autoplay' => 'true',
13
  ), $atts, 'testimonial-free' ) );
14
 
 
15
  $args = array(
16
  'post_type' => 'spt_testimonial',
17
  'orderby' => 'date',
43
  });
44
  </script>';
45
 
 
46
  if ( $nav == 'false' ) {
47
  echo "<style type='text/css'>
48
  .sp-testimonial-section .testimonial-free{
54
  </style>";
55
  }
56
 
 
57
  $outline .= '<style type="text/css">
58
  #sp-testimonial-free' . $custom_id . '.sp-testimonial-section .slick-prev:hover,
59
  #sp-testimonial-free' . $custom_id . '.sp-testimonial-section .slick-next:hover{
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'] !== '' ) {
86
  $outline .= $testimonial_data['tpro_name'];
87
+ } else {
88
  $outline .= get_the_title();
89
  }
90
  $outline .= '</h2>';
91
+ if ( isset( $testimonial_data['tpro_designation'] ) || $tf_designation ) {
92
  $outline .= '<h6 class="tf-client-designation">';
93
+ if ( isset( $tf_designation ) && $tf_designation !== '') {
94
  $outline .= $tf_designation;
95
+ } elseif( isset( $testimonial_data['tpro_designation'] ) ) {
96
  $outline .= $testimonial_data['tpro_designation'];
97
  }
98
 
99
  $outline .= '</h6>';
100
  }
101
 
102
+ $outline .= '</div>'; // testimonial free.
103
 
104
  endwhile;
105
  } else {
113
 
114
  }
115
 
116
+ add_shortcode( 'testimonial-free', 'sp_testimonial_free_shortcode' );
public/views/scripts.php CHANGED
@@ -5,7 +5,7 @@ if ( ! defined( 'ABSPATH' ) ) { exit; } // if direct access
5
  /**
6
  * Scripts and styles
7
  */
8
- class SP_TFREE_Front_Scripts{
9
 
10
  /**
11
  * @var null
@@ -37,18 +37,17 @@ class SP_TFREE_Front_Scripts{
37
  * Plugin Scripts and Styles
38
  */
39
  function front_scripts() {
40
- // CSS Files
41
  wp_enqueue_style( 'tfree-slick', SP_TFREE_URL . 'public/assets/css/slick.css', array(), SP_TFREE_VERSION );
42
  wp_enqueue_style( 'tfree-font-awesome', SP_TFREE_URL . 'public/assets/css/font-awesome.min.css', array(), SP_TFREE_VERSION );
43
  wp_enqueue_style( 'tfree-deprecated-style', SP_TFREE_URL . 'public/assets/css/deprecated-style.css', array(), SP_TFREE_VERSION );
44
  wp_enqueue_style( 'tfree-style', SP_TFREE_URL . 'public/assets/css/style.css', array(), SP_TFREE_VERSION );
45
- wp_enqueue_style( 'tfree-responsive', SP_TFREE_URL . 'public/assets/css/responsive.css', array(), SP_TFREE_VERSION );
46
 
47
- //JS Files
48
  wp_register_script( 'tfree-slick-min-js', SP_TFREE_URL . 'public/assets/js/slick.min.js', array( 'jquery' ), SP_TFREE_VERSION, true );
49
  wp_register_script( 'tfree-slick-active', SP_TFREE_URL . 'public/assets/js/sp-slick-active.js', array( 'jquery' ), SP_TFREE_VERSION, true );
50
 
51
  }
52
 
53
  }
54
- new SP_TFREE_Front_Scripts();
5
  /**
6
  * Scripts and styles
7
  */
8
+ class SP_TFREE_Front_Scripts {
9
 
10
  /**
11
  * @var null
37
  * Plugin Scripts and Styles
38
  */
39
  function front_scripts() {
40
+ // CSS Files.
41
  wp_enqueue_style( 'tfree-slick', SP_TFREE_URL . 'public/assets/css/slick.css', array(), SP_TFREE_VERSION );
42
  wp_enqueue_style( 'tfree-font-awesome', SP_TFREE_URL . 'public/assets/css/font-awesome.min.css', array(), SP_TFREE_VERSION );
43
  wp_enqueue_style( 'tfree-deprecated-style', SP_TFREE_URL . 'public/assets/css/deprecated-style.css', array(), SP_TFREE_VERSION );
44
  wp_enqueue_style( 'tfree-style', SP_TFREE_URL . 'public/assets/css/style.css', array(), SP_TFREE_VERSION );
 
45
 
46
+ // JS Files.
47
  wp_register_script( 'tfree-slick-min-js', SP_TFREE_URL . 'public/assets/js/slick.min.js', array( 'jquery' ), SP_TFREE_VERSION, true );
48
  wp_register_script( 'tfree-slick-active', SP_TFREE_URL . 'public/assets/js/sp-slick-active.js', array( 'jquery' ), SP_TFREE_VERSION, true );
49
 
50
  }
51
 
52
  }
53
+ new SP_TFREE_Front_Scripts();
public/views/shortcoderender.php CHANGED
@@ -4,7 +4,7 @@
4
  * @package testimonial-free
5
  */
6
  if ( ! defined( 'ABSPATH' ) ) {
7
- exit; // Exit if accessed directly
8
  }
9
 
10
  /**
@@ -92,7 +92,6 @@ if ( ! class_exists( 'TFREE_Shortcode_Render' ) ) {
92
 
93
  $post_id = $attributes['id'];
94
 
95
-
96
  $theme_style = get_post_meta( $post_id, 'tfree_themes', true );
97
  $number_of_total_testimonials = get_post_meta( $post_id, 'tfree_number_of_total_testimonials', true );
98
  $order_by = get_post_meta( $post_id, 'tfree_order_by', true );
@@ -126,21 +125,18 @@ if ( ! class_exists( 'TFREE_Shortcode_Render' ) ) {
126
  $infinite_loop = $this->get_meta( $post_id, 'tfree_infinite_loop', 'true' );
127
  $navigation = $this->get_meta( $post_id, 'tfree_navigation', 'true' );
128
  $pagination = $this->get_meta( $post_id, 'tfree_pagination', 'true' );
 
129
  $swipe_on = $this->get_meta( $post_id, 'tfree_swipe', 'true' );
130
  $mouse_draggable = $this->get_meta( $post_id, 'tfree_mouse_draggable', 'true' );
131
  $rtl_mode = $this->get_meta( $post_id, 'tfree_rtl', 'true' );
132
 
133
-
134
- // Enqueue Script
135
  wp_enqueue_script( 'tfree-slick-min-js' );
136
  wp_enqueue_script( 'tfree-slick-active' );
137
 
138
-
139
- $tfree_config = compact( 'number_of_column', 'number_of_column_desktop', 'number_of_column_small_desktop', 'number_of_column_tablet', 'number_of_column_mobile', 'auto_play', 'auto_play_speed', 'scroll_speed', 'pause_on_hover', 'infinite_loop', 'navigation', 'pagination', 'swipe_on', 'mouse_draggable', 'rtl_mode' );
140
-
141
  $outline = '';
142
 
143
- // Style
144
  $outline .= '<style>';
145
  $outline .= '#sp-testimonial-free-wrapper-' . $post_id . ' .sp-testimonial-free-section .slick-dots li button{
146
  background: ' . $pagination_color . ';
@@ -199,29 +195,28 @@ if ( ! class_exists( 'TFREE_Shortcode_Render' ) ) {
199
  'post_type' => 'spt_testimonial',
200
  'orderby' => $order_by,
201
  'order' => $order,
202
- 'posts_per_page' => $number_of_total_testimonials
203
  );
204
 
205
  $post_query = new WP_Query( $args );
206
 
207
-
208
  $outline .= '<div id="sp-testimonial-free-wrapper-' . $post_id . '" class="sp-testimonial-free-wrapper">';
209
- $outline .= '<div class="sp-tfree-config">' . json_encode( $tfree_config ) . '</div>';
210
- if ( $section_title == 'true' ) {
211
  $outline .= '<h2 class="sp-testimonial-free-section-title">' . get_the_title( $post_id ) . '</h2>';
212
  }
213
 
214
- $outline .= '<div id="sp-testimonial-free-' . $post_id . '" class="sp-testimonial-free-section tfree-style-' . $theme_style . '">';
215
 
216
  if ( $post_query->have_posts() ) {
217
- while ( $post_query->have_posts() ) : $post_query->the_post();
218
-
219
- $testimonial_data = get_post_meta( get_the_ID(), 'sp_tpro_meta_options', true );
220
- $tfree_designation = (isset($testimonial_data['tpro_designation']) ? $testimonial_data['tpro_designation']: '');
221
- $tfree_name = (isset($testimonial_data['tpro_name'])?$testimonial_data['tpro_name']: '');
222
- $tfree_rating_star = (isset($testimonial_data['tpro_rating']) ? $testimonial_data['tpro_rating']: '');
223
-
224
- if ( $theme_style == 'theme-one' ) {
225
  include SP_TFREE_PATH . '/public/views/templates/theme-one.php';
226
  }
227
 
@@ -254,13 +249,13 @@ if ( ! class_exists( 'TFREE_Shortcode_Render' ) ) {
254
  $meta = $default;
255
  }
256
 
257
- if ( $meta == 'zero' ) {
258
  $meta = '0';
259
  }
260
- if ( $meta == 'on' ) {
261
  $meta = 'true';
262
  }
263
- if ( $meta == 'off' ) {
264
  $meta = 'false';
265
  }
266
 
@@ -270,4 +265,4 @@ if ( ! class_exists( 'TFREE_Shortcode_Render' ) ) {
270
  }
271
 
272
  new TFREE_Shortcode_Render();
273
- }
4
  * @package testimonial-free
5
  */
6
  if ( ! defined( 'ABSPATH' ) ) {
7
+ exit; // Exit if accessed directly.
8
  }
9
 
10
  /**
92
 
93
  $post_id = $attributes['id'];
94
 
 
95
  $theme_style = get_post_meta( $post_id, 'tfree_themes', true );
96
  $number_of_total_testimonials = get_post_meta( $post_id, 'tfree_number_of_total_testimonials', true );
97
  $order_by = get_post_meta( $post_id, 'tfree_order_by', true );
125
  $infinite_loop = $this->get_meta( $post_id, 'tfree_infinite_loop', 'true' );
126
  $navigation = $this->get_meta( $post_id, 'tfree_navigation', 'true' );
127
  $pagination = $this->get_meta( $post_id, 'tfree_pagination', 'true' );
128
+ $adaptive_height = $this->get_meta( $post_id, 'tfree_adaptive', 'true' );
129
  $swipe_on = $this->get_meta( $post_id, 'tfree_swipe', 'true' );
130
  $mouse_draggable = $this->get_meta( $post_id, 'tfree_mouse_draggable', 'true' );
131
  $rtl_mode = $this->get_meta( $post_id, 'tfree_rtl', 'true' );
132
 
133
+ // Enqueue Script.
 
134
  wp_enqueue_script( 'tfree-slick-min-js' );
135
  wp_enqueue_script( 'tfree-slick-active' );
136
 
 
 
 
137
  $outline = '';
138
 
139
+ // Style.
140
  $outline .= '<style>';
141
  $outline .= '#sp-testimonial-free-wrapper-' . $post_id . ' .sp-testimonial-free-section .slick-dots li button{
142
  background: ' . $pagination_color . ';
195
  'post_type' => 'spt_testimonial',
196
  'orderby' => $order_by,
197
  'order' => $order,
198
+ 'posts_per_page' => $number_of_total_testimonials,
199
  );
200
 
201
  $post_query = new WP_Query( $args );
202
 
 
203
  $outline .= '<div id="sp-testimonial-free-wrapper-' . $post_id . '" class="sp-testimonial-free-wrapper">';
204
+
205
+ if ( 'true' == $section_title ) {
206
  $outline .= '<h2 class="sp-testimonial-free-section-title">' . get_the_title( $post_id ) . '</h2>';
207
  }
208
 
209
+ $outline .= '<div id="sp-testimonial-free-' . $post_id . '" class="sp-testimonial-free-section tfree-style-' . $theme_style . '" data-slick=\'{"dots": ' . $pagination . ', "adaptiveHeight": ' . $adaptive_height . ', "pauseOnHover": ' . $pause_on_hover . ', "slidesToShow": ' . $number_of_column . ', "speed": ' . $scroll_speed . ', "arrows": ' . $navigation . ', "autoplay": ' . $auto_play . ', "autoplaySpeed": ' . $auto_play_speed . ', "swipe": ' . $swipe_on . ', "draggable": ' . $mouse_draggable . ', "rtl": ' . $rtl_mode . ', "infinite": ' . $infinite_loop . ', "responsive": [ {"breakpoint": 1280, "settings": { "slidesToShow": ' . $number_of_column_desktop . ' } }, {"breakpoint": 980, "settings": { "slidesToShow": ' . $number_of_column_small_desktop . ' } }, {"breakpoint": 736, "settings": { "slidesToShow": ' . $number_of_column_tablet . ' } }, {"breakpoint": 480, "settings": { "slidesToShow": ' . $number_of_column_mobile . ' } } ] }\'>';
210
 
211
  if ( $post_query->have_posts() ) {
212
+ while ( $post_query->have_posts() ) :
213
+ $post_query->the_post();
214
+ $testimonial_data = get_post_meta( get_the_ID(), 'sp_tpro_meta_options', true );
215
+ $tfree_designation = ( isset( $testimonial_data['tpro_designation'] ) ? $testimonial_data['tpro_designation']: '' );
216
+ $tfree_name = ( isset( $testimonial_data['tpro_name'] ) ? $testimonial_data['tpro_name']: '' );
217
+ $tfree_rating_star = ( isset( $testimonial_data['tpro_rating'] ) ? $testimonial_data['tpro_rating']: '' );
218
+
219
+ if ( 'theme-one' == $theme_style ) {
220
  include SP_TFREE_PATH . '/public/views/templates/theme-one.php';
221
  }
222
 
249
  $meta = $default;
250
  }
251
 
252
+ if ( 'zero' == $meta ) {
253
  $meta = '0';
254
  }
255
+ if ( 'on' == $meta ) {
256
  $meta = 'true';
257
  }
258
+ if ( 'off' == $meta ) {
259
  $meta = 'false';
260
  }
261
 
265
  }
266
 
267
  new TFREE_Shortcode_Render();
268
+ }
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
  }
@@ -38,7 +38,7 @@ if ( $reviewer_name == 'true' && $tfree_name !== '' ) {
38
 
39
  if ( $star_rating == 'true' && $tfree_rating_star !== '' ) {
40
 
41
- switch ($tfree_rating_star) {
42
  case 'five_star':
43
  $rating_value = '5';
44
  break;
@@ -57,7 +57,7 @@ if ( $star_rating == 'true' && $tfree_rating_star !== '' ) {
57
  }
58
 
59
  $outline .= '<div class="tfree-client-rating" itemprop="reviewRating" itemscope itemtype="http://schema.org/Rating">';
60
- $outline .= '<meta itemprop="worstRating" content="1"><meta itemprop="ratingValue" content="'.$rating_value.'"><meta itemprop="bestRating" content="5">';
61
  if ( $tfree_rating_star == 'five_star' ) {
62
  $outline .= $this->tfree_five_star;
63
  } elseif ( $tfree_rating_star == 'four_star' ) {
@@ -78,6 +78,6 @@ if ( $reviewer_position == 'true' && $tfree_designation !== '' ) {
78
  $outline .= '</div>';
79
  }
80
 
81
- $outline .= '</div>'; //sp-testimonial-free
82
 
83
- $outline .= '</div>'; //sp-testimonial-free-item
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
  }
38
 
39
  if ( $star_rating == 'true' && $tfree_rating_star !== '' ) {
40
 
41
+ switch ( $tfree_rating_star ) {
42
  case 'five_star':
43
  $rating_value = '5';
44
  break;
57
  }
58
 
59
  $outline .= '<div class="tfree-client-rating" itemprop="reviewRating" itemscope itemtype="http://schema.org/Rating">';
60
+ $outline .= '<meta itemprop="worstRating" content="1"><meta itemprop="ratingValue" content="' . $rating_value . '"><meta itemprop="bestRating" content="5">';
61
  if ( $tfree_rating_star == 'five_star' ) {
62
  $outline .= $this->tfree_five_star;
63
  } elseif ( $tfree_rating_star == 'four_star' ) {
78
  $outline .= '</div>';
79
  }
80
 
81
+ $outline .= '</div>'; // sp-testimonial-free.
82
 
83
+ $outline .= '</div>'; // sp-testimonial-free-item.
readme.txt CHANGED
@@ -3,7 +3,7 @@ Contributors: shapedplugin
3
  Donate link: http://shapedplugin.com/donate
4
  Tags: testimonial, testimonials, testimonials showcase, testimonials slider, testimonial carousel, testimonial front-end submission form, testimonial 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.0
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
@@ -302,7 +302,6 @@ Thank you!
302
 
303
 
304
 
305
-
306
  == Screenshots ==
307
  1. Live Demo (Free)
308
  2. Add New Testimonial
@@ -316,6 +315,10 @@ Thank you!
316
 
317
  == Changelog ==
318
 
 
 
 
 
319
  = 2.1.1 =
320
  * Fix: Languages path issue.
321
 
@@ -346,7 +349,7 @@ Thank you!
346
  = 1.3 =
347
  * Removed view link
348
  * Removed attribute "id"
349
- * Added shortcode in backend
350
 
351
  = 1.2 =
352
  * Navigation css issue fixed
3
  Donate link: http://shapedplugin.com/donate
4
  Tags: testimonial, testimonials, testimonials showcase, testimonials slider, testimonial carousel, testimonial front-end submission form, testimonial 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.1
7
  License: GPLv2 or later
8
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
 
302
 
303
 
304
 
 
305
  == Screenshots ==
306
  1. Live Demo (Free)
307
  2. Add New Testimonial
315
 
316
  == Changelog ==
317
 
318
+ = 2.1.2 - Feb 28, 2019 =
319
+ * New: Adaptive height option.
320
+ * Improved: Slider script.
321
+
322
  = 2.1.1 =
323
  * Fix: Languages path issue.
324
 
349
  = 1.3 =
350
  * Removed view link
351
  * Removed attribute "id"
352
+ * Added shortcode in back-end
353
 
354
  = 1.2 =
355
  * Navigation css issue fixed
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.1
7
  * Author: ShapedPlugin
8
  * Author URI: https://shapedplugin.com/
9
  * Text Domain: testimonial-free
@@ -11,7 +11,7 @@
11
  */
12
 
13
  if ( ! defined( 'ABSPATH' ) ) {
14
- exit; // Exit if accessed directly
15
  }
16
 
17
  /**
@@ -27,7 +27,7 @@ if ( ! class_exists( 'SP_Testimonial_FREE' ) ) {
27
  *
28
  * @var string
29
  */
30
- public $version = '2.1.1';
31
 
32
  /**
33
  * @var SP_TFREE_Testimonial $shortcode
@@ -71,22 +71,22 @@ if ( ! class_exists( 'SP_Testimonial_FREE' ) ) {
71
  * SP_Testimonial_FREE constructor.
72
  */
73
  function __construct() {
74
- // Define constants
75
  $this->define_constants();
76
 
77
- //Required class file include
78
  spl_autoload_register( array( $this, 'autoload' ) );
79
 
80
- // Include required files
81
  $this->includes();
82
 
83
- // instantiate classes
84
  $this->instantiate();
85
 
86
- // Initialize the filter hooks
87
  $this->init_filters();
88
 
89
- // Initialize the action hooks
90
  $this->init_actions();
91
  }
92
 
@@ -98,7 +98,7 @@ if ( ! class_exists( 'SP_Testimonial_FREE' ) ) {
98
  function init_filters() {
99
  add_filter( 'plugin_action_links', array( $this, 'add_plugin_action_links' ), 10, 2 );
100
  add_filter( 'manage_sp_tfree_shortcodes_posts_columns', array( $this, 'add_shortcode_column' ) );
101
- add_filter( "plugin_row_meta", array( $this, 'after_testimonial_free_row_meta' ), 10, 4 );
102
  add_filter( 'manage_spt_testimonial_posts_columns', array( $this, 'add_testimonial_column' ) );
103
  }
104
 
@@ -111,7 +111,7 @@ if ( ! class_exists( 'SP_Testimonial_FREE' ) ) {
111
  add_action( 'plugins_loaded', array( $this, 'load_text_domain' ) );
112
  add_action( 'manage_sp_tfree_shortcodes_posts_custom_column', array( $this, 'add_shortcode_form' ), 10, 2 );
113
  add_action( 'manage_spt_testimonial_posts_custom_column', array( $this, 'add_testimonial_extra_column' ), 10, 2 );
114
- add_action( 'activated_plugin', array( $this, 'redirect_help_page' ));
115
  }
116
 
117
  /**
@@ -223,7 +223,7 @@ if ( ! class_exists( 'SP_Testimonial_FREE' ) ) {
223
  }
224
 
225
  /**
226
- * page router instantiate
227
  *
228
  * @since 2.0
229
  */
@@ -309,7 +309,7 @@ if ( ! class_exists( 'SP_Testimonial_FREE' ) ) {
309
 
310
  case 'rating':
311
  $testimonial_data = get_post_meta( $post_id, 'sp_tpro_meta_options', true );
312
- if(isset($testimonial_data['tpro_rating'])) {
313
  $rating_star = $testimonial_data['tpro_rating'];
314
  $fill_star = '<i style="color: #f3bb00;" class="fa fa-star"></i>';
315
  $empty_star = '<i class="fa fa-star"></i>';
@@ -338,9 +338,9 @@ if ( ! class_exists( 'SP_Testimonial_FREE' ) ) {
338
  case 'image':
339
  add_image_size( 'sp_tfree_client_small_img', 50, 50, true );
340
  $testimonial_client_image = get_the_post_thumbnail( get_the_ID(), 'sp_tfree_client_small_img' );
341
- if ($testimonial_client_image !== ''){
342
  echo $testimonial_client_image;
343
- } else{
344
  echo '<span aria-hidden="true">—</span>';
345
  }
346
  break;
@@ -348,7 +348,7 @@ if ( ! class_exists( 'SP_Testimonial_FREE' ) ) {
348
  break;
349
  case 'name':
350
  $testimonial_data = get_post_meta( $post_id, 'sp_tpro_meta_options', true );
351
- if(isset($testimonial_data['tpro_name'])) {
352
  $testimonial_client_name = $testimonial_data['tpro_name'];
353
  if ( $testimonial_client_name !== '' ) {
354
  echo $testimonial_client_name;
@@ -386,6 +386,6 @@ function sp_testimonial_free() {
386
  }
387
 
388
  if ( ! in_array( 'testimonial-pro/testimonial-pro.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) ) {
389
- //sp_testimonial_free instance.
390
  sp_testimonial_free();
391
- }
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
11
  */
12
 
13
  if ( ! defined( 'ABSPATH' ) ) {
14
+ exit; // Exit if accessed directly.
15
  }
16
 
17
  /**
27
  *
28
  * @var string
29
  */
30
+ public $version = '2.1.2';
31
 
32
  /**
33
  * @var SP_TFREE_Testimonial $shortcode
71
  * SP_Testimonial_FREE constructor.
72
  */
73
  function __construct() {
74
+ // Define constants.
75
  $this->define_constants();
76
 
77
+ // Required class file include.
78
  spl_autoload_register( array( $this, 'autoload' ) );
79
 
80
+ // Include required files.
81
  $this->includes();
82
 
83
+ // instantiate classes.
84
  $this->instantiate();
85
 
86
+ // Initialize the filter hooks.
87
  $this->init_filters();
88
 
89
+ // Initialize the action hooks.
90
  $this->init_actions();
91
  }
92
 
98
  function init_filters() {
99
  add_filter( 'plugin_action_links', array( $this, 'add_plugin_action_links' ), 10, 2 );
100
  add_filter( 'manage_sp_tfree_shortcodes_posts_columns', array( $this, 'add_shortcode_column' ) );
101
+ add_filter( 'plugin_row_meta', array( $this, 'after_testimonial_free_row_meta' ), 10, 4 );
102
  add_filter( 'manage_spt_testimonial_posts_columns', array( $this, 'add_testimonial_column' ) );
103
  }
104
 
111
  add_action( 'plugins_loaded', array( $this, 'load_text_domain' ) );
112
  add_action( 'manage_sp_tfree_shortcodes_posts_custom_column', array( $this, 'add_shortcode_form' ), 10, 2 );
113
  add_action( 'manage_spt_testimonial_posts_custom_column', array( $this, 'add_testimonial_extra_column' ), 10, 2 );
114
+ add_action( 'activated_plugin', array( $this, 'redirect_help_page' ) );
115
  }
116
 
117
  /**
223
  }
224
 
225
  /**
226
+ * page router instantiate.
227
  *
228
  * @since 2.0
229
  */
309
 
310
  case 'rating':
311
  $testimonial_data = get_post_meta( $post_id, 'sp_tpro_meta_options', true );
312
+ if ( isset( $testimonial_data['tpro_rating'] ) ) {
313
  $rating_star = $testimonial_data['tpro_rating'];
314
  $fill_star = '<i style="color: #f3bb00;" class="fa fa-star"></i>';
315
  $empty_star = '<i class="fa fa-star"></i>';
338
  case 'image':
339
  add_image_size( 'sp_tfree_client_small_img', 50, 50, true );
340
  $testimonial_client_image = get_the_post_thumbnail( get_the_ID(), 'sp_tfree_client_small_img' );
341
+ if ( $testimonial_client_image !== '' ) {
342
  echo $testimonial_client_image;
343
+ } else {
344
  echo '<span aria-hidden="true">—</span>';
345
  }
346
  break;
348
  break;
349
  case 'name':
350
  $testimonial_data = get_post_meta( $post_id, 'sp_tpro_meta_options', true );
351
+ if ( isset( $testimonial_data['tpro_name'] ) ) {
352
  $testimonial_client_name = $testimonial_data['tpro_name'];
353
  if ( $testimonial_client_name !== '' ) {
354
  echo $testimonial_client_name;
386
  }
387
 
388
  if ( ! in_array( 'testimonial-pro/testimonial-pro.php', apply_filters( 'active_plugins', get_option( 'active_plugins' ) ) ) ) {
389
+ // sp_testimonial_free instance.
390
  sp_testimonial_free();
391
+ }