Rotating Tweets (Twitter widget and shortcode) - Version 0.702

Version Description

Important upgrade needed for Rotating Tweets to keep working after March 2013. Supports version 1.1 of the Twitter API.

=

Download this release

Release Info

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

Code changes from version 0.701 to 0.702

Files changed (3) hide show
  1. js/rotating_tweet.js +14 -2
  2. readme.txt +5 -2
  3. rotatingtweets.php +1 -1
js/rotating_tweet.js CHANGED
@@ -10,8 +10,16 @@ jQuery(document).ready(function() {
10
  var rotate_fx = rotate_id_split[2];
11
  /* If the rotation type has not been set - then set it to scrollUp */
12
  if(rotate_fx == null){rotate_fx = 'scrollUp'};
13
- /* If we're displaying an 'official' tweet, reset all the heights */
14
  var rt_height_px = 'auto';
 
 
 
 
 
 
 
 
 
15
  // var rt_official_child = rotate_id + ' .twitter-tweet';
16
  // var rt_official_num = jQuery(rt_official_child).length;
17
  // if (rt_official_num > 0) rt_height_px = '211px';
@@ -20,7 +28,9 @@ jQuery(document).ready(function() {
20
  pause: 1,
21
  height: rt_height_px,
22
  timeout: rotate_timeout,
23
- fx: rotate_fx
 
 
24
  });
25
  /* If the height of the rotating tweet box is zero - kill the box and start again */
26
  var rt_height = jQuery(rotate_id).height();
@@ -40,6 +50,8 @@ jQuery(document).ready(function() {
40
  pause: 1,
41
  height: rt_height_px,
42
  timeout: rotate_timeout,
 
 
43
  fx: rotate_fx
44
  });
45
  }
10
  var rotate_fx = rotate_id_split[2];
11
  /* If the rotation type has not been set - then set it to scrollUp */
12
  if(rotate_fx == null){rotate_fx = 'scrollUp'};
 
13
  var rt_height_px = 'auto';
14
+ /* Now find the widget container width */
15
+ var rt_target_width = jQuery(this).closest('.widget_rotatingtweets_widget').width();
16
+ var rt_fit = 1;
17
+ if( rt_target_width == 0 ) {
18
+ rt_target_width = 'auto';
19
+ rt_fit = 0;
20
+ }
21
+ console.log('rt_target_width = '+rt_target_width);
22
+ /* If we're displaying an 'official' tweet, reset all the heights - this option is currently switched off! */
23
  // var rt_official_child = rotate_id + ' .twitter-tweet';
24
  // var rt_official_num = jQuery(rt_official_child).length;
25
  // if (rt_official_num > 0) rt_height_px = '211px';
28
  pause: 1,
29
  height: rt_height_px,
30
  timeout: rotate_timeout,
31
+ width: rt_target_width,
32
+ fx: rotate_fx,
33
+ fit: rt_fit
34
  });
35
  /* If the height of the rotating tweet box is zero - kill the box and start again */
36
  var rt_height = jQuery(rotate_id).height();
50
  pause: 1,
51
  height: rt_height_px,
52
  timeout: rotate_timeout,
53
+ width: rt_target_width,
54
+ fit: rt_fit,
55
  fx: rotate_fx
56
  });
57
  }
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
5
  Requires at least: 2.6
6
  Tested up to: 3.5
7
- Stable tag: 0.701
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -82,10 +82,13 @@ In most cases, each use (or "instance") of this plug-in gets data from Twitter e
82
  You can do this by going to the `rotatingtweets/css` directory and renaming `yourstyle-sample.css` to `yourstyle.css`. This displays a Twitter bird to the left of your tweets. Any CSS you put into `yourstyle.css` won't be overwritten when the plug-in is upgraded to the latest version.
83
 
84
  == Upgrade notice ==
85
- = 0.701 =
86
  Important upgrade needed for Rotating Tweets to keep working after March 2013. Supports version 1.1 of the Twitter API.
87
 
88
  == Changelog ==
 
 
 
89
  = 0.701 =
90
  Very minor mistake in rendering code
91
 
4
  Tags: shortcode,widget,twitter,rotating,rotate,rotator,tweet,tweets,animation,jquery,jquery cycle,cycle,multilingual
5
  Requires at least: 2.6
6
  Tested up to: 3.5
7
+ Stable tag: 0.702
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
82
  You can do this by going to the `rotatingtweets/css` directory and renaming `yourstyle-sample.css` to `yourstyle.css`. This displays a Twitter bird to the left of your tweets. Any CSS you put into `yourstyle.css` won't be overwritten when the plug-in is upgraded to the latest version.
83
 
84
  == Upgrade notice ==
85
+ = 0.702 =
86
  Important upgrade needed for Rotating Tweets to keep working after March 2013. Supports version 1.1 of the Twitter API.
87
 
88
  == Changelog ==
89
+ = 0.702 =
90
+ Adjustment to javascript and CSS to cope with long links or long words
91
+
92
  = 0.701 =
93
  Very minor mistake in rendering code
94
 
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: 0.701
6
  Text Domain: rotatingtweets
7
  Author: Martin Tod
8
  Author URI: http://www.martintod.org.uk
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: 0.702
6
  Text Domain: rotatingtweets
7
  Author: Martin Tod
8
  Author URI: http://www.martintod.org.uk