";
if((strstr($_SERVER['HTTP_USER_AGENT'], "MSIE") == false) && ($use_object_frame == true)) {
?>
";
} else {
echo "
";
include(wpsc_get_theme_file_path("cart_widget.php"));
echo "
";
}
echo $after_widget;
}
function widget_wp_shopping_cart_control() {
$options = $newoptions = get_option('widget_wp_shopping_cart');
if ( $_POST["wp_shopping_cart-submit"] ) {
$newoptions['title'] = strip_tags(stripslashes($_POST["wp_shopping_cart-title"]));
}
if ( $options != $newoptions ) {
$options = $newoptions;
update_option('widget_wp_shopping_cart', $options);
}
$title = htmlspecialchars($options['title'], ENT_QUOTES);
echo "
\n\r";
echo " \n\r";
echo "
\n\r";
}
function widget_wp_shopping_cart_init() {
if(function_exists('register_sidebar_widget')) {
$widget_ops['description'] = "Your most used tags in cloud format";
register_sidebar_widget('Shopping Cart', 'widget_wp_shopping_cart', $widget_ops);
register_widget_control('Shopping Cart', 'widget_wp_shopping_cart_control');
$GLOBALS['wpsc_cart_widget'] = true;
if(get_option('cart_location') == 1) {
update_option('cart_location', 4);
remove_action('wp_list_pages','nzshpcrt_shopping_basket');
}
#register_widget_control('Shopping Cart', 'widget_wp_shopping_cart_control', 300, 90);
}
return;
}
?>