Version Description
- Clean up CSS
- Remove q & cite p wrapper
Download this release
Release Info
Developer | comprock |
Plugin | Testimonials Widget |
Version | 0.2.13 |
Comparing to | |
See all releases |
Code changes from version 0.2.12 to 0.2.13
- readme.txt +12 -6
- testimonials-widget.css +38 -36
- testimonials-widget.php +5 -5
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.4.1
|
7 |
-
Stable tag: 0.2.
|
8 |
|
9 |
Testimonials widget plugin allows you display testimonials in a widget on your WordPress blog.
|
10 |
|
@@ -83,7 +83,7 @@ Look for `[testimonialswidget_list]`.
|
|
83 |
= How do I hide the comma after the author? =
|
84 |
|
85 |
Use CSS.
|
86 |
-
|
87 |
display: none;
|
88 |
}`
|
89 |
|
@@ -105,7 +105,9 @@ Specify a larger minimum height in the testimonials widget, see screenshot 2.
|
|
105 |
|
106 |
= How to get rid of the quotation marks that surround the random quote? =
|
107 |
|
108 |
-
|
|
|
|
|
109 |
|
110 |
= How to change the random quote text color? =
|
111 |
|
@@ -123,21 +125,21 @@ Each shortcode testimonial is wrapped by a `div` using classes `testimonialswidg
|
|
123 |
|
124 |
`
|
125 |
.testimonialswidget_testimonial_list {
|
126 |
-
padding-bottom: 1em;
|
127 |
}
|
128 |
`
|
129 |
Making the citation line a different color is a little trickier. The reason being is that applying a color to `.testimonialswidget_testimonial cite` will change the entire citation line in the widget display as well. To only change the shortcode testimonial citation color, try…
|
130 |
|
131 |
`
|
132 |
.testimonialswidget_testimonial_list cite {
|
133 |
-
color: blue;
|
134 |
}
|
135 |
`
|
136 |
If you're wanting to change only the source (URL/email address) color, then try.
|
137 |
|
138 |
`
|
139 |
.testimonialswidget_testimonial_list cite .testimonialswidget_source {
|
140 |
-
color: purple;
|
141 |
}
|
142 |
`
|
143 |
Like wise, the author uses class `testimonialswidget_author` and join ", " uses class `testimonialswidget_join`.
|
@@ -170,6 +172,10 @@ Change the value of the variable `$testimonialswidget_admin_userlevel` on line 3
|
|
170 |
= trunk =
|
171 |
-
|
172 |
|
|
|
|
|
|
|
|
|
173 |
= 0.2.12 =
|
174 |
* the_title filter fix
|
175 |
|
4 |
Tags: testimonial, testimonials, quote, quotes, quotations, random quote, sidebar, widget
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 3.4.1
|
7 |
+
Stable tag: 0.2.13
|
8 |
|
9 |
Testimonials widget plugin allows you display testimonials in a widget on your WordPress blog.
|
10 |
|
83 |
= How do I hide the comma after the author? =
|
84 |
|
85 |
Use CSS.
|
86 |
+
`.testimonialswidget_testimonial .testimonialswidget_join {
|
87 |
display: none;
|
88 |
}`
|
89 |
|
105 |
|
106 |
= How to get rid of the quotation marks that surround the random quote? =
|
107 |
|
108 |
+
`.testimonialswidget_testimonial q {
|
109 |
+
quotes: none;
|
110 |
+
}`
|
111 |
|
112 |
= How to change the random quote text color? =
|
113 |
|
125 |
|
126 |
`
|
127 |
.testimonialswidget_testimonial_list {
|
128 |
+
padding-bottom: 1em;
|
129 |
}
|
130 |
`
|
131 |
Making the citation line a different color is a little trickier. The reason being is that applying a color to `.testimonialswidget_testimonial cite` will change the entire citation line in the widget display as well. To only change the shortcode testimonial citation color, try…
|
132 |
|
133 |
`
|
134 |
.testimonialswidget_testimonial_list cite {
|
135 |
+
color: blue;
|
136 |
}
|
137 |
`
|
138 |
If you're wanting to change only the source (URL/email address) color, then try.
|
139 |
|
140 |
`
|
141 |
.testimonialswidget_testimonial_list cite .testimonialswidget_source {
|
142 |
+
color: purple;
|
143 |
}
|
144 |
`
|
145 |
Like wise, the author uses class `testimonialswidget_author` and join ", " uses class `testimonialswidget_join`.
|
172 |
= trunk =
|
173 |
-
|
174 |
|
175 |
+
= 0.2.13 =
|
176 |
+
* Clean up CSS
|
177 |
+
* Remove q & cite p wrapper
|
178 |
+
|
179 |
= 0.2.12 =
|
180 |
* the_title filter fix
|
181 |
|
testimonials-widget.css
CHANGED
@@ -1,55 +1,57 @@
|
|
1 |
-
|
2 |
-
|
3 |
}
|
4 |
|
5 |
-
.
|
6 |
-
|
7 |
-
|
8 |
}
|
9 |
|
10 |
-
.
|
11 |
-
|
|
|
12 |
}
|
13 |
|
14 |
-
.testimonialswidget_testimonial {
|
15 |
-
|
|
|
|
|
|
|
|
|
|
|
16 |
}
|
17 |
|
18 |
-
|
19 |
-
/*
|
20 |
-
|
21 |
-
|
22 |
-
quotes:
|
|
|
23 |
}
|
24 |
|
25 |
-
|
26 |
-
/*
|
27 |
-
|
28 |
-
|
29 |
}
|
30 |
-
*/
|
31 |
|
32 |
-
.
|
33 |
-
|
|
|
34 |
}
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
left: 0;
|
39 |
-
display: none;
|
40 |
-
}
|
41 |
-
.testimonialswidget_testimonials .testimonialswidget_active {
|
42 |
-
display: block;
|
43 |
-
}
|
44 |
-
.testimonialswidget_testimonials p {
|
45 |
-
margin: 0 0 1em;
|
46 |
}
|
47 |
-
|
48 |
-
|
|
|
|
|
49 |
}
|
|
|
50 |
.testimonialswidget_testimonial_list {
|
|
|
|
|
51 |
position: relative;
|
52 |
top: initial;
|
53 |
-
left: initial;
|
54 |
-
display: block;
|
55 |
}
|
1 |
+
h4.testimonialswidget {
|
2 |
+
margin: 0;
|
3 |
}
|
4 |
|
5 |
+
.testimonialswidget_testimonials {
|
6 |
+
/* quotes wrapper */
|
7 |
+
position: relative;
|
8 |
}
|
9 |
|
10 |
+
.testimonialswidget_testimonials .testimonialswidget_active {
|
11 |
+
/* active quote */
|
12 |
+
display: block;
|
13 |
}
|
14 |
|
15 |
+
.testimonialswidget_testimonial {
|
16 |
+
display: none;
|
17 |
+
left: 0;
|
18 |
+
margin: 0 0 1em;
|
19 |
+
position: absolute;
|
20 |
+
top: 0;
|
21 |
+
width: 100%;
|
22 |
}
|
23 |
|
24 |
+
.testimonialswidget_testimonial q {
|
25 |
+
/* the quote */
|
26 |
+
/* Remove quotes by uncommenting the following */
|
27 |
+
/*
|
28 |
+
quotes: none;
|
29 |
+
*/
|
30 |
}
|
31 |
|
32 |
+
.testimonialswidget_testimonial cite {
|
33 |
+
/* outer wrapper for author & source */
|
34 |
+
display: block; /* To display author and source in a new line */
|
35 |
+
text-align: right;
|
36 |
}
|
|
|
37 |
|
38 |
+
.testimonialswidget_testimonial .testimonialswidget_author {
|
39 |
+
/* quote author */
|
40 |
+
font-style: normal;
|
41 |
}
|
42 |
+
|
43 |
+
.testimonialswidget_testimonial .testimonialswidget_join {
|
44 |
+
/* join text */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
45 |
}
|
46 |
+
|
47 |
+
.testimonialswidget_testimonial .testimonialswidget_source {
|
48 |
+
/* quote source */
|
49 |
+
font-style: italic;
|
50 |
}
|
51 |
+
|
52 |
.testimonialswidget_testimonial_list {
|
53 |
+
display: block;
|
54 |
+
left: initial;
|
55 |
position: relative;
|
56 |
top: initial;
|
|
|
|
|
57 |
}
|
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
|
@@ -144,7 +144,7 @@ EOF;
|
|
144 |
$html .= '<div class="testimonialswidget_testimonial testimonialswidget_active">';
|
145 |
$first = false;
|
146 |
}
|
147 |
-
$html .= "<
|
148 |
$cite = '';
|
149 |
if($show_author && ! empty( $testimonial['author'] ) )
|
150 |
$cite = '<span class="testimonialswidget_author">'. make_clickable( $testimonial['author'] ) .'</span>';
|
@@ -154,7 +154,7 @@ EOF;
|
|
154 |
$cite .= '<span class="testimonialswidget_source">'. make_clickable( $testimonial['source'] ) .'</span>';
|
155 |
}
|
156 |
if($cite) $cite = " <cite>— {$cite}</cite>";
|
157 |
-
$html .= $cite."</
|
158 |
|
159 |
}
|
160 |
$html .= '</div>';
|
@@ -309,7 +309,7 @@ function testimonialswidget_list_shortcode($atts, $content = null) {
|
|
309 |
}
|
310 |
|
311 |
$html .= '<div class="testimonialswidget_testimonial testimonialswidget_testimonial_list">';
|
312 |
-
$html .= "<
|
313 |
|
314 |
$cite = '';
|
315 |
if($show_author && ! empty( $testimonial['author'] ) )
|
@@ -325,7 +325,7 @@ function testimonialswidget_list_shortcode($atts, $content = null) {
|
|
325 |
if($cite)
|
326 |
$cite = " <cite>— {$cite}</cite>";
|
327 |
|
328 |
-
$html .= $cite."</
|
329 |
}
|
330 |
|
331 |
$html .= '</div>';
|
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.13
|
6 |
Author: Michael Cannon
|
7 |
Author URI: http://typo3vagabond.com/about-typo3-vagabond/hire-michael/
|
8 |
License: GPL2
|
144 |
$html .= '<div class="testimonialswidget_testimonial testimonialswidget_active">';
|
145 |
$first = false;
|
146 |
}
|
147 |
+
$html .= "<q>". make_clickable( $testimonial['testimonial'] ) ."</q>";
|
148 |
$cite = '';
|
149 |
if($show_author && ! empty( $testimonial['author'] ) )
|
150 |
$cite = '<span class="testimonialswidget_author">'. make_clickable( $testimonial['author'] ) .'</span>';
|
154 |
$cite .= '<span class="testimonialswidget_source">'. make_clickable( $testimonial['source'] ) .'</span>';
|
155 |
}
|
156 |
if($cite) $cite = " <cite>— {$cite}</cite>";
|
157 |
+
$html .= $cite."</div>";
|
158 |
|
159 |
}
|
160 |
$html .= '</div>';
|
309 |
}
|
310 |
|
311 |
$html .= '<div class="testimonialswidget_testimonial testimonialswidget_testimonial_list">';
|
312 |
+
$html .= "<q>". make_clickable( $testimonial['testimonial'] ) ."</q>";
|
313 |
|
314 |
$cite = '';
|
315 |
if($show_author && ! empty( $testimonial['author'] ) )
|
325 |
if($cite)
|
326 |
$cite = " <cite>— {$cite}</cite>";
|
327 |
|
328 |
+
$html .= $cite."</div>";
|
329 |
}
|
330 |
|
331 |
$html .= '</div>';
|