. */ ?> __( 'Displays a list of most commented post', 'anp_text_popular_post' ), ) // Args ); } /** * Front-end widget. * */ public function widget( $args, $instance ) { extract( $args ); $title = apply_filters( 'widget_title', $instance['title'] ); $anp_num_post= $instance['anp_num_post']; $anp_colores_post = $instance['anp_colores_post']; global $post, $wpdb; echo $before_widget; if ( ! empty( $title ) ) echo $before_title . $title . $after_title; ?>