'widget_archive', 'description' => __( 'Archivio mensile di articoli del tuo sito. | Amministrazione Accessibile') ); WP_Widget::__construct('archives', 'AA > Archivi', $widget_ops); } function widget( $args, $instance ) { extract($args); $c = ! empty( $instance['count'] ) ? '1' : '0'; $title = apply_filters('widget_title', empty($instance['title']) ? __('Archives') : $instance['title'], $instance, $this->id_base); $opts = array( 'type' => 'monthly', 'show_post_count' => $c, 'format' => 'custom', 'before' => '
  • ', 'after' => '
  • ', 'echo' => 0 ); echo $before_widget; if ( $title ) echo $before_title . $title . $after_title; ?> '', 'count' => 0) ); $instance['title'] = strip_tags($new_instance['title']); $instance['count'] = $new_instance['count'] ? 1 : 0; return $instance; } function form( $instance ) { $instance = wp_parse_args( (array) $instance, array( 'title' => '', 'count' => 0) ); $title = strip_tags($instance['title']); $count = $instance['count'] ? 'checked="checked"' : ''; ?>

    id="get_field_id('count'); ?>" name="get_field_name('count'); ?>" />