Version Description
- Add span.testimonialswidget_join for author , join text
- Add nl2br for testimonials display on a page
Download this release
Release Info
Developer | comprock |
Plugin | Testimonials Widget |
Version | 0.2.5 |
Comparing to | |
See all releases |
Code changes from version 0.2.4 to 0.2.5
- readme.txt +23 -7
- testimonials-widget.php +4 -4
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://typo3vagabond.com/about-typo3-vagabond/donate/
|
|
4 |
Tags: testimonial, testimonials, quote, quotes, quotations, random quote, sidebar, widget
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 3.3.1
|
7 |
-
Stable tag: 0.2.
|
8 |
|
9 |
Testimonials widget plugin allows you display testimonials in a widget on your WordPress blog.
|
10 |
|
@@ -34,7 +34,7 @@ You can make a simple client or portfolio rotator by using the testimonial field
|
|
34 |
* Allows for multiple widgets. Useful for using tags to keep widgets separated.
|
35 |
* Compatible with WordPress 3.0 multi-site functionality.
|
36 |
|
37 |
-
= Shortcode [
|
38 |
* Options
|
39 |
* hide_author - default show; hide_author=true
|
40 |
* hide_source - default show; hide_source=true
|
@@ -42,10 +42,10 @@ You can make a simple client or portfolio rotator by using the testimonial field
|
|
42 |
* limit - default no limit; limit=10
|
43 |
* random - default newest first; random=true
|
44 |
* tags - default none; tags=fire or tags="fire,water"
|
45 |
-
* [
|
46 |
-
* [
|
47 |
-
* [
|
48 |
-
* [
|
49 |
|
50 |
= Need More Power? =
|
51 |
Check out the [Quotes Collection](http://wordpress.org/extend/plugins/quotes-collection/) plugin by [SriniG](http://profiles.wordpress.org/users/SriniG/profile/public/)
|
@@ -58,6 +58,20 @@ Check out the [Quotes Collection](http://wordpress.org/extend/plugins/quotes-col
|
|
58 |
|
59 |
== Frequently Asked Questions ==
|
60 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
61 |
= Testimonials widget is not showing up =
|
62 |
|
63 |
The usual problem is that jQuery is included twice. Once by WordPress and again by a theme. Remove the jQuery version included by your theme and you should be fine.
|
@@ -111,7 +125,8 @@ Change the value of the variable `$testimonialswidget_admin_userlevel` on line 3
|
|
111 |
-
|
112 |
|
113 |
= 0.2.5 =
|
114 |
-
*
|
|
|
115 |
|
116 |
= 0.2.4 =
|
117 |
* Shortcode added - Thank you Hal Gatewood
|
@@ -136,3 +151,4 @@ Change the value of the variable `$testimonialswidget_admin_userlevel` on line 3
|
|
136 |
|
137 |
== TODO ==
|
138 |
* No nl2br when content is already using HTML
|
|
4 |
Tags: testimonial, testimonials, quote, quotes, quotations, random quote, sidebar, widget
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 3.3.1
|
7 |
+
Stable tag: 0.2.5
|
8 |
|
9 |
Testimonials widget plugin allows you display testimonials in a widget on your WordPress blog.
|
10 |
|
34 |
* Allows for multiple widgets. Useful for using tags to keep widgets separated.
|
35 |
* Compatible with WordPress 3.0 multi-site functionality.
|
36 |
|
37 |
+
= Shortcode [testimonialswidget_list] =
|
38 |
* Options
|
39 |
* hide_author - default show; hide_author=true
|
40 |
* hide_source - default show; hide_source=true
|
42 |
* limit - default no limit; limit=10
|
43 |
* random - default newest first; random=true
|
44 |
* tags - default none; tags=fire or tags="fire,water"
|
45 |
+
* [testimonialswidget_list] Examples
|
46 |
+
* [testimonialswidget_list hide_author=true hide_source=true]
|
47 |
+
* [testimonialswidget_list tags="test,fun" limit=1]
|
48 |
+
* [testimonialswidget_list ids=1]
|
49 |
|
50 |
= Need More Power? =
|
51 |
Check out the [Quotes Collection](http://wordpress.org/extend/plugins/quotes-collection/) plugin by [SriniG](http://profiles.wordpress.org/users/SriniG/profile/public/)
|
58 |
|
59 |
== Frequently Asked Questions ==
|
60 |
|
61 |
+
= How can I add the testimonials plugin to any where on the site? ie. somewhere other than the side bar like the contact page etc.? =
|
62 |
+
|
63 |
+
Use [testimonialswidget_list]. Usage examples are at the bottom of http://wordpress.org/extend/plugins/testimonials-widget/.
|
64 |
+
|
65 |
+
Look for `[testimonialswidget_list]`.
|
66 |
+
|
67 |
+
|
68 |
+
= How do I hide the comma after the author? =
|
69 |
+
|
70 |
+
Use CSS.
|
71 |
+
`span.testimonialswidget_join {
|
72 |
+
display: none;
|
73 |
+
}`
|
74 |
+
|
75 |
= Testimonials widget is not showing up =
|
76 |
|
77 |
The usual problem is that jQuery is included twice. Once by WordPress and again by a theme. Remove the jQuery version included by your theme and you should be fine.
|
125 |
-
|
126 |
|
127 |
= 0.2.5 =
|
128 |
+
* Add span.testimonialswidget_join for author , join text
|
129 |
+
* Add nl2br for testimonials display on a page
|
130 |
|
131 |
= 0.2.4 =
|
132 |
* Shortcode added - Thank you Hal Gatewood
|
151 |
|
152 |
== TODO ==
|
153 |
* No nl2br when content is already using HTML
|
154 |
+
* TBD
|
testimonials-widget.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/*
|
3 |
Plugin Name: Testimonials Widget
|
4 |
Description: Testimonial widget plugin helps you display testimonials in a sidebar on your WordPress blog.
|
5 |
-
Version: 0.2.
|
6 |
Author: Michael Cannon
|
7 |
Author URI: http://typo3vagabond.com/about-typo3-vagabond/hire-michael/
|
8 |
License: GPL2
|
@@ -130,7 +130,7 @@ EOF;
|
|
130 |
$cite = '<span class="testimonialswidget_author">'. make_clickable( $testimonial['author'] ) .'</span>';
|
131 |
|
132 |
if($show_source && ! empty( $testimonial['source'] ) ) {
|
133 |
-
if($cite) $cite .= '
|
134 |
$cite .= '<span class="testimonialswidget_source">'. make_clickable( $testimonial['source'] ) .'</span>';
|
135 |
}
|
136 |
if($cite) $cite = " <cite>— {$cite}</cite>";
|
@@ -287,9 +287,9 @@ function testimonialswidget_list_shortcode($atts, $content = null) {
|
|
287 |
|
288 |
if($show_source && ! empty( $testimonial['source'] ) ) {
|
289 |
if($cite)
|
290 |
-
$cite
|
291 |
|
292 |
-
$cite .= '<span class="testimonialswidget_source">'. make_clickable( $testimonial['source'] ) .'</span>';
|
293 |
}
|
294 |
|
295 |
if($cite)
|
2 |
/*
|
3 |
Plugin Name: Testimonials Widget
|
4 |
Description: Testimonial widget plugin helps you display testimonials in a sidebar on your WordPress blog.
|
5 |
+
Version: 0.2.5
|
6 |
Author: Michael Cannon
|
7 |
Author URI: http://typo3vagabond.com/about-typo3-vagabond/hire-michael/
|
8 |
License: GPL2
|
130 |
$cite = '<span class="testimonialswidget_author">'. make_clickable( $testimonial['author'] ) .'</span>';
|
131 |
|
132 |
if($show_source && ! empty( $testimonial['source'] ) ) {
|
133 |
+
if($cite) $cite .= '<span class="testimonialswidget_join">, </span>';
|
134 |
$cite .= '<span class="testimonialswidget_source">'. make_clickable( $testimonial['source'] ) .'</span>';
|
135 |
}
|
136 |
if($cite) $cite = " <cite>— {$cite}</cite>";
|
287 |
|
288 |
if($show_source && ! empty( $testimonial['source'] ) ) {
|
289 |
if($cite)
|
290 |
+
$cite .= '<span class="testimonialswidget_join">, </span>';
|
291 |
|
292 |
+
$cite .= '<span class="testimonialswidget_source">'. nl2br( make_clickable( $testimonial['source'] ) ) .'</span>';
|
293 |
}
|
294 |
|
295 |
if($cite)
|