__( 'The tags from the latest posts.', 'p2' ))); $this->default_num_to_show = 35; } function form( $instance ) { $title = ( isset( $instance['title'] ) ) ? esc_attr( $instance['title'] ) : ''; $title_id = $this->get_field_id( 'title' ); $title_name = $this->get_field_name( 'title' ); $num_to_show = ( isset( $instance['num_to_show'] ) ) ? esc_attr( $instance['num_to_show'] ) : $this->default_num_to_show; $num_to_show_id = $this->get_field_id( 'num_to_show' ); $num_to_show_name = $this->get_field_name( 'num_to_show' ); ?>
default_num_to_show; return $new_instance; } function widget( $args, $instance ) { extract( $args ); $title = (isset( $instance['title'] ) && $instance['title'])? $instance['title'] : __( 'Recent tags', 'p2' ); $num_to_show = (isset( $instance['num_to_show'] ) && (int)$instance['num_to_show'])? (int)$instance['num_to_show'] : $this->default_num_to_show; $recent_tags = $this->recent_tags( $num_to_show ); echo $before_widget . $before_title . esc_html( $title ) . $after_title; echo "\t