Version Description
- [Added] Load Plugin Text Domain. Now loads the language files.
- [Updated] Made the permalink on the list item (Cheers Brian)
- [Updated] Fixed Typo
Download this release
Release Info
Developer | Planet Interactive |
Plugin | Simple Twitter Tweets |
Version | 4.3 |
Comparing to | |
See all releases |
Code changes from version 4.2 to 4.3
- README.txt +7 -2
- simple-twitter-tweets.php +12 -12
README.txt
CHANGED
@@ -3,8 +3,8 @@ Contributors: Planet Interactive
|
|
3 |
Donate: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=A9437VN7R36VN
|
4 |
Tags: Twitter, Stream, Tweets, Twitter OAuth, social
|
5 |
Requires at least: 3.0
|
6 |
-
Tested up to: 4.
|
7 |
-
Stable tag: 4.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -129,6 +129,11 @@ We've tested it and as far as we know it works great! Phew, but if you have an i
|
|
129 |
9. Style how you like, "Your Tweets your way"
|
130 |
|
131 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
132 |
= 4.2 =
|
133 |
* [Updated] All 4.1 updates and version number updated
|
134 |
|
3 |
Donate: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=A9437VN7R36VN
|
4 |
Tags: Twitter, Stream, Tweets, Twitter OAuth, social
|
5 |
Requires at least: 3.0
|
6 |
+
Tested up to: 4.4.2
|
7 |
+
Stable tag: 4.3
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
129 |
9. Style how you like, "Your Tweets your way"
|
130 |
|
131 |
== Changelog ==
|
132 |
+
= 4.3 =
|
133 |
+
* [Added] Load Plugin Text Domain. Now loads the language files.
|
134 |
+
* [Updated] Made the permalink on the list item (Cheers Brian)
|
135 |
+
* [Updated] Fixed Typo
|
136 |
+
|
137 |
= 4.2 =
|
138 |
* [Updated] All 4.1 updates and version number updated
|
139 |
|
simple-twitter-tweets.php
CHANGED
@@ -4,7 +4,7 @@ Plugin Name: Simple Twitter Tweets
|
|
4 |
Plugin URI: http://www.planet-interactive.co.uk/simple-twitter-tweets
|
5 |
Description: Display last x number tweets from Twitter API stream, store locally in database to present past tweets when failure to access Twitters restrictive API occurs
|
6 |
Author: Ashley Sheinwald
|
7 |
-
Version: 4.
|
8 |
Author URI: http://www.planet-interactive.co.uk/
|
9 |
Text Domain: simple-twitter-tweets
|
10 |
*/
|
@@ -119,13 +119,13 @@ class PI_SimpleTwitterTweets extends WP_Widget{
|
|
119 |
|
120 |
//Set up some default widget settings.
|
121 |
$defaults = array(
|
122 |
-
|
123 |
, 'name' => __('iPlanetUK', 'simple-twitter-tweets')
|
124 |
, 'numTweets' => __(4, 'simple-twitter-tweets') // How many to display
|
125 |
, 'cacheTime' => __(5, 'simple-twitter-tweets') // Time in minutes between updates
|
126 |
, 'consumerKey' => __('xxxxxxxxxxxx', 'simple-twitter-tweets') // Consumer key
|
127 |
-
, 'consumerSecret'
|
128 |
-
, 'accessToken'
|
129 |
, 'accessTokenSecret' => __('xxxxxxxxxxxx', 'simple-twitter-tweets') // Access token secret
|
130 |
, 'exclude_replies' => true
|
131 |
, 'twitterFollow' => false
|
@@ -137,7 +137,7 @@ class PI_SimpleTwitterTweets extends WP_Widget{
|
|
137 |
, 'timeRef' => false // false = use old full hour ref, true if selected will use hour ref as h (twitter style)
|
138 |
, 'timeAgo' => true // true = show ago, false will turn it off
|
139 |
// Intents
|
140 |
-
, 'twitterIntents'
|
141 |
, 'twitterIntentsText' => false // false = Default: Show text - activate to turn off text display and use icons only
|
142 |
, 'intentColor' => "#999999" // Default colour, light grey
|
143 |
// Avatar
|
@@ -550,13 +550,7 @@ class PI_SimpleTwitterTweets extends WP_Widget{
|
|
550 |
?>
|
551 |
<?php echo $t['text']; ?>
|
552 |
<span class="stt-em">
|
553 |
-
|
554 |
-
<a href="http://www.twitter.com/<?php echo $screen_name; ?>" target="_blank" title="<?php
|
555 |
-
printf(
|
556 |
-
/* translators: %s: Twitter user name to follow */
|
557 |
-
__( 'Follow %s on Twitter [Opens a new window]', 'simple-twitter-tweets' ),
|
558 |
-
$name
|
559 |
-
); ?>">
|
560 |
<?php
|
561 |
|
562 |
// Original - long time ref: hours...
|
@@ -618,4 +612,10 @@ class PI_SimpleTwitterTweets extends WP_Widget{
|
|
618 |
|
619 |
}
|
620 |
add_action( 'widgets_init', create_function('', 'return register_widget("PI_SimpleTwitterTweets");') );
|
|
|
|
|
|
|
|
|
|
|
|
|
621 |
?>
|
4 |
Plugin URI: http://www.planet-interactive.co.uk/simple-twitter-tweets
|
5 |
Description: Display last x number tweets from Twitter API stream, store locally in database to present past tweets when failure to access Twitters restrictive API occurs
|
6 |
Author: Ashley Sheinwald
|
7 |
+
Version: 4.3
|
8 |
Author URI: http://www.planet-interactive.co.uk/
|
9 |
Text Domain: simple-twitter-tweets
|
10 |
*/
|
119 |
|
120 |
//Set up some default widget settings.
|
121 |
$defaults = array(
|
122 |
+
'title' => __('Recent Tweets', 'simple-twitter-tweets')
|
123 |
, 'name' => __('iPlanetUK', 'simple-twitter-tweets')
|
124 |
, 'numTweets' => __(4, 'simple-twitter-tweets') // How many to display
|
125 |
, 'cacheTime' => __(5, 'simple-twitter-tweets') // Time in minutes between updates
|
126 |
, 'consumerKey' => __('xxxxxxxxxxxx', 'simple-twitter-tweets') // Consumer key
|
127 |
+
, 'consumerSecret' => __('xxxxxxxxxxxx', 'simple-twitter-tweets') // Consumer secret
|
128 |
+
, 'accessToken' => __('xxxxxxxxxxxx', 'simple-twitter-tweets') // Access token
|
129 |
, 'accessTokenSecret' => __('xxxxxxxxxxxx', 'simple-twitter-tweets') // Access token secret
|
130 |
, 'exclude_replies' => true
|
131 |
, 'twitterFollow' => false
|
137 |
, 'timeRef' => false // false = use old full hour ref, true if selected will use hour ref as h (twitter style)
|
138 |
, 'timeAgo' => true // true = show ago, false will turn it off
|
139 |
// Intents
|
140 |
+
, 'twitterIntents' => false // true = Default: show Twitter Intents
|
141 |
, 'twitterIntentsText' => false // false = Default: Show text - activate to turn off text display and use icons only
|
142 |
, 'intentColor' => "#999999" // Default colour, light grey
|
143 |
// Avatar
|
550 |
?>
|
551 |
<?php echo $t['text']; ?>
|
552 |
<span class="stt-em">
|
553 |
+
<a href="<?php echo $t[permalink]; ?>" target="_blank">
|
|
|
|
|
|
|
|
|
|
|
|
|
554 |
<?php
|
555 |
|
556 |
// Original - long time ref: hours...
|
612 |
|
613 |
}
|
614 |
add_action( 'widgets_init', create_function('', 'return register_widget("PI_SimpleTwitterTweets");') );
|
615 |
+
|
616 |
+
add_action( 'plugins_loaded', 'PI_SimpleTwitterTweets_load_plugin_textdomain' );
|
617 |
+
// Now loads language files
|
618 |
+
function PI_SimpleTwitterTweets_load_plugin_textdomain() {
|
619 |
+
load_plugin_textdomain( 'simple-twitter-tweets', false, dirname(plugin_basename(__FILE__)) . '/languages/' );
|
620 |
+
}
|
621 |
?>
|