public function aaron_feed_meta_box() { $args = array('url' => $this->_feed_url, 'items' => '5'); echo '<div class="rss-widget">'; wp_widget_rss_output($args); echo "</div>"; } public function screen_icon_link($name = 'aaron') { $link = '<a href="http://aarondcampbell.com">'; if (function_exists('get_screen_icon')) { $link .= get_screen_icon($name); } else { ob_start(); screen_icon($name); $link .= ob_get_clean(); } $link .= '</a>'; echo apply_filters('rpf-screen_icon_link', $link, $name); } public function admin_print_scripts() { if (isset($_GET['page']) && $_GET['page'] == $this->_hook) { wp_enqueue_script('postbox'); wp_enqueue_script('dashboard'); } } } // Instantiate our class $wpTwitterWidget = wpTwitterWidget::getInstance();
public function widget($args, $instance) { $instance = $this->_getInstanceSettings($instance); $wpTwitterWidget = wpTwitterWidget::getInstance(); echo $wpTwitterWidget->display(wp_parse_args($instance, $args)); }