'.print_r($options, true).''); if(($options['hideonempty']== 1) && (wpsc_cart_item_count() < 1)) return; if(get_option('show_sliding_cart') == 1) { if(is_numeric($_SESSION['slider_state'])) { if($_SESSION['slider_state'] == 0) { $collapser_image = 'plus.png'; } else { $collapser_image = 'minus.png'; } $fancy_collapser = ""; } else { if($_SESSION['nzshpcrt_cart'] == null) { $collapser_image = 'plus.png'; } else { $collapser_image = 'minus.png'; } $fancy_collapser = ""; } } else { $fancy_collapser = ""; } $title = empty($options['title']) ? __('Shopping Cart') : $options['title']; echo $before_widget; $full_title = $before_title . $title . $fancy_collapser . $after_title; echo $full_title; $display_state = ""; if((($_SESSION['slider_state'] == 0) || (wpsc_cart_item_count() < 1)) && (get_option('show_sliding_cart') == 1)) { $display_state = "style='display: none;'"; } $use_object_frame = false; if(($cache_enabled == true) && (!defined('DONOTCACHEPAGE') || (constant('DONOTCACHEPAGE') !== true))) { echo "
"; 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 ($_POST['wp_shopping_cart-hideonempty']) { $newoptions['hideonempty'] = TRUE; } else { $newoptions['hideonempty'] = FALSE; } } 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"; 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; } ?>