Example #1
0
 /**
  * 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']) ? __('Price Range', 'wp-e-commerce') : $instance['title']);
     if ($title) {
         echo $before_title . $title . $after_title;
     }
     wpsc_price_range();
     echo $after_widget;
 }
/**
 * nzshpcrt_price_range()
 * Deprecated
 * Alias of Price Range Widget content function
 *
 * Displays a list of price ranges.
 *
 * @param $args (array) Arguments.
 */
function nzshpcrt_price_range($args)
{
    wpsc_price_range($args);
}
/**
 * nzshpcrt_price_range()
 * Deprecated
 * Alias of Price Range Widget content function
 *
 * Displays a list of price ranges.
 *
 * @param $args (array) Arguments.
 */
function nzshpcrt_price_range($args)
{
    _wpsc_deprecated_function(__FUNCTION__, '3.8');
    wpsc_price_range($args);
}