'widget_wpden_tabs', 'description' => __( 'This widget is the Tabs that classically goes into the sidebar. It contains the Popular posts, Latest Posts, Recent comments and a Tag cloud.', 'WPDen' ) ); /* Widget control settings. */ $control_ops = array( 'width' => 250, 'height' => 350, 'id_base' => 'wpden_tabber' ); /* Create the widget. */ $this->WP_Widget( 'wpden_tabber', __('WPDen - Tabber', 'wpden' ), $widget_ops, $control_ops ); } // End Constructor function widget($args, $instance) { extract( $args, EXTR_SKIP ); $instance = $this->wpden_enforce_defaults( $instance ); extract( $instance, EXTR_SKIP ); echo $before_widget; ?>
>
>
>
>
false, 'ignore_sticky_posts' => 1, 'orderby' => 'comment_count', 'numberposts' => $posts) ); foreach($popular as $post) : setup_postdata($post); ?>