function widget($args, $instance)
 {
     // outputs the content of the widget
     extract($args);
     $title = apply_filters('widget_title', $instance['title']);
     echo $before_widget;
     if (empty($title)) {
         $title = __('Posts Statistics', POSTSTATS_TEXTDOMAIN);
     }
     echo $before_title . $title . $after_title;
     PostStats::diplay_stats();
     echo $after_widget;
 }