\n";
}
add_action('admin_head', 'admin_css');
if (!class_exists('Fly_Plugin_Admin')) {
class Fly_Plugin_Admin {
/**
* Create a potbox widget
*/
function postbox($id, $title, $content) {
?>
toc .= ''.$title.'';
}
/**
* Box with latest news from flyplugins.com for sidebar
*/
function fly_news() {
$rss = fetch_feed('http://feeds.feedburner.com/FlyPlugins');
$rss_items = $rss->get_items( 0, $rss->get_item_quantity(3) );
$content = '';
if ( !$rss_items ) {
$content .= '- '.__( 'No news items, feed might be broken...', 'fly' ).'
';
} else {
foreach ( $rss_items as $item ) {
$url = preg_replace( '/#.*/', '', esc_url( $item->get_permalink(), $protocolls=null, 'display' ) );
$content .= '- ';
$content .= ' ';
$content .= '
';
}
}
$content .= '- '.__( 'Like Fly Plugins on Facebook', 'fly' ).'
';
//$content .= '';
$content .= '- '.__( 'Watch Fly Plugins on YouTube', 'fly' ).'
';
//$content .= '- '.__( 'Circle Fly Plugins on Google+', 'fly' ).'
';
$content .= '';
$content .= '- '.__( 'Subscribe by email', 'fly' ).'
';
$content .= '
';
$this->postbox('flylatest', __( 'Latest news from FlyPlugins.com', 'fly' ), $content);
}
/**
* PayPal donation box for free plugins
*/
function donate() {
$this->postbox('donate',''.__( 'Like our FREE Fly Plugins?', 'Ascending Post' ).'',''.__( 'Want to help make our free Fly Plugins better? Donate today! We appreciate any amount donated. Thank you for supporting Fly Plugins!', 'fly' ).'
'
.''
.'
');
}
}
}
?>