\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.'
  • '; } /** * Support box */ function plugin_support($hook = '') { if (empty($hook)) { $hook = $this->hook; } $content = '

    '.__("If you're in need of support with any Fly Plugin, please visit the Fly Plugin Support Page.", 'fly').'

    '; $this->postbox($this->hook.'support', __('Need Fly Plugin Support?','fly'), $content); } /** * 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 = ''; $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' ).'

    ' .'

    ' .'

    '); } } } ?>