Twitter Widget Pro - Version 1.4.4

Version Description

  • Added Danish translation - Props Georg
  • Add ability to give more information on WHY you should upgrade on the plugins page
  • Fixed PHP notice when you add a new copy of widget to your sidebar
Download this release

Release Info

Developer aaroncampbell
Plugin Icon wp plugin Twitter Widget Pro
Version 1.4.4
Comparing to
See all releases

Code changes from version 1.4.3 to 1.4.4

languages/twitter-widget-pro-da_DK.mo ADDED
Binary file
languages/twitter-widget-pro-da_DK.po ADDED
@@ -0,0 +1,154 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ msgid ""
2
+ msgstr ""
3
+ "Project-Id-Version: Twitter Widget Pro 1.4.3\n"
4
+ "Report-Msgid-Bugs-To: \n"
5
+ "POT-Creation-Date: 2009-07-07 22:39+0100\n"
6
+ "PO-Revision-Date: \n"
7
+ "Last-Translator: Team Blogos <wordpress@blogos.dk>\n"
8
+ "Language-Team: Team Blogos <wordpress@blogos.dk>\n"
9
+ "MIME-Version: 1.0\n"
10
+ "Content-Type: text/plain; charset=UTF-8\n"
11
+ "Content-Transfer-Encoding: 8bit\n"
12
+ "Plural-Forms: nplurals=2;plural=n != 1;\n"
13
+ "X-Poedit-Language: Danish\n"
14
+ "X-Poedit-Country: DENMARK\n"
15
+ "X-Poedit-SourceCharset: utf-8\n"
16
+ "X-Poedit-KeywordsList: __;_c;_e;__ngettext:1,2;__ngettext_noop:1,2\n"
17
+ "X-Poedit-Basepath: d:\\wordpress\\plugins\\twitter-widget-pro\n"
18
+ "X-Poedit-SearchPath-0: d:\\wordpress\\plugins\\twitter-widget-pro\n"
19
+
20
+ #: d:\wordpress\plugins\twitter-widget-pro/wp-twitter-widget.php:48
21
+ msgid "Twitter Widget Pro"
22
+ msgstr "Twitter Widget Pro"
23
+
24
+ #: d:\wordpress\plugins\twitter-widget-pro/wp-twitter-widget.php:64
25
+ msgid "Twitter Widget Pro Options"
26
+ msgstr "Indstiller for Twitter Widget Pro"
27
+
28
+ #: d:\wordpress\plugins\twitter-widget-pro/wp-twitter-widget.php:70
29
+ msgid "Click for Help!"
30
+ msgstr "Klik for hjælp"
31
+
32
+ #: d:\wordpress\plugins\twitter-widget-pro/wp-twitter-widget.php:71
33
+ msgid "System Information:"
34
+ msgstr "System Information:"
35
+
36
+ #: d:\wordpress\plugins\twitter-widget-pro/wp-twitter-widget.php:76
37
+ msgid "I agree to send anonymous system information"
38
+ msgstr "Jeg accepterer at sende anonyme system-informationer"
39
+
40
+ #: d:\wordpress\plugins\twitter-widget-pro/wp-twitter-widget.php:78
41
+ msgid "You can help by sending anonymous system information that will help Xavisys make better decisions about new features."
42
+ msgstr "Du kan hjælpe ved at sende anonyme system-informationer, som vil hjælpe Xavisys med at træffe bedre beslutninger om nye funktioner."
43
+
44
+ #: d:\wordpress\plugins\twitter-widget-pro/wp-twitter-widget.php:79
45
+ msgid "The information will be sent anonymously, but a unique identifier will be sent to prevent duplicate entries from the same installation."
46
+ msgstr "Informationerne sendes anonymt, men en unik id vil blive sendt med for at sikre, at alle registreringer fra samme installation er unikke."
47
+
48
+ #: d:\wordpress\plugins\twitter-widget-pro/wp-twitter-widget.php:85
49
+ msgid "Update Options &raquo;"
50
+ msgstr "Opdatér indstillinger &raquo;"
51
+
52
+ #: d:\wordpress\plugins\twitter-widget-pro/wp-twitter-widget.php:114
53
+ msgid "Could not connect to Twitter"
54
+ msgstr "Kunne ikke få forbindelse til Twitter"
55
+
56
+ #: d:\wordpress\plugins\twitter-widget-pro/wp-twitter-widget.php:273
57
+ msgid "Syndicate this content"
58
+ msgstr "Følg dette indhold via RSS"
59
+
60
+ #: d:\wordpress\plugins\twitter-widget-pro/wp-twitter-widget.php:286
61
+ msgid "No Tweets Available"
62
+ msgstr "Ingen tilgængelige Tweets"
63
+
64
+ #: d:\wordpress\plugins\twitter-widget-pro/wp-twitter-widget.php:307
65
+ #, php-format
66
+ msgid "from %s"
67
+ msgstr "fra %s"
68
+
69
+ #: d:\wordpress\plugins\twitter-widget-pro/wp-twitter-widget.php:311
70
+ #, php-format
71
+ msgid "in reply to %s"
72
+ msgstr "som svar på %s"
73
+
74
+ #: d:\wordpress\plugins\twitter-widget-pro/wp-twitter-widget.php:331
75
+ #, php-format
76
+ msgid "Powered by <a href=\"%s\" title=\"Get Twitter Widget for your WordPress site\">WordPress Twitter Widget Pro</a>"
77
+ msgstr "Kører på <a href=\"%s\" title=\"Få Twitter Widget til din WordPress-site\">WordPress-Twitter Widget Pro</a>"
78
+
79
+ #: d:\wordpress\plugins\twitter-widget-pro/wp-twitter-widget.php:441
80
+ msgid "Follow a Twitter Feed"
81
+ msgstr "Følg et Twitter-feed"
82
+
83
+ #: d:\wordpress\plugins\twitter-widget-pro/wp-twitter-widget.php:443
84
+ msgid "Twitter Feed"
85
+ msgstr "Twitter-feed"
86
+
87
+ #: d:\wordpress\plugins\twitter-widget-pro/wp-twitter-widget.php:485
88
+ msgid "Twitter username:"
89
+ msgstr "Twitter-brugernavn:"
90
+
91
+ #: d:\wordpress\plugins\twitter-widget-pro/wp-twitter-widget.php:489
92
+ msgid "Give the feed a title (optional):"
93
+ msgstr "Giv feedet en titel (valgfri):"
94
+
95
+ #: d:\wordpress\plugins\twitter-widget-pro/wp-twitter-widget.php:493
96
+ msgid "How many items would you like to display?"
97
+ msgstr "Hvor mange tweets vil du vise?"
98
+
99
+ #: d:\wordpress\plugins\twitter-widget-pro/wp-twitter-widget.php:503
100
+ msgid "What to display when Twitter is down (optional):"
101
+ msgstr "Hvad skal der vises, hvis Twitter er nede (valgfri):"
102
+
103
+ #: d:\wordpress\plugins\twitter-widget-pro/wp-twitter-widget.php:507
104
+ msgid "Number of seconds to wait for a response from Twitter (default 2):"
105
+ msgstr "Antal sekunder at vente på svar fra Twitter (standard: 2):"
106
+
107
+ #: d:\wordpress\plugins\twitter-widget-pro/wp-twitter-widget.php:511
108
+ msgid "Show date/time of Tweet (rather than 2 ____ ago):"
109
+ msgstr "Vis Tweetets dato/klokkeslæt (i st. f. 2 ___ siden):"
110
+
111
+ #: d:\wordpress\plugins\twitter-widget-pro/wp-twitter-widget.php:513
112
+ msgid "Always"
113
+ msgstr "Altid"
114
+
115
+ #: d:\wordpress\plugins\twitter-widget-pro/wp-twitter-widget.php:514
116
+ msgid "If over an hour old"
117
+ msgstr "Hvis over end en time gammelt"
118
+
119
+ #: d:\wordpress\plugins\twitter-widget-pro/wp-twitter-widget.php:515
120
+ msgid "If over a day old"
121
+ msgstr "Hvis over en dag gammelt"
122
+
123
+ #: d:\wordpress\plugins\twitter-widget-pro/wp-twitter-widget.php:516
124
+ msgid "If over a week old"
125
+ msgstr "Hvis over en uge gammelt"
126
+
127
+ #: d:\wordpress\plugins\twitter-widget-pro/wp-twitter-widget.php:517
128
+ msgid "If over a month old"
129
+ msgstr "Hvis over en måned gammelt"
130
+
131
+ #: d:\wordpress\plugins\twitter-widget-pro/wp-twitter-widget.php:518
132
+ msgid "If over a year old"
133
+ msgstr "Hvis over et år gammelt"
134
+
135
+ #: d:\wordpress\plugins\twitter-widget-pro/wp-twitter-widget.php:519
136
+ msgid "Never"
137
+ msgstr "Aldrig"
138
+
139
+ #: d:\wordpress\plugins\twitter-widget-pro/wp-twitter-widget.php:523
140
+ msgid "Hide RSS Icon and Link"
141
+ msgstr "Skjul RSS-ikon og -link"
142
+
143
+ #: d:\wordpress\plugins\twitter-widget-pro/wp-twitter-widget.php:526
144
+ msgid "Show Profile Image"
145
+ msgstr "Vis profilbillede"
146
+
147
+ #: d:\wordpress\plugins\twitter-widget-pro/wp-twitter-widget.php:530
148
+ msgid "Show Link to Twitter Widget Pro"
149
+ msgstr "Vis link til Twitter Widget Pro"
150
+
151
+ #: d:\wordpress\plugins\twitter-widget-pro/wp-twitter-widget.php:645
152
+ msgid "Settings"
153
+ msgstr "Indstillinger"
154
+
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: aaroncampbell
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=paypal%40xavisys%2ecom&item_name=Twitter%20Widget%20Pro&no_shipping=0&no_note=1&tax=0&currency_code=USD&lc=US&bn=PP%2dDonationsBF&charset=UTF%2d8
4
  Tags: twitter, widget, feed
5
  Requires at least: 2.7
6
- Tested up to: 2.8
7
- Stable tag: 1.4.3
8
 
9
  A widget that properly handles twitter feeds, including parsing @username, #hashtags, and URLs into links. Requires PHP5.
10
 
@@ -46,6 +46,11 @@ Aparently the database queries required to display the friends feed was causing
46
 
47
  == Changelog ==
48
 
 
 
 
 
 
49
  = 1.4.3 =
50
  * Added the text domain to some translatable strings that were missing it
51
  * Added the Spanish translation thanks to Rafael Poveda <RaveN>!! (Really....thanks for being the first translator for this)
3
  Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=paypal%40xavisys%2ecom&item_name=Twitter%20Widget%20Pro&no_shipping=0&no_note=1&tax=0&currency_code=USD&lc=US&bn=PP%2dDonationsBF&charset=UTF%2d8
4
  Tags: twitter, widget, feed
5
  Requires at least: 2.7
6
+ Tested up to: 2.8.1
7
+ Stable tag: 1.4.4
8
 
9
  A widget that properly handles twitter feeds, including parsing @username, #hashtags, and URLs into links. Requires PHP5.
10
 
46
 
47
  == Changelog ==
48
 
49
+ = 1.4.4 =
50
+ * Added Danish translation - Props <a href="http://wordpress.blogos.dk/">Georg</a>
51
+ * Add ability to give more information on WHY you should upgrade on the plugins page
52
+ * Fixed PHP notice when you add a new copy of widget to your sidebar
53
+
54
  = 1.4.3 =
55
  * Added the text domain to some translatable strings that were missing it
56
  * Added the Spanish translation thanks to Rafael Poveda <RaveN>!! (Really....thanks for being the first translator for this)
upgrade.html ADDED
@@ -0,0 +1,5 @@
 
 
 
 
 
1
+ <a href="http://wordpress.org/extend/plugins/twitter-widget-pro/changelog/">Change Log</a>
2
+ <ul style="list-style: disc inside; padding: 5px 0 0 15px; font-weight: normal;">
3
+ <li>Added Danish translation - Props <a href="http://wordpress.blogos.dk/">Georg</a></li>
4
+ <li>Add ability to give more information on WHY you should upgrade on the plugins page</li>
5
+ </ul>
wp-twitter-widget.php CHANGED
@@ -3,13 +3,13 @@
3
  * Plugin Name: Twitter Widget Pro
4
  * Plugin URI: http://xavisys.com/wordpress-twitter-widget/
5
  * Description: A widget that properly handles twitter feeds, including @username, #hashtag, and link parsing. It can even display profile images for the users. Requires PHP5.
6
- * Version: 1.4.3
7
  * Author: Aaron D. Campbell
8
  * Author URI: http://xavisys.com/
9
  * Text Domain: twitter-widget-pro
10
  */
11
 
12
- define('TWP_VERSION', '1.4.3');
13
 
14
  /* Copyright 2006 Aaron D. Campbell (email : wp_plugins@xavisys.com)
15
 
@@ -38,11 +38,30 @@ class wpTwitterWidgetException extends Exception {}
38
  class wpTwitterWidget
39
  {
40
  /**
41
- * @var string Stores the plugin file to test against on plugins page
 
 
42
  */
43
  private $_pluginBasename;
44
 
45
- public function __construct() {}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
46
 
47
  public function admin_menu() {
48
  add_options_page(__('Twitter Widget Pro', 'twitter-widget-pro'), __('Twitter Widget Pro', 'twitter-widget-pro'), 'manage_options', 'TwitterWidgetPro', array($this, 'options'));
@@ -91,6 +110,15 @@ class wpTwitterWidget
91
  <?php
92
  }
93
 
 
 
 
 
 
 
 
 
 
94
  /**
95
  * Pulls the JSON feed from Twitter and returns an array of objects
96
  *
@@ -427,6 +455,10 @@ profileImage;
427
  $options[$number]['avatar'] = (bool) $options[$number]['avatar'];
428
  $options[$number]['showXavisysLink'] = (!isset($options[$number]['showXavisysLink']) || $options[$number]['showXavisysLink'] != 'false');
429
  }
 
 
 
 
430
  $this->_showForm($options[$number]);
431
  }
432
 
@@ -662,5 +694,5 @@ add_filter( 'widget_twitter_content', array($wpTwitterWidget, 'linkTwitterUsers'
662
  add_filter( 'widget_twitter_content', array($wpTwitterWidget, 'linkUrls') );
663
  add_filter( 'widget_twitter_content', array($wpTwitterWidget, 'linkHashtags') );
664
  add_filter( 'widget_twitter_content', 'convert_chars' );
665
- add_action( 'activate_twitter-widget-pro/wp-twitter-widget.php', array($wpTwitterWidget, 'activatePlugin') );
666
  add_filter( 'plugin_action_links', array($wpTwitterWidget, 'addSettingLink'), 10, 2 );
 
3
  * Plugin Name: Twitter Widget Pro
4
  * Plugin URI: http://xavisys.com/wordpress-twitter-widget/
5
  * Description: A widget that properly handles twitter feeds, including @username, #hashtag, and link parsing. It can even display profile images for the users. Requires PHP5.
6
+ * Version: 1.4.4
7
  * Author: Aaron D. Campbell
8
  * Author URI: http://xavisys.com/
9
  * Text Domain: twitter-widget-pro
10
  */
11
 
12
+ define('TWP_VERSION', '1.4.4');
13
 
14
  /* Copyright 2006 Aaron D. Campbell (email : wp_plugins@xavisys.com)
15
 
38
  class wpTwitterWidget
39
  {
40
  /**
41
+ * Plugin file to test against on plugins page
42
+ *
43
+ * @var string
44
  */
45
  private $_pluginBasename;
46
 
47
+ /**
48
+ * Repository base url
49
+ *
50
+ * @since 1.4.4
51
+ * @var string
52
+ */
53
+ private $_reposUrl = 'http://plugins.svn.wordpress.org/';
54
+
55
+ public function __construct() {
56
+ /**
57
+ * Add update messages that can be attached to the CURRENT release (not
58
+ * this one), but only for 2.8+
59
+ */
60
+ global $wp_version;
61
+ if ( version_compare('2.8', $wp_version, '<=') ) {
62
+ add_action ( 'in_plugin_update_message-'.plugin_basename ( __FILE__ ) , array ( $this , '_changelog' ), null, 2 );
63
+ }
64
+ }
65
 
66
  public function admin_menu() {
67
  add_options_page(__('Twitter Widget Pro', 'twitter-widget-pro'), __('Twitter Widget Pro', 'twitter-widget-pro'), 'manage_options', 'TwitterWidgetPro', array($this, 'options'));
110
  <?php
111
  }
112
 
113
+ public function _changelog ($pluginData, $newPluginData) {
114
+ $url = "{$this->_reposUrl}/{$newPluginData->slug}/tags/{$newPluginData->new_version}/upgrade.html";
115
+ $response = wp_remote_get ( $url );
116
+ $code = (int) wp_remote_retrieve_response_code ( $response );
117
+ if ( $code == 200 ) {
118
+ echo wp_remote_retrieve_body ( $response );
119
+ }
120
+ }
121
+
122
  /**
123
  * Pulls the JSON feed from Twitter and returns an array of objects
124
  *
455
  $options[$number]['avatar'] = (bool) $options[$number]['avatar'];
456
  $options[$number]['showXavisysLink'] = (!isset($options[$number]['showXavisysLink']) || $options[$number]['showXavisysLink'] != 'false');
457
  }
458
+ // Fix Undefined offset Notice
459
+ if ( empty($options[$number]) ) {
460
+ $options[$number] = array();
461
+ }
462
  $this->_showForm($options[$number]);
463
  }
464
 
694
  add_filter( 'widget_twitter_content', array($wpTwitterWidget, 'linkUrls') );
695
  add_filter( 'widget_twitter_content', array($wpTwitterWidget, 'linkHashtags') );
696
  add_filter( 'widget_twitter_content', 'convert_chars' );
 
697
  add_filter( 'plugin_action_links', array($wpTwitterWidget, 'addSettingLink'), 10, 2 );
698
+ register_activation_hook(__FILE__, array($wpTwitterWidget,'activatePlugin'));