'widget-posts widget-popular-posts', 'description' => 'The most popular posts on your site' ); /* Widget control settings. */ $control_ops = array( 'id_base' => 'amphion-popular-posts-widget' ); /* Create the widget. */ $this->WP_Widget( 'amphion-popular-posts-widget', 'Amphion Popular Posts', $widget_ops, $control_ops ); } /** * How to display the widget on the screen. */ function widget( $args, $instance ) { extract( $args ); /* Our variables from the widget settings. */ $numberposts = $instance['numberposts']; /* Before widget (defined by themes). */ echo $before_widget; ?>