Testimonials Widget - Version 2.18.2

Version Description

  • CSS class .display-none renamed .hide
Download this release

Release Info

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

Code changes from version 2.18.1 to 2.18.2

CHANGELOG.md CHANGED
@@ -2,6 +2,9 @@
2
 
3
  ## master
4
 
 
 
 
5
  ## 2.18.1
6
  * Add FAQ How do I create a testimonial record?
7
  * Add screenshot 21. Shortcode helpers on category and tag admin screens
2
 
3
  ## master
4
 
5
+ ## 2.18.2
6
+ * RESOLVE #57 Testimonials Stacking on first load
7
+
8
  ## 2.18.1
9
  * Add FAQ How do I create a testimonial record?
10
  * Add screenshot 21. Shortcode helpers on category and tag admin screens
assets/css/testimonials-widget-2.14.0.css CHANGED
@@ -13,7 +13,7 @@
13
  display: block;
14
  }
15
 
16
- .testimonials-widget-testimonials .display-none {
17
  /* staged testimonials */
18
  display: none;
19
  }
13
  display: block;
14
  }
15
 
16
+ .testimonials-widget-testimonials .hide {
17
  /* staged testimonials */
18
  display: none;
19
  }
assets/css/testimonials-widget.css CHANGED
@@ -4,6 +4,16 @@
4
  .testimonials-widget-testimonial {
5
  }
6
 
 
 
 
 
 
 
 
 
 
 
7
  .testimonials-widget-testimonials .paging {
8
  clear: both;
9
  font-weight: 700;
4
  .testimonials-widget-testimonial {
5
  }
6
 
7
+ .testimonials-widget-testimonials .active {
8
+ /* active testimonials */
9
+ display: block;
10
+ }
11
+
12
+ .testimonials-widget-testimonials .hide {
13
+ /* staged testimonials */
14
+ display: none;
15
+ }
16
+
17
  .testimonials-widget-testimonials .paging {
18
  clear: both;
19
  font-weight: 700;
includes/class-testimonials-widget.php CHANGED
@@ -904,7 +904,7 @@ function nextTestimonial{$widget_number}() {
904
  active.fadeOut({$fade_out_speed}, function() {
905
  active.removeClass('active');
906
  next.fadeIn({$fade_in_speed});
907
- next.removeClass('display-none');
908
  next.addClass('active');
909
 
910
  {INTERNAL_SCRIPTS}
@@ -1034,18 +1034,17 @@ EOF;
1034
  $do_schema = $atts['enable_schema'];
1035
  $keep_whitespace = $atts['keep_whitespace'];
1036
  $remove_hentry = $atts['remove_hentry'];
1037
- $use_bxslider = $atts['use_bxslider'];
1038
 
1039
  $class = 'testimonials-widget-testimonial';
1040
  if ( is_single() && empty( $widget_number ) )
1041
  $class .= ' single';
1042
  elseif ( $is_list )
1043
  $class .= ' list';
1044
- elseif ( ! $use_bxslider ) {
1045
  if ( $is_first )
1046
  $class .= ' active';
1047
  elseif ( ! $is_first )
1048
- $class .= ' display-none';
1049
  }
1050
 
1051
  if ( $keep_whitespace )
@@ -1856,8 +1855,8 @@ EOF;
1856
  $schema .= $item;
1857
  $schema .= "\n";
1858
 
1859
- $schema .= '</div>';
1860
- $schema .= "\n";
1861
 
1862
  $schema = apply_filters( 'testimonials_widget_schema', $schema, $testimonial, $atts );
1863
 
904
  active.fadeOut({$fade_out_speed}, function() {
905
  active.removeClass('active');
906
  next.fadeIn({$fade_in_speed});
907
+ next.removeClass('hide');
908
  next.addClass('active');
909
 
910
  {INTERNAL_SCRIPTS}
1034
  $do_schema = $atts['enable_schema'];
1035
  $keep_whitespace = $atts['keep_whitespace'];
1036
  $remove_hentry = $atts['remove_hentry'];
 
1037
 
1038
  $class = 'testimonials-widget-testimonial';
1039
  if ( is_single() && empty( $widget_number ) )
1040
  $class .= ' single';
1041
  elseif ( $is_list )
1042
  $class .= ' list';
1043
+ else {
1044
  if ( $is_first )
1045
  $class .= ' active';
1046
  elseif ( ! $is_first )
1047
+ $class .= ' hide';
1048
  }
1049
 
1050
  if ( $keep_whitespace )
1855
  $schema .= $item;
1856
  $schema .= "\n";
1857
 
1858
+ $schema .= '</div>';
1859
+ $schema .= "\n";
1860
 
1861
  $schema = apply_filters( 'testimonials_widget_schema', $schema, $testimonial, $atts );
1862
 
languages/testimonials-widget.pot CHANGED
@@ -2,9 +2,9 @@
2
  # This file is distributed under the same license as the Testimonials by Aihrus package.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Testimonials by Aihrus 2.18.1\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/testimonials-widget\n"
7
- "POT-Creation-Date: 2014-02-17 05:03:44+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
@@ -370,31 +370,31 @@ msgstr ""
370
 
371
  #: includes/class-testimonials-widget-settings.php:453
372
  #: includes/class-testimonials-widget.php:547
373
- #: includes/class-testimonials-widget.php:1620
374
  msgid "Job Title"
375
  msgstr ""
376
 
377
  #: includes/class-testimonials-widget-settings.php:454
378
  #: includes/class-testimonials-widget.php:549
379
- #: includes/class-testimonials-widget.php:1632
380
  msgid "Email"
381
  msgstr ""
382
 
383
  #: includes/class-testimonials-widget-settings.php:455
384
  #: includes/class-testimonials-widget.php:548
385
- #: includes/class-testimonials-widget.php:1626
386
  msgid "Location"
387
  msgstr ""
388
 
389
  #: includes/class-testimonials-widget-settings.php:456
390
  #: includes/class-testimonials-widget.php:550
391
- #: includes/class-testimonials-widget.php:1638
392
  msgid "Company"
393
  msgstr ""
394
 
395
  #: includes/class-testimonials-widget-settings.php:457
396
  #: includes/class-testimonials-widget.php:551
397
- #: includes/class-testimonials-widget.php:1644
398
  msgid "URL"
399
  msgstr ""
400
 
@@ -580,7 +580,7 @@ msgid "This widget's unique CSS class for styling"
580
  msgstr ""
581
 
582
  #: includes/class-testimonials-widget.php:141
583
- #: includes/class-testimonials-widget.php:1987
584
  msgid "Testimonials Shortcode Examples"
585
  msgstr ""
586
 
@@ -645,7 +645,7 @@ msgid "Search Testimonials"
645
  msgstr ""
646
 
647
  #: includes/class-testimonials-widget.php:582
648
- #: includes/class-testimonials-widget.php:1732
649
  msgid "Testimonial"
650
  msgstr ""
651
 
@@ -653,77 +653,77 @@ msgstr ""
653
  msgid "View Testimonial"
654
  msgstr ""
655
 
656
- #: includes/class-testimonials-widget.php:1143
657
  msgid "…"
658
  msgstr ""
659
 
660
- #: includes/class-testimonials-widget.php:1350
661
  msgid "&laquo;"
662
  msgstr ""
663
 
664
- #: includes/class-testimonials-widget.php:1358
665
  msgid "&raquo;"
666
  msgstr ""
667
 
668
- #: includes/class-testimonials-widget.php:1656
669
  msgid "Testimonial Data"
670
  msgstr ""
671
 
672
- #: includes/class-testimonials-widget.php:1681
673
  msgid "Enter title here"
674
  msgstr ""
675
 
676
- #: includes/class-testimonials-widget.php:1682
677
  msgid "Enter testimonial source here"
678
  msgstr ""
679
 
680
- #: includes/class-testimonials-widget.php:1707
681
  msgid "Testimonial updated. <a href=\"%s\">View testimonial</a>"
682
  msgstr ""
683
 
684
- #: includes/class-testimonials-widget.php:1708
685
  msgid "Custom field updated."
686
  msgstr ""
687
 
688
- #: includes/class-testimonials-widget.php:1709
689
  msgid "Custom field deleted."
690
  msgstr ""
691
 
692
- #: includes/class-testimonials-widget.php:1710
693
  msgid "Testimonial updated."
694
  msgstr ""
695
 
696
  #. translators: %s: date and time of the revision
697
 
698
- #: includes/class-testimonials-widget.php:1712
699
  msgid "Testimonial restored to revision from %s"
700
  msgstr ""
701
 
702
- #: includes/class-testimonials-widget.php:1713
703
  msgid "Testimonial published. <a href=\"%s\">View testimonial</a>"
704
  msgstr ""
705
 
706
- #: includes/class-testimonials-widget.php:1714
707
  msgid "Testimonial saved."
708
  msgstr ""
709
 
710
- #: includes/class-testimonials-widget.php:1715
711
  msgid "Testimonial submitted. <a target=\"_blank\" href=\"%s\">Preview testimonial</a>"
712
  msgstr ""
713
 
714
- #: includes/class-testimonials-widget.php:1716
715
  msgid "Testimonial scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Preview testimonial</a>"
716
  msgstr ""
717
 
718
- #: includes/class-testimonials-widget.php:1717
719
  msgid "Testimonial draft updated. <a target=\"_blank\" href=\"%s\">Preview testimonial</a>"
720
  msgstr ""
721
 
722
- #: includes/class-testimonials-widget.php:1978
723
  msgid "If your Testimonials display has gone to funky town, please <a href=\"%s\">read the FAQ</a> about possible fixes."
724
  msgstr ""
725
 
726
- #: includes/class-testimonials-widget.php:2059
727
  msgid "Shortcode"
728
  msgstr ""
729
 
2
  # This file is distributed under the same license as the Testimonials by Aihrus package.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Testimonials by Aihrus 2.18.2\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/testimonials-widget\n"
7
+ "POT-Creation-Date: 2014-02-21 01:30:02+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
370
 
371
  #: includes/class-testimonials-widget-settings.php:453
372
  #: includes/class-testimonials-widget.php:547
373
+ #: includes/class-testimonials-widget.php:1619
374
  msgid "Job Title"
375
  msgstr ""
376
 
377
  #: includes/class-testimonials-widget-settings.php:454
378
  #: includes/class-testimonials-widget.php:549
379
+ #: includes/class-testimonials-widget.php:1631
380
  msgid "Email"
381
  msgstr ""
382
 
383
  #: includes/class-testimonials-widget-settings.php:455
384
  #: includes/class-testimonials-widget.php:548
385
+ #: includes/class-testimonials-widget.php:1625
386
  msgid "Location"
387
  msgstr ""
388
 
389
  #: includes/class-testimonials-widget-settings.php:456
390
  #: includes/class-testimonials-widget.php:550
391
+ #: includes/class-testimonials-widget.php:1637
392
  msgid "Company"
393
  msgstr ""
394
 
395
  #: includes/class-testimonials-widget-settings.php:457
396
  #: includes/class-testimonials-widget.php:551
397
+ #: includes/class-testimonials-widget.php:1643
398
  msgid "URL"
399
  msgstr ""
400
 
580
  msgstr ""
581
 
582
  #: includes/class-testimonials-widget.php:141
583
+ #: includes/class-testimonials-widget.php:1986
584
  msgid "Testimonials Shortcode Examples"
585
  msgstr ""
586
 
645
  msgstr ""
646
 
647
  #: includes/class-testimonials-widget.php:582
648
+ #: includes/class-testimonials-widget.php:1731
649
  msgid "Testimonial"
650
  msgstr ""
651
 
653
  msgid "View Testimonial"
654
  msgstr ""
655
 
656
+ #: includes/class-testimonials-widget.php:1142
657
  msgid "…"
658
  msgstr ""
659
 
660
+ #: includes/class-testimonials-widget.php:1349
661
  msgid "&laquo;"
662
  msgstr ""
663
 
664
+ #: includes/class-testimonials-widget.php:1357
665
  msgid "&raquo;"
666
  msgstr ""
667
 
668
+ #: includes/class-testimonials-widget.php:1655
669
  msgid "Testimonial Data"
670
  msgstr ""
671
 
672
+ #: includes/class-testimonials-widget.php:1680
673
  msgid "Enter title here"
674
  msgstr ""
675
 
676
+ #: includes/class-testimonials-widget.php:1681
677
  msgid "Enter testimonial source here"
678
  msgstr ""
679
 
680
+ #: includes/class-testimonials-widget.php:1706
681
  msgid "Testimonial updated. <a href=\"%s\">View testimonial</a>"
682
  msgstr ""
683
 
684
+ #: includes/class-testimonials-widget.php:1707
685
  msgid "Custom field updated."
686
  msgstr ""
687
 
688
+ #: includes/class-testimonials-widget.php:1708
689
  msgid "Custom field deleted."
690
  msgstr ""
691
 
692
+ #: includes/class-testimonials-widget.php:1709
693
  msgid "Testimonial updated."
694
  msgstr ""
695
 
696
  #. translators: %s: date and time of the revision
697
 
698
+ #: includes/class-testimonials-widget.php:1711
699
  msgid "Testimonial restored to revision from %s"
700
  msgstr ""
701
 
702
+ #: includes/class-testimonials-widget.php:1712
703
  msgid "Testimonial published. <a href=\"%s\">View testimonial</a>"
704
  msgstr ""
705
 
706
+ #: includes/class-testimonials-widget.php:1713
707
  msgid "Testimonial saved."
708
  msgstr ""
709
 
710
+ #: includes/class-testimonials-widget.php:1714
711
  msgid "Testimonial submitted. <a target=\"_blank\" href=\"%s\">Preview testimonial</a>"
712
  msgstr ""
713
 
714
+ #: includes/class-testimonials-widget.php:1715
715
  msgid "Testimonial scheduled for: <strong>%1$s</strong>. <a target=\"_blank\" href=\"%2$s\">Preview testimonial</a>"
716
  msgstr ""
717
 
718
+ #: includes/class-testimonials-widget.php:1716
719
  msgid "Testimonial draft updated. <a target=\"_blank\" href=\"%s\">Preview testimonial</a>"
720
  msgstr ""
721
 
722
+ #: includes/class-testimonials-widget.php:1977
723
  msgid "If your Testimonials display has gone to funky town, please <a href=\"%s\">read the FAQ</a> about possible fixes."
724
  msgstr ""
725
 
726
+ #: includes/class-testimonials-widget.php:2058
727
  msgid "Shortcode"
728
  msgstr ""
729
 
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.9.0
8
- Stable tag: 2.18.1
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
@@ -413,6 +413,10 @@ See [Changelog](https://github.com/michael-cannon/testimonials-widget/blob/maste
413
 
414
  == Upgrade Notice ==
415
 
 
 
 
 
416
  = 2.18.1 =
417
 
418
  * CSS is back to being always loaded in the header
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.9.0
8
+ Stable tag: 2.18.2
9
  License: GPLv2 or later
10
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
11
 
413
 
414
  == Upgrade Notice ==
415
 
416
+ = 2.18.2 =
417
+
418
+ * CSS class `.display-none` renamed `.hide`
419
+
420
  = 2.18.1 =
421
 
422
  * CSS is back to being always loaded in the header
testimonials-widget.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: Testimonials by Aihrus
4
  * Plugin URI: http://wordpress.org/plugins/testimonials-widget/
5
  * Description: Testimonials by Aihrus lets you randomly slide or list selected portfolios, quotes, reviews, or text with images or videos on your WordPress site.
6
- * Version: 2.18.1
7
  * Author: Michael Cannon
8
  * Author URI: http://aihr.us/resume/
9
  * License: GPLv2 or later
@@ -48,7 +48,7 @@ if ( ! defined( 'TW_PREMIUM_LINK' ) )
48
  define( 'TW_PREMIUM_LINK', '<a href="http://aihr.us/downloads/testimonials-widget-premium-wordpress-plugin/">Buy Premium</a>' );
49
 
50
  if ( ! defined( 'TW_VERSION' ) )
51
- define( 'TW_VERSION', '2.18.1' );
52
 
53
  require_once TW_DIR_INC . 'requirements.php';
54
 
3
  * Plugin Name: Testimonials by Aihrus
4
  * Plugin URI: http://wordpress.org/plugins/testimonials-widget/
5
  * Description: Testimonials by Aihrus lets you randomly slide or list selected portfolios, quotes, reviews, or text with images or videos on your WordPress site.
6
+ * Version: 2.18.2
7
  * Author: Michael Cannon
8
  * Author URI: http://aihr.us/resume/
9
  * License: GPLv2 or later
48
  define( 'TW_PREMIUM_LINK', '<a href="http://aihr.us/downloads/testimonials-widget-premium-wordpress-plugin/">Buy Premium</a>' );
49
 
50
  if ( ! defined( 'TW_VERSION' ) )
51
+ define( 'TW_VERSION', '2.18.2' );
52
 
53
  require_once TW_DIR_INC . 'requirements.php';
54