Rotating Tweets (Twitter widget and shortcode) - Version 1.7.2

Version Description

  • Removes 'expand' for carousel rotation. Adds new 'insidebottom' option for 'next / prev' buttons.

=

Download this release

Release Info

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

Code changes from version 1.7.1 to 1.7.2

js/rotatingtweets_v2.js CHANGED
@@ -75,9 +75,9 @@ jQuery(document).ready(function() {
75
  var clearOutHovers = /_hover.png/;
76
  jQuery(this).find('img').attr('src',rtw_src.replace(clearOutHovers,".png"));
77
  });
78
- jQuery('.rtw_wide .rtw_intents').hide();
79
- jQuery('.rtw_expand').show();
80
- jQuery('.rotatingtweets').has('.rtw_wide').hover(function() {
81
  jQuery(this).find('.rtw_intents').show();
82
  },function() {
83
  jQuery(this).find('.rtw_intents').hide();
75
  var clearOutHovers = /_hover.png/;
76
  jQuery(this).find('img').attr('src',rtw_src.replace(clearOutHovers,".png"));
77
  });
78
+ jQuery('.rotatingtweets').children().not('.cycle-carousel-wrap').has('.rtw_wide').find('.rtw_wide .rtw_intents').hide();
79
+ jQuery('.rotatingtweets').children().not('.cycle-carousel-wrap').has('.rtw_wide').find('.rtw_expand').show();
80
+ jQuery('.rotatingtweets').children().not('.cycle-carousel-wrap').has('.rtw_wide').hover(function() {
81
  jQuery(this).find('.rtw_intents').show();
82
  },function() {
83
  jQuery(this).find('.rtw_intents').hide();
js/rotatingtweets_v2_cyclone.js CHANGED
@@ -75,9 +75,9 @@ jQuery(document).ready(function() {
75
  var clearOutHovers = /_hover.png/;
76
  jQuery(this).find('img').attr('src',rtw_src.replace(clearOutHovers,".png"));
77
  });
78
- jQuery('.rtw_wide .rtw_intents').hide();
79
- jQuery('.rtw_expand').show();
80
- jQuery('.rotatingtweets').has('.rtw_wide').hover(function() {
81
  jQuery(this).find('.rtw_intents').show();
82
  },function() {
83
  jQuery(this).find('.rtw_intents').hide();
75
  var clearOutHovers = /_hover.png/;
76
  jQuery(this).find('img').attr('src',rtw_src.replace(clearOutHovers,".png"));
77
  });
78
+ jQuery('.rotatingtweets').children().not('.cycle-carousel-wrap').has('.rtw_wide').find('.rtw_wide .rtw_intents').hide();
79
+ jQuery('.rotatingtweets').children().not('.cycle-carousel-wrap').has('.rtw_wide').find('.rtw_expand').show();
80
+ jQuery('.rotatingtweets').children().not('.cycle-carousel-wrap').has('.rtw_wide').hover(function() {
81
  jQuery(this).find('.rtw_intents').show();
82
  },function() {
83
  jQuery(this).find('.rtw_intents').hide();
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
5
  Requires at least: 2.6
6
  Tested up to: 3.9.1
7
- Stable tag: 1.7.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -64,38 +64,41 @@ Possible variables for the shortcode include:
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**
67
- * `include_rts` = `'0'` or `'1'` - include retweets - optional - default is `'0'`
68
- * `exclude_replies` = `'0'` or `'1'` - exclude replies - optional - default is `'0'`
69
- * `tweet_count` = number of tweets to show - optional - default is `5`
70
  * `get_favorites` = `'0'` or `'1'` - show someone's favorites rather than their timeline - default is `'0'`
71
  * `list` = `'list-slug'` - the 'slug' used by someone's list (something like `my-list`)
72
  * `offset` = ''number'' - default is `'0'` - enables you to start on a later tweet - `'1'` starts on the 2nd tweet, `'2'` starts on the 3rd tweet, etc.
73
  * **Display options**
74
- * `official_format` = `'1'` or `'2'` - show official format - optional - default is `'0'`
75
- * `timeout` = time that each tweet is shown in milliseconds - optional - default is `'4000'` (i.e. 4 seconds)
76
- * `speed` = time it takes to change from one tweet to the next in milliseconds - optional - default is `'1000'` (i.e. 1 second)
77
- * `offset` = start displaying an earlier tweet one or more places before the current tweet - option - default is `'0'`
78
  * `links_in_new_window` = `'0'` or `'1'` - show links in a new tab or window - default is `'0'`
79
  * `rotation_type` = If you are using version 1 of the JavaScript, you can use any of the options listed on the [jQuery.cycle website](http://jquery.malsup.com/cycle/browser.html) - default is `'scrollUp'.` If you are using version 2 of the JavaScript, then the options are `'scrollUp'`,`'scrollDown'`,`'scrollHorz'`,`'scrollLeft'`,`'scrollRight'`,`'toss'`,`'scrollVert'`,`'fade'` and `'carousel'`
80
- * `url_length` = sets the length that the URL should be trimmed to...
81
- * `show_meta_timestamp` = `'0'` or `'1'` - show the time and date of each tweet - optional - default is `'1'`
82
- * `show_meta_screen_name` = `'0'` or `'1'` - show who posted each tweet - optional - default is `'1'`
83
- * `show_meta_via` = `'0'` or `'1'` - show how each tweet was posted - optional - default is `'1'`
84
- * `show_meta_reply_retweet_favorite` = `'0'` or `'1'` - show 'reply', 'retweet' and 'favorite' buttons - optional - default is `'0'`
 
 
 
85
  * `no_rotate` = `'0'` or `'1'` - switch off rotation - default is `'0'`
86
- * `show_meta_prev_next` = `'0'` or `'1'` - show 'next', 'prev' links - optional - default is `'0'`
87
  * `prev` = content for the prev button (default `'prev'`)
88
  * `next` = content for the next button (default `'next'`)
89
  * `middot` = content for the space between the buttons (default `' · '`)
90
- * `np_pos` = position for 'next' and 'prev' buttons - `'top'`, `'bottom'` or `'tweets'` (default `'top'`)
91
  * `show_media` = `'0'` or `'1'` - experimental option that shows images with the tweet - default is `'0'`
92
  * `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'`
93
- * `tweet_length` = maximum number of characters to show in tweet - experimental - default is `'0'` which allows whole tweet to be shown
94
  * `no_emoji` = `'0'` or `'1'` - experimental option that removes emoji from the feed - default is `'0'`
 
95
  * **Twitter follow button**
96
- * `show_follow` = `'0'` or `'1'` - show follow button - optional - default is `'0'`
97
- * `no_show_count` = `'0'` or `'1'` - remove the follower count from the Twitter follow button - optional - default is `'0'`
98
- * `no_show_screen_name` = `'0'` or `'1'` - remove the screen name from the Twitter follow button - optional - default is `'0'`
99
 
100
  == Credits ==
101
  Most of this is my own work, but special thanks are owed to:
@@ -170,10 +173,14 @@ into your CSS - changing `123px;` to the width you're aiming at - either via put
170
  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.
171
 
172
  == Upgrade notice ==
173
- = 1.7.1 =
174
- * Improved CSS support for horizontal carousel scrolling
175
 
176
  == Changelog ==
 
 
 
 
177
  = 1.7.1 =
178
  * Improved CSS support for horizontal carousel scrolling
179
 
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: 3.9.1
7
+ Stable tag: 1.7.2
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
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**
67
+ * `include_rts` = `'0'` or `'1'` - include retweets - default is `'0'`
68
+ * `exclude_replies` = `'0'` or `'1'` - exclude replies - default is `'0'`
69
+ * `tweet_count` = number of tweets to show - default is `5`
70
  * `get_favorites` = `'0'` or `'1'` - show someone's favorites rather than their timeline - default is `'0'`
71
  * `list` = `'list-slug'` - the 'slug' used by someone's list (something like `my-list`)
72
  * `offset` = ''number'' - default is `'0'` - enables you to start on a later tweet - `'1'` starts on the 2nd tweet, `'2'` starts on the 3rd tweet, etc.
73
  * **Display options**
74
+ * `official_format` = `'1'`, `'2'` or `'custom'` - show one of the two official formats or a custom format if you have written your own `rotatingtweets_display_override()` function - default is `'0'`
75
+ * `timeout` = time that each tweet is shown in milliseconds - default is `'4000'` (i.e. 4 seconds)
76
+ * `speed` = time it takes to change from one tweet to the next in milliseconds - default is `'1000'` (i.e. 1 second)
 
77
  * `links_in_new_window` = `'0'` or `'1'` - show links in a new tab or window - default is `'0'`
78
  * `rotation_type` = If you are using version 1 of the JavaScript, you can use any of the options listed on the [jQuery.cycle website](http://jquery.malsup.com/cycle/browser.html) - default is `'scrollUp'.` If you are using version 2 of the JavaScript, then the options are `'scrollUp'`,`'scrollDown'`,`'scrollHorz'`,`'scrollLeft'`,`'scrollRight'`,`'toss'`,`'scrollVert'`,`'fade'` and `'carousel'`
79
+ * `carousel_horizontal` = `0` or `1` - if you've chosen 'carousel' as a rotation type, allow horizontal scrolling - default is `0`
80
+ * 'carousel_count' => ''number'' - if you've chosen 'carousel' as a rotation type, set the number of slides to appear in the carousel - default is 3 for vertical carousel and enough to fill the width of the page for horizontal carousel
81
+ * 'carousel_responsive' => `0` or `1` - if you've chosen a 'horizontal carousel' as a rotation type, makes the carousel responsive to the size of the page - default is `0`
82
+ * `url_length` = sets the length that the URL should be trimmed to... - optional
83
+ * `show_meta_timestamp` = `'0'` or `'1'` - show the time and date of each tweet - default is `'1'`
84
+ * `show_meta_screen_name` = `'0'` or `'1'` - show who posted each tweet - default is `'1'`
85
+ * `show_meta_via` = `'0'` or `'1'` - show how each tweet was posted - default is `'1'`
86
+ * `show_meta_reply_retweet_favorite` = `'0'` or `'1'` - show 'reply', 'retweet' and 'favorite' buttons - default is `'0'`
87
  * `no_rotate` = `'0'` or `'1'` - switch off rotation - default is `'0'`
88
+ * `show_meta_prev_next` = `'0'` or `'1'` - show 'next', 'prev' links - default is `'0'`
89
  * `prev` = content for the prev button (default `'prev'`)
90
  * `next` = content for the next button (default `'next'`)
91
  * `middot` = content for the space between the buttons (default `' · '`)
92
+ * `np_pos` = position for 'next' and 'prev' buttons - `'top'`, `'bottom'`, `'insidebottom'` or `'tweets'` (default `'top'`)
93
  * `show_media` = `'0'` or `'1'` - experimental option that shows images with the tweet - default is `'0'`
94
  * `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'`
95
+ * `tweet_length` = maximum number of characters to show in tweet - default is `'0'` which allows whole tweet to be shown
96
  * `no_emoji` = `'0'` or `'1'` - experimental option that removes emoji from the feed - default is `'0'`
97
+
98
  * **Twitter follow button**
99
+ * `show_follow` = `'0'` or `'1'` - show follow button - default is `'0'`
100
+ * `no_show_count` = `'0'` or `'1'` - remove the follower count from the Twitter follow button - default is `'0'`
101
+ * `no_show_screen_name` = `'0'` or `'1'` - remove the screen name from the Twitter follow button - default is `'0'`
102
 
103
  == Credits ==
104
  Most of this is my own work, but special thanks are owed to:
173
  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.
174
 
175
  == Upgrade notice ==
176
+ = 1.7.2 =
177
+ * Removes 'expand' for carousel rotation. Adds new 'insidebottom' option for 'next / prev' buttons.
178
 
179
  == Changelog ==
180
+ = 1.7.2 =
181
+ * Removes 'expand' for carousel rotation.
182
+ * Adds new `insidebottom` option for position of 'next / prev' buttons
183
+
184
  = 1.7.1 =
185
  * Improved CSS support for horizontal carousel scrolling
186
 
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.1
6
  Text Domain: rotatingtweets
7
  Author: Martin Tod
8
  Author URI: http://www.martintod.org.uk
@@ -1768,6 +1768,9 @@ function rotating_tweets_display($json,$args,$print=TRUE) {
1768
  endif;
1769
  endforeach;
1770
  endif;
 
 
 
1771
  $result .= "\n</div>";
1772
  if(isset($args['show_meta_prev_next']) && $args['show_meta_prev_next'] && $args['np_pos']=='bottom'):
1773
  $result .= '<div class="rotatingtweets_nextprev">'.$nextprev.'</div>';
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.2
6
  Text Domain: rotatingtweets
7
  Author: Martin Tod
8
  Author URI: http://www.martintod.org.uk
1768
  endif;
1769
  endforeach;
1770
  endif;
1771
+ if(isset($args['show_meta_prev_next']) && $args['show_meta_prev_next'] && $args['np_pos']=='insidebottom'):
1772
+ $result .= $nextprev;
1773
+ endif;
1774
  $result .= "\n</div>";
1775
  if(isset($args['show_meta_prev_next']) && $args['show_meta_prev_next'] && $args['np_pos']=='bottom'):
1776
  $result .= '<div class="rotatingtweets_nextprev">'.$nextprev.'</div>';