Version Description
= 2.16.0 =
- Requires PHP 5.3+
= 2.15.0 =
- If upgrading, bxSlider will not be enabled by default. You must enable it in your widget and global settings. CSS customizations must be reviewed to have the
.active
and.display-none
classes removed. The main.testimonials-widget-testimonial
class also need thedisplay: none;
andclear: left;
removed.
= 2.14.0 =
- 60 modifications See Changelog
- CSS wp_register_style and wp_enqueue_style slug changed from 'testimonials-widget' to 'Testimonials_Widget'
- Gravatar image size now based upon Thumbnail size in Media Settings
- Scripts
ksort
removed. Usearray_unshift
in yourtestimonials_widget_testimonials_js
filters instead. - Testimonials > Settings, General tab, option Enable Review Schema? is enabled by default.
= 2.13.6 =
- IE 7 CSS moved to separate file. Include via Testimonials > Settings if needed
= 2.12.0 =
- CSS and JavaScript renaming
-
bottom_text
renamed tobottom-text
-
close_quote
renamed toclose-quote
-
display_none
renamed todisplay-none
-
join_location
renamed tojoin-location
-
join_title
renamed tojoin-title
-
open_quote
renamed toopen-quote
-
testimonialswidget_testimonial
renamed totestimonials-widget-testimonial
-
testimonialswidget_testimonials
renamed totestimonials-widget-testimonials
-
= 2.11.3 =
- Correct filter name
testimonials_widget_next_posts_link
totestimonials_widget_next_posts_link_text
= 2.11.0 =
- CSS class names are simplified. For the most part, other than
testimonialswidget_testimonial
removetestimonialswidget_
from the CSS class name in your CSS customizations.- Ex:
.testimonialswidget_join
becomes.join
- Ex:
.testimonialswidget_author
becomes.author
- Ex:
- Testimonials are now formatted using
blockquote
thanq
for HTML5 compliance. If you needq
tag formatting, enable it at WP Admin > Testimonials > Settings, Compatibility & Reset tab-
cite
is nowdiv.credit
-
= 2.8.0 =
- Deprecated
-
hide_author
nowhide_source
-
- Removed filters
testimonials_widget_options_update
,testimonials_widget_options_form
- Use
testimonials_widget_validate_settings
andtestimonials_widget_settings
instead
- Use
- Renamed variable and related class
widget_text
tobottom_text
= 2.7.3 =
- Quotes are no longer handled via
q
,p:before
, orp:after
CSS. It's handled via.testimonialswidget_testimonial .testimonialswidget_open_quote:before
and.testimonialswidget_testimonial .testimonialswidget_close_quote:after
- This change was made to keep consistency in how quotes were managed and to reduce the number of exception cases. In the end, this is simpler.
= 2.7.0 =
- Quotes with
keep_whitespace=true
aren't applied via CSS.testimonialswidget_testimonial q
tag anymore, but.testimonialswidget_testimonial q p:first-child:before
and.testimonialswidget_testimonial q p:last-child:after
- Widget testimonial
p
tags are no longer CSSdisplay: inline
,display: block
as expected
= 2.4.1 =
- Paging is on by default, except for widgets
= 2.0.0 =
- CSS
- Class
testimonialswidget_company
replacestestimonialswidget_source
- Class
testimonialswidget_source
replacestestimonialswidget_author
- The tighten widget display up, p tags within q are displayed inline.
- Class
- JavaScript
- The JavaScript for rotating testimonials is moved to the footer. As such, your theme requires
wp_footer()
in the footer.
- The JavaScript for rotating testimonials is moved to the footer. As such, your theme requires
- Shortcode options
-
hide_source
replaced byhide_url
-
hide_author
replaced byhide_source
-
- Testimonials
- Migration from the old custom table to new custom post type is automatically done. Import might take a few moments to complete.
- Company, URL and email details are attempted to be identified and placed properly based upon the original author and source fields. The company is "guessed" from the
author
field when there's a ", " or " of " context. If thesource
is an email, it's saved as such. Otherwise, it's assumed to be a URL. - Public testimonials are saved as Published. Non-public testimonials are marked as Private.
- Widget options
- "Show author" and "Show source" options are replaced by "Hide source" and "Hide URL" respectively. There's no backwards compatibility for these changes.
- Default
min-height
is now 250px than 150px.
Download this release
Release Info
Developer | comprock |
Plugin | Testimonials Widget |
Version | 2.16.4 |
Comparing to | |
See all releases |
Code changes from version 2.16.3 to 2.16.4
- CHANGELOG.md +4 -0
- languages/testimonials-widget.pot +5 -5
- lib/aihrus/CHANGELOG.md +1 -0
- lib/aihrus/class-aihrus-common.php +13 -8
- lib/aihrus/class-aihrus-widget.php +6 -7
- readme.txt +1 -1
- testimonials-widget.php +2 -2
CHANGELOG.md
CHANGED
@@ -2,6 +2,10 @@
|
|
2 |
|
3 |
## master
|
4 |
|
|
|
|
|
|
|
|
|
5 |
## 2.16.3
|
6 |
* Check for PHP 5.3
|
7 |
* Move helper methods to Aihrus_Common
|
2 |
|
3 |
## master
|
4 |
|
5 |
+
## 2.16.4
|
6 |
+
* BUGFIX #1 Widget title displays "array" than link
|
7 |
+
* BUGUnreproducible Call to undefined method Testimonials_Widget::clean_string
|
8 |
+
|
9 |
## 2.16.3
|
10 |
* Check for PHP 5.3
|
11 |
* Move helper methods to Aihrus_Common
|
languages/testimonials-widget.pot
CHANGED
@@ -2,9 +2,9 @@
|
|
2 |
# This file is distributed under the same license as the Testimonials package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: Testimonials 2.16.
|
6 |
"Report-Msgid-Bugs-To: http://wordpress.org/tag/testimonials-widget\n"
|
7 |
-
"POT-Creation-Date: 2013-12-05
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
@@ -13,7 +13,7 @@ msgstr ""
|
|
13 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
14 |
|
15 |
#: lib/aihrus/class-aihrus-common.php:50
|
16 |
-
msgid "Plugin \"%1$s\" requires at least PHP %2$s, you're running PHP %4$s. See <a href=\"%3$s\">possible solutions</a>. Once fixed, \"%1$s\" can be activated again
|
17 |
msgstr ""
|
18 |
|
19 |
#: lib/aihrus/class-aihrus-common.php:160
|
@@ -112,11 +112,11 @@ msgstr ""
|
|
112 |
msgid "Required"
|
113 |
msgstr ""
|
114 |
|
115 |
-
#: lib/aihrus/class-aihrus-widget.php:
|
116 |
msgid "Expand/Collapse All Options"
|
117 |
msgstr ""
|
118 |
|
119 |
-
#: lib/aihrus/class-aihrus-widget.php:
|
120 |
msgid "Expand/Collapse"
|
121 |
msgstr ""
|
122 |
|
2 |
# This file is distributed under the same license as the Testimonials package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Testimonials 2.16.4\n"
|
6 |
"Report-Msgid-Bugs-To: http://wordpress.org/tag/testimonials-widget\n"
|
7 |
+
"POT-Creation-Date: 2013-12-05 19:38:20+00:00\n"
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
13 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
14 |
|
15 |
#: lib/aihrus/class-aihrus-common.php:50
|
16 |
+
msgid "Plugin \"%1$s\" requires at least PHP %2$s, you're running PHP %4$s. See <a href=\"%3$s\">possible solutions</a>. Once fixed, \"%1$s\" can be activated again."
|
17 |
msgstr ""
|
18 |
|
19 |
#: lib/aihrus/class-aihrus-common.php:160
|
112 |
msgid "Required"
|
113 |
msgstr ""
|
114 |
|
115 |
+
#: lib/aihrus/class-aihrus-widget.php:140
|
116 |
msgid "Expand/Collapse All Options"
|
117 |
msgstr ""
|
118 |
|
119 |
+
#: lib/aihrus/class-aihrus-widget.php:149
|
120 |
msgid "Expand/Collapse"
|
121 |
msgstr ""
|
122 |
|
lib/aihrus/CHANGELOG.md
CHANGED
@@ -1,6 +1,7 @@
|
|
1 |
# CHANGELOG Aihrus Framework
|
2 |
|
3 |
## master
|
|
|
4 |
* Check for PHP 5.3
|
5 |
* Add TODO
|
6 |
* Add `add_media` post attachment helper
|
1 |
# CHANGELOG Aihrus Framework
|
2 |
|
3 |
## master
|
4 |
+
* Revise create_link parameters
|
5 |
* Check for PHP 5.3
|
6 |
* Add TODO
|
7 |
* Add `add_media` post attachment helper
|
lib/aihrus/class-aihrus-common.php
CHANGED
@@ -47,7 +47,7 @@ if ( ! function_exists( 'af_php_version_check' ) ) {
|
|
47 |
|
48 |
$php_min = basename( AF_PHP_VERSION_MIN );
|
49 |
|
50 |
-
$text = sprintf( __( 'Plugin "%1$s" requires at least PHP %2$s, you\'re running PHP %4$s. See <a href="%3$s">possible solutions</a>. Once fixed, "%1$s" can be activated again
|
51 |
|
52 |
$content = '<div class="error"><p>';
|
53 |
$content .= $text;
|
@@ -315,18 +315,20 @@ EOD;
|
|
315 |
/**
|
316 |
* If incoming link is empty, then get_site_url() is used instead.
|
317 |
*/
|
318 |
-
public static function create_link( $link, $target = null ) {
|
319 |
if ( empty( $link ) )
|
320 |
$link = get_site_url();
|
321 |
|
322 |
if ( preg_match( '#^\d+$#', $link ) ) {
|
323 |
$permalink = get_permalink( $link );
|
324 |
-
$
|
|
|
|
|
325 |
|
326 |
$tag = '<a href="';
|
327 |
$tag .= $permalink;
|
328 |
$tag .= '" title="';
|
329 |
-
$tag .= $
|
330 |
$tag .= '">';
|
331 |
$tag .= $title;
|
332 |
$tag .= '</a>';
|
@@ -352,10 +354,13 @@ EOD;
|
|
352 |
if ( ! empty( $target ) && is_string( $target ) )
|
353 |
$tag = links_add_target( $tag, $target );
|
354 |
|
355 |
-
|
356 |
-
|
357 |
-
|
358 |
-
|
|
|
|
|
|
|
359 |
}
|
360 |
|
361 |
|
47 |
|
48 |
$php_min = basename( AF_PHP_VERSION_MIN );
|
49 |
|
50 |
+
$text = sprintf( __( 'Plugin "%1$s" requires at least PHP %2$s, you\'re running PHP %4$s. See <a href="%3$s">possible solutions</a>. Once fixed, "%1$s" can be activated again.', 'testimonials-widget' ), $base, $php_min, $help_url, PHP_VERSION );
|
51 |
|
52 |
$content = '<div class="error"><p>';
|
53 |
$content .= $text;
|
315 |
/**
|
316 |
* If incoming link is empty, then get_site_url() is used instead.
|
317 |
*/
|
318 |
+
public static function create_link( $link, $title = null, $target = null, $return_as_tag = true ) {
|
319 |
if ( empty( $link ) )
|
320 |
$link = get_site_url();
|
321 |
|
322 |
if ( preg_match( '#^\d+$#', $link ) ) {
|
323 |
$permalink = get_permalink( $link );
|
324 |
+
$tag_title = get_the_title( $link );
|
325 |
+
if ( empty( $title ) )
|
326 |
+
$title = $tag_title;
|
327 |
|
328 |
$tag = '<a href="';
|
329 |
$tag .= $permalink;
|
330 |
$tag .= '" title="';
|
331 |
+
$tag .= $tag_title;
|
332 |
$tag .= '">';
|
333 |
$tag .= $title;
|
334 |
$tag .= '</a>';
|
354 |
if ( ! empty( $target ) && is_string( $target ) )
|
355 |
$tag = links_add_target( $tag, $target );
|
356 |
|
357 |
+
if ( $return_as_tag )
|
358 |
+
return $tag;
|
359 |
+
else
|
360 |
+
return array(
|
361 |
+
'link' => $permalink,
|
362 |
+
'tag' => $tag,
|
363 |
+
);
|
364 |
}
|
365 |
|
366 |
|
lib/aihrus/class-aihrus-widget.php
CHANGED
@@ -61,15 +61,14 @@ abstract class Aihrus_Widget extends WP_Widget implements Aihrus_Widget_Interfac
|
|
61 |
// Before widget (defined by themes)
|
62 |
echo $before_widget;
|
63 |
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
$title = Aihrus_Common::create_link( $instance['title_link'], $target );
|
69 |
-
}
|
70 |
|
|
|
|
|
71 |
echo $before_title . $title . $after_title;
|
72 |
-
}
|
73 |
|
74 |
// Display Widget
|
75 |
echo $content;
|
61 |
// Before widget (defined by themes)
|
62 |
echo $before_widget;
|
63 |
|
64 |
+
if ( ! empty( $instance['title_link'] ) ) {
|
65 |
+
$target = ! empty( $instance['target'] ) ? $instance['target'] : null;
|
66 |
+
$title = Aihrus_Common::create_link( $instance['title_link'], $title, $target );
|
67 |
+
}
|
|
|
|
|
68 |
|
69 |
+
// Display the widget title if one was input (before and after defined by themes)
|
70 |
+
if ( ! empty( $title ) )
|
71 |
echo $before_title . $title . $after_title;
|
|
|
72 |
|
73 |
// Display Widget
|
74 |
echo $content;
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Donate link: http://aihr.us/about-aihrus/donate/
|
|
5 |
Tags: client, customer, portfolio, quotations, quote, quotes, random, recommendation, reference, review, reviews, testimonial, testimonials, testimony, wpml
|
6 |
Requires at least: 3.6
|
7 |
Tested up to: 3.8.0
|
8 |
-
Stable tag: 2.16.
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
5 |
Tags: client, customer, portfolio, quotations, quote, quotes, random, recommendation, reference, review, reviews, testimonial, testimonials, testimony, wpml
|
6 |
Requires at least: 3.6
|
7 |
Tested up to: 3.8.0
|
8 |
+
Stable tag: 2.16.4
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
testimonials-widget.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
* Plugin Name: Testimonials
|
4 |
* Plugin URI: http://wordpress.org/plugins/testimonials-widget/
|
5 |
* Description: Testimonials lets you randomly slide or list selected portfolios, quotes, reviews, or text with images or videos on your WordPress site.
|
6 |
-
* Version: 2.16.
|
7 |
* Author: Michael Cannon
|
8 |
* Author URI: http://aihr.us/resume/
|
9 |
* License: GPLv2 or later
|
@@ -45,7 +45,7 @@ class Testimonials_Widget extends Aihrus_Common {
|
|
45 |
const PLUGIN_BASE = 'testimonials-widget/testimonials-widget.php';
|
46 |
const PT = 'testimonials-widget';
|
47 |
const SLUG = 'tw_';
|
48 |
-
const VERSION = '2.16.
|
49 |
|
50 |
private static $found_posts = 0;
|
51 |
private static $max_num_pages = 0;
|
3 |
* Plugin Name: Testimonials
|
4 |
* Plugin URI: http://wordpress.org/plugins/testimonials-widget/
|
5 |
* Description: Testimonials lets you randomly slide or list selected portfolios, quotes, reviews, or text with images or videos on your WordPress site.
|
6 |
+
* Version: 2.16.4
|
7 |
* Author: Michael Cannon
|
8 |
* Author URI: http://aihr.us/resume/
|
9 |
* License: GPLv2 or later
|
45 |
const PLUGIN_BASE = 'testimonials-widget/testimonials-widget.php';
|
46 |
const PT = 'testimonials-widget';
|
47 |
const SLUG = 'tw_';
|
48 |
+
const VERSION = '2.16.4';
|
49 |
|
50 |
private static $found_posts = 0;
|
51 |
private static $max_num_pages = 0;
|