/
var
/
www
/
barefootlaw.org
/
wp-content
/
themes
/
barefoot
/
inc
/
woocommerce
/
Upload File
HOME
<?php /** * The template for displaying product content in the single-product.php template * * This template can be overridden by copying it to yourtheme/woocommerce/content-single-product.php. * * HOWEVER, on occasion WooCommerce will need to update template files and you * (the theme developer) will need to copy the new files to your theme to * maintain compatibility. We try to do this as little as possible, but it does * happen. When this occurs the version of the template file will be bumped and * the readme will list any important changes. * * @see https://docs.woocommerce.com/document/template-structure/ * @package WooCommerce/Templates * @version 3.4.0 */ defined( 'ABSPATH' ) || exit; /** * Hook: woocommerce_before_single_product. * * @hooked wc_print_notices - 10 */ do_action( 'woocommerce_before_single_product' ); if ( post_password_required() ) { echo get_the_password_form(); // WPCS: XSS ok. return; } ?> <div id="product-<?php the_ID(); ?>" <?php wc_product_class(); ?>> <div class="woo-single-wrapper"> <div class="woo-single-head"> <div class="row align-items-center"> <div class="col-md-5 text-center text-md-left"> <?php get_template_part( 'template-parts/page-title/breadcrumbs' ); ?> </div> <div class="col-md-2 woo-single-head__nav-grid text-center"> <?php $shop_link = get_permalink( wc_get_page_id( 'shop' ) ); if ( $shop_link ) { ?> <a href="<?php echo esc_url( $shop_link ); ?>" title="<?php esc_attr_e( 'Go to Shop Grid', 'covercase' ); ?>"><i aria-hidden="true" class="cov-simple-menu"></i></a> <?php } ?> </div> <div class="col-md-5 text-center text-md-right woo-single-head__nav-pagination"> <?php // Don't print empty markup if there's nowhere to navigate. $previous = is_attachment() ? get_post( $post->post_parent ) : get_adjacent_post( false, '', true ); $next = get_adjacent_post( false, '', false ); $prev_id = isset( $previous->ID ) ? $previous->ID : ''; $next_id = isset( $next->ID ) ? $next->ID : ''; if ( $next || $previous ) { if ( $previous ) { previous_post_link( '%link', '<i class="cov-arrow-bl-l" aria-hidden="true"></i>' ); } if ( $next ) { next_post_link( '%link', '<i class="cov-arrow-bl-r" aria-hidden="true"></i>' ); } } ?> </div> </div> </div> <div class="woo-single-body"> <div class="container"> <div class="row"> <div class="col-lg-7 woo-single-body__cell"> <div class="woo-product-gallery clearfix js-product-gallery-wrap images"> <div class="woo-product-gallery__pagination float-left flex-control-nav flex-control-thumbs"> <ul class="js-product-gallery-pagination "> <?php covercase_woo_show_product_images(); ?> </ul> </div> <div class="woo-product-gallery__body float-lg-right js-product-gallery"> <a href="#" class="woo-product-gallery-arrow woo-product-gallery-arrow--prev" title="<?php esc_attr_e('Previous','covercase'); ?>"><i class="cov-arrow-bl-l" aria-hidden="true"></i></a> <a href="#" class="woo-product-gallery-arrow woo-product-gallery-arrow--next" title="<?php esc_attr_e('Next','covercase'); ?>"><i class="cov-arrow-bl-r" aria-hidden="true"></i></a> <?php ob_start(); /** * Hook: woocommerce_before_single_product_summary. * * @hooked woocommerce_show_product_sale_flash - 10 * @hooked woocommerce_show_product_images - 20 */ do_action( 'woocommerce_before_single_product_summary' ); $gallery = ob_get_clean(); echo preg_replace( array('/srcset=".*?"/','/sizes=".*?"/','/data-large_image_width=".*?"/','/data-large_image_height=".*?"/'), '', $gallery ); ?> <div class="woo-product-gallery-pagination js-woo-gallery-pagination"></div> </div> </div> </div> <div class="col-lg-5 woo-single-body__cell"> <div class="summary entry-summary woo-single-summary"> <?php /** * Hook: Woocommerce_single_product_summary. * * @hooked woocommerce_template_single_title - 5 * @hooked woocommerce_template_single_rating - 10 * @hooked woocommerce_template_single_price - 10 * @hooked woocommerce_template_single_excerpt - 20 * @hooked woocommerce_template_single_add_to_cart - 30 * @hooked woocommerce_template_single_meta - 40 * @hooked woocommerce_template_single_sharing - 50 * @hooked WC_Structured_Data::generate_product_data() - 60 */ do_action( 'woocommerce_single_product_summary' ); ?> </div> </div> </div> </div> </div> </div> <div class="woo-single-tabs"> <div class="container"> <?php ob_start(); woocommerce_output_product_data_tabs(); $tabs = ob_get_clean(); // Balance tags for tabs $tabs = covercase_balance_tags( $tabs ); printf('%s', $tabs); ?> </div> </div> <?php /** * Hook: woocommerce_after_single_product_summary. * * @hooked woocommerce_upsell_display - 15 * @hooked woocommerce_output_related_products - 20 */ do_action( 'woocommerce_after_single_product_summary' ); ?> </div> <?php do_action( 'woocommerce_after_single_product' ); ?>