Version Description
- Twitter JavaScript only loads if Follow button is set to be displayed and the user has not set 'Do Not Track'.
=
Download this release
Release Info
Developer | mpntod |
Plugin | Rotating Tweets (Twitter widget and shortcode) |
Version | 1.9.6 |
Comparing to | |
See all releases |
Code changes from version 1.9.5 to 1.9.6
- js/rotating_tweet.js +21 -20
- js/rotatingtweets_v2.js +22 -21
- js/rotatingtweets_v2_cyclone.js +23 -23
- readme.txt +9 -3
- rotatingtweets.php +1 -1
js/rotating_tweet.js
CHANGED
@@ -2,6 +2,26 @@
|
|
2 |
Script to cycle the rotating tweets
|
3 |
*/
|
4 |
jQuery(document).ready(function() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
5 |
jQuery('.rotatingtweets').each(function() {
|
6 |
/* Get the ID of the rotating tweets div - and parse it to get rotation speed and rotation fx */
|
7 |
var rotate_id = "#"+this.id,
|
@@ -287,23 +307,4 @@ jQuery(document).ready(function() {
|
|
287 |
jQuery(this).find('.rtw_intents').hide();
|
288 |
});
|
289 |
});
|
290 |
-
|
291 |
-
// Do (or don't do) stuff.
|
292 |
-
/* And call the Twitter script while we're at it! */
|
293 |
-
window.twttr = (function(d, s, id) {
|
294 |
-
var js, fjs = d.getElementsByTagName(s)[0],
|
295 |
-
t = window.twttr || {};
|
296 |
-
if (d.getElementById(id)) return t;
|
297 |
-
js = d.createElement(s);
|
298 |
-
js.id = id;
|
299 |
-
js.src = "https://platform.twitter.com/widgets.js";
|
300 |
-
fjs.parentNode.insertBefore(js, fjs);
|
301 |
-
|
302 |
-
t._e = [];
|
303 |
-
t.ready = function(f) {
|
304 |
-
t._e.push(f);
|
305 |
-
};
|
306 |
-
|
307 |
-
return t;
|
308 |
-
}(document, "script", "twitter-wjs"));
|
309 |
-
};
|
2 |
Script to cycle the rotating tweets
|
3 |
*/
|
4 |
jQuery(document).ready(function() {
|
5 |
+
if(navigator.doNotTrack != 'yes' && navigator.doNotTrack != 1 && window.doNotTrack != 1 && navigator.msDoNotTrack != 1 && jQuery('div.follow-button').length ) {
|
6 |
+
// Do (or don't do) stuff.
|
7 |
+
/* And call the Twitter script while we're at it! */
|
8 |
+
window.twttr = (function(d, s, id) {
|
9 |
+
var js, fjs = d.getElementsByTagName(s)[0],
|
10 |
+
t = window.twttr || {};
|
11 |
+
if (d.getElementById(id)) return t;
|
12 |
+
js = d.createElement(s);
|
13 |
+
js.id = id;
|
14 |
+
js.src = "https://platform.twitter.com/widgets.js";
|
15 |
+
fjs.parentNode.insertBefore(js, fjs);
|
16 |
+
|
17 |
+
t._e = [];
|
18 |
+
t.ready = function(f) {
|
19 |
+
t._e.push(f);
|
20 |
+
};
|
21 |
+
|
22 |
+
return t;
|
23 |
+
}(document, "script", "twitter-wjs"));
|
24 |
+
};
|
25 |
jQuery('.rotatingtweets').each(function() {
|
26 |
/* Get the ID of the rotating tweets div - and parse it to get rotation speed and rotation fx */
|
27 |
var rotate_id = "#"+this.id,
|
307 |
jQuery(this).find('.rtw_intents').hide();
|
308 |
});
|
309 |
});
|
310 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
js/rotatingtweets_v2.js
CHANGED
@@ -97,9 +97,30 @@ function rotatingtweetsInteraction( targetid ) {
|
|
97 |
Script to cycle the rotating tweets
|
98 |
*/
|
99 |
jQuery(document).ready(function() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
100 |
rotatingtweetsInteraction('.rotatingtweets');
|
101 |
|
102 |
-
if ( 'undefined' === typeof wp || ! wp.customize || ! wp.customize.selectiveRefresh ) {
|
103 |
return;
|
104 |
};
|
105 |
// Re-load Twitter widgets when a partial is rendered.
|
@@ -117,23 +138,3 @@ jQuery(document).ready(function() {
|
|
117 |
};
|
118 |
} );
|
119 |
});
|
120 |
-
if(navigator.doNotTrack != 'yes' && navigator.doNotTrack != 1 && window.doNotTrack != 1 && navigator.msDoNotTrack != 1) {
|
121 |
-
/* And call the Twitter script while we're at it! */
|
122 |
-
/* Standard script to call Twitter */
|
123 |
-
window.twttr = (function(d, s, id) {
|
124 |
-
var js, fjs = d.getElementsByTagName(s)[0],
|
125 |
-
t = window.twttr || {};
|
126 |
-
if (d.getElementById(id)) return t;
|
127 |
-
js = d.createElement(s);
|
128 |
-
js.id = id;
|
129 |
-
js.src = "https://platform.twitter.com/widgets.js";
|
130 |
-
fjs.parentNode.insertBefore(js, fjs);
|
131 |
-
|
132 |
-
t._e = [];
|
133 |
-
t.ready = function(f) {
|
134 |
-
t._e.push(f);
|
135 |
-
};
|
136 |
-
|
137 |
-
return t;
|
138 |
-
}(document, "script", "twitter-wjs"));
|
139 |
-
};
|
97 |
Script to cycle the rotating tweets
|
98 |
*/
|
99 |
jQuery(document).ready(function() {
|
100 |
+
if (navigator.doNotTrack != 'yes' && navigator.doNotTrack != 1 && window.doNotTrack != 1 && navigator.msDoNotTrack != 1 && jQuery('div.follow-button').length ) {
|
101 |
+
/* And call the Twitter script while we're at it! */
|
102 |
+
/* Standard script to call Twitter */
|
103 |
+
window.twttr = (function(d, s, id) {
|
104 |
+
var js, fjs = d.getElementsByTagName(s)[0],
|
105 |
+
t = window.twttr || {};
|
106 |
+
if (d.getElementById(id)) return t;
|
107 |
+
js = d.createElement(s);
|
108 |
+
js.id = id;
|
109 |
+
js.src = "https://platform.twitter.com/widgets.js";
|
110 |
+
fjs.parentNode.insertBefore(js, fjs);
|
111 |
+
|
112 |
+
t._e = [];
|
113 |
+
t.ready = function(f) {
|
114 |
+
t._e.push(f);
|
115 |
+
};
|
116 |
+
|
117 |
+
return t;
|
118 |
+
}(document, "script", "twitter-wjs"));
|
119 |
+
};
|
120 |
+
|
121 |
rotatingtweetsInteraction('.rotatingtweets');
|
122 |
|
123 |
+
if ( 'undefined' === typeof wp || ! wp.customize || ! wp.customize.selectiveRefresh || ! jQuery('div.follow-button').length ) {
|
124 |
return;
|
125 |
};
|
126 |
// Re-load Twitter widgets when a partial is rendered.
|
138 |
};
|
139 |
} );
|
140 |
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
js/rotatingtweets_v2_cyclone.js
CHANGED
@@ -97,9 +97,29 @@ function rotatingtweetsInteraction( targetid ) {
|
|
97 |
Script to cycle the rotating tweets
|
98 |
*/
|
99 |
jQuery(document).ready(function() {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
100 |
jQuery('.rotatingtweets').cycle();
|
101 |
rotatingtweetsInteraction('.rotatingtweets');
|
102 |
-
|
103 |
if ( 'undefined' === typeof wp || ! wp.customize || ! wp.customize.selectiveRefresh ) {
|
104 |
return;
|
105 |
};
|
@@ -110,31 +130,11 @@ jQuery(document).ready(function() {
|
|
110 |
rotatingtweetsInteraction(newid + " > .rotatingtweets" );
|
111 |
jQuery( newid + " > .rotatingtweets" ).cycle('destroy');
|
112 |
jQuery( newid + " > .rotatingtweets" ).cycle();
|
113 |
-
if(navigator.doNotTrack != 'yes' && navigator.doNotTrack != 1 && window.doNotTrack != 1 && navigator.msDoNotTrack != 1) {
|
114 |
twttr.widgets.load(
|
115 |
document.getElementById(newid)
|
116 |
);
|
117 |
};
|
118 |
};
|
119 |
} );
|
120 |
-
});
|
121 |
-
if(navigator.doNotTrack != 'yes' && navigator.doNotTrack != 1 && window.doNotTrack != 1 && navigator.msDoNotTrack != 1) {
|
122 |
-
/* And call the Twitter script while we're at it! */
|
123 |
-
/* Standard script to call Twitter */
|
124 |
-
window.twttr = (function(d, s, id) {
|
125 |
-
var js, fjs = d.getElementsByTagName(s)[0],
|
126 |
-
t = window.twttr || {};
|
127 |
-
if (d.getElementById(id)) return t;
|
128 |
-
js = d.createElement(s);
|
129 |
-
js.id = id;
|
130 |
-
js.src = "https://platform.twitter.com/widgets.js";
|
131 |
-
fjs.parentNode.insertBefore(js, fjs);
|
132 |
-
|
133 |
-
t._e = [];
|
134 |
-
t.ready = function(f) {
|
135 |
-
t._e.push(f);
|
136 |
-
};
|
137 |
-
|
138 |
-
return t;
|
139 |
-
}(document, "script", "twitter-wjs"));
|
140 |
-
};
|
97 |
Script to cycle the rotating tweets
|
98 |
*/
|
99 |
jQuery(document).ready(function() {
|
100 |
+
if (navigator.doNotTrack != 'yes' && navigator.doNotTrack != 1 && window.doNotTrack != 1 && navigator.msDoNotTrack != 1 && jQuery('div.follow-button').length ) {
|
101 |
+
/* And call the Twitter script while we're at it! */
|
102 |
+
/* Standard script to call Twitter */
|
103 |
+
window.twttr = (function(d, s, id) {
|
104 |
+
var js, fjs = d.getElementsByTagName(s)[0],
|
105 |
+
t = window.twttr || {};
|
106 |
+
if (d.getElementById(id)) return t;
|
107 |
+
js = d.createElement(s);
|
108 |
+
js.id = id;
|
109 |
+
js.src = "https://platform.twitter.com/widgets.js";
|
110 |
+
fjs.parentNode.insertBefore(js, fjs);
|
111 |
+
|
112 |
+
t._e = [];
|
113 |
+
t.ready = function(f) {
|
114 |
+
t._e.push(f);
|
115 |
+
};
|
116 |
+
|
117 |
+
return t;
|
118 |
+
}(document, "script", "twitter-wjs"));
|
119 |
+
};
|
120 |
+
|
121 |
jQuery('.rotatingtweets').cycle();
|
122 |
rotatingtweetsInteraction('.rotatingtweets');
|
|
|
123 |
if ( 'undefined' === typeof wp || ! wp.customize || ! wp.customize.selectiveRefresh ) {
|
124 |
return;
|
125 |
};
|
130 |
rotatingtweetsInteraction(newid + " > .rotatingtweets" );
|
131 |
jQuery( newid + " > .rotatingtweets" ).cycle('destroy');
|
132 |
jQuery( newid + " > .rotatingtweets" ).cycle();
|
133 |
+
if(navigator.doNotTrack != 'yes' && navigator.doNotTrack != 1 && window.doNotTrack != 1 && navigator.msDoNotTrack != 1 && jQuery('div.follow-button').length ) {
|
134 |
twttr.widgets.load(
|
135 |
document.getElementById(newid)
|
136 |
);
|
137 |
};
|
138 |
};
|
139 |
} );
|
140 |
+
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
|
|
4 |
Tags: shortcode,widget,twitter,rotating,rotate,rotator,tweet,tweets,animation,jquery,jquery cycle,cycle,multilingual,responsive,page builder,do not track,dnt
|
5 |
Requires at least: 3.2
|
6 |
Tested up to: 4.9
|
7 |
-
Stable tag: 1.9.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -170,6 +170,9 @@ If there is only one copy of `jquery` and of `jquery.cycle` on your page, the be
|
|
170 |
1. In Chrome or IE, select the tab marked 'console'.
|
171 |
1. Read the diagnostics and look for any problems that relate to JavaScript. This will normally tell you which JavaScript (if any) is having problems.
|
172 |
|
|
|
|
|
|
|
173 |
= What can I do if I get the WordPress error code: `http_request_failed - name lookup timed out`? =
|
174 |
Try installing the [Core Control plug-in](/plugins/core-control/) and disabling cURL. You can read more about the problem via [this support page](http://wordpress.org/support/topic/wp-351-wordpress-error-code-http_request_failed-name-lookup-timed-out).
|
175 |
|
@@ -188,10 +191,13 @@ into your CSS - changing `123px;` to the width you're aiming at - either via [ad
|
|
188 |
You can do this by going to the `rotatingtweets/css` directory, opening `rotatingtweets-sample.css` and copying its contents (modifying the link to the bird graphic to match your site) into [additional CSS](https://codex.wordpress.org/CSS#Custom_CSS_in_WordPress) (the preferred approach from Wordpress 4.7 onwards) on the [Appearance Customize Screen](https://codex.wordpress.org/Appearance_Customize_Screen) page. Alternatively rename `rotatingtweets-sample.css` to `rotatingtweets.css` and put it in the `wp-content/uploads/` directory. Or copy the CSS into your own template files. Any of these approaches will display a Twitter bird to the left of your tweets.
|
189 |
|
190 |
== Upgrade notice ==
|
191 |
-
= 1.9.
|
192 |
-
*
|
193 |
|
194 |
== Changelog ==
|
|
|
|
|
|
|
195 |
= 1.9.5 =
|
196 |
* Fixed compatibility with Brilliance Pro template
|
197 |
|
4 |
Tags: shortcode,widget,twitter,rotating,rotate,rotator,tweet,tweets,animation,jquery,jquery cycle,cycle,multilingual,responsive,page builder,do not track,dnt
|
5 |
Requires at least: 3.2
|
6 |
Tested up to: 4.9
|
7 |
+
Stable tag: 1.9.6
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
170 |
1. In Chrome or IE, select the tab marked 'console'.
|
171 |
1. Read the diagnostics and look for any problems that relate to JavaScript. This will normally tell you which JavaScript (if any) is having problems.
|
172 |
|
173 |
+
= Does Rotating Tweets help me support GDPR? =
|
174 |
+
Yes. No user data is collected, stored or sent to Twitter by Rotating Tweets. By default, Rotating Tweets also does not load any JavaScript from Twitter or anywhere else 'off site'. It supports 'do not track' and only loads JavaScript from Twitter needed to display the Twitter Follow button if you choose that option and the user has not set 'do not track' on their browser.
|
175 |
+
|
176 |
= What can I do if I get the WordPress error code: `http_request_failed - name lookup timed out`? =
|
177 |
Try installing the [Core Control plug-in](/plugins/core-control/) and disabling cURL. You can read more about the problem via [this support page](http://wordpress.org/support/topic/wp-351-wordpress-error-code-http_request_failed-name-lookup-timed-out).
|
178 |
|
191 |
You can do this by going to the `rotatingtweets/css` directory, opening `rotatingtweets-sample.css` and copying its contents (modifying the link to the bird graphic to match your site) into [additional CSS](https://codex.wordpress.org/CSS#Custom_CSS_in_WordPress) (the preferred approach from Wordpress 4.7 onwards) on the [Appearance Customize Screen](https://codex.wordpress.org/Appearance_Customize_Screen) page. Alternatively rename `rotatingtweets-sample.css` to `rotatingtweets.css` and put it in the `wp-content/uploads/` directory. Or copy the CSS into your own template files. Any of these approaches will display a Twitter bird to the left of your tweets.
|
192 |
|
193 |
== Upgrade notice ==
|
194 |
+
= 1.9.6 =
|
195 |
+
* Twitter JavaScript only loads if Follow button is set to be displayed and the user has not set 'Do Not Track'.
|
196 |
|
197 |
== Changelog ==
|
198 |
+
= 1.9.6 =
|
199 |
+
* Twitter JavaScript only loads if Follow button is set to be displayed and the user has not set 'Do Not Track'.
|
200 |
+
|
201 |
= 1.9.5 =
|
202 |
* Fixed compatibility with Brilliance Pro template
|
203 |
|
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.9.
|
6 |
Text Domain: rotatingtweets
|
7 |
Domain Path: /languages
|
8 |
Author: Martin Tod
|
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.9.6
|
6 |
Text Domain: rotatingtweets
|
7 |
Domain Path: /languages
|
8 |
Author: Martin Tod
|