Changeset 700792
- Timestamp:
- 04/20/2013 03:33:28 PM (13 years ago)
- Location:
- multi-site-site-list-shortcode
- Files:
-
- 24 added
- 3 edited
-
tags/5.4.1 (added)
-
tags/5.4.1/inc (added)
-
tags/5.4.1/inc/admin.php (added)
-
tags/5.4.1/inc/setup.php (added)
-
tags/5.4.1/languages (added)
-
tags/5.4.1/languages/multi-site-site-list-shortcode-hi_IN_HI.mo (added)
-
tags/5.4.1/languages/multi-site-site-list-shortcode-hi_IN_HI.po (added)
-
tags/5.4.1/languages/multi-site-site-list-shortcode-lt_LT.mo (added)
-
tags/5.4.1/languages/multi-site-site-list-shortcode-lt_LT.po (added)
-
tags/5.4.1/languages/multi-site-site-list-shortcode.pot (added)
-
tags/5.4.1/lib (added)
-
tags/5.4.1/lib/bit51 (added)
-
tags/5.4.1/lib/bit51/bit51.css (added)
-
tags/5.4.1/lib/bit51/bit51.php (added)
-
tags/5.4.1/lib/bit51/images (added)
-
tags/5.4.1/lib/bit51/images/bit51-small.png (added)
-
tags/5.4.1/lib/bit51/images/bit51.png (added)
-
tags/5.4.1/lib/bit51/images/facebook.png (added)
-
tags/5.4.1/lib/bit51/images/google.png (added)
-
tags/5.4.1/lib/bit51/images/subscribe.png (added)
-
tags/5.4.1/lib/bit51/images/twitter.png (added)
-
tags/5.4.1/lib/bit51/index.php (added)
-
tags/5.4.1/multi-site-site-list-shortcode.php (added)
-
tags/5.4.1/readme.txt (added)
-
trunk/lib/bit51/bit51.php (modified) (3 diffs)
-
trunk/multi-site-site-list-shortcode.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
multi-site-site-list-shortcode/trunk/lib/bit51/bit51.php
r642688 r700792 11 11 abstract class Bit51 { 12 12 13 var $feed = 'http:// feeds.feedburner.com/Bit51'; //current address of Bit51.com feed13 var $feed = 'http://bit51.com/feed'; //current address of Bit51.com feed 14 14 15 15 /** … … 350 350 351 351 $feed = fetch_feed( $this->feed ); //get the feed 352 353 $feeditems = $feed->get_items( 0, $feed->get_item_quantity( 5 ) ); //narrow feed to last 5 items 354 355 $content = '<ul>'; //start list 356 357 if ( ! $feeditems ) { 358 359 $content .= '<li class="bit51">' . __( 'No news items, feed might be broken...', $this->hook ) . '</li>'; 352 353 if ( ! isset( $feed->errors ) ) { 354 355 $feeditems = $feed->get_items( 0, $feed->get_item_quantity( 5 ) ); //narrow feed to last 5 items 356 357 $content = '<ul>'; //start list 358 359 if ( ! $feeditems ) { 360 361 $content .= '<li class="bit51">' . __( 'No news items, feed might be broken...', $this->hook ) . '</li>'; 360 362 363 } else { 364 365 foreach ( $feeditems as $item ) { 366 367 $url = preg_replace( '/#.*/', '', esc_url( $item->get_permalink(), $protocolls = null, 'display' ) ); 368 369 $content .= '<li class="bit51"><a class="rsswidget" href="' . $url . '" target="_blank">'. esc_html( $item->get_title() ) .'</a></li>'; 370 371 } 372 373 } 374 375 $content .= '</ul>'; //end list 376 361 377 } else { 362 363 foreach ( $feeditems as $item ) { 364 365 $url = preg_replace( '/#.*/', '', esc_url( $item->get_permalink(), $protocolls = null, 'display' ) ); 366 367 $content .= '<li class="bit51"><a class="rsswidget" href="' . $url . '" target="_blank">'. esc_html( $item->get_title() ) .'</a></li>'; 368 369 } 370 371 } 372 373 $content .= '</ul>'; //end list 378 $content = __( 'It appears as if the feed is currently down. Please try again later', $this->hook ); 379 } 374 380 375 381 $this->postbox( 'bit51posts' , __( 'The Latest from Bit51', $this->hook ), $content ); //set up postbox … … 385 391 function donate() { 386 392 387 $content = __( 'Have you found this plugin useful? Please help support it\'s continued development with a donation of $20, $50, or $100!', $this->hook );393 $content = __( 'Have you found this plugin useful? Please help support it\'s continued development with a donation of $20, $50, or even $100.', $this->hook ); 388 394 389 395 $content .= '<form action="https://www.paypal.com/cgi-bin/webscr" method="post"><input type="hidden" name="cmd" value="_s-xclick"><input type="hidden" name="hosted_button_id" value="' . $this->paypalcode . '"><input type="image" src="https://www.paypalobjects.com/en_US/i/btn/btn_donateCC_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!"><img alt="" border="0" src="https://www.paypalobjects.com/en_US/i/scr/pixel.gif" width="1" height="1"></form>'; -
multi-site-site-list-shortcode/trunk/multi-site-site-list-shortcode.php
r556690 r700792 4 4 Plugin URI: http://bit51.com/software/multi-site-site-list-shortcode/ 5 5 Description: Displays the site list with a shortcode for network installations. 6 Version: Dev6 Version: 5.4.1 7 7 Domain Path: /languages 8 Author: Bit51 .com8 Author: Bit51 9 9 Author URI: http://bit51.com 10 10 License: GPLv2 … … 22 22 class bit51_mssls extends Bit51 { 23 23 24 public $pluginversion = '5.4 '; //current plugin version24 public $pluginversion = '5.4.1'; //current plugin version 25 25 26 26 //important plugin information -
multi-site-site-list-shortcode/trunk/readme.txt
r556690 r700792 5 5 Tags: Multisite, index, site list 6 6 Requires at least: 3.0 7 Tested up to: 3. 48 Stable tag: 5.4 7 Tested up to: 3.5.1 8 Stable tag: 5.4.1 9 9 10 10 … … 32 32 33 33 == Changelog == 34 35 = 5.4.1 = 36 * Fixed Bit51 feed with improved error handling 34 37 35 38 = 5.4 =
Note: See TracChangeset
for help on using the changeset viewer.