Twitter Widget Pro - Version 1.3.3

Version Description

Download this release

Release Info

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

Code changes from version 1.3.2 to 1.3.3

Files changed (2) hide show
  1. readme.txt +3 -1
  2. wp-twitter-widget.php +17 -6
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
7
- Stable tag: 1.3.2
8
 
9
  A widget that properly handles twitter feeds, including parsing @username and URLs into links. Requires PHP5.
10
 
@@ -15,6 +15,8 @@ parsing. It supports displaying profiles images, and even lets you control
15
  whether to display the time and date of a tweet or how log ago it happened
16
  (about 5 hours ago, etc). Requires PHP5.
17
 
 
 
18
  == Installation ==
19
 
20
  1. Verify that you have PHP5, which is required for this plugin.
4
  Tags: twitter, widget, feed
5
  Requires at least: 2.7
6
  Tested up to: 2.8
7
+ Stable tag: 1.3.3
8
 
9
  A widget that properly handles twitter feeds, including parsing @username and URLs into links. Requires PHP5.
10
 
15
  whether to display the time and date of a tweet or how log ago it happened
16
  (about 5 hours ago, etc). Requires PHP5.
17
 
18
+ You may also be interested in WordPress tips and tricks at <a href="http://wpinformer.com">WordPress Informer</a>
19
+
20
  == Installation ==
21
 
22
  1. Verify that you have PHP5, which is required for this plugin.
wp-twitter-widget.php CHANGED
@@ -3,15 +3,18 @@
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 and link parsing, and can even display profile images for the users. Requires PHP5.
6
- * Version: 1.3.2
7
  * Author: Aaron D. Campbell
8
  * Author URI: http://xavisys.com/
9
  */
10
 
11
- define('TWP_VERSION', '1.3.2');
12
 
13
  /**
14
  * Changelog:
 
 
 
15
  * 04/22/2009: 1.3.2
16
  * - Fixed problem with link to Twitter Widget Pro page not turning off
17
  *
@@ -284,7 +287,7 @@ class wpTwitterWidget
284
 
285
  $options[$number]['hiderss'] = (isset($options[$number]['hiderss']) && $options[$number]['hiderss']);
286
  $options[$number]['avatar'] = (isset($options[$number]['avatar']) && $options[$number]['avatar']);
287
- $options[$number]['showXavisysLink'] = (!isset($options[$number]['showXavisysLink']) || $options[$number]['showXavisysLink']);
288
 
289
 
290
  try {
@@ -442,7 +445,6 @@ profileImage;
442
  if ( !isset($widget_twitter['username']) && isset($options[$widget_number]) ) // user clicked cancel
443
  continue;
444
 
445
- $widget_twitter['showXavisysLink'] = empty($widget_twitter['showXavisysLink']);
446
  $widget_twitter['title'] = stripslashes($widget_twitter['title']);
447
  $widget_twitter['errmsg'] = stripslashes($widget_twitter['errmsg']);
448
  if ( !current_user_can('unfiltered_html') ) {
@@ -464,7 +466,7 @@ profileImage;
464
  $options[$number]['username'] = attribute_escape($options[$number]['username']);
465
  $options[$number]['hiderss'] = (bool) $options[$number]['hiderss'];
466
  $options[$number]['avatar'] = (bool) $options[$number]['avatar'];
467
- $options[$number]['showXavisysLink'] = (!isset($options[$number]['showXavisysLink']) || $options[$number]['showXavisysLink']);
468
  }
469
  $this->_showForm($options[$number]);
470
  }
@@ -517,8 +519,16 @@ profileImage;
517
  'showts' => 60 * 60 * 24,
518
  'number' => '%i%' );
519
 
 
 
 
 
520
  $args = wp_parse_args( $args, $defaultArgs );
521
  extract( $args );
 
 
 
 
522
  ?>
523
  <p>
524
  <label for="twitter-username-<?php echo $number; ?>"><?php _e('Twitter username:'); ?></label>
@@ -565,7 +575,8 @@ profileImage;
565
  <label for="twitter-avatar-<?php echo $number; ?>"><input class="checkbox" type="checkbox" id="twitter-avatar-<?php echo $number; ?>" name="widget-twitter[<?php echo $number; ?>][avatar]"<?php checked($avatar, true); ?> /> <?php _e('Show Profile Image'); ?></label>
566
  </p>
567
  <p>
568
- <label for="twitter-showXavisysLink-<?php echo $number; ?>"><input class="checkbox" type="checkbox" id="twitter-showXavisysLink-<?php echo $number; ?>" name="widget-twitter[<?php echo $number; ?>][showXavisysLink]"<?php checked($showXavisysLink, true); ?> /> <?php _e('Show Link to Twitter Widget Pro'); ?></label>
 
569
  </p>
570
  <?php
571
  }
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 and link parsing, and can even display profile images for the users. Requires PHP5.
6
+ * Version: 1.3.3
7
  * Author: Aaron D. Campbell
8
  * Author URI: http://xavisys.com/
9
  */
10
 
11
+ define('TWP_VERSION', '1.3.3');
12
 
13
  /**
14
  * Changelog:
15
+ * 04/28/2009: 1.3.3
16
+ * - Some configs still couldn't turn off the link to Twitter Widget Pro page
17
+ *
18
  * 04/22/2009: 1.3.2
19
  * - Fixed problem with link to Twitter Widget Pro page not turning off
20
  *
287
 
288
  $options[$number]['hiderss'] = (isset($options[$number]['hiderss']) && $options[$number]['hiderss']);
289
  $options[$number]['avatar'] = (isset($options[$number]['avatar']) && $options[$number]['avatar']);
290
+ $options[$number]['showXavisysLink'] = (!isset($options[$number]['showXavisysLink']) || $options[$number]['showXavisysLink'] != 'false');
291
 
292
 
293
  try {
445
  if ( !isset($widget_twitter['username']) && isset($options[$widget_number]) ) // user clicked cancel
446
  continue;
447
 
 
448
  $widget_twitter['title'] = stripslashes($widget_twitter['title']);
449
  $widget_twitter['errmsg'] = stripslashes($widget_twitter['errmsg']);
450
  if ( !current_user_can('unfiltered_html') ) {
466
  $options[$number]['username'] = attribute_escape($options[$number]['username']);
467
  $options[$number]['hiderss'] = (bool) $options[$number]['hiderss'];
468
  $options[$number]['avatar'] = (bool) $options[$number]['avatar'];
469
+ $options[$number]['showXavisysLink'] = (!isset($options[$number]['showXavisysLink']) || $options[$number]['showXavisysLink'] != 'false');
470
  }
471
  $this->_showForm($options[$number]);
472
  }
519
  'showts' => 60 * 60 * 24,
520
  'number' => '%i%' );
521
 
522
+ echo '<!-- HERE 3:';
523
+ var_dump($args);
524
+ var_dump($defaultArgs);
525
+ echo '-->';
526
  $args = wp_parse_args( $args, $defaultArgs );
527
  extract( $args );
528
+ echo '<!-- HERE 4:';
529
+ var_dump($args);
530
+ var_dump($showXavisysLink);
531
+ echo '-->';
532
  ?>
533
  <p>
534
  <label for="twitter-username-<?php echo $number; ?>"><?php _e('Twitter username:'); ?></label>
575
  <label for="twitter-avatar-<?php echo $number; ?>"><input class="checkbox" type="checkbox" id="twitter-avatar-<?php echo $number; ?>" name="widget-twitter[<?php echo $number; ?>][avatar]"<?php checked($avatar, true); ?> /> <?php _e('Show Profile Image'); ?></label>
576
  </p>
577
  <p>
578
+ <input type="hidden" name="widget-twitter[<?php echo $number; ?>][showXavisysLink]" value="false" />
579
+ <label for="twitter-showXavisysLink-<?php echo $number; ?>"><input class="checkbox" type="checkbox" value="true" id="twitter-showXavisysLink-<?php echo $number; ?>" name="widget-twitter[<?php echo $number; ?>][showXavisysLink]"<?php checked($showXavisysLink, true); ?> /> <?php _e('Show Link to Twitter Widget Pro'); ?></label>
580
  </p>
581
  <?php
582
  }