????JFIF??x?x????'
Server IP : 104.21.80.1 / Your IP : 216.73.216.145 Web Server : LiteSpeed System : Linux premium151.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64 User : tempvsty ( 647) PHP Version : 8.0.30 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /home/tempvsty/pontiacques.org/wp-content/themes/slide/core/ |
Upload File : |
<?php /* Declare WooCommerce Support */ add_theme_support('woocommerce'); /* Unhook the WooCommerce Wrappers */ remove_action('woocommerce_before_main_content', 'woocommerce_output_content_wrapper', 10); remove_action('woocommerce_after_main_content', 'woocommerce_output_content_wrapper_end', 10); remove_action('woocommerce_before_main_content', 'woocommerce_breadcrumb', 20); remove_action('woocommerce_after_main_content', 'woocommerce_breadcrumb', 20); /*remove sidebar*/ if (!SLIDE_SWP_woo_has_sidebar()) { remove_action('woocommerce_sidebar','woocommerce_get_sidebar'); } /* Hook in own functions to display the wrappers that the theme requires */ add_action('woocommerce_before_main_content', 'SLIDE_SWP_woocommerce_wrapper_start', 10); add_action('woocommerce_after_main_content', 'SLIDE_SWP_woocommerce_wrapper_end', 10); function SLIDE_SWP_woocommerce_wrapper_start() { if (SLIDE_SWP_woo_has_sidebar()) { echo '<div class="lc_content_with_sidebar lc_basic_content_padding">'; } else { echo '<div class="lc_content_full lc_swp_boxed lc_basic_content_padding">'; } } function SLIDE_SWP_woocommerce_wrapper_end() { echo '</div>'; } /* Ensure cart contents update when products are added to the cart via AJAX */ add_filter('woocommerce_add_to_cart_fragments', 'SLIDE_SWP_add_to_cart_woo_fragments', 30, 1); function SLIDE_SWP_add_to_cart_woo_fragments($fragments) { global $woocommerce; ob_start(); ?> <a class="cart-contents" href="<?php echo esc_url(wc_get_cart_url()); ?>" title="<?php esc_html__('View your shopping cart', 'slide'); ?>"> <i class="fas fa-shopping-bag" aria-hidden="true"></i> <span class="cart-contents-count lc_swp_vibrant_bgc"> <?php echo esc_html($woocommerce->cart->get_cart_contents_count()); ?> </span> </a> <?php $fragments['a.cart-contents'] = ob_get_clean(); return $fragments; }