/**
  * Widget Output
  *
  * @param $args (array)
  * @param $instance (array) Widget values.
  *
  * @todo Add individual capability checks for each menu item rather than just manage_options.
  */
 function widget($args, $instance)
 {
     global $wpdb, $table_prefix;
     extract($args);
     echo $before_widget;
     $title = apply_filters('widget_title', empty($instance['title']) ? __('Product Tags', 'wpsc') : $instance['title']);
     if ($title) {
         echo $before_title . $title . $after_title;
     }
     product_tag_cloud();
     echo $after_widget;
 }
function widget_product_tag($args)
{
    global $wpdb, $table_prefix;
    extract($args);
    $options = get_option('wpsc-widget_product_tag');
    $title = empty($options['title']) ? __(TXT_WPSC_PRODUCT_TAGS) : $options['title'];
    echo $before_widget;
    $full_title = $before_title . $title . $after_title;
    echo $full_title;
    product_tag_cloud();
    echo $after_widget;
}