Changeset 612986
- Timestamp:
- 10/16/2012 12:03:26 AM (13 years ago)
- Location:
- social-impact-widget
- Files:
-
- 4 edited
- 1 copied
-
tags/1.3 (copied) (copied from social-impact-widget/trunk)
-
tags/1.3/readme.txt (modified) (2 diffs)
-
tags/1.3/social-impact-widget.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/social-impact-widget.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
social-impact-widget/tags/1.3/readme.txt
r601897 r612986 5 5 Requires at least: 3.2 6 6 Tested up to: 3.5 7 Stable tag: 1. 27 Stable tag: 1.3 8 8 9 9 Displaying your social impact. … … 45 45 46 46 == Changelog == 47 48 = 1.3 = 49 * (16. 10. 2012) 50 * Switched to the new Tiwtter-API. 47 51 48 52 = 1.2 = -
social-impact-widget/tags/1.3/social-impact-widget.php
r601897 r612986 2 2 /** 3 3 * Plugin Name: Social Impact Widget 4 * Plugin URI: http://ppfeufer.de/wordpress-plugin -social-impact-widget/4 * Plugin URI: http://ppfeufer.de/wordpress-plugin/social-impact-widget/ 5 5 * Description: Displaying the count of twitterfollowers, googleplus circles, facebookfans, google+ circles and feedreaders (feedburner) in your sidebar. 6 * Version: 1. 26 * Version: 1.3 7 7 * Author: H.-Peter Pfeufer 8 8 * Author URI: http://ppfeufer.de … … 343 343 delete_transient('twitter-count'); 344 344 345 $return_Twitter = $this->_helper_curl(sprintf('http ://twitter.com/users/show.xml?screen_name=%1$s',345 $return_Twitter = $this->_helper_curl(sprintf('https://api.twitter.com/1/users/show.json?screen_name=%1$s', 346 346 $var_sTwitterId 347 347 ), $this->var_sUserAgent); 348 348 349 349 try { 350 $ xml = new SimpleXmlElement($return_Twitter, LIBXML_NOCDATA);351 352 if($ xml) {353 if(!empty($ xml->followers_count)) {354 $this->array_Options[$this->var_sArrayOptionsKey]['twitter-count'] = (int) $ xml->followers_count;355 } // END if(!empty($ xml->followers_count))356 } // ENDif($ xml)350 $obj_TwitterData = json_decode($return_Twitter); 351 352 if($obj_TwitterData) { 353 if(!empty($obj_TwitterData->followers_count)) { 354 $this->array_Options[$this->var_sArrayOptionsKey]['twitter-count'] = (int) $obj_TwitterData->followers_count; 355 } // END if(!empty($obj_TwitterData->followers_count)) 356 } // ENDif($obj_TwitterData) 357 357 } catch(Exception $e) { 358 358 $this->array_Options[$this->var_sArrayOptionsKey]['twitter-count'] = (int) $var_iTwitterFollowerCount; -
social-impact-widget/trunk/readme.txt
r601897 r612986 5 5 Requires at least: 3.2 6 6 Tested up to: 3.5 7 Stable tag: 1. 27 Stable tag: 1.3 8 8 9 9 Displaying your social impact. … … 45 45 46 46 == Changelog == 47 48 = 1.3 = 49 * (16. 10. 2012) 50 * Switched to the new Tiwtter-API. 47 51 48 52 = 1.2 = -
social-impact-widget/trunk/social-impact-widget.php
r601897 r612986 2 2 /** 3 3 * Plugin Name: Social Impact Widget 4 * Plugin URI: http://ppfeufer.de/wordpress-plugin -social-impact-widget/4 * Plugin URI: http://ppfeufer.de/wordpress-plugin/social-impact-widget/ 5 5 * Description: Displaying the count of twitterfollowers, googleplus circles, facebookfans, google+ circles and feedreaders (feedburner) in your sidebar. 6 * Version: 1. 26 * Version: 1.3 7 7 * Author: H.-Peter Pfeufer 8 8 * Author URI: http://ppfeufer.de … … 343 343 delete_transient('twitter-count'); 344 344 345 $return_Twitter = $this->_helper_curl(sprintf('http ://twitter.com/users/show.xml?screen_name=%1$s',345 $return_Twitter = $this->_helper_curl(sprintf('https://api.twitter.com/1/users/show.json?screen_name=%1$s', 346 346 $var_sTwitterId 347 347 ), $this->var_sUserAgent); 348 348 349 349 try { 350 $ xml = new SimpleXmlElement($return_Twitter, LIBXML_NOCDATA);351 352 if($ xml) {353 if(!empty($ xml->followers_count)) {354 $this->array_Options[$this->var_sArrayOptionsKey]['twitter-count'] = (int) $ xml->followers_count;355 } // END if(!empty($ xml->followers_count))356 } // ENDif($ xml)350 $obj_TwitterData = json_decode($return_Twitter); 351 352 if($obj_TwitterData) { 353 if(!empty($obj_TwitterData->followers_count)) { 354 $this->array_Options[$this->var_sArrayOptionsKey]['twitter-count'] = (int) $obj_TwitterData->followers_count; 355 } // END if(!empty($obj_TwitterData->followers_count)) 356 } // ENDif($obj_TwitterData) 357 357 } catch(Exception $e) { 358 358 $this->array_Options[$this->var_sArrayOptionsKey]['twitter-count'] = (int) $var_iTwitterFollowerCount;
Note: See TracChangeset
for help on using the changeset viewer.