Testimonials Widget - Version 3.0.3

Version Description

= 3.0.0 =

This is a major overhaul without backwards compliance of over 80 changes. Please read the Testimonials Widget 3.0 and Testimonials Widget Premium 2.0 Upgrade Notice for more help.

If you use custom CSS, actions, or filters to modify Testimonials Widget and Testimonials Widget Premium actions or output, this upgrade will not be compatible with those modifications until corrections are made.

= Older Versions =

Read UPGRADING.

Download this release

Release Info

Developer comprock
Plugin Icon wp plugin Testimonials Widget
Version 3.0.3
Comparing to
See all releases

Code changes from version 3.0.2 to 3.0.3

CHANGELOG.md CHANGED
@@ -2,6 +2,18 @@
2
 
3
  ## master
4
 
 
 
 
 
 
 
 
 
 
 
 
 
5
  ## 3.0.2
6
  * RESOLVE Pager always showing
7
 
2
 
3
  ## master
4
 
5
+ ## 3.0.3
6
+ * Add demo link to examples
7
+ * Require Aihrus Framework 1.1.7
8
+ * RESOLVE #150 URL target doesn't work
9
+ * RESOLVE #155 Aggregate data is off per Google
10
+ * RESOLVE #159 Under 'Selection Options', 'Tag Filter', the description should say 'Comma separated tag SLUGS or IDs.'
11
+ * RESOLVE #165 Stack of testimonials appear on load
12
+ * RESOLVE PHP Notice: Undefined index: enable_video
13
+ * RESOLVE PHP Notice: Undefined index: post_id
14
+ * RESOLVE PHP Notice: Use of undefined constant Testimonials_Widget - assumed 'Testimonials_Widget'
15
+ * Update FAQ on shortcodes
16
+
17
  ## 3.0.2
18
  * RESOLVE Pager always showing
19
 
assets/css/testimonials-widget.css CHANGED
@@ -4,16 +4,6 @@
4
  .testimonials-widget-testimonial {
5
  }
6
 
7
- .testimonials-widget-testimonials .active {
8
- /* active testimonials */
9
- display: block;
10
- }
11
-
12
- .testimonials-widget-testimonials .display-none {
13
- /* staged testimonials */
14
- display: none;
15
- }
16
-
17
  .testimonials-widget-testimonials .paging {
18
  clear: both;
19
  font-weight: 700;
4
  .testimonials-widget-testimonial {
5
  }
6
 
 
 
 
 
 
 
 
 
 
 
7
  .testimonials-widget-testimonials .paging {
8
  clear: both;
9
  font-weight: 700;
includes/class-testimonials-widget-settings.php CHANGED
@@ -481,7 +481,7 @@ class Testimonials_Widget_Settings extends Aihrus_Settings {
481
  self::$settings['tags'] = array(
482
  'section' => 'selection',
483
  'title' => esc_html__( 'Tags Filter', 'testimonials-widget' ),
484
- 'desc' => esc_html__( 'Comma separated tag names or IDs.', 'testimonials-widget' ),
485
  'validate' => 'terms',
486
  'suggest' => true,
487
  );
481
  self::$settings['tags'] = array(
482
  'section' => 'selection',
483
  'title' => esc_html__( 'Tags Filter', 'testimonials-widget' ),
484
+ 'desc' => esc_html__( 'Comma separated tag slugs or IDs.', 'testimonials-widget' ),
485
  'validate' => 'terms',
486
  'suggest' => true,
487
  );
includes/class-testimonials-widget.php CHANGED
@@ -65,10 +65,11 @@ class Testimonials_Widget extends Aihrus_Common {
65
  public static $widget_number = 100000;
66
  public static $wp_query;
67
 
68
- public static $aggregate_count = 'reviewCount';
69
  public static $aggregate_data = array();
70
  public static $aggregate_no_item = '__NO_ITEM__';
71
  public static $aggregate_rating = 'aggregateRating';
 
72
  public static $aggregate_schema = 'http://schema.org/AggregateRating';
73
 
74
  public static $cw_author = 'author';
@@ -745,8 +746,7 @@ class Testimonials_Widget extends Aihrus_Common {
745
 
746
  wp_enqueue_script( 'jquery' );
747
 
748
- $enable_video = $atts['enable_video'];
749
- if ( $enable_video ) {
750
  wp_register_script( 'jquery.fitvids', self::$library_assets . 'bxslider-4/plugins/jquery.fitvids.js', array( 'jquery' ), '1.0', true );
751
  wp_enqueue_script( 'jquery.fitvids' );
752
  }
@@ -924,9 +924,6 @@ EOF;
924
  }
925
 
926
  $content = self::get_template_part( 'testimonial', 'content' );
927
- if ( $atts['target'] ) {
928
- $content = links_add_target( $content, $atts['target'] );
929
- }
930
 
931
  $cite = '';
932
  if ( 1 < count( $testimonial ) ) {
@@ -943,6 +940,14 @@ EOF;
943
  $bottom_text = self::get_template_part( 'testimonial', 'bottom' );
944
  }
945
 
 
 
 
 
 
 
 
 
946
  $schema = '';
947
  if ( $atts['enable_schema'] ) {
948
  $schema = self::get_schema( $testimonial, $atts );
@@ -1473,6 +1478,10 @@ EOF;
1473
  * @SuppressWarnings(PHPMD.UnusedLocalVariable)
1474
  */
1475
  public static function get_schema( $testimonial, $atts ) {
 
 
 
 
1476
  foreach ( $testimonial as $key => $value ) {
1477
  if ( 'testimonial_image' != $key ) {
1478
  $testimonial[ $key ] = self::clean_string( $value );
@@ -1579,10 +1588,11 @@ EOF;
1579
  }
1580
 
1581
  $aggregate_meta = array(
1582
- self::$aggregate_count => self::get_aggregate_count( $testimonial ),
1583
  );
1584
 
1585
- $review_meta[ self::$aggregate_rating ] = array( self::$aggregate_schema, $aggregate_meta );
 
1586
 
1587
  $review_meta = apply_filters( 'tw_schema_review', $review_meta, $testimonial, $atts );
1588
  $review = self::create_schema_meta( $review_meta );
@@ -2034,22 +2044,42 @@ EOF;
2034
  }
2035
 
2036
 
2037
- public static function get_aggregate_count( $testimonial ) {
 
 
2038
  $testimonial_item = ! empty( $testimonial['testimonial_item'] ) ? $testimonial['testimonial_item'] : self::$aggregate_no_item;
2039
  if ( ! isset( self::$aggregate_data[ $testimonial_item ]['count'] ) ) {
2040
- // @codingStandardsIgnoreStart
2041
- $query_args = array(
2042
- 'post_type' => Testimonials_Widget::PT,
2043
- 'meta_query' => array(
2044
- 'relation' => 'AND',
2045
- array(
2046
- 'key' => 'testimonials-widget-item',
2047
- 'value' => $testimonial_item,
2048
- 'compare' => 'LIKE',
 
 
 
2049
  ),
2050
- ),
2051
- );
2052
- // @codingStandardsIgnoreEnd
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2053
 
2054
  $count = 0;
2055
  $query = new WP_Query( $query_args );
@@ -2059,6 +2089,8 @@ EOF;
2059
  }
2060
 
2061
  self::$aggregate_data[ $testimonial_item ]['count'] = $count;
 
 
2062
  }
2063
 
2064
  return self::$aggregate_data[ $testimonial_item ]['count'];
65
  public static $widget_number = 100000;
66
  public static $wp_query;
67
 
68
+ public static $aggregate_count = 'ratingCount';
69
  public static $aggregate_data = array();
70
  public static $aggregate_no_item = '__NO_ITEM__';
71
  public static $aggregate_rating = 'aggregateRating';
72
+ public static $aggregate_review = 'reviewCount';
73
  public static $aggregate_schema = 'http://schema.org/AggregateRating';
74
 
75
  public static $cw_author = 'author';
746
 
747
  wp_enqueue_script( 'jquery' );
748
 
749
+ if ( ! empty( $atts['enable_video'] ) ) {
 
750
  wp_register_script( 'jquery.fitvids', self::$library_assets . 'bxslider-4/plugins/jquery.fitvids.js', array( 'jquery' ), '1.0', true );
751
  wp_enqueue_script( 'jquery.fitvids' );
752
  }
924
  }
925
 
926
  $content = self::get_template_part( 'testimonial', 'content' );
 
 
 
927
 
928
  $cite = '';
929
  if ( 1 < count( $testimonial ) ) {
940
  $bottom_text = self::get_template_part( 'testimonial', 'bottom' );
941
  }
942
 
943
+ $do_target = $atts['target'];
944
+ if ( $do_target ) {
945
+ $content = links_add_target( $content, $do_target );
946
+ $cite = links_add_target( $cite, $do_target );
947
+ $extra = links_add_target( $extra, $do_target );
948
+ $bottom_text = links_add_target( $bottom_text, $do_target );
949
+ }
950
+
951
  $schema = '';
952
  if ( $atts['enable_schema'] ) {
953
  $schema = self::get_schema( $testimonial, $atts );
1478
  * @SuppressWarnings(PHPMD.UnusedLocalVariable)
1479
  */
1480
  public static function get_schema( $testimonial, $atts ) {
1481
+ if ( ! isset( $testimonial['post_id'] ) ) {
1482
+ return;
1483
+ }
1484
+
1485
  foreach ( $testimonial as $key => $value ) {
1486
  if ( 'testimonial_image' != $key ) {
1487
  $testimonial[ $key ] = self::clean_string( $value );
1588
  }
1589
 
1590
  $aggregate_meta = array(
1591
+ self::$aggregate_review => self::get_review_count( $testimonial ),
1592
  );
1593
 
1594
+ $aggregate_meta[ self::$aggregate_count ] = $aggregate_meta[ self::$aggregate_review ];
1595
+ $review_meta[ self::$aggregate_rating ] = array( self::$aggregate_schema, $aggregate_meta );
1596
 
1597
  $review_meta = apply_filters( 'tw_schema_review', $review_meta, $testimonial, $atts );
1598
  $review = self::create_schema_meta( $review_meta );
2044
  }
2045
 
2046
 
2047
+ public static function get_review_count( $testimonial ) {
2048
+ self::$aggregate_data = apply_filters( 'tw_cache_get', self::$aggregate_data, 'tw_aggregate_data' );
2049
+
2050
  $testimonial_item = ! empty( $testimonial['testimonial_item'] ) ? $testimonial['testimonial_item'] : self::$aggregate_no_item;
2051
  if ( ! isset( self::$aggregate_data[ $testimonial_item ]['count'] ) ) {
2052
+ if ( self::$aggregate_no_item != $testimonial_item ) {
2053
+ // @codingStandardsIgnoreStart
2054
+ $query_args = array(
2055
+ 'post_type' => Testimonials_Widget::PT,
2056
+ 'posts_per_page' => -1,
2057
+ 'meta_query' => array(
2058
+ 'relation' => 'AND',
2059
+ array(
2060
+ 'key' => 'testimonials-widget-item',
2061
+ 'value' => $testimonial_item,
2062
+ 'compare' => 'LIKE',
2063
+ ),
2064
  ),
2065
+ );
2066
+ // @codingStandardsIgnoreEnd
2067
+ } else {
2068
+ // @codingStandardsIgnoreStart
2069
+ $query_args = array(
2070
+ 'post_type' => Testimonials_Widget::PT,
2071
+ 'posts_per_page' => -1,
2072
+ 'meta_query' => array(
2073
+ 'relation' => 'AND',
2074
+ array(
2075
+ 'key' => 'testimonials-widget-item',
2076
+ 'value' => '',
2077
+ 'compare' => 'LIKE',
2078
+ ),
2079
+ ),
2080
+ );
2081
+ // @codingStandardsIgnoreEnd
2082
+ }
2083
 
2084
  $count = 0;
2085
  $query = new WP_Query( $query_args );
2089
  }
2090
 
2091
  self::$aggregate_data[ $testimonial_item ]['count'] = $count;
2092
+
2093
+ self::$aggregate_data = apply_filters( 'tw_cache_set', self::$aggregate_data, 'tw_aggregate_data' );
2094
  }
2095
 
2096
  return self::$aggregate_data[ $testimonial_item ]['count'];
includes/libraries/aihrus-framework/CHANGELOG.md CHANGED
@@ -2,6 +2,9 @@
2
 
3
  ## master
4
 
 
 
 
5
  ## 1.1.6
6
  * Denote included libraries
7
  * RESOLVE michael-cannon/testimonials-widget#162 Error: This is not a valid feed template with WordPress SEO sitemap
2
 
3
  ## master
4
 
5
+ ## 1.1.7
6
+ * RESOLVE michael-cannon/testimonials-widget#156 License not saving
7
+
8
  ## 1.1.6
9
  * Denote included libraries
10
  * RESOLVE michael-cannon/testimonials-widget#162 Error: This is not a valid feed template with WordPress SEO sitemap
includes/libraries/aihrus-framework/aihrus-framework.php CHANGED
@@ -35,7 +35,7 @@ if ( ! defined( 'AIHR_DIR_LIB' ) ) {
35
  }
36
 
37
  if ( ! defined( 'AIHR_VERSION' ) ) {
38
- define( 'AIHR_VERSION', '1.1.6' );
39
  }
40
 
41
  require_once ABSPATH . 'wp-admin/includes/plugin.php';
35
  }
36
 
37
  if ( ! defined( 'AIHR_VERSION' ) ) {
38
+ define( 'AIHR_VERSION', '1.1.7' );
39
  }
40
 
41
  require_once ABSPATH . 'wp-admin/includes/plugin.php';
includes/libraries/aihrus-framework/includes/class-aihrus-licensing.php CHANGED
@@ -133,12 +133,7 @@ abstract class Aihrus_Licensing {
133
 
134
 
135
  public function get_remote_get( $api_call ) {
136
- $response = wp_remote_get(
137
- $api_call,
138
- array(
139
- 'sslverify' => false,
140
- )
141
- );
142
 
143
  return $response;
144
  }
133
 
134
 
135
  public function get_remote_get( $api_call ) {
136
+ $response = wp_remote_get( $api_call );
 
 
 
 
 
137
 
138
  return $response;
139
  }
languages/testimonials-widget.pot CHANGED
@@ -1,14 +1,14 @@
1
- # Copyright (C) 2014 Testimonials Widget
2
  # This file is distributed under the same license as the Testimonials Widget package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Testimonials Widget 3.0.2\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/testimonials-widget\n"
7
- "POT-Creation-Date: 2014-12-15 15:03:09+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
11
- "PO-Revision-Date: 2014-MO-DA HO:MI+ZONE\n"
12
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
  "Language-Team: LANGUAGE <LL@li.org>\n"
14
 
@@ -63,7 +63,7 @@ msgid "Testimonials Settings"
63
  msgstr ""
64
 
65
  #: includes/class-testimonials-widget-settings.php:97
66
- #: includes/class-testimonials-widget.php:136
67
  msgid "Settings"
68
  msgstr ""
69
 
@@ -116,8 +116,8 @@ msgid "Title"
116
  msgstr ""
117
 
118
  #: includes/class-testimonials-widget-settings.php:140
119
- #: includes/class-testimonials-widget.php:573
120
- #: includes/class-testimonials-widget.php:621
121
  msgid "Testimonials"
122
  msgstr ""
123
 
@@ -464,7 +464,7 @@ msgid "Tags Filter"
464
  msgstr ""
465
 
466
  #: includes/class-testimonials-widget-settings.php:484
467
- msgid "Comma separated tag names or IDs."
468
  msgstr ""
469
 
470
  #: includes/class-testimonials-widget-settings.php:497
@@ -485,14 +485,14 @@ msgstr ""
485
 
486
  #: includes/class-testimonials-widget-settings.php:508
487
  #: includes/class-testimonials-widget-settings.php:511
488
- #: includes/class-testimonials-widget.php:503
489
- #: includes/class-testimonials-widget.php:534
490
- #: includes/class-testimonials-widget.php:1364
491
  msgid "Author"
492
  msgstr ""
493
 
494
  #: includes/class-testimonials-widget-settings.php:509
495
- #: includes/class-testimonials-widget.php:505
496
  msgid "Date"
497
  msgstr ""
498
 
@@ -517,32 +517,32 @@ msgid "None"
517
  msgstr ""
518
 
519
  #: includes/class-testimonials-widget-settings.php:525
520
- #: includes/class-testimonials-widget.php:539
521
- #: includes/class-testimonials-widget.php:1370
522
  msgid "Job Title"
523
  msgstr ""
524
 
525
  #: includes/class-testimonials-widget-settings.php:526
526
- #: includes/class-testimonials-widget.php:554
527
- #: includes/class-testimonials-widget.php:1388
528
  msgid "Email"
529
  msgstr ""
530
 
531
  #: includes/class-testimonials-widget-settings.php:527
532
- #: includes/class-testimonials-widget.php:544
533
- #: includes/class-testimonials-widget.php:1376
534
  msgid "Location"
535
  msgstr ""
536
 
537
  #: includes/class-testimonials-widget-settings.php:528
538
- #: includes/class-testimonials-widget.php:549
539
- #: includes/class-testimonials-widget.php:1382
540
  msgid "Company"
541
  msgstr ""
542
 
543
  #: includes/class-testimonials-widget-settings.php:529
544
- #: includes/class-testimonials-widget.php:559
545
- #: includes/class-testimonials-widget.php:1394
546
  msgid "URL"
547
  msgstr ""
548
 
@@ -690,15 +690,15 @@ msgstr ""
690
 
691
  #: includes/class-testimonials-widget-tag-cloud-widget.php:63
692
  #: includes/class-testimonials-widget-tag-cloud-widget.php:70
693
- #: includes/class-testimonials-widget.php:510
694
- #: includes/class-testimonials-widget.php:513
695
  msgid "Category"
696
  msgstr ""
697
 
698
  #: includes/class-testimonials-widget-tag-cloud-widget.php:64
699
  #: includes/class-testimonials-widget-tag-cloud-widget.php:71
700
- #: includes/class-testimonials-widget.php:511
701
- #: includes/class-testimonials-widget.php:514
702
  msgid "Tags"
703
  msgstr ""
704
 
@@ -706,140 +706,140 @@ msgstr ""
706
  msgid "Taxonomy"
707
  msgstr ""
708
 
709
- #: includes/class-testimonials-widget.php:367
710
  msgid "If your Testimonials display has gone to funky town, please <a href=\"%s\">read the FAQ</a> about possible CSS fixes."
711
  msgstr ""
712
 
713
- #: includes/class-testimonials-widget.php:504
714
  msgid "Published by"
715
  msgstr ""
716
 
717
- #: includes/class-testimonials-widget.php:519
718
  msgid "ID"
719
  msgstr ""
720
 
721
- #: includes/class-testimonials-widget.php:524
722
  msgid "Image"
723
  msgstr ""
724
 
725
- #: includes/class-testimonials-widget.php:529
726
  msgid "Shortcodes"
727
  msgstr ""
728
 
729
- #: includes/class-testimonials-widget.php:570
730
  msgid "Add New"
731
  msgstr ""
732
 
733
- #: includes/class-testimonials-widget.php:571
734
- #: includes/class-testimonials-widget.php:574
735
  msgid "Add New Testimonial"
736
  msgstr ""
737
 
738
- #: includes/class-testimonials-widget.php:572
739
  msgid "Edit Testimonial"
740
  msgstr ""
741
 
742
- #: includes/class-testimonials-widget.php:575
743
  #: includes/class-testimonials-widget.php:874
744
  msgid "No testimonials found"
745
  msgstr ""
746
 
747
- #: includes/class-testimonials-widget.php:576
748
  msgid "No testimonials found in Trash"
749
  msgstr ""
750
 
751
- #: includes/class-testimonials-widget.php:578
752
  msgid "Search Testimonials"
753
  msgstr ""
754
 
755
- #: includes/class-testimonials-widget.php:579
756
- #: includes/class-testimonials-widget.php:1455
757
- #: includes/class-testimonials-widget.php:1818
758
  msgid "Testimonial"
759
  msgstr ""
760
 
761
- #: includes/class-testimonials-widget.php:580
762
  msgid "View Testimonial"
763
  msgstr ""
764
 
765
- #: includes/class-testimonials-widget.php:1367
766
  msgid "Use when the testimonial title is not the authors' name."
767
  msgstr ""
768
 
769
- #: includes/class-testimonials-widget.php:1391
770
  msgid "If an email is provided, but not an image, a Gravatar icon will be attempted to be loaded."
771
  msgstr ""
772
 
773
- #: includes/class-testimonials-widget.php:1406
774
  msgid "Testimonial Data"
775
  msgstr ""
776
 
777
- #: includes/class-testimonials-widget.php:1430
778
  msgid "Testimonial updated. <a href=\"%s\">View testimonial</a>"
779
  msgstr ""
780
 
781
- #: includes/class-testimonials-widget.php:1431
782
  msgid "Custom field updated."
783
  msgstr ""
784
 
785
- #: includes/class-testimonials-widget.php:1432
786
  msgid "Custom field deleted."
787
  msgstr ""
788
 
789
- #: includes/class-testimonials-widget.php:1433
790
  msgid "Testimonial updated."
791
  msgstr ""
792
 
793
  #. translators: %s: date and time of the revision
794
 
795
- #: includes/class-testimonials-widget.php:1435
796
  msgid "Testimonial restored to revision from %s"
797
  msgstr ""
798
 
799
- #: includes/class-testimonials-widget.php:1436
800
  msgid "Testimonial published. <a href=\"%s\">View testimonial</a>"
801
  msgstr ""
802
 
803
- #: includes/class-testimonials-widget.php:1437
804
  msgid "Testimonial saved."
805
  msgstr ""
806
 
807
- #: includes/class-testimonials-widget.php:1438
808
  msgid "Testimonial submitted. <a target=\"_blank\" href=\"%s\">Preview testimonial</a>"
809
  msgstr ""
810
 
811
- #: includes/class-testimonials-widget.php:1439
812
  msgid "Testimonial scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Preview testimonial</a>"
813
  msgstr ""
814
 
815
- #: includes/class-testimonials-widget.php:1440
816
  msgid "Testimonial draft updated. <a target=\"_blank\" href=\"%s\">Preview testimonial</a>"
817
  msgstr ""
818
 
819
- #: includes/class-testimonials-widget.php:1713
820
  msgid "If your Testimonials display has gone to funky town, please <a href=\"%s\">read the FAQ</a> about possible fixes."
821
  msgstr ""
822
 
823
- #: includes/class-testimonials-widget.php:1732
824
  msgid "Failed version check"
825
  msgstr ""
826
 
827
- #: includes/class-testimonials-widget.php:1763
828
  msgid "Shortcode"
829
  msgstr ""
830
 
831
- #: includes/class-testimonials-widget.php:2179
832
- #: includes/class-testimonials-widget.php:2252
833
  msgid "Used with: "
834
  msgstr ""
835
 
836
- #: includes/class-testimonials-widget.php:2216
837
- #: includes/class-testimonials-widget.php:2280
838
  msgid "Options: "
839
  msgstr ""
840
 
841
- #: includes/class-testimonials-widget.php:2221
842
- #: includes/class-testimonials-widget.php:2285
843
  msgid "Usage: "
844
  msgstr ""
845
 
@@ -1032,7 +1032,7 @@ msgstr ""
1032
  msgid "%s license not saved."
1033
  msgstr ""
1034
 
1035
- #: includes/libraries/aihrus-framework/includes/class-aihrus-licensing.php:180
1036
  msgid "%s license deactivated."
1037
  msgstr ""
1038
 
1
+ # Copyright (C) 2015 Testimonials Widget
2
  # This file is distributed under the same license as the Testimonials Widget package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Testimonials Widget 3.0.3\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/testimonials-widget\n"
7
+ "POT-Creation-Date: 2015-01-07 23:09:55+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
11
+ "PO-Revision-Date: 2015-MO-DA HO:MI+ZONE\n"
12
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
  "Language-Team: LANGUAGE <LL@li.org>\n"
14
 
63
  msgstr ""
64
 
65
  #: includes/class-testimonials-widget-settings.php:97
66
+ #: includes/class-testimonials-widget.php:137
67
  msgid "Settings"
68
  msgstr ""
69
 
116
  msgstr ""
117
 
118
  #: includes/class-testimonials-widget-settings.php:140
119
+ #: includes/class-testimonials-widget.php:574
120
+ #: includes/class-testimonials-widget.php:622
121
  msgid "Testimonials"
122
  msgstr ""
123
 
464
  msgstr ""
465
 
466
  #: includes/class-testimonials-widget-settings.php:484
467
+ msgid "Comma separated tag slugs or IDs."
468
  msgstr ""
469
 
470
  #: includes/class-testimonials-widget-settings.php:497
485
 
486
  #: includes/class-testimonials-widget-settings.php:508
487
  #: includes/class-testimonials-widget-settings.php:511
488
+ #: includes/class-testimonials-widget.php:504
489
+ #: includes/class-testimonials-widget.php:535
490
+ #: includes/class-testimonials-widget.php:1369
491
  msgid "Author"
492
  msgstr ""
493
 
494
  #: includes/class-testimonials-widget-settings.php:509
495
+ #: includes/class-testimonials-widget.php:506
496
  msgid "Date"
497
  msgstr ""
498
 
517
  msgstr ""
518
 
519
  #: includes/class-testimonials-widget-settings.php:525
520
+ #: includes/class-testimonials-widget.php:540
521
+ #: includes/class-testimonials-widget.php:1375
522
  msgid "Job Title"
523
  msgstr ""
524
 
525
  #: includes/class-testimonials-widget-settings.php:526
526
+ #: includes/class-testimonials-widget.php:555
527
+ #: includes/class-testimonials-widget.php:1393
528
  msgid "Email"
529
  msgstr ""
530
 
531
  #: includes/class-testimonials-widget-settings.php:527
532
+ #: includes/class-testimonials-widget.php:545
533
+ #: includes/class-testimonials-widget.php:1381
534
  msgid "Location"
535
  msgstr ""
536
 
537
  #: includes/class-testimonials-widget-settings.php:528
538
+ #: includes/class-testimonials-widget.php:550
539
+ #: includes/class-testimonials-widget.php:1387
540
  msgid "Company"
541
  msgstr ""
542
 
543
  #: includes/class-testimonials-widget-settings.php:529
544
+ #: includes/class-testimonials-widget.php:560
545
+ #: includes/class-testimonials-widget.php:1399
546
  msgid "URL"
547
  msgstr ""
548
 
690
 
691
  #: includes/class-testimonials-widget-tag-cloud-widget.php:63
692
  #: includes/class-testimonials-widget-tag-cloud-widget.php:70
693
+ #: includes/class-testimonials-widget.php:511
694
+ #: includes/class-testimonials-widget.php:514
695
  msgid "Category"
696
  msgstr ""
697
 
698
  #: includes/class-testimonials-widget-tag-cloud-widget.php:64
699
  #: includes/class-testimonials-widget-tag-cloud-widget.php:71
700
+ #: includes/class-testimonials-widget.php:512
701
+ #: includes/class-testimonials-widget.php:515
702
  msgid "Tags"
703
  msgstr ""
704
 
706
  msgid "Taxonomy"
707
  msgstr ""
708
 
709
+ #: includes/class-testimonials-widget.php:368
710
  msgid "If your Testimonials display has gone to funky town, please <a href=\"%s\">read the FAQ</a> about possible CSS fixes."
711
  msgstr ""
712
 
713
+ #: includes/class-testimonials-widget.php:505
714
  msgid "Published by"
715
  msgstr ""
716
 
717
+ #: includes/class-testimonials-widget.php:520
718
  msgid "ID"
719
  msgstr ""
720
 
721
+ #: includes/class-testimonials-widget.php:525
722
  msgid "Image"
723
  msgstr ""
724
 
725
+ #: includes/class-testimonials-widget.php:530
726
  msgid "Shortcodes"
727
  msgstr ""
728
 
729
+ #: includes/class-testimonials-widget.php:571
730
  msgid "Add New"
731
  msgstr ""
732
 
733
+ #: includes/class-testimonials-widget.php:572
734
+ #: includes/class-testimonials-widget.php:575
735
  msgid "Add New Testimonial"
736
  msgstr ""
737
 
738
+ #: includes/class-testimonials-widget.php:573
739
  msgid "Edit Testimonial"
740
  msgstr ""
741
 
742
+ #: includes/class-testimonials-widget.php:576
743
  #: includes/class-testimonials-widget.php:874
744
  msgid "No testimonials found"
745
  msgstr ""
746
 
747
+ #: includes/class-testimonials-widget.php:577
748
  msgid "No testimonials found in Trash"
749
  msgstr ""
750
 
751
+ #: includes/class-testimonials-widget.php:579
752
  msgid "Search Testimonials"
753
  msgstr ""
754
 
755
+ #: includes/class-testimonials-widget.php:580
756
+ #: includes/class-testimonials-widget.php:1460
757
+ #: includes/class-testimonials-widget.php:1828
758
  msgid "Testimonial"
759
  msgstr ""
760
 
761
+ #: includes/class-testimonials-widget.php:581
762
  msgid "View Testimonial"
763
  msgstr ""
764
 
765
+ #: includes/class-testimonials-widget.php:1372
766
  msgid "Use when the testimonial title is not the authors' name."
767
  msgstr ""
768
 
769
+ #: includes/class-testimonials-widget.php:1396
770
  msgid "If an email is provided, but not an image, a Gravatar icon will be attempted to be loaded."
771
  msgstr ""
772
 
773
+ #: includes/class-testimonials-widget.php:1411
774
  msgid "Testimonial Data"
775
  msgstr ""
776
 
777
+ #: includes/class-testimonials-widget.php:1435
778
  msgid "Testimonial updated. <a href=\"%s\">View testimonial</a>"
779
  msgstr ""
780
 
781
+ #: includes/class-testimonials-widget.php:1436
782
  msgid "Custom field updated."
783
  msgstr ""
784
 
785
+ #: includes/class-testimonials-widget.php:1437
786
  msgid "Custom field deleted."
787
  msgstr ""
788
 
789
+ #: includes/class-testimonials-widget.php:1438
790
  msgid "Testimonial updated."
791
  msgstr ""
792
 
793
  #. translators: %s: date and time of the revision
794
 
795
+ #: includes/class-testimonials-widget.php:1440
796
  msgid "Testimonial restored to revision from %s"
797
  msgstr ""
798
 
799
+ #: includes/class-testimonials-widget.php:1441
800
  msgid "Testimonial published. <a href=\"%s\">View testimonial</a>"
801
  msgstr ""
802
 
803
+ #: includes/class-testimonials-widget.php:1442
804
  msgid "Testimonial saved."
805
  msgstr ""
806
 
807
+ #: includes/class-testimonials-widget.php:1443
808
  msgid "Testimonial submitted. <a target=\"_blank\" href=\"%s\">Preview testimonial</a>"
809
  msgstr ""
810
 
811
+ #: includes/class-testimonials-widget.php:1444
812
  msgid "Testimonial scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Preview testimonial</a>"
813
  msgstr ""
814
 
815
+ #: includes/class-testimonials-widget.php:1445
816
  msgid "Testimonial draft updated. <a target=\"_blank\" href=\"%s\">Preview testimonial</a>"
817
  msgstr ""
818
 
819
+ #: includes/class-testimonials-widget.php:1723
820
  msgid "If your Testimonials display has gone to funky town, please <a href=\"%s\">read the FAQ</a> about possible fixes."
821
  msgstr ""
822
 
823
+ #: includes/class-testimonials-widget.php:1742
824
  msgid "Failed version check"
825
  msgstr ""
826
 
827
+ #: includes/class-testimonials-widget.php:1773
828
  msgid "Shortcode"
829
  msgstr ""
830
 
831
+ #: includes/class-testimonials-widget.php:2211
832
+ #: includes/class-testimonials-widget.php:2284
833
  msgid "Used with: "
834
  msgstr ""
835
 
836
+ #: includes/class-testimonials-widget.php:2248
837
+ #: includes/class-testimonials-widget.php:2312
838
  msgid "Options: "
839
  msgstr ""
840
 
841
+ #: includes/class-testimonials-widget.php:2253
842
+ #: includes/class-testimonials-widget.php:2317
843
  msgid "Usage: "
844
  msgstr ""
845
 
1032
  msgid "%s license not saved."
1033
  msgstr ""
1034
 
1035
+ #: includes/libraries/aihrus-framework/includes/class-aihrus-licensing.php:175
1036
  msgid "%s license deactivated."
1037
  msgstr ""
1038
 
readme.txt CHANGED
@@ -5,7 +5,7 @@ Donate link: http://aihr.us/about-aihrus/donate/
5
  Tags: aihrus, client, customer, portfolio, quote, quotes, random, recommendation, reference, review, reviews, slider, testimonial, testimonials, wpml
6
  Requires at least: 3.6
7
  Tested up to: 4.1.0
8
- Stable tag: 3.0.2
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -94,7 +94,8 @@ The single testimonial view supports image, author, title, location, email, comp
94
 
95
  = Shortcode Examples =
96
 
97
- Read [EXAMPLES](https://github.com/michael-cannon/testimonials-widget/blob/master/EXAMPLES.md).
 
98
 
99
  = Shortcode and Widget Options =
100
 
@@ -281,7 +282,7 @@ This is a major overhaul *without* backwards compliance of over 80 changes. Plea
281
 
282
  * Got `Parse error: syntax error, unexpected T_STATIC…`? See [Most Aihrus Plugins Require PHP 5.3+](https://aihrus.zendesk.com/entries/30678006)
283
  * Got `The plugin does not have a valid header` error? See [Error: The plugin does not have a valid header](https://aihrus.zendesk.com/entries/68888915)
284
- * Shortcode not working? Make sure your theme isn't using same shortcode.
285
  * [404 - Page not found](https://aihrus.zendesk.com/entries/23679301)
286
  * [Add testimonials using Gravity Forms](http://webtrainingwheels.com/how-to-collect-user-submitted-testimonials-wordpress/)
287
  * [Change styling or debug CSS](https://aihrus.zendesk.com/entries/24910733)
5
  Tags: aihrus, client, customer, portfolio, quote, quotes, random, recommendation, reference, review, reviews, slider, testimonial, testimonials, wpml
6
  Requires at least: 3.6
7
  Tested up to: 4.1.0
8
+ Stable tag: 3.0.3
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
94
 
95
  = Shortcode Examples =
96
 
97
+ * Read [EXAMPLES](https://github.com/michael-cannon/testimonials-widget/blob/master/EXAMPLES.md).
98
+ * View [Testimonials Widget demo](http://aihr.us/testimonials-examples/).
99
 
100
  = Shortcode and Widget Options =
101
 
282
 
283
  * Got `Parse error: syntax error, unexpected T_STATIC…`? See [Most Aihrus Plugins Require PHP 5.3+](https://aihrus.zendesk.com/entries/30678006)
284
  * Got `The plugin does not have a valid header` error? See [Error: The plugin does not have a valid header](https://aihrus.zendesk.com/entries/68888915)
285
+ * Shortcode not working? Read about [enabling shortcodes in widgets](https://aihrus.zendesk.com/entries/23677312) and make sure your theme isn't using the same shortcode.
286
  * [404 - Page not found](https://aihrus.zendesk.com/entries/23679301)
287
  * [Add testimonials using Gravity Forms](http://webtrainingwheels.com/how-to-collect-user-submitted-testimonials-wordpress/)
288
  * [Change styling or debug CSS](https://aihrus.zendesk.com/entries/24910733)
templates/testimonial-open.php CHANGED
@@ -8,6 +8,7 @@ $testimonial = $tw_template_args['testimonial'];
8
  $widget_number = $tw_template_args['widget_number'];
9
 
10
  $class = 'testimonials-widget-testimonial';
 
11
  if ( is_single() && empty( $widget_number ) ) {
12
  $class .= ' single';
13
  } elseif ( $is_list ) {
@@ -16,7 +17,7 @@ if ( is_single() && empty( $widget_number ) ) {
16
  // widget display
17
  $refresh_interval = $atts['refresh_interval'];
18
  if ( ! $is_first && ! empty( $refresh_interval ) && ! in_array( $atts['transition_mode'], array( 'horizontal', 'vertical' ) ) ) {
19
- $class .= ' display-none';
20
  }
21
  }
22
 
@@ -24,7 +25,11 @@ if ( $atts['keep_whitespace'] ) {
24
  $class .= ' whitespace';
25
  }
26
 
27
- $post_id = $testimonial['post_id'];
 
 
 
 
28
  if ( ! empty( $post_id ) ) {
29
  $class = join( ' ', get_post_class( $class, $post_id ) );
30
  } else {
@@ -37,5 +42,5 @@ if ( $atts['remove_hentry'] ) {
37
 
38
  $class = apply_filters( 'tw_get_testimonial_html_class', $class, $testimonial, $atts, $is_list, $is_first, $widget_number );
39
  ?>
40
- <div class="<?php echo $class; ?>">
41
  <!-- <?php echo Testimonials_Widget::ID; ?>:<?php echo $post_id; ?>: -->
8
  $widget_number = $tw_template_args['widget_number'];
9
 
10
  $class = 'testimonials-widget-testimonial';
11
+ $style = '';
12
  if ( is_single() && empty( $widget_number ) ) {
13
  $class .= ' single';
14
  } elseif ( $is_list ) {
17
  // widget display
18
  $refresh_interval = $atts['refresh_interval'];
19
  if ( ! $is_first && ! empty( $refresh_interval ) && ! in_array( $atts['transition_mode'], array( 'horizontal', 'vertical' ) ) ) {
20
+ $style = 'display: none;';
21
  }
22
  }
23
 
25
  $class .= ' whitespace';
26
  }
27
 
28
+ $post_id = false;
29
+ if ( isset( $testimonial['post_id'] ) ) {
30
+ $post_id = $testimonial['post_id'];
31
+ }
32
+
33
  if ( ! empty( $post_id ) ) {
34
  $class = join( ' ', get_post_class( $class, $post_id ) );
35
  } else {
42
 
43
  $class = apply_filters( 'tw_get_testimonial_html_class', $class, $testimonial, $atts, $is_list, $is_first, $widget_number );
44
  ?>
45
+ <div class="<?php echo $class; ?>" style="<?php echo $style; ?>">
46
  <!-- <?php echo Testimonials_Widget::ID; ?>:<?php echo $post_id; ?>: -->
templates/testimonials-archives.php CHANGED
@@ -6,8 +6,8 @@ $atts = $tw_template_args['atts'];
6
  $c = ! empty( $atts['count'] ) ? '1' : '0';
7
  $d = ! empty( $atts['dropdown'] ) ? '1' : '0';
8
 
9
- add_filter( 'getarchives_where', array( Testimonials_Widget, 'getarchives_where' ), 10, 2 );
10
- add_filter( 'get_archives_link', array( Testimonials_Widget, 'get_archives_link' ), 10, 1 );
11
 
12
  if ( $d ) {
13
  ?>
@@ -37,6 +37,6 @@ if ( $d ) {
37
  <?php
38
  }
39
 
40
- remove_filter( 'get_archives_link', array( Testimonials_Widget, 'get_archives_link' ), 10, 1 );
41
- remove_filter( 'getarchives_where', array( Testimonials_Widget, 'getarchives_where' ), 10, 2 );
42
  ?>
6
  $c = ! empty( $atts['count'] ) ? '1' : '0';
7
  $d = ! empty( $atts['dropdown'] ) ? '1' : '0';
8
 
9
+ add_filter( 'getarchives_where', array( 'Testimonials_Widget', 'getarchives_where' ), 10, 2 );
10
+ add_filter( 'get_archives_link', array( 'Testimonials_Widget', 'get_archives_link' ), 10, 1 );
11
 
12
  if ( $d ) {
13
  ?>
37
  <?php
38
  }
39
 
40
+ remove_filter( 'get_archives_link', array( 'Testimonials_Widget', 'get_archives_link' ), 10, 1 );
41
+ remove_filter( 'getarchives_where', array( 'Testimonials_Widget', 'getarchives_where' ), 10, 2 );
42
  ?>
testimonials-widget.php CHANGED
@@ -4,7 +4,7 @@
4
  * Plugin URI: http://wordpress.org/plugins/testimonials-widget/
5
  * Description: Easily add social proofing to your website with Testimonials Widget. List or slide reviews via functions, shortcodes, or widgets.
6
  * lets you socially randomly slide or list selected portfolios, quotes, reviews, or text with images or videos on your WordPress site.
7
- * Version: 3.0.2
8
  * Author: Michael Cannon
9
  * Author URI: http://aihr.us/resume/
10
  * License: GPLv2 or later
@@ -36,7 +36,7 @@ if ( ! defined( 'ABSPATH' ) ) {
36
  }
37
 
38
  if ( ! defined( 'TW_AIHR_VERSION' ) ) {
39
- define( 'TW_AIHR_VERSION', '1.1.6' );
40
  }
41
 
42
  if ( ! defined( 'TW_BASE' ) ) {
@@ -64,7 +64,7 @@ if ( ! defined( 'TW_PREMIUM_LINK' ) ) {
64
  }
65
 
66
  if ( ! defined( 'TW_VERSION' ) ) {
67
- define( 'TW_VERSION', '3.0.2' );
68
  }
69
 
70
  require_once TW_DIR_INC . 'requirements.php';
4
  * Plugin URI: http://wordpress.org/plugins/testimonials-widget/
5
  * Description: Easily add social proofing to your website with Testimonials Widget. List or slide reviews via functions, shortcodes, or widgets.
6
  * lets you socially randomly slide or list selected portfolios, quotes, reviews, or text with images or videos on your WordPress site.
7
+ * Version: 3.0.3
8
  * Author: Michael Cannon
9
  * Author URI: http://aihr.us/resume/
10
  * License: GPLv2 or later
36
  }
37
 
38
  if ( ! defined( 'TW_AIHR_VERSION' ) ) {
39
+ define( 'TW_AIHR_VERSION', '1.1.7RC1' );
40
  }
41
 
42
  if ( ! defined( 'TW_BASE' ) ) {
64
  }
65
 
66
  if ( ! defined( 'TW_VERSION' ) ) {
67
+ define( 'TW_VERSION', '3.0.3' );
68
  }
69
 
70
  require_once TW_DIR_INC . 'requirements.php';