function widget($args, $instance)
 {
     extract($args);
     $title = apply_filters('widget_title', $instance['title']);
     $appearance = $instance['appearance'];
     $appearance = $appearance ? $appearance : 'medium';
     $show_count = (int) @$instance['show_count'];
     $show_count = $show_count ? true : false;
     if (is_singular()) {
         // Show widget only on votable pages
         $codec = new Wdgpo_Codec();
         echo $before_widget;
         if ($title) {
             echo $before_title . $title . $after_title;
         }
         echo $codec->process_plusone_code(array('appearance' => $appearance, 'show_count' => $show_count ? 'yes' : 'no'));
         echo $after_widget;
     }
 }