Version Description
- 2014-03-26.
Fix - Potential division by zero notice.
Tweak - Default post type args are now filterable:
woothemes_testimonials_post_type_args
(props lkraav). Tweak - Remove unused assets. Tweak - Avatar no longer links to testimonial url. Tweak - oEmbed in testimonial content now works.
Download this release
Release Info
Developer | jameskoster |
Plugin | Testimonials by WooThemes |
Version | 1.5.1 |
Comparing to | |
See all releases |
Code changes from version 1.5.0 to 1.5.1
- assets/css/admin.css +0 -0
- assets/css/admin.less +0 -0
- assets/images/testimonials-icon.png +0 -0
- assets/images/testimonials-icon@x2.png +0 -0
- classes/class-woothemes-testimonials-taxonomy.php +0 -0
- classes/class-woothemes-testimonials.php +1 -1
- classes/class-woothemes-widget-testimonials.php +0 -0
- lang/testimonials-by-woothemes.pot +311 -0
- lang/woothemes-testimonials-en_GB.po +0 -0
- lang/woothemes-testimonials-xx_XX.pot +0 -21
- readme.txt +10 -2
- woothemes-testimonials-template.php +5 -5
- woothemes-testimonials.php +2 -2
assets/css/admin.css
CHANGED
File without changes
|
assets/css/admin.less
CHANGED
File without changes
|
assets/images/testimonials-icon.png
DELETED
Binary file
|
assets/images/testimonials-icon@x2.png
DELETED
Binary file
|
classes/class-woothemes-testimonials-taxonomy.php
CHANGED
File without changes
|
classes/class-woothemes-testimonials.php
CHANGED
@@ -107,7 +107,7 @@ class Woothemes_Testimonials {
|
|
107 |
'menu_position' => 5,
|
108 |
'menu_icon' => ''
|
109 |
);
|
110 |
-
register_post_type( $this->token, $args );
|
111 |
} // End register_post_type()
|
112 |
|
113 |
/**
|
107 |
'menu_position' => 5,
|
108 |
'menu_icon' => ''
|
109 |
);
|
110 |
+
register_post_type( $this->token, apply_filters( 'woothemes_testimonials_post_type_args', $args ) );
|
111 |
} // End register_post_type()
|
112 |
|
113 |
/**
|
classes/class-woothemes-widget-testimonials.php
CHANGED
File without changes
|
lang/testimonials-by-woothemes.pot
ADDED
@@ -0,0 +1,311 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# Copyright (C) 2014
|
2 |
+
# This file is distributed under the same license as the package.
|
3 |
+
msgid ""
|
4 |
+
msgstr ""
|
5 |
+
"Project-Id-Version: \n"
|
6 |
+
"Report-Msgid-Bugs-To: http://wordpress.org/tag/testimonials-by-woothemes\n"
|
7 |
+
"POT-Creation-Date: 2014-03-26 16:03:57+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 |
+
|
15 |
+
#: classes/class-woothemes-testimonials-taxonomy.php:71
|
16 |
+
msgid "Category"
|
17 |
+
msgstr ""
|
18 |
+
|
19 |
+
#: classes/class-woothemes-testimonials-taxonomy.php:72
|
20 |
+
msgid "Categories"
|
21 |
+
msgstr ""
|
22 |
+
|
23 |
+
#: classes/class-woothemes-testimonials-taxonomy.php:105
|
24 |
+
msgctxt "taxonomy general name"
|
25 |
+
msgid "%s"
|
26 |
+
msgstr ""
|
27 |
+
|
28 |
+
#: classes/class-woothemes-testimonials-taxonomy.php:106
|
29 |
+
msgctxt "taxonomy singular name"
|
30 |
+
msgid "%s"
|
31 |
+
msgstr ""
|
32 |
+
|
33 |
+
#: classes/class-woothemes-testimonials-taxonomy.php:107
|
34 |
+
msgid "Search %s"
|
35 |
+
msgstr ""
|
36 |
+
|
37 |
+
#: classes/class-woothemes-testimonials-taxonomy.php:108
|
38 |
+
#: classes/class-woothemes-testimonials.php:82
|
39 |
+
msgid "All %s"
|
40 |
+
msgstr ""
|
41 |
+
|
42 |
+
#: classes/class-woothemes-testimonials-taxonomy.php:109
|
43 |
+
msgid "Parent %s"
|
44 |
+
msgstr ""
|
45 |
+
|
46 |
+
#: classes/class-woothemes-testimonials-taxonomy.php:110
|
47 |
+
msgid "Parent %s:"
|
48 |
+
msgstr ""
|
49 |
+
|
50 |
+
#: classes/class-woothemes-testimonials-taxonomy.php:111
|
51 |
+
#: classes/class-woothemes-testimonials.php:80
|
52 |
+
msgid "Edit %s"
|
53 |
+
msgstr ""
|
54 |
+
|
55 |
+
#: classes/class-woothemes-testimonials-taxonomy.php:112
|
56 |
+
msgid "Update %s"
|
57 |
+
msgstr ""
|
58 |
+
|
59 |
+
#: classes/class-woothemes-testimonials-taxonomy.php:113
|
60 |
+
#: classes/class-woothemes-testimonials.php:79
|
61 |
+
msgid "Add New %s"
|
62 |
+
msgstr ""
|
63 |
+
|
64 |
+
#: classes/class-woothemes-testimonials-taxonomy.php:114
|
65 |
+
msgid "New %s Name"
|
66 |
+
msgstr ""
|
67 |
+
|
68 |
+
#: classes/class-woothemes-testimonials-taxonomy.php:115
|
69 |
+
msgid "%s"
|
70 |
+
msgstr ""
|
71 |
+
|
72 |
+
#: classes/class-woothemes-testimonials.php:76
|
73 |
+
msgctxt "post type general name"
|
74 |
+
msgid "Testimonials"
|
75 |
+
msgstr ""
|
76 |
+
|
77 |
+
#: classes/class-woothemes-testimonials.php:77
|
78 |
+
msgctxt "post type singular name"
|
79 |
+
msgid "Testimonial"
|
80 |
+
msgstr ""
|
81 |
+
|
82 |
+
#: classes/class-woothemes-testimonials.php:78
|
83 |
+
msgctxt "testimonial"
|
84 |
+
msgid "Add New"
|
85 |
+
msgstr ""
|
86 |
+
|
87 |
+
#: classes/class-woothemes-testimonials.php:79
|
88 |
+
#: classes/class-woothemes-testimonials.php:80
|
89 |
+
#: classes/class-woothemes-testimonials.php:81
|
90 |
+
#: classes/class-woothemes-testimonials.php:83
|
91 |
+
msgid "Testimonial"
|
92 |
+
msgstr ""
|
93 |
+
|
94 |
+
#: classes/class-woothemes-testimonials.php:81
|
95 |
+
msgid "New %s"
|
96 |
+
msgstr ""
|
97 |
+
|
98 |
+
#: classes/class-woothemes-testimonials.php:82
|
99 |
+
#: classes/class-woothemes-testimonials.php:84
|
100 |
+
#: classes/class-woothemes-testimonials.php:85
|
101 |
+
#: classes/class-woothemes-testimonials.php:86
|
102 |
+
#: classes/class-woothemes-testimonials.php:88
|
103 |
+
#: classes/class-woothemes-widget-testimonials.php:44
|
104 |
+
msgid "Testimonials"
|
105 |
+
msgstr ""
|
106 |
+
|
107 |
+
#: classes/class-woothemes-testimonials.php:83
|
108 |
+
msgid "View %s"
|
109 |
+
msgstr ""
|
110 |
+
|
111 |
+
#: classes/class-woothemes-testimonials.php:84
|
112 |
+
msgid "Search %a"
|
113 |
+
msgstr ""
|
114 |
+
|
115 |
+
#: classes/class-woothemes-testimonials.php:85
|
116 |
+
msgid "No %s Found"
|
117 |
+
msgstr ""
|
118 |
+
|
119 |
+
#: classes/class-woothemes-testimonials.php:86
|
120 |
+
msgid "No %s Found In Trash"
|
121 |
+
msgstr ""
|
122 |
+
|
123 |
+
#: classes/class-woothemes-testimonials.php:92
|
124 |
+
msgctxt "single post url slug"
|
125 |
+
msgid "testimonial"
|
126 |
+
msgstr ""
|
127 |
+
|
128 |
+
#: classes/class-woothemes-testimonials.php:93
|
129 |
+
msgctxt "post archive url slug"
|
130 |
+
msgid "testimonials"
|
131 |
+
msgstr ""
|
132 |
+
|
133 |
+
#: classes/class-woothemes-testimonials.php:163
|
134 |
+
msgid "Image"
|
135 |
+
msgstr ""
|
136 |
+
|
137 |
+
#: classes/class-woothemes-testimonials.php:197
|
138 |
+
msgid "Testimonial updated. %sView testimonial%s"
|
139 |
+
msgstr ""
|
140 |
+
|
141 |
+
#: classes/class-woothemes-testimonials.php:198
|
142 |
+
msgid "Custom field updated."
|
143 |
+
msgstr ""
|
144 |
+
|
145 |
+
#: classes/class-woothemes-testimonials.php:199
|
146 |
+
msgid "Custom field deleted."
|
147 |
+
msgstr ""
|
148 |
+
|
149 |
+
#: classes/class-woothemes-testimonials.php:200
|
150 |
+
msgid "Testimonial updated."
|
151 |
+
msgstr ""
|
152 |
+
|
153 |
+
#. translators: %s: date and time of the revision
|
154 |
+
|
155 |
+
#: classes/class-woothemes-testimonials.php:202
|
156 |
+
msgid "Testimonial restored to revision from %s"
|
157 |
+
msgstr ""
|
158 |
+
|
159 |
+
#: classes/class-woothemes-testimonials.php:203
|
160 |
+
msgid "Testimonial published. %sView testimonial%s"
|
161 |
+
msgstr ""
|
162 |
+
|
163 |
+
#: classes/class-woothemes-testimonials.php:204
|
164 |
+
msgid "Testimonial saved."
|
165 |
+
msgstr ""
|
166 |
+
|
167 |
+
#: classes/class-woothemes-testimonials.php:205
|
168 |
+
msgid "Testimonial submitted. %sPreview testimonial%s"
|
169 |
+
msgstr ""
|
170 |
+
|
171 |
+
#: classes/class-woothemes-testimonials.php:206
|
172 |
+
msgid "Testimonial scheduled for: %1$s. %2$sPreview testimonial%3$s"
|
173 |
+
msgstr ""
|
174 |
+
|
175 |
+
#. translators: Publish box date format, see http:php.net/date
|
176 |
+
|
177 |
+
#: classes/class-woothemes-testimonials.php:208
|
178 |
+
msgid "M j, Y @ G:i"
|
179 |
+
msgstr ""
|
180 |
+
|
181 |
+
#: classes/class-woothemes-testimonials.php:209
|
182 |
+
msgid "Testimonial draft updated. %sPreview testimonial%s"
|
183 |
+
msgstr ""
|
184 |
+
|
185 |
+
#: classes/class-woothemes-testimonials.php:223
|
186 |
+
msgid "Testimonial Details"
|
187 |
+
msgstr ""
|
188 |
+
|
189 |
+
#: classes/class-woothemes-testimonials.php:322
|
190 |
+
msgid "Enter the customer's name here"
|
191 |
+
msgstr ""
|
192 |
+
|
193 |
+
#: classes/class-woothemes-testimonials.php:348
|
194 |
+
msgid "Gravatar E-mail Address"
|
195 |
+
msgstr ""
|
196 |
+
|
197 |
+
#: classes/class-woothemes-testimonials.php:349
|
198 |
+
msgid "Enter in an e-mail address, to use a %sGravatar%s, instead of using the \"Featured Image\"."
|
199 |
+
msgstr ""
|
200 |
+
|
201 |
+
#: classes/class-woothemes-testimonials.php:356
|
202 |
+
msgid "Byline"
|
203 |
+
msgstr ""
|
204 |
+
|
205 |
+
#: classes/class-woothemes-testimonials.php:357
|
206 |
+
msgid "Enter a byline for the customer giving this testimonial (for example: \"CEO of WooThemes\")."
|
207 |
+
msgstr ""
|
208 |
+
|
209 |
+
#: classes/class-woothemes-testimonials.php:364
|
210 |
+
msgid "URL"
|
211 |
+
msgstr ""
|
212 |
+
|
213 |
+
#: classes/class-woothemes-testimonials.php:365
|
214 |
+
msgid "Enter a URL that applies to this customer (for example: http://woothemes.com/)."
|
215 |
+
msgstr ""
|
216 |
+
|
217 |
+
#: classes/class-woothemes-widget-testimonials.php:42
|
218 |
+
msgid "Recent testimonials on your site."
|
219 |
+
msgstr ""
|
220 |
+
|
221 |
+
#: classes/class-woothemes-widget-testimonials.php:172
|
222 |
+
msgid "Title (optional):"
|
223 |
+
msgstr ""
|
224 |
+
|
225 |
+
#: classes/class-woothemes-widget-testimonials.php:177
|
226 |
+
msgid "Limit:"
|
227 |
+
msgstr ""
|
228 |
+
|
229 |
+
#: classes/class-woothemes-widget-testimonials.php:182
|
230 |
+
msgid "Testimonials Per Row:"
|
231 |
+
msgstr ""
|
232 |
+
|
233 |
+
#: classes/class-woothemes-widget-testimonials.php:187
|
234 |
+
msgid "Image Size (in pixels):"
|
235 |
+
msgstr ""
|
236 |
+
|
237 |
+
#: classes/class-woothemes-widget-testimonials.php:192
|
238 |
+
msgid "Order By:"
|
239 |
+
msgstr ""
|
240 |
+
|
241 |
+
#: classes/class-woothemes-widget-testimonials.php:201
|
242 |
+
msgid "Order Direction:"
|
243 |
+
msgstr ""
|
244 |
+
|
245 |
+
#: classes/class-woothemes-widget-testimonials.php:211
|
246 |
+
msgid "Display Author"
|
247 |
+
msgstr ""
|
248 |
+
|
249 |
+
#: classes/class-woothemes-widget-testimonials.php:216
|
250 |
+
msgid "Display Avatar"
|
251 |
+
msgstr ""
|
252 |
+
|
253 |
+
#: classes/class-woothemes-widget-testimonials.php:221
|
254 |
+
msgid "Display URL"
|
255 |
+
msgstr ""
|
256 |
+
|
257 |
+
#: classes/class-woothemes-widget-testimonials.php:225
|
258 |
+
msgid "Category:"
|
259 |
+
msgstr ""
|
260 |
+
|
261 |
+
#: classes/class-woothemes-widget-testimonials.php:227
|
262 |
+
msgid "All"
|
263 |
+
msgstr ""
|
264 |
+
|
265 |
+
#: classes/class-woothemes-widget-testimonials.php:233
|
266 |
+
msgid "Specific ID (optional):"
|
267 |
+
msgstr ""
|
268 |
+
|
269 |
+
#: classes/class-woothemes-widget-testimonials.php:236
|
270 |
+
msgid "Display a specific testimonial, rather than a list."
|
271 |
+
msgstr ""
|
272 |
+
|
273 |
+
#: classes/class-woothemes-widget-testimonials.php:247
|
274 |
+
msgid "No Order"
|
275 |
+
msgstr ""
|
276 |
+
|
277 |
+
#: classes/class-woothemes-widget-testimonials.php:248
|
278 |
+
msgid "Entry ID"
|
279 |
+
msgstr ""
|
280 |
+
|
281 |
+
#: classes/class-woothemes-widget-testimonials.php:249
|
282 |
+
msgid "Title"
|
283 |
+
msgstr ""
|
284 |
+
|
285 |
+
#: classes/class-woothemes-widget-testimonials.php:250
|
286 |
+
msgid "Date Added"
|
287 |
+
msgstr ""
|
288 |
+
|
289 |
+
#: classes/class-woothemes-widget-testimonials.php:251
|
290 |
+
msgid "Specified Order Setting"
|
291 |
+
msgstr ""
|
292 |
+
|
293 |
+
#: classes/class-woothemes-widget-testimonials.php:252
|
294 |
+
msgid "Random Order"
|
295 |
+
msgstr ""
|
296 |
+
|
297 |
+
#: classes/class-woothemes-widget-testimonials.php:263
|
298 |
+
msgid "Ascending"
|
299 |
+
msgstr ""
|
300 |
+
|
301 |
+
#: classes/class-woothemes-widget-testimonials.php:264
|
302 |
+
msgid "Descending"
|
303 |
+
msgstr ""
|
304 |
+
|
305 |
+
#: woothemes-testimonials-template.php:162
|
306 |
+
msgid "Previous"
|
307 |
+
msgstr ""
|
308 |
+
|
309 |
+
#: woothemes-testimonials-template.php:163
|
310 |
+
msgid "Next"
|
311 |
+
msgstr ""
|
lang/woothemes-testimonials-en_GB.po
CHANGED
File without changes
|
lang/woothemes-testimonials-xx_XX.pot
DELETED
@@ -1,21 +0,0 @@
|
|
1 |
-
msgid ""
|
2 |
-
msgstr ""
|
3 |
-
"Project-Id-Version: PlaceHolder\n"
|
4 |
-
"Report-Msgid-Bugs-To: \n"
|
5 |
-
"POT-Creation-Date: \n"
|
6 |
-
"PO-Revision-Date: 2012-10-17 08:56:48+0000\n"
|
7 |
-
"Last-Translator: none\n"
|
8 |
-
"Language-Team: \n"
|
9 |
-
"MIME-Version: 1.0\n"
|
10 |
-
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
-
"Content-Transfer-Encoding: 8bit\n"
|
12 |
-
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
13 |
-
"X-Poedit-Language: English\n"
|
14 |
-
"X-Poedit-Country: UNITED STATES\n"
|
15 |
-
"X-Poedit-SourceCharset: utf-8\n"
|
16 |
-
"X-Poedit-KeywordsList: __;_e;__ngettext:1,2;_n:1,2;__ngettext_noop:1,2;_n_noop:1,2;_c,_nc:4c,1,2;_x:1,2c;_ex:1,2c;_nx:4c,1,2;_nx_noop:4c,1,2;\n"
|
17 |
-
"X-Poedit-Basepath: ../\n"
|
18 |
-
"X-Poedit-Bookmarks: \n"
|
19 |
-
"X-Poedit-SearchPath-0: .\n"
|
20 |
-
"X-Textdomain-Support: yes"
|
21 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: woothemes, mattyza, jameskoster
|
|
3 |
Donate link: http://woothemes.com/
|
4 |
Tags: testimonials, widget, shortcode, template-tag, feedback, customers
|
5 |
Requires at least: 3.4.2
|
6 |
-
Tested up to: 3.8.
|
7 |
-
Stable tag: 1.5.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -130,6 +130,14 @@ We encourage everyone to contribute their ideas, thoughts and code snippets. Thi
|
|
130 |
|
131 |
== Changelog ==
|
132 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
133 |
= 1.5.0 =
|
134 |
* 2014-01-02.
|
135 |
* Default testimonial args now filterable.
|
3 |
Donate link: http://woothemes.com/
|
4 |
Tags: testimonials, widget, shortcode, template-tag, feedback, customers
|
5 |
Requires at least: 3.4.2
|
6 |
+
Tested up to: 3.8.1
|
7 |
+
Stable tag: 1.5.1
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
130 |
|
131 |
== Changelog ==
|
132 |
|
133 |
+
= 1.5.1 =
|
134 |
+
* 2014-03-26.
|
135 |
+
Fix - Potential division by zero notice.
|
136 |
+
Tweak - Default post type args are now filterable: `woothemes_testimonials_post_type_args` (props lkraav).
|
137 |
+
Tweak - Remove unused assets.
|
138 |
+
Tweak - Avatar no longer links to testimonial url.
|
139 |
+
Tweak - oEmbed in testimonial content now works.
|
140 |
+
|
141 |
= 1.5.0 =
|
142 |
* 2014-01-02.
|
143 |
* Default testimonial args now filterable.
|
woothemes-testimonials-template.php
CHANGED
@@ -93,8 +93,8 @@ function woothemes_testimonials ( $args = '' ) {
|
|
93 |
$template = $tpl;
|
94 |
|
95 |
$css_class = 'quote';
|
96 |
-
if ( ( is_numeric( $args['per_row'] ) && ( 0 == ( $count - 1 ) % $args['per_row'] ) ) || 1 == $count ) { $css_class .= ' first'; }
|
97 |
-
if ( ( is_numeric( $args['per_row'] ) && ( 0 == $count % $args['per_row'] ) ) || count( $query ) == $count ) { $css_class .= ' last'; }
|
98 |
|
99 |
// Add a CSS class if no image is available.
|
100 |
if ( isset( $post->image ) && ( '' == $post->image ) ) {
|
@@ -135,20 +135,20 @@ function woothemes_testimonials ( $args = '' ) {
|
|
135 |
$template = str_replace( '%%CLASS%%', esc_attr( $css_class ), $template );
|
136 |
|
137 |
if ( isset( $post->image ) && ( '' != $post->image ) && true == $args['display_avatar'] ) {
|
138 |
-
$template = str_replace( '%%AVATAR%%',
|
139 |
} else {
|
140 |
$template = str_replace( '%%AVATAR%%', '', $template );
|
141 |
}
|
142 |
|
143 |
// Remove any remaining %%AVATAR%% template tags.
|
144 |
$template = str_replace( '%%AVATAR%%', '', $template );
|
145 |
-
$content = apply_filters( 'woothemes_testimonials_content', get_the_content(), $post );
|
146 |
$template = str_replace( '%%TEXT%%', $content, $template );
|
147 |
|
148 |
// Assign for output.
|
149 |
$html .= $template;
|
150 |
|
151 |
-
if( is_numeric( $args['per_row'] ) && ( 0 == $count % $args['per_row'] ) ) {
|
152 |
$html .= '<div class="fix"></div>' . "\n";
|
153 |
}
|
154 |
}
|
93 |
$template = $tpl;
|
94 |
|
95 |
$css_class = 'quote';
|
96 |
+
if ( ( is_numeric( $args['per_row'] ) && ( $args['per_row'] > 0 ) && ( 0 == ( $count - 1 ) % $args['per_row'] ) ) || 1 == $count ) { $css_class .= ' first'; }
|
97 |
+
if ( ( is_numeric( $args['per_row'] ) && ( $args['per_row'] > 0 ) && ( 0 == $count % $args['per_row'] ) ) || count( $query ) == $count ) { $css_class .= ' last'; }
|
98 |
|
99 |
// Add a CSS class if no image is available.
|
100 |
if ( isset( $post->image ) && ( '' == $post->image ) ) {
|
135 |
$template = str_replace( '%%CLASS%%', esc_attr( $css_class ), $template );
|
136 |
|
137 |
if ( isset( $post->image ) && ( '' != $post->image ) && true == $args['display_avatar'] ) {
|
138 |
+
$template = str_replace( '%%AVATAR%%', $post->image, $template );
|
139 |
} else {
|
140 |
$template = str_replace( '%%AVATAR%%', '', $template );
|
141 |
}
|
142 |
|
143 |
// Remove any remaining %%AVATAR%% template tags.
|
144 |
$template = str_replace( '%%AVATAR%%', '', $template );
|
145 |
+
$content = apply_filters( 'woothemes_testimonials_content', apply_filters( 'the_content', get_the_content() ), $post );
|
146 |
$template = str_replace( '%%TEXT%%', $content, $template );
|
147 |
|
148 |
// Assign for output.
|
149 |
$html .= $template;
|
150 |
|
151 |
+
if( is_numeric( $args['per_row'] ) && ( $args['per_row'] > 0 ) && ( 0 == $count % $args['per_row'] ) ) {
|
152 |
$html .= '<div class="fix"></div>' . "\n";
|
153 |
}
|
154 |
}
|
woothemes-testimonials.php
CHANGED
@@ -4,7 +4,7 @@
|
|
4 |
* Plugin URI: http://woothemes.com/
|
5 |
* Description: Hi, I'm your testimonials management plugin for WordPress. Show off what your customers or website users are saying about your business and how great they say you are, using our shortcode, widget or template tag.
|
6 |
* Author: WooThemes
|
7 |
-
* Version: 1.5.
|
8 |
* Author URI: http://woothemes.com/
|
9 |
*
|
10 |
* @package WordPress
|
@@ -19,4 +19,4 @@ require_once( 'woothemes-testimonials-template.php' );
|
|
19 |
require_once( 'classes/class-woothemes-widget-testimonials.php' );
|
20 |
global $woothemes_testimonials;
|
21 |
$woothemes_testimonials = new Woothemes_Testimonials( __FILE__ );
|
22 |
-
$woothemes_testimonials->version = '1.5.
|
4 |
* Plugin URI: http://woothemes.com/
|
5 |
* Description: Hi, I'm your testimonials management plugin for WordPress. Show off what your customers or website users are saying about your business and how great they say you are, using our shortcode, widget or template tag.
|
6 |
* Author: WooThemes
|
7 |
+
* Version: 1.5.1
|
8 |
* Author URI: http://woothemes.com/
|
9 |
*
|
10 |
* @package WordPress
|
19 |
require_once( 'classes/class-woothemes-widget-testimonials.php' );
|
20 |
global $woothemes_testimonials;
|
21 |
$woothemes_testimonials = new Woothemes_Testimonials( __FILE__ );
|
22 |
+
$woothemes_testimonials->version = '1.5.1';
|