Version Description
Download this release
Release Info
Developer | giucu91 |
Plugin | Strong Testimonials |
Version | 2.40.4 |
Comparing to | |
See all releases |
Code changes from version 2.40.3 to 2.40.4
- changelog.txt +5 -3
- includes/class-strong-view-display.php +1 -1
- includes/class-strong-view.php +6 -6
- includes/functions-template.php +10 -4
- readme.txt +1 -1
- strong-testimonials.php +2 -2
- templates/bold/content.php +2 -2
- templates/default/content.php +3 -3
- templates/modern/content.php +3 -3
- templates/simple/content.php +3 -3
- templates/small-widget/content.php +3 -3
- templates/unstyled/content.php +3 -3
changelog.txt
CHANGED
@@ -1,7 +1,11 @@
|
|
|
|
|
|
|
|
|
|
|
|
1 |
= 2.40.3 - Apr. 14, 2020 =
|
2 |
* Fixed fatal error on testimonials order.
|
3 |
|
4 |
-
|
5 |
= 2.40.2 - Apr. 13, 2020 =
|
6 |
* Improved star rating display
|
7 |
* Added another attribute to average rating shortcode
|
@@ -18,11 +22,9 @@
|
|
18 |
* Added functionality to prevent license inspection
|
19 |
* Added extra filter `wpmtst_views_actions` in admin/class-strong-view-list-table.php on line 132
|
20 |
|
21 |
-
|
22 |
= 2.40.1 - Jan. 25, 2020 =
|
23 |
* improved data sanitization
|
24 |
|
25 |
-
|
26 |
= 2.40.0 - Oct. 16, 2019 =
|
27 |
* improved compatibility with Strong Testimonials: Importer extension
|
28 |
|
1 |
+
= 2.40.4 - Apr. 16, 2020 =
|
2 |
+
* Added the old classes back to keep functionality with users custom css
|
3 |
+
* Fixed title display
|
4 |
+
* Adressed an issue regarding the company name field
|
5 |
+
|
6 |
= 2.40.3 - Apr. 14, 2020 =
|
7 |
* Fixed fatal error on testimonials order.
|
8 |
|
|
|
9 |
= 2.40.2 - Apr. 13, 2020 =
|
10 |
* Improved star rating display
|
11 |
* Added another attribute to average rating shortcode
|
22 |
* Added functionality to prevent license inspection
|
23 |
* Added extra filter `wpmtst_views_actions` in admin/class-strong-view-list-table.php on line 132
|
24 |
|
|
|
25 |
= 2.40.1 - Jan. 25, 2020 =
|
26 |
* improved data sanitization
|
27 |
|
|
|
28 |
= 2.40.0 - Oct. 16, 2019 =
|
29 |
* improved compatibility with Strong Testimonials: Importer extension
|
30 |
|
includes/class-strong-view-display.php
CHANGED
@@ -306,7 +306,7 @@ class Strong_View_Display extends Strong_View {
|
|
306 |
|
307 |
$content_class_list = array();
|
308 |
|
309 |
-
$post_class_list = array( 'wpmtst-testimonial' );
|
310 |
|
311 |
if ( 'excerpt' == $this->atts['content'] ) {
|
312 |
$post_class_list[] = 'excerpt';
|
306 |
|
307 |
$content_class_list = array();
|
308 |
|
309 |
+
$post_class_list = array( 'wpmtst-testimonial testimonial' );
|
310 |
|
311 |
if ( 'excerpt' == $this->atts['content'] ) {
|
312 |
$post_class_list[] = 'excerpt';
|
includes/class-strong-view.php
CHANGED
@@ -365,7 +365,7 @@ class Strong_View {
|
|
365 |
$class = str_replace( ':content', '', $template_name );
|
366 |
$class = str_replace( ':', '-', $class );
|
367 |
$class = str_replace( '-form-form', '-form', $class );
|
368 |
-
$class = 'wpmtst-' . $class;
|
369 |
$class_list = array( $class );
|
370 |
|
371 |
$template_object = WPMST()->templates->get_template_by_name( $template_name );
|
@@ -448,11 +448,11 @@ class Strong_View {
|
|
448 |
}
|
449 |
else {
|
450 |
wp_add_inline_style( $handle,
|
451 |
-
"$view_el .wpmtst-testimonial-heading, " .
|
452 |
-
"$view_el .wpmtst-testimonial-content p, " .
|
453 |
-
"$view_el .wpmtst-testimonial-content a.readmore, " .
|
454 |
-
"$view_el .wpmtst-testimonial-client div, " .
|
455 |
-
"$view_el .wpmtst-testimonial-client a { color: $c1; }" );
|
456 |
}
|
457 |
}
|
458 |
}
|
365 |
$class = str_replace( ':content', '', $template_name );
|
366 |
$class = str_replace( ':', '-', $class );
|
367 |
$class = str_replace( '-form-form', '-form', $class );
|
368 |
+
$class = 'wpmtst-' . $class . ' strong-' . $class;
|
369 |
$class_list = array( $class );
|
370 |
|
371 |
$template_object = WPMST()->templates->get_template_by_name( $template_name );
|
448 |
}
|
449 |
else {
|
450 |
wp_add_inline_style( $handle,
|
451 |
+
"$view_el .wpmtst-testimonial-heading, testimonial-heading " .
|
452 |
+
"$view_el .wpmtst-testimonial-content p, testimonial-content p " .
|
453 |
+
"$view_el .wpmtst-testimonial-content a.readmore, testimonial-content a.readmore " .
|
454 |
+
"$view_el .wpmtst-testimonial-client div, testimonial-client div " .
|
455 |
+
"$view_el .wpmtst-testimonial-client a, testimonial-client a { color: $c1; }" );
|
456 |
}
|
457 |
}
|
458 |
}
|
includes/functions-template.php
CHANGED
@@ -32,8 +32,13 @@ function strong_testimonials_view( $id = null ) {
|
|
32 |
* @param string $after
|
33 |
*/
|
34 |
function wpmtst_the_title( $before = '', $after = '' ) {
|
|
|
35 |
$title = get_the_title();
|
36 |
-
|
|
|
|
|
|
|
|
|
37 |
|
38 |
if ( WPMST()->atts( 'title' ) && $title ) {
|
39 |
|
@@ -241,7 +246,7 @@ add_filter( 'the_content_more_link', 'wpmtst_remove_more_link_scroll' );
|
|
241 |
* @param string $before
|
242 |
* @param string $after
|
243 |
*/
|
244 |
-
function wpmtst_the_thumbnail( $size = null, $before = '<div class="wpmtst-testimonial-image">', $after = '</div>' ) {
|
245 |
if ( ! WPMST()->atts( 'thumbnail' ) ) {
|
246 |
return;
|
247 |
}
|
@@ -312,6 +317,7 @@ function wpmtst_the_custom_field( $field ) {
|
|
312 |
|
313 |
$output = '';
|
314 |
$field_name = $field['field'];
|
|
|
315 |
if ( isset( $custom_fields[ $field_name ] ) ) {
|
316 |
$field['prop'] = $custom_fields[ $field_name ];
|
317 |
} else {
|
@@ -459,9 +465,9 @@ function wpmtst_the_custom_field( $field ) {
|
|
459 |
|
460 |
if ( $output ) {
|
461 |
if ( isset( $field['before'] ) && $field['before'] ) {
|
462 |
-
$output = '<span class="wpmtst-testimonial-field-before">' . $field['before'] . '</span>' . $output;
|
463 |
}
|
464 |
-
$output = '<div class="wpmtst-testimonial-field ' . $field['class'] . '">' . $output . '</div>';
|
465 |
}
|
466 |
|
467 |
return $output;
|
32 |
* @param string $after
|
33 |
*/
|
34 |
function wpmtst_the_title( $before = '', $after = '' ) {
|
35 |
+
|
36 |
$title = get_the_title();
|
37 |
+
$options = get_option( 'wpmtst_options' );
|
38 |
+
|
39 |
+
if( 0 == WPMST()->atts()['title'] ) {
|
40 |
+
return;
|
41 |
+
}
|
42 |
|
43 |
if ( WPMST()->atts( 'title' ) && $title ) {
|
44 |
|
246 |
* @param string $before
|
247 |
* @param string $after
|
248 |
*/
|
249 |
+
function wpmtst_the_thumbnail( $size = null, $before = '<div class="wpmtst-testimonial-image testimonial-image">', $after = '</div>' ) {
|
250 |
if ( ! WPMST()->atts( 'thumbnail' ) ) {
|
251 |
return;
|
252 |
}
|
317 |
|
318 |
$output = '';
|
319 |
$field_name = $field['field'];
|
320 |
+
$field['class'] = $field['class'] . ' wpmtst-' . $field['class'];
|
321 |
if ( isset( $custom_fields[ $field_name ] ) ) {
|
322 |
$field['prop'] = $custom_fields[ $field_name ];
|
323 |
} else {
|
465 |
|
466 |
if ( $output ) {
|
467 |
if ( isset( $field['before'] ) && $field['before'] ) {
|
468 |
+
$output = '<span class="wpmtst-testimonial-field-before testimonial-field-before">' . $field['before'] . '</span>' . $output;
|
469 |
}
|
470 |
+
$output = '<div class="wpmtst-testimonial-field testimonial-field ' . $field['class'] . '">' . $output . '</div>';
|
471 |
}
|
472 |
|
473 |
return $output;
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Tags: testimonials, testimonial slider, testimonial form, star ratings
|
|
4 |
Requires at least: 4.6
|
5 |
Requires PHP: 5.6
|
6 |
Tested up to: 5.2
|
7 |
-
Stable tag: 2.40.
|
8 |
License: GPLv3 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
4 |
Requires at least: 4.6
|
5 |
Requires PHP: 5.6
|
6 |
Tested up to: 5.2
|
7 |
+
Stable tag: 2.40.4
|
8 |
License: GPLv3 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-3.0.html
|
10 |
|
strong-testimonials.php
CHANGED
@@ -5,7 +5,7 @@
|
|
5 |
* Description: Collect and display your testimonials or reviews.
|
6 |
* Author: MachoThemes
|
7 |
* Author URI: https://www.machothemes.com/
|
8 |
-
* Version: 2.40.
|
9 |
* Text Domain: strong-testimonials
|
10 |
* Domain Path: /languages
|
11 |
* Requires: 4.6 or higher
|
@@ -44,7 +44,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
44 |
exit;
|
45 |
}
|
46 |
|
47 |
-
define( 'WPMTST_VERSION', '2.40.
|
48 |
define( 'WPMTST_PLUGIN', plugin_basename( __FILE__ ) ); // strong-testimonials/strong-testimonials.php
|
49 |
define( 'WPMTST', dirname( WPMTST_PLUGIN ) ); // strong-testimonials
|
50 |
defined( 'WPMTST_STORE_URL' ) || define( 'WPMTST_STORE_URL', 'https://strongtestimonials.com' );
|
5 |
* Description: Collect and display your testimonials or reviews.
|
6 |
* Author: MachoThemes
|
7 |
* Author URI: https://www.machothemes.com/
|
8 |
+
* Version: 2.40.4
|
9 |
* Text Domain: strong-testimonials
|
10 |
* Domain Path: /languages
|
11 |
* Requires: 4.6 or higher
|
44 |
exit;
|
45 |
}
|
46 |
|
47 |
+
define( 'WPMTST_VERSION', '2.40.4' );
|
48 |
define( 'WPMTST_PLUGIN', plugin_basename( __FILE__ ) ); // strong-testimonials/strong-testimonials.php
|
49 |
define( 'WPMTST', dirname( WPMTST_PLUGIN ) ); // strong-testimonials
|
50 |
defined( 'WPMTST_STORE_URL' ) || define( 'WPMTST_STORE_URL', 'https://strongtestimonials.com' );
|
templates/bold/content.php
CHANGED
@@ -23,10 +23,10 @@ do_action( 'wpmtst_before_view' );
|
|
23 |
|
24 |
<div class="<?php wpmtst_post_class($atts); ?>">
|
25 |
|
26 |
-
<div class="wpmtst-testimonial-inner">
|
27 |
<?php do_action( 'wpmtst_before_testimonial' ); ?>
|
28 |
|
29 |
-
<div <?php echo ('slideshow' == $atts['mode']) ? 'data-infinite-loop="'.esc_attr($continuous_slide).'"' : ''; ?> class="wpmtst-testimonial-content">
|
30 |
|
31 |
<?php wpmtst_the_thumbnail(); ?>
|
32 |
<?php wpmtst_the_content(); ?>
|
23 |
|
24 |
<div class="<?php wpmtst_post_class($atts); ?>">
|
25 |
|
26 |
+
<div class="wpmtst-testimonial-inner testimonial-inner">
|
27 |
<?php do_action( 'wpmtst_before_testimonial' ); ?>
|
28 |
|
29 |
+
<div <?php echo ('slideshow' == $atts['mode']) ? 'data-infinite-loop="'.esc_attr($continuous_slide).'"' : ''; ?> class="wpmtst-testimonial-content testimonial-content">
|
30 |
|
31 |
<?php wpmtst_the_thumbnail(); ?>
|
32 |
<?php wpmtst_the_content(); ?>
|
templates/default/content.php
CHANGED
@@ -19,12 +19,12 @@ do_action( 'wpmtst_before_view' );
|
|
19 |
|
20 |
<?php while ( $query->have_posts() ) : $query->the_post(); ?>
|
21 |
<div class="<?php wpmtst_post_class($atts); ?>">
|
22 |
-
<div class="wpmtst-testimonial-inner">
|
23 |
<?php do_action( 'wpmtst_before_testimonial' ); ?>
|
24 |
|
25 |
-
<?php wpmtst_the_title( '<h3 class="wpmtst-testimonial-heading">', '</h3>' ); ?>
|
26 |
|
27 |
-
<div <?php echo ('slideshow' == $atts['mode']) ? 'data-infinite-loop="'.esc_attr($continuous_slide).'"' : ''; ?> class="wpmtst-testimonial-content">
|
28 |
|
29 |
<?php wpmtst_the_thumbnail(); ?>
|
30 |
<div class="maybe-clear"></div>
|
19 |
|
20 |
<?php while ( $query->have_posts() ) : $query->the_post(); ?>
|
21 |
<div class="<?php wpmtst_post_class($atts); ?>">
|
22 |
+
<div class="wpmtst-testimonial-inner testimonial-inner">
|
23 |
<?php do_action( 'wpmtst_before_testimonial' ); ?>
|
24 |
|
25 |
+
<?php wpmtst_the_title( '<h3 class="wpmtst-testimonial-heading testimonial-heading">', '</h3>' ); ?>
|
26 |
|
27 |
+
<div <?php echo ('slideshow' == $atts['mode']) ? 'data-infinite-loop="'.esc_attr($continuous_slide).'"' : ''; ?> class="wpmtst-testimonial-content testimonial-content">
|
28 |
|
29 |
<?php wpmtst_the_thumbnail(); ?>
|
30 |
<div class="maybe-clear"></div>
|
templates/modern/content.php
CHANGED
@@ -17,11 +17,11 @@ do_action( 'wpmtst_before_view' );
|
|
17 |
|
18 |
<?php while ( $query->have_posts() ) : $query->the_post(); ?>
|
19 |
<div class="<?php wpmtst_post_class($atts); ?>">
|
20 |
-
<div class="wpmtst-testimonial-inner">
|
21 |
<?php do_action( 'wpmtst_before_testimonial' ); ?>
|
22 |
|
23 |
-
<div <?php echo ('slideshow' == $atts['mode']) ? 'data-infinite-loop="'.esc_attr($continuous_slide).'"' : ''; ?> class="wpmtst-testimonial-content">
|
24 |
-
<?php wpmtst_the_title( '<h3 class="testimonial-heading">', '</h3>' ); ?>
|
25 |
|
26 |
<?php wpmtst_the_content(); ?>
|
27 |
<?php do_action( 'wpmtst_after_testimonial_content' ); ?>
|
17 |
|
18 |
<?php while ( $query->have_posts() ) : $query->the_post(); ?>
|
19 |
<div class="<?php wpmtst_post_class($atts); ?>">
|
20 |
+
<div class="wpmtst-testimonial-inner testimonial-inner">
|
21 |
<?php do_action( 'wpmtst_before_testimonial' ); ?>
|
22 |
|
23 |
+
<div <?php echo ('slideshow' == $atts['mode']) ? 'data-infinite-loop="'.esc_attr($continuous_slide).'"' : ''; ?> class="wpmtst-testimonial-content testimonial-content">
|
24 |
+
<?php wpmtst_the_title( '<h3 class="wpmtst-testimonial-heading testimonial-heading">', '</h3>' ); ?>
|
25 |
|
26 |
<?php wpmtst_the_content(); ?>
|
27 |
<?php do_action( 'wpmtst_after_testimonial_content' ); ?>
|
templates/simple/content.php
CHANGED
@@ -18,12 +18,12 @@ do_action( 'wpmtst_before_view' );
|
|
18 |
|
19 |
<?php while ( $query->have_posts() ) : $query->the_post(); ?>
|
20 |
<div class="<?php wpmtst_post_class($atts); ?>">
|
21 |
-
<div class="wpmtst-testimonial-inner">
|
22 |
<?php do_action( 'wpmtst_before_testimonial' ); ?>
|
23 |
|
24 |
-
<?php wpmtst_the_title( '<h3 class="wpmtst-testimonial-heading">', '</h3>' ); ?>
|
25 |
|
26 |
-
<div <?php echo ('slideshow' == $atts['mode']) ? 'data-infinite-loop="'.esc_attr($continuous_slide).'"' : ''; ?> class="testimonial-content">
|
27 |
|
28 |
<?php wpmtst_the_thumbnail(); ?>
|
29 |
<div class="maybe-clear"></div>
|
18 |
|
19 |
<?php while ( $query->have_posts() ) : $query->the_post(); ?>
|
20 |
<div class="<?php wpmtst_post_class($atts); ?>">
|
21 |
+
<div class="wpmtst-testimonial-inner testimonial-inner">
|
22 |
<?php do_action( 'wpmtst_before_testimonial' ); ?>
|
23 |
|
24 |
+
<?php wpmtst_the_title( '<h3 class="wpmtst-testimonial-heading testimonial-heading">', '</h3>' ); ?>
|
25 |
|
26 |
+
<div <?php echo ('slideshow' == $atts['mode']) ? 'data-infinite-loop="'.esc_attr($continuous_slide).'"' : ''; ?> class="wpmtst-testimonial-content testimonial-content">
|
27 |
|
28 |
<?php wpmtst_the_thumbnail(); ?>
|
29 |
<div class="maybe-clear"></div>
|
templates/small-widget/content.php
CHANGED
@@ -19,12 +19,12 @@ do_action( 'wpmtst_before_view' );
|
|
19 |
|
20 |
<?php while ( $query->have_posts() ) : $query->the_post(); ?>
|
21 |
<div class="<?php wpmtst_post_class($atts); ?>">
|
22 |
-
<div class="wpmtst-testimonial-inner">
|
23 |
<?php do_action( 'wpmtst_before_testimonial' ); ?>
|
24 |
|
25 |
-
<?php wpmtst_the_title( '<h5 class="wpmtst-testimonial-heading">', '</h5>' ); ?>
|
26 |
|
27 |
-
<div <?php echo ('slideshow' == $atts['mode']) ? 'data-infinite-loop="'.esc_attr($continuous_slide).'"' : ''; ?> class="wpmtst-testimonial-content">
|
28 |
<?php wpmtst_the_thumbnail(); ?>
|
29 |
<div class="maybe-clear"></div>
|
30 |
<?php wpmtst_the_content(); ?>
|
19 |
|
20 |
<?php while ( $query->have_posts() ) : $query->the_post(); ?>
|
21 |
<div class="<?php wpmtst_post_class($atts); ?>">
|
22 |
+
<div class="wpmtst-testimonial-inner testimonial-inner">
|
23 |
<?php do_action( 'wpmtst_before_testimonial' ); ?>
|
24 |
|
25 |
+
<?php wpmtst_the_title( '<h5 class="wpmtst-testimonial-heading testimonial-heading">', '</h5>' ); ?>
|
26 |
|
27 |
+
<div <?php echo ('slideshow' == $atts['mode']) ? 'data-infinite-loop="'.esc_attr($continuous_slide).'"' : ''; ?> class="wpmtst-testimonial-content testimonial-content">
|
28 |
<?php wpmtst_the_thumbnail(); ?>
|
29 |
<div class="maybe-clear"></div>
|
30 |
<?php wpmtst_the_content(); ?>
|
templates/unstyled/content.php
CHANGED
@@ -18,12 +18,12 @@ do_action( 'wpmtst_before_view' );
|
|
18 |
|
19 |
<?php while ( $query->have_posts() ) : $query->the_post(); ?>
|
20 |
<div class="<?php wpmtst_post_class($atts); ?>">
|
21 |
-
<div class="wpmtst-testimonial-inner">
|
22 |
<?php do_action( 'wpmtst_before_testimonial' ); ?>
|
23 |
|
24 |
-
<?php wpmtst_the_title( '<h3 class="wpmtst-testimonial-heading">', '</h3>' ); ?>
|
25 |
|
26 |
-
<div <?php echo ('slideshow' == $atts['mode']) ? 'data-infinite-loop="'.esc_attr($continuous_slide).'"' : ''; ?> class="wpmtst-testimonial-content">
|
27 |
|
28 |
<?php wpmtst_the_thumbnail(); ?>
|
29 |
<div class="maybe-clear"></div>
|
18 |
|
19 |
<?php while ( $query->have_posts() ) : $query->the_post(); ?>
|
20 |
<div class="<?php wpmtst_post_class($atts); ?>">
|
21 |
+
<div class="wpmtst-testimonial-inner testimonial-inner">
|
22 |
<?php do_action( 'wpmtst_before_testimonial' ); ?>
|
23 |
|
24 |
+
<?php wpmtst_the_title( '<h3 class="wpmtst-testimonial-heading testimonial-heading">', '</h3>' ); ?>
|
25 |
|
26 |
+
<div <?php echo ('slideshow' == $atts['mode']) ? 'data-infinite-loop="'.esc_attr($continuous_slide).'"' : ''; ?> class="wpmtst-testimonial-content testimonial-content">
|
27 |
|
28 |
<?php wpmtst_the_thumbnail(); ?>
|
29 |
<div class="maybe-clear"></div>
|