Version Description
= 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.12.7 |
Comparing to | |
See all releases |
Code changes from version 2.12.6 to 2.12.7
- changelog.txt +4 -0
- languages/testimonials-widget.pot +47 -47
- lib/class-settings-testimonials-widget.php +3 -4
- readme.txt +1 -1
- testimonials-widget.php +7 -13
changelog.txt
CHANGED
@@ -4,6 +4,10 @@
|
|
4 |
|
5 |
= trunk =
|
6 |
|
|
|
|
|
|
|
|
|
7 |
= 2.12.6 =
|
8 |
* BUGFIX If no refresh_interval, then LIMIT 1
|
9 |
* Change donate from $1 to $2 due to fees
|
4 |
|
5 |
= trunk =
|
6 |
|
7 |
+
= 2.12.7 =
|
8 |
+
* BUGFIX Link targets affected page navigation
|
9 |
+
* Removed donate monthly show code
|
10 |
+
|
11 |
= 2.12.6 =
|
12 |
* BUGFIX If no refresh_interval, then LIMIT 1
|
13 |
* Change donate from $1 to $2 due to fees
|
languages/testimonials-widget.pot
CHANGED
@@ -2,9 +2,9 @@
|
|
2 |
# This file is distributed under the same license as the Testimonials Widget package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: Testimonials Widget 2.12.
|
6 |
"Report-Msgid-Bugs-To: http://wordpress.org/tag/testimonials-widget\n"
|
7 |
-
"POT-Creation-Date: 2013-05-
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
@@ -44,8 +44,8 @@ msgstr ""
|
|
44 |
msgid "Widget Title"
|
45 |
msgstr ""
|
46 |
|
47 |
-
#: lib/class-settings-testimonials-widget.php:86 testimonials-widget.php:
|
48 |
-
#: testimonials-widget.php:
|
49 |
msgid "Testimonials"
|
50 |
msgstr ""
|
51 |
|
@@ -290,7 +290,7 @@ msgstr ""
|
|
290 |
msgid "Author"
|
291 |
msgstr ""
|
292 |
|
293 |
-
#: lib/class-settings-testimonials-widget.php:330 testimonials-widget.php:
|
294 |
msgid "Date"
|
295 |
msgstr ""
|
296 |
|
@@ -298,7 +298,7 @@ msgstr ""
|
|
298 |
msgid "Menu Order"
|
299 |
msgstr ""
|
300 |
|
301 |
-
#: lib/class-settings-testimonials-widget.php:332 testimonials-widget.php:
|
302 |
msgid "Source"
|
303 |
msgstr ""
|
304 |
|
@@ -320,28 +320,28 @@ msgstr ""
|
|
320 |
msgid "None"
|
321 |
msgstr ""
|
322 |
|
323 |
-
#: lib/class-settings-testimonials-widget.php:346 testimonials-widget.php:
|
324 |
-
#: testimonials-widget.php:
|
325 |
msgid "Title"
|
326 |
msgstr ""
|
327 |
|
328 |
-
#: lib/class-settings-testimonials-widget.php:347 testimonials-widget.php:
|
329 |
-
#: testimonials-widget.php:
|
330 |
msgid "Email"
|
331 |
msgstr ""
|
332 |
|
333 |
-
#: lib/class-settings-testimonials-widget.php:348 testimonials-widget.php:
|
334 |
-
#: testimonials-widget.php:
|
335 |
msgid "Location"
|
336 |
msgstr ""
|
337 |
|
338 |
-
#: lib/class-settings-testimonials-widget.php:349 testimonials-widget.php:
|
339 |
-
#: testimonials-widget.php:
|
340 |
msgid "Company"
|
341 |
msgstr ""
|
342 |
|
343 |
-
#: lib/class-settings-testimonials-widget.php:350 testimonials-widget.php:
|
344 |
-
#: testimonials-widget.php:
|
345 |
msgid "URL"
|
346 |
msgstr ""
|
347 |
|
@@ -479,7 +479,7 @@ msgstr ""
|
|
479 |
msgid "Copyright ©%1$s %2$s."
|
480 |
msgstr ""
|
481 |
|
482 |
-
#: lib/class-settings-testimonials-widget.php:
|
483 |
msgid "Required"
|
484 |
msgstr ""
|
485 |
|
@@ -487,7 +487,7 @@ msgstr ""
|
|
487 |
msgid "Display testimonials with multiple selection and display options"
|
488 |
msgstr ""
|
489 |
|
490 |
-
#. #-#-#-#-# testimonials-widget.pot (Testimonials Widget 2.12.
|
491 |
#. Plugin Name of the plugin/theme
|
492 |
#: lib/class-testimonials-widget-widget.php:37
|
493 |
msgid "Testimonials Widget"
|
@@ -517,124 +517,124 @@ msgid ""
|
|
517 |
"maintained %s"
|
518 |
msgstr ""
|
519 |
|
520 |
-
#: testimonials-widget.php:
|
521 |
msgid "Image"
|
522 |
msgstr ""
|
523 |
|
524 |
-
#: testimonials-widget.php:
|
525 |
msgid "Shortcodes"
|
526 |
msgstr ""
|
527 |
|
528 |
-
#: testimonials-widget.php:
|
529 |
msgid "Published by"
|
530 |
msgstr ""
|
531 |
|
532 |
-
#: testimonials-widget.php:
|
533 |
msgid "Category"
|
534 |
msgstr ""
|
535 |
|
536 |
-
#: testimonials-widget.php:
|
537 |
msgid "Tags"
|
538 |
msgstr ""
|
539 |
|
540 |
-
#: testimonials-widget.php:
|
541 |
msgid "Add New"
|
542 |
msgstr ""
|
543 |
|
544 |
-
#: testimonials-widget.php:
|
545 |
msgid "Add New Testimonial"
|
546 |
msgstr ""
|
547 |
|
548 |
-
#: testimonials-widget.php:
|
549 |
msgid "Edit Testimonial"
|
550 |
msgstr ""
|
551 |
|
552 |
-
#: testimonials-widget.php:
|
553 |
msgid "No testimonials found"
|
554 |
msgstr ""
|
555 |
|
556 |
-
#: testimonials-widget.php:
|
557 |
msgid "No testimonials found in Trash"
|
558 |
msgstr ""
|
559 |
|
560 |
-
#: testimonials-widget.php:
|
561 |
msgid "Search Testimonials"
|
562 |
msgstr ""
|
563 |
|
564 |
-
#: testimonials-widget.php:
|
565 |
msgid "Testimonial"
|
566 |
msgstr ""
|
567 |
|
568 |
-
#: testimonials-widget.php:
|
569 |
msgid "View Testimonial"
|
570 |
msgstr ""
|
571 |
|
572 |
-
#: testimonials-widget.php:
|
573 |
msgid "…"
|
574 |
msgstr ""
|
575 |
|
576 |
-
#: testimonials-widget.php:
|
577 |
msgid "«"
|
578 |
msgstr ""
|
579 |
|
580 |
-
#: testimonials-widget.php:
|
581 |
msgid "»"
|
582 |
msgstr ""
|
583 |
|
584 |
-
#: testimonials-widget.php:
|
585 |
msgid "Testimonial Data"
|
586 |
msgstr ""
|
587 |
|
588 |
-
#: testimonials-widget.php:
|
589 |
msgid "Enter title here"
|
590 |
msgstr ""
|
591 |
|
592 |
-
#: testimonials-widget.php:
|
593 |
msgid "Enter testimonial source here"
|
594 |
msgstr ""
|
595 |
|
596 |
-
#: testimonials-widget.php:
|
597 |
msgid "Testimonial updated. <a href=\"%s\">View testimonial</a>"
|
598 |
msgstr ""
|
599 |
|
600 |
-
#: testimonials-widget.php:
|
601 |
msgid "Custom field updated."
|
602 |
msgstr ""
|
603 |
|
604 |
-
#: testimonials-widget.php:
|
605 |
msgid "Custom field deleted."
|
606 |
msgstr ""
|
607 |
|
608 |
-
#: testimonials-widget.php:
|
609 |
msgid "Testimonial updated."
|
610 |
msgstr ""
|
611 |
|
612 |
#. translators: %s: date and time of the revision
|
613 |
-
#: testimonials-widget.php:
|
614 |
msgid "Testimonial restored to revision from %s"
|
615 |
msgstr ""
|
616 |
|
617 |
-
#: testimonials-widget.php:
|
618 |
msgid "Testimonial published. <a href=\"%s\">View testimonial</a>"
|
619 |
msgstr ""
|
620 |
|
621 |
-
#: testimonials-widget.php:
|
622 |
msgid "Testimonial saved."
|
623 |
msgstr ""
|
624 |
|
625 |
-
#: testimonials-widget.php:
|
626 |
msgid ""
|
627 |
"Testimonial submitted. <a target=\"_blank\" href=\"%s\">Preview testimonial</"
|
628 |
"a>"
|
629 |
msgstr ""
|
630 |
|
631 |
-
#: testimonials-widget.php:
|
632 |
msgid ""
|
633 |
"Testimonial scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" href="
|
634 |
"\"%2$s\">Preview testimonial</a>"
|
635 |
msgstr ""
|
636 |
|
637 |
-
#: testimonials-widget.php:
|
638 |
msgid ""
|
639 |
"Testimonial draft updated. <a target=\"_blank\" href=\"%s\">Preview "
|
640 |
"testimonial</a>"
|
2 |
# This file is distributed under the same license as the Testimonials Widget package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Testimonials Widget 2.12.7\n"
|
6 |
"Report-Msgid-Bugs-To: http://wordpress.org/tag/testimonials-widget\n"
|
7 |
+
"POT-Creation-Date: 2013-05-27 00:25:43+00:00\n"
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
44 |
msgid "Widget Title"
|
45 |
msgstr ""
|
46 |
|
47 |
+
#: lib/class-settings-testimonials-widget.php:86 testimonials-widget.php:488
|
48 |
+
#: testimonials-widget.php:533
|
49 |
msgid "Testimonials"
|
50 |
msgstr ""
|
51 |
|
290 |
msgid "Author"
|
291 |
msgstr ""
|
292 |
|
293 |
+
#: lib/class-settings-testimonials-widget.php:330 testimonials-widget.php:474
|
294 |
msgid "Date"
|
295 |
msgstr ""
|
296 |
|
298 |
msgid "Menu Order"
|
299 |
msgstr ""
|
300 |
|
301 |
+
#: lib/class-settings-testimonials-widget.php:332 testimonials-widget.php:464
|
302 |
msgid "Source"
|
303 |
msgstr ""
|
304 |
|
320 |
msgid "None"
|
321 |
msgstr ""
|
322 |
|
323 |
+
#: lib/class-settings-testimonials-widget.php:346 testimonials-widget.php:466
|
324 |
+
#: testimonials-widget.php:1479
|
325 |
msgid "Title"
|
326 |
msgstr ""
|
327 |
|
328 |
+
#: lib/class-settings-testimonials-widget.php:347 testimonials-widget.php:468
|
329 |
+
#: testimonials-widget.php:1491
|
330 |
msgid "Email"
|
331 |
msgstr ""
|
332 |
|
333 |
+
#: lib/class-settings-testimonials-widget.php:348 testimonials-widget.php:467
|
334 |
+
#: testimonials-widget.php:1485
|
335 |
msgid "Location"
|
336 |
msgstr ""
|
337 |
|
338 |
+
#: lib/class-settings-testimonials-widget.php:349 testimonials-widget.php:469
|
339 |
+
#: testimonials-widget.php:1497
|
340 |
msgid "Company"
|
341 |
msgstr ""
|
342 |
|
343 |
+
#: lib/class-settings-testimonials-widget.php:350 testimonials-widget.php:470
|
344 |
+
#: testimonials-widget.php:1503
|
345 |
msgid "URL"
|
346 |
msgstr ""
|
347 |
|
479 |
msgid "Copyright ©%1$s %2$s."
|
480 |
msgstr ""
|
481 |
|
482 |
+
#: lib/class-settings-testimonials-widget.php:968
|
483 |
msgid "Required"
|
484 |
msgstr ""
|
485 |
|
487 |
msgid "Display testimonials with multiple selection and display options"
|
488 |
msgstr ""
|
489 |
|
490 |
+
#. #-#-#-#-# testimonials-widget.pot (Testimonials Widget 2.12.7) #-#-#-#-#
|
491 |
#. Plugin Name of the plugin/theme
|
492 |
#: lib/class-testimonials-widget-widget.php:37
|
493 |
msgid "Testimonials Widget"
|
517 |
"maintained %s"
|
518 |
msgstr ""
|
519 |
|
520 |
+
#: testimonials-widget.php:463
|
521 |
msgid "Image"
|
522 |
msgstr ""
|
523 |
|
524 |
+
#: testimonials-widget.php:465
|
525 |
msgid "Shortcodes"
|
526 |
msgstr ""
|
527 |
|
528 |
+
#: testimonials-widget.php:471
|
529 |
msgid "Published by"
|
530 |
msgstr ""
|
531 |
|
532 |
+
#: testimonials-widget.php:472
|
533 |
msgid "Category"
|
534 |
msgstr ""
|
535 |
|
536 |
+
#: testimonials-widget.php:473
|
537 |
msgid "Tags"
|
538 |
msgstr ""
|
539 |
|
540 |
+
#: testimonials-widget.php:485
|
541 |
msgid "Add New"
|
542 |
msgstr ""
|
543 |
|
544 |
+
#: testimonials-widget.php:486 testimonials-widget.php:489
|
545 |
msgid "Add New Testimonial"
|
546 |
msgstr ""
|
547 |
|
548 |
+
#: testimonials-widget.php:487
|
549 |
msgid "Edit Testimonial"
|
550 |
msgstr ""
|
551 |
|
552 |
+
#: testimonials-widget.php:490 testimonials-widget.php:787
|
553 |
msgid "No testimonials found"
|
554 |
msgstr ""
|
555 |
|
556 |
+
#: testimonials-widget.php:491
|
557 |
msgid "No testimonials found in Trash"
|
558 |
msgstr ""
|
559 |
|
560 |
+
#: testimonials-widget.php:493
|
561 |
msgid "Search Testimonials"
|
562 |
msgstr ""
|
563 |
|
564 |
+
#: testimonials-widget.php:494 testimonials-widget.php:1591
|
565 |
msgid "Testimonial"
|
566 |
msgstr ""
|
567 |
|
568 |
+
#: testimonials-widget.php:495
|
569 |
msgid "View Testimonial"
|
570 |
msgstr ""
|
571 |
|
572 |
+
#: testimonials-widget.php:898
|
573 |
msgid "…"
|
574 |
msgstr ""
|
575 |
|
576 |
+
#: testimonials-widget.php:1217
|
577 |
msgid "«"
|
578 |
msgstr ""
|
579 |
|
580 |
+
#: testimonials-widget.php:1226
|
581 |
msgid "»"
|
582 |
msgstr ""
|
583 |
|
584 |
+
#: testimonials-widget.php:1515
|
585 |
msgid "Testimonial Data"
|
586 |
msgstr ""
|
587 |
|
588 |
+
#: testimonials-widget.php:1540
|
589 |
msgid "Enter title here"
|
590 |
msgstr ""
|
591 |
|
592 |
+
#: testimonials-widget.php:1541
|
593 |
msgid "Enter testimonial source here"
|
594 |
msgstr ""
|
595 |
|
596 |
+
#: testimonials-widget.php:1566
|
597 |
msgid "Testimonial updated. <a href=\"%s\">View testimonial</a>"
|
598 |
msgstr ""
|
599 |
|
600 |
+
#: testimonials-widget.php:1567
|
601 |
msgid "Custom field updated."
|
602 |
msgstr ""
|
603 |
|
604 |
+
#: testimonials-widget.php:1568
|
605 |
msgid "Custom field deleted."
|
606 |
msgstr ""
|
607 |
|
608 |
+
#: testimonials-widget.php:1569
|
609 |
msgid "Testimonial updated."
|
610 |
msgstr ""
|
611 |
|
612 |
#. translators: %s: date and time of the revision
|
613 |
+
#: testimonials-widget.php:1571
|
614 |
msgid "Testimonial restored to revision from %s"
|
615 |
msgstr ""
|
616 |
|
617 |
+
#: testimonials-widget.php:1572
|
618 |
msgid "Testimonial published. <a href=\"%s\">View testimonial</a>"
|
619 |
msgstr ""
|
620 |
|
621 |
+
#: testimonials-widget.php:1573
|
622 |
msgid "Testimonial saved."
|
623 |
msgstr ""
|
624 |
|
625 |
+
#: testimonials-widget.php:1574
|
626 |
msgid ""
|
627 |
"Testimonial submitted. <a target=\"_blank\" href=\"%s\">Preview testimonial</"
|
628 |
"a>"
|
629 |
msgstr ""
|
630 |
|
631 |
+
#: testimonials-widget.php:1575
|
632 |
msgid ""
|
633 |
"Testimonial scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" href="
|
634 |
"\"%2$s\">Preview testimonial</a>"
|
635 |
msgstr ""
|
636 |
|
637 |
+
#: testimonials-widget.php:1576
|
638 |
msgid ""
|
639 |
"Testimonial draft updated. <a target=\"_blank\" href=\"%s\">Preview "
|
640 |
"testimonial</a>"
|
lib/class-settings-testimonials-widget.php
CHANGED
@@ -913,10 +913,9 @@ EOD;
|
|
913 |
if ( $has_archive != $input['has_archive'] || $rewrite_slug != $input['rewrite_slug'] )
|
914 |
flush_rewrite_rules();
|
915 |
|
916 |
-
$input['version']
|
917 |
-
$input['donate_version']
|
918 |
-
$input
|
919 |
-
$input = apply_filters( 'testimonials_widget_validate_settings', $input, $errors );
|
920 |
|
921 |
unset( $input['export'] );
|
922 |
unset( $input['import'] );
|
913 |
if ( $has_archive != $input['has_archive'] || $rewrite_slug != $input['rewrite_slug'] )
|
914 |
flush_rewrite_rules();
|
915 |
|
916 |
+
$input['version'] = self::$version;
|
917 |
+
$input['donate_version'] = Testimonials_Widget::VERSION;
|
918 |
+
$input = apply_filters( 'testimonials_widget_validate_settings', $input, $errors );
|
|
|
919 |
|
920 |
unset( $input['export'] );
|
921 |
unset( $input['import'] );
|
readme.txt
CHANGED
@@ -5,7 +5,7 @@ Donate link: http://aihr.us/about-aihrus/donate/
|
|
5 |
Tags: client, customer, quotations, quote, quotes, random, review, quote, recommendation, reference, testimonial, testimonials, testimony, widget, wpml
|
6 |
Requires at least: 3.4
|
7 |
Tested up to: 3.6.0
|
8 |
-
Stable tag: 2.12.
|
9 |
License: GPLv2 or later
|
10 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
11 |
|
5 |
Tags: client, customer, quotations, quote, quotes, random, review, quote, recommendation, reference, testimonial, testimonials, testimony, widget, wpml
|
6 |
Requires at least: 3.4
|
7 |
Tested up to: 3.6.0
|
8 |
+
Stable tag: 2.12.7
|
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 Widget
|
4 |
* Plugin URI: http://wordpress.org/extend/plugins/testimonials-widget/
|
5 |
* Description: Testimonials Widget plugin allows you to display random or selected portfolio, quotes, reviews, showcases, or text with images on your WordPress blog.
|
6 |
-
* Version: 2.12.
|
7 |
* Author: Michael Cannon
|
8 |
* Author URI: http://aihr.us/about-aihrus/michael-cannon-resume/
|
9 |
* License: GPLv2 or later
|
@@ -31,7 +31,7 @@ class Testimonials_Widget {
|
|
31 |
const OLD_NAME = 'testimonialswidget';
|
32 |
const PLUGIN_FILE = 'testimonials-widget/testimonials-widget.php';
|
33 |
const PT = 'testimonials-widget';
|
34 |
-
const VERSION = '2.12.
|
35 |
|
36 |
private static $base = null;
|
37 |
private static $max_num_pages = 0;
|
@@ -294,14 +294,9 @@ EOD;
|
|
294 |
}
|
295 |
|
296 |
// display donate on major/minor version release or if it's been a month
|
297 |
-
$
|
298 |
-
$
|
299 |
-
$month_in_seconds = 4.33 * WEEK_IN_SECONDS;
|
300 |
-
$donate_month = $donate_date_display + $month_in_seconds;
|
301 |
-
$donate_version = tw_get_option( 'donate_version', false );
|
302 |
-
if ( ! $donate_date_display || $donate_month < $now || ! $donate_version || ( $donate_version != self::VERSION && preg_match( '#\.0$#', self::VERSION ) ) ) {
|
303 |
add_action( 'admin_notices', array( $this, 'admin_notices_donate' ) );
|
304 |
-
tw_set_option( 'donate_date_display', $now );
|
305 |
tw_set_option( 'donate_version', self::VERSION );
|
306 |
}
|
307 |
|
@@ -799,7 +794,9 @@ EOF;
|
|
799 |
$is_first = true;
|
800 |
|
801 |
foreach ( $testimonials as $testimonial ) {
|
802 |
-
$content
|
|
|
|
|
803 |
$content = apply_filters( 'testimonials_widget_testimonial_html', $content, $testimonial, $atts, $is_list, $is_first, $widget_number );
|
804 |
$html .= $content;
|
805 |
$is_first = false;
|
@@ -810,9 +807,6 @@ EOF;
|
|
810 |
|
811 |
$html .= '</div>';
|
812 |
|
813 |
-
if ( $target )
|
814 |
-
$html = links_add_target( $html, $target );
|
815 |
-
|
816 |
return $html;
|
817 |
}
|
818 |
|
3 |
* Plugin Name: Testimonials Widget
|
4 |
* Plugin URI: http://wordpress.org/extend/plugins/testimonials-widget/
|
5 |
* Description: Testimonials Widget plugin allows you to display random or selected portfolio, quotes, reviews, showcases, or text with images on your WordPress blog.
|
6 |
+
* Version: 2.12.7
|
7 |
* Author: Michael Cannon
|
8 |
* Author URI: http://aihr.us/about-aihrus/michael-cannon-resume/
|
9 |
* License: GPLv2 or later
|
31 |
const OLD_NAME = 'testimonialswidget';
|
32 |
const PLUGIN_FILE = 'testimonials-widget/testimonials-widget.php';
|
33 |
const PT = 'testimonials-widget';
|
34 |
+
const VERSION = '2.12.7';
|
35 |
|
36 |
private static $base = null;
|
37 |
private static $max_num_pages = 0;
|
294 |
}
|
295 |
|
296 |
// display donate on major/minor version release or if it's been a month
|
297 |
+
$donate_version = tw_get_option( 'donate_version', false );
|
298 |
+
if ( ! $donate_version || ( $donate_version != self::VERSION && preg_match( '#\.0$#', self::VERSION ) ) ) {
|
|
|
|
|
|
|
|
|
299 |
add_action( 'admin_notices', array( $this, 'admin_notices_donate' ) );
|
|
|
300 |
tw_set_option( 'donate_version', self::VERSION );
|
301 |
}
|
302 |
|
794 |
$is_first = true;
|
795 |
|
796 |
foreach ( $testimonials as $testimonial ) {
|
797 |
+
$content = self::get_testimonial_html( $testimonial, $atts, $is_list, $is_first, $widget_number );
|
798 |
+
if ( $target )
|
799 |
+
$content = links_add_target( $content, $target );
|
800 |
$content = apply_filters( 'testimonials_widget_testimonial_html', $content, $testimonial, $atts, $is_list, $is_first, $widget_number );
|
801 |
$html .= $content;
|
802 |
$is_first = false;
|
807 |
|
808 |
$html .= '</div>';
|
809 |
|
|
|
|
|
|
|
810 |
return $html;
|
811 |
}
|
812 |
|