public function get_active_step() { $this->active_step = _wpsc_get_current_controller_slug(); if (empty($this->active_step) || 'index' == $this->active_step) { $this->active_step = 'shipping-and-billing'; } }
function _wpsc_filter_body_class($classes) { if (!wpsc_is_controller()) { return $classes; } $classes[] = 'wpsc-controller'; $classes[] = 'wpsc-' . _wpsc_get_current_controller_name(); $classes[] = 'wpsc-controller-' . _wpsc_get_current_controller_slug(); return $classes; }
function wpsc_get_customer_orders_pagination_links($args = array()) { global $wp_rewrite; if (_wpsc_get_current_controller_name() != 'customer-account' || _wpsc_get_current_controller_slug() != 'orders') { return ''; } $controller = _wpsc_get_current_controller(); $base = $controller->get_current_pagination_base(); if ($wp_rewrite->using_permalinks()) { $format = 'page/%#%'; } else { $format = '&page=%#%'; } $defaults = array('base' => trailingslashit($base) . '%_%', 'format' => $format, 'total' => $controller->total_pages, 'current' => $controller->current_page, 'prev_text' => is_rtl() ? __('→', 'wp-e-commerce') : __('←', 'wp-e-commerce'), 'next_text' => is_rtl() ? __('←', 'wp-e-commerce') : __('→', 'wp-e-commerce'), 'end_size' => 3, 'mid_size' => 2); $defaults = apply_filters('wpsc_get_customer_orders_pagination_links', $defaults); $r = wp_parse_args($args, $defaults); return apply_filters('wpsc_get_product_pagination_links', paginate_links($r)); }
function _wpsc_filter_body_class($classes) { if (!wpsc_is_controller()) { return $classes; } $classes[] = 'wpsc-controller'; $classes[] = 'wpsc-' . _wpsc_get_current_controller_name(); $classes[] = 'wpsc-controller-' . _wpsc_get_current_controller_slug(); if (wpsc_is_store() || wpsc_is_store_front_page() || wpsc_is_product_category() || wpsc_is_product_tag()) { $classes[] = 'wpsc-' . wpsc_get_option('layout'); } return $classes; }