Version Description
- Fix: Illegal string warning.
- Fix: Google crawling issue.
Download this release
Release Info
Developer | rubel_miah |
Plugin | Real Testimonials |
Version | 2.1 |
Comparing to | |
See all releases |
Code changes from version 2.0 to 2.1
- class/testimonial.php +70 -68
- public/views/deprecated-shortcodes.php +1 -7
- readme.txt +45 -1
- testimonial-free.php +2 -2
class/testimonial.php
CHANGED
@@ -1,81 +1,83 @@
|
|
1 |
<?php
|
2 |
|
3 |
if ( ! defined( 'ABSPATH' ) ) {
|
4 |
-
|
5 |
}
|
6 |
|
7 |
class SP_TFREE_Testimonial {
|
8 |
|
9 |
-
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
14 |
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
|
24 |
-
|
25 |
-
|
26 |
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
|
|
|
|
80 |
|
81 |
}
|
1 |
<?php
|
2 |
|
3 |
if ( ! defined( 'ABSPATH' ) ) {
|
4 |
+
exit; // Exit if accessed directly
|
5 |
}
|
6 |
|
7 |
class SP_TFREE_Testimonial {
|
8 |
|
9 |
+
/**
|
10 |
+
* @var
|
11 |
+
* @since 2.0
|
12 |
+
*/
|
13 |
+
private static $_instance;
|
14 |
|
15 |
+
/**
|
16 |
+
* @return SP_TFREE_Testimonial
|
17 |
+
* @since 2.0
|
18 |
+
*/
|
19 |
+
public static function getInstance() {
|
20 |
+
if ( ! self::$_instance ) {
|
21 |
+
self::$_instance = new self();
|
22 |
+
}
|
23 |
|
24 |
+
return self::$_instance;
|
25 |
+
}
|
26 |
|
27 |
+
/**
|
28 |
+
* SP_TFREE_Testimonial constructor.
|
29 |
+
* @since 1.0
|
30 |
+
*/
|
31 |
+
public function __construct() {
|
32 |
+
add_filter( 'init', array( $this, 'register_post_type' ) );
|
33 |
+
}
|
34 |
|
35 |
+
/**
|
36 |
+
* Register post type
|
37 |
+
* @since 1.0
|
38 |
+
*/
|
39 |
+
function register_post_type() {
|
40 |
+
register_post_type( 'spt_testimonial', array(
|
41 |
+
'label' => __( 'Testimonial', 'testimonial-free' ),
|
42 |
+
'description' => __( 'Testimonial custom post type.', 'testimonial-free' ),
|
43 |
+
'taxonomies' => array(),
|
44 |
+
'public' => false,
|
45 |
+
'has_archive' => false,
|
46 |
+
'publicaly_queryable' => false,
|
47 |
+
'query_var' => false,
|
48 |
+
'show_ui' => true,
|
49 |
+
'show_in_menu' => true,
|
50 |
+
'menu_icon' => SP_TFREE_URL . '/admin/assets/images/icon-32.png',
|
51 |
+
'show_in_nav_menus' => true,
|
52 |
+
'show_in_admin_bar' => true,
|
53 |
+
'hierarchical' => false,
|
54 |
+
'menu_position' => 20,
|
55 |
+
'supports' => array(
|
56 |
+
'title',
|
57 |
+
'editor',
|
58 |
+
'thumbnail'
|
59 |
+
),
|
60 |
+
'capability_type' => 'post',
|
61 |
+
'labels' => array(
|
62 |
+
'name' => __( 'Testimonials', 'testimonial-free' ),
|
63 |
+
'singular_name' => __( 'Testimonial', 'testimonial-free' ),
|
64 |
+
'menu_name' => __( 'Testimonial', 'testimonial-free' ),
|
65 |
+
'all_items' => __( 'Testimonials', 'testimonial-free' ),
|
66 |
+
'add_new' => __( 'Add Testimonial', 'testimonial-free' ),
|
67 |
+
'add_new_item' => __( 'Add Testimonial', 'testimonial-free' ),
|
68 |
+
'edit' => __( 'Edit', 'testimonial-free' ),
|
69 |
+
'edit_item' => __( 'Edit Testimonial', 'testimonial-free' ),
|
70 |
+
'new_item' => __( 'New Testimonial', 'testimonial-free' ),
|
71 |
+
'search_items' => __( 'Search Testimonials', 'testimonial-free' ),
|
72 |
+
'not_found' => __( 'No Testimonials found', 'testimonial-free' ),
|
73 |
+
'not_found_in_trash' => __( 'No Testimonials found in Trash', 'testimonial-free' ),
|
74 |
+
'parent' => __( 'Parent Testimonials', 'testimonial-free' ),
|
75 |
+
'featured_image' => __( 'Featured Image for Testimonial', 'testimonial-free' ),
|
76 |
+
'set_featured_image' => __( 'Set Testimonial Thumbnail', 'testimonial-free' ),
|
77 |
+
'remove_featured_image' => __( 'Remove image', 'testimonial-free' ),
|
78 |
+
'use_featured_image' => __( 'Use as image', 'testimonial-free' ),
|
79 |
+
)
|
80 |
+
) );
|
81 |
+
}
|
82 |
|
83 |
}
|
public/views/deprecated-shortcodes.php
CHANGED
@@ -91,7 +91,7 @@ function sp_testimonial_free_shortcode( $atts ) {
|
|
91 |
$outline .= get_the_title();
|
92 |
}
|
93 |
$outline .= '</h2>';
|
94 |
-
if (
|
95 |
$outline .= '<h6 class="tf-client-designation">';
|
96 |
if(isset($tf_designation) && $tf_designation !== ''){
|
97 |
$outline .= $tf_designation;
|
@@ -102,22 +102,16 @@ function sp_testimonial_free_shortcode( $atts ) {
|
|
102 |
$outline .= '</h6>';
|
103 |
}
|
104 |
|
105 |
-
//var_dump($testimonial_data['tpro_designation']);
|
106 |
-
|
107 |
-
|
108 |
$outline .= '</div>'; //testimonial free
|
109 |
|
110 |
-
|
111 |
endwhile;
|
112 |
} else {
|
113 |
$outline .= '<h2 class="sp-not-found-any-testimonial">' . esc_html__( 'No testimonials found', 'testimonial-free' ) . '</h2>';
|
114 |
}
|
115 |
$outline .= '</div>';
|
116 |
|
117 |
-
|
118 |
wp_reset_query();
|
119 |
|
120 |
-
|
121 |
return $outline;
|
122 |
|
123 |
}
|
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;
|
102 |
$outline .= '</h6>';
|
103 |
}
|
104 |
|
|
|
|
|
|
|
105 |
$outline .= '</div>'; //testimonial free
|
106 |
|
|
|
107 |
endwhile;
|
108 |
} else {
|
109 |
$outline .= '<h2 class="sp-not-found-any-testimonial">' . esc_html__( 'No testimonials found', 'testimonial-free' ) . '</h2>';
|
110 |
}
|
111 |
$outline .= '</div>';
|
112 |
|
|
|
113 |
wp_reset_query();
|
114 |
|
|
|
115 |
return $outline;
|
116 |
|
117 |
}
|
readme.txt
CHANGED
@@ -1,4 +1,4 @@
|
|
1 |
-
=== Testimonial
|
2 |
Contributors: shapedplugin
|
3 |
Donate link: http://shapedplugin.com/donate
|
4 |
Tags: free testimonial, testimonial, testimonials, customer testimonial, customer testimonials, customer review, customer reviews, customers reviews, client testimonial, testimonial feed, testimonial widget, testimonials client, customer, quote, quotes, recommendation, reference, review, reviews, testimonial slider, slider, testimonial carousel, carousel, customer comments, comments, praise, rotator, rotators, shortcode, sidebar, shortcode plugin, testimonial shortcode, easy testimonial, best testimonial, advanced shortcode testimonial plugin, advanced testimonial showcase plugin, pro testimonial, premium testimonial plugin, testimony, witness, case studies, clients, flat design, grid, responsive, reviews, rich snippets, star rating, grid style testimonial, list style testimonial, rating, showcase, testimonial showcase, custom testimonial, easy testimonial slider, feedback, feedback slider, ratings, Responsive testimonial slider, simple testimonial, add testimonials, add testimonials widget, custom post type, display testimonials, multiple testimonials, unlimited testimonials, testimonials plugin, testimonials shortcode, testimonials widget, translation ready, user comments, widgets, best, content slider, responsive slider, sliders, super, Testimonial Rotator, testimonial slider, Testimonials Manager, top, testimonial layouts, testimonial shortcode, shapedplugin, 5 star testimonials
|
@@ -194,7 +194,47 @@ The Testimonial Plugin works great out of the box and super handy. You may expec
|
|
194 |
* 100% Money Back Guarantee.
|
195 |
|
196 |
|
|
|
197 |
[youtube https://www.youtube.com/watch?v=OA7LgaZHwIY]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
198 |
|
199 |
|
200 |
= NOTE =
|
@@ -310,6 +350,10 @@ Thank you!
|
|
310 |
|
311 |
== Changelog ==
|
312 |
|
|
|
|
|
|
|
|
|
313 |
= 2.0 =
|
314 |
* Shortcode Generator
|
315 |
* Star Rating
|
1 |
+
=== Testimonial - Best Testimonials Showcase Plugin ===
|
2 |
Contributors: shapedplugin
|
3 |
Donate link: http://shapedplugin.com/donate
|
4 |
Tags: free testimonial, testimonial, testimonials, customer testimonial, customer testimonials, customer review, customer reviews, customers reviews, client testimonial, testimonial feed, testimonial widget, testimonials client, customer, quote, quotes, recommendation, reference, review, reviews, testimonial slider, slider, testimonial carousel, carousel, customer comments, comments, praise, rotator, rotators, shortcode, sidebar, shortcode plugin, testimonial shortcode, easy testimonial, best testimonial, advanced shortcode testimonial plugin, advanced testimonial showcase plugin, pro testimonial, premium testimonial plugin, testimony, witness, case studies, clients, flat design, grid, responsive, reviews, rich snippets, star rating, grid style testimonial, list style testimonial, rating, showcase, testimonial showcase, custom testimonial, easy testimonial slider, feedback, feedback slider, ratings, Responsive testimonial slider, simple testimonial, add testimonials, add testimonials widget, custom post type, display testimonials, multiple testimonials, unlimited testimonials, testimonials plugin, testimonials shortcode, testimonials widget, translation ready, user comments, widgets, best, content slider, responsive slider, sliders, super, Testimonial Rotator, testimonial slider, Testimonials Manager, top, testimonial layouts, testimonial shortcode, shapedplugin, 5 star testimonials
|
194 |
* 100% Money Back Guarantee.
|
195 |
|
196 |
|
197 |
+
=== Testimonial Pro - Admin Panel Overview ===
|
198 |
[youtube https://www.youtube.com/watch?v=OA7LgaZHwIY]
|
199 |
+
|
200 |
+
=== How to Showcase Testimonials with Grid and Masonry ===
|
201 |
+
[youtube https://www.youtube.com/watch?v=0VK7IH0VSrE]
|
202 |
+
|
203 |
+
=== How to Showcase Testimonials Filtering by Categories ===
|
204 |
+
[youtube https://www.youtube.com/watch?v=uuRb-z7zGn0]
|
205 |
+
|
206 |
+
=== How to Showcase Testimonials from Category ===
|
207 |
+
[youtube https://www.youtube.com/watch?v=01pHHAtkhbE]
|
208 |
+
|
209 |
+
=== How to Showcase Specific Testimonials ===
|
210 |
+
[youtube https://www.youtube.com/watch?v=xBTnseFkhTQ]
|
211 |
+
|
212 |
+
=== How to Showcase Video Testimonials ===
|
213 |
+
[youtube https://www.youtube.com/watch?v=5O1qm3jJ6B0]
|
214 |
+
|
215 |
+
=== How to Make Thumbnail Slider for Testimonials ===
|
216 |
+
[youtube https://www.youtube.com/watch?v=PvhVa1D24Fo]
|
217 |
+
|
218 |
+
=== How to Use Google Fonts ===
|
219 |
+
[youtube https://www.youtube.com/watch?v=ZsympxlAKcs]
|
220 |
+
|
221 |
+
=== How to Customize Layouts and Advanced Styling Options ===
|
222 |
+
[youtube https://www.youtube.com/watch?v=2BfRBuozAoc]
|
223 |
+
|
224 |
+
=== How to Show and Customize Front-end Submission Form ===
|
225 |
+
[youtube https://www.youtube.com/watch?v=-duzvVmhg0A]
|
226 |
+
|
227 |
+
=== How to Collect New Testimonials with Front-end Submission Form ===
|
228 |
+
[youtube https://www.youtube.com/watch?v=rjybQAXRx9k]
|
229 |
+
|
230 |
+
=== How to Customize Testimonial Meta Fields ===
|
231 |
+
[youtube https://www.youtube.com/watch?v=HH6kVT9gXhA]
|
232 |
+
|
233 |
+
=== How to Activate License Keys ===
|
234 |
+
[youtube https://www.youtube.com/watch?v=nlRy7jl8hxE]
|
235 |
+
|
236 |
+
=== How to Duplicate or Clone Testimonial Showcase ===
|
237 |
+
[youtube https://www.youtube.com/watch?v=iQGjsxfGxL8]
|
238 |
|
239 |
|
240 |
= NOTE =
|
350 |
|
351 |
== Changelog ==
|
352 |
|
353 |
+
= 2.1 =
|
354 |
+
* Fix: Illegal string warning.
|
355 |
+
* Fix: Google crawling issue.
|
356 |
+
|
357 |
= 2.0 =
|
358 |
* Shortcode Generator
|
359 |
* Star Rating
|
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.
|
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.
|
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
|
7 |
* Author: ShapedPlugin
|
8 |
* Author URI: https://shapedplugin.com/
|
9 |
* Text Domain: testimonial-free
|
27 |
*
|
28 |
* @var string
|
29 |
*/
|
30 |
+
public $version = '2.1';
|
31 |
|
32 |
/**
|
33 |
* @var SP_TFREE_Testimonial $shortcode
|