Rotating Tweets (Twitter widget and shortcode) - Version 1.7.5

Version Description

  • Much faster caching. Compatibility with W3 Total Cache.

=

Download this release

Release Info

Developer mpntod
Plugin Icon wp plugin Rotating Tweets (Twitter widget and shortcode)
Version 1.7.5
Comparing to
See all releases

Code changes from version 1.7.4 to 1.7.5

js/jquery.cycle2.scrollVert.js ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /*! scrollVert transition plugin for Cycle2; version: 20121120 */
2
+ (function($) {
3
+ "use strict";
4
+
5
+ $.fn.cycle.transitions.scrollVert = {
6
+ before: function( opts, curr, next, fwd ) {
7
+ opts.API.stackSlides( opts, curr, next, fwd );
8
+ var height = opts.container.css('overflow','hidden').height();
9
+ opts.cssBefore = { top: fwd ? -height : height, left: 0, opacity: 1, display: 'block' };
10
+ opts.animIn = { top: 0 };
11
+ opts.animOut = { top: fwd ? height : -height };
12
+ }
13
+ };
14
+
15
+
16
+
17
+ })(jQuery);
js/rotating_tweet.min.js CHANGED
@@ -1,4 +1,10 @@
1
- jQuery(document).ready(function(){jQuery(".rotatingtweets").each(function(){var a="#"+this.id,b=a.split("_"),d=b[1],b=b[2];null==b&&(b="scrollUp");var c="auto";jQuery(a).cycle({pause:1,height:c,timeout:d,fx:b});var e=jQuery(a).height();0==e&&(e=0,jQuery(a+" .rotatingtweet").each(function(){var a=jQuery(this).height();a>e&&(e=a)}),c=e+"px",jQuery(a).cycle("destroy"),jQuery(a).cycle({pause:1,height:c,timeout:d,fx:b}));d=a+" .rtw_info";b=a+" .rtw_wide_icon a img";c=a+" .rtw_wide_block";if(0<jQuery(d).length){if(0<
2
- jQuery(b).length){var f=0;jQuery(b).each(function(){newiconsize=jQuery(this).width();newiconsize>f&&(f=newiconsize)});0<f&&jQuery(c).each(function(){jQuery(this).css("padding-left",f+10+"px")})}var g=jQuery(a).width();"undefined"!=typeof jQuery(c).css("padding-left")&&(g-=parseInt(jQuery(c).css("padding-left")));jQuery(d).each(function(){jQuery(this).width(g)});jQuery(a+" .rtw_meta").each(function(){jQuery(this).width(g)})}});jQuery(".rtw_intents a").hover(function(){var a=jQuery(this).find("img").attr("src");
3
- jQuery(this).find("img").attr("src",a.replace(/_hover.png$/,".png"));a=jQuery(this).find("img").attr("src");jQuery(this).find("img").attr("src",a.replace(/.png$/,"_hover.png"))},function(){var a=jQuery(this).find("img").attr("src");jQuery(this).find("img").attr("src",a.replace(/_hover.png/,".png"))});jQuery(".rtw_wide .rtw_intents").hide();jQuery(".rtw_expand").show();jQuery(".rotatingtweets").has(".rtw_wide").hover(function(){jQuery(this).find(".rtw_intents").show()},function(){jQuery(this).find(".rtw_intents").hide()})});
4
- !function(a,b,d){var c=a.getElementsByTagName(b)[0];a.getElementById(d)||(a=a.createElement(b),a.id=d,a.src="//platform.twitter.com/widgets.js",c.parentNode.insertBefore(a,c))}(document,"script","twitter-wjs");
 
 
 
 
 
 
1
+ jQuery(document).ready(function(){jQuery(".rotatingtweets").c(function(){var a="#"+this.id,c=a.split("_"),h="."+this.id,f=c[1],c=c[2],b=jQuery(this).k("wp_debug");if("undefined"==typeof console||"undefined"==typeof console.log)b=!1;null==c&&(c="scrollUp");var p="auto",e=jQuery(a).parent(),k=jQuery(a).parent().parent(),A=Math.min(e.innerWidth()-parseFloat(e.a("padding-left"))-parseFloat(e.a("padding-right")),k.innerWidth()-parseFloat(k.a("padding-left"))-parseFloat(k.a("padding-right"))-parseFloat(e.a("padding-left"))-
2
+ parseFloat(e.a("padding-right"))-parseFloat(e.a("margin-left"))-parseFloat(e.a("margin-right"))),q=A-parseFloat(jQuery(this).a("padding-left"))-parseFloat(jQuery(this).a("padding-right"))-parseFloat(jQuery(this).a("margin-left"))-parseFloat(jQuery(this).a("margin-right"))-parseFloat(jQuery(this).a("border-left"))-parseFloat(jQuery(this).a("border-right")),t=1;null==q&&(t=0);b&&(console.log("============================"),console.log("self_width = "+jQuery(a).innerWidth()),console.log("parent_width = "+
3
+ e.innerWidth()),console.log("grandparent_width = "+k.innerWidth()),console.log("rt_target_container_width = "+A),console.log("rt_target_width = "+q),console.log("rotate_timeout = "+f));jQuery(a).d({pause:1,height:p,timeout:f,e:!0,width:q,j:h+"_rtw_prev",next:h+"_rtw_next",g:c,f:t});var d=jQuery(a).height();b&&console.log("Initial height: "+d);if(1>d){var m=a+" .rotatingtweet",d=0;jQuery(m).c(function(){var a=jQuery(this).height();a>d&&(d=a)});d+=20;p=d+"px";b&&console.log("Resetting height to rt_height_px "+
4
+ p);jQuery(a).d("destroy");jQuery(a).d({pause:1,height:p,timeout:f,width:q,e:!0,f:t,j:h+"_rtw_prev",next:h+"_rtw_next",g:c})}var m=a+" .rtw_info",h=a+" .rtw_wide_icon a img",f=a+" .rtw_wide_block",c=jQuery(m).length,B=a+" .rtw_meta";if(0<c){if(0<jQuery(h).length){b&&(console.log("Adjusting widths for 'Official Twitter Version 2'"),console.log("- Width of Rotating Tweets container: "+jQuery(this).width()),console.log("- Width of the icon container: "+jQuery(h).show().width()));var n=0;jQuery(h).c(function(){newiconsize=
5
+ jQuery(this).width();newiconsize>n&&(n=newiconsize)});b&&console.log("- Width of the icon: "+n);0<n&&jQuery(f).a("padding-left",n+10+"px")}b&&(console.log("Now check for 'padding-left'"),console.log("- leftpadding - text : "+jQuery(f).a("padding-left")+" and value: "+parseFloat(jQuery(f).a("padding-left"))));var g=jQuery(a).width();"undefined"!=typeof jQuery(f).a("padding-left")?(g=g-parseFloat(jQuery(f).a("padding-left"))-1,b&&console.log("- Padding is not undefined")):b&&console.log("- Padding IS undefined - leave width unchanged");
6
+ b&&console.log("- rt_max_width: "+g);jQuery(m).width(g);jQuery(B).width(g)}var u=e.innerWidth(),v=k.innerWidth(),C=u,D=v,w=0,x=0,l=jQuery(a).width(),y=jQuery(a+" .rtw_main").width(),r=jQuery(a+" .rotatingtweet").width(),z=jQuery(a+" .rtw_meta").width();jQuery(window).resize(function(){e=jQuery(a).parent();k=e.parent();C=e.innerWidth();D=k.innerWidth();w=C-u;x=D-v;rt_resize_change=w;0==rt_resize_change&&(rt_resize_change=x);b&&(console.log("Parent change: "+w),console.log("Grandparent change: "+x),
7
+ console.log("Old box width: "+l),console.log("New target width: "+(l+rt_resize_change)),console.log("rt_max_width: "+(l+rt_resize_change)));null==g&&(g=r);if(0!=rt_resize_change){var c=0,f=jQuery(a).height();jQuery(a+" .rotatingtweet").height("auto");jQuery(a+" .rotatingtweet").c(function(){var a=jQuery(this).height();b&&console.log("Old tweet height: "+a);a>c&&(c=a)});b&&(console.log("Old container height: "+f),console.log("Old height: "+c));var h=jQuery(a).height();b&&console.log("Old container height"+
8
+ h);jQuery(m).width(g+rt_resize_change);jQuery(B).width(g+rt_resize_change);jQuery(a+" .rtw_main").width(y+rt_resize_change);jQuery(a+" .rotatingtweet").width(r+rt_resize_change);jQuery(a+" .rtw_meta").width(z+rt_resize_change);jQuery(a).width(l+rt_resize_change);l+=rt_resize_change;y+=rt_resize_change;r+=rt_resize_change;g+=rt_resize_change;z+=rt_resize_change;u=e.innerWidth();v=k.innerWidth();var d=0;jQuery(a+" .rotatingtweet").height("auto");jQuery(a+" .rotatingtweet").c(function(){var a=jQuery(this).height();
9
+ b&&console.log("New tweet height: "+a);a>d&&(d=a)});b&&console.log("New height: "+d);0<d&&jQuery(a).height(f+d-c)}})});jQuery(".rtw_intents a").i(function(){var a=jQuery(this).find("img").b("src");jQuery(this).find("img").b("src",a.replace(/_hover.png$/,".png"));a=jQuery(this).find("img").b("src");jQuery(this).find("img").b("src",a.replace(/.png$/,"_hover.png"))},function(){var a=jQuery(this).find("img").b("src");jQuery(this).find("img").b("src",a.replace(/_hover.png/,".png"))});jQuery(".rtw_wide .rtw_intents").h();
10
+ jQuery(".rtw_expand").show();jQuery(".rotatingtweets").has(".rtw_wide").i(function(){jQuery(this).find(".rtw_intents").show()},function(){jQuery(this).find(".rtw_intents").h()})});var s,E=document.getElementsByTagName("script")[0];document.getElementById("twitter-wjs")||(s=document.createElement("script"),s.id="twitter-wjs",s.src="https://platform.twitter.com/widgets.js",E.parentNode.insertBefore(s,E));!0;
js/rotatingtweets_v2.js CHANGED
@@ -55,6 +55,16 @@ $.fn.cycle2.transitions.toss = {
55
  }
56
  };
57
 
 
 
 
 
 
 
 
 
 
 
58
  })(jQuery);
59
  /*
60
  Script to cycle the rotating tweets
@@ -62,6 +72,7 @@ $.fn.cycle2.transitions.toss = {
62
  jQuery(document).ready(function() {
63
  // Not at all sure we need this
64
  jQuery('.rotatingtweets').cycle2();
 
65
  // Script to show mouseover effects when going over the Twitter intents
66
  jQuery('.rtw_intents a').hover(function() {
67
  var rtw_src = jQuery(this).find('img').attr('src');
55
  }
56
  };
57
 
58
+ $.fn.cycle2.transitions.scrollLeftGap = {
59
+ before: function( opts, curr, next, fwd ) {
60
+ opts.API.stackSlides( opts, curr, next, fwd );
61
+ var width = opts.container.css('overflow','hidden').width();
62
+ opts.cssBefore = { width: width, left : width+100, top: 0, opacity: 1, display: 'block' };
63
+ opts.animIn = { left: 0 };
64
+ opts.animOut = { left : -width-100,width:width };
65
+ }
66
+ };
67
+
68
  })(jQuery);
69
  /*
70
  Script to cycle the rotating tweets
72
  jQuery(document).ready(function() {
73
  // Not at all sure we need this
74
  jQuery('.rotatingtweets').cycle2();
75
+ // alert(opts.container.width);
76
  // Script to show mouseover effects when going over the Twitter intents
77
  jQuery('.rtw_intents a').hover(function() {
78
  var rtw_src = jQuery(this).find('img').attr('src');
languages/rotatingtweets-pt_BR.mo CHANGED
Binary file
languages/rotatingtweets-pt_BR.po CHANGED
@@ -4,288 +4,290 @@ 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-10-12 19:57:13+00:00\n"
8
- "PO-Revision-Date: 2013-10-12 23:12-0000\n"
9
  "Last-Translator: Martin Tod <martin@martintod.org.uk>\n"
10
  "Language-Team: Wilmerson Felipe <will.phelipe@gmail.com>\n"
11
  "Language: pt_BR\n"
12
  "MIME-Version: 1.0\n"
13
  "Content-Type: text/plain; charset=UTF-8\n"
14
  "Content-Transfer-Encoding: 8bit\n"
15
- "X-Generator: Poedit 1.5.7\n"
16
- "Plural-Forms: nplurals=2; plural=(n != 1);\n"
17
  "X-Poedit-SourceCharset: UTF-8\n"
18
 
19
  #: rotatingtweets.php:41
20
  msgid "A widget to show tweets for a particular user in rotation."
21
  msgstr "Um widget para mostrar os tweets de um determinado usuário em rotação."
22
 
23
- #: rotatingtweets.php:192
24
  msgid "Title:"
25
  msgstr "Título:"
26
 
27
- #: rotatingtweets.php:204
28
  msgid "Twitter name:"
29
  msgstr "Nome do Twitter:"
30
 
31
- #: rotatingtweets.php:205
32
  msgid "Search:"
33
  msgstr "Pesquisar:"
34
 
35
- #: rotatingtweets.php:206
36
  msgid "List Tag:"
37
  msgstr "Lista de Tag:"
38
 
39
- #: rotatingtweets.php:207
40
  msgid "Type of Tweets?"
41
  msgstr "Tipos de Tweets?"
42
 
43
- #: rotatingtweets.php:210
44
  msgid "User timeline (default)"
45
  msgstr "Linha de tempo do usuário (padrão)"
46
 
47
- #: rotatingtweets.php:211
48
  msgid "Favorites"
49
  msgstr "Favoritos"
50
 
51
- #: rotatingtweets.php:212
52
  msgid "Search"
53
  msgstr "Pesquisar"
54
 
55
- #: rotatingtweets.php:213
56
  msgid "List"
57
  msgstr "Lista"
58
 
59
- #: rotatingtweets.php:221
60
  msgid "Include retweets?"
61
  msgstr "Incluir retuites?"
62
 
63
- #: rotatingtweets.php:222
64
  msgid "Exclude replies?"
65
  msgstr "Excluir respostas?"
66
 
67
- #: rotatingtweets.php:223
 
 
 
 
68
  msgid "Open all links in new window or tab?"
69
  msgstr "Abrir todos os links em uma nova janela ou aba?"
70
 
71
- #: rotatingtweets.php:224
72
  msgid "How many tweets?"
73
  msgstr "Quantos tweets?"
74
 
75
- #: rotatingtweets.php:232
76
  msgid "Speed"
77
  msgstr "Velocidade"
78
 
79
- #: rotatingtweets.php:235
80
  msgid "Faster (3 seconds)"
81
  msgstr "Rápido (3 segundos)"
82
 
83
- #: rotatingtweets.php:236
84
  msgid "Normal (4 seconds)"
85
  msgstr "Normal (4 segundos)"
86
 
87
- #: rotatingtweets.php:237
88
  msgid "Slower (5 seconds)"
89
  msgstr "Lento (5 segundos)"
90
 
91
- #: rotatingtweets.php:238
92
  msgid "Slowest (6 seconds)"
93
  msgstr "Mais lento (6 segundos)"
94
 
95
- #: rotatingtweets.php:239
96
  msgid "Ultra slow (20 seconds)"
97
  msgstr "Ultra lento (20 segundos)"
98
 
99
- #: rotatingtweets.php:253
100
  msgid "Type of rotation"
101
  msgstr "Tipo de rotação"
102
 
103
- #: rotatingtweets.php:262
104
  msgid "Display format"
105
  msgstr "Formato de exibição"
106
 
107
- #: rotatingtweets.php:265
108
  msgid "Original rotating tweets layout"
109
  msgstr "Layout original de rotação dos tweets"
110
 
111
- #: rotatingtweets.php:266
112
- msgid ""
113
- "<a target='_blank' href='https://dev.twitter.com/terms/display-"
114
- "guidelines'>Official Twitter guidelines</a> (regular)"
115
  msgstr ""
116
- "<a target='_blank' href='https://dev.twitter.com/terms/display-"
117
- "guidelines'>Diretrizes Oficiais do Twitter</a> (regular)"
118
 
119
- #: rotatingtweets.php:267
120
- msgid ""
121
- "<a target='_blank' href='https://dev.twitter.com/terms/display-"
122
- "guidelines'>Official Twitter guidelines</a> (wide)"
123
  msgstr ""
124
- "<a target='_blank' href='https://dev.twitter.com/terms/display-"
125
- "guidelines'>Diretrizes Oficiais do Twitter</a> (grande)"
126
 
127
- #: rotatingtweets.php:277
 
 
 
 
128
  msgid "Show tweet details?"
129
  msgstr "Mostrar detalhes do tweet?"
130
 
131
- #: rotatingtweets.php:280
132
  msgid "Time/date of tweet"
133
  msgstr "Data/hora do tweet"
134
 
135
- #: rotatingtweets.php:281
136
  msgid "Name of person tweeting"
137
  msgstr "Nome da pessoa twitando"
138
 
139
- #: rotatingtweets.php:282
140
  msgid "Source of tweet"
141
  msgstr "Fonte do tweet"
142
 
143
- #: rotatingtweets.php:283
144
  msgid "'reply &middot; retweet &middot; favorite' links"
145
  msgstr "'responder &middot; retuitar &middot; favorito' links"
146
 
147
- #: rotatingtweets.php:294
148
  msgid "Show follow button?"
149
  msgstr "Mostrar botão seguir?"
150
 
151
- #: rotatingtweets.php:297
152
  msgctxt "Show follow button?"
153
  msgid "None"
154
  msgstr "Não"
155
 
156
- #: rotatingtweets.php:298
157
  msgid "Show name and number of followers"
158
  msgstr "Mostrar o nome e número de seguidores"
159
 
160
- #: rotatingtweets.php:299
161
  msgid "Show name only"
162
  msgstr "Mostrar o nome somente"
163
 
164
- #: rotatingtweets.php:300
165
  msgid "Show followers only"
166
  msgstr "Mostrar apenas seguidores"
167
 
168
- #: rotatingtweets.php:301
169
  msgid "Show button only"
170
  msgstr "Mostrar botão somente"
171
 
172
- #: rotatingtweets.php:329
173
  msgid "less than a second ago"
174
  msgstr "menos de um segundo atrás"
175
 
176
- #: rotatingtweets.php:330
177
  msgid "%d seconds ago"
178
  msgstr "%d segundos atrás"
179
 
180
- #: rotatingtweets.php:331
181
  msgid "about a minute ago"
182
  msgid_plural "about %d minutes ago"
183
  msgstr[0] "cerca de um minuto atrás"
184
  msgstr[1] "cerca %d minutos atrás"
185
 
186
- #: rotatingtweets.php:332 rotatingtweets.php:334
187
  msgid "about an hour ago"
188
  msgid_plural "about %d hours ago"
189
  msgstr[0] "cerca de uma hora atrás"
190
  msgstr[1] "cerca %d horas atrás"
191
 
192
- #: rotatingtweets.php:333
193
  msgid "yesterday"
194
  msgstr "ontem"
195
 
196
- #: rotatingtweets.php:335
197
  msgid "about a day ago"
198
  msgid_plural "about %d days ago"
199
  msgstr[0] "cerca de um dia atrás"
200
  msgstr[1] "cerca %d dias atrás"
201
 
202
- #: rotatingtweets.php:336
203
  msgid "last week"
204
  msgstr "semana passada"
205
 
206
- #: rotatingtweets.php:337
207
  msgid "about a week ago"
208
  msgid_plural "about %d weeks ago"
209
  msgstr[0] "cerca de uma semana atrás"
210
  msgstr[1] "cerca %d semanas atrás"
211
 
212
- #: rotatingtweets.php:338
213
  msgid "last month"
214
  msgstr "mês passado"
215
 
216
- #: rotatingtweets.php:339
217
  msgid "about a month ago"
218
  msgid_plural "about %d months ago"
219
  msgstr[0] "cerca de um mês atrás"
220
  msgstr[1] "cerca %d meses atraz"
221
 
222
- #: rotatingtweets.php:340
223
  msgid "last year"
224
  msgstr "ano passado"
225
 
226
- #: rotatingtweets.php:341
227
  msgid "about a year ago"
228
  msgid_plural "about %d years ago"
229
  msgstr[0] "cerca de um ano atrás"
230
  msgstr[1] "cerca %d anos atrás"
231
 
232
- #: rotatingtweets.php:348
233
  msgctxt "abbreviated timestamp in seconds"
234
  msgid "%ds"
235
  msgstr "%ds"
236
 
237
- #: rotatingtweets.php:349
238
  msgctxt "abbreviated timestamp in minutes"
239
  msgid "%dm"
240
  msgstr "%dm"
241
 
242
- #: rotatingtweets.php:350
243
  msgctxt "abbreviated timestamp in hours"
244
  msgid "%dh"
245
  msgstr "%dh"
246
 
247
- #: rotatingtweets.php:351
248
  msgctxt ""
249
  "short date format as per http://uk.php.net/manual/en/function.date.php"
250
  msgid "j M"
251
  msgstr "j M"
252
 
253
- #: rotatingtweets.php:352
254
  msgctxt ""
255
  "slightly longer date format as per http://uk.php.net/manual/en/function.date."
256
  "php"
257
  msgid "j M Y"
258
  msgstr "j M Y"
259
 
260
- #: rotatingtweets.php:358
261
  msgid "reply"
262
  msgstr "responder"
263
 
264
- #: rotatingtweets.php:359
265
  msgid "retweet"
266
  msgstr "retuitar"
267
 
268
- #: rotatingtweets.php:360
269
  msgid "favorite"
270
  msgstr "favorito"
271
 
272
- #: rotatingtweets.php:401 rotatingtweets.php:1593
273
  msgid "Follow @%s"
274
  msgstr "Seguir @%s"
275
 
276
- #: rotatingtweets.php:402 rotatingtweets.php:1456
277
  msgid "Twitter"
278
  msgstr "Twitter"
279
 
280
- #: rotatingtweets.php:478
281
  msgid "next"
282
  msgstr "próximo"
283
 
284
- #: rotatingtweets.php:479
285
  msgid "prev"
286
  msgstr "anterior"
287
 
288
- #: rotatingtweets.php:515
289
  msgid ""
290
  "Please update <a href=\"%2$s\">your settings for Rotating Tweets</a>. The "
291
  "Twitter API <a href=\"%1$s\">changed on June 11, 2013</a> and new settings "
@@ -295,7 +297,7 @@ msgstr ""
295
  "a>. O Twitter API <a href=\"%1$s\">mudou em junho 2013</a> e novas "
296
  "configurações são necessário para Rotating Tweets continuar funcionando."
297
 
298
- #: rotatingtweets.php:520
299
  msgid ""
300
  "Please update <a href=\"%1$s\">your settings for Rotating Tweets</a>. "
301
  "Currently Rotating Tweets cannot authenticate you with Twitter using the "
@@ -305,15 +307,15 @@ msgstr ""
305
  "a>. Atualmente Rotating Tweets não pode autenticá-lo com o Twitter usando o "
306
  "detalhes que você deu."
307
 
308
- #: rotatingtweets.php:528 rotatingtweets.php:534
309
  msgid "Rotating Tweets: Twitter API settings"
310
  msgstr "Rotating Tweets: configurações API do Twitter"
311
 
312
- #: rotatingtweets.php:536
313
  msgid "You do not have sufficient permissions to access this page."
314
  msgstr "Você não tem permissões suficientes para acessar esta página."
315
 
316
- #: rotatingtweets.php:538
317
  msgid ""
318
  "<p>Twitter <a href=\"%s\">has changed</a> the way that they allow people to "
319
  "use the information in their tweets.</p><p>You need to take the following "
@@ -325,7 +327,7 @@ msgstr ""
325
  "p><p>Por favor, siga os seguintes passos para se certificar de que a rotação "
326
  "tweets continua funcionando:</p>"
327
 
328
- #: rotatingtweets.php:539
329
  msgid ""
330
  "<h3>Step 1:</h3><p>Go to the <a href=\"%s\">My applications page</a> on the "
331
  "Twitter website to set up your website as a new Twitter 'application'. You "
@@ -336,7 +338,7 @@ msgstr ""
336
  "Você pode precisar fazer o login usando seu nome de usuário e senha no "
337
  "Twitter.</p>"
338
 
339
- #: rotatingtweets.php:540
340
  msgid ""
341
  "<h3>Step 2:</h3><p>If you don't already have a suitable 'application' that "
342
  "you can use for your website, set one up on the <a href=\"%s\">Create an "
@@ -350,7 +352,7 @@ msgstr ""
350
  "melhor usar o nome, descrição e URL do site onde você pretende usar Rotating "
351
  "Tweets.</p><p>Você não precisa de uma URL de retorno de chamada.</p>"
352
 
353
- #: rotatingtweets.php:541
354
  msgid ""
355
  "<h3>Step 3:</h3><p>After clicking <strong>Create your Twitter application</"
356
  "strong>, on the following page, click on <strong>Create my access token</"
@@ -360,7 +362,7 @@ msgstr ""
360
  "strong>, na página seguinte, clique em <strong>Create my access token</"
361
  "strong>.</p>"
362
 
363
- #: rotatingtweets.php:542
364
  msgid ""
365
  "<h3>Step 4:</h3><p>Copy the <strong>Consumer key</strong>, <strong>Consumer "
366
  "secret</strong>, <strong>Access token</strong> and <strong>Access token "
@@ -372,11 +374,11 @@ msgstr ""
372
  "secret</strong> a partir de sua página de aplicativo do Twitter para as "
373
  "configurações abaixo.</p>"
374
 
375
- #: rotatingtweets.php:543
376
  msgid "<h3>Step 5:</h3><p>Click on <strong>Save Changes</strong>."
377
  msgstr "<h3>Passo 5:</h3>Clique em <strong>Salvar alterações</strong>."
378
 
379
- #: rotatingtweets.php:544
380
  msgid ""
381
  "<h3>If there are any problems:</h3><p>If there are any problems, you should "
382
  "get an error message from Twitter displayed as a \"rotating tweet\" which "
@@ -386,7 +388,7 @@ msgstr ""
386
  "do Twitter exibindo uma mensagem \"rotating tweet\" que deve ajudar a "
387
  "diagnosticar o problema.</p>"
388
 
389
- #: rotatingtweets.php:546
390
  msgid ""
391
  "If you are getting problems with \"rate limiting\", try changing the first "
392
  "connection setting below to increase the time that Rotating Tweets waits "
@@ -396,7 +398,7 @@ msgstr ""
396
  "a primeira conexão, configuração abaixo para aumentar o tempo que o Rotating "
397
  "Tweets espera antes de tentar obter novos dados do Twitter."
398
 
399
- #: rotatingtweets.php:548
400
  msgid ""
401
  "If you are getting time-out problems, try changing the second connection "
402
  "setting below to increase how long Rotating Tweets waits when connecting to "
@@ -406,7 +408,7 @@ msgstr ""
406
  "segunda conexão, configuração abaixo para aumentar o tempo de espera na "
407
  "conexão com o Twitter antes do tempo limite."
408
 
409
- #: rotatingtweets.php:550
410
  msgid ""
411
  "If the error message references SSL, try changing the \"Verify SSL "
412
  "connection to Twitter\" setting below to \"No\"."
@@ -414,11 +416,11 @@ msgstr ""
414
  "Se as referências de mensagens de erro SSL, tente alterar a \"Verificar "
415
  "Conexão SSL do Twitter\" abaixo de \"Não\"."
416
 
417
- #: rotatingtweets.php:552
418
  msgid "<h3>Getting information from more than one Twitter account</h3>"
419
  msgstr "<h3>Obtendo informações de mais de uma conta no Twitter</h3>"
420
 
421
- #: rotatingtweets.php:553
422
  msgid ""
423
  "<p>Even though you are only entering one set of Twitter API data, Rotating "
424
  "Tweets will continue to support multiple widgets and shortcodes pulling from "
@@ -428,42 +430,42 @@ msgstr ""
428
  "Rotating Tweets continuará a apoiar vários widgets e códigos de acesso "
429
  "puxando a partir de uma variedade de diferentes contas no Twitter.</p>"
430
 
431
- #: rotatingtweets.php:557
432
  msgid "Save Changes"
433
  msgstr "Salvar alterações"
434
 
435
- #: rotatingtweets.php:565
436
  msgid "Twitter API Settings"
437
  msgstr "Configurações 'API Twitter'"
438
 
439
- #: rotatingtweets.php:566
440
  msgid "Twitter API Consumer Key"
441
  msgstr "Twitter API Consumer Key"
442
 
443
- #: rotatingtweets.php:567
444
  msgid "Twitter API Consumer Secret"
445
  msgstr "Twitter API Consumer Secret"
446
 
447
- #: rotatingtweets.php:568
448
  msgid "Twitter API Access Token"
449
  msgstr "Twitter API Access Token"
450
 
451
- #: rotatingtweets.php:569
452
  msgid "Twitter API Access Token Secret"
453
  msgstr "Twitter API Access Token Secret"
454
 
455
- #: rotatingtweets.php:571
456
  msgid "Connection Settings"
457
  msgstr "Configurações de conexão"
458
 
459
- #: rotatingtweets.php:572
460
  msgid ""
461
  "How often should Rotating Tweets try to get the latest tweets from Twitter?"
462
  msgstr ""
463
  "Quantas vezes o Rotating Tweets deve tentar obter os últimos tweets do "
464
  "Twitter?"
465
 
466
- #: rotatingtweets.php:573
467
  msgid ""
468
  "When connecting to Twitter, how long should Rotating Tweets wait before "
469
  "timing out?"
@@ -471,119 +473,119 @@ msgstr ""
471
  "Ao se conectar ao Twitter, quanto tempo Rotating Tweets deve esperar antes "
472
  "do tempo limite?"
473
 
474
- #: rotatingtweets.php:574
475
  msgid "Verify SSL connection to Twitter"
476
  msgstr "Verifique a conexão SSL para o Twitter"
477
 
478
- #: rotatingtweets.php:576
479
  msgid "JavaScript Settings"
480
  msgstr "Configurações de JavaScript"
481
 
482
- #: rotatingtweets.php:577
483
  msgid "Version of JQuery Cycle"
484
  msgstr "Ciclo de Versão do JQuery"
485
 
486
- #: rotatingtweets.php:578
487
  msgid "Where to load Rotating Tweets JavaScript"
488
  msgstr "Carregar Rotating Tweets para JavaScript"
489
 
490
- #: rotatingtweets.php:599
491
  msgctxt "Verify SSL connection to Twitter"
492
  msgid "Yes"
493
  msgstr "Sim"
494
 
495
- #: rotatingtweets.php:600
496
  msgctxt "Verify SSL connection to Twitter"
497
  msgid "No"
498
  msgstr "Não"
499
 
500
- #: rotatingtweets.php:616
501
  msgctxt "Connection timeout"
502
  msgid "1 second"
503
  msgstr "1 segundo"
504
 
505
- #: rotatingtweets.php:617
506
  msgctxt "Connection timeout"
507
  msgid "3 seconds (default)"
508
  msgstr "3 segundos (padrão)"
509
 
510
- #: rotatingtweets.php:618
511
  msgctxt "Connection timeout"
512
  msgid "5 seconds"
513
  msgstr "5 segundos"
514
 
515
- #: rotatingtweets.php:619
516
  msgctxt "Connection timeout"
517
  msgid "7 seconds"
518
  msgstr "7 segundos"
519
 
520
- #: rotatingtweets.php:620
521
  msgctxt "Connection timeout"
522
  msgid "20 seconds"
523
  msgstr "20 segundos"
524
 
525
- #: rotatingtweets.php:637
526
  msgctxt "Cache Delay"
527
  msgid "1 minute"
528
  msgstr "1 minuto"
529
 
530
- #: rotatingtweets.php:638
531
  msgctxt "Cache Delay"
532
  msgid "2 minutes (default)"
533
  msgstr "2 minutos (padrão)"
534
 
535
- #: rotatingtweets.php:639
536
  msgctxt "Cache Delay"
537
  msgid "5 minutes"
538
  msgstr "5 minutos"
539
 
540
- #: rotatingtweets.php:640
541
  msgctxt "Cache Delay"
542
  msgid "1 hour"
543
  msgstr "1 hora"
544
 
545
- #: rotatingtweets.php:641
546
  msgctxt "Cache Delay"
547
  msgid "24 hours"
548
  msgstr "24 horas"
549
 
550
- #: rotatingtweets.php:658
551
  msgctxt "Version of JQuery Cycle"
552
  msgid "Version 1 (default)"
553
  msgstr "Versão 1 (padrão)"
554
 
555
- #: rotatingtweets.php:659
556
  msgctxt "Version of JQuery Cycle"
557
  msgid "Version 2 (beta)"
558
  msgstr "Versão 2 (beta)"
559
 
560
- #: rotatingtweets.php:676
561
  msgctxt "Location of JavaScript"
562
  msgid "Load in header (default)"
563
  msgstr "Coloque no cabeçalho (padrão)"
564
 
565
- #: rotatingtweets.php:677
566
  msgctxt "Location of JavaScript"
567
  msgid "Load in footer"
568
  msgstr "Carregue no rodapé"
569
 
570
- #: rotatingtweets.php:712
571
  msgid "Error: Twitter API Consumer Key not correctly formatted."
572
  msgstr "Erro: Twitter API Consumer Key não formatada corretamente."
573
 
574
- #: rotatingtweets.php:719
575
  msgid "Error: Twitter API Consumer Secret not correctly formatted."
576
  msgstr "Erro: Twitter API Consumer Secret não formatada corretamente."
577
 
578
- #: rotatingtweets.php:726
579
  msgid "Error: Twitter API Access Token not correctly formatted."
580
  msgstr "Erro: Twitter API Access Token não formatada corretamente."
581
 
582
- #: rotatingtweets.php:733
583
  msgid "Error: Twitter API Access Token Secret not correctly formatted."
584
  msgstr "Erro: Twitter API Access Token Secret não formatada corretamente."
585
 
586
- #: rotatingtweets.php:773
587
  msgid ""
588
  "Error message received from Twitter: %1$s. <a href=\"%2$s\">Please check "
589
  "your API key, secret, token and secret token on the Twitter website</a>."
@@ -591,7 +593,7 @@ msgstr ""
591
  "Mensagem de erro recebida do Twitter: %1$s. <a href=\"%2$s\">Por favor, "
592
  "verifique seus API key, secret, token e secret token no site do Twitter</a>."
593
 
594
- #: rotatingtweets.php:775
595
  msgid ""
596
  "Error message received from Wordpress: %1$s. Please check your connection "
597
  "settings."
@@ -599,44 +601,44 @@ msgstr ""
599
  "Error message received from Wordpress: %1$s. Por favor, verifique suas "
600
  "configurações de conexão."
601
 
602
- #: rotatingtweets.php:1227
603
  msgid "Problem retrieving data from Twitter"
604
  msgstr "Problema ao recuperar dados do Twitter"
605
 
606
- #: rotatingtweets.php:1229
607
  msgid "%3$s error code: %1$s - %2$s"
608
  msgstr "%3$s. Código de Erro: %1$s - %2$s"
609
 
610
- #: rotatingtweets.php:1235
611
  msgid "This website is currently <a href='%s'>rate-limited by Twitter</a>."
612
  msgstr ""
613
  "Este website <a href='%s'> está atualmente com taxa limitada pelo Twitter</"
614
  "a>."
615
 
616
- #: rotatingtweets.php:1237
617
  msgid "Next attempt to get data will be in %d minute"
618
  msgid_plural "Next attempt to get data will be in %d minutes"
619
  msgstr[0] "Próxima tentativa de obter dados estarão em %d minuto"
620
  msgstr[1] "Próximas tentativas de obter dados estarão em %d minutos"
621
 
622
- #: rotatingtweets.php:1238
623
  msgid "Next attempt to get data will be in less than a minute"
624
  msgstr "Próxima tentativa de obter dados estarão em menos de um minuto"
625
 
626
- #: rotatingtweets.php:1243
627
  msgid "Please check your <a href='%s'>Rotating Tweets settings</a>."
628
  msgstr ""
629
  "Por favor, verifique as configurações do seu <a href='%s'>Rotating Tweets</"
630
  "a>."
631
 
632
- #: rotatingtweets.php:1246
633
  msgid ""
634
  "Please check the Twitter screen name or list slug in the widget or shortcode."
635
  msgstr ""
636
  "Por favor verifique o nome da tela Twitter ou lista de slug no widget ou "
637
  "shortcode."
638
 
639
- #: rotatingtweets.php:1251 rotatingtweets.php:1257
640
  msgid ""
641
  "Please check the Twitter name in the widget or shortcode, <a "
642
  "href='%2$s'>Rotating Tweets settings</a> or the <a href='%1$s'>Twitter API "
@@ -646,67 +648,74 @@ msgstr ""
646
  "href='%2$s'>Configuração Rotating Tweets</a> ou o <a href='%1$s'>estado do "
647
  "API do Twitter</a>."
648
 
649
- #: rotatingtweets.php:1254
650
  msgid "Please check your PHP and server settings."
651
  msgstr "Por favor, verifique o seu PHP e configurações do servidor."
652
 
653
- #: rotatingtweets.php:1263
654
  msgid "No Tweet results for search <a href=\"%2$s\"><strong>%1$s</strong></a>"
655
  msgstr ""
656
  "Nenhum resultados para pesquisa de Tweet <a href=\"%2$s\"><strong>%1$s</"
657
  "strong></a>"
658
 
659
- #: rotatingtweets.php:1435 rotatingtweets.php:1505 rotatingtweets.php:1522
660
- #: rotatingtweets.php:1547
 
661
  msgid "from <a href='%1$s' title='%2$s'>%2$s's Twitter</a>"
662
- msgstr "a partir de <a href='%1$s' title='%2$s'>%2$s's Twitter</a>"
 
 
663
 
664
- #: rotatingtweets.php:1439 rotatingtweets.php:1526 rotatingtweets.php:1551
665
  msgid "via %s"
666
  msgstr "via %s"
667
 
668
- #: rotatingtweets.php:1465 rotatingtweets.php:1486
669
  msgid "Retweeted by %s"
670
  msgstr "reenviado por %s"
671
 
672
- #: rotatingtweets.php:1488
673
  msgid "Expand"
674
  msgstr "Expandir"
675
 
676
- #: rotatingtweets.php:1567
677
  msgid "Problem retrieving data from Twitter."
678
  msgstr "Problema ao recuperar dados do Twitter."
679
 
680
- #: rotatingtweets.php:1569
681
  msgid "Please check the comments on this page's HTML to understand more."
682
  msgstr ""
683
  "Por favor, verifique os comentários sobre HTML desta página para entender "
684
  "mais."
685
 
686
- #: rotatingtweets.php:1612 rotatingtweets.php:1625
687
  msgid "Scroll Up"
688
  msgstr "Deslizar para cima"
689
 
690
- #: rotatingtweets.php:1613 rotatingtweets.php:1626
691
  msgid "Scroll Down"
692
  msgstr "Deslizar para baixo"
693
 
694
- #: rotatingtweets.php:1614 rotatingtweets.php:1627
695
  msgid "Scroll Left"
696
  msgstr "Deslizar para a esquerda"
697
 
698
- #: rotatingtweets.php:1615 rotatingtweets.php:1628
699
  msgid "Scroll Right"
700
  msgstr "Deslizar para a direita"
701
 
702
- #: rotatingtweets.php:1616 rotatingtweets.php:1629
703
  msgid "Fade"
704
  msgstr "Esmaecer"
705
 
706
- #: rotatingtweets.php:1617
707
  msgid "Carousel"
708
  msgstr "Carrossel"
709
 
 
 
 
 
710
  #. Plugin Name of the plugin/theme
711
  msgid "Rotating Tweets (Twitter widget & shortcode)"
712
  msgstr "Rotating Tweets (Twitter widget & shortcode)"
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: 2014-10-14 10:41:54+00:00\n"
8
+ "PO-Revision-Date: 2014-10-14 12:16-0000\n"
9
  "Last-Translator: Martin Tod <martin@martintod.org.uk>\n"
10
  "Language-Team: Wilmerson Felipe <will.phelipe@gmail.com>\n"
11
  "Language: pt_BR\n"
12
  "MIME-Version: 1.0\n"
13
  "Content-Type: text/plain; charset=UTF-8\n"
14
  "Content-Transfer-Encoding: 8bit\n"
15
+ "X-Generator: Poedit 1.6.9\n"
16
+ "Plural-Forms: nplurals=2; plural=(n > 1);\n"
17
  "X-Poedit-SourceCharset: UTF-8\n"
18
 
19
  #: rotatingtweets.php:41
20
  msgid "A widget to show tweets for a particular user in rotation."
21
  msgstr "Um widget para mostrar os tweets de um determinado usuário em rotação."
22
 
23
+ #: rotatingtweets.php:209
24
  msgid "Title:"
25
  msgstr "Título:"
26
 
27
+ #: rotatingtweets.php:221
28
  msgid "Twitter name:"
29
  msgstr "Nome do Twitter:"
30
 
31
+ #: rotatingtweets.php:222
32
  msgid "Search:"
33
  msgstr "Pesquisar:"
34
 
35
+ #: rotatingtweets.php:223
36
  msgid "List Tag:"
37
  msgstr "Lista de Tag:"
38
 
39
+ #: rotatingtweets.php:224
40
  msgid "Type of Tweets?"
41
  msgstr "Tipos de Tweets?"
42
 
43
+ #: rotatingtweets.php:227
44
  msgid "User timeline (default)"
45
  msgstr "Linha de tempo do usuário (padrão)"
46
 
47
+ #: rotatingtweets.php:228
48
  msgid "Favorites"
49
  msgstr "Favoritos"
50
 
51
+ #: rotatingtweets.php:229
52
  msgid "Search"
53
  msgstr "Pesquisar"
54
 
55
+ #: rotatingtweets.php:230
56
  msgid "List"
57
  msgstr "Lista"
58
 
59
+ #: rotatingtweets.php:238
60
  msgid "Include retweets?"
61
  msgstr "Incluir retuites?"
62
 
63
+ #: rotatingtweets.php:239
64
  msgid "Exclude replies?"
65
  msgstr "Excluir respostas?"
66
 
67
+ #: rotatingtweets.php:240
68
+ msgid "Shorten links?"
69
+ msgstr ""
70
+
71
+ #: rotatingtweets.php:241
72
  msgid "Open all links in new window or tab?"
73
  msgstr "Abrir todos os links em uma nova janela ou aba?"
74
 
75
+ #: rotatingtweets.php:242
76
  msgid "How many tweets?"
77
  msgstr "Quantos tweets?"
78
 
79
+ #: rotatingtweets.php:250
80
  msgid "Speed"
81
  msgstr "Velocidade"
82
 
83
+ #: rotatingtweets.php:253
84
  msgid "Faster (3 seconds)"
85
  msgstr "Rápido (3 segundos)"
86
 
87
+ #: rotatingtweets.php:254
88
  msgid "Normal (4 seconds)"
89
  msgstr "Normal (4 segundos)"
90
 
91
+ #: rotatingtweets.php:255
92
  msgid "Slower (5 seconds)"
93
  msgstr "Lento (5 segundos)"
94
 
95
+ #: rotatingtweets.php:256
96
  msgid "Slowest (6 seconds)"
97
  msgstr "Mais lento (6 segundos)"
98
 
99
+ #: rotatingtweets.php:257
100
  msgid "Ultra slow (20 seconds)"
101
  msgstr "Ultra lento (20 segundos)"
102
 
103
+ #: rotatingtweets.php:271
104
  msgid "Type of rotation"
105
  msgstr "Tipo de rotação"
106
 
107
+ #: rotatingtweets.php:280
108
  msgid "Display format"
109
  msgstr "Formato de exibição"
110
 
111
+ #: rotatingtweets.php:283
112
  msgid "Original rotating tweets layout"
113
  msgstr "Layout original de rotação dos tweets"
114
 
115
+ #: rotatingtweets.php:284
116
+ msgid "<a target='_blank' href='%s'>Official Twitter guidelines</a> (regular)"
 
 
117
  msgstr ""
118
+ "<a target='_blank' href='%s'>Diretrizes Oficiais do Twitter</a> (regular)"
 
119
 
120
+ #: rotatingtweets.php:285
121
+ msgid "<a target='_blank' href='%s'>Official Twitter guidelines</a> (wide)"
 
 
122
  msgstr ""
123
+ "<a target='_blank' href='%s'>Diretrizes Oficiais do Twitter</a> (grande)"
 
124
 
125
+ #: rotatingtweets.php:288
126
+ msgid "Custom display layout"
127
+ msgstr ""
128
+
129
+ #: rotatingtweets.php:298
130
  msgid "Show tweet details?"
131
  msgstr "Mostrar detalhes do tweet?"
132
 
133
+ #: rotatingtweets.php:301
134
  msgid "Time/date of tweet"
135
  msgstr "Data/hora do tweet"
136
 
137
+ #: rotatingtweets.php:302
138
  msgid "Name of person tweeting"
139
  msgstr "Nome da pessoa twitando"
140
 
141
+ #: rotatingtweets.php:303
142
  msgid "Source of tweet"
143
  msgstr "Fonte do tweet"
144
 
145
+ #: rotatingtweets.php:304
146
  msgid "'reply &middot; retweet &middot; favorite' links"
147
  msgstr "'responder &middot; retuitar &middot; favorito' links"
148
 
149
+ #: rotatingtweets.php:315
150
  msgid "Show follow button?"
151
  msgstr "Mostrar botão seguir?"
152
 
153
+ #: rotatingtweets.php:318
154
  msgctxt "Show follow button?"
155
  msgid "None"
156
  msgstr "Não"
157
 
158
+ #: rotatingtweets.php:319
159
  msgid "Show name and number of followers"
160
  msgstr "Mostrar o nome e número de seguidores"
161
 
162
+ #: rotatingtweets.php:320
163
  msgid "Show name only"
164
  msgstr "Mostrar o nome somente"
165
 
166
+ #: rotatingtweets.php:321
167
  msgid "Show followers only"
168
  msgstr "Mostrar apenas seguidores"
169
 
170
+ #: rotatingtweets.php:322
171
  msgid "Show button only"
172
  msgstr "Mostrar botão somente"
173
 
174
+ #: rotatingtweets.php:350
175
  msgid "less than a second ago"
176
  msgstr "menos de um segundo atrás"
177
 
178
+ #: rotatingtweets.php:351
179
  msgid "%d seconds ago"
180
  msgstr "%d segundos atrás"
181
 
182
+ #: rotatingtweets.php:352
183
  msgid "about a minute ago"
184
  msgid_plural "about %d minutes ago"
185
  msgstr[0] "cerca de um minuto atrás"
186
  msgstr[1] "cerca %d minutos atrás"
187
 
188
+ #: rotatingtweets.php:353 rotatingtweets.php:355
189
  msgid "about an hour ago"
190
  msgid_plural "about %d hours ago"
191
  msgstr[0] "cerca de uma hora atrás"
192
  msgstr[1] "cerca %d horas atrás"
193
 
194
+ #: rotatingtweets.php:354
195
  msgid "yesterday"
196
  msgstr "ontem"
197
 
198
+ #: rotatingtweets.php:356
199
  msgid "about a day ago"
200
  msgid_plural "about %d days ago"
201
  msgstr[0] "cerca de um dia atrás"
202
  msgstr[1] "cerca %d dias atrás"
203
 
204
+ #: rotatingtweets.php:357
205
  msgid "last week"
206
  msgstr "semana passada"
207
 
208
+ #: rotatingtweets.php:358
209
  msgid "about a week ago"
210
  msgid_plural "about %d weeks ago"
211
  msgstr[0] "cerca de uma semana atrás"
212
  msgstr[1] "cerca %d semanas atrás"
213
 
214
+ #: rotatingtweets.php:359
215
  msgid "last month"
216
  msgstr "mês passado"
217
 
218
+ #: rotatingtweets.php:360
219
  msgid "about a month ago"
220
  msgid_plural "about %d months ago"
221
  msgstr[0] "cerca de um mês atrás"
222
  msgstr[1] "cerca %d meses atraz"
223
 
224
+ #: rotatingtweets.php:361
225
  msgid "last year"
226
  msgstr "ano passado"
227
 
228
+ #: rotatingtweets.php:362
229
  msgid "about a year ago"
230
  msgid_plural "about %d years ago"
231
  msgstr[0] "cerca de um ano atrás"
232
  msgstr[1] "cerca %d anos atrás"
233
 
234
+ #: rotatingtweets.php:369
235
  msgctxt "abbreviated timestamp in seconds"
236
  msgid "%ds"
237
  msgstr "%ds"
238
 
239
+ #: rotatingtweets.php:370
240
  msgctxt "abbreviated timestamp in minutes"
241
  msgid "%dm"
242
  msgstr "%dm"
243
 
244
+ #: rotatingtweets.php:371
245
  msgctxt "abbreviated timestamp in hours"
246
  msgid "%dh"
247
  msgstr "%dh"
248
 
249
+ #: rotatingtweets.php:372
250
  msgctxt ""
251
  "short date format as per http://uk.php.net/manual/en/function.date.php"
252
  msgid "j M"
253
  msgstr "j M"
254
 
255
+ #: rotatingtweets.php:373
256
  msgctxt ""
257
  "slightly longer date format as per http://uk.php.net/manual/en/function.date."
258
  "php"
259
  msgid "j M Y"
260
  msgstr "j M Y"
261
 
262
+ #: rotatingtweets.php:379
263
  msgid "reply"
264
  msgstr "responder"
265
 
266
+ #: rotatingtweets.php:380
267
  msgid "retweet"
268
  msgstr "retuitar"
269
 
270
+ #: rotatingtweets.php:381
271
  msgid "favorite"
272
  msgstr "favorito"
273
 
274
+ #: rotatingtweets.php:419 rotatingtweets.php:1882
275
  msgid "Follow @%s"
276
  msgstr "Seguir @%s"
277
 
278
+ #: rotatingtweets.php:420 rotatingtweets.php:1706
279
  msgid "Twitter"
280
  msgstr "Twitter"
281
 
282
+ #: rotatingtweets.php:496
283
  msgid "next"
284
  msgstr "próximo"
285
 
286
+ #: rotatingtweets.php:497
287
  msgid "prev"
288
  msgstr "anterior"
289
 
290
+ #: rotatingtweets.php:555
291
  msgid ""
292
  "Please update <a href=\"%2$s\">your settings for Rotating Tweets</a>. The "
293
  "Twitter API <a href=\"%1$s\">changed on June 11, 2013</a> and new settings "
297
  "a>. O Twitter API <a href=\"%1$s\">mudou em junho 2013</a> e novas "
298
  "configurações são necessário para Rotating Tweets continuar funcionando."
299
 
300
+ #: rotatingtweets.php:560
301
  msgid ""
302
  "Please update <a href=\"%1$s\">your settings for Rotating Tweets</a>. "
303
  "Currently Rotating Tweets cannot authenticate you with Twitter using the "
307
  "a>. Atualmente Rotating Tweets não pode autenticá-lo com o Twitter usando o "
308
  "detalhes que você deu."
309
 
310
+ #: rotatingtweets.php:568 rotatingtweets.php:574
311
  msgid "Rotating Tweets: Twitter API settings"
312
  msgstr "Rotating Tweets: configurações API do Twitter"
313
 
314
+ #: rotatingtweets.php:576
315
  msgid "You do not have sufficient permissions to access this page."
316
  msgstr "Você não tem permissões suficientes para acessar esta página."
317
 
318
+ #: rotatingtweets.php:578
319
  msgid ""
320
  "<p>Twitter <a href=\"%s\">has changed</a> the way that they allow people to "
321
  "use the information in their tweets.</p><p>You need to take the following "
327
  "p><p>Por favor, siga os seguintes passos para se certificar de que a rotação "
328
  "tweets continua funcionando:</p>"
329
 
330
+ #: rotatingtweets.php:579
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 "
338
  "Você pode precisar fazer o login usando seu nome de usuário e senha no "
339
  "Twitter.</p>"
340
 
341
+ #: rotatingtweets.php:580
342
  msgid ""
343
  "<h3>Step 2:</h3><p>If you don't already have a suitable 'application' that "
344
  "you can use for your website, set one up on the <a href=\"%s\">Create an "
352
  "melhor usar o nome, descrição e URL do site onde você pretende usar Rotating "
353
  "Tweets.</p><p>Você não precisa de uma URL de retorno de chamada.</p>"
354
 
355
+ #: rotatingtweets.php:581
356
  msgid ""
357
  "<h3>Step 3:</h3><p>After clicking <strong>Create your Twitter application</"
358
  "strong>, on the following page, click on <strong>Create my access token</"
362
  "strong>, na página seguinte, clique em <strong>Create my access token</"
363
  "strong>.</p>"
364
 
365
+ #: rotatingtweets.php:582
366
  msgid ""
367
  "<h3>Step 4:</h3><p>Copy the <strong>Consumer key</strong>, <strong>Consumer "
368
  "secret</strong>, <strong>Access token</strong> and <strong>Access token "
374
  "secret</strong> a partir de sua página de aplicativo do Twitter para as "
375
  "configurações abaixo.</p>"
376
 
377
+ #: rotatingtweets.php:583
378
  msgid "<h3>Step 5:</h3><p>Click on <strong>Save Changes</strong>."
379
  msgstr "<h3>Passo 5:</h3>Clique em <strong>Salvar alterações</strong>."
380
 
381
+ #: rotatingtweets.php:584
382
  msgid ""
383
  "<h3>If there are any problems:</h3><p>If there are any problems, you should "
384
  "get an error message from Twitter displayed as a \"rotating tweet\" which "
388
  "do Twitter exibindo uma mensagem \"rotating tweet\" que deve ajudar a "
389
  "diagnosticar o problema.</p>"
390
 
391
+ #: rotatingtweets.php:586
392
  msgid ""
393
  "If you are getting problems with \"rate limiting\", try changing the first "
394
  "connection setting below to increase the time that Rotating Tweets waits "
398
  "a primeira conexão, configuração abaixo para aumentar o tempo que o Rotating "
399
  "Tweets espera antes de tentar obter novos dados do Twitter."
400
 
401
+ #: rotatingtweets.php:588
402
  msgid ""
403
  "If you are getting time-out problems, try changing the second connection "
404
  "setting below to increase how long Rotating Tweets waits when connecting to "
408
  "segunda conexão, configuração abaixo para aumentar o tempo de espera na "
409
  "conexão com o Twitter antes do tempo limite."
410
 
411
+ #: rotatingtweets.php:590
412
  msgid ""
413
  "If the error message references SSL, try changing the \"Verify SSL "
414
  "connection to Twitter\" setting below to \"No\"."
416
  "Se as referências de mensagens de erro SSL, tente alterar a \"Verificar "
417
  "Conexão SSL do Twitter\" abaixo de \"Não\"."
418
 
419
+ #: rotatingtweets.php:592
420
  msgid "<h3>Getting information from more than one Twitter account</h3>"
421
  msgstr "<h3>Obtendo informações de mais de uma conta no Twitter</h3>"
422
 
423
+ #: rotatingtweets.php:593
424
  msgid ""
425
  "<p>Even though you are only entering one set of Twitter API data, Rotating "
426
  "Tweets will continue to support multiple widgets and shortcodes pulling from "
430
  "Rotating Tweets continuará a apoiar vários widgets e códigos de acesso "
431
  "puxando a partir de uma variedade de diferentes contas no Twitter.</p>"
432
 
433
+ #: rotatingtweets.php:597
434
  msgid "Save Changes"
435
  msgstr "Salvar alterações"
436
 
437
+ #: rotatingtweets.php:605
438
  msgid "Twitter API Settings"
439
  msgstr "Configurações 'API Twitter'"
440
 
441
+ #: rotatingtweets.php:606
442
  msgid "Twitter API Consumer Key"
443
  msgstr "Twitter API Consumer Key"
444
 
445
+ #: rotatingtweets.php:607
446
  msgid "Twitter API Consumer Secret"
447
  msgstr "Twitter API Consumer Secret"
448
 
449
+ #: rotatingtweets.php:608
450
  msgid "Twitter API Access Token"
451
  msgstr "Twitter API Access Token"
452
 
453
+ #: rotatingtweets.php:609
454
  msgid "Twitter API Access Token Secret"
455
  msgstr "Twitter API Access Token Secret"
456
 
457
+ #: rotatingtweets.php:611
458
  msgid "Connection Settings"
459
  msgstr "Configurações de conexão"
460
 
461
+ #: rotatingtweets.php:612
462
  msgid ""
463
  "How often should Rotating Tweets try to get the latest tweets from Twitter?"
464
  msgstr ""
465
  "Quantas vezes o Rotating Tweets deve tentar obter os últimos tweets do "
466
  "Twitter?"
467
 
468
+ #: rotatingtweets.php:613
469
  msgid ""
470
  "When connecting to Twitter, how long should Rotating Tweets wait before "
471
  "timing out?"
473
  "Ao se conectar ao Twitter, quanto tempo Rotating Tweets deve esperar antes "
474
  "do tempo limite?"
475
 
476
+ #: rotatingtweets.php:614
477
  msgid "Verify SSL connection to Twitter"
478
  msgstr "Verifique a conexão SSL para o Twitter"
479
 
480
+ #: rotatingtweets.php:616
481
  msgid "JavaScript Settings"
482
  msgstr "Configurações de JavaScript"
483
 
484
+ #: rotatingtweets.php:617
485
  msgid "Version of JQuery Cycle"
486
  msgstr "Ciclo de Versão do JQuery"
487
 
488
+ #: rotatingtweets.php:618
489
  msgid "Where to load Rotating Tweets JavaScript"
490
  msgstr "Carregar Rotating Tweets para JavaScript"
491
 
492
+ #: rotatingtweets.php:639
493
  msgctxt "Verify SSL connection to Twitter"
494
  msgid "Yes"
495
  msgstr "Sim"
496
 
497
+ #: rotatingtweets.php:640
498
  msgctxt "Verify SSL connection to Twitter"
499
  msgid "No"
500
  msgstr "Não"
501
 
502
+ #: rotatingtweets.php:656
503
  msgctxt "Connection timeout"
504
  msgid "1 second"
505
  msgstr "1 segundo"
506
 
507
+ #: rotatingtweets.php:657
508
  msgctxt "Connection timeout"
509
  msgid "3 seconds (default)"
510
  msgstr "3 segundos (padrão)"
511
 
512
+ #: rotatingtweets.php:658
513
  msgctxt "Connection timeout"
514
  msgid "5 seconds"
515
  msgstr "5 segundos"
516
 
517
+ #: rotatingtweets.php:659
518
  msgctxt "Connection timeout"
519
  msgid "7 seconds"
520
  msgstr "7 segundos"
521
 
522
+ #: rotatingtweets.php:660
523
  msgctxt "Connection timeout"
524
  msgid "20 seconds"
525
  msgstr "20 segundos"
526
 
527
+ #: rotatingtweets.php:677
528
  msgctxt "Cache Delay"
529
  msgid "1 minute"
530
  msgstr "1 minuto"
531
 
532
+ #: rotatingtweets.php:678
533
  msgctxt "Cache Delay"
534
  msgid "2 minutes (default)"
535
  msgstr "2 minutos (padrão)"
536
 
537
+ #: rotatingtweets.php:679
538
  msgctxt "Cache Delay"
539
  msgid "5 minutes"
540
  msgstr "5 minutos"
541
 
542
+ #: rotatingtweets.php:680
543
  msgctxt "Cache Delay"
544
  msgid "1 hour"
545
  msgstr "1 hora"
546
 
547
+ #: rotatingtweets.php:681
548
  msgctxt "Cache Delay"
549
  msgid "24 hours"
550
  msgstr "24 horas"
551
 
552
+ #: rotatingtweets.php:698
553
  msgctxt "Version of JQuery Cycle"
554
  msgid "Version 1 (default)"
555
  msgstr "Versão 1 (padrão)"
556
 
557
+ #: rotatingtweets.php:699
558
  msgctxt "Version of JQuery Cycle"
559
  msgid "Version 2 (beta)"
560
  msgstr "Versão 2 (beta)"
561
 
562
+ #: rotatingtweets.php:716
563
  msgctxt "Location of JavaScript"
564
  msgid "Load in header (default)"
565
  msgstr "Coloque no cabeçalho (padrão)"
566
 
567
+ #: rotatingtweets.php:717
568
  msgctxt "Location of JavaScript"
569
  msgid "Load in footer"
570
  msgstr "Carregue no rodapé"
571
 
572
+ #: rotatingtweets.php:752
573
  msgid "Error: Twitter API Consumer Key not correctly formatted."
574
  msgstr "Erro: Twitter API Consumer Key não formatada corretamente."
575
 
576
+ #: rotatingtweets.php:759
577
  msgid "Error: Twitter API Consumer Secret not correctly formatted."
578
  msgstr "Erro: Twitter API Consumer Secret não formatada corretamente."
579
 
580
+ #: rotatingtweets.php:766
581
  msgid "Error: Twitter API Access Token not correctly formatted."
582
  msgstr "Erro: Twitter API Access Token não formatada corretamente."
583
 
584
+ #: rotatingtweets.php:773
585
  msgid "Error: Twitter API Access Token Secret not correctly formatted."
586
  msgstr "Erro: Twitter API Access Token Secret não formatada corretamente."
587
 
588
+ #: rotatingtweets.php:813
589
  msgid ""
590
  "Error message received from Twitter: %1$s. <a href=\"%2$s\">Please check "
591
  "your API key, secret, token and secret token on the Twitter website</a>."
593
  "Mensagem de erro recebida do Twitter: %1$s. <a href=\"%2$s\">Por favor, "
594
  "verifique seus API key, secret, token e secret token no site do Twitter</a>."
595
 
596
+ #: rotatingtweets.php:815
597
  msgid ""
598
  "Error message received from Wordpress: %1$s. Please check your connection "
599
  "settings."
601
  "Error message received from Wordpress: %1$s. Por favor, verifique suas "
602
  "configurações de conexão."
603
 
604
+ #: rotatingtweets.php:1411
605
  msgid "Problem retrieving data from Twitter"
606
  msgstr "Problema ao recuperar dados do Twitter"
607
 
608
+ #: rotatingtweets.php:1413
609
  msgid "%3$s error code: %1$s - %2$s"
610
  msgstr "%3$s. Código de Erro: %1$s - %2$s"
611
 
612
+ #: rotatingtweets.php:1419
613
  msgid "This website is currently <a href='%s'>rate-limited by Twitter</a>."
614
  msgstr ""
615
  "Este website <a href='%s'> está atualmente com taxa limitada pelo Twitter</"
616
  "a>."
617
 
618
+ #: rotatingtweets.php:1423
619
  msgid "Next attempt to get data will be in %d minute"
620
  msgid_plural "Next attempt to get data will be in %d minutes"
621
  msgstr[0] "Próxima tentativa de obter dados estarão em %d minuto"
622
  msgstr[1] "Próximas tentativas de obter dados estarão em %d minutos"
623
 
624
+ #: rotatingtweets.php:1424
625
  msgid "Next attempt to get data will be in less than a minute"
626
  msgstr "Próxima tentativa de obter dados estarão em menos de um minuto"
627
 
628
+ #: rotatingtweets.php:1429
629
  msgid "Please check your <a href='%s'>Rotating Tweets settings</a>."
630
  msgstr ""
631
  "Por favor, verifique as configurações do seu <a href='%s'>Rotating Tweets</"
632
  "a>."
633
 
634
+ #: rotatingtweets.php:1432
635
  msgid ""
636
  "Please check the Twitter screen name or list slug in the widget or shortcode."
637
  msgstr ""
638
  "Por favor verifique o nome da tela Twitter ou lista de slug no widget ou "
639
  "shortcode."
640
 
641
+ #: rotatingtweets.php:1437 rotatingtweets.php:1443
642
  msgid ""
643
  "Please check the Twitter name in the widget or shortcode, <a "
644
  "href='%2$s'>Rotating Tweets settings</a> or the <a href='%1$s'>Twitter API "
648
  "href='%2$s'>Configuração Rotating Tweets</a> ou o <a href='%1$s'>estado do "
649
  "API do Twitter</a>."
650
 
651
+ #: rotatingtweets.php:1440
652
  msgid "Please check your PHP and server settings."
653
  msgstr "Por favor, verifique o seu PHP e configurações do servidor."
654
 
655
+ #: rotatingtweets.php:1449
656
  msgid "No Tweet results for search <a href=\"%2$s\"><strong>%1$s</strong></a>"
657
  msgstr ""
658
  "Nenhum resultados para pesquisa de Tweet <a href=\"%2$s\"><strong>%1$s</"
659
  "strong></a>"
660
 
661
+ #: rotatingtweets.php:1685 rotatingtweets.php:1782 rotatingtweets.php:1803
662
+ #: rotatingtweets.php:1833
663
+ #, fuzzy
664
  msgid "from <a href='%1$s' title='%2$s'>%2$s's Twitter</a>"
665
+ msgid_plural "from <a href='%1$s' title='%2$s'>%2$s' Twitter</a>"
666
+ msgstr[0] "a partir de <a href='%1$s' title='%2$s'>%2$s's Twitter</a>"
667
+ msgstr[1] "a partir de <a href='%1$s' title='%2$s'>%2$s's Twitter</a>"
668
 
669
+ #: rotatingtweets.php:1689 rotatingtweets.php:1807 rotatingtweets.php:1837
670
  msgid "via %s"
671
  msgstr "via %s"
672
 
673
+ #: rotatingtweets.php:1722 rotatingtweets.php:1749
674
  msgid "Retweeted by %s"
675
  msgstr "reenviado por %s"
676
 
677
+ #: rotatingtweets.php:1753
678
  msgid "Expand"
679
  msgstr "Expandir"
680
 
681
+ #: rotatingtweets.php:1853
682
  msgid "Problem retrieving data from Twitter."
683
  msgstr "Problema ao recuperar dados do Twitter."
684
 
685
+ #: rotatingtweets.php:1855
686
  msgid "Please check the comments on this page's HTML to understand more."
687
  msgstr ""
688
  "Por favor, verifique os comentários sobre HTML desta página para entender "
689
  "mais."
690
 
691
+ #: rotatingtweets.php:1952 rotatingtweets.php:1966
692
  msgid "Scroll Up"
693
  msgstr "Deslizar para cima"
694
 
695
+ #: rotatingtweets.php:1953 rotatingtweets.php:1967
696
  msgid "Scroll Down"
697
  msgstr "Deslizar para baixo"
698
 
699
+ #: rotatingtweets.php:1954 rotatingtweets.php:1968
700
  msgid "Scroll Left"
701
  msgstr "Deslizar para a esquerda"
702
 
703
+ #: rotatingtweets.php:1955 rotatingtweets.php:1969
704
  msgid "Scroll Right"
705
  msgstr "Deslizar para a direita"
706
 
707
+ #: rotatingtweets.php:1956 rotatingtweets.php:1970
708
  msgid "Fade"
709
  msgstr "Esmaecer"
710
 
711
+ #: rotatingtweets.php:1957
712
  msgid "Carousel"
713
  msgstr "Carrossel"
714
 
715
+ #: rotatingtweets.php:1958
716
+ msgid "Scroll Left (with gap)"
717
+ msgstr "Deslizar para a esquerda (com gap)"
718
+
719
  #. Plugin Name of the plugin/theme
720
  msgid "Rotating Tweets (Twitter widget & shortcode)"
721
  msgstr "Rotating Tweets (Twitter widget & shortcode)"
languages/rotatingtweets.pot CHANGED
@@ -1,14 +1,14 @@
1
- # Copyright (C) 2013 Rotating Tweets (Twitter widget & shortcode)
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.6.2\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/rotatingtweets\n"
7
- "POT-Creation-Date: 2013-10-12 19:57:13+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
11
- "PO-Revision-Date: 2013-MO-DA HO:MI+ZONE\n"
12
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
  "Language-Team: LANGUAGE <LL@li.org>\n"
14
 
@@ -16,290 +16,294 @@ msgstr ""
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:253
96
  msgid "Type of rotation"
97
  msgstr ""
98
 
99
- #: rotatingtweets.php:262
100
  msgid "Display format"
101
  msgstr ""
102
 
103
- #: rotatingtweets.php:265
104
  msgid "Original rotating tweets layout"
105
  msgstr ""
106
 
107
- #: rotatingtweets.php:266
108
- msgid ""
109
- "<a target='_blank' href='https://dev.twitter.com/terms/display-"
110
- "guidelines'>Official Twitter guidelines</a> (regular)"
111
  msgstr ""
112
 
113
- #: rotatingtweets.php:267
114
- msgid ""
115
- "<a target='_blank' href='https://dev.twitter.com/terms/display-"
116
- "guidelines'>Official Twitter guidelines</a> (wide)"
 
 
117
  msgstr ""
118
 
119
- #: rotatingtweets.php:277
120
  msgid "Show tweet details?"
121
  msgstr ""
122
 
123
- #: rotatingtweets.php:280
124
  msgid "Time/date of tweet"
125
  msgstr ""
126
 
127
- #: rotatingtweets.php:281
128
  msgid "Name of person tweeting"
129
  msgstr ""
130
 
131
- #: rotatingtweets.php:282
132
  msgid "Source of tweet"
133
  msgstr ""
134
 
135
- #: rotatingtweets.php:283
136
  msgid "'reply &middot; retweet &middot; favorite' links"
137
  msgstr ""
138
 
139
- #: rotatingtweets.php:294
140
  msgid "Show follow button?"
141
  msgstr ""
142
 
143
- #: rotatingtweets.php:297
144
  msgctxt "Show follow button?"
145
  msgid "None"
146
  msgstr ""
147
 
148
- #: rotatingtweets.php:298
149
  msgid "Show name and number of followers"
150
  msgstr ""
151
 
152
- #: rotatingtweets.php:299
153
  msgid "Show name only"
154
  msgstr ""
155
 
156
- #: rotatingtweets.php:300
157
  msgid "Show followers only"
158
  msgstr ""
159
 
160
- #: rotatingtweets.php:301
161
  msgid "Show button only"
162
  msgstr ""
163
 
164
- #: rotatingtweets.php:329
165
  msgid "less than a second ago"
166
  msgstr ""
167
 
168
- #: rotatingtweets.php:330
169
  msgid "%d seconds ago"
170
  msgstr ""
171
 
172
- #: rotatingtweets.php:331
173
  msgid "about a minute ago"
174
  msgid_plural "about %d minutes ago"
175
  msgstr[0] ""
176
  msgstr[1] ""
177
 
178
- #: rotatingtweets.php:332 rotatingtweets.php:334
179
  msgid "about an hour ago"
180
  msgid_plural "about %d hours ago"
181
  msgstr[0] ""
182
  msgstr[1] ""
183
 
184
- #: rotatingtweets.php:333
185
  msgid "yesterday"
186
  msgstr ""
187
 
188
- #: rotatingtweets.php:335
189
  msgid "about a day ago"
190
  msgid_plural "about %d days ago"
191
  msgstr[0] ""
192
  msgstr[1] ""
193
 
194
- #: rotatingtweets.php:336
195
  msgid "last week"
196
  msgstr ""
197
 
198
- #: rotatingtweets.php:337
199
  msgid "about a week ago"
200
  msgid_plural "about %d weeks ago"
201
  msgstr[0] ""
202
  msgstr[1] ""
203
 
204
- #: rotatingtweets.php:338
205
  msgid "last month"
206
  msgstr ""
207
 
208
- #: rotatingtweets.php:339
209
  msgid "about a month ago"
210
  msgid_plural "about %d months ago"
211
  msgstr[0] ""
212
  msgstr[1] ""
213
 
214
- #: rotatingtweets.php:340
215
  msgid "last year"
216
  msgstr ""
217
 
218
- #: rotatingtweets.php:341
219
  msgid "about a year ago"
220
  msgid_plural "about %d years ago"
221
  msgstr[0] ""
222
  msgstr[1] ""
223
 
224
- #: rotatingtweets.php:348
225
  msgctxt "abbreviated timestamp in seconds"
226
  msgid "%ds"
227
  msgstr ""
228
 
229
- #: rotatingtweets.php:349
230
  msgctxt "abbreviated timestamp in minutes"
231
  msgid "%dm"
232
  msgstr ""
233
 
234
- #: rotatingtweets.php:350
235
  msgctxt "abbreviated timestamp in hours"
236
  msgid "%dh"
237
  msgstr ""
238
 
239
- #: rotatingtweets.php:351
240
  msgctxt ""
241
  "short date format as per http://uk.php.net/manual/en/function.date.php"
242
  msgid "j M"
243
  msgstr ""
244
 
245
- #: rotatingtweets.php:352
246
  msgctxt ""
247
  "slightly longer date format as per http://uk.php.net/manual/en/function.date."
248
  "php"
249
  msgid "j M Y"
250
  msgstr ""
251
 
252
- #: rotatingtweets.php:358
253
  msgid "reply"
254
  msgstr ""
255
 
256
- #: rotatingtweets.php:359
257
  msgid "retweet"
258
  msgstr ""
259
 
260
- #: rotatingtweets.php:360
261
  msgid "favorite"
262
  msgstr ""
263
 
264
- #: rotatingtweets.php:401 rotatingtweets.php:1593
265
  msgid "Follow @%s"
266
  msgstr ""
267
 
268
- #: rotatingtweets.php:402 rotatingtweets.php:1456
269
  msgid "Twitter"
270
  msgstr ""
271
 
272
- #: rotatingtweets.php:478
273
  msgid "next"
274
  msgstr ""
275
 
276
- #: rotatingtweets.php:479
277
  msgid "prev"
278
  msgstr ""
279
 
280
- #: rotatingtweets.php:515
281
  msgid ""
282
  "Please update <a href=\"%2$s\">your settings for Rotating Tweets</a>. The "
283
  "Twitter API <a href=\"%1$s\">changed on June 11, 2013</a> and new settings "
284
  "are needed for Rotating Tweets to continue working."
285
  msgstr ""
286
 
287
- #: rotatingtweets.php:520
288
  msgid ""
289
  "Please update <a href=\"%1$s\">your settings for Rotating Tweets</a>. "
290
  "Currently Rotating Tweets cannot authenticate you with Twitter using the "
291
  "details you have given."
292
  msgstr ""
293
 
294
- #: rotatingtweets.php:528 rotatingtweets.php:534
295
  msgid "Rotating Tweets: Twitter API settings"
296
  msgstr ""
297
 
298
- #: rotatingtweets.php:536
299
  msgid "You do not have sufficient permissions to access this page."
300
  msgstr ""
301
 
302
- #: rotatingtweets.php:538
303
  msgid ""
304
  "<p>Twitter <a href=\"%s\">has changed</a> the way that they allow people to "
305
  "use the information in their tweets.</p><p>You need to take the following "
@@ -307,14 +311,14 @@ msgid ""
307
  "from Twitter:</p>"
308
  msgstr ""
309
 
310
- #: rotatingtweets.php:539
311
  msgid ""
312
  "<h3>Step 1:</h3><p>Go to the <a href=\"%s\">My applications page</a> on the "
313
  "Twitter website to set up your website as a new Twitter 'application'. You "
314
  "may need to log-in using your Twitter user name and password.</p>"
315
  msgstr ""
316
 
317
- #: rotatingtweets.php:540
318
  msgid ""
319
  "<h3>Step 2:</h3><p>If you don't already have a suitable 'application' that "
320
  "you can use for your website, set one up on the <a href=\"%s\">Create an "
@@ -323,14 +327,14 @@ msgid ""
323
  "p><p>You don't need a Callback URL.</p>"
324
  msgstr ""
325
 
326
- #: rotatingtweets.php:541
327
  msgid ""
328
  "<h3>Step 3:</h3><p>After clicking <strong>Create your Twitter application</"
329
  "strong>, on the following page, click on <strong>Create my access token</"
330
  "strong>.</p>"
331
  msgstr ""
332
 
333
- #: rotatingtweets.php:542
334
  msgid ""
335
  "<h3>Step 4:</h3><p>Copy the <strong>Consumer key</strong>, <strong>Consumer "
336
  "secret</strong>, <strong>Access token</strong> and <strong>Access token "
@@ -338,306 +342,312 @@ msgid ""
338
  "p>"
339
  msgstr ""
340
 
341
- #: rotatingtweets.php:543
342
  msgid "<h3>Step 5:</h3><p>Click on <strong>Save Changes</strong>."
343
  msgstr ""
344
 
345
- #: rotatingtweets.php:544
346
  msgid ""
347
  "<h3>If there are any problems:</h3><p>If there are any problems, you should "
348
  "get an error message from Twitter displayed as a \"rotating tweet\" which "
349
  "should help diagnose the problem.</p>"
350
  msgstr ""
351
 
352
- #: rotatingtweets.php:546
353
  msgid ""
354
  "If you are getting problems with \"rate limiting\", try changing the first "
355
  "connection setting below to increase the time that Rotating Tweets waits "
356
  "before trying to get new data from Twitter."
357
  msgstr ""
358
 
359
- #: rotatingtweets.php:548
360
  msgid ""
361
  "If you are getting time-out problems, try changing the second connection "
362
  "setting below to increase how long Rotating Tweets waits when connecting to "
363
  "Twitter before timing out."
364
  msgstr ""
365
 
366
- #: rotatingtweets.php:550
367
  msgid ""
368
  "If the error message references SSL, try changing the \"Verify SSL "
369
  "connection to Twitter\" setting below to \"No\"."
370
  msgstr ""
371
 
372
- #: rotatingtweets.php:552
373
  msgid "<h3>Getting information from more than one Twitter account</h3>"
374
  msgstr ""
375
 
376
- #: rotatingtweets.php:553
377
  msgid ""
378
  "<p>Even though you are only entering one set of Twitter API data, Rotating "
379
  "Tweets will continue to support multiple widgets and shortcodes pulling from "
380
  "a variety of different Twitter accounts.</p>"
381
  msgstr ""
382
 
383
- #: rotatingtweets.php:557
384
  msgid "Save Changes"
385
  msgstr ""
386
 
387
- #: rotatingtweets.php:565
388
  msgid "Twitter API Settings"
389
  msgstr ""
390
 
391
- #: rotatingtweets.php:566
392
  msgid "Twitter API Consumer Key"
393
  msgstr ""
394
 
395
- #: rotatingtweets.php:567
396
  msgid "Twitter API Consumer Secret"
397
  msgstr ""
398
 
399
- #: rotatingtweets.php:568
400
  msgid "Twitter API Access Token"
401
  msgstr ""
402
 
403
- #: rotatingtweets.php:569
404
  msgid "Twitter API Access Token Secret"
405
  msgstr ""
406
 
407
- #: rotatingtweets.php:571
408
  msgid "Connection Settings"
409
  msgstr ""
410
 
411
- #: rotatingtweets.php:572
412
  msgid ""
413
  "How often should Rotating Tweets try to get the latest tweets from Twitter?"
414
  msgstr ""
415
 
416
- #: rotatingtweets.php:573
417
  msgid ""
418
  "When connecting to Twitter, how long should Rotating Tweets wait before "
419
  "timing out?"
420
  msgstr ""
421
 
422
- #: rotatingtweets.php:574
423
  msgid "Verify SSL connection to Twitter"
424
  msgstr ""
425
 
426
- #: rotatingtweets.php:576
427
  msgid "JavaScript Settings"
428
  msgstr ""
429
 
430
- #: rotatingtweets.php:577
431
  msgid "Version of JQuery Cycle"
432
  msgstr ""
433
 
434
- #: rotatingtweets.php:578
435
  msgid "Where to load Rotating Tweets JavaScript"
436
  msgstr ""
437
 
438
- #: rotatingtweets.php:599
439
  msgctxt "Verify SSL connection to Twitter"
440
  msgid "Yes"
441
  msgstr ""
442
 
443
- #: rotatingtweets.php:600
444
  msgctxt "Verify SSL connection to Twitter"
445
  msgid "No"
446
  msgstr ""
447
 
448
- #: rotatingtweets.php:616
449
  msgctxt "Connection timeout"
450
  msgid "1 second"
451
  msgstr ""
452
 
453
- #: rotatingtweets.php:617
454
  msgctxt "Connection timeout"
455
  msgid "3 seconds (default)"
456
  msgstr ""
457
 
458
- #: rotatingtweets.php:618
459
  msgctxt "Connection timeout"
460
  msgid "5 seconds"
461
  msgstr ""
462
 
463
- #: rotatingtweets.php:619
464
  msgctxt "Connection timeout"
465
  msgid "7 seconds"
466
  msgstr ""
467
 
468
- #: rotatingtweets.php:620
469
  msgctxt "Connection timeout"
470
  msgid "20 seconds"
471
  msgstr ""
472
 
473
- #: rotatingtweets.php:637
474
  msgctxt "Cache Delay"
475
  msgid "1 minute"
476
  msgstr ""
477
 
478
- #: rotatingtweets.php:638
479
  msgctxt "Cache Delay"
480
  msgid "2 minutes (default)"
481
  msgstr ""
482
 
483
- #: rotatingtweets.php:639
484
  msgctxt "Cache Delay"
485
  msgid "5 minutes"
486
  msgstr ""
487
 
488
- #: rotatingtweets.php:640
489
  msgctxt "Cache Delay"
490
  msgid "1 hour"
491
  msgstr ""
492
 
493
- #: rotatingtweets.php:641
494
  msgctxt "Cache Delay"
495
  msgid "24 hours"
496
  msgstr ""
497
 
498
- #: rotatingtweets.php:658
499
  msgctxt "Version of JQuery Cycle"
500
  msgid "Version 1 (default)"
501
  msgstr ""
502
 
503
- #: rotatingtweets.php:659
504
  msgctxt "Version of JQuery Cycle"
505
  msgid "Version 2 (beta)"
506
  msgstr ""
507
 
508
- #: rotatingtweets.php:676
509
  msgctxt "Location of JavaScript"
510
  msgid "Load in header (default)"
511
  msgstr ""
512
 
513
- #: rotatingtweets.php:677
514
  msgctxt "Location of JavaScript"
515
  msgid "Load in footer"
516
  msgstr ""
517
 
518
- #: rotatingtweets.php:712
519
  msgid "Error: Twitter API Consumer Key not correctly formatted."
520
  msgstr ""
521
 
522
- #: rotatingtweets.php:719
523
  msgid "Error: Twitter API Consumer Secret not correctly formatted."
524
  msgstr ""
525
 
526
- #: rotatingtweets.php:726
527
  msgid "Error: Twitter API Access Token not correctly formatted."
528
  msgstr ""
529
 
530
- #: rotatingtweets.php:733
531
  msgid "Error: Twitter API Access Token Secret not correctly formatted."
532
  msgstr ""
533
 
534
- #: rotatingtweets.php:773
535
  msgid ""
536
  "Error message received from Twitter: %1$s. <a href=\"%2$s\">Please check "
537
  "your API key, secret, token and secret token on the Twitter website</a>."
538
  msgstr ""
539
 
540
- #: rotatingtweets.php:775
541
  msgid ""
542
  "Error message received from Wordpress: %1$s. Please check your connection "
543
  "settings."
544
  msgstr ""
545
 
546
- #: rotatingtweets.php:1227
547
  msgid "Problem retrieving data from Twitter"
548
  msgstr ""
549
 
550
- #: rotatingtweets.php:1229
551
  msgid "%3$s error code: %1$s - %2$s"
552
  msgstr ""
553
 
554
- #: rotatingtweets.php:1235
555
  msgid "This website is currently <a href='%s'>rate-limited by Twitter</a>."
556
  msgstr ""
557
 
558
- #: rotatingtweets.php:1237
559
  msgid "Next attempt to get data will be in %d minute"
560
  msgid_plural "Next attempt to get data will be in %d minutes"
561
  msgstr[0] ""
562
  msgstr[1] ""
563
 
564
- #: rotatingtweets.php:1238
565
  msgid "Next attempt to get data will be in less than a minute"
566
  msgstr ""
567
 
568
- #: rotatingtweets.php:1243
569
  msgid "Please check your <a href='%s'>Rotating Tweets settings</a>."
570
  msgstr ""
571
 
572
- #: rotatingtweets.php:1246
573
  msgid ""
574
  "Please check the Twitter screen name or list slug in the widget or shortcode."
575
  msgstr ""
576
 
577
- #: rotatingtweets.php:1251 rotatingtweets.php:1257
578
  msgid ""
579
  "Please check the Twitter name in the widget or shortcode, <a "
580
  "href='%2$s'>Rotating Tweets settings</a> or the <a href='%1$s'>Twitter API "
581
  "status</a>."
582
  msgstr ""
583
 
584
- #: rotatingtweets.php:1254
585
  msgid "Please check your PHP and server settings."
586
  msgstr ""
587
 
588
- #: rotatingtweets.php:1263
589
  msgid "No Tweet results for search <a href=\"%2$s\"><strong>%1$s</strong></a>"
590
  msgstr ""
591
 
592
- #: rotatingtweets.php:1435 rotatingtweets.php:1505 rotatingtweets.php:1522
593
- #: rotatingtweets.php:1547
594
  msgid "from <a href='%1$s' title='%2$s'>%2$s's Twitter</a>"
595
- msgstr ""
 
 
596
 
597
- #: rotatingtweets.php:1439 rotatingtweets.php:1526 rotatingtweets.php:1551
598
  msgid "via %s"
599
  msgstr ""
600
 
601
- #: rotatingtweets.php:1465 rotatingtweets.php:1486
602
  msgid "Retweeted by %s"
603
  msgstr ""
604
 
605
- #: rotatingtweets.php:1488
606
  msgid "Expand"
607
  msgstr ""
608
 
609
- #: rotatingtweets.php:1567
610
  msgid "Problem retrieving data from Twitter."
611
  msgstr ""
612
 
613
- #: rotatingtweets.php:1569
614
  msgid "Please check the comments on this page's HTML to understand more."
615
  msgstr ""
616
 
617
- #: rotatingtweets.php:1612 rotatingtweets.php:1625
618
  msgid "Scroll Up"
619
  msgstr ""
620
 
621
- #: rotatingtweets.php:1613 rotatingtweets.php:1626
622
  msgid "Scroll Down"
623
  msgstr ""
624
 
625
- #: rotatingtweets.php:1614 rotatingtweets.php:1627
626
  msgid "Scroll Left"
627
  msgstr ""
628
 
629
- #: rotatingtweets.php:1615 rotatingtweets.php:1628
630
  msgid "Scroll Right"
631
  msgstr ""
632
 
633
- #: rotatingtweets.php:1616 rotatingtweets.php:1629
634
  msgid "Fade"
635
  msgstr ""
636
 
637
- #: rotatingtweets.php:1617
638
  msgid "Carousel"
639
  msgstr ""
640
 
 
 
 
 
641
  #. Plugin Name of the plugin/theme
642
  msgid "Rotating Tweets (Twitter widget & shortcode)"
643
  msgstr ""
1
+ # Copyright (C) 2014 Rotating Tweets (Twitter widget & shortcode)
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.7.4\n"
6
  "Report-Msgid-Bugs-To: http://wordpress.org/tag/rotatingtweets\n"
7
+ "POT-Creation-Date: 2014-10-14 10:41:54+00:00\n"
8
  "MIME-Version: 1.0\n"
9
  "Content-Type: text/plain; charset=UTF-8\n"
10
  "Content-Transfer-Encoding: 8bit\n"
11
+ "PO-Revision-Date: 2014-MO-DA HO:MI+ZONE\n"
12
  "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
13
  "Language-Team: LANGUAGE <LL@li.org>\n"
14
 
16
  msgid "A widget to show tweets for a particular user in rotation."
17
  msgstr ""
18
 
19
+ #: rotatingtweets.php:209
20
  msgid "Title:"
21
  msgstr ""
22
 
23
+ #: rotatingtweets.php:221
24
  msgid "Twitter name:"
25
  msgstr ""
26
 
27
+ #: rotatingtweets.php:222
28
  msgid "Search:"
29
  msgstr ""
30
 
31
+ #: rotatingtweets.php:223
32
  msgid "List Tag:"
33
  msgstr ""
34
 
35
+ #: rotatingtweets.php:224
36
  msgid "Type of Tweets?"
37
  msgstr ""
38
 
39
+ #: rotatingtweets.php:227
40
  msgid "User timeline (default)"
41
  msgstr ""
42
 
43
+ #: rotatingtweets.php:228
44
  msgid "Favorites"
45
  msgstr ""
46
 
47
+ #: rotatingtweets.php:229
48
  msgid "Search"
49
  msgstr ""
50
 
51
+ #: rotatingtweets.php:230
52
  msgid "List"
53
  msgstr ""
54
 
55
+ #: rotatingtweets.php:238
56
  msgid "Include retweets?"
57
  msgstr ""
58
 
59
+ #: rotatingtweets.php:239
60
  msgid "Exclude replies?"
61
  msgstr ""
62
 
63
+ #: rotatingtweets.php:240
64
+ msgid "Shorten links?"
65
+ msgstr ""
66
+
67
+ #: rotatingtweets.php:241
68
  msgid "Open all links in new window or tab?"
69
  msgstr ""
70
 
71
+ #: rotatingtweets.php:242
72
  msgid "How many tweets?"
73
  msgstr ""
74
 
75
+ #: rotatingtweets.php:250
76
  msgid "Speed"
77
  msgstr ""
78
 
79
+ #: rotatingtweets.php:253
80
  msgid "Faster (3 seconds)"
81
  msgstr ""
82
 
83
+ #: rotatingtweets.php:254
84
  msgid "Normal (4 seconds)"
85
  msgstr ""
86
 
87
+ #: rotatingtweets.php:255
88
  msgid "Slower (5 seconds)"
89
  msgstr ""
90
 
91
+ #: rotatingtweets.php:256
92
  msgid "Slowest (6 seconds)"
93
  msgstr ""
94
 
95
+ #: rotatingtweets.php:257
96
  msgid "Ultra slow (20 seconds)"
97
  msgstr ""
98
 
99
+ #: rotatingtweets.php:271
100
  msgid "Type of rotation"
101
  msgstr ""
102
 
103
+ #: rotatingtweets.php:280
104
  msgid "Display format"
105
  msgstr ""
106
 
107
+ #: rotatingtweets.php:283
108
  msgid "Original rotating tweets layout"
109
  msgstr ""
110
 
111
+ #: rotatingtweets.php:284
112
+ msgid "<a target='_blank' href='%s'>Official Twitter guidelines</a> (regular)"
 
 
113
  msgstr ""
114
 
115
+ #: rotatingtweets.php:285
116
+ msgid "<a target='_blank' href='%s'>Official Twitter guidelines</a> (wide)"
117
+ msgstr ""
118
+
119
+ #: rotatingtweets.php:288
120
+ msgid "Custom display layout"
121
  msgstr ""
122
 
123
+ #: rotatingtweets.php:298
124
  msgid "Show tweet details?"
125
  msgstr ""
126
 
127
+ #: rotatingtweets.php:301
128
  msgid "Time/date of tweet"
129
  msgstr ""
130
 
131
+ #: rotatingtweets.php:302
132
  msgid "Name of person tweeting"
133
  msgstr ""
134
 
135
+ #: rotatingtweets.php:303
136
  msgid "Source of tweet"
137
  msgstr ""
138
 
139
+ #: rotatingtweets.php:304
140
  msgid "'reply &middot; retweet &middot; favorite' links"
141
  msgstr ""
142
 
143
+ #: rotatingtweets.php:315
144
  msgid "Show follow button?"
145
  msgstr ""
146
 
147
+ #: rotatingtweets.php:318
148
  msgctxt "Show follow button?"
149
  msgid "None"
150
  msgstr ""
151
 
152
+ #: rotatingtweets.php:319
153
  msgid "Show name and number of followers"
154
  msgstr ""
155
 
156
+ #: rotatingtweets.php:320
157
  msgid "Show name only"
158
  msgstr ""
159
 
160
+ #: rotatingtweets.php:321
161
  msgid "Show followers only"
162
  msgstr ""
163
 
164
+ #: rotatingtweets.php:322
165
  msgid "Show button only"
166
  msgstr ""
167
 
168
+ #: rotatingtweets.php:350
169
  msgid "less than a second ago"
170
  msgstr ""
171
 
172
+ #: rotatingtweets.php:351
173
  msgid "%d seconds ago"
174
  msgstr ""
175
 
176
+ #: rotatingtweets.php:352
177
  msgid "about a minute ago"
178
  msgid_plural "about %d minutes ago"
179
  msgstr[0] ""
180
  msgstr[1] ""
181
 
182
+ #: rotatingtweets.php:353 rotatingtweets.php:355
183
  msgid "about an hour ago"
184
  msgid_plural "about %d hours ago"
185
  msgstr[0] ""
186
  msgstr[1] ""
187
 
188
+ #: rotatingtweets.php:354
189
  msgid "yesterday"
190
  msgstr ""
191
 
192
+ #: rotatingtweets.php:356
193
  msgid "about a day ago"
194
  msgid_plural "about %d days ago"
195
  msgstr[0] ""
196
  msgstr[1] ""
197
 
198
+ #: rotatingtweets.php:357
199
  msgid "last week"
200
  msgstr ""
201
 
202
+ #: rotatingtweets.php:358
203
  msgid "about a week ago"
204
  msgid_plural "about %d weeks ago"
205
  msgstr[0] ""
206
  msgstr[1] ""
207
 
208
+ #: rotatingtweets.php:359
209
  msgid "last month"
210
  msgstr ""
211
 
212
+ #: rotatingtweets.php:360
213
  msgid "about a month ago"
214
  msgid_plural "about %d months ago"
215
  msgstr[0] ""
216
  msgstr[1] ""
217
 
218
+ #: rotatingtweets.php:361
219
  msgid "last year"
220
  msgstr ""
221
 
222
+ #: rotatingtweets.php:362
223
  msgid "about a year ago"
224
  msgid_plural "about %d years ago"
225
  msgstr[0] ""
226
  msgstr[1] ""
227
 
228
+ #: rotatingtweets.php:369
229
  msgctxt "abbreviated timestamp in seconds"
230
  msgid "%ds"
231
  msgstr ""
232
 
233
+ #: rotatingtweets.php:370
234
  msgctxt "abbreviated timestamp in minutes"
235
  msgid "%dm"
236
  msgstr ""
237
 
238
+ #: rotatingtweets.php:371
239
  msgctxt "abbreviated timestamp in hours"
240
  msgid "%dh"
241
  msgstr ""
242
 
243
+ #: rotatingtweets.php:372
244
  msgctxt ""
245
  "short date format as per http://uk.php.net/manual/en/function.date.php"
246
  msgid "j M"
247
  msgstr ""
248
 
249
+ #: rotatingtweets.php:373
250
  msgctxt ""
251
  "slightly longer date format as per http://uk.php.net/manual/en/function.date."
252
  "php"
253
  msgid "j M Y"
254
  msgstr ""
255
 
256
+ #: rotatingtweets.php:379
257
  msgid "reply"
258
  msgstr ""
259
 
260
+ #: rotatingtweets.php:380
261
  msgid "retweet"
262
  msgstr ""
263
 
264
+ #: rotatingtweets.php:381
265
  msgid "favorite"
266
  msgstr ""
267
 
268
+ #: rotatingtweets.php:419 rotatingtweets.php:1882
269
  msgid "Follow @%s"
270
  msgstr ""
271
 
272
+ #: rotatingtweets.php:420 rotatingtweets.php:1706
273
  msgid "Twitter"
274
  msgstr ""
275
 
276
+ #: rotatingtweets.php:496
277
  msgid "next"
278
  msgstr ""
279
 
280
+ #: rotatingtweets.php:497
281
  msgid "prev"
282
  msgstr ""
283
 
284
+ #: rotatingtweets.php:555
285
  msgid ""
286
  "Please update <a href=\"%2$s\">your settings for Rotating Tweets</a>. The "
287
  "Twitter API <a href=\"%1$s\">changed on June 11, 2013</a> and new settings "
288
  "are needed for Rotating Tweets to continue working."
289
  msgstr ""
290
 
291
+ #: rotatingtweets.php:560
292
  msgid ""
293
  "Please update <a href=\"%1$s\">your settings for Rotating Tweets</a>. "
294
  "Currently Rotating Tweets cannot authenticate you with Twitter using the "
295
  "details you have given."
296
  msgstr ""
297
 
298
+ #: rotatingtweets.php:568 rotatingtweets.php:574
299
  msgid "Rotating Tweets: Twitter API settings"
300
  msgstr ""
301
 
302
+ #: rotatingtweets.php:576
303
  msgid "You do not have sufficient permissions to access this page."
304
  msgstr ""
305
 
306
+ #: rotatingtweets.php:578
307
  msgid ""
308
  "<p>Twitter <a href=\"%s\">has changed</a> the way that they allow people to "
309
  "use the information in their tweets.</p><p>You need to take the following "
311
  "from Twitter:</p>"
312
  msgstr ""
313
 
314
+ #: rotatingtweets.php:579
315
  msgid ""
316
  "<h3>Step 1:</h3><p>Go to the <a href=\"%s\">My applications page</a> on the "
317
  "Twitter website to set up your website as a new Twitter 'application'. You "
318
  "may need to log-in using your Twitter user name and password.</p>"
319
  msgstr ""
320
 
321
+ #: rotatingtweets.php:580
322
  msgid ""
323
  "<h3>Step 2:</h3><p>If you don't already have a suitable 'application' that "
324
  "you can use for your website, set one up on the <a href=\"%s\">Create an "
327
  "p><p>You don't need a Callback URL.</p>"
328
  msgstr ""
329
 
330
+ #: rotatingtweets.php:581
331
  msgid ""
332
  "<h3>Step 3:</h3><p>After clicking <strong>Create your Twitter application</"
333
  "strong>, on the following page, click on <strong>Create my access token</"
334
  "strong>.</p>"
335
  msgstr ""
336
 
337
+ #: rotatingtweets.php:582
338
  msgid ""
339
  "<h3>Step 4:</h3><p>Copy the <strong>Consumer key</strong>, <strong>Consumer "
340
  "secret</strong>, <strong>Access token</strong> and <strong>Access token "
342
  "p>"
343
  msgstr ""
344
 
345
+ #: rotatingtweets.php:583
346
  msgid "<h3>Step 5:</h3><p>Click on <strong>Save Changes</strong>."
347
  msgstr ""
348
 
349
+ #: rotatingtweets.php:584
350
  msgid ""
351
  "<h3>If there are any problems:</h3><p>If there are any problems, you should "
352
  "get an error message from Twitter displayed as a \"rotating tweet\" which "
353
  "should help diagnose the problem.</p>"
354
  msgstr ""
355
 
356
+ #: rotatingtweets.php:586
357
  msgid ""
358
  "If you are getting problems with \"rate limiting\", try changing the first "
359
  "connection setting below to increase the time that Rotating Tweets waits "
360
  "before trying to get new data from Twitter."
361
  msgstr ""
362
 
363
+ #: rotatingtweets.php:588
364
  msgid ""
365
  "If you are getting time-out problems, try changing the second connection "
366
  "setting below to increase how long Rotating Tweets waits when connecting to "
367
  "Twitter before timing out."
368
  msgstr ""
369
 
370
+ #: rotatingtweets.php:590
371
  msgid ""
372
  "If the error message references SSL, try changing the \"Verify SSL "
373
  "connection to Twitter\" setting below to \"No\"."
374
  msgstr ""
375
 
376
+ #: rotatingtweets.php:592
377
  msgid "<h3>Getting information from more than one Twitter account</h3>"
378
  msgstr ""
379
 
380
+ #: rotatingtweets.php:593
381
  msgid ""
382
  "<p>Even though you are only entering one set of Twitter API data, Rotating "
383
  "Tweets will continue to support multiple widgets and shortcodes pulling from "
384
  "a variety of different Twitter accounts.</p>"
385
  msgstr ""
386
 
387
+ #: rotatingtweets.php:597
388
  msgid "Save Changes"
389
  msgstr ""
390
 
391
+ #: rotatingtweets.php:605
392
  msgid "Twitter API Settings"
393
  msgstr ""
394
 
395
+ #: rotatingtweets.php:606
396
  msgid "Twitter API Consumer Key"
397
  msgstr ""
398
 
399
+ #: rotatingtweets.php:607
400
  msgid "Twitter API Consumer Secret"
401
  msgstr ""
402
 
403
+ #: rotatingtweets.php:608
404
  msgid "Twitter API Access Token"
405
  msgstr ""
406
 
407
+ #: rotatingtweets.php:609
408
  msgid "Twitter API Access Token Secret"
409
  msgstr ""
410
 
411
+ #: rotatingtweets.php:611
412
  msgid "Connection Settings"
413
  msgstr ""
414
 
415
+ #: rotatingtweets.php:612
416
  msgid ""
417
  "How often should Rotating Tweets try to get the latest tweets from Twitter?"
418
  msgstr ""
419
 
420
+ #: rotatingtweets.php:613
421
  msgid ""
422
  "When connecting to Twitter, how long should Rotating Tweets wait before "
423
  "timing out?"
424
  msgstr ""
425
 
426
+ #: rotatingtweets.php:614
427
  msgid "Verify SSL connection to Twitter"
428
  msgstr ""
429
 
430
+ #: rotatingtweets.php:616
431
  msgid "JavaScript Settings"
432
  msgstr ""
433
 
434
+ #: rotatingtweets.php:617
435
  msgid "Version of JQuery Cycle"
436
  msgstr ""
437
 
438
+ #: rotatingtweets.php:618
439
  msgid "Where to load Rotating Tweets JavaScript"
440
  msgstr ""
441
 
442
+ #: rotatingtweets.php:639
443
  msgctxt "Verify SSL connection to Twitter"
444
  msgid "Yes"
445
  msgstr ""
446
 
447
+ #: rotatingtweets.php:640
448
  msgctxt "Verify SSL connection to Twitter"
449
  msgid "No"
450
  msgstr ""
451
 
452
+ #: rotatingtweets.php:656
453
  msgctxt "Connection timeout"
454
  msgid "1 second"
455
  msgstr ""
456
 
457
+ #: rotatingtweets.php:657
458
  msgctxt "Connection timeout"
459
  msgid "3 seconds (default)"
460
  msgstr ""
461
 
462
+ #: rotatingtweets.php:658
463
  msgctxt "Connection timeout"
464
  msgid "5 seconds"
465
  msgstr ""
466
 
467
+ #: rotatingtweets.php:659
468
  msgctxt "Connection timeout"
469
  msgid "7 seconds"
470
  msgstr ""
471
 
472
+ #: rotatingtweets.php:660
473
  msgctxt "Connection timeout"
474
  msgid "20 seconds"
475
  msgstr ""
476
 
477
+ #: rotatingtweets.php:677
478
  msgctxt "Cache Delay"
479
  msgid "1 minute"
480
  msgstr ""
481
 
482
+ #: rotatingtweets.php:678
483
  msgctxt "Cache Delay"
484
  msgid "2 minutes (default)"
485
  msgstr ""
486
 
487
+ #: rotatingtweets.php:679
488
  msgctxt "Cache Delay"
489
  msgid "5 minutes"
490
  msgstr ""
491
 
492
+ #: rotatingtweets.php:680
493
  msgctxt "Cache Delay"
494
  msgid "1 hour"
495
  msgstr ""
496
 
497
+ #: rotatingtweets.php:681
498
  msgctxt "Cache Delay"
499
  msgid "24 hours"
500
  msgstr ""
501
 
502
+ #: rotatingtweets.php:698
503
  msgctxt "Version of JQuery Cycle"
504
  msgid "Version 1 (default)"
505
  msgstr ""
506
 
507
+ #: rotatingtweets.php:699
508
  msgctxt "Version of JQuery Cycle"
509
  msgid "Version 2 (beta)"
510
  msgstr ""
511
 
512
+ #: rotatingtweets.php:716
513
  msgctxt "Location of JavaScript"
514
  msgid "Load in header (default)"
515
  msgstr ""
516
 
517
+ #: rotatingtweets.php:717
518
  msgctxt "Location of JavaScript"
519
  msgid "Load in footer"
520
  msgstr ""
521
 
522
+ #: rotatingtweets.php:752
523
  msgid "Error: Twitter API Consumer Key not correctly formatted."
524
  msgstr ""
525
 
526
+ #: rotatingtweets.php:759
527
  msgid "Error: Twitter API Consumer Secret not correctly formatted."
528
  msgstr ""
529
 
530
+ #: rotatingtweets.php:766
531
  msgid "Error: Twitter API Access Token not correctly formatted."
532
  msgstr ""
533
 
534
+ #: rotatingtweets.php:773
535
  msgid "Error: Twitter API Access Token Secret not correctly formatted."
536
  msgstr ""
537
 
538
+ #: rotatingtweets.php:813
539
  msgid ""
540
  "Error message received from Twitter: %1$s. <a href=\"%2$s\">Please check "
541
  "your API key, secret, token and secret token on the Twitter website</a>."
542
  msgstr ""
543
 
544
+ #: rotatingtweets.php:815
545
  msgid ""
546
  "Error message received from Wordpress: %1$s. Please check your connection "
547
  "settings."
548
  msgstr ""
549
 
550
+ #: rotatingtweets.php:1411
551
  msgid "Problem retrieving data from Twitter"
552
  msgstr ""
553
 
554
+ #: rotatingtweets.php:1413
555
  msgid "%3$s error code: %1$s - %2$s"
556
  msgstr ""
557
 
558
+ #: rotatingtweets.php:1419
559
  msgid "This website is currently <a href='%s'>rate-limited by Twitter</a>."
560
  msgstr ""
561
 
562
+ #: rotatingtweets.php:1423
563
  msgid "Next attempt to get data will be in %d minute"
564
  msgid_plural "Next attempt to get data will be in %d minutes"
565
  msgstr[0] ""
566
  msgstr[1] ""
567
 
568
+ #: rotatingtweets.php:1424
569
  msgid "Next attempt to get data will be in less than a minute"
570
  msgstr ""
571
 
572
+ #: rotatingtweets.php:1429
573
  msgid "Please check your <a href='%s'>Rotating Tweets settings</a>."
574
  msgstr ""
575
 
576
+ #: rotatingtweets.php:1432
577
  msgid ""
578
  "Please check the Twitter screen name or list slug in the widget or shortcode."
579
  msgstr ""
580
 
581
+ #: rotatingtweets.php:1437 rotatingtweets.php:1443
582
  msgid ""
583
  "Please check the Twitter name in the widget or shortcode, <a "
584
  "href='%2$s'>Rotating Tweets settings</a> or the <a href='%1$s'>Twitter API "
585
  "status</a>."
586
  msgstr ""
587
 
588
+ #: rotatingtweets.php:1440
589
  msgid "Please check your PHP and server settings."
590
  msgstr ""
591
 
592
+ #: rotatingtweets.php:1449
593
  msgid "No Tweet results for search <a href=\"%2$s\"><strong>%1$s</strong></a>"
594
  msgstr ""
595
 
596
+ #: rotatingtweets.php:1685 rotatingtweets.php:1782 rotatingtweets.php:1803
597
+ #: rotatingtweets.php:1833
598
  msgid "from <a href='%1$s' title='%2$s'>%2$s's Twitter</a>"
599
+ msgid_plural "from <a href='%1$s' title='%2$s'>%2$s' Twitter</a>"
600
+ msgstr[0] ""
601
+ msgstr[1] ""
602
 
603
+ #: rotatingtweets.php:1689 rotatingtweets.php:1807 rotatingtweets.php:1837
604
  msgid "via %s"
605
  msgstr ""
606
 
607
+ #: rotatingtweets.php:1722 rotatingtweets.php:1749
608
  msgid "Retweeted by %s"
609
  msgstr ""
610
 
611
+ #: rotatingtweets.php:1753
612
  msgid "Expand"
613
  msgstr ""
614
 
615
+ #: rotatingtweets.php:1853
616
  msgid "Problem retrieving data from Twitter."
617
  msgstr ""
618
 
619
+ #: rotatingtweets.php:1855
620
  msgid "Please check the comments on this page's HTML to understand more."
621
  msgstr ""
622
 
623
+ #: rotatingtweets.php:1952 rotatingtweets.php:1966
624
  msgid "Scroll Up"
625
  msgstr ""
626
 
627
+ #: rotatingtweets.php:1953 rotatingtweets.php:1967
628
  msgid "Scroll Down"
629
  msgstr ""
630
 
631
+ #: rotatingtweets.php:1954 rotatingtweets.php:1968
632
  msgid "Scroll Left"
633
  msgstr ""
634
 
635
+ #: rotatingtweets.php:1955 rotatingtweets.php:1969
636
  msgid "Scroll Right"
637
  msgstr ""
638
 
639
+ #: rotatingtweets.php:1956 rotatingtweets.php:1970
640
  msgid "Fade"
641
  msgstr ""
642
 
643
+ #: rotatingtweets.php:1957
644
  msgid "Carousel"
645
  msgstr ""
646
 
647
+ #: rotatingtweets.php:1958
648
+ msgid "Scroll Left (with gap)"
649
+ msgstr ""
650
+
651
  #. Plugin Name of the plugin/theme
652
  msgid "Rotating Tweets (Twitter widget & shortcode)"
653
  msgstr ""
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,responsive
5
  Requires at least: 2.6
6
- Tested up to: 4.0
7
- Stable tag: 1.7.4
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -21,6 +21,7 @@ Twitter widget and shortcode to show your latest tweets one at a time an animate
21
  * Replaces [t.co](http://t.co) links with the original link
22
  * Caches the most recent data from Twitter to avoid problems with rate limiting
23
  * Uses [jQuery](http://jquery.com/), [jQuery.Cycle](http://jquery.malsup.com/cycle/) and [jQuery.Cycle2](http://jquery.malsup.com/cycle2/) to produce a nice smooth result.
 
24
  * **Multi-lingual** - now set up to be multi-lingual. The Twitter 'follow' button is automatically translated to match your site's language setting [if Twitter has made the appropriate language available](https://dev.twitter.com/docs/api/1.1/get/help/languages). Also uses [Wordpress's multi-lingual capability](http://codex.wordpress.org/I18n_for_WordPress_Developers) to enable translation of all the other text used by the plug-in via language packs.
25
 
26
  Currently the following languages are available:
@@ -60,7 +61,7 @@ Options include:
60
  Possible variables for the shortcode include:
61
 
62
  * **Required settings** - at least one of the following three settings is required for the short-code to function:
63
- * `screen_name` = Twitter user name
64
  * `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`
65
  * `search` = a term to search for. There's a useful guide to using Twitter's search function at https://support.twitter.com/articles/71577-using-advanced-search
66
  * **Twitter options**
@@ -90,11 +91,15 @@ Possible variables for the shortcode include:
90
  * `prev` = content for the prev button (default `'prev'`)
91
  * `next` = content for the next button (default `'next'`)
92
  * `middot` = content for the space between the buttons (default `' &middot; '`)
93
- * `np_pos` = position for 'next' and 'prev' buttons - `'top'`, `'bottom'`, `'insidebottom'` or `'tweets'` (default `'top'`)
94
  * `show_media` = `'0'` or `'1'` - experimental option that shows images with the tweet - default is `'0'`
95
  * `screen_name_plural` = `'0'` or `'1'` - experimental option that allows you to have a plural possessive in the default display format (e.g. *British Lions' Twitter*) - default is `'0'`
96
  * `tweet_length` = maximum number of characters to show in tweet - default is `'0'` which allows whole tweet to be shown
97
  * `no_emoji` = `'0'` or `'1'` - experimental option that removes emoji from the feed - default is `'0'`
 
 
 
 
98
 
99
  * **Twitter follow button**
100
  * `show_follow` = `'0'` or `'1'` - show follow button - default is `'0'`
@@ -120,7 +125,7 @@ Try something like:
120
  `<?php echo do_shortcode( "[rotatingtweets screen_name='your_twitter']" ) ?>`
121
 
122
  = How can I pull information from two accounts into one widget =
123
- The easiest way is to list more than one account in the 'Twitter name' box in the widget or use something like `screen_name = 'account1 account2'` in the shortcode.
124
 
125
  = How often does the plug-in call Twitter =
126
  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.
@@ -174,10 +179,16 @@ into your CSS - changing `123px;` to the width you're aiming at - either via put
174
  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.
175
 
176
  == Upgrade notice ==
177
- = 1.7.4 =
178
- * Ensures all images use `https://` link for compatibility with SSL-secured sites
179
 
180
  == Changelog ==
 
 
 
 
 
 
181
  = 1.7.4 =
182
  * Ensures all images use `https://` link for compatibility with SSL-secured sites
183
 
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,responsive
5
  Requires at least: 2.6
6
+ Tested up to: 4.1
7
+ Stable tag: 1.7.5
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
21
  * Replaces [t.co](http://t.co) links with the original link
22
  * Caches the most recent data from Twitter to avoid problems with rate limiting
23
  * Uses [jQuery](http://jquery.com/), [jQuery.Cycle](http://jquery.malsup.com/cycle/) and [jQuery.Cycle2](http://jquery.malsup.com/cycle2/) to produce a nice smooth result.
24
+ * Compatible with [W3 Total Cache](https://wordpress.org/plugins/w3-total-cache/).
25
  * **Multi-lingual** - now set up to be multi-lingual. The Twitter 'follow' button is automatically translated to match your site's language setting [if Twitter has made the appropriate language available](https://dev.twitter.com/docs/api/1.1/get/help/languages). Also uses [Wordpress's multi-lingual capability](http://codex.wordpress.org/I18n_for_WordPress_Developers) to enable translation of all the other text used by the plug-in via language packs.
26
 
27
  Currently the following languages are available:
61
  Possible variables for the shortcode include:
62
 
63
  * **Required settings** - at least one of the following three settings is required for the short-code to function:
64
+ * `screen_name` = one or more Twitter user names e.g. `[rotatingtweets screen_name="mpntod"]` or `[rotatingtweets screen_name="mpntod twitter"]`
65
  * `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`
66
  * `search` = a term to search for. There's a useful guide to using Twitter's search function at https://support.twitter.com/articles/71577-using-advanced-search
67
  * **Twitter options**
91
  * `prev` = content for the prev button (default `'prev'`)
92
  * `next` = content for the next button (default `'next'`)
93
  * `middot` = content for the space between the buttons (default `' &middot; '`)
94
+ * `np_pos` = position for 'next' and 'prev' buttons - `'top'`, `'bottom'`, `'insidebottom'`, `'beforeafter'` or `'tweets'` (default `'top'`)
95
  * `show_media` = `'0'` or `'1'` - experimental option that shows images with the tweet - default is `'0'`
96
  * `screen_name_plural` = `'0'` or `'1'` - experimental option that allows you to have a plural possessive in the default display format (e.g. *British Lions' Twitter*) - default is `'0'`
97
  * `tweet_length` = maximum number of characters to show in tweet - default is `'0'` which allows whole tweet to be shown
98
  * `no_emoji` = `'0'` or `'1'` - experimental option that removes emoji from the feed - default is `'0'`
99
+ * `official_format_override` = `'0'` or `'1'` - enables you to change the settings for `show_meta_reply_retweet_favorite` and `show_meta_timestamp` on the 'official formats'.
100
+
101
+ * **Caching**
102
+ * `w3tc_render_to` = 'your_choice_of_random_string' - used to support 'fragment caching' by [W3 Total Cache](https://wordpress.org/plugins/w3-total-cache/). For this to work, you also need to ensure that `W3TC_DYNAMIC_SECURITY` is defined in your `wp-config.php` file and that you not using 'HTTP Compression' on the 'Browser Cache' settings page or 'Enhanced Disk caching' on the 'Page Cache' settings page.
103
 
104
  * **Twitter follow button**
105
  * `show_follow` = `'0'` or `'1'` - show follow button - default is `'0'`
125
  `<?php echo do_shortcode( "[rotatingtweets screen_name='your_twitter']" ) ?>`
126
 
127
  = How can I pull information from two accounts into one widget =
128
+ The easiest way is to list more than one account in the 'Twitter name' box in the widget or use something like `screen_name='account1 account2'` in the shortcode.
129
 
130
  = How often does the plug-in call Twitter =
131
  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.
179
  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.
180
 
181
  == Upgrade notice ==
182
+ = 1.7.5 =
183
+ * Much faster caching. Compatibility with W3 Total Cache.
184
 
185
  == Changelog ==
186
+ = 1.7.5 =
187
+ * Much faster and more reliable caching.
188
+ * Compatibility with W3 Total Cache.
189
+ * New `scrollLeftGap` transition
190
+ * Ability to put 'prev' and 'next' buttons before and after the main rotating tweets
191
+
192
  = 1.7.4 =
193
  * Ensures all images use `https://` link for compatibility with SSL-secured sites
194
 
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.7.4
6
  Text Domain: rotatingtweets
7
  Author: Martin Tod
8
  Author URI: http://www.martintod.org.uk
@@ -48,6 +48,8 @@ class rotatingtweets_Widget extends WP_Widget {
48
  extract( $args );
49
  $title = apply_filters('widget_title', $instance['title']);
50
  $positive_variables = array('screen_name','shorten_links','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
  if(isset($instance['tw_'.$var])):
53
  $newargs[$var] = $instance['tw_'.$var];
@@ -76,30 +78,34 @@ class rotatingtweets_Widget extends WP_Widget {
76
  break;
77
  }
78
  if(empty($newargs['timeout'])) $newargs['timeout'] = 4000;
79
- switch($newargs['show_type']) {
80
- case 1:
81
- $tweets = rotatingtweets_get_tweets($newargs['screen_name'],$newargs['include_rts'],$newargs['exclude_replies'],true);
82
- break;
83
- case 2:
84
- $tweets = rotatingtweets_get_tweets($newargs['screen_name'],$newargs['include_rts'],$newargs['exclude_replies'],false,$newargs['search']);
85
- // $newargs['screen_name'] = ''; // Originally put in to avoid confusion when people have a 'follow' button and a search tweet
86
- break;
87
- case 3:
88
- $tweets = rotatingtweets_get_tweets($newargs['screen_name'],$newargs['include_rts'],$newargs['exclude_replies'],false,false,$newargs['list_tag']);
89
- break;
90
- case 0:
91
- default:
92
- $tweets = rotatingtweets_get_tweets($newargs['screen_name'],$newargs['include_rts'],$newargs['exclude_replies']);
93
- break;
94
- }
95
- ?>
96
- <?php echo $before_widget;
97
- if ( $title )
98
- echo $before_title . $title . $after_title;
99
- rotating_tweets_display($tweets,$newargs,TRUE);
100
- echo $after_widget;
101
- ?>
102
- <?php
 
 
 
 
103
  }
104
 
105
  /** @see WP_Widget::update */
@@ -275,8 +281,8 @@ class rotatingtweets_Widget extends WP_Widget {
275
  <?php
276
  $officialoptions = array (
277
  0 => __('Original rotating tweets layout','rotatingtweets'),
278
- 1 => __("<a target='_blank' href='https://dev.twitter.com/terms/display-guidelines'>Official Twitter guidelines</a> (regular)",'rotatingtweets'),
279
- 2 => __("<a target='_blank' href='https://dev.twitter.com/terms/display-guidelines'>Official Twitter guidelines</a> (wide)",'rotatingtweets'),
280
  );
281
  if (function_exists('rotatingtweets_display_override')) {
282
  $officialoptions['custom'] = __('Custom display layout','rotatingtweets');
@@ -479,6 +485,7 @@ function rotatingtweets_display_shortcode( $atts, $content=null, $code="", $prin
479
  'show_meta_via' => TRUE,
480
  'show_meta_reply_retweet_favorite' => FALSE,
481
  'show_meta_prev_next' => FALSE,
 
482
  'rotation_type' => 'scrollUp',
483
  'official_format' => FALSE,
484
  'links_in_new_window' => FALSE,
@@ -502,7 +509,11 @@ function rotatingtweets_display_shortcode( $atts, $content=null, $code="", $prin
502
  'carousel_count' => 0,
503
  'carousel_responsive' => 0,
504
  'no_emoji' => 0,
505
- 'show_tco_link' => 0
 
 
 
 
506
  ), $atts ) ;
507
  extract($args);
508
  if(empty($screen_name) && empty($search) && !empty($url)):
@@ -512,11 +523,19 @@ function rotatingtweets_display_shortcode( $atts, $content=null, $code="", $prin
512
  echo "<!-- $url => $screen_name -->";
513
  }
514
  endif;
 
 
 
515
  if(empty($screen_name)) $screen_name = 'twitter';
516
  # Makes sure the scripts are listed
517
  rotatingtweets_enqueue_scripts();
518
- $tweets = rotatingtweets_get_tweets($screen_name,$include_rts,$exclude_replies,$get_favorites,$search,$list);
519
- $returnstring = rotating_tweets_display($tweets,$args,$print);
 
 
 
 
 
520
  return $returnstring;
521
  }
522
  add_shortcode( 'rotatingtweets', 'rotatingtweets_display_shortcode' );
@@ -886,13 +905,14 @@ function rotatingtweets_call_twitter_API($command,$options = NULL,$api = NULL )
886
  endif;
887
  return($result);
888
  }
889
- # Clear tweets (if too much memory used)
 
890
  function rotatingtweets_shrink_cache() {
891
  # Solves a problem that 40+ caches can overload the memory - cuts it to fewer without risking deletion of the tweets on display
892
  $optionname = "rotatingtweets-cache";
893
  $option = get_option($optionname);
894
  $numberidentities = count($option);
895
- if(WP_DEBUG) echo "<!-- There are currently ".$numberidentities." identities cached -->";
896
  # If there are fewer than 10 sets of information cached - just return (for speed)
897
  if ( !is_array($option) or $numberidentities == 0 ) return;
898
  # Now make sure that we don't overwrite 'live' tweets
@@ -925,13 +945,20 @@ function rotatingtweets_shrink_cache() {
925
  if(WP_DEBUG) echo "<!-- There are now ".$numberidentities." identities cached -->";
926
  update_option($optionname,$option);
927
  }
928
-
 
 
 
 
 
 
 
 
 
929
  # Get the latest data from Twitter (or from a cache if it's been less than 2 minutes since the last load)
930
  function rotatingtweets_get_tweets($tw_screen_name,$tw_include_rts,$tw_exclude_replies,$tw_get_favorites = FALSE,$tw_search = FALSE,$tw_list = FALSE ) {
931
  # Set timer
932
  $rt_starttime = microtime(true);
933
- # Check cache
934
- rotatingtweets_shrink_cache();
935
  # Clear up variables
936
  $tw_screen_name = trim(remove_accents(str_replace('@','',$tw_screen_name)));
937
  if($tw_list):
@@ -949,18 +976,21 @@ function rotatingtweets_get_tweets($tw_screen_name,$tw_include_rts,$tw_exclude_r
949
  else:
950
  $tw_search = trim($tw_search);
951
  endif;
 
 
952
  $cacheoption = get_option('rotatingtweets-api-settings');
953
  if(!isset($cacheoption['cache_delay'])):
954
  $cache_delay = 120;
955
  else:
956
  $cache_delay = max(60,intval($cacheoption['cache_delay']));
957
  endif;
 
958
  if($tw_include_rts != 1) $tw_include_rts = 0;
959
  if($tw_exclude_replies != 1) $tw_exclude_replies = 0;
960
 
961
  # Get the option strong
962
  if($tw_search) {
963
- $stringname = 'search-'.$tw_include_rts.$tw_exclude_replies.'-'.sanitize_file_name($tw_search);
964
  } elseif ($tw_get_favorites) {
965
  $stringname = $tw_screen_name.$tw_include_rts.$tw_exclude_replies.'favorites';
966
  } elseif ($tw_list) {
@@ -968,14 +998,20 @@ function rotatingtweets_get_tweets($tw_screen_name,$tw_include_rts,$tw_exclude_r
968
  } else {
969
  $stringname = $tw_screen_name.$tw_include_rts.$tw_exclude_replies;
970
  }
971
- $optionname = "rotatingtweets-cache";
972
- $option = get_option($optionname);
 
 
 
 
 
 
 
 
 
973
  # Attempt to deal with 'Cannot use string offset as an array' error
974
  $timegap = $cache_delay + 1;
975
  if(is_array($option)):
976
- if(WP_DEBUG):
977
- echo "\n<!-- var option is an array -->";
978
- endif;
979
  if(isset($option[$stringname]['json'][0])):
980
  if(WP_DEBUG) echo "<!-- option[$stringname] exists -->";
981
  if(is_array($option[$stringname]['json'][0])):
@@ -997,7 +1033,9 @@ function rotatingtweets_get_tweets($tw_screen_name,$tw_include_rts,$tw_exclude_r
997
  endif;
998
  else:
999
  if(WP_DEBUG):
1000
- echo "\n<!-- var option is NOT an array -->";
 
 
1001
  endif;
1002
  unset($option);
1003
  endif;
@@ -1039,14 +1077,14 @@ function rotatingtweets_get_tweets($tw_screen_name,$tw_include_rts,$tw_exclude_r
1039
  $rate = rotatingtweets_get_rate_data();
1040
  if($rate && $rate['remaining_hits'] == 0):
1041
  $option[$stringname]['datetime']= $rate['reset_time_in_seconds'] - $cache_delay + 1;
1042
- update_option($optionname,$option);
1043
  else:
1044
  $option[$stringname]['datetime']=time();
1045
- update_option($optionname,$option);
1046
  endif;
1047
  else:
1048
  $option[$stringname]['datetime']=time();
1049
- update_option($optionname,$option);
1050
  endif;
1051
  elseif(!empty($twitterjson['error'])):
1052
  # If Twitter is being rate limited, delays the next load until the reset time
@@ -1054,7 +1092,7 @@ function rotatingtweets_get_tweets($tw_screen_name,$tw_include_rts,$tw_exclude_r
1054
  $rate = rotatingtweets_get_rate_data();
1055
  if($rate && $rate['remaining_hits'] == 0):
1056
  $option[$stringname]['datetime']= $rate['reset_time_in_seconds'] - $cache_delay + 1;
1057
- update_option($optionname,$option);
1058
  endif;
1059
  elseif(!empty($twitterjson)):
1060
  unset($firstentry);
@@ -1074,10 +1112,12 @@ function rotatingtweets_get_tweets($tw_screen_name,$tw_include_rts,$tw_exclude_r
1074
  $latest_json = rotatingtweets_shrink_json($twitterjson);
1075
  $option[$stringname]['json']=$latest_json;
1076
  $option[$stringname]['datetime']=time();
1077
- if(WP_DEBUG):
1078
- echo "<!-- Storing cache entry for $stringname in $optionname -->";
 
 
 
1079
  endif;
1080
- update_option($optionname,$option);
1081
  endif;
1082
  endif;
1083
  if(isset($latest_json)):
@@ -1099,7 +1139,7 @@ function rotatingtweets_shrink_json($json) {
1099
  endif;
1100
  return($return);
1101
  }
1102
- function rotatingtweets_shrink_element($json) {
1103
  global $args;
1104
  $rt_top_elements = array('text','retweeted_status','user','entities','source','id_str','created_at','coordinates');
1105
  $return = array();
@@ -1115,8 +1155,10 @@ function rotatingtweets_shrink_element($json) {
1115
  case "retweeted_status":
1116
  $return[$rt_element]=rotatingtweets_shrink_element($json[$rt_element]);
1117
  break;
 
 
1118
  default:
1119
- if(isset($args['no_emoji']) && $args['no_emoji']):
1120
  $before='/\\p{C}/u'; # Removed all 'other' characters - http://php.net/manual/en/regexp.reference.unicode.php
1121
  $after='';
1122
  $json[$rt_element] = str_replace($before,$after,$json[$rt_element]);
@@ -1244,10 +1286,24 @@ function rotatingtweets_trigger_rate_limiting() {
1244
  $ratedata = rotatingtweets_call_twitter_API('statuses/user_timeline',$apidata);
1245
  }
1246
  }
1247
-
 
 
 
 
 
 
 
 
 
 
 
 
 
1248
  # Displays the tweets
1249
- function rotating_tweets_display($json,$args,$print=TRUE) {
1250
  unset($result);
 
1251
  $tweet_count = max(1,intval($args['tweet_count']));
1252
  $timeout = max(intval($args['timeout']),0);
1253
  $defaulturllength = 29;
@@ -1292,9 +1348,13 @@ function rotating_tweets_display($json,$args,$print=TRUE) {
1292
  $nextprev = '';
1293
  # Put in the 'next / prev' buttons - although not very styled!
1294
  if(isset($args['show_meta_prev_next']) && $args['show_meta_prev_next']):
1295
- $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>';
 
 
1296
  if(strtolower($args['np_pos'])=='top'):
1297
  $result .= '<div class="rotatingtweets_nextprev">'.$nextprev.'</div>';
 
 
1298
  endif;
1299
  endif;
1300
  if(isset($args['no_rotate']) && $args['no_rotate']):
@@ -1356,6 +1416,7 @@ function rotating_tweets_display($json,$args,$print=TRUE) {
1356
  $result .= "\n\t<div class = 'rotatingtweet'><p class='rtw_main'>". __('Problem retrieving data from Twitter','rotatingtweets'). "</p></div>";
1357
  if(!empty($error)):
1358
  $result .= "\n<div class = 'rotatingtweet' style='display:none'><p class='rtw_main'>".sprintf(__('%3$s error code: %1$s - %2$s','rotatingtweets'), esc_html($error[0]['code']), esc_html($error[0]['message']),esc_html($error[0]['type'])). "</p></div>";
 
1359
  switch($error[0]['code']) {
1360
  case 88:
1361
  $rate = rotatingtweets_get_rate_data();
@@ -1363,6 +1424,7 @@ function rotating_tweets_display($json,$args,$print=TRUE) {
1363
  $result .= "\n\t<div class = 'rotatingtweet' style='display:none'><p class='rtw_main'>". sprintf(__('This website is currently <a href=\'%s\'>rate-limited by Twitter</a>.','rotatingtweets'),'https://dev.twitter.com/docs/rate-limiting-faq') . "</p></div>";
1364
  if(isset($rate['hourly_limit']) && $rate['hourly_limit']>0 && $rate['remaining_hits'] == 0):
1365
  $waittimevalue = intval(($rate['reset_time_in_seconds'] - time())/60);
 
1366
  $waittime = sprintf(_n('Next attempt to get data will be in %d minute','Next attempt to get data will be in %d minutes',$waittimevalue,'rotatingtweets'),$waittimevalue);
1367
  if($waittimevalue == 0) $waittime = __("Next attempt to get data will be in less than a minute",'rotatingtweets');
1368
  $result .= "\n\t<div class = 'rotatingtweet' style='display:none'><p class='rtw_main'>{$waittime}.</p></div>";
@@ -1549,7 +1611,8 @@ function rotating_tweets_display($json,$args,$print=TRUE) {
1549
  // $before[]='/\\p{InGreek_Extended}/u'; #Not supported by PCRE http://php.net/manual/en/regexp.reference.unicode.php
1550
  $before[]='/\\p{C}/u'; # Removed all 'other' characters - http://php.net/manual/en/regexp.reference.unicode.php
1551
  $after[]='';
1552
- endif;
 
1553
  if( defined('DB_CHARSET') && strtoupper(DB_CHARSET) !='UTF-8' && strtoupper(DB_CHARSET)!= 'UTF8' && strtoupper(DB_CHARSET)!= '' ):
1554
  $new_text = iconv("UTF-8",DB_CHARSET . '//TRANSLIT',$main_text);
1555
  if(empty($main_text)):
@@ -1560,6 +1623,8 @@ function rotating_tweets_display($json,$args,$print=TRUE) {
1560
  $main_text = $new_text;
1561
  endif;
1562
  endif;
 
 
1563
  $new_text = preg_replace($before,$after,$main_text);
1564
  if(empty($new_text)):
1565
  if(WP_DEBUG):
@@ -1632,6 +1697,10 @@ function rotating_tweets_display($json,$args,$print=TRUE) {
1632
  if(!empty($meta)) $meta .= ' &middot; ';
1633
  $meta .= rotatingtweets_intents($twitter_object,$twitterlocale, 0,$targetvalue);
1634
  endif;
 
 
 
 
1635
 
1636
  if(isset($args['show_meta_prev_next']) && $args['show_meta_prev_next'] && $args['np_pos']=='tweets'):
1637
  if(!empty($meta)) $meta .= ' &middot; ';
@@ -1652,13 +1721,18 @@ function rotating_tweets_display($json,$args,$print=TRUE) {
1652
  if(isset($args['show_media']) && !empty($show_media)):
1653
  $result .= "<div class='rtw_media'>$show_media</div>";
1654
  endif;
1655
- $result .= "\n\t<div class='rtw_meta'><div class='rtw_intents'>".rotatingtweets_intents($twitter_object,$twitterlocale, 1,$targetvalue).'</div>';
1656
- $result .= "\n\t<div class='rtw_timestamp'>".rotatingtweets_timestamp_link($twitter_object,'long',$targetvalue);
1657
- if(isset($retweeter)) {
1658
- $result .= " &middot; </div>".rotatingtweets_user_intent($retweeter,$twitterlocale,sprintf(__('Retweeted by %s','rotatingtweets'),$retweeter['name']),$targetvalue);
1659
- } else {
1660
- $result .= "</div>";
1661
- }
 
 
 
 
 
1662
  if(isset($args['show_meta_prev_next']) && $args['show_meta_prev_next'] && $args['np_pos']=='tweets'):
1663
  $result .= " &middot; ".$nextprev;
1664
  endif;
@@ -1669,7 +1743,9 @@ function rotating_tweets_display($json,$args,$print=TRUE) {
1669
  $result .= "\n\t\t<div class='rtw_wide'>";
1670
  $result .= "\n\t\t<div class='rtw_wide_icon'>".rotatingtweets_user_intent($tweetuser,$twitterlocale,'icon',$targetvalue)."</div>";
1671
  $result .= "\n\t\t<div class='rtw_wide_block'><div class='rtw_info'>";
1672
- $result .= "\n\t\t\t<div class='rtw_time_short'>".rotatingtweets_timestamp_link($twitter_object,'short',$targetvalue).'</div>';
 
 
1673
  $result .= "\n\t\t\t<div class='rtw_name'>".rotatingtweets_user_intent($tweetuser,$twitterlocale,'name',$targetvalue)."</div>";
1674
  $result .= "\n\t\t\t<div class='rtw_id'>".rotatingtweets_user_intent($tweetuser,$twitterlocale,'screen_name',$targetvalue)."</div>";
1675
  $result .= "\n\t\t</div>";
@@ -1681,11 +1757,20 @@ function rotating_tweets_display($json,$args,$print=TRUE) {
1681
  if(isset($retweeter)) {
1682
  $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>";
1683
  }
1684
- $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);
1685
- if(isset($args['show_meta_prev_next']) && $args['show_meta_prev_next'] && $args['np_pos']=='tweets'):
1686
- $result .= wp_kses_post($args['middot']).$nextprev;
 
 
 
 
 
 
 
 
 
1687
  endif;
1688
- $result .= "</span></div></div></div>";
1689
  break;
1690
  case 3:
1691
  # This one uses the twitter standard approach for embedding via their javascript API - unfortunately I can't work out how to make it work with the rotating tweet javascript! If anyone can work out how to calculate the height of a oEmbed Twitter tweet, I will be very grateful! :-)
@@ -1698,9 +1783,14 @@ function rotating_tweets_display($json,$args,$print=TRUE) {
1698
  $result .= "\n\t\t<p class='rtw_main'>$main_text</p>";
1699
  $result .= "\n\t<div class='rtw_meta rtw_info'><div class='rtw_intents'>".rotatingtweets_intents($twitter_object,$twitterlocale, 1,$targetvalue).'</div>';
1700
  if($args['show_meta_screen_name']):
1701
- $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']).' &middot; ';
1702
- endif;
1703
- $result .= rotatingtweets_timestamp_link($twitter_object,'long',$targetvalue);
 
 
 
 
 
1704
  if(isset($args['show_meta_prev_next']) && $args['show_meta_prev_next'] && $args['np_pos']=='tweets'):
1705
  $result .= ' &middot; '.$nextprev;
1706
  endif;
@@ -1715,7 +1805,12 @@ function rotating_tweets_display($json,$args,$print=TRUE) {
1715
  endif;
1716
  if($args['show_meta_screen_name']):
1717
  if(!empty($meta)) $meta .= ' ';
1718
- $meta .= 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']);
 
 
 
 
 
1719
  endif;
1720
  if($args['show_meta_via']):
1721
  if(!empty($meta)) $meta .= ' ';
@@ -1740,7 +1835,12 @@ function rotating_tweets_display($json,$args,$print=TRUE) {
1740
  endif;
1741
  if($args['show_meta_screen_name']):
1742
  if(!empty($meta)) $meta .= ' ';
1743
- $meta .= 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']);
 
 
 
 
 
1744
  endif;
1745
  if($args['show_meta_via']):
1746
  if(!empty($meta)) $meta .= ' ';
@@ -1769,12 +1869,16 @@ function rotating_tweets_display($json,$args,$print=TRUE) {
1769
  endif;
1770
  endforeach;
1771
  endif;
1772
- if(isset($args['show_meta_prev_next']) && $args['show_meta_prev_next'] && $args['np_pos']=='insidebottom'):
1773
  $result .= $nextprev;
1774
  endif;
1775
  $result .= "\n</div>";
1776
- if(isset($args['show_meta_prev_next']) && $args['show_meta_prev_next'] && $args['np_pos']=='bottom'):
1777
- $result .= '<div class="rotatingtweets_nextprev">'.$nextprev.'</div>';
 
 
 
 
1778
  endif;
1779
  /*
1780
  if($args['show_meta_progress_blobs']):
@@ -1793,6 +1897,57 @@ function rotating_tweets_display($json,$args,$print=TRUE) {
1793
  $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>";
1794
  endif;
1795
  rotatingtweets_enqueue_scripts();
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1796
  if($print) echo $result;
1797
  return($result);
1798
  }
@@ -1813,10 +1968,11 @@ function rotatingtweets_possible_rotations($dropbox = FALSE) {
1813
  'scrollLeft' => __('Scroll Left','rotatingtweets'),
1814
  'scrollRight' => __('Scroll Right','rotatingtweets'),
1815
  'fade' => __('Fade','rotatingtweets'),
1816
- 'carousel' => __('Carousel','rotatingtweets')
 
1817
  );
1818
  else:
1819
- $possibleRotations = array('scrollUp','scrollDown','scrollHorz','scrollLeft','scrollRight','toss','scrollVert','fade','carousel');
1820
  endif;
1821
  else:
1822
  if($dropbox):
@@ -1843,16 +1999,18 @@ function rotatingtweets_enqueue_scripts() {
1843
  if ( ! function_exists( 'is_plugin_active' ) )
1844
  require_once( ABSPATH . '/wp-admin/includes/plugin.php' );
1845
  // include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
 
1846
  if (is_plugin_active('wsi/wp-splash-image.php')) {
1847
  //plugin is activated
1848
- $dependence = array('jquery','jquery.tools.front');
1849
- } else {
1850
- $dependence = array('jquery');
 
1851
  }
1852
  # Check if we're using jQuery Cycle 1 or 2
1853
  $api = get_option('rotatingtweets-api-settings');
1854
  if(!isset($api['js_in_footer'])) $api['js_in_footer'] = FALSE;
1855
- $style = strtolower(get_stylesheet());
1856
  $rt_data = get_plugin_data( __FILE__ );
1857
  $rt_cycleversion = $rt_data;
1858
  // Fixes a problem with the magazino template
@@ -1869,6 +2027,20 @@ function rotatingtweets_enqueue_scripts() {
1869
  'jquery-cycle2-scrollvert' => plugins_url('cyclone-slider-2/libs/cycle2/jquery.cycle2.scrollVert.min.js'),
1870
  'rotating_tweet' => plugins_url('js/rotatingtweets_v2_cyclone.js', __FILE__)
1871
  );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1872
  elseif ( function_exists( 'newswire_custom_scripts' ) ):
1873
  $rt_enqueue_script_list = array(
1874
  'cycle2' => get_template_directory_uri() . '/library/js/jquery.cycle2.min.js' ,
@@ -1911,8 +2083,8 @@ function rotatingtweets_enqueue_scripts() {
1911
  break;
1912
  case 'avada':
1913
  case 'avada child':
1914
- case 'avada-child-theme':
1915
- case 'avada child theme':
1916
  case 'a52cars':
1917
  wp_dequeue_script( 'jquery.cycle');
1918
  wp_enqueue_script( 'jquery.cycle', plugins_url($cyclejsfile, __FILE__),$dependence,FALSE,$api['js_in_footer'] );
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.7.5
6
  Text Domain: rotatingtweets
7
  Author: Martin Tod
8
  Author URI: http://www.martintod.org.uk
48
  extract( $args );
49
  $title = apply_filters('widget_title', $instance['title']);
50
  $positive_variables = array('screen_name','shorten_links','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
+ $newargs['displaytype']='widget';
52
+ $newargs['w3tc_render_to']=$args['widget_id'];
53
  foreach($positive_variables as $var) {
54
  if(isset($instance['tw_'.$var])):
55
  $newargs[$var] = $instance['tw_'.$var];
78
  break;
79
  }
80
  if(empty($newargs['timeout'])) $newargs['timeout'] = 4000;
81
+ $newargs['text_cache_id'] = "rt-wg-".md5(serialize($newargs));
82
+ $rt_tweet_string = get_transient($newargs['text_cache_id']);
83
+ echo $before_widget;
84
+ if ( $title ):
85
+ echo $before_title . $title . $after_title;
86
+ endif;
87
+ if(empty($rt_tweet_string)):
88
+ switch($newargs['show_type']) {
89
+ case 1:
90
+ $tweets = rotatingtweets_get_tweets($newargs['screen_name'],$newargs['include_rts'],$newargs['exclude_replies'],true);
91
+ break;
92
+ case 2:
93
+ $tweets = rotatingtweets_get_tweets($newargs['screen_name'],$newargs['include_rts'],$newargs['exclude_replies'],false,$newargs['search']);
94
+ // $newargs['screen_name'] = ''; // Originally put in to avoid confusion when people have a 'follow' button and a search tweet
95
+ break;
96
+ case 3:
97
+ $tweets = rotatingtweets_get_tweets($newargs['screen_name'],$newargs['include_rts'],$newargs['exclude_replies'],false,false,$newargs['list_tag']);
98
+ break;
99
+ case 0:
100
+ default:
101
+ $tweets = rotatingtweets_get_tweets($newargs['screen_name'],$newargs['include_rts'],$newargs['exclude_replies']);
102
+ break;
103
+ }
104
+ $rt_tweet_string = rotating_tweets_display($tweets,$newargs,false);
105
+ elseif(WP_DEBUG):
106
+ $rt_tweet_string .= "<!-- Transient ".$newargs['text_cache_id']." loaded -->";
107
+ endif;
108
+ echo $rt_tweet_string.$after_widget;
109
  }
110
 
111
  /** @see WP_Widget::update */
281
  <?php
282
  $officialoptions = array (
283
  0 => __('Original rotating tweets layout','rotatingtweets'),
284
+ 1 => sprintf(__("<a target='_blank' href='%s'>Official Twitter guidelines</a> (regular)",'rotatingtweets'),'https://dev.twitter.com/overview/terms/display-requirements'),
285
+ 2 => sprintf(__("<a target='_blank' href='%s'>Official Twitter guidelines</a> (wide)",'rotatingtweets'),'https://dev.twitter.com/overview/terms/display-requirements'),
286
  );
287
  if (function_exists('rotatingtweets_display_override')) {
288
  $officialoptions['custom'] = __('Custom display layout','rotatingtweets');
485
  'show_meta_via' => TRUE,
486
  'show_meta_reply_retweet_favorite' => FALSE,
487
  'show_meta_prev_next' => FALSE,
488
+ 'show_meta_tweet_counter' => FALSE,
489
  'rotation_type' => 'scrollUp',
490
  'official_format' => FALSE,
491
  'links_in_new_window' => FALSE,
509
  'carousel_count' => 0,
510
  'carousel_responsive' => 0,
511
  'no_emoji' => 0,
512
+ 'show_tco_link' => 0,
513
+ 'w3tc_render_to' => '',
514
+ 'official_format_override'=>FALSE,
515
+ 'no_cache'=>FALSE,
516
+ 'text_cache_id'=>FALSE
517
  ), $atts ) ;
518
  extract($args);
519
  if(empty($screen_name) && empty($search) && !empty($url)):
523
  echo "<!-- $url => $screen_name -->";
524
  }
525
  endif;
526
+ $args['w3tc_render_to']=str_replace('widget','shortcode',$args['w3tc_render_to']);
527
+ if(!$args['text_cache_id']) $args['text_cache_id'] = "rt-sc-".md5(serialize($args));
528
+ $args['displaytype']='shortcode';
529
  if(empty($screen_name)) $screen_name = 'twitter';
530
  # Makes sure the scripts are listed
531
  rotatingtweets_enqueue_scripts();
532
+ $returnstring = get_transient($args['text_cache_id']);
533
+ if(strlen($returnstring)==0):
534
+ $tweets = rotatingtweets_get_tweets($screen_name,$include_rts,$exclude_replies,$get_favorites,$search,$list);
535
+ $returnstring = rotating_tweets_display($tweets,$args,$print);
536
+ elseif(WP_DEBUG):
537
+ $returnstring .= "<!-- Transient ".$args['text_cache_id']." loaded -->";
538
+ endif;
539
  return $returnstring;
540
  }
541
  add_shortcode( 'rotatingtweets', 'rotatingtweets_display_shortcode' );
905
  endif;
906
  return($result);
907
  }
908
+ /*
909
+ # Clear tweets (if too much memory used) // now handled by using separate transients
910
  function rotatingtweets_shrink_cache() {
911
  # Solves a problem that 40+ caches can overload the memory - cuts it to fewer without risking deletion of the tweets on display
912
  $optionname = "rotatingtweets-cache";
913
  $option = get_option($optionname);
914
  $numberidentities = count($option);
915
+ if(WP_DEBUG) echo "<!-- There are currently ".$numberidentities." Rotating Tweets identities cached -->";
916
  # If there are fewer than 10 sets of information cached - just return (for speed)
917
  if ( !is_array($option) or $numberidentities == 0 ) return;
918
  # Now make sure that we don't overwrite 'live' tweets
945
  if(WP_DEBUG) echo "<!-- There are now ".$numberidentities." identities cached -->";
946
  update_option($optionname,$option);
947
  }
948
+ */
949
+ function rotatingtweets_get_cache_delay() {
950
+ $cacheoption = get_option('rotatingtweets-api-settings');
951
+ if(!isset($cacheoption['cache_delay'])):
952
+ $cache_delay = 120;
953
+ else:
954
+ $cache_delay = max(60,intval($cacheoption['cache_delay']));
955
+ endif;
956
+ return($cache_delay);
957
+ }
958
  # Get the latest data from Twitter (or from a cache if it's been less than 2 minutes since the last load)
959
  function rotatingtweets_get_tweets($tw_screen_name,$tw_include_rts,$tw_exclude_replies,$tw_get_favorites = FALSE,$tw_search = FALSE,$tw_list = FALSE ) {
960
  # Set timer
961
  $rt_starttime = microtime(true);
 
 
962
  # Clear up variables
963
  $tw_screen_name = trim(remove_accents(str_replace('@','',$tw_screen_name)));
964
  if($tw_list):
976
  else:
977
  $tw_search = trim($tw_search);
978
  endif;
979
+ $cache_delay = rotatingtweets_get_cache_delay();
980
+ /*
981
  $cacheoption = get_option('rotatingtweets-api-settings');
982
  if(!isset($cacheoption['cache_delay'])):
983
  $cache_delay = 120;
984
  else:
985
  $cache_delay = max(60,intval($cacheoption['cache_delay']));
986
  endif;
987
+ */
988
  if($tw_include_rts != 1) $tw_include_rts = 0;
989
  if($tw_exclude_replies != 1) $tw_exclude_replies = 0;
990
 
991
  # Get the option strong
992
  if($tw_search) {
993
+ $stringname = 'search-'.$tw_include_rts.$tw_exclude_replies.'-'.$tw_search;
994
  } elseif ($tw_get_favorites) {
995
  $stringname = $tw_screen_name.$tw_include_rts.$tw_exclude_replies.'favorites';
996
  } elseif ($tw_list) {
998
  } else {
999
  $stringname = $tw_screen_name.$tw_include_rts.$tw_exclude_replies;
1000
  }
1001
+ // $optionname = "rotatingtweets-cache";
1002
+ // $option = delete_option($optionname);
1003
+ $transientname = substr('rtc-'.sanitize_file_name($stringname),0,45);
1004
+ // $transientname = str_replace(array('#','_'),'-',$transientname);
1005
+ $option = get_transient($transientname);
1006
+
1007
+ if(WP_DEBUG && !$option):
1008
+ echo "<!-- Option failed to load -->";
1009
+ // echo "<!-- Option \n";print_r($option);echo " -->";
1010
+ endif;
1011
+
1012
  # Attempt to deal with 'Cannot use string offset as an array' error
1013
  $timegap = $cache_delay + 1;
1014
  if(is_array($option)):
 
 
 
1015
  if(isset($option[$stringname]['json'][0])):
1016
  if(WP_DEBUG) echo "<!-- option[$stringname] exists -->";
1017
  if(is_array($option[$stringname]['json'][0])):
1033
  endif;
1034
  else:
1035
  if(WP_DEBUG):
1036
+ echo "\n<!-- var option is NOT an array\n";
1037
+ print_r($option);
1038
+ echo "\n-->";
1039
  endif;
1040
  unset($option);
1041
  endif;
1077
  $rate = rotatingtweets_get_rate_data();
1078
  if($rate && $rate['remaining_hits'] == 0):
1079
  $option[$stringname]['datetime']= $rate['reset_time_in_seconds'] - $cache_delay + 1;
1080
+ set_transient($transientname,$option,60*60*24*7);
1081
  else:
1082
  $option[$stringname]['datetime']=time();
1083
+ set_transient($transientname,$option,60*60*24*7);
1084
  endif;
1085
  else:
1086
  $option[$stringname]['datetime']=time();
1087
+ set_transient($transientname,$option,60*60*24*7);
1088
  endif;
1089
  elseif(!empty($twitterjson['error'])):
1090
  # If Twitter is being rate limited, delays the next load until the reset time
1092
  $rate = rotatingtweets_get_rate_data();
1093
  if($rate && $rate['remaining_hits'] == 0):
1094
  $option[$stringname]['datetime']= $rate['reset_time_in_seconds'] - $cache_delay + 1;
1095
+ set_transient($transientname,$option,60*60*24*7);
1096
  endif;
1097
  elseif(!empty($twitterjson)):
1098
  unset($firstentry);
1112
  $latest_json = rotatingtweets_shrink_json($twitterjson);
1113
  $option[$stringname]['json']=$latest_json;
1114
  $option[$stringname]['datetime']=time();
1115
+ $rtcacheresult = set_transient($transientname,$option,60*60*24*7);
1116
+ if($rtcacheresult && WP_DEBUG):
1117
+ echo "<!-- Successfully stored cache entry for $stringname in $transientname -->";
1118
+ elseif(WP_DEBUG):
1119
+ echo "<!-- Failed to store cache entry for $stringname in $transientname -->";
1120
  endif;
 
1121
  endif;
1122
  endif;
1123
  if(isset($latest_json)):
1139
  endif;
1140
  return($return);
1141
  }
1142
+ function rotatingtweets_shrink_element($json,$no_emoji=0) {
1143
  global $args;
1144
  $rt_top_elements = array('text','retweeted_status','user','entities','source','id_str','created_at','coordinates');
1145
  $return = array();
1155
  case "retweeted_status":
1156
  $return[$rt_element]=rotatingtweets_shrink_element($json[$rt_element]);
1157
  break;
1158
+ case "text":
1159
+ $json[$rt_element] = rotatingtweets_convert_charset($json[$rt_element]);
1160
  default:
1161
+ if($no_emoji):
1162
  $before='/\\p{C}/u'; # Removed all 'other' characters - http://php.net/manual/en/regexp.reference.unicode.php
1163
  $after='';
1164
  $json[$rt_element] = str_replace($before,$after,$json[$rt_element]);
1286
  $ratedata = rotatingtweets_call_twitter_API('statuses/user_timeline',$apidata);
1287
  }
1288
  }
1289
+ function rotatingtweets_convert_charset($string) {
1290
+ if( defined('DB_CHARSET') && strtoupper(DB_CHARSET) !='UTF-8' && strtoupper(DB_CHARSET)!= 'UTF8' && strtoupper(DB_CHARSET)!= '' ):
1291
+ $new_string = iconv("UTF-8",DB_CHARSET . '//TRANSLIT',$string);
1292
+ if(empty($new_string)):
1293
+ if(WP_DEBUG):
1294
+ echo "<!-- iconv to ".DB_CHARSET." failed -->";
1295
+ endif;
1296
+ return $string;
1297
+ else:
1298
+ return $new_string;
1299
+ endif;
1300
+ endif;
1301
+ return $string;
1302
+ }
1303
  # Displays the tweets
1304
+ function rotating_tweets_display($json,$args,$print=FALSE) {
1305
  unset($result);
1306
+ $rt_cache_delay = rotatingtweets_get_cache_delay();
1307
  $tweet_count = max(1,intval($args['tweet_count']));
1308
  $timeout = max(intval($args['timeout']),0);
1309
  $defaulturllength = 29;
1348
  $nextprev = '';
1349
  # Put in the 'next / prev' buttons - although not very styled!
1350
  if(isset($args['show_meta_prev_next']) && $args['show_meta_prev_next']):
1351
+ $nextprev_prev = '<a href="#" class="'.$id.'_rtw_prev rtw_prev">'.wp_kses_post($args['prev']).'</a>';
1352
+ $nextprev_next = '<a href="#" class="'.$id.'_rtw_next rtw_next">'.wp_kses_post($args['next']).'</a>';
1353
+ $nextprev = $nextprev_prev.wp_kses_post($args['middot']).$nextprev_next;
1354
  if(strtolower($args['np_pos'])=='top'):
1355
  $result .= '<div class="rotatingtweets_nextprev">'.$nextprev.'</div>';
1356
+ elseif(strtolower($args['np_pos'])=='beforeafter'):
1357
+ $result .= '<div class="rotatingtweets_nextprev">'.$nextprev_prev.'</div>';
1358
  endif;
1359
  endif;
1360
  if(isset($args['no_rotate']) && $args['no_rotate']):
1416
  $result .= "\n\t<div class = 'rotatingtweet'><p class='rtw_main'>". __('Problem retrieving data from Twitter','rotatingtweets'). "</p></div>";
1417
  if(!empty($error)):
1418
  $result .= "\n<div class = 'rotatingtweet' style='display:none'><p class='rtw_main'>".sprintf(__('%3$s error code: %1$s - %2$s','rotatingtweets'), esc_html($error[0]['code']), esc_html($error[0]['message']),esc_html($error[0]['type'])). "</p></div>";
1419
+ $rt_cache_delay = 10;
1420
  switch($error[0]['code']) {
1421
  case 88:
1422
  $rate = rotatingtweets_get_rate_data();
1424
  $result .= "\n\t<div class = 'rotatingtweet' style='display:none'><p class='rtw_main'>". sprintf(__('This website is currently <a href=\'%s\'>rate-limited by Twitter</a>.','rotatingtweets'),'https://dev.twitter.com/docs/rate-limiting-faq') . "</p></div>";
1425
  if(isset($rate['hourly_limit']) && $rate['hourly_limit']>0 && $rate['remaining_hits'] == 0):
1426
  $waittimevalue = intval(($rate['reset_time_in_seconds'] - time())/60);
1427
+ $rt_cache_delay = $rate['reset_time_in_seconds'] - time();
1428
  $waittime = sprintf(_n('Next attempt to get data will be in %d minute','Next attempt to get data will be in %d minutes',$waittimevalue,'rotatingtweets'),$waittimevalue);
1429
  if($waittimevalue == 0) $waittime = __("Next attempt to get data will be in less than a minute",'rotatingtweets');
1430
  $result .= "\n\t<div class = 'rotatingtweet' style='display:none'><p class='rtw_main'>{$waittime}.</p></div>";
1611
  // $before[]='/\\p{InGreek_Extended}/u'; #Not supported by PCRE http://php.net/manual/en/regexp.reference.unicode.php
1612
  $before[]='/\\p{C}/u'; # Removed all 'other' characters - http://php.net/manual/en/regexp.reference.unicode.php
1613
  $after[]='';
1614
+ endif;
1615
+ /*
1616
  if( defined('DB_CHARSET') && strtoupper(DB_CHARSET) !='UTF-8' && strtoupper(DB_CHARSET)!= 'UTF8' && strtoupper(DB_CHARSET)!= '' ):
1617
  $new_text = iconv("UTF-8",DB_CHARSET . '//TRANSLIT',$main_text);
1618
  if(empty($main_text)):
1623
  $main_text = $new_text;
1624
  endif;
1625
  endif;
1626
+ */
1627
+ $main_text = rotatingtweets_convert_charset($main_text);
1628
  $new_text = preg_replace($before,$after,$main_text);
1629
  if(empty($new_text)):
1630
  if(WP_DEBUG):
1697
  if(!empty($meta)) $meta .= ' &middot; ';
1698
  $meta .= rotatingtweets_intents($twitter_object,$twitterlocale, 0,$targetvalue);
1699
  endif;
1700
+ if(isset($args['show_meta_tweet_counter']) && $args['show_meta_tweet_counter']):
1701
+ if(!empty($meta)) $meta .= ' &middot; ';
1702
+ $meta .= sprintf(__('%1$s of %2$s','rotatingtweets'),$tweet_counter,$tweet_count);
1703
+ endif;
1704
 
1705
  if(isset($args['show_meta_prev_next']) && $args['show_meta_prev_next'] && $args['np_pos']=='tweets'):
1706
  if(!empty($meta)) $meta .= ' &middot; ';
1721
  if(isset($args['show_media']) && !empty($show_media)):
1722
  $result .= "<div class='rtw_media'>$show_media</div>";
1723
  endif;
1724
+ $result .= "\n\t<div class='rtw_meta'>";
1725
+ if($args['show_meta_reply_retweet_favorite'] || !isset($args['official_format_override']) || !$args['official_format_override'] ):
1726
+ $result .= "<div class='rtw_intents'>".rotatingtweets_intents($twitter_object,$twitterlocale, 1,$targetvalue).'</div>';
1727
+ endif;
1728
+ if($args['show_meta_timestamp'] || !isset($args['official_format_override']) || !$args['official_format_override'] ):
1729
+ $result .= "\n\t<div class='rtw_timestamp'>".rotatingtweets_timestamp_link($twitter_object,'long',$targetvalue);
1730
+ if(isset($retweeter)) {
1731
+ $result .= " &middot; </div>".rotatingtweets_user_intent($retweeter,$twitterlocale,sprintf(__('Retweeted by %s','rotatingtweets'),$retweeter['name']),$targetvalue);
1732
+ } else {
1733
+ $result .= "</div>";
1734
+ }
1735
+ endif;
1736
  if(isset($args['show_meta_prev_next']) && $args['show_meta_prev_next'] && $args['np_pos']=='tweets'):
1737
  $result .= " &middot; ".$nextprev;
1738
  endif;
1743
  $result .= "\n\t\t<div class='rtw_wide'>";
1744
  $result .= "\n\t\t<div class='rtw_wide_icon'>".rotatingtweets_user_intent($tweetuser,$twitterlocale,'icon',$targetvalue)."</div>";
1745
  $result .= "\n\t\t<div class='rtw_wide_block'><div class='rtw_info'>";
1746
+ if($args['show_meta_timestamp'] && isset($args['official_format_override']) && $args['official_format_override'] ):
1747
+ $result .= "\n\t\t\t<div class='rtw_time_short'>".rotatingtweets_timestamp_link($twitter_object,'short',$targetvalue).'</div>';
1748
+ endif;
1749
  $result .= "\n\t\t\t<div class='rtw_name'>".rotatingtweets_user_intent($tweetuser,$twitterlocale,'name',$targetvalue)."</div>";
1750
  $result .= "\n\t\t\t<div class='rtw_id'>".rotatingtweets_user_intent($tweetuser,$twitterlocale,'screen_name',$targetvalue)."</div>";
1751
  $result .= "\n\t\t</div>";
1757
  if(isset($retweeter)) {
1758
  $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>";
1759
  }
1760
+ if($args['show_meta_reply_retweet_favorite'] || !isset($args['official_format_override']) || !$args['official_format_override'] || $args['displaytype']=='widget' || (isset($args['show_meta_prev_next']) && $args['show_meta_prev_next'] && $args['np_pos']=='tweets') ):
1761
+ $result .= "\n\t\t<div class='rtw_meta'><span class='rtw_expand' style='display:none;'>".__('Expand','rotatingtweets')."</span><span class='rtw_intents'>";
1762
+ if($args['show_meta_reply_retweet_favorite'] || !isset($args['official_format_override']) || !$args['official_format_override'] || $args['displaytype']=='widget' ):
1763
+ $result .= rotatingtweets_intents($twitter_object,$twitterlocale, 2,$targetvalue);
1764
+ endif;
1765
+ if(($args['show_meta_reply_retweet_favorite'] || !isset($args['official_format_override']) || !$args['official_format_override'] || $args['displaytype']=='widget' ) && (isset($args['show_meta_prev_next']) && $args['show_meta_prev_next'] && $args['np_pos']=='tweets')):
1766
+ $result .= wp_kses_post($args['middot']);
1767
+ endif;
1768
+ if(isset($args['show_meta_prev_next']) && $args['show_meta_prev_next'] && $args['np_pos']=='tweets'):
1769
+ $result .= $nextprev;
1770
+ endif;
1771
+ $result .= "</span></div>";
1772
  endif;
1773
+ $result .= "</div></div>";
1774
  break;
1775
  case 3:
1776
  # This one uses the twitter standard approach for embedding via their javascript API - unfortunately I can't work out how to make it work with the rotating tweet javascript! If anyone can work out how to calculate the height of a oEmbed Twitter tweet, I will be very grateful! :-)
1783
  $result .= "\n\t\t<p class='rtw_main'>$main_text</p>";
1784
  $result .= "\n\t<div class='rtw_meta rtw_info'><div class='rtw_intents'>".rotatingtweets_intents($twitter_object,$twitterlocale, 1,$targetvalue).'</div>';
1785
  if($args['show_meta_screen_name']):
1786
+ if(!empty($meta)) $meta .= ' ';
1787
+ if(isset($args['screen_name_plural'])):
1788
+ $screennamecount = max(1,$args['screen_name_plural']+1);
1789
+ else:
1790
+ $screennamecount = 1;
1791
+ endif;
1792
+ $meta .= sprintf(_n('from <a href=\'%1$s\' title=\'%2$s\'>%2$s\'s Twitter</a>','from <a href=\'%1$s\' title=\'%2$s\'>%2$s\' Twitter</a>',$screennamecount,'rotatingtweets'),'https://twitter.com/intent/user?user_id='.$user['id'],$user['name']);
1793
+ endif; $result .= rotatingtweets_timestamp_link($twitter_object,'long',$targetvalue);
1794
  if(isset($args['show_meta_prev_next']) && $args['show_meta_prev_next'] && $args['np_pos']=='tweets'):
1795
  $result .= ' &middot; '.$nextprev;
1796
  endif;
1805
  endif;
1806
  if($args['show_meta_screen_name']):
1807
  if(!empty($meta)) $meta .= ' ';
1808
+ if(isset($args['screen_name_plural'])):
1809
+ $screennamecount = max(1,$args['screen_name_plural']+1);
1810
+ else:
1811
+ $screennamecount = 1;
1812
+ endif;
1813
+ $meta .= sprintf(_n('from <a href=\'%1$s\' title=\'%2$s\'>%2$s\'s Twitter</a>','from <a href=\'%1$s\' title=\'%2$s\'>%2$s\' Twitter</a>',$screennamecount,'rotatingtweets'),'https://twitter.com/intent/user?user_id='.$user['id'],$user['name']);
1814
  endif;
1815
  if($args['show_meta_via']):
1816
  if(!empty($meta)) $meta .= ' ';
1835
  endif;
1836
  if($args['show_meta_screen_name']):
1837
  if(!empty($meta)) $meta .= ' ';
1838
+ if(isset($args['screen_name_plural'])):
1839
+ $screennamecount = max(1,$args['screen_name_plural']+1);
1840
+ else:
1841
+ $screennamecount = 1;
1842
+ endif;
1843
+ $meta .= sprintf(_n('from <a href=\'%1$s\' title=\'%2$s\'>%2$s\'s Twitter</a>','from <a href=\'%1$s\' title=\'%2$s\'>%2$s\' Twitter</a>',$screennamecount,'rotatingtweets'),'https://twitter.com/intent/user?user_id='.$user['id'],$user['name']);
1844
  endif;
1845
  if($args['show_meta_via']):
1846
  if(!empty($meta)) $meta .= ' ';
1869
  endif;
1870
  endforeach;
1871
  endif;
1872
+ if(isset($args['show_meta_prev_next']) && $args['show_meta_prev_next'] && isset($args['np_pos']) && $args['np_pos']=='insidebottom'):
1873
  $result .= $nextprev;
1874
  endif;
1875
  $result .= "\n</div>";
1876
+ if(isset($args['show_meta_prev_next']) && $args['show_meta_prev_next'] && isset($args['np_pos'])):
1877
+ if(strtolower($args['np_pos'])=='bottom'):
1878
+ $result .= '<div class="rotatingtweets_nextprev">'.$nextprev.'</div>';
1879
+ elseif(strtolower($args['np_pos'])=='beforeafter'):
1880
+ $result .= '<div class="rotatingtweets_nextprev">'.$nextprev_next.'</div>';
1881
+ endif;
1882
  endif;
1883
  /*
1884
  if($args['show_meta_progress_blobs']):
1897
  $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>";
1898
  endif;
1899
  rotatingtweets_enqueue_scripts();
1900
+ $rt_cache_delay = max($rt_cache_delay,20);
1901
+ if( defined('W3TC_DYNAMIC_SECURITY') && function_exists('w3_instance') && !( isset($args['no_cache']) && $args['no_cache']==TRUE )):
1902
+ $w3config = w3_instance('W3_Config');
1903
+ $w3_pgcache_enabled = $w3config->get_boolean('pgcache.enabled');
1904
+ $w3_pgcache_engine = $w3config->get_string('pgcache.engine');
1905
+ $w3_late_init = $w3config->get_boolean('pgcache.late_init');
1906
+ $w3_debug = $w3config->get_boolean('pgcache.debug');
1907
+ $w3_browsercompression = $w3config->get_boolean('browsercache.enabled') && $w3config->get_boolean('browsercache.html.compression') && function_exists('gzencode') && isset($_SERVER['HTTP_ACCEPT_ENCODING']) && (stristr($_SERVER['HTTP_ACCEPT_ENCODING'], 'gzip') !== false);
1908
+ if( $w3_pgcache_enabled && ($w3_pgcache_engine != 'file_generic') && $w3_late_init && isset($args['w3tc_render_to']) && !empty($args['w3tc_render_to']) && !$w3_browsercompression):
1909
+ $rt_transient_name = substr(sanitize_file_name('rt_w3tc_'.$args['w3tc_render_to']),0,44);
1910
+ $rt_cached_args = $args;
1911
+ $rt_cached_args['no_cache']=TRUE;
1912
+ $rt_w3tc_cache_lifetime = $w3config->get_integer('pgcache.lifetime');
1913
+ $rt_cached_args['text_cache_id'] = "rt-mf-".substr($args['text_cache_id'],6,1000);
1914
+ set_transient($rt_transient_name,$rt_cached_args, $rt_w3tc_cache_lifetime * 2 );
1915
+ set_transient($rt_cached_args['text_cache_id'],$result,$rt_cache_delay);
1916
+ $result = '<!-- mfunc '.W3TC_DYNAMIC_SECURITY.' $rt=get_transient("'.$rt_cached_args['text_cache_id'].'");if(!empty($rt)){echo $rt;}else{$args=get_transient("'.$rt_transient_name.'");rotatingtweets_display($args);}; --><!-- /mfunc '.W3TC_DYNAMIC_SECURITY.' -->';
1917
+ if(WP_DEBUG || $w3_debug ):
1918
+ $result .= "<!-- Rotating Tweets W3TC Fragment Caching: Success ! -->";
1919
+ endif;
1920
+ elseif(WP_DEBUG || $w3_debug ):
1921
+ $result .= "<!-- Rotating Tweets W3TC Fragment Caching: Start Diagnostics -->";
1922
+ if( !defined ('W3TC_DYNAMIC_SECURITY' ) ):
1923
+ $result .= "<!-- W3TC_DYNAMIC_SECURITY not defined -->";
1924
+ endif;
1925
+ if( !$w3_pgcache_enabled ):
1926
+ $result .= "<!-- Page Cache not enabled on the W3 Total Cache settings page -->";
1927
+ endif;
1928
+ if( $w3_pgcache_engine == 'file_generic' ):
1929
+ $result .= "<!-- Fragment Caching does not work if Page Cache Method is 'Disk: Enhanced' -->";
1930
+ endif;
1931
+ if (!(isset($args['w3tc_render_to']) && !empty($args['w3tc_render_to']))):
1932
+ $result .= "<!-- Rotating Tweets shortcode option 'w3tc_render_to' not defined -->";
1933
+ endif;
1934
+ if (!$w3_late_init ):
1935
+ $result .= "<!-- 'Late Initialization' not enabled on the W3 Total Cache Page Cache settings page -->";
1936
+ endif;
1937
+ if ( $w3_browsercompression ):
1938
+ $result .= "<!-- HTTP Compression needs to be disabled on the W3 Total Cache Browser Cache settings page -->";
1939
+ endif;
1940
+ $result .= "<!-- Rotating Tweets W3TC Fragment Caching: End Diagnostics -->";
1941
+ endif;
1942
+ endif;
1943
+ $rt_set_transient = set_transient($args['text_cache_id'],$result,$rt_cache_delay);
1944
+ if(WP_DEBUG):
1945
+ if($rt_set_transient):
1946
+ echo "<!-- Transient ".$args['text_cache_id']." stored for $rt_cache_delay seconds -->";
1947
+ else:
1948
+ echo "<!-- Transient ".$args['text_cache_id']." FAILED to store for $rt_cache_delay seconds -->";
1949
+ endif;
1950
+ endif;
1951
  if($print) echo $result;
1952
  return($result);
1953
  }
1968
  'scrollLeft' => __('Scroll Left','rotatingtweets'),
1969
  'scrollRight' => __('Scroll Right','rotatingtweets'),
1970
  'fade' => __('Fade','rotatingtweets'),
1971
+ 'carousel' => __('Carousel','rotatingtweets'),
1972
+ 'scrollLeftGap' => __('Scroll Left (with gap)','rotatingtweets')
1973
  );
1974
  else:
1975
+ $possibleRotations = array('scrollUp','scrollDown','scrollHorz','scrollLeft','scrollRight','toss','scrollVert','fade','carousel','scrollLeftGap');
1976
  endif;
1977
  else:
1978
  if($dropbox):
1999
  if ( ! function_exists( 'is_plugin_active' ) )
2000
  require_once( ABSPATH . '/wp-admin/includes/plugin.php' );
2001
  // include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
2002
+ $dependence = array('jquery');
2003
  if (is_plugin_active('wsi/wp-splash-image.php')) {
2004
  //plugin is activated
2005
+ $dependence[] = 'jquery.tools.front';
2006
+ };
2007
+ if(function_exists('pwc_theme_name_scripts')) {
2008
+ $dependence[] = 'global-js';
2009
  }
2010
  # Check if we're using jQuery Cycle 1 or 2
2011
  $api = get_option('rotatingtweets-api-settings');
2012
  if(!isset($api['js_in_footer'])) $api['js_in_footer'] = FALSE;
2013
+ $style = trim(strtolower(get_stylesheet()));
2014
  $rt_data = get_plugin_data( __FILE__ );
2015
  $rt_cycleversion = $rt_data;
2016
  // Fixes a problem with the magazino template
2027
  'jquery-cycle2-scrollvert' => plugins_url('cyclone-slider-2/libs/cycle2/jquery.cycle2.scrollVert.min.js'),
2028
  'rotating_tweet' => plugins_url('js/rotatingtweets_v2_cyclone.js', __FILE__)
2029
  );
2030
+ elseif ( $style == 'digital catapult' || $style == 'digitalcatapult' ):
2031
+ $rt_enqueue_script_list = array(
2032
+ 'jquery-cycle2' => get_template_directory_uri() . '/scripts/jquery.cycle2.min.js' ,
2033
+ 'jquery-cycle2_scrollvert' => plugins_url('js/jquery.cycle2.scrollVert.js', __FILE__),
2034
+ 'jquery-cycle2_carousel' => plugins_url('js/jquery.cycle2.carousel.js', __FILE__),
2035
+ 'rotating_tweet' => plugins_url('js/rotatingtweets_v2_cyclone.js', __FILE__)
2036
+ );
2037
+ elseif ( $style == 'politicalpress child theme' || $style == 'politicalpress theme' || $style == 'politicalpress-child-theme' ):
2038
+ $rt_enqueue_script_list = array(
2039
+ 'cycle2' => get_template_directory_uri() . '/js/jquery.cycle2.min.js' ,
2040
+ 'jquery-cycle2_scrollvert' => plugins_url('js/jquery.cycle2.scrollVert.js', __FILE__),
2041
+ 'jcarousel' => get_template_directory_uri().'/js/jquery.jcarousel.min.js' ,
2042
+ 'rotating_tweet' => plugins_url('js/rotatingtweets_v2_cyclone.js', __FILE__)
2043
+ );
2044
  elseif ( function_exists( 'newswire_custom_scripts' ) ):
2045
  $rt_enqueue_script_list = array(
2046
  'cycle2' => get_template_directory_uri() . '/library/js/jquery.cycle2.min.js' ,
2083
  break;
2084
  case 'avada':
2085
  case 'avada child':
2086
+ // case 'avada-child-theme':
2087
+ // case 'avada child theme':
2088
  case 'a52cars':
2089
  wp_dequeue_script( 'jquery.cycle');
2090
  wp_enqueue_script( 'jquery.cycle', plugins_url($cyclejsfile, __FILE__),$dependence,FALSE,$api['js_in_footer'] );