function _wpsc_action_theme_engine_v1_includes() { require_once WPSC_THEME_ENGINE_V1_PATH . '/classes/breadcrumbs.php'; require_once WPSC_THEME_ENGINE_V1_PATH . '/classes/wpsc-products-by-category.php'; require_once WPSC_THEME_ENGINE_V1_PATH . '/classes/hide-subcatsprods-in-cat.php'; require_once WPSC_THEME_ENGINE_V1_PATH . '/helpers/thumbnails.php'; require_once WPSC_THEME_ENGINE_V1_PATH . '/helpers/page.php'; require_once WPSC_THEME_ENGINE_V1_PATH . '/helpers/rewrite.php'; require_once WPSC_THEME_ENGINE_V1_PATH . '/helpers/query.php'; require_once WPSC_THEME_ENGINE_V1_PATH . '/helpers/template.php'; require_once WPSC_THEME_ENGINE_V1_PATH . '/helpers/product.php'; require_once WPSC_THEME_ENGINE_V1_PATH . '/helpers/ajax.php'; require_once WPSC_THEME_ENGINE_V1_PATH . '/helpers/checkout.php'; require_once WPSC_THEME_ENGINE_V1_PATH . '/helpers/cart.php'; require_once WPSC_THEME_ENGINE_V1_PATH . '/helpers/template-tags.php'; require_once WPSC_THEME_ENGINE_V1_PATH . '/helpers/shortcodes.php'; require_once WPSC_THEME_ENGINE_V1_PATH . '/helpers/form.php'; include_once WPSC_THEME_ENGINE_V1_PATH . '/helpers/admin.php'; include_once WPSC_THEME_ENGINE_V1_PATH . '/helpers/shipping.php'; include_once WPSC_THEME_ENGINE_V1_PATH . '/helpers/rss.php'; require_once WPSC_CORE_THEME_PATH . 'functions/wpsc-transaction_results_functions.php'; require_once WPSC_CORE_THEME_PATH . 'functions/wpsc-user_log_functions.php'; include_once WPSC_THEME_ENGINE_V1_PATH . '/widgets/category_widget.php'; include_once WPSC_THEME_ENGINE_V1_PATH . '/widgets/cart.php'; include_once WPSC_THEME_ENGINE_V1_PATH . '/widgets/product_tag_widget.php'; include_once WPSC_THEME_ENGINE_V1_PATH . '/widgets/shopping_cart_widget.php'; include_once WPSC_THEME_ENGINE_V1_PATH . '/widgets/donations_widget.php'; include_once WPSC_THEME_ENGINE_V1_PATH . '/widgets/specials_widget.php'; include_once WPSC_THEME_ENGINE_V1_PATH . '/widgets/latest_product_widget.php'; include_once WPSC_THEME_ENGINE_V1_PATH . '/widgets/price_range_widget.php'; wpsc_enable_page_filters(); }
function wpsc_disable_page_filters($excerpt = '') { remove_filter('the_content', 'add_to_cart_shortcode'); //Used for add_to_cart_button shortcode remove_filter('the_content', 'wpsc_products_page'); remove_filter('the_content', 'wpsc_place_shopping_cart'); remove_filter('the_content', 'wpsc_transaction_results'); //remove_filter('the_content', 'wpsc_checkout'); remove_filter('the_content', 'nszhpcrt_homepage_products'); remove_filter('the_content', 'wpsc_user_log'); remove_filter('the_content', 'wpsc_category_tag'); remove_filter('the_content', 'wpsc_show_categories'); remove_filter('the_content', 'wpsc_substitute_buy_now_button'); return $excerpt; } wpsc_enable_page_filters(); add_filter('get_the_excerpt', 'wpsc_disable_page_filters', -1000000); add_filter('get_the_excerpt', 'wpsc_enable_page_filters', 1000000); /** * Body Class Filter * @modified: 2009-10-14 by Ben * @description: Adds additional wpsc classes to the body tag. * @param: $classes = Array of body classes * @return: (Array) of classes */ function wpsc_body_class($classes) { global $wp_query, $wpsc_query; $post_id = $wp_query->post->ID; $page_url = get_permalink($post_id); // If on a product or category page...