Rotating Tweets (Twitter widget and shortcode) - Version 1.8.4

Version Description

  • Updated JavaScript for plug-ins and themes with their own JQuery Cycle2 installations

=

Download this release

Release Info

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

Code changes from version 1.8.3 to 1.8.4

js/rotatingtweets_v2.js CHANGED
@@ -50,7 +50,7 @@ $.fn.cycle2.transitions.toss = {
50
  opts.API.stackSlides( opts, curr, next, fwd );
51
  var width = opts.container.css('overflow','visible').width();
52
  var height = opts.container.css('overflow','visible').height();
53
- opts.cssBefore = { left: 0, top: 0, opacity: 1, visibility: 'visible', display: 'block',width:width };
54
  opts.animIn = { left: 0 };
55
  opts.animOut = { left : width*2, top:-height/2 , opacity:0, width:width, display:'block' };
56
  }
50
  opts.API.stackSlides( opts, curr, next, fwd );
51
  var width = opts.container.css('overflow','visible').width();
52
  var height = opts.container.css('overflow','visible').height();
53
+ opts.cssBefore = { left: 0, top: 0, opacity: 1, visibility: 'visible', display: 'block', width:width };
54
  opts.animIn = { left: 0 };
55
  opts.animOut = { left : width*2, top:-height/2 , opacity:0, width:width, display:'block' };
56
  }
js/rotatingtweets_v2_cyclone.js CHANGED
@@ -49,7 +49,7 @@ $.fn.cycle.transitions.toss = {
49
  opts.API.stackSlides( opts, curr, next, fwd );
50
  var width = opts.container.css('overflow','visible').width();
51
  var height = opts.container.css('overflow','visible').height();
52
- opts.cssBefore = { left: 0, top: 0, opacity: 1, display: 'block', visibility: 'visible', width:width };
53
  opts.animIn = { left: 0 };
54
  opts.animOut = { left : width*2, top:-height/2 , opacity:0, width:width, display:'block' };
55
  }
@@ -70,7 +70,7 @@ $.fn.cycle.transitions.scrollLeftGap = {
70
  Script to cycle the rotating tweets
71
  */
72
  jQuery(document).ready(function() {
73
- // Not at all sure we need this
74
  jQuery('.rotatingtweets').cycle();
75
  // Script to show mouseover effects when going over the Twitter intents
76
  var rtw_src,
@@ -95,4 +95,19 @@ jQuery(document).ready(function() {
95
  });
96
  /* And call the Twitter script while we're at it! */
97
  /* Standard script to call Twitter */
98
- !function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="https://platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
49
  opts.API.stackSlides( opts, curr, next, fwd );
50
  var width = opts.container.css('overflow','visible').width();
51
  var height = opts.container.css('overflow','visible').height();
52
+ opts.cssBefore = { left: 0, top: 0, opacity: 1, visibility: 'visible', display: 'block', width:width };
53
  opts.animIn = { left: 0 };
54
  opts.animOut = { left : width*2, top:-height/2 , opacity:0, width:width, display:'block' };
55
  }
70
  Script to cycle the rotating tweets
71
  */
72
  jQuery(document).ready(function() {
73
+ // Needed because - unlike the RT version of jQuery Cycle2 - the auto-selector hasn't been renamed
74
  jQuery('.rotatingtweets').cycle();
75
  // Script to show mouseover effects when going over the Twitter intents
76
  var rtw_src,
95
  });
96
  /* And call the Twitter script while we're at it! */
97
  /* Standard script to call Twitter */
98
+ window.twttr = (function(d, s, id) {
99
+ var js, fjs = d.getElementsByTagName(s)[0],
100
+ t = window.twttr || {};
101
+ if (d.getElementById(id)) return t;
102
+ js = d.createElement(s);
103
+ js.id = id;
104
+ js.src = "https://platform.twitter.com/widgets.js";
105
+ fjs.parentNode.insertBefore(js, fjs);
106
+
107
+ t._e = [];
108
+ t.ready = function(f) {
109
+ t._e.push(f);
110
+ };
111
+
112
+ return t;
113
+ }(document, "script", "twitter-wjs"));
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,page builder
5
  Requires at least: 3.2
6
- Tested up to: 4.4.1
7
- Stable tag: 1.8.3
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -183,10 +183,13 @@ into your CSS - changing `123px;` to the width you're aiming at - either via put
183
  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.
184
 
185
  == Upgrade notice ==
186
- = 1.8.3 =
187
- * Fixed 'Invalid argument' bug when combining tweets from different accounts
188
 
189
  == Changelog ==
 
 
 
190
  = 1.8.3 =
191
  * Fixed 'Invalid argument' bug when combining tweets from different accounts
192
  * Allow up to 60 tweets
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,page builder
5
  Requires at least: 3.2
6
+ Tested up to: 4.5
7
+ Stable tag: 1.8.4
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
183
  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.
184
 
185
  == Upgrade notice ==
186
+ = 1.8.4 =
187
+ * Updated JavaScript for plug-ins and themes with their own JQuery Cycle2 installations
188
 
189
  == Changelog ==
190
+ = 1.8.4 =
191
+ * Updated JavaScript for plug-ins and themes with their own [JQuery Cycle2](http://jquery.malsup.com/cycle2/) installations
192
+
193
  = 1.8.3 =
194
  * Fixed 'Invalid argument' bug when combining tweets from different accounts
195
  * Allow up to 60 tweets
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.8.3
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.8.4
6
  Text Domain: rotatingtweets
7
  Domain Path: /languages
8
  Author: Martin Tod