Version Description
Now includes options consistent with Twitter display options and options to allow for different length URLs
=
Download this release
Release Info
Developer | mpntod |
Plugin | Rotating Tweets (Twitter widget and shortcode) |
Version | 0.611 |
Comparing to | |
See all releases |
Code changes from version 0.612 to 0.611
- readme.txt +3 -6
- rotatingtweets.php +3 -11
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
|
5 |
Requires at least: 2.6
|
6 |
-
Tested up to: 3.
|
7 |
-
Stable tag: 0.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -48,7 +48,7 @@ Possible variables for the shortcode include:
|
|
48 |
* `no_show_count` = `'0'` or `'1'` - remove the follower count from the Twitter follow button - optional - default is `'0'`
|
49 |
* `no_show_screen_name` = `'0'` or `'1'` - remove the screen name from the Twitter follow button - optional - default is `'0'`
|
50 |
* `show_meta_timestamp` = `'0'` or `'1'` - show the time and date of each tweet - optional - default is `'1'`
|
51 |
-
* `
|
52 |
* `show_meta_via` = `'0'` or `'1'` - show how each tweet was posted - optional - default is `'1'`
|
53 |
* `show_meta_reply_retweet_favorite` = `'0'` or `'1'` - show 'reply', 'retweet' and 'favorite' buttons - optional - default is `'0'`
|
54 |
* `rotation_type` = any of the options listed on the [jQuery.cycle website](http://jquery.malsup.com/cycle/browser.html) - default is `'scrollUp'`
|
@@ -68,9 +68,6 @@ You can do this by going to the `rotatingtweets/css` directory and renaming `you
|
|
68 |
Now includes options consistent with Twitter display options and options to allow for different length URLs
|
69 |
|
70 |
== Changelog ==
|
71 |
-
= 0.612 =
|
72 |
-
Fixed error message caused by last fix causing tweets to repeat.
|
73 |
-
|
74 |
= 0.611 =
|
75 |
Finally ran with debug and removed all the error messages.
|
76 |
|
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
|
5 |
Requires at least: 2.6
|
6 |
+
Tested up to: 3.4.1
|
7 |
+
Stable tag: 0.611
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
48 |
* `no_show_count` = `'0'` or `'1'` - remove the follower count from the Twitter follow button - optional - default is `'0'`
|
49 |
* `no_show_screen_name` = `'0'` or `'1'` - remove the screen name from the Twitter follow button - optional - default is `'0'`
|
50 |
* `show_meta_timestamp` = `'0'` or `'1'` - show the time and date of each tweet - optional - default is `'1'`
|
51 |
+
* `show_meta_screen_name` = `'0'` or `'1'` - show who posted each tweet - optional - default is `'1'`
|
52 |
* `show_meta_via` = `'0'` or `'1'` - show how each tweet was posted - optional - default is `'1'`
|
53 |
* `show_meta_reply_retweet_favorite` = `'0'` or `'1'` - show 'reply', 'retweet' and 'favorite' buttons - optional - default is `'0'`
|
54 |
* `rotation_type` = any of the options listed on the [jQuery.cycle website](http://jquery.malsup.com/cycle/browser.html) - default is `'scrollUp'`
|
68 |
Now includes options consistent with Twitter display options and options to allow for different length URLs
|
69 |
|
70 |
== Changelog ==
|
|
|
|
|
|
|
71 |
= 0.611 =
|
72 |
Finally ran with debug and removed all the error messages.
|
73 |
|
rotatingtweets.php
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
<?php
|
2 |
/*
|
3 |
Plugin Name: Rotating Tweets (Twitter widget & shortcode)
|
4 |
-
Description: Replaces a shortcode such as [rotatingtweets
|
5 |
-
Version: 0.
|
6 |
Text Domain: rotatingtweets
|
7 |
Author: Martin Tod
|
8 |
Author URI: http://www.martintod.org.uk
|
@@ -24,7 +24,7 @@ License: GPL2
|
|
24 |
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
25 |
*/
|
26 |
/**
|
27 |
-
* Replaces a shortcode such as [rotatingtweets
|
28 |
*
|
29 |
* @package WordPress
|
30 |
* @since 3.3.2
|
@@ -591,8 +591,6 @@ function rotating_tweets_display($json,$args,$print=TRUE) {
|
|
591 |
# First clean up the retweets
|
592 |
if(isset($twitter_object->retweeted_status)):
|
593 |
$rt_data = $twitter_object->retweeted_status;
|
594 |
-
else:
|
595 |
-
unset($rt_data);
|
596 |
endif;
|
597 |
if(!empty($rt_data)):
|
598 |
$rt_user = $rt_data->user;
|
@@ -610,8 +608,6 @@ function rotating_tweets_display($json,$args,$print=TRUE) {
|
|
610 |
# First the user mentions
|
611 |
if(isset($entities->user_mentions)):
|
612 |
$user_mentions = $entities->user_mentions;
|
613 |
-
else:
|
614 |
-
unset($user_mentions);
|
615 |
endif;
|
616 |
if(!empty($user_mentions)):
|
617 |
foreach($user_mentions as $user_mention):
|
@@ -625,8 +621,6 @@ function rotating_tweets_display($json,$args,$print=TRUE) {
|
|
625 |
# Now the URLs
|
626 |
if(isset($entities->urls)):
|
627 |
$urls = $entities->urls;
|
628 |
-
else:
|
629 |
-
unset($urls);
|
630 |
endif;
|
631 |
if(!empty($urls)):
|
632 |
foreach($urls as $url):
|
@@ -642,8 +636,6 @@ function rotating_tweets_display($json,$args,$print=TRUE) {
|
|
642 |
endif;
|
643 |
if(isset($entities->media)):
|
644 |
$media = $entities->media;
|
645 |
-
else:
|
646 |
-
unset($media);
|
647 |
endif;
|
648 |
if(!empty($media)):
|
649 |
foreach($media as $medium):
|
1 |
<?php
|
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.611
|
6 |
Text Domain: rotatingtweets
|
7 |
Author: Martin Tod
|
8 |
Author URI: http://www.martintod.org.uk
|
24 |
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
25 |
*/
|
26 |
/**
|
27 |
+
* Replaces a shortcode such as [rotatingtweets screen_name='your_twitter_name'], or a widget, with a rotating tweets display
|
28 |
*
|
29 |
* @package WordPress
|
30 |
* @since 3.3.2
|
591 |
# First clean up the retweets
|
592 |
if(isset($twitter_object->retweeted_status)):
|
593 |
$rt_data = $twitter_object->retweeted_status;
|
|
|
|
|
594 |
endif;
|
595 |
if(!empty($rt_data)):
|
596 |
$rt_user = $rt_data->user;
|
608 |
# First the user mentions
|
609 |
if(isset($entities->user_mentions)):
|
610 |
$user_mentions = $entities->user_mentions;
|
|
|
|
|
611 |
endif;
|
612 |
if(!empty($user_mentions)):
|
613 |
foreach($user_mentions as $user_mention):
|
621 |
# Now the URLs
|
622 |
if(isset($entities->urls)):
|
623 |
$urls = $entities->urls;
|
|
|
|
|
624 |
endif;
|
625 |
if(!empty($urls)):
|
626 |
foreach($urls as $url):
|
636 |
endif;
|
637 |
if(isset($entities->media)):
|
638 |
$media = $entities->media;
|
|
|
|
|
639 |
endif;
|
640 |
if(!empty($media)):
|
641 |
foreach($media as $medium):
|