Changeset 588945
- Timestamp:
- 08/22/2012 06:16:09 PM (14 years ago)
- Location:
- pinterest-rss-widget/trunk
- Files:
-
- 2 edited
-
pinterest-rss-widget.php (modified) (4 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
pinterest-rss-widget/trunk/pinterest-rss-widget.php
r531937 r588945 5 5 Description: Display up to 25 of your latest Pinterest Pins in your sidebar. You are welcome to express your gratitude for this plugin by donating via <a href="https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=SXTEL7YLUSFFC" target="_blank"><strong>PayPal</strong></a> 6 6 Author: bkmacdaddy designs 7 Version: 2.0 7 Version: 2.01 8 8 Author URI: http://bkmacdaddy.com/ 9 9 … … 48 48 49 49 function get_pins_feed_list($username, $boardname, $maxfeeds=25, $divname='standard', $printtext=NULL, $target='samewindow', $useenclosures='yes', $thumbwidth='150', $thumbheight='150', $showfollow='large') { 50 51 // This is the main function of the plugin. It is used by the widget and can also be called from anywhere in your theme. See the readme file for example. 50 // This is the main function of the plugin. It is used by the widget and can also be called from anywhere in your theme. See the readme file for example. 52 51 53 52 // Get Pinterest Feed(s) … … 60 59 // Get a SimplePie feed object from the Pinterest feed source 61 60 $rss = fetch_feed($pinsfeed); 62 63 // Figure out how many total items there are. 64 $maxitems = $rss->get_item_quantity((int)$maxfeeds); 61 $rss->set_timeout(60); 62 63 // Figure out how many total items there are. 64 $maxitems = $rss->get_item_quantity((int)$maxfeeds); 65 65 66 66 // Build an array of all the items, starting with element 0 (first element). … … 78 78 79 79 if ($thumb = $item->get_item_tags(SIMPLEPIE_NAMESPACE_MEDIARSS, 'thumbnail') ) { 80 $thumb = $thumb[0]['attribs']['']['url']; 80 $thumb = $thumb[0]['attribs']['']['url']; 81 81 $content .= '<img src="'.$thumb.'"'; 82 82 $content .= ' alt="'.$item->get_title().'"/>'; -
pinterest-rss-widget/trunk/readme.txt
r531937 r588945 70 70 == Changelog == 71 71 72 = 2.01 = 73 * Added timeout for RSS feed retrieval to avoid Call to undefined method WP_Error::get_item_quantity() 74 72 75 = 2.0 = 73 76 * Removed timthumb.php and replaced jQuery NailThumb for image resizing
Note: See TracChangeset
for help on using the changeset viewer.