Version Description
- The HTML has been changed for displaying profile images. If you show profile images, you may need to update your CSS accordingly
- Changed name of widget from "Twitter Feed" to "Twitter Widget Pro"
- Fixed issue with calculation of "time since" for tweets that were months old
Download this release
Release Info
Developer | aaroncampbell |
Plugin | Twitter Widget Pro |
Version | 1.4.8 |
Comparing to | |
See all releases |
Code changes from version 1.4.7 to 1.4.8
- languages/twitter-widget-pro.pot +41 -45
- readme.txt +7 -2
- upgrade.html +3 -1
- wp-twitter-widget.php +8 -9
languages/twitter-widget-pro.pot
CHANGED
@@ -7,7 +7,7 @@ msgid ""
|
|
7 |
msgstr ""
|
8 |
"Project-Id-Version: PACKAGE VERSION\n"
|
9 |
"Report-Msgid-Bugs-To: http://wordpress.org/tag/twitter-widget-pro\n"
|
10 |
-
"POT-Creation-Date: 2009-07-
|
11 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
12 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
13 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
@@ -16,196 +16,192 @@ msgstr ""
|
|
16 |
"Content-Transfer-Encoding: 8bit\n"
|
17 |
"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
|
18 |
|
19 |
-
#: wp-twitter-widget.php:
|
20 |
msgid "Twitter Widget Pro"
|
21 |
msgstr ""
|
22 |
|
23 |
-
#: wp-twitter-widget.php:
|
24 |
msgid "Twitter Widget Pro Options"
|
25 |
msgstr ""
|
26 |
|
27 |
-
#: wp-twitter-widget.php:
|
28 |
msgid "Click for Help!"
|
29 |
msgstr ""
|
30 |
|
31 |
-
#: wp-twitter-widget.php:
|
32 |
msgid "System Information:"
|
33 |
msgstr ""
|
34 |
|
35 |
-
#: wp-twitter-widget.php:
|
36 |
msgid "I agree to send anonymous system information"
|
37 |
msgstr ""
|
38 |
|
39 |
-
#: wp-twitter-widget.php:
|
40 |
msgid ""
|
41 |
"You can help by sending anonymous system information that will help Xavisys "
|
42 |
"make better decisions about new features."
|
43 |
msgstr ""
|
44 |
|
45 |
-
#: wp-twitter-widget.php:
|
46 |
msgid ""
|
47 |
"The information will be sent anonymously, but a unique identifier will be "
|
48 |
"sent to prevent duplicate entries from the same installation."
|
49 |
msgstr ""
|
50 |
|
51 |
-
#: wp-twitter-widget.php:
|
52 |
msgid "Update Options »"
|
53 |
msgstr ""
|
54 |
|
55 |
-
#: wp-twitter-widget.php:
|
56 |
msgid "Could not connect to Twitter"
|
57 |
msgstr ""
|
58 |
|
59 |
-
#: wp-twitter-widget.php:
|
60 |
msgid "Syndicate this content"
|
61 |
msgstr ""
|
62 |
|
63 |
-
#: wp-twitter-widget.php:
|
64 |
msgid "No Tweets Available"
|
65 |
msgstr ""
|
66 |
|
67 |
-
#: wp-twitter-widget.php:
|
68 |
#, php-format
|
69 |
msgid "from %s"
|
70 |
msgstr ""
|
71 |
|
72 |
-
#: wp-twitter-widget.php:
|
73 |
#, php-format
|
74 |
msgid "in reply to %s"
|
75 |
msgstr ""
|
76 |
|
77 |
-
#: wp-twitter-widget.php:
|
78 |
#, php-format
|
79 |
msgid ""
|
80 |
"Powered by <a href=\"%s\" title=\"Get Twitter Widget for your WordPress site"
|
81 |
"\">WordPress Twitter Widget Pro</a>"
|
82 |
msgstr ""
|
83 |
|
84 |
-
#: wp-twitter-widget.php:
|
85 |
msgid "Follow a Twitter Feed"
|
86 |
msgstr ""
|
87 |
|
88 |
-
#: wp-twitter-widget.php:
|
89 |
-
msgid "Twitter Feed"
|
90 |
-
msgstr ""
|
91 |
-
|
92 |
-
#: wp-twitter-widget.php:530
|
93 |
msgid "Twitter username:"
|
94 |
msgstr ""
|
95 |
|
96 |
-
#: wp-twitter-widget.php:
|
97 |
msgid "Give the feed a title (optional):"
|
98 |
msgstr ""
|
99 |
|
100 |
-
#: wp-twitter-widget.php:
|
101 |
msgid "How many items would you like to display?"
|
102 |
msgstr ""
|
103 |
|
104 |
-
#: wp-twitter-widget.php:
|
105 |
msgid "Hide @replies"
|
106 |
msgstr ""
|
107 |
|
108 |
-
#: wp-twitter-widget.php:
|
109 |
msgid "What to display when Twitter is down (optional):"
|
110 |
msgstr ""
|
111 |
|
112 |
-
#: wp-twitter-widget.php:
|
113 |
msgid "Number of seconds to wait for a response from Twitter (default 2):"
|
114 |
msgstr ""
|
115 |
|
116 |
-
#: wp-twitter-widget.php:
|
117 |
msgid "Show date/time of Tweet (rather than 2 ____ ago):"
|
118 |
msgstr ""
|
119 |
|
120 |
-
#: wp-twitter-widget.php:
|
121 |
msgid "Always"
|
122 |
msgstr ""
|
123 |
|
124 |
-
#: wp-twitter-widget.php:
|
125 |
msgid "If over an hour old"
|
126 |
msgstr ""
|
127 |
|
128 |
-
#: wp-twitter-widget.php:
|
129 |
msgid "If over a day old"
|
130 |
msgstr ""
|
131 |
|
132 |
-
#: wp-twitter-widget.php:
|
133 |
msgid "If over a week old"
|
134 |
msgstr ""
|
135 |
|
136 |
-
#: wp-twitter-widget.php:
|
137 |
msgid "If over a month old"
|
138 |
msgstr ""
|
139 |
|
140 |
-
#: wp-twitter-widget.php:
|
141 |
msgid "If over a year old"
|
142 |
msgstr ""
|
143 |
|
144 |
-
#: wp-twitter-widget.php:
|
145 |
msgid "Never"
|
146 |
msgstr ""
|
147 |
|
148 |
-
#: wp-twitter-widget.php:
|
149 |
msgid "Hide RSS Icon and Link"
|
150 |
msgstr ""
|
151 |
|
152 |
-
#: wp-twitter-widget.php:
|
153 |
msgid "Show Profile Image"
|
154 |
msgstr ""
|
155 |
|
156 |
-
#: wp-twitter-widget.php:
|
157 |
msgid "Show Link to Twitter Widget Pro"
|
158 |
msgstr ""
|
159 |
|
160 |
-
#: wp-twitter-widget.php:
|
161 |
#, php-format
|
162 |
msgid "about %s year ago"
|
163 |
msgid_plural "about %s years ago"
|
164 |
msgstr[0] ""
|
165 |
msgstr[1] ""
|
166 |
|
167 |
-
#: wp-twitter-widget.php:
|
168 |
#, php-format
|
169 |
msgid "about %s month ago"
|
170 |
msgid_plural "about %s months ago"
|
171 |
msgstr[0] ""
|
172 |
msgstr[1] ""
|
173 |
|
174 |
-
#: wp-twitter-widget.php:
|
175 |
#, php-format
|
176 |
msgid "about %s week ago"
|
177 |
msgid_plural "about %s weeks ago"
|
178 |
msgstr[0] ""
|
179 |
msgstr[1] ""
|
180 |
|
181 |
-
#: wp-twitter-widget.php:
|
182 |
#, php-format
|
183 |
msgid "about %s day ago"
|
184 |
msgid_plural "about %s days ago"
|
185 |
msgstr[0] ""
|
186 |
msgstr[1] ""
|
187 |
|
188 |
-
#: wp-twitter-widget.php:
|
189 |
#, php-format
|
190 |
msgid "about %s hour ago"
|
191 |
msgid_plural "about %s hours ago"
|
192 |
msgstr[0] ""
|
193 |
msgstr[1] ""
|
194 |
|
195 |
-
#: wp-twitter-widget.php:
|
196 |
#, php-format
|
197 |
msgid "about %s minute ago"
|
198 |
msgid_plural "about %s minutes ago"
|
199 |
msgstr[0] ""
|
200 |
msgstr[1] ""
|
201 |
|
202 |
-
#: wp-twitter-widget.php:
|
203 |
#, php-format
|
204 |
msgid "about %s second ago"
|
205 |
msgid_plural "about %s seconds ago"
|
206 |
msgstr[0] ""
|
207 |
msgstr[1] ""
|
208 |
|
209 |
-
#: wp-twitter-widget.php:
|
210 |
msgid "Settings"
|
211 |
msgstr ""
|
7 |
msgstr ""
|
8 |
"Project-Id-Version: PACKAGE VERSION\n"
|
9 |
"Report-Msgid-Bugs-To: http://wordpress.org/tag/twitter-widget-pro\n"
|
10 |
+
"POT-Creation-Date: 2009-07-24 16:48+0000\n"
|
11 |
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
12 |
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
13 |
"Language-Team: LANGUAGE <LL@li.org>\n"
|
16 |
"Content-Transfer-Encoding: 8bit\n"
|
17 |
"Plural-Forms: nplurals=INTEGER; plural=EXPRESSION;\n"
|
18 |
|
19 |
+
#: wp-twitter-widget.php:74 wp-twitter-widget.php:491
|
20 |
msgid "Twitter Widget Pro"
|
21 |
msgstr ""
|
22 |
|
23 |
+
#: wp-twitter-widget.php:90
|
24 |
msgid "Twitter Widget Pro Options"
|
25 |
msgstr ""
|
26 |
|
27 |
+
#: wp-twitter-widget.php:96
|
28 |
msgid "Click for Help!"
|
29 |
msgstr ""
|
30 |
|
31 |
+
#: wp-twitter-widget.php:97
|
32 |
msgid "System Information:"
|
33 |
msgstr ""
|
34 |
|
35 |
+
#: wp-twitter-widget.php:102
|
36 |
msgid "I agree to send anonymous system information"
|
37 |
msgstr ""
|
38 |
|
39 |
+
#: wp-twitter-widget.php:104
|
40 |
msgid ""
|
41 |
"You can help by sending anonymous system information that will help Xavisys "
|
42 |
"make better decisions about new features."
|
43 |
msgstr ""
|
44 |
|
45 |
+
#: wp-twitter-widget.php:105
|
46 |
msgid ""
|
47 |
"The information will be sent anonymously, but a unique identifier will be "
|
48 |
"sent to prevent duplicate entries from the same installation."
|
49 |
msgstr ""
|
50 |
|
51 |
+
#: wp-twitter-widget.php:111
|
52 |
msgid "Update Options »"
|
53 |
msgstr ""
|
54 |
|
55 |
+
#: wp-twitter-widget.php:147
|
56 |
msgid "Could not connect to Twitter"
|
57 |
msgstr ""
|
58 |
|
59 |
+
#: wp-twitter-widget.php:311
|
60 |
msgid "Syndicate this content"
|
61 |
msgstr ""
|
62 |
|
63 |
+
#: wp-twitter-widget.php:329
|
64 |
msgid "No Tweets Available"
|
65 |
msgstr ""
|
66 |
|
67 |
+
#: wp-twitter-widget.php:346
|
68 |
#, php-format
|
69 |
msgid "from %s"
|
70 |
msgstr ""
|
71 |
|
72 |
+
#: wp-twitter-widget.php:350
|
73 |
#, php-format
|
74 |
msgid "in reply to %s"
|
75 |
msgstr ""
|
76 |
|
77 |
+
#: wp-twitter-widget.php:374
|
78 |
#, php-format
|
79 |
msgid ""
|
80 |
"Powered by <a href=\"%s\" title=\"Get Twitter Widget for your WordPress site"
|
81 |
"\">WordPress Twitter Widget Pro</a>"
|
82 |
msgstr ""
|
83 |
|
84 |
+
#: wp-twitter-widget.php:489
|
85 |
msgid "Follow a Twitter Feed"
|
86 |
msgstr ""
|
87 |
|
88 |
+
#: wp-twitter-widget.php:534
|
|
|
|
|
|
|
|
|
89 |
msgid "Twitter username:"
|
90 |
msgstr ""
|
91 |
|
92 |
+
#: wp-twitter-widget.php:538
|
93 |
msgid "Give the feed a title (optional):"
|
94 |
msgstr ""
|
95 |
|
96 |
+
#: wp-twitter-widget.php:542
|
97 |
msgid "How many items would you like to display?"
|
98 |
msgstr ""
|
99 |
|
100 |
+
#: wp-twitter-widget.php:552
|
101 |
msgid "Hide @replies"
|
102 |
msgstr ""
|
103 |
|
104 |
+
#: wp-twitter-widget.php:555
|
105 |
msgid "What to display when Twitter is down (optional):"
|
106 |
msgstr ""
|
107 |
|
108 |
+
#: wp-twitter-widget.php:559
|
109 |
msgid "Number of seconds to wait for a response from Twitter (default 2):"
|
110 |
msgstr ""
|
111 |
|
112 |
+
#: wp-twitter-widget.php:563
|
113 |
msgid "Show date/time of Tweet (rather than 2 ____ ago):"
|
114 |
msgstr ""
|
115 |
|
116 |
+
#: wp-twitter-widget.php:565
|
117 |
msgid "Always"
|
118 |
msgstr ""
|
119 |
|
120 |
+
#: wp-twitter-widget.php:566
|
121 |
msgid "If over an hour old"
|
122 |
msgstr ""
|
123 |
|
124 |
+
#: wp-twitter-widget.php:567
|
125 |
msgid "If over a day old"
|
126 |
msgstr ""
|
127 |
|
128 |
+
#: wp-twitter-widget.php:568
|
129 |
msgid "If over a week old"
|
130 |
msgstr ""
|
131 |
|
132 |
+
#: wp-twitter-widget.php:569
|
133 |
msgid "If over a month old"
|
134 |
msgstr ""
|
135 |
|
136 |
+
#: wp-twitter-widget.php:570
|
137 |
msgid "If over a year old"
|
138 |
msgstr ""
|
139 |
|
140 |
+
#: wp-twitter-widget.php:571
|
141 |
msgid "Never"
|
142 |
msgstr ""
|
143 |
|
144 |
+
#: wp-twitter-widget.php:575
|
145 |
msgid "Hide RSS Icon and Link"
|
146 |
msgstr ""
|
147 |
|
148 |
+
#: wp-twitter-widget.php:578
|
149 |
msgid "Show Profile Image"
|
150 |
msgstr ""
|
151 |
|
152 |
+
#: wp-twitter-widget.php:582
|
153 |
msgid "Show Link to Twitter Widget Pro"
|
154 |
msgstr ""
|
155 |
|
156 |
+
#: wp-twitter-widget.php:623
|
157 |
#, php-format
|
158 |
msgid "about %s year ago"
|
159 |
msgid_plural "about %s years ago"
|
160 |
msgstr[0] ""
|
161 |
msgstr[1] ""
|
162 |
|
163 |
+
#: wp-twitter-widget.php:624
|
164 |
#, php-format
|
165 |
msgid "about %s month ago"
|
166 |
msgid_plural "about %s months ago"
|
167 |
msgstr[0] ""
|
168 |
msgstr[1] ""
|
169 |
|
170 |
+
#: wp-twitter-widget.php:625
|
171 |
#, php-format
|
172 |
msgid "about %s week ago"
|
173 |
msgid_plural "about %s weeks ago"
|
174 |
msgstr[0] ""
|
175 |
msgstr[1] ""
|
176 |
|
177 |
+
#: wp-twitter-widget.php:626
|
178 |
#, php-format
|
179 |
msgid "about %s day ago"
|
180 |
msgid_plural "about %s days ago"
|
181 |
msgstr[0] ""
|
182 |
msgstr[1] ""
|
183 |
|
184 |
+
#: wp-twitter-widget.php:627
|
185 |
#, php-format
|
186 |
msgid "about %s hour ago"
|
187 |
msgid_plural "about %s hours ago"
|
188 |
msgstr[0] ""
|
189 |
msgstr[1] ""
|
190 |
|
191 |
+
#: wp-twitter-widget.php:628
|
192 |
#, php-format
|
193 |
msgid "about %s minute ago"
|
194 |
msgid_plural "about %s minutes ago"
|
195 |
msgstr[0] ""
|
196 |
msgstr[1] ""
|
197 |
|
198 |
+
#: wp-twitter-widget.php:629
|
199 |
#, php-format
|
200 |
msgid "about %s second ago"
|
201 |
msgid_plural "about %s seconds ago"
|
202 |
msgstr[0] ""
|
203 |
msgstr[1] ""
|
204 |
|
205 |
+
#: wp-twitter-widget.php:698
|
206 |
msgid "Settings"
|
207 |
msgstr ""
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_xclick&business=paypal%4
|
|
4 |
Tags: twitter, widget, feed
|
5 |
Requires at least: 2.7
|
6 |
Tested up to: 2.8.2
|
7 |
-
Stable tag: 1.4.
|
8 |
|
9 |
A widget that properly handles twitter feeds, including parsing @username, #hashtags, and URLs into links. Requires PHP5.
|
10 |
|
@@ -39,13 +39,18 @@ Aparently the database queries required to display the friends feed was causing
|
|
39 |
|
40 |
== Screenshots ==
|
41 |
|
42 |
-
1. To
|
43 |
2. Each widget has settings that need to be set, so the next step is to click "edit" on the newly added widget and adjust all the settings. When you're done click "Save Changes"
|
44 |
3. This is what the widget looks like in the default theme with no added styles.
|
45 |
4. By using some (X)HTML in the title element and adding a few styles and a background image, you could make it look like this.
|
46 |
|
47 |
== Changelog ==
|
48 |
|
|
|
|
|
|
|
|
|
|
|
49 |
= 1.4.7 =
|
50 |
* Properly registering settings, should fix problem with WPMU
|
51 |
|
4 |
Tags: twitter, widget, feed
|
5 |
Requires at least: 2.7
|
6 |
Tested up to: 2.8.2
|
7 |
+
Stable tag: 1.4.8
|
8 |
|
9 |
A widget that properly handles twitter feeds, including parsing @username, #hashtags, and URLs into links. Requires PHP5.
|
10 |
|
39 |
|
40 |
== Screenshots ==
|
41 |
|
42 |
+
1. To use the widget, go to Appearance -> Widgets and Add "Twitter Widget Pro" widget.
|
43 |
2. Each widget has settings that need to be set, so the next step is to click "edit" on the newly added widget and adjust all the settings. When you're done click "Save Changes"
|
44 |
3. This is what the widget looks like in the default theme with no added styles.
|
45 |
4. By using some (X)HTML in the title element and adding a few styles and a background image, you could make it look like this.
|
46 |
|
47 |
== Changelog ==
|
48 |
|
49 |
+
= 1.4.8 =
|
50 |
+
* The HTML has been changed for displaying profile images. If you show profile images, you may need to update your CSS accordingly
|
51 |
+
* Changed name of widget from "Twitter Feed" to "Twitter Widget Pro"
|
52 |
+
* Fixed issue with calculation of "time since" for tweets that were months old
|
53 |
+
|
54 |
= 1.4.7 =
|
55 |
* Properly registering settings, should fix problem with WPMU
|
56 |
|
upgrade.html
CHANGED
@@ -1,4 +1,6 @@
|
|
1 |
<p><a href="http://wordpress.org/extend/plugins/twitter-widget-pro/changelog/">Change Log</a></p>
|
2 |
<ul style="list-style: disc inside; padding: 5px 0 0 15px; font-weight: normal;">
|
3 |
-
<li>
|
|
|
|
|
4 |
</ul>
|
1 |
<p><a href="http://wordpress.org/extend/plugins/twitter-widget-pro/changelog/">Change Log</a></p>
|
2 |
<ul style="list-style: disc inside; padding: 5px 0 0 15px; font-weight: normal;">
|
3 |
+
<li style="color:red; font-weight:bold;">The HTML has been changed for displaying profile images. If you show profile images, you may need to update your CSS accordingly</li>
|
4 |
+
<li>Changed name of widget from "Twitter Feed" to "Twitter Widget Pro"</li>
|
5 |
+
<li>Fixed issue with calculation of "time since" for tweets that were months old</li>
|
6 |
</ul>
|
wp-twitter-widget.php
CHANGED
@@ -3,7 +3,7 @@
|
|
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.
|
7 |
* Author: Aaron D. Campbell
|
8 |
* Author URI: http://xavisys.com/
|
9 |
* Text Domain: twitter-widget-pro
|
@@ -317,18 +317,17 @@ class wpTwitterWidget
|
|
317 |
$options[$number]['title'] = "Twitter: {$options[$number]['username']}";
|
318 |
}
|
319 |
echo $before_title . $options[$number]['title'] . $after_title;
|
|
|
|
|
|
|
|
|
|
|
320 |
echo '<ul>';
|
321 |
if (is_a($tweets, 'wpTwitterWidgetException')) {
|
322 |
echo '<li class="wpTwitterWidgetError">' . $tweets->getMessage() . '</li>';
|
323 |
} else if (count($tweets) == 0) {
|
324 |
echo '<li class="wpTwitterWidgetEmpty">' . __('No Tweets Available', 'twitter-widget-pro') . '</li>';
|
325 |
} else {
|
326 |
-
if (!empty($tweets) && $options[$number]['avatar']) {
|
327 |
-
echo '<li>';
|
328 |
-
echo $this->_getProfileImage($tweets[0]->user);
|
329 |
-
echo '<div class="clear"></div>';
|
330 |
-
echo '</li>';
|
331 |
-
}
|
332 |
$count = 0;
|
333 |
foreach ($tweets as $tweet) {
|
334 |
if (!$options[$number]['hidereplies'] || empty($tweet->in_reply_to_user_id)) {
|
@@ -489,7 +488,7 @@ profileImage;
|
|
489 |
$options = array();
|
490 |
$widget_ops = array('classname' => 'widget_twitter', 'description' => __('Follow a Twitter Feed', 'twitter-widget-pro'));
|
491 |
$control_ops = array('width' => 400, 'height' => 350, 'id_base' => 'twitter');
|
492 |
-
$name = __('Twitter
|
493 |
|
494 |
$id = false;
|
495 |
foreach ( array_keys($options) as $o ) {
|
@@ -599,7 +598,7 @@ profileImage;
|
|
599 |
// array of time period chunks
|
600 |
$chunks = array(
|
601 |
'year' => 60 * 60 * 24 * 365, // 31,536,000 seconds
|
602 |
-
'month' => 60 * 60 * 24 *
|
603 |
'week' => 60 * 60 * 24 * 7, // 604,800 seconds
|
604 |
'day' => 60 * 60 * 24, // 86,400 seconds
|
605 |
'hour' => 60 * 60, // 3600 seconds
|
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.8
|
7 |
* Author: Aaron D. Campbell
|
8 |
* Author URI: http://xavisys.com/
|
9 |
* Text Domain: twitter-widget-pro
|
317 |
$options[$number]['title'] = "Twitter: {$options[$number]['username']}";
|
318 |
}
|
319 |
echo $before_title . $options[$number]['title'] . $after_title;
|
320 |
+
if (!empty($tweets) && $options[$number]['avatar']) {
|
321 |
+
echo '<div class="twitter-avatar">';
|
322 |
+
echo $this->_getProfileImage($tweets[0]->user);
|
323 |
+
echo '</div>';
|
324 |
+
}
|
325 |
echo '<ul>';
|
326 |
if (is_a($tweets, 'wpTwitterWidgetException')) {
|
327 |
echo '<li class="wpTwitterWidgetError">' . $tweets->getMessage() . '</li>';
|
328 |
} else if (count($tweets) == 0) {
|
329 |
echo '<li class="wpTwitterWidgetEmpty">' . __('No Tweets Available', 'twitter-widget-pro') . '</li>';
|
330 |
} else {
|
|
|
|
|
|
|
|
|
|
|
|
|
331 |
$count = 0;
|
332 |
foreach ($tweets as $tweet) {
|
333 |
if (!$options[$number]['hidereplies'] || empty($tweet->in_reply_to_user_id)) {
|
488 |
$options = array();
|
489 |
$widget_ops = array('classname' => 'widget_twitter', 'description' => __('Follow a Twitter Feed', 'twitter-widget-pro'));
|
490 |
$control_ops = array('width' => 400, 'height' => 350, 'id_base' => 'twitter');
|
491 |
+
$name = __('Twitter Widget Pro', 'twitter-widget-pro');
|
492 |
|
493 |
$id = false;
|
494 |
foreach ( array_keys($options) as $o ) {
|
598 |
// array of time period chunks
|
599 |
$chunks = array(
|
600 |
'year' => 60 * 60 * 24 * 365, // 31,536,000 seconds
|
601 |
+
'month' => 60 * 60 * 24 * 30, // 2,592,000 seconds
|
602 |
'week' => 60 * 60 * 24 * 7, // 604,800 seconds
|
603 |
'day' => 60 * 60 * 24, // 86,400 seconds
|
604 |
'hour' => 60 * 60, // 3600 seconds
|