Version Description
- Access search, favorites and lists through Rotating Tweets widgets.
Download this release
Release Info
Developer | mpntod |
Plugin | Rotating Tweets (Twitter widget and shortcode) |
Version | 1.4.0 |
Comparing to | |
See all releases |
Code changes from version 1.3.18 to 1.4.0
- css/style.css +3 -0
- js/rotating_tweet.js +11 -8
- js/rotating_tweet_admin.js +27 -0
- languages/rotatingtweets-fr_FR.mo +0 -0
- languages/rotatingtweets-fr_FR.po +238 -166
- languages/rotatingtweets.pot +148 -94
- lib/wp_twitteroauth.php +2 -2
- readme.txt +112 -84
- rotatingtweets.php +164 -35
css/style.css
CHANGED
@@ -6,6 +6,9 @@ div.rotatingtweet {
|
|
6 |
font-size: 100%;
|
7 |
word-wrap: break-word;
|
8 |
}
|
|
|
|
|
|
|
9 |
p.rtw_meta,div.rtw_meta,div.rtw_meta_wide,div.rtw_name,div.rtw_id,div.rtw_time_short,div.rtw_rt_meta {
|
10 |
font-size: 0.8em;
|
11 |
line-height: normal;
|
6 |
font-size: 100%;
|
7 |
word-wrap: break-word;
|
8 |
}
|
9 |
+
div.rotatingtweets {
|
10 |
+
clear:both;
|
11 |
+
}
|
12 |
p.rtw_meta,div.rtw_meta,div.rtw_meta_wide,div.rtw_name,div.rtw_id,div.rtw_time_short,div.rtw_rt_meta {
|
13 |
font-size: 0.8em;
|
14 |
line-height: normal;
|
js/rotating_tweet.js
CHANGED
@@ -4,8 +4,9 @@
|
|
4 |
jQuery(document).ready(function() {
|
5 |
jQuery('.rotatingtweets').each(function() {
|
6 |
/* Get the ID of the rotating tweets div - and parse it to get rotation speed and rotation fx */
|
7 |
-
var rotate_id = "#"+this.id
|
8 |
var rotate_id_split = rotate_id.split('_');
|
|
|
9 |
var rotate_timeout = rotate_id_split[1];
|
10 |
var rotate_fx = rotate_id_split[2];
|
11 |
var rotate_wp_debug = jQuery(this).hasClass('wp_debug');
|
@@ -16,13 +17,15 @@ jQuery(document).ready(function() {
|
|
16 |
if(rotate_fx == null){rotate_fx = 'scrollUp'};
|
17 |
var rt_height_px = 'auto';
|
18 |
/* Now find the widget container width */
|
19 |
-
|
|
|
20 |
var rt_fit = 1;
|
21 |
if( rt_target_width == null ) {
|
22 |
rt_fit = 0;
|
23 |
}
|
24 |
if(rotate_wp_debug) {
|
25 |
console.log('rt_target_width = '+rt_target_width);
|
|
|
26 |
};
|
27 |
/* If we're displaying an 'official' tweet, reset all the heights - this option is currently switched off! */
|
28 |
// var rt_official_child = rotate_id + ' .twitter-tweet';
|
@@ -35,8 +38,8 @@ jQuery(document).ready(function() {
|
|
35 |
timeout: rotate_timeout,
|
36 |
cleartypeNoBg: true,
|
37 |
width: rt_target_width,
|
38 |
-
prev:
|
39 |
-
next:
|
40 |
fx: rotate_fx,
|
41 |
fit: rt_fit
|
42 |
});
|
@@ -68,8 +71,8 @@ jQuery(document).ready(function() {
|
|
68 |
width: rt_target_width,
|
69 |
cleartypeNoBg: true,
|
70 |
fit: rt_fit,
|
71 |
-
prev:
|
72 |
-
next:
|
73 |
fx: rotate_fx
|
74 |
});
|
75 |
}
|
@@ -107,11 +110,11 @@ jQuery(document).ready(function() {
|
|
107 |
/* Now get the padding-left dimension (if it exists) and subtract it from the max width */
|
108 |
if(rotate_wp_debug) {
|
109 |
console.log ('Now check for \'padding-left\'');
|
110 |
-
console.log ('- leftpadding - text : '+ jQuery(rt_block_id).css('padding-left') + ' and value: ' +
|
111 |
};
|
112 |
var rt_max_width = jQuery(rotate_id).width();
|
113 |
if( typeof jQuery(rt_block_id).css('padding-left') != 'undefined' ) {
|
114 |
-
rt_max_width = rt_max_width -
|
115 |
if(rotate_wp_debug) {
|
116 |
console.log('- Padding is not undefined');
|
117 |
};
|
4 |
jQuery(document).ready(function() {
|
5 |
jQuery('.rotatingtweets').each(function() {
|
6 |
/* Get the ID of the rotating tweets div - and parse it to get rotation speed and rotation fx */
|
7 |
+
var rotate_id = "#"+this.id;
|
8 |
var rotate_id_split = rotate_id.split('_');
|
9 |
+
var rotate_class = "."+this.id;
|
10 |
var rotate_timeout = rotate_id_split[1];
|
11 |
var rotate_fx = rotate_id_split[2];
|
12 |
var rotate_wp_debug = jQuery(this).hasClass('wp_debug');
|
17 |
if(rotate_fx == null){rotate_fx = 'scrollUp'};
|
18 |
var rt_height_px = 'auto';
|
19 |
/* Now find the widget container width */
|
20 |
+
// Get the size of the parent box and subtract any padding
|
21 |
+
var rt_target_width = jQuery(this).parent().innerWidth() - parseFloat(jQuery(this).parent().css('padding-left')) - parseFloat(jQuery(this).parent().css('padding-right'));
|
22 |
var rt_fit = 1;
|
23 |
if( rt_target_width == null ) {
|
24 |
rt_fit = 0;
|
25 |
}
|
26 |
if(rotate_wp_debug) {
|
27 |
console.log('rt_target_width = '+rt_target_width);
|
28 |
+
console.log('rotate_timeout = '+rotate_timeout);
|
29 |
};
|
30 |
/* If we're displaying an 'official' tweet, reset all the heights - this option is currently switched off! */
|
31 |
// var rt_official_child = rotate_id + ' .twitter-tweet';
|
38 |
timeout: rotate_timeout,
|
39 |
cleartypeNoBg: true,
|
40 |
width: rt_target_width,
|
41 |
+
prev: rotate_class + '_rtw_prev',
|
42 |
+
next: rotate_class + '_rtw_next',
|
43 |
fx: rotate_fx,
|
44 |
fit: rt_fit
|
45 |
});
|
71 |
width: rt_target_width,
|
72 |
cleartypeNoBg: true,
|
73 |
fit: rt_fit,
|
74 |
+
prev: rotate_class + '_rtw_prev',
|
75 |
+
next: rotate_class + '_rtw_next',
|
76 |
fx: rotate_fx
|
77 |
});
|
78 |
}
|
110 |
/* Now get the padding-left dimension (if it exists) and subtract it from the max width */
|
111 |
if(rotate_wp_debug) {
|
112 |
console.log ('Now check for \'padding-left\'');
|
113 |
+
console.log ('- leftpadding - text : '+ jQuery(rt_block_id).css('padding-left') + ' and value: ' +parseFloat(jQuery(rt_block_id).css('padding-left')));
|
114 |
};
|
115 |
var rt_max_width = jQuery(rotate_id).width();
|
116 |
if( typeof jQuery(rt_block_id).css('padding-left') != 'undefined' ) {
|
117 |
+
rt_max_width = rt_max_width - parseFloat(jQuery(rt_block_id).css('padding-left')) - 1 ;
|
118 |
if(rotate_wp_debug) {
|
119 |
console.log('- Padding is not undefined');
|
120 |
};
|
js/rotating_tweet_admin.js
CHANGED
@@ -20,4 +20,31 @@ jQuery(document).ready(function() {
|
|
20 |
jQuery(this).parent().find('.rtw_ad_tw_det').hide('fast');
|
21 |
}
|
22 |
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
23 |
});
|
20 |
jQuery(this).parent().find('.rtw_ad_tw_det').hide('fast');
|
21 |
}
|
22 |
});
|
23 |
+
// Script to show or hide display options on start up
|
24 |
+
jQuery('input.rtw_ad_type:checked').each(function() {
|
25 |
+
var response = jQuery(this).attr('value');
|
26 |
+
if( response == 3) {
|
27 |
+
jQuery(this).closest('.widget-content').find('.rtw_ad_list_tag').show('fast');
|
28 |
+
} else {
|
29 |
+
jQuery(this).closest('.widget-content').find('.rtw_ad_list_tag').hide('fast');
|
30 |
+
}
|
31 |
+
});
|
32 |
+
// Script to show or hide display options when box is checked
|
33 |
+
jQuery('.rtw_ad_type').change(function() {
|
34 |
+
var response = jQuery(this).attr('value');
|
35 |
+
if( response == 3) {
|
36 |
+
jQuery(this).closest('.widget-content').find('.rtw_ad_list_tag').show('fast');
|
37 |
+
} else {
|
38 |
+
jQuery(this).closest('.widget-content').find('.rtw_ad_list_tag').hide('fast');
|
39 |
+
}
|
40 |
+
if( response == 2) {
|
41 |
+
jQuery(this).closest('.widget-content').find('.rtw_ad_search').show();
|
42 |
+
jQuery(this).closest('.widget-content').find('.rtw_ad_not_search').hide();
|
43 |
+
// jQuery(this).closest('.widget-content').find('.rtw_ad_sf').hide('fast');
|
44 |
+
} else {
|
45 |
+
jQuery(this).closest('.widget-content').find('.rtw_ad_search').hide();
|
46 |
+
jQuery(this).closest('.widget-content').find('.rtw_ad_not_search').show();
|
47 |
+
// jQuery(this).closest('.widget-content').find('.rtw_ad_sf').show('fast');
|
48 |
+
}
|
49 |
+
});
|
50 |
});
|
languages/rotatingtweets-fr_FR.mo
CHANGED
Binary file
|
languages/rotatingtweets-fr_FR.po
CHANGED
@@ -1,14 +1,13 @@
|
|
1 |
-
#
|
2 |
-
# This file is distributed under the same license as the Rotating Tweets (Twitter widget & shortcode) package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: Rotating Tweets (Twitter widget & shortcode) 0.600\n"
|
6 |
"Report-Msgid-Bugs-To: http://wordpress.org/tag/rotatingtweets\n"
|
7 |
-
"POT-Creation-Date: 2013-03-
|
8 |
-
"PO-Revision-Date: 2013-03-
|
9 |
"Last-Translator: Martin Tod <martin@martintod.org.uk>\n"
|
10 |
"Language-Team: \n"
|
11 |
-
"Language:
|
12 |
"MIME-Version: 1.0\n"
|
13 |
"Content-Type: text/plain; charset=UTF-8\n"
|
14 |
"Content-Transfer-Encoding: 8bit\n"
|
@@ -19,252 +18,290 @@ msgstr ""
|
|
19 |
#: rotatingtweets.php:41
|
20 |
msgid "A widget to show tweets for a particular user in rotation."
|
21 |
msgstr ""
|
|
|
22 |
|
23 |
-
#: rotatingtweets.php:
|
24 |
msgid "Title:"
|
25 |
-
msgstr ""
|
26 |
|
27 |
-
#: rotatingtweets.php:
|
28 |
msgid "Twitter name:"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
29 |
msgstr ""
|
30 |
|
31 |
-
#: rotatingtweets.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
32 |
msgid "Include retweets?"
|
33 |
-
msgstr ""
|
34 |
|
35 |
-
#: rotatingtweets.php:
|
36 |
msgid "Exclude replies?"
|
37 |
-
msgstr ""
|
38 |
|
39 |
-
#: rotatingtweets.php:
|
40 |
msgid "Open all links in new window or tab?"
|
41 |
msgstr ""
|
|
|
42 |
|
43 |
-
#: rotatingtweets.php:
|
44 |
msgid "How many tweets?"
|
45 |
-
msgstr ""
|
46 |
|
47 |
-
#: rotatingtweets.php:
|
48 |
msgid "Speed"
|
49 |
-
msgstr ""
|
50 |
|
51 |
-
#: rotatingtweets.php:
|
52 |
msgid "Faster (3 seconds)"
|
53 |
-
msgstr ""
|
54 |
|
55 |
-
#: rotatingtweets.php:
|
56 |
msgid "Normal (4 seconds)"
|
57 |
-
msgstr ""
|
58 |
|
59 |
-
#: rotatingtweets.php:
|
60 |
msgid "Slower (5 seconds)"
|
61 |
-
msgstr ""
|
62 |
|
63 |
-
#: rotatingtweets.php:
|
64 |
msgid "Slowest (6 seconds)"
|
65 |
-
msgstr ""
|
66 |
|
67 |
-
#: rotatingtweets.php:
|
68 |
msgid "Ultra slow (20 seconds)"
|
69 |
-
msgstr ""
|
70 |
|
71 |
-
#: rotatingtweets.php:
|
72 |
msgid "Scroll Up"
|
73 |
-
msgstr ""
|
74 |
|
75 |
-
#: rotatingtweets.php:
|
76 |
msgid "Scroll Down"
|
77 |
-
msgstr ""
|
78 |
|
79 |
-
#: rotatingtweets.php:
|
80 |
msgid "Scroll Left"
|
81 |
-
msgstr ""
|
82 |
|
83 |
-
#: rotatingtweets.php:
|
84 |
msgid "Scroll Right"
|
85 |
-
msgstr ""
|
86 |
|
87 |
-
#: rotatingtweets.php:
|
88 |
msgid "Fade"
|
89 |
-
msgstr ""
|
90 |
|
91 |
-
#: rotatingtweets.php:
|
92 |
msgid "Type of rotation"
|
93 |
-
msgstr ""
|
94 |
|
95 |
-
#: rotatingtweets.php:
|
96 |
msgid "Display format"
|
97 |
-
msgstr ""
|
98 |
|
99 |
-
#: rotatingtweets.php:
|
100 |
msgid "Original rotating tweets layout"
|
101 |
-
msgstr ""
|
102 |
|
103 |
-
#: rotatingtweets.php:
|
104 |
msgid ""
|
105 |
"<a target='_blank' href='https://dev.twitter.com/terms/display-"
|
106 |
"guidelines'>Official Twitter guidelines</a> (regular)"
|
107 |
msgstr ""
|
108 |
|
109 |
-
#: rotatingtweets.php:
|
110 |
msgid ""
|
111 |
"<a target='_blank' href='https://dev.twitter.com/terms/display-"
|
112 |
"guidelines'>Official Twitter guidelines</a> (wide)"
|
113 |
msgstr ""
|
114 |
|
115 |
-
#: rotatingtweets.php:
|
116 |
msgid "Show tweet details?"
|
117 |
-
msgstr ""
|
118 |
|
119 |
-
#: rotatingtweets.php:
|
120 |
msgid "Time/date of tweet"
|
121 |
-
msgstr ""
|
122 |
|
123 |
-
#: rotatingtweets.php:
|
124 |
msgid "Name of person tweeting"
|
125 |
-
msgstr ""
|
126 |
|
127 |
-
#: rotatingtweets.php:
|
128 |
msgid "Source of tweet"
|
129 |
-
msgstr ""
|
130 |
|
131 |
-
#: rotatingtweets.php:
|
132 |
msgid "'reply · retweet · favorite' links"
|
133 |
-
msgstr ""
|
134 |
|
135 |
-
#: rotatingtweets.php:
|
136 |
msgid "Show follow button?"
|
137 |
-
msgstr ""
|
138 |
|
139 |
-
#: rotatingtweets.php:
|
140 |
msgctxt "Show follow button?"
|
141 |
msgid "None"
|
142 |
-
msgstr ""
|
143 |
|
144 |
-
#: rotatingtweets.php:
|
145 |
msgid "Show name and number of followers"
|
146 |
-
msgstr ""
|
147 |
|
148 |
-
#: rotatingtweets.php:
|
149 |
msgid "Show name only"
|
150 |
-
msgstr ""
|
151 |
|
152 |
-
#: rotatingtweets.php:
|
153 |
msgid "Show followers only"
|
154 |
-
msgstr ""
|
155 |
|
156 |
-
#: rotatingtweets.php:
|
157 |
msgid "Show button only"
|
158 |
-
msgstr ""
|
159 |
|
160 |
-
#: rotatingtweets.php:
|
161 |
msgid "less than a second ago"
|
162 |
-
msgstr ""
|
163 |
|
164 |
-
#: rotatingtweets.php:
|
165 |
msgid "%d seconds ago"
|
166 |
-
msgstr ""
|
167 |
|
168 |
-
#: rotatingtweets.php:
|
169 |
msgid "about a minute ago"
|
170 |
msgid_plural "about %d minutes ago"
|
171 |
-
msgstr[0] ""
|
172 |
-
msgstr[1] ""
|
173 |
|
174 |
-
#: rotatingtweets.php:
|
175 |
msgid "about an hour ago"
|
176 |
msgid_plural "about %d hours ago"
|
177 |
-
msgstr[0] ""
|
178 |
-
msgstr[1] ""
|
179 |
|
180 |
-
#: rotatingtweets.php:
|
181 |
msgid "yesterday"
|
182 |
-
msgstr ""
|
183 |
|
184 |
-
#: rotatingtweets.php:
|
185 |
msgid "about a day ago"
|
186 |
msgid_plural "about %d days ago"
|
187 |
-
msgstr[0] ""
|
188 |
-
msgstr[1] ""
|
189 |
|
190 |
-
#: rotatingtweets.php:
|
191 |
msgid "last week"
|
192 |
-
msgstr ""
|
193 |
|
194 |
-
#: rotatingtweets.php:
|
195 |
msgid "about a week ago"
|
196 |
msgid_plural "about %d weeks ago"
|
197 |
-
msgstr[0] ""
|
198 |
-
msgstr[1] ""
|
199 |
|
200 |
-
#: rotatingtweets.php:
|
201 |
msgid "last month"
|
202 |
-
msgstr ""
|
203 |
|
204 |
-
#: rotatingtweets.php:
|
205 |
msgid "about a month ago"
|
206 |
msgid_plural "about %d months ago"
|
207 |
-
msgstr[0] ""
|
208 |
-
msgstr[1] ""
|
209 |
|
210 |
-
#: rotatingtweets.php:
|
211 |
msgid "last year"
|
212 |
-
msgstr ""
|
213 |
|
214 |
-
#: rotatingtweets.php:
|
215 |
msgid "about a year ago"
|
216 |
msgid_plural "about %d years ago"
|
217 |
-
msgstr[0] ""
|
218 |
-
msgstr[1] ""
|
219 |
|
220 |
-
#: rotatingtweets.php:
|
221 |
msgctxt "abbreviated timestamp in seconds"
|
222 |
msgid "%ds"
|
223 |
-
msgstr ""
|
224 |
|
225 |
-
#: rotatingtweets.php:
|
226 |
msgctxt "abbreviated timestamp in minutes"
|
227 |
msgid "%dm"
|
228 |
-
msgstr ""
|
229 |
|
230 |
-
#: rotatingtweets.php:
|
231 |
msgctxt "abbreviated timestamp in hours"
|
232 |
msgid "%dh"
|
233 |
-
msgstr ""
|
234 |
|
235 |
-
#: rotatingtweets.php:
|
236 |
msgctxt ""
|
237 |
"short date format as per http://uk.php.net/manual/en/function.date.php"
|
238 |
msgid "j M"
|
239 |
-
msgstr ""
|
240 |
|
241 |
-
#: rotatingtweets.php:
|
242 |
msgctxt ""
|
243 |
"slightly longer date format as per http://uk.php.net/manual/en/function.date."
|
244 |
"php"
|
245 |
msgid "j M Y"
|
246 |
-
msgstr ""
|
247 |
|
248 |
-
#: rotatingtweets.php:
|
249 |
msgid "reply"
|
250 |
msgstr "Répondre"
|
251 |
|
252 |
-
#: rotatingtweets.php:
|
253 |
msgid "retweet"
|
254 |
msgstr "Retweeter"
|
255 |
|
256 |
-
#: rotatingtweets.php:
|
257 |
msgid "favorite"
|
258 |
msgstr "Favori"
|
259 |
|
260 |
-
#: rotatingtweets.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
261 |
msgid ""
|
262 |
"Please update <a href=\"%2$s\">your settings for Rotating Tweets</a>. The "
|
263 |
"Twitter API <a href=\"%1$s\">changed in March 2013</a> and new settings are "
|
264 |
"needed for Rotating Tweets to continue working."
|
265 |
msgstr ""
|
266 |
|
267 |
-
#: rotatingtweets.php:
|
268 |
msgid ""
|
269 |
"Please update <a href=\"%2$s\">your settings for Rotating Tweets</a>. The "
|
270 |
"Twitter API will <a href=\"%1$s\">be changing in March 2013</a> and new "
|
@@ -272,22 +309,22 @@ msgid ""
|
|
272 |
"changes."
|
273 |
msgstr ""
|
274 |
|
275 |
-
#: rotatingtweets.php:
|
276 |
msgid ""
|
277 |
"Please update <a href=\"%1$s\">your settings for Rotating Tweets</a>. "
|
278 |
"Currently Rotating Tweets cannot authenticate you with Twitter using the "
|
279 |
"details you have given."
|
280 |
msgstr ""
|
281 |
|
282 |
-
#: rotatingtweets.php:
|
283 |
msgid "Rotating Tweets: Twitter API settings"
|
284 |
msgstr ""
|
285 |
|
286 |
-
#: rotatingtweets.php:
|
287 |
msgid "You do not have sufficient permissions to access this page."
|
288 |
msgstr ""
|
289 |
|
290 |
-
#: rotatingtweets.php:
|
291 |
msgid ""
|
292 |
"<p>Twitter <a href=\"%s\">recently announced</a> that they will be changing "
|
293 |
"the way that they allow people to use the information in their tweets.</"
|
@@ -295,14 +332,14 @@ msgid ""
|
|
295 |
"continues working:</p>"
|
296 |
msgstr ""
|
297 |
|
298 |
-
#: rotatingtweets.php:
|
299 |
msgid ""
|
300 |
"<h3>Step 1:</h3><p>Go to the <a href=\"%s\">My applications page</a> on the "
|
301 |
"Twitter website to set up your website as a new Twitter 'application'. You "
|
302 |
"may need to log-in using your Twitter user name and password.</p>"
|
303 |
msgstr ""
|
304 |
|
305 |
-
#: rotatingtweets.php:
|
306 |
msgid ""
|
307 |
"<h3>Step 2:</h3><p>If you don't already have a suitable 'application' that "
|
308 |
"you can use for your website, set one up on the <a href=\"%s\">Create an "
|
@@ -311,14 +348,14 @@ msgid ""
|
|
311 |
"p><p>You don't need a Callback URL.</p>"
|
312 |
msgstr ""
|
313 |
|
314 |
-
#: rotatingtweets.php:
|
315 |
msgid ""
|
316 |
"<h3>Step 3:</h3><p>After clicking <strong>Create your Twitter application</"
|
317 |
"strong>, on the following page, click on <strong>Create my access token</"
|
318 |
"strong>.</p>"
|
319 |
msgstr ""
|
320 |
|
321 |
-
#: rotatingtweets.php:
|
322 |
msgid ""
|
323 |
"<h3>Step 4:</h3><p>Copy the <strong>Consumer key</strong>, <strong>Consumer "
|
324 |
"secret</strong>, <strong>Access token</strong> and <strong>Access token "
|
@@ -326,129 +363,158 @@ msgid ""
|
|
326 |
"p>"
|
327 |
msgstr ""
|
328 |
|
329 |
-
#: rotatingtweets.php:
|
330 |
msgid ""
|
331 |
"<h3>Step 5:</h3><p>Click on <strong>Save Changes</strong>. If there are any "
|
332 |
"problems, you will get an error message from Twitter which should help "
|
333 |
"diagnose the problem.</p>"
|
334 |
msgstr ""
|
335 |
|
336 |
-
#: rotatingtweets.php:
|
337 |
msgid ""
|
338 |
"<p><em>Even though you are only entering one set of Twitter API data, "
|
339 |
"Rotating Tweets will continue to support multiple widgets and shortcodes "
|
340 |
"pulling from a variety of different Twitter accounts.</em></p>"
|
341 |
msgstr ""
|
342 |
|
343 |
-
#: rotatingtweets.php:
|
344 |
msgid "Save Changes"
|
345 |
-
msgstr ""
|
346 |
|
347 |
-
#: rotatingtweets.php:
|
348 |
msgid "Twitter API Settings"
|
349 |
-
msgstr ""
|
350 |
|
351 |
-
#: rotatingtweets.php:
|
352 |
msgid "Twitter API Consumer Key"
|
353 |
-
msgstr ""
|
354 |
|
355 |
-
#: rotatingtweets.php:
|
356 |
msgid "Twitter API Consumer Secret"
|
357 |
-
msgstr ""
|
358 |
|
359 |
-
#: rotatingtweets.php:
|
360 |
msgid "Twitter API Access Token"
|
361 |
-
msgstr ""
|
362 |
|
363 |
-
#: rotatingtweets.php:
|
364 |
msgid "Twitter API Access Token Secret"
|
365 |
-
msgstr ""
|
366 |
|
367 |
-
#: rotatingtweets.php:
|
368 |
msgid "Error: Twitter API Consumer Key not correctly formatted."
|
369 |
msgstr ""
|
|
|
|
|
370 |
|
371 |
-
#: rotatingtweets.php:
|
372 |
msgid "Error: Twitter API Consumer Secret not correctly formatted."
|
373 |
msgstr ""
|
|
|
|
|
374 |
|
375 |
-
#: rotatingtweets.php:
|
376 |
msgid "Error: Twitter API Access Token not correctly formatted."
|
377 |
msgstr ""
|
|
|
|
|
378 |
|
379 |
-
#: rotatingtweets.php:
|
380 |
msgid "Error: Twitter API Access Token Secret not correctly formatted."
|
381 |
msgstr ""
|
|
|
|
|
382 |
|
383 |
-
#: rotatingtweets.php:
|
384 |
msgid ""
|
385 |
"Error message received from Twitter: %1$s. <a href=\"%2$s\">Please check "
|
386 |
"your API key, secret, token and secret token on the Twitter website</a>."
|
387 |
msgstr ""
|
388 |
|
389 |
-
#: rotatingtweets.php:
|
390 |
msgid "Problem retrieving data from Twitter"
|
|
|
|
|
|
|
|
|
391 |
msgstr ""
|
392 |
|
393 |
-
#: rotatingtweets.php:
|
394 |
msgid "This website is currently <a href='%s'>rate-limited by Twitter</a>."
|
395 |
-
msgstr ""
|
396 |
|
397 |
-
#: rotatingtweets.php:
|
398 |
msgid "Next attempt to get data will be in %d minute"
|
399 |
msgid_plural "Next attempt to get data will be in %d minutes"
|
400 |
-
msgstr[0] ""
|
401 |
-
msgstr[1] ""
|
402 |
|
403 |
-
#: rotatingtweets.php:
|
404 |
msgid "Next attempt to get data will be in less than a minute"
|
405 |
msgstr ""
|
|
|
|
|
|
|
|
|
|
|
406 |
|
407 |
-
#: rotatingtweets.php:
|
408 |
-
msgid "
|
|
|
409 |
msgstr ""
|
410 |
|
411 |
-
#: rotatingtweets.php:
|
412 |
msgid ""
|
413 |
-
"Please check the
|
|
|
414 |
"status</a>."
|
415 |
msgstr ""
|
416 |
|
417 |
-
#: rotatingtweets.php:
|
418 |
-
msgid "
|
419 |
msgstr ""
|
420 |
|
421 |
-
#: rotatingtweets.php:
|
422 |
-
msgid "
|
423 |
msgstr ""
|
424 |
|
425 |
-
#: rotatingtweets.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
426 |
msgid "Twitter"
|
427 |
-
msgstr ""
|
428 |
|
429 |
-
#: rotatingtweets.php:
|
430 |
msgid "Retweeted by %s"
|
431 |
msgstr "Retweeté par %s"
|
432 |
|
433 |
-
#: rotatingtweets.php:
|
434 |
msgid "Expand"
|
435 |
msgstr "Ouvrir"
|
436 |
|
437 |
-
#: rotatingtweets.php:
|
438 |
msgid "Problem retrieving data from Twitter."
|
439 |
-
msgstr ""
|
440 |
|
441 |
-
#: rotatingtweets.php:
|
442 |
msgid "Please check the comments on this page's HTML to understand more."
|
443 |
msgstr ""
|
|
|
|
|
444 |
|
445 |
-
#: rotatingtweets.php:
|
446 |
msgid "Follow @%s"
|
447 |
msgstr "Suivre @%s"
|
448 |
|
449 |
#. Plugin Name of the plugin/theme
|
450 |
msgid "Rotating Tweets (Twitter widget & shortcode)"
|
451 |
-
msgstr ""
|
452 |
|
453 |
#. Description of the plugin/theme
|
454 |
msgid ""
|
@@ -458,8 +524,14 @@ msgstr ""
|
|
458 |
|
459 |
#. Author of the plugin/theme
|
460 |
msgid "Martin Tod"
|
461 |
-
msgstr ""
|
462 |
|
463 |
#. Author URI of the plugin/theme
|
464 |
msgid "http://www.martintod.org.uk"
|
465 |
-
msgstr ""
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# This file is distributed under the same license as the Rotating Tweets (Twitter widget & shortcode) package.
|
|
|
2 |
msgid ""
|
3 |
msgstr ""
|
4 |
+
"Project-Id-Version: Rotating Tweets (Twitter widget & shortcode) 0.600\n"
|
5 |
"Report-Msgid-Bugs-To: http://wordpress.org/tag/rotatingtweets\n"
|
6 |
+
"POT-Creation-Date: 2013-03-31 17:27:05+00:00\n"
|
7 |
+
"PO-Revision-Date: 2013-03-31 19:00-0000\n"
|
8 |
"Last-Translator: Martin Tod <martin@martintod.org.uk>\n"
|
9 |
"Language-Team: \n"
|
10 |
+
"Language: fr_FR\n"
|
11 |
"MIME-Version: 1.0\n"
|
12 |
"Content-Type: text/plain; charset=UTF-8\n"
|
13 |
"Content-Transfer-Encoding: 8bit\n"
|
18 |
#: rotatingtweets.php:41
|
19 |
msgid "A widget to show tweets for a particular user in rotation."
|
20 |
msgstr ""
|
21 |
+
"Un widget pour montrer les tweets pour un usager particulier en rotation."
|
22 |
|
23 |
+
#: rotatingtweets.php:192
|
24 |
msgid "Title:"
|
25 |
+
msgstr "Titre:"
|
26 |
|
27 |
+
#: rotatingtweets.php:204
|
28 |
msgid "Twitter name:"
|
29 |
+
msgstr "Nom du Twitter:"
|
30 |
+
|
31 |
+
#: rotatingtweets.php:205
|
32 |
+
msgid "Search:"
|
33 |
+
msgstr "Rechercher:"
|
34 |
+
|
35 |
+
#: rotatingtweets.php:206
|
36 |
+
msgid "List Tag:"
|
37 |
msgstr ""
|
38 |
|
39 |
+
#: rotatingtweets.php:207
|
40 |
+
msgid "Type of Tweets?"
|
41 |
+
msgstr "Type de Tweets?"
|
42 |
+
|
43 |
+
#: rotatingtweets.php:210
|
44 |
+
msgid "User timeline (default)"
|
45 |
+
msgstr "Fil d'utilisateur (par défaut)"
|
46 |
+
|
47 |
+
#: rotatingtweets.php:211
|
48 |
+
msgid "Favorites"
|
49 |
+
msgstr "Favoris"
|
50 |
+
|
51 |
+
#: rotatingtweets.php:212
|
52 |
+
msgid "Search"
|
53 |
+
msgstr "Rechercher"
|
54 |
+
|
55 |
+
#: rotatingtweets.php:213
|
56 |
+
msgid "List"
|
57 |
+
msgstr "Liste"
|
58 |
+
|
59 |
+
#: rotatingtweets.php:221
|
60 |
msgid "Include retweets?"
|
61 |
+
msgstr "Inclure les retweets?"
|
62 |
|
63 |
+
#: rotatingtweets.php:222
|
64 |
msgid "Exclude replies?"
|
65 |
+
msgstr "Exclure les réponses?"
|
66 |
|
67 |
+
#: rotatingtweets.php:223
|
68 |
msgid "Open all links in new window or tab?"
|
69 |
msgstr ""
|
70 |
+
"Ouvrir tous les liens dans une nouvelle fenêtre ou dans un autre onglet?"
|
71 |
|
72 |
+
#: rotatingtweets.php:224
|
73 |
msgid "How many tweets?"
|
74 |
+
msgstr "Combien de tweets?"
|
75 |
|
76 |
+
#: rotatingtweets.php:232
|
77 |
msgid "Speed"
|
78 |
+
msgstr "Vitesse"
|
79 |
|
80 |
+
#: rotatingtweets.php:235
|
81 |
msgid "Faster (3 seconds)"
|
82 |
+
msgstr "Vite (3 secondes)"
|
83 |
|
84 |
+
#: rotatingtweets.php:236
|
85 |
msgid "Normal (4 seconds)"
|
86 |
+
msgstr "Normal (4 secondes)"
|
87 |
|
88 |
+
#: rotatingtweets.php:237
|
89 |
msgid "Slower (5 seconds)"
|
90 |
+
msgstr "Lent (5 secondes)"
|
91 |
|
92 |
+
#: rotatingtweets.php:238
|
93 |
msgid "Slowest (6 seconds)"
|
94 |
+
msgstr "Plus lent (6 secondes)"
|
95 |
|
96 |
+
#: rotatingtweets.php:239
|
97 |
msgid "Ultra slow (20 seconds)"
|
98 |
+
msgstr "Ultra lent (20 secondes)"
|
99 |
|
100 |
+
#: rotatingtweets.php:251
|
101 |
msgid "Scroll Up"
|
102 |
+
msgstr "Défile vers le haut"
|
103 |
|
104 |
+
#: rotatingtweets.php:252
|
105 |
msgid "Scroll Down"
|
106 |
+
msgstr "Défile vers le bas"
|
107 |
|
108 |
+
#: rotatingtweets.php:253
|
109 |
msgid "Scroll Left"
|
110 |
+
msgstr "Défile vers la gauche"
|
111 |
|
112 |
+
#: rotatingtweets.php:254
|
113 |
msgid "Scroll Right"
|
114 |
+
msgstr "Défile vers la droite"
|
115 |
|
116 |
+
#: rotatingtweets.php:255
|
117 |
msgid "Fade"
|
118 |
+
msgstr "Fondu"
|
119 |
|
120 |
+
#: rotatingtweets.php:259
|
121 |
msgid "Type of rotation"
|
122 |
+
msgstr "Type de rotation"
|
123 |
|
124 |
+
#: rotatingtweets.php:268
|
125 |
msgid "Display format"
|
126 |
+
msgstr "Format d'affichage"
|
127 |
|
128 |
+
#: rotatingtweets.php:271
|
129 |
msgid "Original rotating tweets layout"
|
130 |
+
msgstr "Disposition originale de rotating tweets"
|
131 |
|
132 |
+
#: rotatingtweets.php:272
|
133 |
msgid ""
|
134 |
"<a target='_blank' href='https://dev.twitter.com/terms/display-"
|
135 |
"guidelines'>Official Twitter guidelines</a> (regular)"
|
136 |
msgstr ""
|
137 |
|
138 |
+
#: rotatingtweets.php:273
|
139 |
msgid ""
|
140 |
"<a target='_blank' href='https://dev.twitter.com/terms/display-"
|
141 |
"guidelines'>Official Twitter guidelines</a> (wide)"
|
142 |
msgstr ""
|
143 |
|
144 |
+
#: rotatingtweets.php:283
|
145 |
msgid "Show tweet details?"
|
146 |
+
msgstr "Montrer les détails du tweet?"
|
147 |
|
148 |
+
#: rotatingtweets.php:286
|
149 |
msgid "Time/date of tweet"
|
150 |
+
msgstr "Heure/date du tweet"
|
151 |
|
152 |
+
#: rotatingtweets.php:287
|
153 |
msgid "Name of person tweeting"
|
154 |
+
msgstr "Nom de la personne tweetant"
|
155 |
|
156 |
+
#: rotatingtweets.php:288
|
157 |
msgid "Source of tweet"
|
158 |
+
msgstr "Source du tweet"
|
159 |
|
160 |
+
#: rotatingtweets.php:289
|
161 |
msgid "'reply · retweet · favorite' links"
|
162 |
+
msgstr " Liens de 'Répondre · Retweeter · Favori'"
|
163 |
|
164 |
+
#: rotatingtweets.php:300
|
165 |
msgid "Show follow button?"
|
166 |
+
msgstr "Montrer le bouton suivre?"
|
167 |
|
168 |
+
#: rotatingtweets.php:303
|
169 |
msgctxt "Show follow button?"
|
170 |
msgid "None"
|
171 |
+
msgstr "Rien"
|
172 |
|
173 |
+
#: rotatingtweets.php:304
|
174 |
msgid "Show name and number of followers"
|
175 |
+
msgstr "Montrer le nom et le nombre d'abonnés"
|
176 |
|
177 |
+
#: rotatingtweets.php:305
|
178 |
msgid "Show name only"
|
179 |
+
msgstr "Montrer seulement le nom"
|
180 |
|
181 |
+
#: rotatingtweets.php:306
|
182 |
msgid "Show followers only"
|
183 |
+
msgstr "Montrer seulement les abonnés"
|
184 |
|
185 |
+
#: rotatingtweets.php:307
|
186 |
msgid "Show button only"
|
187 |
+
msgstr "Montrer seulement le bouton"
|
188 |
|
189 |
+
#: rotatingtweets.php:335
|
190 |
msgid "less than a second ago"
|
191 |
+
msgstr "Il y a moins d'une seconde"
|
192 |
|
193 |
+
#: rotatingtweets.php:336
|
194 |
msgid "%d seconds ago"
|
195 |
+
msgstr "Il y a %d secondes"
|
196 |
|
197 |
+
#: rotatingtweets.php:337
|
198 |
msgid "about a minute ago"
|
199 |
msgid_plural "about %d minutes ago"
|
200 |
+
msgstr[0] "Il y a une minute"
|
201 |
+
msgstr[1] "Il y a %d minutes"
|
202 |
|
203 |
+
#: rotatingtweets.php:338 rotatingtweets.php:340
|
204 |
msgid "about an hour ago"
|
205 |
msgid_plural "about %d hours ago"
|
206 |
+
msgstr[0] "Il y a une heure"
|
207 |
+
msgstr[1] "Il y a %d heures"
|
208 |
|
209 |
+
#: rotatingtweets.php:339
|
210 |
msgid "yesterday"
|
211 |
+
msgstr "Hier"
|
212 |
|
213 |
+
#: rotatingtweets.php:341
|
214 |
msgid "about a day ago"
|
215 |
msgid_plural "about %d days ago"
|
216 |
+
msgstr[0] "Il y a un jour"
|
217 |
+
msgstr[1] "Il y a %d jours"
|
218 |
|
219 |
+
#: rotatingtweets.php:342
|
220 |
msgid "last week"
|
221 |
+
msgstr "La semaine dernière"
|
222 |
|
223 |
+
#: rotatingtweets.php:343
|
224 |
msgid "about a week ago"
|
225 |
msgid_plural "about %d weeks ago"
|
226 |
+
msgstr[0] "Il y a une semaine"
|
227 |
+
msgstr[1] "Il y a %d semaines"
|
228 |
|
229 |
+
#: rotatingtweets.php:344
|
230 |
msgid "last month"
|
231 |
+
msgstr "Le mois dernier"
|
232 |
|
233 |
+
#: rotatingtweets.php:345
|
234 |
msgid "about a month ago"
|
235 |
msgid_plural "about %d months ago"
|
236 |
+
msgstr[0] "Il y a un mois"
|
237 |
+
msgstr[1] "Il y a %d mois"
|
238 |
|
239 |
+
#: rotatingtweets.php:346
|
240 |
msgid "last year"
|
241 |
+
msgstr "L'année dernière"
|
242 |
|
243 |
+
#: rotatingtweets.php:347
|
244 |
msgid "about a year ago"
|
245 |
msgid_plural "about %d years ago"
|
246 |
+
msgstr[0] "Il y a un an"
|
247 |
+
msgstr[1] "Il y a %d ans"
|
248 |
|
249 |
+
#: rotatingtweets.php:354
|
250 |
msgctxt "abbreviated timestamp in seconds"
|
251 |
msgid "%ds"
|
252 |
+
msgstr "%ds"
|
253 |
|
254 |
+
#: rotatingtweets.php:355
|
255 |
msgctxt "abbreviated timestamp in minutes"
|
256 |
msgid "%dm"
|
257 |
+
msgstr "%dm"
|
258 |
|
259 |
+
#: rotatingtweets.php:356
|
260 |
msgctxt "abbreviated timestamp in hours"
|
261 |
msgid "%dh"
|
262 |
+
msgstr "%dh"
|
263 |
|
264 |
+
#: rotatingtweets.php:357
|
265 |
msgctxt ""
|
266 |
"short date format as per http://uk.php.net/manual/en/function.date.php"
|
267 |
msgid "j M"
|
268 |
+
msgstr "j M"
|
269 |
|
270 |
+
#: rotatingtweets.php:358
|
271 |
msgctxt ""
|
272 |
"slightly longer date format as per http://uk.php.net/manual/en/function.date."
|
273 |
"php"
|
274 |
msgid "j M Y"
|
275 |
+
msgstr "j M Y"
|
276 |
|
277 |
+
#: rotatingtweets.php:364
|
278 |
msgid "reply"
|
279 |
msgstr "Répondre"
|
280 |
|
281 |
+
#: rotatingtweets.php:365
|
282 |
msgid "retweet"
|
283 |
msgstr "Retweeter"
|
284 |
|
285 |
+
#: rotatingtweets.php:366
|
286 |
msgid "favorite"
|
287 |
msgstr "Favori"
|
288 |
|
289 |
+
#: rotatingtweets.php:476
|
290 |
+
msgid "next"
|
291 |
+
msgstr "suivant"
|
292 |
+
|
293 |
+
#: rotatingtweets.php:477
|
294 |
+
msgid "prev"
|
295 |
+
msgstr "précédant"
|
296 |
+
|
297 |
+
#: rotatingtweets.php:512
|
298 |
msgid ""
|
299 |
"Please update <a href=\"%2$s\">your settings for Rotating Tweets</a>. The "
|
300 |
"Twitter API <a href=\"%1$s\">changed in March 2013</a> and new settings are "
|
301 |
"needed for Rotating Tweets to continue working."
|
302 |
msgstr ""
|
303 |
|
304 |
+
#: rotatingtweets.php:514
|
305 |
msgid ""
|
306 |
"Please update <a href=\"%2$s\">your settings for Rotating Tweets</a>. The "
|
307 |
"Twitter API will <a href=\"%1$s\">be changing in March 2013</a> and new "
|
309 |
"changes."
|
310 |
msgstr ""
|
311 |
|
312 |
+
#: rotatingtweets.php:520
|
313 |
msgid ""
|
314 |
"Please update <a href=\"%1$s\">your settings for Rotating Tweets</a>. "
|
315 |
"Currently Rotating Tweets cannot authenticate you with Twitter using the "
|
316 |
"details you have given."
|
317 |
msgstr ""
|
318 |
|
319 |
+
#: rotatingtweets.php:528 rotatingtweets.php:534
|
320 |
msgid "Rotating Tweets: Twitter API settings"
|
321 |
msgstr ""
|
322 |
|
323 |
+
#: rotatingtweets.php:536
|
324 |
msgid "You do not have sufficient permissions to access this page."
|
325 |
msgstr ""
|
326 |
|
327 |
+
#: rotatingtweets.php:538
|
328 |
msgid ""
|
329 |
"<p>Twitter <a href=\"%s\">recently announced</a> that they will be changing "
|
330 |
"the way that they allow people to use the information in their tweets.</"
|
332 |
"continues working:</p>"
|
333 |
msgstr ""
|
334 |
|
335 |
+
#: rotatingtweets.php:539
|
336 |
msgid ""
|
337 |
"<h3>Step 1:</h3><p>Go to the <a href=\"%s\">My applications page</a> on the "
|
338 |
"Twitter website to set up your website as a new Twitter 'application'. You "
|
339 |
"may need to log-in using your Twitter user name and password.</p>"
|
340 |
msgstr ""
|
341 |
|
342 |
+
#: rotatingtweets.php:540
|
343 |
msgid ""
|
344 |
"<h3>Step 2:</h3><p>If you don't already have a suitable 'application' that "
|
345 |
"you can use for your website, set one up on the <a href=\"%s\">Create an "
|
348 |
"p><p>You don't need a Callback URL.</p>"
|
349 |
msgstr ""
|
350 |
|
351 |
+
#: rotatingtweets.php:541
|
352 |
msgid ""
|
353 |
"<h3>Step 3:</h3><p>After clicking <strong>Create your Twitter application</"
|
354 |
"strong>, on the following page, click on <strong>Create my access token</"
|
355 |
"strong>.</p>"
|
356 |
msgstr ""
|
357 |
|
358 |
+
#: rotatingtweets.php:542
|
359 |
msgid ""
|
360 |
"<h3>Step 4:</h3><p>Copy the <strong>Consumer key</strong>, <strong>Consumer "
|
361 |
"secret</strong>, <strong>Access token</strong> and <strong>Access token "
|
363 |
"p>"
|
364 |
msgstr ""
|
365 |
|
366 |
+
#: rotatingtweets.php:543
|
367 |
msgid ""
|
368 |
"<h3>Step 5:</h3><p>Click on <strong>Save Changes</strong>. If there are any "
|
369 |
"problems, you will get an error message from Twitter which should help "
|
370 |
"diagnose the problem.</p>"
|
371 |
msgstr ""
|
372 |
|
373 |
+
#: rotatingtweets.php:544
|
374 |
msgid ""
|
375 |
"<p><em>Even though you are only entering one set of Twitter API data, "
|
376 |
"Rotating Tweets will continue to support multiple widgets and shortcodes "
|
377 |
"pulling from a variety of different Twitter accounts.</em></p>"
|
378 |
msgstr ""
|
379 |
|
380 |
+
#: rotatingtweets.php:548
|
381 |
msgid "Save Changes"
|
382 |
+
msgstr "Sauvegarder les changements"
|
383 |
|
384 |
+
#: rotatingtweets.php:555
|
385 |
msgid "Twitter API Settings"
|
386 |
+
msgstr "Paramètres de l'API de Twitter"
|
387 |
|
388 |
+
#: rotatingtweets.php:556
|
389 |
msgid "Twitter API Consumer Key"
|
390 |
+
msgstr "Clé d'usager pour l'API de Twitter"
|
391 |
|
392 |
+
#: rotatingtweets.php:557
|
393 |
msgid "Twitter API Consumer Secret"
|
394 |
+
msgstr "Clé secrète d'usager pour l'API Twitter"
|
395 |
|
396 |
+
#: rotatingtweets.php:558
|
397 |
msgid "Twitter API Access Token"
|
398 |
+
msgstr "Jeton d'accès pour l'API de Twitter"
|
399 |
|
400 |
+
#: rotatingtweets.php:559
|
401 |
msgid "Twitter API Access Token Secret"
|
402 |
+
msgstr "Jeton secret d'accès pour l'API de Twitter"
|
403 |
|
404 |
+
#: rotatingtweets.php:590
|
405 |
msgid "Error: Twitter API Consumer Key not correctly formatted."
|
406 |
msgstr ""
|
407 |
+
"Erreur: La clé d'usager pour l'API de Twitter n'est pas formatée "
|
408 |
+
"correctement."
|
409 |
|
410 |
+
#: rotatingtweets.php:597
|
411 |
msgid "Error: Twitter API Consumer Secret not correctly formatted."
|
412 |
msgstr ""
|
413 |
+
"Erreur: La clé secrète d'usager pour l'API de Twitter n'est pas formatée "
|
414 |
+
"correctement."
|
415 |
|
416 |
+
#: rotatingtweets.php:604
|
417 |
msgid "Error: Twitter API Access Token not correctly formatted."
|
418 |
msgstr ""
|
419 |
+
"Erreur: Le jeton d'accès pour l'API de Twitter n'est pas formaté "
|
420 |
+
"correctement."
|
421 |
|
422 |
+
#: rotatingtweets.php:611
|
423 |
msgid "Error: Twitter API Access Token Secret not correctly formatted."
|
424 |
msgstr ""
|
425 |
+
"Erreur: Le jeton secret d'accès pour l'API de Twitter n'est pas formaté "
|
426 |
+
"correctement."
|
427 |
|
428 |
+
#: rotatingtweets.php:618
|
429 |
msgid ""
|
430 |
"Error message received from Twitter: %1$s. <a href=\"%2$s\">Please check "
|
431 |
"your API key, secret, token and secret token on the Twitter website</a>."
|
432 |
msgstr ""
|
433 |
|
434 |
+
#: rotatingtweets.php:936
|
435 |
msgid "Problem retrieving data from Twitter"
|
436 |
+
msgstr "Problème de recouvrement des données de Twitter."
|
437 |
+
|
438 |
+
#: rotatingtweets.php:938
|
439 |
+
msgid "%3$s error code: %1$s - %2$s"
|
440 |
msgstr ""
|
441 |
|
442 |
+
#: rotatingtweets.php:944
|
443 |
msgid "This website is currently <a href='%s'>rate-limited by Twitter</a>."
|
444 |
+
msgstr "Ce site web a présentement <a href='%s'>un taux limité par Twitter</a>"
|
445 |
|
446 |
+
#: rotatingtweets.php:946
|
447 |
msgid "Next attempt to get data will be in %d minute"
|
448 |
msgid_plural "Next attempt to get data will be in %d minutes"
|
449 |
+
msgstr[0] "Le prochain essai pour obtenir les données sera dans %d minute"
|
450 |
+
msgstr[1] "Le prochain essai pour obtenir les données sera dans %d minutes"
|
451 |
|
452 |
+
#: rotatingtweets.php:947
|
453 |
msgid "Next attempt to get data will be in less than a minute"
|
454 |
msgstr ""
|
455 |
+
"Le prochain essai pour obtenir les données sera dans moins d'une minute."
|
456 |
+
|
457 |
+
#: rotatingtweets.php:952
|
458 |
+
msgid "Please check your <a href='%s'>Rotating Tweets settings</a>."
|
459 |
+
msgstr ""
|
460 |
|
461 |
+
#: rotatingtweets.php:955
|
462 |
+
msgid ""
|
463 |
+
"Please check the Twitter screen name or list slug in the widget or shortcode."
|
464 |
msgstr ""
|
465 |
|
466 |
+
#: rotatingtweets.php:960 rotatingtweets.php:966
|
467 |
msgid ""
|
468 |
+
"Please check the Twitter name in the widget or shortcode, <a "
|
469 |
+
"href='%2$s'>Rotating Tweets settings</a> or the <a href='%1$s'>Twitter API "
|
470 |
"status</a>."
|
471 |
msgstr ""
|
472 |
|
473 |
+
#: rotatingtweets.php:963
|
474 |
+
msgid "Please check your PHP and server settings."
|
475 |
msgstr ""
|
476 |
|
477 |
+
#: rotatingtweets.php:972
|
478 |
+
msgid "No Tweet results for search <a href=\"%2$s\"><strong>%1$s</strong></a>"
|
479 |
msgstr ""
|
480 |
|
481 |
+
#: rotatingtweets.php:1098 rotatingtweets.php:1166 rotatingtweets.php:1183
|
482 |
+
msgid "from <a href='%1$s' title='%2$s'>%2$s's Twitter</a>"
|
483 |
+
msgstr "De <a href='%1$s' title='%2$s'>%2$s's Twitter</a>"
|
484 |
+
|
485 |
+
#: rotatingtweets.php:1102 rotatingtweets.php:1187
|
486 |
+
msgid "via %s"
|
487 |
+
msgstr "via %s"
|
488 |
+
|
489 |
+
#: rotatingtweets.php:1119
|
490 |
msgid "Twitter"
|
491 |
+
msgstr "Twitter"
|
492 |
|
493 |
+
#: rotatingtweets.php:1128 rotatingtweets.php:1147
|
494 |
msgid "Retweeted by %s"
|
495 |
msgstr "Retweeté par %s"
|
496 |
|
497 |
+
#: rotatingtweets.php:1149
|
498 |
msgid "Expand"
|
499 |
msgstr "Ouvrir"
|
500 |
|
501 |
+
#: rotatingtweets.php:1201
|
502 |
msgid "Problem retrieving data from Twitter."
|
503 |
+
msgstr "Problème de recouvrement de données de Twitter."
|
504 |
|
505 |
+
#: rotatingtweets.php:1203
|
506 |
msgid "Please check the comments on this page's HTML to understand more."
|
507 |
msgstr ""
|
508 |
+
"S'il vous plait, regardez les commentaires sur cette page HTML pour mieux "
|
509 |
+
"comprendre."
|
510 |
|
511 |
+
#: rotatingtweets.php:1226
|
512 |
msgid "Follow @%s"
|
513 |
msgstr "Suivre @%s"
|
514 |
|
515 |
#. Plugin Name of the plugin/theme
|
516 |
msgid "Rotating Tweets (Twitter widget & shortcode)"
|
517 |
+
msgstr "Rotating Tweets (Widget pour Twitter & code court)"
|
518 |
|
519 |
#. Description of the plugin/theme
|
520 |
msgid ""
|
524 |
|
525 |
#. Author of the plugin/theme
|
526 |
msgid "Martin Tod"
|
527 |
+
msgstr "Martin Tod"
|
528 |
|
529 |
#. Author URI of the plugin/theme
|
530 |
msgid "http://www.martintod.org.uk"
|
531 |
+
msgstr "http://www.martintod.org.uk"
|
532 |
+
|
533 |
+
#~ msgid "Exclure les réponses?"
|
534 |
+
#~ msgstr "Exclure les réponses?"
|
535 |
+
|
536 |
+
#~ msgid "Wordpress error message"
|
537 |
+
#~ msgstr "Message d'erreur Wordpress"
|
languages/rotatingtweets.pot
CHANGED
@@ -2,9 +2,9 @@
|
|
2 |
# This file is distributed under the same license as the Rotating Tweets (Twitter widget & shortcode) package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
-
"Project-Id-Version: Rotating Tweets (Twitter widget & shortcode)
|
6 |
"Report-Msgid-Bugs-To: http://wordpress.org/tag/rotatingtweets\n"
|
7 |
-
"POT-Creation-Date: 2013-03-
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
@@ -16,251 +16,287 @@ msgstr ""
|
|
16 |
msgid "A widget to show tweets for a particular user in rotation."
|
17 |
msgstr ""
|
18 |
|
19 |
-
#: rotatingtweets.php:
|
20 |
msgid "Title:"
|
21 |
msgstr ""
|
22 |
|
23 |
-
#: rotatingtweets.php:
|
24 |
msgid "Twitter name:"
|
25 |
msgstr ""
|
26 |
|
27 |
-
#: rotatingtweets.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
28 |
msgid "Include retweets?"
|
29 |
msgstr ""
|
30 |
|
31 |
-
#: rotatingtweets.php:
|
32 |
msgid "Exclude replies?"
|
33 |
msgstr ""
|
34 |
|
35 |
-
#: rotatingtweets.php:
|
36 |
msgid "Open all links in new window or tab?"
|
37 |
msgstr ""
|
38 |
|
39 |
-
#: rotatingtweets.php:
|
40 |
msgid "How many tweets?"
|
41 |
msgstr ""
|
42 |
|
43 |
-
#: rotatingtweets.php:
|
44 |
msgid "Speed"
|
45 |
msgstr ""
|
46 |
|
47 |
-
#: rotatingtweets.php:
|
48 |
msgid "Faster (3 seconds)"
|
49 |
msgstr ""
|
50 |
|
51 |
-
#: rotatingtweets.php:
|
52 |
msgid "Normal (4 seconds)"
|
53 |
msgstr ""
|
54 |
|
55 |
-
#: rotatingtweets.php:
|
56 |
msgid "Slower (5 seconds)"
|
57 |
msgstr ""
|
58 |
|
59 |
-
#: rotatingtweets.php:
|
60 |
msgid "Slowest (6 seconds)"
|
61 |
msgstr ""
|
62 |
|
63 |
-
#: rotatingtweets.php:
|
64 |
msgid "Ultra slow (20 seconds)"
|
65 |
msgstr ""
|
66 |
|
67 |
-
#: rotatingtweets.php:
|
68 |
msgid "Scroll Up"
|
69 |
msgstr ""
|
70 |
|
71 |
-
#: rotatingtweets.php:
|
72 |
msgid "Scroll Down"
|
73 |
msgstr ""
|
74 |
|
75 |
-
#: rotatingtweets.php:
|
76 |
msgid "Scroll Left"
|
77 |
msgstr ""
|
78 |
|
79 |
-
#: rotatingtweets.php:
|
80 |
msgid "Scroll Right"
|
81 |
msgstr ""
|
82 |
|
83 |
-
#: rotatingtweets.php:
|
84 |
msgid "Fade"
|
85 |
msgstr ""
|
86 |
|
87 |
-
#: rotatingtweets.php:
|
88 |
msgid "Type of rotation"
|
89 |
msgstr ""
|
90 |
|
91 |
-
#: rotatingtweets.php:
|
92 |
msgid "Display format"
|
93 |
msgstr ""
|
94 |
|
95 |
-
#: rotatingtweets.php:
|
96 |
msgid "Original rotating tweets layout"
|
97 |
msgstr ""
|
98 |
|
99 |
-
#: rotatingtweets.php:
|
100 |
msgid ""
|
101 |
"<a target='_blank' href='https://dev.twitter.com/terms/display-"
|
102 |
"guidelines'>Official Twitter guidelines</a> (regular)"
|
103 |
msgstr ""
|
104 |
|
105 |
-
#: rotatingtweets.php:
|
106 |
msgid ""
|
107 |
"<a target='_blank' href='https://dev.twitter.com/terms/display-"
|
108 |
"guidelines'>Official Twitter guidelines</a> (wide)"
|
109 |
msgstr ""
|
110 |
|
111 |
-
#: rotatingtweets.php:
|
112 |
msgid "Show tweet details?"
|
113 |
msgstr ""
|
114 |
|
115 |
-
#: rotatingtweets.php:
|
116 |
msgid "Time/date of tweet"
|
117 |
msgstr ""
|
118 |
|
119 |
-
#: rotatingtweets.php:
|
120 |
msgid "Name of person tweeting"
|
121 |
msgstr ""
|
122 |
|
123 |
-
#: rotatingtweets.php:
|
124 |
msgid "Source of tweet"
|
125 |
msgstr ""
|
126 |
|
127 |
-
#: rotatingtweets.php:
|
128 |
msgid "'reply · retweet · favorite' links"
|
129 |
msgstr ""
|
130 |
|
131 |
-
#: rotatingtweets.php:
|
132 |
msgid "Show follow button?"
|
133 |
msgstr ""
|
134 |
|
135 |
-
#: rotatingtweets.php:
|
136 |
msgctxt "Show follow button?"
|
137 |
msgid "None"
|
138 |
msgstr ""
|
139 |
|
140 |
-
#: rotatingtweets.php:
|
141 |
msgid "Show name and number of followers"
|
142 |
msgstr ""
|
143 |
|
144 |
-
#: rotatingtweets.php:
|
145 |
msgid "Show name only"
|
146 |
msgstr ""
|
147 |
|
148 |
-
#: rotatingtweets.php:
|
149 |
msgid "Show followers only"
|
150 |
msgstr ""
|
151 |
|
152 |
-
#: rotatingtweets.php:
|
153 |
msgid "Show button only"
|
154 |
msgstr ""
|
155 |
|
156 |
-
#: rotatingtweets.php:
|
157 |
msgid "less than a second ago"
|
158 |
msgstr ""
|
159 |
|
160 |
-
#: rotatingtweets.php:
|
161 |
msgid "%d seconds ago"
|
162 |
msgstr ""
|
163 |
|
164 |
-
#: rotatingtweets.php:
|
165 |
msgid "about a minute ago"
|
166 |
msgid_plural "about %d minutes ago"
|
167 |
msgstr[0] ""
|
168 |
msgstr[1] ""
|
169 |
|
170 |
-
#: rotatingtweets.php:
|
171 |
msgid "about an hour ago"
|
172 |
msgid_plural "about %d hours ago"
|
173 |
msgstr[0] ""
|
174 |
msgstr[1] ""
|
175 |
|
176 |
-
#: rotatingtweets.php:
|
177 |
msgid "yesterday"
|
178 |
msgstr ""
|
179 |
|
180 |
-
#: rotatingtweets.php:
|
181 |
msgid "about a day ago"
|
182 |
msgid_plural "about %d days ago"
|
183 |
msgstr[0] ""
|
184 |
msgstr[1] ""
|
185 |
|
186 |
-
#: rotatingtweets.php:
|
187 |
msgid "last week"
|
188 |
msgstr ""
|
189 |
|
190 |
-
#: rotatingtweets.php:
|
191 |
msgid "about a week ago"
|
192 |
msgid_plural "about %d weeks ago"
|
193 |
msgstr[0] ""
|
194 |
msgstr[1] ""
|
195 |
|
196 |
-
#: rotatingtweets.php:
|
197 |
msgid "last month"
|
198 |
msgstr ""
|
199 |
|
200 |
-
#: rotatingtweets.php:
|
201 |
msgid "about a month ago"
|
202 |
msgid_plural "about %d months ago"
|
203 |
msgstr[0] ""
|
204 |
msgstr[1] ""
|
205 |
|
206 |
-
#: rotatingtweets.php:
|
207 |
msgid "last year"
|
208 |
msgstr ""
|
209 |
|
210 |
-
#: rotatingtweets.php:
|
211 |
msgid "about a year ago"
|
212 |
msgid_plural "about %d years ago"
|
213 |
msgstr[0] ""
|
214 |
msgstr[1] ""
|
215 |
|
216 |
-
#: rotatingtweets.php:
|
217 |
msgctxt "abbreviated timestamp in seconds"
|
218 |
msgid "%ds"
|
219 |
msgstr ""
|
220 |
|
221 |
-
#: rotatingtweets.php:
|
222 |
msgctxt "abbreviated timestamp in minutes"
|
223 |
msgid "%dm"
|
224 |
msgstr ""
|
225 |
|
226 |
-
#: rotatingtweets.php:
|
227 |
msgctxt "abbreviated timestamp in hours"
|
228 |
msgid "%dh"
|
229 |
msgstr ""
|
230 |
|
231 |
-
#: rotatingtweets.php:
|
232 |
msgctxt ""
|
233 |
"short date format as per http://uk.php.net/manual/en/function.date.php"
|
234 |
msgid "j M"
|
235 |
msgstr ""
|
236 |
|
237 |
-
#: rotatingtweets.php:
|
238 |
msgctxt ""
|
239 |
"slightly longer date format as per http://uk.php.net/manual/en/function.date."
|
240 |
"php"
|
241 |
msgid "j M Y"
|
242 |
msgstr ""
|
243 |
|
244 |
-
#: rotatingtweets.php:
|
245 |
msgid "reply"
|
246 |
msgstr ""
|
247 |
|
248 |
-
#: rotatingtweets.php:
|
249 |
msgid "retweet"
|
250 |
msgstr ""
|
251 |
|
252 |
-
#: rotatingtweets.php:
|
253 |
msgid "favorite"
|
254 |
msgstr ""
|
255 |
|
256 |
-
#: rotatingtweets.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
257 |
msgid ""
|
258 |
"Please update <a href=\"%2$s\">your settings for Rotating Tweets</a>. The "
|
259 |
"Twitter API <a href=\"%1$s\">changed in March 2013</a> and new settings are "
|
260 |
"needed for Rotating Tweets to continue working."
|
261 |
msgstr ""
|
262 |
|
263 |
-
#: rotatingtweets.php:
|
264 |
msgid ""
|
265 |
"Please update <a href=\"%2$s\">your settings for Rotating Tweets</a>. The "
|
266 |
"Twitter API will <a href=\"%1$s\">be changing in March 2013</a> and new "
|
@@ -268,22 +304,22 @@ msgid ""
|
|
268 |
"changes."
|
269 |
msgstr ""
|
270 |
|
271 |
-
#: rotatingtweets.php:
|
272 |
msgid ""
|
273 |
"Please update <a href=\"%1$s\">your settings for Rotating Tweets</a>. "
|
274 |
"Currently Rotating Tweets cannot authenticate you with Twitter using the "
|
275 |
"details you have given."
|
276 |
msgstr ""
|
277 |
|
278 |
-
#: rotatingtweets.php:
|
279 |
msgid "Rotating Tweets: Twitter API settings"
|
280 |
msgstr ""
|
281 |
|
282 |
-
#: rotatingtweets.php:
|
283 |
msgid "You do not have sufficient permissions to access this page."
|
284 |
msgstr ""
|
285 |
|
286 |
-
#: rotatingtweets.php:
|
287 |
msgid ""
|
288 |
"<p>Twitter <a href=\"%s\">recently announced</a> that they will be changing "
|
289 |
"the way that they allow people to use the information in their tweets.</"
|
@@ -291,14 +327,14 @@ msgid ""
|
|
291 |
"continues working:</p>"
|
292 |
msgstr ""
|
293 |
|
294 |
-
#: rotatingtweets.php:
|
295 |
msgid ""
|
296 |
"<h3>Step 1:</h3><p>Go to the <a href=\"%s\">My applications page</a> on the "
|
297 |
"Twitter website to set up your website as a new Twitter 'application'. You "
|
298 |
"may need to log-in using your Twitter user name and password.</p>"
|
299 |
msgstr ""
|
300 |
|
301 |
-
#: rotatingtweets.php:
|
302 |
msgid ""
|
303 |
"<h3>Step 2:</h3><p>If you don't already have a suitable 'application' that "
|
304 |
"you can use for your website, set one up on the <a href=\"%s\">Create an "
|
@@ -307,14 +343,14 @@ msgid ""
|
|
307 |
"p><p>You don't need a Callback URL.</p>"
|
308 |
msgstr ""
|
309 |
|
310 |
-
#: rotatingtweets.php:
|
311 |
msgid ""
|
312 |
"<h3>Step 3:</h3><p>After clicking <strong>Create your Twitter application</"
|
313 |
"strong>, on the following page, click on <strong>Create my access token</"
|
314 |
"strong>.</p>"
|
315 |
msgstr ""
|
316 |
|
317 |
-
#: rotatingtweets.php:
|
318 |
msgid ""
|
319 |
"<h3>Step 4:</h3><p>Copy the <strong>Consumer key</strong>, <strong>Consumer "
|
320 |
"secret</strong>, <strong>Access token</strong> and <strong>Access token "
|
@@ -322,123 +358,141 @@ msgid ""
|
|
322 |
"p>"
|
323 |
msgstr ""
|
324 |
|
325 |
-
#: rotatingtweets.php:
|
326 |
msgid ""
|
327 |
"<h3>Step 5:</h3><p>Click on <strong>Save Changes</strong>. If there are any "
|
328 |
"problems, you will get an error message from Twitter which should help "
|
329 |
"diagnose the problem.</p>"
|
330 |
msgstr ""
|
331 |
|
332 |
-
#: rotatingtweets.php:
|
333 |
msgid ""
|
334 |
"<p><em>Even though you are only entering one set of Twitter API data, "
|
335 |
"Rotating Tweets will continue to support multiple widgets and shortcodes "
|
336 |
"pulling from a variety of different Twitter accounts.</em></p>"
|
337 |
msgstr ""
|
338 |
|
339 |
-
#: rotatingtweets.php:
|
340 |
msgid "Save Changes"
|
341 |
msgstr ""
|
342 |
|
343 |
-
#: rotatingtweets.php:
|
344 |
msgid "Twitter API Settings"
|
345 |
msgstr ""
|
346 |
|
347 |
-
#: rotatingtweets.php:
|
348 |
msgid "Twitter API Consumer Key"
|
349 |
msgstr ""
|
350 |
|
351 |
-
#: rotatingtweets.php:
|
352 |
msgid "Twitter API Consumer Secret"
|
353 |
msgstr ""
|
354 |
|
355 |
-
#: rotatingtweets.php:
|
356 |
msgid "Twitter API Access Token"
|
357 |
msgstr ""
|
358 |
|
359 |
-
#: rotatingtweets.php:
|
360 |
msgid "Twitter API Access Token Secret"
|
361 |
msgstr ""
|
362 |
|
363 |
-
#: rotatingtweets.php:
|
364 |
msgid "Error: Twitter API Consumer Key not correctly formatted."
|
365 |
msgstr ""
|
366 |
|
367 |
-
#: rotatingtweets.php:
|
368 |
msgid "Error: Twitter API Consumer Secret not correctly formatted."
|
369 |
msgstr ""
|
370 |
|
371 |
-
#: rotatingtweets.php:
|
372 |
msgid "Error: Twitter API Access Token not correctly formatted."
|
373 |
msgstr ""
|
374 |
|
375 |
-
#: rotatingtweets.php:
|
376 |
msgid "Error: Twitter API Access Token Secret not correctly formatted."
|
377 |
msgstr ""
|
378 |
|
379 |
-
#: rotatingtweets.php:
|
380 |
msgid ""
|
381 |
"Error message received from Twitter: %1$s. <a href=\"%2$s\">Please check "
|
382 |
"your API key, secret, token and secret token on the Twitter website</a>."
|
383 |
msgstr ""
|
384 |
|
385 |
-
#: rotatingtweets.php:
|
386 |
msgid "Problem retrieving data from Twitter"
|
387 |
msgstr ""
|
388 |
|
389 |
-
#: rotatingtweets.php:
|
|
|
|
|
|
|
|
|
390 |
msgid "This website is currently <a href='%s'>rate-limited by Twitter</a>."
|
391 |
msgstr ""
|
392 |
|
393 |
-
#: rotatingtweets.php:
|
394 |
msgid "Next attempt to get data will be in %d minute"
|
395 |
msgid_plural "Next attempt to get data will be in %d minutes"
|
396 |
msgstr[0] ""
|
397 |
msgstr[1] ""
|
398 |
|
399 |
-
#: rotatingtweets.php:
|
400 |
msgid "Next attempt to get data will be in less than a minute"
|
401 |
msgstr ""
|
402 |
|
403 |
-
#: rotatingtweets.php:
|
404 |
-
msgid "
|
|
|
|
|
|
|
|
|
|
|
405 |
msgstr ""
|
406 |
|
407 |
-
#: rotatingtweets.php:
|
408 |
msgid ""
|
409 |
-
"Please check the
|
|
|
410 |
"status</a>."
|
411 |
msgstr ""
|
412 |
|
413 |
-
#: rotatingtweets.php:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
414 |
msgid "from <a href='%1$s' title='%2$s'>%2$s's Twitter</a>"
|
415 |
msgstr ""
|
416 |
|
417 |
-
#: rotatingtweets.php:
|
418 |
msgid "via %s"
|
419 |
msgstr ""
|
420 |
|
421 |
-
#: rotatingtweets.php:
|
422 |
msgid "Twitter"
|
423 |
msgstr ""
|
424 |
|
425 |
-
#: rotatingtweets.php:
|
426 |
msgid "Retweeted by %s"
|
427 |
msgstr ""
|
428 |
|
429 |
-
#: rotatingtweets.php:
|
430 |
msgid "Expand"
|
431 |
msgstr ""
|
432 |
|
433 |
-
#: rotatingtweets.php:
|
434 |
msgid "Problem retrieving data from Twitter."
|
435 |
msgstr ""
|
436 |
|
437 |
-
#: rotatingtweets.php:
|
438 |
msgid "Please check the comments on this page's HTML to understand more."
|
439 |
msgstr ""
|
440 |
|
441 |
-
#: rotatingtweets.php:
|
442 |
msgid "Follow @%s"
|
443 |
msgstr ""
|
444 |
|
2 |
# This file is distributed under the same license as the Rotating Tweets (Twitter widget & shortcode) package.
|
3 |
msgid ""
|
4 |
msgstr ""
|
5 |
+
"Project-Id-Version: Rotating Tweets (Twitter widget & shortcode) 1.3.18\n"
|
6 |
"Report-Msgid-Bugs-To: http://wordpress.org/tag/rotatingtweets\n"
|
7 |
+
"POT-Creation-Date: 2013-03-31 17:27:05+00:00\n"
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=UTF-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
16 |
msgid "A widget to show tweets for a particular user in rotation."
|
17 |
msgstr ""
|
18 |
|
19 |
+
#: rotatingtweets.php:192
|
20 |
msgid "Title:"
|
21 |
msgstr ""
|
22 |
|
23 |
+
#: rotatingtweets.php:204
|
24 |
msgid "Twitter name:"
|
25 |
msgstr ""
|
26 |
|
27 |
+
#: rotatingtweets.php:205
|
28 |
+
msgid "Search:"
|
29 |
+
msgstr ""
|
30 |
+
|
31 |
+
#: rotatingtweets.php:206
|
32 |
+
msgid "List Tag:"
|
33 |
+
msgstr ""
|
34 |
+
|
35 |
+
#: rotatingtweets.php:207
|
36 |
+
msgid "Type of Tweets?"
|
37 |
+
msgstr ""
|
38 |
+
|
39 |
+
#: rotatingtweets.php:210
|
40 |
+
msgid "User timeline (default)"
|
41 |
+
msgstr ""
|
42 |
+
|
43 |
+
#: rotatingtweets.php:211
|
44 |
+
msgid "Favorites"
|
45 |
+
msgstr ""
|
46 |
+
|
47 |
+
#: rotatingtweets.php:212
|
48 |
+
msgid "Search"
|
49 |
+
msgstr ""
|
50 |
+
|
51 |
+
#: rotatingtweets.php:213
|
52 |
+
msgid "List"
|
53 |
+
msgstr ""
|
54 |
+
|
55 |
+
#: rotatingtweets.php:221
|
56 |
msgid "Include retweets?"
|
57 |
msgstr ""
|
58 |
|
59 |
+
#: rotatingtweets.php:222
|
60 |
msgid "Exclude replies?"
|
61 |
msgstr ""
|
62 |
|
63 |
+
#: rotatingtweets.php:223
|
64 |
msgid "Open all links in new window or tab?"
|
65 |
msgstr ""
|
66 |
|
67 |
+
#: rotatingtweets.php:224
|
68 |
msgid "How many tweets?"
|
69 |
msgstr ""
|
70 |
|
71 |
+
#: rotatingtweets.php:232
|
72 |
msgid "Speed"
|
73 |
msgstr ""
|
74 |
|
75 |
+
#: rotatingtweets.php:235
|
76 |
msgid "Faster (3 seconds)"
|
77 |
msgstr ""
|
78 |
|
79 |
+
#: rotatingtweets.php:236
|
80 |
msgid "Normal (4 seconds)"
|
81 |
msgstr ""
|
82 |
|
83 |
+
#: rotatingtweets.php:237
|
84 |
msgid "Slower (5 seconds)"
|
85 |
msgstr ""
|
86 |
|
87 |
+
#: rotatingtweets.php:238
|
88 |
msgid "Slowest (6 seconds)"
|
89 |
msgstr ""
|
90 |
|
91 |
+
#: rotatingtweets.php:239
|
92 |
msgid "Ultra slow (20 seconds)"
|
93 |
msgstr ""
|
94 |
|
95 |
+
#: rotatingtweets.php:251
|
96 |
msgid "Scroll Up"
|
97 |
msgstr ""
|
98 |
|
99 |
+
#: rotatingtweets.php:252
|
100 |
msgid "Scroll Down"
|
101 |
msgstr ""
|
102 |
|
103 |
+
#: rotatingtweets.php:253
|
104 |
msgid "Scroll Left"
|
105 |
msgstr ""
|
106 |
|
107 |
+
#: rotatingtweets.php:254
|
108 |
msgid "Scroll Right"
|
109 |
msgstr ""
|
110 |
|
111 |
+
#: rotatingtweets.php:255
|
112 |
msgid "Fade"
|
113 |
msgstr ""
|
114 |
|
115 |
+
#: rotatingtweets.php:259
|
116 |
msgid "Type of rotation"
|
117 |
msgstr ""
|
118 |
|
119 |
+
#: rotatingtweets.php:268
|
120 |
msgid "Display format"
|
121 |
msgstr ""
|
122 |
|
123 |
+
#: rotatingtweets.php:271
|
124 |
msgid "Original rotating tweets layout"
|
125 |
msgstr ""
|
126 |
|
127 |
+
#: rotatingtweets.php:272
|
128 |
msgid ""
|
129 |
"<a target='_blank' href='https://dev.twitter.com/terms/display-"
|
130 |
"guidelines'>Official Twitter guidelines</a> (regular)"
|
131 |
msgstr ""
|
132 |
|
133 |
+
#: rotatingtweets.php:273
|
134 |
msgid ""
|
135 |
"<a target='_blank' href='https://dev.twitter.com/terms/display-"
|
136 |
"guidelines'>Official Twitter guidelines</a> (wide)"
|
137 |
msgstr ""
|
138 |
|
139 |
+
#: rotatingtweets.php:283
|
140 |
msgid "Show tweet details?"
|
141 |
msgstr ""
|
142 |
|
143 |
+
#: rotatingtweets.php:286
|
144 |
msgid "Time/date of tweet"
|
145 |
msgstr ""
|
146 |
|
147 |
+
#: rotatingtweets.php:287
|
148 |
msgid "Name of person tweeting"
|
149 |
msgstr ""
|
150 |
|
151 |
+
#: rotatingtweets.php:288
|
152 |
msgid "Source of tweet"
|
153 |
msgstr ""
|
154 |
|
155 |
+
#: rotatingtweets.php:289
|
156 |
msgid "'reply · retweet · favorite' links"
|
157 |
msgstr ""
|
158 |
|
159 |
+
#: rotatingtweets.php:300
|
160 |
msgid "Show follow button?"
|
161 |
msgstr ""
|
162 |
|
163 |
+
#: rotatingtweets.php:303
|
164 |
msgctxt "Show follow button?"
|
165 |
msgid "None"
|
166 |
msgstr ""
|
167 |
|
168 |
+
#: rotatingtweets.php:304
|
169 |
msgid "Show name and number of followers"
|
170 |
msgstr ""
|
171 |
|
172 |
+
#: rotatingtweets.php:305
|
173 |
msgid "Show name only"
|
174 |
msgstr ""
|
175 |
|
176 |
+
#: rotatingtweets.php:306
|
177 |
msgid "Show followers only"
|
178 |
msgstr ""
|
179 |
|
180 |
+
#: rotatingtweets.php:307
|
181 |
msgid "Show button only"
|
182 |
msgstr ""
|
183 |
|
184 |
+
#: rotatingtweets.php:335
|
185 |
msgid "less than a second ago"
|
186 |
msgstr ""
|
187 |
|
188 |
+
#: rotatingtweets.php:336
|
189 |
msgid "%d seconds ago"
|
190 |
msgstr ""
|
191 |
|
192 |
+
#: rotatingtweets.php:337
|
193 |
msgid "about a minute ago"
|
194 |
msgid_plural "about %d minutes ago"
|
195 |
msgstr[0] ""
|
196 |
msgstr[1] ""
|
197 |
|
198 |
+
#: rotatingtweets.php:338 rotatingtweets.php:340
|
199 |
msgid "about an hour ago"
|
200 |
msgid_plural "about %d hours ago"
|
201 |
msgstr[0] ""
|
202 |
msgstr[1] ""
|
203 |
|
204 |
+
#: rotatingtweets.php:339
|
205 |
msgid "yesterday"
|
206 |
msgstr ""
|
207 |
|
208 |
+
#: rotatingtweets.php:341
|
209 |
msgid "about a day ago"
|
210 |
msgid_plural "about %d days ago"
|
211 |
msgstr[0] ""
|
212 |
msgstr[1] ""
|
213 |
|
214 |
+
#: rotatingtweets.php:342
|
215 |
msgid "last week"
|
216 |
msgstr ""
|
217 |
|
218 |
+
#: rotatingtweets.php:343
|
219 |
msgid "about a week ago"
|
220 |
msgid_plural "about %d weeks ago"
|
221 |
msgstr[0] ""
|
222 |
msgstr[1] ""
|
223 |
|
224 |
+
#: rotatingtweets.php:344
|
225 |
msgid "last month"
|
226 |
msgstr ""
|
227 |
|
228 |
+
#: rotatingtweets.php:345
|
229 |
msgid "about a month ago"
|
230 |
msgid_plural "about %d months ago"
|
231 |
msgstr[0] ""
|
232 |
msgstr[1] ""
|
233 |
|
234 |
+
#: rotatingtweets.php:346
|
235 |
msgid "last year"
|
236 |
msgstr ""
|
237 |
|
238 |
+
#: rotatingtweets.php:347
|
239 |
msgid "about a year ago"
|
240 |
msgid_plural "about %d years ago"
|
241 |
msgstr[0] ""
|
242 |
msgstr[1] ""
|
243 |
|
244 |
+
#: rotatingtweets.php:354
|
245 |
msgctxt "abbreviated timestamp in seconds"
|
246 |
msgid "%ds"
|
247 |
msgstr ""
|
248 |
|
249 |
+
#: rotatingtweets.php:355
|
250 |
msgctxt "abbreviated timestamp in minutes"
|
251 |
msgid "%dm"
|
252 |
msgstr ""
|
253 |
|
254 |
+
#: rotatingtweets.php:356
|
255 |
msgctxt "abbreviated timestamp in hours"
|
256 |
msgid "%dh"
|
257 |
msgstr ""
|
258 |
|
259 |
+
#: rotatingtweets.php:357
|
260 |
msgctxt ""
|
261 |
"short date format as per http://uk.php.net/manual/en/function.date.php"
|
262 |
msgid "j M"
|
263 |
msgstr ""
|
264 |
|
265 |
+
#: rotatingtweets.php:358
|
266 |
msgctxt ""
|
267 |
"slightly longer date format as per http://uk.php.net/manual/en/function.date."
|
268 |
"php"
|
269 |
msgid "j M Y"
|
270 |
msgstr ""
|
271 |
|
272 |
+
#: rotatingtweets.php:364
|
273 |
msgid "reply"
|
274 |
msgstr ""
|
275 |
|
276 |
+
#: rotatingtweets.php:365
|
277 |
msgid "retweet"
|
278 |
msgstr ""
|
279 |
|
280 |
+
#: rotatingtweets.php:366
|
281 |
msgid "favorite"
|
282 |
msgstr ""
|
283 |
|
284 |
+
#: rotatingtweets.php:476
|
285 |
+
msgid "next"
|
286 |
+
msgstr ""
|
287 |
+
|
288 |
+
#: rotatingtweets.php:477
|
289 |
+
msgid "prev"
|
290 |
+
msgstr ""
|
291 |
+
|
292 |
+
#: rotatingtweets.php:512
|
293 |
msgid ""
|
294 |
"Please update <a href=\"%2$s\">your settings for Rotating Tweets</a>. The "
|
295 |
"Twitter API <a href=\"%1$s\">changed in March 2013</a> and new settings are "
|
296 |
"needed for Rotating Tweets to continue working."
|
297 |
msgstr ""
|
298 |
|
299 |
+
#: rotatingtweets.php:514
|
300 |
msgid ""
|
301 |
"Please update <a href=\"%2$s\">your settings for Rotating Tweets</a>. The "
|
302 |
"Twitter API will <a href=\"%1$s\">be changing in March 2013</a> and new "
|
304 |
"changes."
|
305 |
msgstr ""
|
306 |
|
307 |
+
#: rotatingtweets.php:520
|
308 |
msgid ""
|
309 |
"Please update <a href=\"%1$s\">your settings for Rotating Tweets</a>. "
|
310 |
"Currently Rotating Tweets cannot authenticate you with Twitter using the "
|
311 |
"details you have given."
|
312 |
msgstr ""
|
313 |
|
314 |
+
#: rotatingtweets.php:528 rotatingtweets.php:534
|
315 |
msgid "Rotating Tweets: Twitter API settings"
|
316 |
msgstr ""
|
317 |
|
318 |
+
#: rotatingtweets.php:536
|
319 |
msgid "You do not have sufficient permissions to access this page."
|
320 |
msgstr ""
|
321 |
|
322 |
+
#: rotatingtweets.php:538
|
323 |
msgid ""
|
324 |
"<p>Twitter <a href=\"%s\">recently announced</a> that they will be changing "
|
325 |
"the way that they allow people to use the information in their tweets.</"
|
327 |
"continues working:</p>"
|
328 |
msgstr ""
|
329 |
|
330 |
+
#: rotatingtweets.php:539
|
331 |
msgid ""
|
332 |
"<h3>Step 1:</h3><p>Go to the <a href=\"%s\">My applications page</a> on the "
|
333 |
"Twitter website to set up your website as a new Twitter 'application'. You "
|
334 |
"may need to log-in using your Twitter user name and password.</p>"
|
335 |
msgstr ""
|
336 |
|
337 |
+
#: rotatingtweets.php:540
|
338 |
msgid ""
|
339 |
"<h3>Step 2:</h3><p>If you don't already have a suitable 'application' that "
|
340 |
"you can use for your website, set one up on the <a href=\"%s\">Create an "
|
343 |
"p><p>You don't need a Callback URL.</p>"
|
344 |
msgstr ""
|
345 |
|
346 |
+
#: rotatingtweets.php:541
|
347 |
msgid ""
|
348 |
"<h3>Step 3:</h3><p>After clicking <strong>Create your Twitter application</"
|
349 |
"strong>, on the following page, click on <strong>Create my access token</"
|
350 |
"strong>.</p>"
|
351 |
msgstr ""
|
352 |
|
353 |
+
#: rotatingtweets.php:542
|
354 |
msgid ""
|
355 |
"<h3>Step 4:</h3><p>Copy the <strong>Consumer key</strong>, <strong>Consumer "
|
356 |
"secret</strong>, <strong>Access token</strong> and <strong>Access token "
|
358 |
"p>"
|
359 |
msgstr ""
|
360 |
|
361 |
+
#: rotatingtweets.php:543
|
362 |
msgid ""
|
363 |
"<h3>Step 5:</h3><p>Click on <strong>Save Changes</strong>. If there are any "
|
364 |
"problems, you will get an error message from Twitter which should help "
|
365 |
"diagnose the problem.</p>"
|
366 |
msgstr ""
|
367 |
|
368 |
+
#: rotatingtweets.php:544
|
369 |
msgid ""
|
370 |
"<p><em>Even though you are only entering one set of Twitter API data, "
|
371 |
"Rotating Tweets will continue to support multiple widgets and shortcodes "
|
372 |
"pulling from a variety of different Twitter accounts.</em></p>"
|
373 |
msgstr ""
|
374 |
|
375 |
+
#: rotatingtweets.php:548
|
376 |
msgid "Save Changes"
|
377 |
msgstr ""
|
378 |
|
379 |
+
#: rotatingtweets.php:555
|
380 |
msgid "Twitter API Settings"
|
381 |
msgstr ""
|
382 |
|
383 |
+
#: rotatingtweets.php:556
|
384 |
msgid "Twitter API Consumer Key"
|
385 |
msgstr ""
|
386 |
|
387 |
+
#: rotatingtweets.php:557
|
388 |
msgid "Twitter API Consumer Secret"
|
389 |
msgstr ""
|
390 |
|
391 |
+
#: rotatingtweets.php:558
|
392 |
msgid "Twitter API Access Token"
|
393 |
msgstr ""
|
394 |
|
395 |
+
#: rotatingtweets.php:559
|
396 |
msgid "Twitter API Access Token Secret"
|
397 |
msgstr ""
|
398 |
|
399 |
+
#: rotatingtweets.php:590
|
400 |
msgid "Error: Twitter API Consumer Key not correctly formatted."
|
401 |
msgstr ""
|
402 |
|
403 |
+
#: rotatingtweets.php:597
|
404 |
msgid "Error: Twitter API Consumer Secret not correctly formatted."
|
405 |
msgstr ""
|
406 |
|
407 |
+
#: rotatingtweets.php:604
|
408 |
msgid "Error: Twitter API Access Token not correctly formatted."
|
409 |
msgstr ""
|
410 |
|
411 |
+
#: rotatingtweets.php:611
|
412 |
msgid "Error: Twitter API Access Token Secret not correctly formatted."
|
413 |
msgstr ""
|
414 |
|
415 |
+
#: rotatingtweets.php:618
|
416 |
msgid ""
|
417 |
"Error message received from Twitter: %1$s. <a href=\"%2$s\">Please check "
|
418 |
"your API key, secret, token and secret token on the Twitter website</a>."
|
419 |
msgstr ""
|
420 |
|
421 |
+
#: rotatingtweets.php:936
|
422 |
msgid "Problem retrieving data from Twitter"
|
423 |
msgstr ""
|
424 |
|
425 |
+
#: rotatingtweets.php:938
|
426 |
+
msgid "%3$s error code: %1$s - %2$s"
|
427 |
+
msgstr ""
|
428 |
+
|
429 |
+
#: rotatingtweets.php:944
|
430 |
msgid "This website is currently <a href='%s'>rate-limited by Twitter</a>."
|
431 |
msgstr ""
|
432 |
|
433 |
+
#: rotatingtweets.php:946
|
434 |
msgid "Next attempt to get data will be in %d minute"
|
435 |
msgid_plural "Next attempt to get data will be in %d minutes"
|
436 |
msgstr[0] ""
|
437 |
msgstr[1] ""
|
438 |
|
439 |
+
#: rotatingtweets.php:947
|
440 |
msgid "Next attempt to get data will be in less than a minute"
|
441 |
msgstr ""
|
442 |
|
443 |
+
#: rotatingtweets.php:952
|
444 |
+
msgid "Please check your <a href='%s'>Rotating Tweets settings</a>."
|
445 |
+
msgstr ""
|
446 |
+
|
447 |
+
#: rotatingtweets.php:955
|
448 |
+
msgid ""
|
449 |
+
"Please check the Twitter screen name or list slug in the widget or shortcode."
|
450 |
msgstr ""
|
451 |
|
452 |
+
#: rotatingtweets.php:960 rotatingtweets.php:966
|
453 |
msgid ""
|
454 |
+
"Please check the Twitter name in the widget or shortcode, <a "
|
455 |
+
"href='%2$s'>Rotating Tweets settings</a> or the <a href='%1$s'>Twitter API "
|
456 |
"status</a>."
|
457 |
msgstr ""
|
458 |
|
459 |
+
#: rotatingtweets.php:963
|
460 |
+
msgid "Please check your PHP and server settings."
|
461 |
+
msgstr ""
|
462 |
+
|
463 |
+
#: rotatingtweets.php:972
|
464 |
+
msgid "No Tweet results for search <a href=\"%2$s\"><strong>%1$s</strong></a>"
|
465 |
+
msgstr ""
|
466 |
+
|
467 |
+
#: rotatingtweets.php:1098 rotatingtweets.php:1166 rotatingtweets.php:1183
|
468 |
msgid "from <a href='%1$s' title='%2$s'>%2$s's Twitter</a>"
|
469 |
msgstr ""
|
470 |
|
471 |
+
#: rotatingtweets.php:1102 rotatingtweets.php:1187
|
472 |
msgid "via %s"
|
473 |
msgstr ""
|
474 |
|
475 |
+
#: rotatingtweets.php:1119
|
476 |
msgid "Twitter"
|
477 |
msgstr ""
|
478 |
|
479 |
+
#: rotatingtweets.php:1128 rotatingtweets.php:1147
|
480 |
msgid "Retweeted by %s"
|
481 |
msgstr ""
|
482 |
|
483 |
+
#: rotatingtweets.php:1149
|
484 |
msgid "Expand"
|
485 |
msgstr ""
|
486 |
|
487 |
+
#: rotatingtweets.php:1201
|
488 |
msgid "Problem retrieving data from Twitter."
|
489 |
msgstr ""
|
490 |
|
491 |
+
#: rotatingtweets.php:1203
|
492 |
msgid "Please check the comments on this page's HTML to understand more."
|
493 |
msgstr ""
|
494 |
|
495 |
+
#: rotatingtweets.php:1226
|
496 |
msgid "Follow @%s"
|
497 |
msgstr ""
|
498 |
|
lib/wp_twitteroauth.php
CHANGED
@@ -29,7 +29,7 @@ class wp_TwitterOAuth {
|
|
29 |
/* Set connect timeout. */
|
30 |
public $connecttimeout = 2;
|
31 |
/* Verify SSL Cert. */
|
32 |
-
public $ssl_verifypeer =
|
33 |
/* Respons format. */
|
34 |
public $format = 'json';
|
35 |
/* Decode returned json data. */
|
@@ -37,7 +37,7 @@ class wp_TwitterOAuth {
|
|
37 |
/* Contains the last HTTP headers returned. */
|
38 |
public $http_info;
|
39 |
/* Set the useragnet. */
|
40 |
-
public $useragent = 'Twitter Feed for Wordpress Developers 1.
|
41 |
/* Immediately retry the API call if the response was not successful. */
|
42 |
//public $retry = TRUE;
|
43 |
|
29 |
/* Set connect timeout. */
|
30 |
public $connecttimeout = 2;
|
31 |
/* Verify SSL Cert. */
|
32 |
+
public $ssl_verifypeer = TRUE;
|
33 |
/* Respons format. */
|
34 |
public $format = 'json';
|
35 |
/* Decode returned json data. */
|
37 |
/* Contains the last HTTP headers returned. */
|
38 |
public $http_info;
|
39 |
/* Set the useragnet. */
|
40 |
+
public $useragent = 'Twitter Feed for Wordpress Developers 1.1';
|
41 |
/* Immediately retry the API call if the response was not successful. */
|
42 |
//public $retry = TRUE;
|
43 |
|
readme.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: mpntod
|
|
3 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=9XCNM4QSVHYT8
|
4 |
Tags: shortcode,widget,twitter,rotating,rotate,rotator,tweet,tweets,animation,jquery,jquery cycle,cycle,multilingual
|
5 |
Requires at least: 2.6
|
6 |
-
Tested up to: 3.5
|
7 |
-
Stable tag: 1.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -12,7 +12,7 @@ Twitter widget and shortcode to show your latest tweets one at a time an animate
|
|
12 |
|
13 |
== Description ==
|
14 |
* **Replaces a [shortcode](http://codex.wordpress.org/Shortcode) such as `[rotatingtweets screen_name='your_twitter']`, or a [widget](http://codex.wordpress.org/WordPress_Widgets), with a rotating display of your most recent tweets**
|
15 |
-
* **Supports v 1.1 of the Twitter API** - yes! it will keep working after
|
16 |
* **Space efficient** - instead of showing all your tweets at once, shows one at a time and then smoothly replaces it with the next one. After showing all your tweets, loops back to the beginning again.
|
17 |
* **Reliable** - keeps showing your latest Tweets even if the Twitter website is down.
|
18 |
* **Customisable** - you decide whose tweets to show, how many to show, whether to include retweets and replies, and whether to show a follow button. You can also decide how quickly the tweets rotate and what type of animation to use.
|
@@ -30,6 +30,7 @@ Currently the following languages are available:
|
|
30 |
* Spanish *(basic tweet display only)*
|
31 |
* Italian *(basic tweet display only)*
|
32 |
* Dutch *(basic tweet display only)*
|
|
|
33 |
|
34 |
If you have made the plug-in work in your language, please send the translations you'd like to see or, even better, the relevant [gettext PO and MO files](http://codex.wordpress.org/I18n_for_WordPress_Developers) to [me](http://www.martintod.org.uk/contact-martin/) and I will then share them with everyone else. You can download [the latest POT file](http://plugins.svn.wordpress.org/rotatingtweets/trunk/languages/rotatingtweets.pot), and [PO files in each language](http://plugins.svn.wordpress.org/rotatingtweets/trunk/languages/) from this site. You may find [Poedit](http://www.poedit.net/) rather useful for translation and creation of PO and MO files - although the PO files themselves are quite simple text files and can be edited in Notepad or [Notepad++](http://notepad-plus-plus.org/).
|
35 |
|
@@ -52,31 +53,38 @@ Options include:
|
|
52 |
1. Using the basic Rotating Tweets shortcode, for example `[rotatingtweets screen_name='mpntod']`
|
53 |
1. Using a more complicated Rotating Tweets shortcode, for example `[rotatingtweets screen_name='mpntod' include_rts='1' tweet_count='7' timeout='3000']`
|
54 |
|
55 |
-
=
|
56 |
Possible variables for the shortcode include:
|
57 |
|
58 |
-
*
|
59 |
-
* `
|
60 |
-
* `
|
61 |
-
* `
|
62 |
-
*
|
63 |
-
* `
|
64 |
-
* `
|
65 |
-
* `
|
66 |
-
* `
|
67 |
-
* `
|
68 |
-
*
|
69 |
-
* `
|
70 |
-
* `
|
71 |
-
* `links_in_new_window` = `'0'` or `'1'` - show links in a new tab or window - default is `'0'`
|
72 |
-
* `rotation_type` = any of the options listed on the [jQuery.cycle website](http://jquery.malsup.com/cycle/browser.html) - default is `'scrollUp'`
|
73 |
-
* `
|
74 |
-
* `
|
75 |
-
* `
|
76 |
-
* `
|
77 |
-
* `
|
78 |
-
|
79 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
80 |
|
81 |
== Credits ==
|
82 |
Most of this is my own work, but special thanks are owed to:
|
@@ -91,6 +99,9 @@ Most of this is my own work, but special thanks are owed to:
|
|
91 |
= How often does the plug-in call Twitter =
|
92 |
In most cases, each use (or "instance") of this plug-in gets data from Twitter every 2 minutes. The exception is when two or more instances share the same settings (screen name etc.), in which case they share the same data rather than each calling it separately.
|
93 |
|
|
|
|
|
|
|
94 |
= How can I add a Twitter bird to the left of my tweets? =
|
95 |
You can do this by going to the `rotatingtweets/css` directory and renaming `rotatingtweets-sample.css` to `rotatingtweets.css` and putting it in the `wp-content/uploads/` directory. This displays a Twitter bird to the left of your tweets. Any CSS you put into `rotatingtweets.css` won't be overwritten when the plug-in is upgraded to the latest version.
|
96 |
|
@@ -119,169 +130,186 @@ If there is only one copy of `jquery` and of `jquery.cycle` on your page, the be
|
|
119 |
1. Read the diagnostics and look for any problems that relate to JavaScript. This will normally tell you which JavaScript (if any) is having problems.
|
120 |
|
121 |
== Upgrade notice ==
|
122 |
-
= 1.
|
123 |
-
|
|
|
|
|
|
|
124 |
|
125 |
== Changelog ==
|
|
|
|
|
|
|
126 |
= 1.3.18 =
|
127 |
-
Improved and clearer error messages.
|
|
|
|
|
128 |
|
129 |
= 1.3.17 =
|
130 |
-
Adds the opportunity to show lists.
|
|
|
131 |
|
132 |
= 1.3.16 =
|
133 |
-
Making sure hashtags have a space or the start of a line before them.
|
|
|
134 |
|
135 |
= 1.3.15 =
|
136 |
-
Minor correction to hashtag code
|
137 |
|
138 |
= 1.3.14 =
|
139 |
-
Fixes accents in hashtags (hopefully).
|
|
|
|
|
140 |
|
141 |
= 1.3.13 =
|
142 |
-
Strips `@` from screen names to avoid API problems.
|
143 |
|
144 |
= 1.3.12 =
|
145 |
-
Removes accents from screen names (and otherwise cleans them up).
|
|
|
|
|
146 |
|
147 |
= 1.3.11 =
|
148 |
-
Supports cyrillic hashtags!
|
149 |
|
150 |
= 1.3.10 =
|
151 |
-
Fixed hashtag links
|
152 |
|
153 |
= 1.3.9 =
|
154 |
-
Moved to [Semantic Versioning](http://semver.org/)
|
155 |
|
156 |
= 0.712 (1.3.8) =
|
157 |
-
Fixed bug with `console.log` javascript on IE.
|
158 |
|
159 |
= 0.711 (1.3.7) =
|
160 |
-
Fixed up a significant problem with cacheing.
|
161 |
|
162 |
= 0.709 (1.3.6) =
|
163 |
-
Tidying up error reporting.
|
164 |
|
165 |
= 0.707 (1.3.5) =
|
166 |
-
Fixes major bug resulting from upgrade to handle Twitter API v 1.1
|
167 |
|
168 |
= 0.706 (1.3.4) =
|
169 |
-
Change to JavaScript to improve width handling for tweets.
|
170 |
|
171 |
= 0.703 (1.3.3) =
|
172 |
-
Minor code tidying to improve debugging and increase speed!
|
173 |
|
174 |
= 0.702 (1.3.2) =
|
175 |
-
Adjustment to javascript and CSS to cope with long links or long words
|
176 |
|
177 |
= 0.701 (1.3.1) =
|
178 |
-
Very minor mistake in rendering code
|
179 |
|
180 |
= 0.700 (1.3.0) =
|
181 |
-
|
182 |
|
183 |
= 0.625 (1.2.4) =
|
184 |
-
Enabled users to make all links open in a new tab or window
|
185 |
|
186 |
= 0.623 (1.2.3) =
|
187 |
-
Fixed a problem where a short name fitted inside a long one - e.g. @rotary and @rotarycrocus
|
188 |
|
189 |
= 0.622 (1.2.2) =
|
190 |
-
Escaped title tags
|
191 |
|
192 |
= 0.621 (1.2.1) =
|
193 |
-
Fixed timezone problem.
|
194 |
|
195 |
= 0.620 (1.2.0) =
|
196 |
-
Added option to show links in a new window
|
197 |
-
Fix problem with selection of 20 second rotating speed.
|
198 |
|
199 |
= 0.613 (1.1.6) =
|
200 |
-
Fixed instructions in plug-ins list.
|
201 |
|
202 |
= 0.612 (1.1.5) =
|
203 |
-
Fixed error message caused by last fix causing tweets to repeat.
|
204 |
|
205 |
= 0.611 (1.1.4) =
|
206 |
-
Finally ran with debug and removed all the error messages.
|
207 |
|
208 |
= 0.610 (1.1.3) =
|
209 |
-
Starts to add options to allow for different length URLs
|
210 |
|
211 |
= 0.602 (1.1.2) =
|
212 |
-
Fixes bug with Javascript
|
213 |
|
214 |
= 0.601 (1.1.1) =
|
215 |
-
Fixes problem with stylesheet
|
216 |
|
217 |
= 0.600 (1.1.0) =
|
218 |
-
Now includes options consistent with Twitter display options
|
219 |
-
Tidied up code.
|
220 |
|
221 |
= 0.505 (1.0.0) =
|
222 |
-
Minimised Javascript.
|
|
|
223 |
|
224 |
= 0.502 (0.4.1) =
|
225 |
-
Javascript fix for zero height tweets problem
|
226 |
|
227 |
= 0.500 (0.4.0) =
|
228 |
-
Adds options for how tweet information is displayed and how the tweet rotates.
|
229 |
|
230 |
= 0.492 (0.3.1) =
|
231 |
-
Solves `Cannot use string offset as an array` error on line 232
|
232 |
|
233 |
= 0.491 (0.3.0) =
|
234 |
-
Lets you customise the Twitter 'follow' button.
|
|
|
|
|
235 |
|
236 |
= 0.48 (0.2.6) =
|
237 |
-
More detailed error messages for Wordpress installations unable to access Twitter.
|
238 |
-
Fixes problem on the zeeBizzCard template and sets up fix for other templates that use their own install of the `jquery-cycle` javascript.
|
239 |
|
240 |
= 0.471 (0.2.5) =
|
241 |
-
Making sure that cache never gets overwritten unless new, valid twitter data has been downloaded.
|
242 |
-
Dealing with the problem that someone in a long conversation may not get enough valid tweets to show by asking for only 20 tweets from Twitter.
|
243 |
|
244 |
= 0.46 (0.2.4) =
|
245 |
-
Properly handles rate-limiting by Twitter
|
246 |
|
247 |
= 0.44 (0.2.3) =
|
248 |
-
Removes follow button if Twitter has returned an empty value
|
249 |
|
250 |
= 0.43 (0.2.2) =
|
251 |
-
Improved error checking if Twitter has returned an empty value
|
252 |
|
253 |
= 0.42 (0.2.1) =
|
254 |
-
Fixed major bug causing crashes when Twitter goes down
|
255 |
|
256 |
= 0.40 (0.2.0) =
|
257 |
-
Added ability to alter speed of rotation
|
258 |
|
259 |
= 0.30 (0.1.8) =
|
260 |
-
Fixes bug - problem with `get_object_vars()` on line 193
|
261 |
|
262 |
= 0.29 (0.1.7) =
|
263 |
-
Better handling of retweets. No longer cuts off the end of the text on longer RTs.
|
264 |
|
265 |
= 0.28 (0.1.6) =
|
266 |
-
Properly fixes flaw in how flags are handled.
|
267 |
|
268 |
= 0.27 (0.1.5) =
|
269 |
-
Fixed flaw in how flags are handled.
|
270 |
|
271 |
= 0.26 (0.1.4) =
|
272 |
-
Stops display and cacheing of non-existent twitter feeds
|
273 |
|
274 |
= 0.25 (0.1.3) =
|
275 |
-
Stops display and cacheing of faulty twitter feeds
|
276 |
|
277 |
= 0.21 (0.1.2) =
|
278 |
-
Replaced a missing `</div>` in the follow-button code (with thanks to [jacobp](http://wordpress.org/support/profile/jacobp) for spotting it and suggesting a fix)
|
279 |
|
280 |
= 0.2 (0.1.1) =
|
281 |
-
Fixed a problem with cacheing
|
282 |
|
283 |
= 0.1 (0.1.0) =
|
284 |
-
First published version
|
285 |
|
286 |
== Screenshots ==
|
287 |
1. This animation shows rotating tweets inserted into a blog-post via a short code. It is slightly faster than the default setting, but gives a sense of what you get.
|
3 |
Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=9XCNM4QSVHYT8
|
4 |
Tags: shortcode,widget,twitter,rotating,rotate,rotator,tweet,tweets,animation,jquery,jquery cycle,cycle,multilingual
|
5 |
Requires at least: 2.6
|
6 |
+
Tested up to: 3.5.1
|
7 |
+
Stable tag: 1.4.0
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
12 |
|
13 |
== Description ==
|
14 |
* **Replaces a [shortcode](http://codex.wordpress.org/Shortcode) such as `[rotatingtweets screen_name='your_twitter']`, or a [widget](http://codex.wordpress.org/WordPress_Widgets), with a rotating display of your most recent tweets**
|
15 |
+
* **Supports v 1.1 of the Twitter API** - yes! it will keep working after [May 2013](https://dev.twitter.com/calendar)
|
16 |
* **Space efficient** - instead of showing all your tweets at once, shows one at a time and then smoothly replaces it with the next one. After showing all your tweets, loops back to the beginning again.
|
17 |
* **Reliable** - keeps showing your latest Tweets even if the Twitter website is down.
|
18 |
* **Customisable** - you decide whose tweets to show, how many to show, whether to include retweets and replies, and whether to show a follow button. You can also decide how quickly the tweets rotate and what type of animation to use.
|
30 |
* Spanish *(basic tweet display only)*
|
31 |
* Italian *(basic tweet display only)*
|
32 |
* Dutch *(basic tweet display only)*
|
33 |
+
* French *(almost complete - many thanks to [Alexandre Trudel](http://wordpress.org/support/profile/alexandretrudel) for his help on this)*
|
34 |
|
35 |
If you have made the plug-in work in your language, please send the translations you'd like to see or, even better, the relevant [gettext PO and MO files](http://codex.wordpress.org/I18n_for_WordPress_Developers) to [me](http://www.martintod.org.uk/contact-martin/) and I will then share them with everyone else. You can download [the latest POT file](http://plugins.svn.wordpress.org/rotatingtweets/trunk/languages/rotatingtweets.pot), and [PO files in each language](http://plugins.svn.wordpress.org/rotatingtweets/trunk/languages/) from this site. You may find [Poedit](http://www.poedit.net/) rather useful for translation and creation of PO and MO files - although the PO files themselves are quite simple text files and can be edited in Notepad or [Notepad++](http://notepad-plus-plus.org/).
|
36 |
|
53 |
1. Using the basic Rotating Tweets shortcode, for example `[rotatingtweets screen_name='mpntod']`
|
54 |
1. Using a more complicated Rotating Tweets shortcode, for example `[rotatingtweets screen_name='mpntod' include_rts='1' tweet_count='7' timeout='3000']`
|
55 |
|
56 |
+
= Shortcode variables =
|
57 |
Possible variables for the shortcode include:
|
58 |
|
59 |
+
* **Required settings** - at least one of the following three settings is required for the short-code to function:
|
60 |
+
* `screen_name` = Twitter user name
|
61 |
+
* `url` = Twitter user URL. If `screen_name` is empty and this link is valid, `screen_name` will be set to the user name included in `url`
|
62 |
+
* `search` = a term to search for
|
63 |
+
* **Twitter options**
|
64 |
+
* `include_rts` = `'0'` or `'1'` - include retweets - optional - default is `'0'`
|
65 |
+
* `exclude_replies` = `'0'` or `'1'` - exclude replies - optional - default is `'0'`
|
66 |
+
* `tweet_count` = number of tweets to show - optional - default is `5`
|
67 |
+
* `get_favorites` = `'0'` or `'1'` - show someone's favorites rather than their timeline - default is `'0'`
|
68 |
+
* `list` = `'list-slug'` - the 'slug' used by someone's list (something like `my-list`)
|
69 |
+
* **Display options**
|
70 |
+
* `official_format` = `'1'` or `'2'` - show official format - optional - default is `'0'`
|
71 |
+
* `timeout` = time that each tweet is shown in milliseconds - optional - default is `'4000'` (i.e. 4 seconds)
|
72 |
+
* `links_in_new_window` = `'0'` or `'1'` - show links in a new tab or window - default is `'0'`
|
73 |
+
* `rotation_type` = any of the options listed on the [jQuery.cycle website](http://jquery.malsup.com/cycle/browser.html) - default is `'scrollUp'`
|
74 |
+
* `url_length` = sets the length that the URL should be trimmed to...
|
75 |
+
* `show_meta_timestamp` = `'0'` or `'1'` - show the time and date of each tweet - optional - default is `'1'`
|
76 |
+
* `show_meta_screen_name` = `'0'` or `'1'` - show who posted each tweet - optional - default is `'1'`
|
77 |
+
* `show_meta_via` = `'0'` or `'1'` - show how each tweet was posted - optional - default is `'1'`
|
78 |
+
* `show_meta_reply_retweet_favorite` = `'0'` or `'1'` - show 'reply', 'retweet' and 'favorite' buttons - optional - default is `'0'`
|
79 |
+
* `show_meta_prev_next` = `'0'` or `'1'` - show 'next', 'prev' links - optional - default is `'0'`
|
80 |
+
* `next` = content for the next button (default `'next'`)
|
81 |
+
* `prev` = content for the prev button (default `'prev'`)
|
82 |
+
* `middot` = content for the space between the buttons (default `' &middot; '`)
|
83 |
+
* `np_pos` = position for 'next' and 'prev' buttons - `'top'` or `'bottom'` (default `'top'`)
|
84 |
+
* **Twitter follow button**
|
85 |
+
* `show_follow` = `'0'` or `'1'` - show follow button - optional - default is `'0'`
|
86 |
+
* `no_show_count` = `'0'` or `'1'` - remove the follower count from the Twitter follow button - optional - default is `'0'`
|
87 |
+
* `no_show_screen_name` = `'0'` or `'1'` - remove the screen name from the Twitter follow button - optional - default is `'0'`
|
88 |
|
89 |
== Credits ==
|
90 |
Most of this is my own work, but special thanks are owed to:
|
99 |
= How often does the plug-in call Twitter =
|
100 |
In most cases, each use (or "instance") of this plug-in gets data from Twitter every 2 minutes. The exception is when two or more instances share the same settings (screen name etc.), in which case they share the same data rather than each calling it separately.
|
101 |
|
102 |
+
= How can I pull information from two accounts into one widget =
|
103 |
+
The easiest way is to use a search term like 'from:account1 OR from:account2'.
|
104 |
+
|
105 |
= How can I add a Twitter bird to the left of my tweets? =
|
106 |
You can do this by going to the `rotatingtweets/css` directory and renaming `rotatingtweets-sample.css` to `rotatingtweets.css` and putting it in the `wp-content/uploads/` directory. This displays a Twitter bird to the left of your tweets. Any CSS you put into `rotatingtweets.css` won't be overwritten when the plug-in is upgraded to the latest version.
|
107 |
|
130 |
1. Read the diagnostics and look for any problems that relate to JavaScript. This will normally tell you which JavaScript (if any) is having problems.
|
131 |
|
132 |
== Upgrade notice ==
|
133 |
+
= 1.4.0 =
|
134 |
+
* Access search, favorites and lists through Rotating Tweets widgets.
|
135 |
+
|
136 |
+
= 0.700 (1.3.0) =
|
137 |
+
* Upgrade needed for Rotating Tweets to keep working after May 2013. Supports version 1.1 of the Twitter API.
|
138 |
|
139 |
== Changelog ==
|
140 |
+
= 1.4.0 =
|
141 |
+
* Support for search, favorites and lists via Rotating Tweets widgets.
|
142 |
+
|
143 |
= 1.3.18 =
|
144 |
+
* Improved and clearer error messages.
|
145 |
+
* Removed search bug.
|
146 |
+
* 'Next' and 'Prev' buttons for shortcodes.
|
147 |
|
148 |
= 1.3.17 =
|
149 |
+
* Adds the opportunity to show lists.
|
150 |
+
* Tackles a very odd box height problem that has just appeared in Chrome (but not Firefox or IE).
|
151 |
|
152 |
= 1.3.16 =
|
153 |
+
* Making sure hashtags have a space or the start of a line before them.
|
154 |
+
* Tidying up errors found when running plug-in with `wp_debug` set to `true`
|
155 |
|
156 |
= 1.3.15 =
|
157 |
+
* Minor correction to hashtag code
|
158 |
|
159 |
= 1.3.14 =
|
160 |
+
* Fixes accents in hashtags (hopefully).
|
161 |
+
* Adds beta of search to the shortcode API.
|
162 |
+
* Adds new format of Tweet display.
|
163 |
|
164 |
= 1.3.13 =
|
165 |
+
* Strips `@` from screen names to avoid API problems.
|
166 |
|
167 |
= 1.3.12 =
|
168 |
+
* Removes accents from screen names (and otherwise cleans them up).
|
169 |
+
* Add test option (currently for shortcodes only) to access favorites.
|
170 |
+
* Solves clash between PECL OAuth library and the Rotating Tweets OAuth library.
|
171 |
|
172 |
= 1.3.11 =
|
173 |
+
* Supports cyrillic hashtags!
|
174 |
|
175 |
= 1.3.10 =
|
176 |
+
* Fixed hashtag links
|
177 |
|
178 |
= 1.3.9 =
|
179 |
+
* Moved to [Semantic Versioning](http://semver.org/)
|
180 |
|
181 |
= 0.712 (1.3.8) =
|
182 |
+
* Fixed bug with `console.log` javascript on IE.
|
183 |
|
184 |
= 0.711 (1.3.7) =
|
185 |
+
* Fixed up a significant problem with cacheing.
|
186 |
|
187 |
= 0.709 (1.3.6) =
|
188 |
+
* Tidying up error reporting.
|
189 |
|
190 |
= 0.707 (1.3.5) =
|
191 |
+
* Fixes major bug resulting from upgrade to handle Twitter API v 1.1
|
192 |
|
193 |
= 0.706 (1.3.4) =
|
194 |
+
* Change to JavaScript to improve width handling for tweets.
|
195 |
|
196 |
= 0.703 (1.3.3) =
|
197 |
+
* Minor code tidying to improve debugging and increase speed!
|
198 |
|
199 |
= 0.702 (1.3.2) =
|
200 |
+
* Adjustment to javascript and CSS to cope with long links or long words
|
201 |
|
202 |
= 0.701 (1.3.1) =
|
203 |
+
* Very minor mistake in rendering code
|
204 |
|
205 |
= 0.700 (1.3.0) =
|
206 |
+
* Important upgrade needed for Rotating Tweets to keep working after March 2013. Supports version 1.1 of the Twitter API.
|
207 |
|
208 |
= 0.625 (1.2.4) =
|
209 |
+
* Enabled users to make all links open in a new tab or window
|
210 |
|
211 |
= 0.623 (1.2.3) =
|
212 |
+
* Fixed a problem where a short name fitted inside a long one - e.g. @rotary and @rotarycrocus
|
213 |
|
214 |
= 0.622 (1.2.2) =
|
215 |
+
* Escaped title tags
|
216 |
|
217 |
= 0.621 (1.2.1) =
|
218 |
+
* Fixed timezone problem.
|
219 |
|
220 |
= 0.620 (1.2.0) =
|
221 |
+
* Added option to show links in a new window
|
222 |
+
* Fix problem with selection of 20 second rotating speed.
|
223 |
|
224 |
= 0.613 (1.1.6) =
|
225 |
+
* Fixed instructions in plug-ins list.
|
226 |
|
227 |
= 0.612 (1.1.5) =
|
228 |
+
* Fixed error message caused by last fix causing tweets to repeat.
|
229 |
|
230 |
= 0.611 (1.1.4) =
|
231 |
+
* Finally ran with debug and removed all the error messages.
|
232 |
|
233 |
= 0.610 (1.1.3) =
|
234 |
+
* Starts to add options to allow for different length URLs
|
235 |
|
236 |
= 0.602 (1.1.2) =
|
237 |
+
* Fixes bug with Javascript
|
238 |
|
239 |
= 0.601 (1.1.1) =
|
240 |
+
* Fixes problem with stylesheet
|
241 |
|
242 |
= 0.600 (1.1.0) =
|
243 |
+
*Now includes options consistent with Twitter display options
|
244 |
+
* Tidied up code.
|
245 |
|
246 |
= 0.505 (1.0.0) =
|
247 |
+
* Minimised Javascript.
|
248 |
+
* Set-up for I18n.
|
249 |
|
250 |
= 0.502 (0.4.1) =
|
251 |
+
* Javascript fix for zero height tweets problem
|
252 |
|
253 |
= 0.500 (0.4.0) =
|
254 |
+
* Adds options for how tweet information is displayed and how the tweet rotates.
|
255 |
|
256 |
= 0.492 (0.3.1) =
|
257 |
+
* Solves `Cannot use string offset as an array` error on line 232
|
258 |
|
259 |
= 0.491 (0.3.0) =
|
260 |
+
* Lets you customise the Twitter 'follow' button.
|
261 |
+
* Fixes problem with media links.
|
262 |
+
* Sorts problem of overlong links reshaping widgets.
|
263 |
|
264 |
= 0.48 (0.2.6) =
|
265 |
+
* More detailed error messages for Wordpress installations unable to access Twitter.
|
266 |
+
* Fixes problem on the zeeBizzCard template and sets up fix for other templates that use their own install of the `jquery-cycle` javascript.
|
267 |
|
268 |
= 0.471 (0.2.5) =
|
269 |
+
* Making sure that cache never gets overwritten unless new, valid twitter data has been downloaded.
|
270 |
+
* Dealing with the problem that someone in a long conversation may not get enough valid tweets to show by asking for only 20 tweets from Twitter.
|
271 |
|
272 |
= 0.46 (0.2.4) =
|
273 |
+
* Properly handles rate-limiting by Twitter
|
274 |
|
275 |
= 0.44 (0.2.3) =
|
276 |
+
* Removes follow button if Twitter has returned an empty value
|
277 |
|
278 |
= 0.43 (0.2.2) =
|
279 |
+
* Improved error checking if Twitter has returned an empty value
|
280 |
|
281 |
= 0.42 (0.2.1) =
|
282 |
+
* Fixed major bug causing crashes when Twitter goes down
|
283 |
|
284 |
= 0.40 (0.2.0) =
|
285 |
+
* Added ability to alter speed of rotation
|
286 |
|
287 |
= 0.30 (0.1.8) =
|
288 |
+
* Fixes bug - problem with `get_object_vars()` on line 193
|
289 |
|
290 |
= 0.29 (0.1.7) =
|
291 |
+
* Better handling of retweets. No longer cuts off the end of the text on longer RTs.
|
292 |
|
293 |
= 0.28 (0.1.6) =
|
294 |
+
* Properly fixes flaw in how flags are handled.
|
295 |
|
296 |
= 0.27 (0.1.5) =
|
297 |
+
* Fixed flaw in how flags are handled.
|
298 |
|
299 |
= 0.26 (0.1.4) =
|
300 |
+
* Stops display and cacheing of non-existent twitter feeds
|
301 |
|
302 |
= 0.25 (0.1.3) =
|
303 |
+
* Stops display and cacheing of faulty twitter feeds
|
304 |
|
305 |
= 0.21 (0.1.2) =
|
306 |
+
* Replaced a missing `</div>` in the follow-button code (with thanks to [jacobp](http://wordpress.org/support/profile/jacobp) for spotting it and suggesting a fix)
|
307 |
|
308 |
= 0.2 (0.1.1) =
|
309 |
+
* Fixed a problem with cacheing
|
310 |
|
311 |
= 0.1 (0.1.0) =
|
312 |
+
* First published version
|
313 |
|
314 |
== Screenshots ==
|
315 |
1. This animation shows rotating tweets inserted into a blog-post via a short code. It is slightly faster than the default setting, but gives a sense of what you get.
|
rotatingtweets.php
CHANGED
@@ -2,7 +2,7 @@
|
|
2 |
/*
|
3 |
Plugin Name: Rotating Tweets (Twitter widget & shortcode)
|
4 |
Description: Replaces a shortcode such as [rotatingtweets screen_name='your_twitter_name'], or a widget, with a rotating tweets display
|
5 |
-
Version: 1.
|
6 |
Text Domain: rotatingtweets
|
7 |
Author: Martin Tod
|
8 |
Author URI: http://www.martintod.org.uk
|
@@ -47,7 +47,7 @@ class rotatingtweets_Widget extends WP_Widget {
|
|
47 |
function widget($args, $instance) {
|
48 |
extract( $args );
|
49 |
$title = apply_filters('widget_title', $instance['title']);
|
50 |
-
$positive_variables = array('screen_name','include_rts','exclude_replies','links_in_new_window','tweet_count','show_follow','timeout','rotation_type','show_meta_reply_retweet_favorite','official_format');
|
51 |
foreach($positive_variables as $var) {
|
52 |
$newargs[$var] = @$instance['tw_'.$var];
|
53 |
}
|
@@ -74,7 +74,22 @@ class rotatingtweets_Widget extends WP_Widget {
|
|
74 |
break;
|
75 |
}
|
76 |
if(empty($newargs['timeout'])) $newargs['timeout'] = 4000;
|
77 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
78 |
?>
|
79 |
<?php echo $before_widget;
|
80 |
if ( $title )
|
@@ -90,12 +105,15 @@ class rotatingtweets_Widget extends WP_Widget {
|
|
90 |
$instance = $old_instance;
|
91 |
$instance['title'] = strip_tags($new_instance['title']);
|
92 |
$instance['tw_screen_name'] = strip_tags(trim($new_instance['tw_screen_name']));
|
|
|
|
|
93 |
$instance['tw_rotation_type'] = strip_tags(trim($new_instance['tw_rotation_type']));
|
94 |
$instance['tw_include_rts'] = absint($new_instance['tw_include_rts']);
|
95 |
$instance['tw_links_in_new_window'] = absint($new_instance['tw_links_in_new_window']);
|
96 |
$instance['tw_exclude_replies'] = absint($new_instance['tw_exclude_replies']);
|
97 |
$instance['tw_tweet_count'] = max(1,intval($new_instance['tw_tweet_count']));
|
98 |
$instance['tw_show_follow'] = absint($new_instance['tw_show_follow']);
|
|
|
99 |
# Complicated way to ensure the defaults remain as they were before the 0.500 upgrade - i.e. showing meta timestamp, screen name and via, but not reply, retweet, favorite
|
100 |
$instance['tw_hide_meta_timestamp'] = !$new_instance['tw_show_meta_timestamp'];
|
101 |
$instance['tw_hide_meta_screen_name'] = !$new_instance['tw_show_meta_screen_name'];
|
@@ -108,27 +126,98 @@ class rotatingtweets_Widget extends WP_Widget {
|
|
108 |
|
109 |
/** @see WP_Widget::form */
|
110 |
function form($instance) {
|
111 |
-
$
|
112 |
-
|
113 |
-
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
-
|
118 |
-
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
126 |
# If values not set, set default values
|
|
|
127 |
if(empty($tw_timeout)) $tw_timeout = 4000;
|
128 |
if(empty($tw_tweet_count)) $tw_tweet_count = 5;
|
|
|
129 |
?>
|
130 |
<p><label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('Title:','rotatingtweets'); ?> <input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" value="<?php echo $title; ?>" /></label></p>
|
131 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
132 |
<p><input id="<?php echo $this->get_field_id('tw_include_rts'); ?>" name="<?php echo $this->get_field_name('tw_include_rts'); ?>" type="checkbox" value="1" <?php if($tw_include_rts==1): ?>checked="checked" <?php endif; ?>/><label for="<?php echo $this->get_field_id('tw_include_rts'); ?>"> <?php _e('Include retweets?','rotatingtweets'); ?></label></p>
|
133 |
<p><input id="<?php echo $this->get_field_id('tw_exclude_replies'); ?>" name="<?php echo $this->get_field_name('tw_exclude_replies'); ?>" type="checkbox" value="1" <?php if($tw_exclude_replies==1): ?>checked="checked" <?php endif; ?>/><label for="<?php echo $this->get_field_id('tw_exclude_replies'); ?>"> <?php _e('Exclude replies?','rotatingtweets'); ?></label></p>
|
134 |
<p><input id="<?php echo $this->get_field_id('tw_links_in_new_window'); ?>" name="<?php echo $this->get_field_name('tw_links_in_new_window'); ?>" type="checkbox" value="1" <?php if($tw_links_in_new_window==1): ?>checked="checked" <?php endif; ?>/><label for="<?php echo $this->get_field_id('tw_links_in_new_window'); ?>"> <?php _e('Open all links in new window or tab?','rotatingtweets'); ?></label></p>
|
@@ -207,6 +296,7 @@ class rotatingtweets_Widget extends WP_Widget {
|
|
207 |
<?php
|
208 |
$tw_br = "<br />";
|
209 |
endforeach; ?></p></div>
|
|
|
210 |
<p><?php _e('Show follow button?','rotatingtweets'); ?></p>
|
211 |
<?php
|
212 |
$showfollowoptions = array (
|
@@ -224,9 +314,12 @@ class rotatingtweets_Widget extends WP_Widget {
|
|
224 |
}
|
225 |
# This is an appalling hack to deal with the problem that jQuery gets broken when people hit save - as per http://lists.automattic.com/pipermail/wp-hackers/2011-March/037997.html - but it works!
|
226 |
// echo "<script type='text/javascript' src='".plugins_url('js/rotating_tweet_admin.js', __FILE__)."'></script>";
|
227 |
-
echo "
|
228 |
$rtw_admin_script_original = file_get_contents(plugin_dir_path(__FILE__).'js/rotating_tweet_admin.js');
|
229 |
-
$rtw_admin_script_final = str_replace(
|
|
|
|
|
|
|
230 |
echo $rtw_admin_script_final;
|
231 |
echo "\n</script>";
|
232 |
}
|
@@ -379,7 +472,11 @@ function rotatingtweets_display_shortcode( $atts, $content=null, $code="", $prin
|
|
379 |
'search' => FALSE,
|
380 |
'list' => FALSE,
|
381 |
'get_favorites' => FALSE,
|
382 |
-
'ratelimit' => FALSE
|
|
|
|
|
|
|
|
|
383 |
), $atts ) ;
|
384 |
extract($args);
|
385 |
if(empty($screen_name) && empty($search) && !empty($url)):
|
@@ -818,10 +915,18 @@ function rotating_tweets_display($json,$args,$print=TRUE) {
|
|
818 |
endforeach;
|
819 |
# Create an ID that has all the relevant info in - rotation type and speed of rotation
|
820 |
$id = uniqid('rotatingtweets_'.$timeout.'_'.$rotation_type.'_');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
821 |
if(WP_DEBUG):
|
822 |
-
$result
|
823 |
else:
|
824 |
-
$result
|
825 |
endif;
|
826 |
$error = get_option('rotatingtweets_api_error');
|
827 |
if(!empty($error)):
|
@@ -1000,10 +1105,12 @@ function rotating_tweets_display($json,$args,$print=TRUE) {
|
|
1000 |
if(!empty($meta)) $meta .= ' · ';
|
1001 |
$meta .= rotatingtweets_intents($twitter_object,$twitterlocale, 0,$targetvalue);
|
1002 |
endif;
|
1003 |
-
|
|
|
1004 |
if(!empty($meta)) $meta .= ' · ';
|
1005 |
-
$meta .=
|
1006 |
endif;
|
|
|
1007 |
if(!empty($meta)) $result .= "\n\t\t<p class='rtw_meta'>".ucfirst($meta)."</p>";
|
1008 |
break;
|
1009 |
case 1:
|
@@ -1020,8 +1127,8 @@ function rotating_tweets_display($json,$args,$print=TRUE) {
|
|
1020 |
if(isset($retweeter)) {
|
1021 |
$result .= " · ".rotatingtweets_user_intent($retweeter,$twitterlocale,sprintf(__('Retweeted by %s','rotatingtweets'),$retweeter['name']),$targetvalue);
|
1022 |
}
|
1023 |
-
if(isset($args['show_meta_prev_next']) && $args['show_meta_prev_next']):
|
1024 |
-
$result .= ' ·
|
1025 |
endif;
|
1026 |
$result .= "\n</div>";
|
1027 |
break;
|
@@ -1040,8 +1147,8 @@ function rotating_tweets_display($json,$args,$print=TRUE) {
|
|
1040 |
$result .= "\n\t\t<div class='rtw_rt_meta'>".rotatingtweets_user_intent($retweeter,$twitterlocale,"<img src='".plugins_url('images/retweet_on.png',__FILE__)."' width='16' height='16' alt='".sprintf(__('Retweeted by %s','rotatingtweets'),$retweeter['name'])."' />".sprintf(__('Retweeted by %s','rotatingtweets'),$retweeter['name']),$targetvalue)."</div>";
|
1041 |
}
|
1042 |
$result .= "\n\t\t<div class='rtw_meta'><span class='rtw_expand' style='display:none;'>".__('Expand','rotatingtweets')."</span><span class='rtw_intents'>".rotatingtweets_intents($twitter_object,$twitterlocale, 2,$targetvalue);
|
1043 |
-
if(isset($args['show_meta_prev_next']) && $args['show_meta_prev_next']):
|
1044 |
-
$result .= '
|
1045 |
endif;
|
1046 |
$result .= "</span></div></div></div>";
|
1047 |
break;
|
@@ -1059,10 +1166,13 @@ function rotating_tweets_display($json,$args,$print=TRUE) {
|
|
1059 |
$result .= sprintf(__('from <a href=\'%1$s\' title=\'%2$s\'>%2$s\'s Twitter</a>','rotatingtweets'),'https://twitter.com/intent/user?user_id='.$user['id'],$user['name']).' · ';
|
1060 |
endif;
|
1061 |
$result .= rotatingtweets_timestamp_link($twitter_object,'long',$targetvalue);
|
|
|
|
|
|
|
1062 |
$result .= "\n</div>";
|
1063 |
break;
|
1064 |
case 5:
|
1065 |
-
# This is an
|
1066 |
$result .= "\n\t\t<p class='rtw_main'><img src='".plugins_url('images/bird_16_black.png', __FILE__)."' alt='Twitter' /> $main_text ";
|
1067 |
$meta = '';
|
1068 |
if($args['show_meta_timestamp']):
|
@@ -1080,6 +1190,10 @@ function rotating_tweets_display($json,$args,$print=TRUE) {
|
|
1080 |
if(!empty($meta)) $meta .= ' · ';
|
1081 |
$meta .= rotatingtweets_intents($twitter_object,$twitterlocale, 0,$targetvalue);
|
1082 |
endif;
|
|
|
|
|
|
|
|
|
1083 |
if(!empty($meta)) $result .= "\n\t\t<span class='rtw_meta'>".ucfirst($meta)."</span></p>";
|
1084 |
break;
|
1085 |
}
|
@@ -1093,6 +1207,9 @@ function rotating_tweets_display($json,$args,$print=TRUE) {
|
|
1093 |
endforeach;
|
1094 |
endif;
|
1095 |
$result .= "\n</div>";
|
|
|
|
|
|
|
1096 |
/*
|
1097 |
if($args['show_meta_progress_blobs']):
|
1098 |
$result .= "<div id='".$id."_nav' class='rtw_nav'>";
|
@@ -1106,7 +1223,7 @@ function rotating_tweets_display($json,$args,$print=TRUE) {
|
|
1106 |
$shortenvariables = '';
|
1107 |
if($args['no_show_count']) $shortenvariables = ' data-show-count="false"';
|
1108 |
if($args['no_show_screen_name']) $shortenvariables .= ' data-show-screen-name="false"';
|
1109 |
-
$followUserText = sprintf(__('Follow @%s','rotatingtweets')
|
1110 |
$result .= "\n<div class='rtw_follow follow-button'><a href='http://twitter.com/".$args['screen_name']."' class='twitter-follow-button'{$shortenvariables} title='".$followUserText."' data-lang='{$twitterlocale}'>".$followUserText."</a></div>";
|
1111 |
endif;
|
1112 |
rotatingtweets_enqueue_scripts();
|
@@ -1121,6 +1238,16 @@ add_action('plugins_loaded', 'rotatingtweets_init');
|
|
1121 |
|
1122 |
function rotatingtweets_enqueue_scripts() {
|
1123 |
wp_enqueue_script( 'jquery' );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1124 |
# Get Stylesheet
|
1125 |
$style = get_stylesheet();
|
1126 |
switch ($style):
|
@@ -1128,11 +1255,13 @@ function rotatingtweets_enqueue_scripts() {
|
|
1128 |
case 'zeebizzcard':
|
1129 |
// case 'zeeStyle':
|
1130 |
wp_dequeue_script( 'zee_jquery-cycle');
|
1131 |
-
wp_enqueue_script( 'zee_jquery-cycle', plugins_url('js/jquery.cycle.all.min.js', __FILE__),
|
1132 |
-
|
|
|
1133 |
break;
|
1134 |
default:
|
1135 |
-
wp_enqueue_script( 'jquery-cycle', plugins_url('js/jquery.cycle.all.min.js', __FILE__),
|
|
|
1136 |
wp_enqueue_script( 'rotating_tweet', plugins_url('js/rotating_tweet.js', __FILE__),array('jquery','jquery-cycle'),FALSE,FALSE );
|
1137 |
break;
|
1138 |
endswitch;
|
2 |
/*
|
3 |
Plugin Name: Rotating Tweets (Twitter widget & shortcode)
|
4 |
Description: Replaces a shortcode such as [rotatingtweets screen_name='your_twitter_name'], or a widget, with a rotating tweets display
|
5 |
+
Version: 1.4.0
|
6 |
Text Domain: rotatingtweets
|
7 |
Author: Martin Tod
|
8 |
Author URI: http://www.martintod.org.uk
|
47 |
function widget($args, $instance) {
|
48 |
extract( $args );
|
49 |
$title = apply_filters('widget_title', $instance['title']);
|
50 |
+
$positive_variables = array('screen_name','include_rts','exclude_replies','links_in_new_window','tweet_count','show_follow','timeout','rotation_type','show_meta_reply_retweet_favorite','official_format','show_type','list_tag','search');
|
51 |
foreach($positive_variables as $var) {
|
52 |
$newargs[$var] = @$instance['tw_'.$var];
|
53 |
}
|
74 |
break;
|
75 |
}
|
76 |
if(empty($newargs['timeout'])) $newargs['timeout'] = 4000;
|
77 |
+
switch($newargs['show_type']) {
|
78 |
+
case 1:
|
79 |
+
$tweets = rotatingtweets_get_tweets($newargs['screen_name'],$newargs['include_rts'],$newargs['exclude_replies'],true);
|
80 |
+
break;
|
81 |
+
case 2:
|
82 |
+
$tweets = rotatingtweets_get_tweets($newargs['screen_name'],$newargs['include_rts'],$newargs['exclude_replies'],false,$newargs['search']);
|
83 |
+
$newargs['screen_name'] = '';
|
84 |
+
break;
|
85 |
+
case 3:
|
86 |
+
$tweets = rotatingtweets_get_tweets($newargs['screen_name'],$newargs['include_rts'],$newargs['exclude_replies'],false,false,$newargs['list_tag']);
|
87 |
+
break;
|
88 |
+
case 0:
|
89 |
+
default:
|
90 |
+
$tweets = rotatingtweets_get_tweets($newargs['screen_name'],$newargs['include_rts'],$newargs['exclude_replies']);
|
91 |
+
break;
|
92 |
+
}
|
93 |
?>
|
94 |
<?php echo $before_widget;
|
95 |
if ( $title )
|
105 |
$instance = $old_instance;
|
106 |
$instance['title'] = strip_tags($new_instance['title']);
|
107 |
$instance['tw_screen_name'] = strip_tags(trim($new_instance['tw_screen_name']));
|
108 |
+
$instance['tw_list_tag'] = strip_tags(trim($new_instance['tw_list_tag']));
|
109 |
+
$instance['tw_search'] = strip_tags(trim($new_instance['tw_search']));
|
110 |
$instance['tw_rotation_type'] = strip_tags(trim($new_instance['tw_rotation_type']));
|
111 |
$instance['tw_include_rts'] = absint($new_instance['tw_include_rts']);
|
112 |
$instance['tw_links_in_new_window'] = absint($new_instance['tw_links_in_new_window']);
|
113 |
$instance['tw_exclude_replies'] = absint($new_instance['tw_exclude_replies']);
|
114 |
$instance['tw_tweet_count'] = max(1,intval($new_instance['tw_tweet_count']));
|
115 |
$instance['tw_show_follow'] = absint($new_instance['tw_show_follow']);
|
116 |
+
$instance['tw_show_type'] = absint($new_instance['tw_show_type']);
|
117 |
# Complicated way to ensure the defaults remain as they were before the 0.500 upgrade - i.e. showing meta timestamp, screen name and via, but not reply, retweet, favorite
|
118 |
$instance['tw_hide_meta_timestamp'] = !$new_instance['tw_show_meta_timestamp'];
|
119 |
$instance['tw_hide_meta_screen_name'] = !$new_instance['tw_show_meta_screen_name'];
|
126 |
|
127 |
/** @see WP_Widget::form */
|
128 |
function form($instance) {
|
129 |
+
$variables = array(
|
130 |
+
'title' => array('title','','string'),
|
131 |
+
'tw_screen_name' => array ('tw_screen_name','', 'string'),
|
132 |
+
'tw_rotation_type' => array('tw_rotation_type','scrollUp', 'string'),
|
133 |
+
'tw_include_rts' => array('tw_include_rts', false, 'boolean'),
|
134 |
+
'tw_exclude_replies' => array('tw_exclude_replies', false, 'boolean'),
|
135 |
+
'tw_tweet_count' => array('tw_tweet_count',5,'number'),
|
136 |
+
'tw_show_follow' => array('tw_show_follow',false, 'boolean'),
|
137 |
+
'tw_official_format' => array('tw_official_format',0,'number'),
|
138 |
+
'tw_show_type' => array('tw_show_type',0,'number'),
|
139 |
+
'tw_links_in_new_window' => array('tw_links_in_new_window',false, 'boolean'),
|
140 |
+
'tw_hide_meta_timestamp' => array('tw_show_meta_timestamp',true, 'notboolean',true),
|
141 |
+
'tw_hide_meta_screen_name' => array('tw_show_meta_screen_name',true, 'notboolean',true),
|
142 |
+
'tw_hide_meta_via'=> array('tw_show_meta_via',true,'notboolean',true),
|
143 |
+
'tw_show_meta_reply_retweet_favorite' => array('tw_show_meta_reply_retweet_favorite',false,'boolean',true),
|
144 |
+
'tw_timeout' => array('tw_timeout',4000,'number'),
|
145 |
+
'tw_list_tag' => array('tw_list_tag','','string'),
|
146 |
+
'tw_search' => array('tw_search','','string')
|
147 |
+
);
|
148 |
+
foreach($variables as $var => $val) {
|
149 |
+
if(isset($instance[$var])):
|
150 |
+
switch($val[2]):
|
151 |
+
case "string":
|
152 |
+
$$val[0] = esc_attr(trim($instance[$var]));
|
153 |
+
break;
|
154 |
+
case "number":
|
155 |
+
case "boolean":
|
156 |
+
$$val[0] = absint($instance[$var]);
|
157 |
+
break;
|
158 |
+
case "notboolean":
|
159 |
+
$$val[0] = !$instance[$var];
|
160 |
+
break;
|
161 |
+
endswitch;
|
162 |
+
else:
|
163 |
+
$$val[0] = $val[1];
|
164 |
+
endif;
|
165 |
+
if(isset($val[3])):
|
166 |
+
$metaoption[$val[0]]=$$val[0];
|
167 |
+
unset($$val[0]);
|
168 |
+
endif;
|
169 |
+
}
|
170 |
+
/*
|
171 |
+
if(isset($instance['title'])) $title = esc_attr($instance['title']);
|
172 |
+
if(isset($instance['tw_screen_name'])) $tw_screen_name = esc_attr(trim($instance['tw_screen_name']));
|
173 |
+
if(isset($instance['tw_rotation_type'])) $tw_rotation_type = $instance['tw_rotation_type'];
|
174 |
+
if(isset($instance['tw_include_rts'])) $tw_include_rts = absint($instance['tw_include_rts']);
|
175 |
+
if(isset($instance['tw_exclude_replies'])) $tw_exclude_replies = absint($instance['tw_exclude_replies']);
|
176 |
+
if(isset($instance['tw_tweet_count'])) $tw_tweet_count = intval($instance['tw_tweet_count']);
|
177 |
+
if(isset($instance['tw_show_follow'])) $tw_show_follow = absint($instance['tw_show_follow']);
|
178 |
+
if(isset($instance['tw_official_format'])) $tw_official_format = absint($instance['tw_official_format']);
|
179 |
+
if(isset($instance['tw_show_type'])) $tw_show_type = absint($instance['tw_show_type']);
|
180 |
+
if(isset($instance['tw_links_in_new_window'])) $tw_links_in_new_window = absint($instance['tw_links_in_new_window']);
|
181 |
+
if(isset($instance['tw_hide_meta_timestamp'])) $metaoption['tw_show_meta_timestamp'] = !$instance['tw_hide_meta_timestamp'];
|
182 |
+
if(isset($instance['tw_hide_meta_screen_name'])) $metaoption['tw_show_meta_screen_name'] = !$instance['tw_hide_meta_screen_name'];
|
183 |
+
if(isset($instance['tw_hide_meta_via'])) $metaoption['tw_show_meta_via'] = !$instance['tw_hide_meta_via'];
|
184 |
+
if(isset($instance['tw_show_meta_reply_retweet_favorite'])) $metaoption['tw_show_meta_reply_retweet_favorite'] = absint($instance['tw_show_meta_reply_retweet_favorite']);
|
185 |
+
if(isset($instance['tw_timeout'])) $tw_timeout = intval($instance['tw_timeout']);
|
186 |
# If values not set, set default values
|
187 |
+
if(empty($tw_rotation_type)) $tw_rotation_type = 'scrollUp';
|
188 |
if(empty($tw_timeout)) $tw_timeout = 4000;
|
189 |
if(empty($tw_tweet_count)) $tw_tweet_count = 5;
|
190 |
+
*/
|
191 |
?>
|
192 |
<p><label for="<?php echo $this->get_field_id('title'); ?>"><?php _e('Title:','rotatingtweets'); ?> <input class="widefat" id="<?php echo $this->get_field_id('title'); ?>" name="<?php echo $this->get_field_name('title'); ?>" type="text" value="<?php echo $title; ?>" /></label></p>
|
193 |
+
<?php
|
194 |
+
$hidestr ='';
|
195 |
+
if($tw_show_type < 3) $hidestr = ' style="display:none;"';
|
196 |
+
if($tw_show_type != 2):
|
197 |
+
$hidesearch = ' style="display:none;"';
|
198 |
+
$hideuser = '';
|
199 |
+
else:
|
200 |
+
$hideuser = ' style="display:none;"';
|
201 |
+
$hidesearch = '';
|
202 |
+
endif;
|
203 |
+
?>
|
204 |
+
<p class='rtw_ad_not_search' <?php echo $hideuser;?>><label for="<?php echo $this->get_field_id('tw_screen_name'); ?>"><?php _e('Twitter name:','rotatingtweets'); ?><input class="widefat" id="<?php echo $this->get_field_id('tw_screen_name'); ?>" name="<?php echo $this->get_field_name('tw_screen_name'); ?>" value="<?php echo $tw_screen_name; ?>" /></label></p>
|
205 |
+
<p class='rtw_ad_search'<?php echo $hidesearch;?>><label for="<?php echo $this->get_field_id('tw_search'); ?>"><?php _e('Search:','rotatingtweets'); ?><input class="widefat" id="<?php echo $this->get_field_id('tw_search'); ?>" name="<?php echo $this->get_field_name('tw_search'); ?>" value="<?php echo $tw_search; ?>" /></label></p>
|
206 |
+
<p class='rtw_ad_list_tag' <?=$hidestr;?>><label for="<?php echo $this->get_field_id('tw_list_tag'); ?>"><?php _e('List Tag:','rotatingtweets'); ?> <input class="widefat" id="<?php echo $this->get_field_id('tw_list_tag'); ?>" name="<?php echo $this->get_field_name('tw_list_tag'); ?>" value="<?php echo $tw_list_tag; ?>" /></label></p>
|
207 |
+
<p><?php _e('Type of Tweets?','rotatingtweets'); ?></p><p>
|
208 |
+
<?php
|
209 |
+
$typeoptions = array (
|
210 |
+
"0" => __("User timeline (default)",'rotatingtweets'),
|
211 |
+
"1" => __("Favorites",'rotatingtweets'),
|
212 |
+
"2" => __("Search",'rotatingtweets'),
|
213 |
+
"3" => __("List",'rotatingtweets')
|
214 |
+
);
|
215 |
+
foreach ($typeoptions as $val => $html) {
|
216 |
+
echo "<input type='radio' value='$val' id='".$this->get_field_id('tw_show_type_'.$val)."' name= '".$this->get_field_name('tw_show_type')."'";
|
217 |
+
if($tw_show_type==$val): ?> checked="checked" <?php endif;
|
218 |
+
echo " class='rtw_ad_type'><label for='".$this->get_field_id('tw_show_type_'.$val)."'> $html</label><br />";
|
219 |
+
};
|
220 |
+
?></p>
|
221 |
<p><input id="<?php echo $this->get_field_id('tw_include_rts'); ?>" name="<?php echo $this->get_field_name('tw_include_rts'); ?>" type="checkbox" value="1" <?php if($tw_include_rts==1): ?>checked="checked" <?php endif; ?>/><label for="<?php echo $this->get_field_id('tw_include_rts'); ?>"> <?php _e('Include retweets?','rotatingtweets'); ?></label></p>
|
222 |
<p><input id="<?php echo $this->get_field_id('tw_exclude_replies'); ?>" name="<?php echo $this->get_field_name('tw_exclude_replies'); ?>" type="checkbox" value="1" <?php if($tw_exclude_replies==1): ?>checked="checked" <?php endif; ?>/><label for="<?php echo $this->get_field_id('tw_exclude_replies'); ?>"> <?php _e('Exclude replies?','rotatingtweets'); ?></label></p>
|
223 |
<p><input id="<?php echo $this->get_field_id('tw_links_in_new_window'); ?>" name="<?php echo $this->get_field_name('tw_links_in_new_window'); ?>" type="checkbox" value="1" <?php if($tw_links_in_new_window==1): ?>checked="checked" <?php endif; ?>/><label for="<?php echo $this->get_field_id('tw_links_in_new_window'); ?>"> <?php _e('Open all links in new window or tab?','rotatingtweets'); ?></label></p>
|
296 |
<?php
|
297 |
$tw_br = "<br />";
|
298 |
endforeach; ?></p></div>
|
299 |
+
<div class='rtw_ad_sf'>
|
300 |
<p><?php _e('Show follow button?','rotatingtweets'); ?></p>
|
301 |
<?php
|
302 |
$showfollowoptions = array (
|
314 |
}
|
315 |
# This is an appalling hack to deal with the problem that jQuery gets broken when people hit save - as per http://lists.automattic.com/pipermail/wp-hackers/2011-March/037997.html - but it works!
|
316 |
// echo "<script type='text/javascript' src='".plugins_url('js/rotating_tweet_admin.js', __FILE__)."'></script>";
|
317 |
+
echo "</div>\n<script type='text/javascript'>\n";
|
318 |
$rtw_admin_script_original = file_get_contents(plugin_dir_path(__FILE__).'js/rotating_tweet_admin.js');
|
319 |
+
$rtw_admin_script_final = str_replace(
|
320 |
+
array('.rtw_ad_official','.rtw_ad_type'),
|
321 |
+
array('[name="'.$this->get_field_name('tw_official_format').'"]','[name="'.$this->get_field_name('tw_show_type').'"]'),
|
322 |
+
$rtw_admin_script_original);
|
323 |
echo $rtw_admin_script_final;
|
324 |
echo "\n</script>";
|
325 |
}
|
472 |
'search' => FALSE,
|
473 |
'list' => FALSE,
|
474 |
'get_favorites' => FALSE,
|
475 |
+
'ratelimit' => FALSE,
|
476 |
+
'next' => __('next','rotatingtweets'),
|
477 |
+
'prev' => __('prev','rotatingtweets'),
|
478 |
+
'middot' => ' · ',
|
479 |
+
'np_pos' => 'top'
|
480 |
), $atts ) ;
|
481 |
extract($args);
|
482 |
if(empty($screen_name) && empty($search) && !empty($url)):
|
915 |
endforeach;
|
916 |
# Create an ID that has all the relevant info in - rotation type and speed of rotation
|
917 |
$id = uniqid('rotatingtweets_'.$timeout.'_'.$rotation_type.'_');
|
918 |
+
$result = '';
|
919 |
+
# Put in the 'next / prev' buttons - although not very styled!
|
920 |
+
if(isset($args['show_meta_prev_next']) && $args['show_meta_prev_next']):
|
921 |
+
$nextprev = '<a href="#" class="'.$id.'_rtw_prev rtw_prev">'.wp_kses_post($args['prev']).'</a> '.wp_kses_post($args['middot']).' <a href="#" class="'.$id.'_rtw_next rtw_next">'.wp_kses_post($args['next']).'</a>';
|
922 |
+
if(strtolower($args['np_pos'])=='top'):
|
923 |
+
$result .= '<div class="rotatingtweets_nextprev">'.$nextprev.'</div>';
|
924 |
+
endif;
|
925 |
+
endif;
|
926 |
if(WP_DEBUG):
|
927 |
+
$result .= "\n<div class='rotatingtweets wp_debug rotatingtweets_format_".+intval($args['official_format'])."' id='$id'>";
|
928 |
else:
|
929 |
+
$result .= "\n<div class='rotatingtweets rotatingtweets_format_".+intval($args['official_format'])."' id='$id'>";
|
930 |
endif;
|
931 |
$error = get_option('rotatingtweets_api_error');
|
932 |
if(!empty($error)):
|
1105 |
if(!empty($meta)) $meta .= ' · ';
|
1106 |
$meta .= rotatingtweets_intents($twitter_object,$twitterlocale, 0,$targetvalue);
|
1107 |
endif;
|
1108 |
+
|
1109 |
+
if(isset($args['show_meta_prev_next']) && $args['show_meta_prev_next'] && $args['np_pos']=='tweets'):
|
1110 |
if(!empty($meta)) $meta .= ' · ';
|
1111 |
+
$meta .= $nextprev;
|
1112 |
endif;
|
1113 |
+
|
1114 |
if(!empty($meta)) $result .= "\n\t\t<p class='rtw_meta'>".ucfirst($meta)."</p>";
|
1115 |
break;
|
1116 |
case 1:
|
1127 |
if(isset($retweeter)) {
|
1128 |
$result .= " · ".rotatingtweets_user_intent($retweeter,$twitterlocale,sprintf(__('Retweeted by %s','rotatingtweets'),$retweeter['name']),$targetvalue);
|
1129 |
}
|
1130 |
+
if(isset($args['show_meta_prev_next']) && $args['show_meta_prev_next'] && $args['np_pos']=='tweets'):
|
1131 |
+
$result .= ' · '.$nextprev;
|
1132 |
endif;
|
1133 |
$result .= "\n</div>";
|
1134 |
break;
|
1147 |
$result .= "\n\t\t<div class='rtw_rt_meta'>".rotatingtweets_user_intent($retweeter,$twitterlocale,"<img src='".plugins_url('images/retweet_on.png',__FILE__)."' width='16' height='16' alt='".sprintf(__('Retweeted by %s','rotatingtweets'),$retweeter['name'])."' />".sprintf(__('Retweeted by %s','rotatingtweets'),$retweeter['name']),$targetvalue)."</div>";
|
1148 |
}
|
1149 |
$result .= "\n\t\t<div class='rtw_meta'><span class='rtw_expand' style='display:none;'>".__('Expand','rotatingtweets')."</span><span class='rtw_intents'>".rotatingtweets_intents($twitter_object,$twitterlocale, 2,$targetvalue);
|
1150 |
+
if(isset($args['show_meta_prev_next']) && $args['show_meta_prev_next'] && $args['np_pos']=='tweets'):
|
1151 |
+
$result .= wp_kses_post($args['middot']).$nextprev;
|
1152 |
endif;
|
1153 |
$result .= "</span></div></div></div>";
|
1154 |
break;
|
1166 |
$result .= sprintf(__('from <a href=\'%1$s\' title=\'%2$s\'>%2$s\'s Twitter</a>','rotatingtweets'),'https://twitter.com/intent/user?user_id='.$user['id'],$user['name']).' · ';
|
1167 |
endif;
|
1168 |
$result .= rotatingtweets_timestamp_link($twitter_object,'long',$targetvalue);
|
1169 |
+
if(isset($args['show_meta_prev_next']) && $args['show_meta_prev_next'] && $args['np_pos']=='tweets'):
|
1170 |
+
$result .= ' · '.$nextprev;
|
1171 |
+
endif;
|
1172 |
$result .= "\n</div>";
|
1173 |
break;
|
1174 |
case 5:
|
1175 |
+
# This is an adjusted Rotating Tweets display routine
|
1176 |
$result .= "\n\t\t<p class='rtw_main'><img src='".plugins_url('images/bird_16_black.png', __FILE__)."' alt='Twitter' /> $main_text ";
|
1177 |
$meta = '';
|
1178 |
if($args['show_meta_timestamp']):
|
1190 |
if(!empty($meta)) $meta .= ' · ';
|
1191 |
$meta .= rotatingtweets_intents($twitter_object,$twitterlocale, 0,$targetvalue);
|
1192 |
endif;
|
1193 |
+
if(isset($args['show_meta_prev_next']) && $args['show_meta_prev_next'] && $args['np_pos']=='tweets'):
|
1194 |
+
if(!empty($meta)) $meta .= ' · ';
|
1195 |
+
$meta .= $nextprev;
|
1196 |
+
endif;
|
1197 |
if(!empty($meta)) $result .= "\n\t\t<span class='rtw_meta'>".ucfirst($meta)."</span></p>";
|
1198 |
break;
|
1199 |
}
|
1207 |
endforeach;
|
1208 |
endif;
|
1209 |
$result .= "\n</div>";
|
1210 |
+
if(isset($args['show_meta_prev_next']) && $args['show_meta_prev_next'] && $args['np_pos']=='bottom'):
|
1211 |
+
$result .= '<div class="rotatingtweets_nextprev">'.$nextprev.'</div>';
|
1212 |
+
endif;
|
1213 |
/*
|
1214 |
if($args['show_meta_progress_blobs']):
|
1215 |
$result .= "<div id='".$id."_nav' class='rtw_nav'>";
|
1223 |
$shortenvariables = '';
|
1224 |
if($args['no_show_count']) $shortenvariables = ' data-show-count="false"';
|
1225 |
if($args['no_show_screen_name']) $shortenvariables .= ' data-show-screen-name="false"';
|
1226 |
+
$followUserText = sprintf(__('Follow @%s','rotatingtweets'),remove_accents($args['screen_name']));
|
1227 |
$result .= "\n<div class='rtw_follow follow-button'><a href='http://twitter.com/".$args['screen_name']."' class='twitter-follow-button'{$shortenvariables} title='".$followUserText."' data-lang='{$twitterlocale}'>".$followUserText."</a></div>";
|
1228 |
endif;
|
1229 |
rotatingtweets_enqueue_scripts();
|
1238 |
|
1239 |
function rotatingtweets_enqueue_scripts() {
|
1240 |
wp_enqueue_script( 'jquery' );
|
1241 |
+
# Check for evil plug-ins
|
1242 |
+
if ( ! function_exists( 'is_plugin_active' ) )
|
1243 |
+
require_once( ABSPATH . '/wp-admin/includes/plugin.php' );
|
1244 |
+
// include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
|
1245 |
+
if (is_plugin_active('wsi/wp-splash-image.php')) {
|
1246 |
+
//plugin is activated
|
1247 |
+
$dependence = array('jquery','jquery.tools.front');
|
1248 |
+
} else {
|
1249 |
+
$dependence = array('jquery');
|
1250 |
+
}
|
1251 |
# Get Stylesheet
|
1252 |
$style = get_stylesheet();
|
1253 |
switch ($style):
|
1255 |
case 'zeebizzcard':
|
1256 |
// case 'zeeStyle':
|
1257 |
wp_dequeue_script( 'zee_jquery-cycle');
|
1258 |
+
wp_enqueue_script( 'zee_jquery-cycle', plugins_url('js/jquery.cycle.all.min.js', __FILE__),$dependence,FALSE,FALSE );
|
1259 |
+
$dependence[]='zee_jquery-cycle';
|
1260 |
+
wp_enqueue_script( 'rotating_tweet', plugins_url('js/rotating_tweet.js', __FILE__),$dependence,FALSE,FALSE );
|
1261 |
break;
|
1262 |
default:
|
1263 |
+
wp_enqueue_script( 'jquery-cycle', plugins_url('js/jquery.cycle.all.min.js', __FILE__),$dependence,FALSE,FALSE );
|
1264 |
+
$dependence[]='jquery-cycle';
|
1265 |
wp_enqueue_script( 'rotating_tweet', plugins_url('js/rotating_tweet.js', __FILE__),array('jquery','jquery-cycle'),FALSE,FALSE );
|
1266 |
break;
|
1267 |
endswitch;
|