芝麻web文件管理V1.00
编辑当前文件:/home/soundframestudio/public_html/wp-content/themes/betheme/woocommerce/content-single-product.php
false, 'hide-sticky' => false, ); $post_navigation_options = mfn_opts_get( 'prev-next-nav' ); if( isset( $post_navigation_options['hide-header'] ) ){ $post_navigation['hide-header'] = true; } if( isset( $post_navigation_options['hide-sticky'] ) ){ $post_navigation['hide-sticky'] = true; } $post_prev = get_adjacent_post( false, '', true ); $post_next = get_adjacent_post( false, '', false ); $shop_page_id = wc_get_page_id( 'shop' ); // post classes $classes = []; // style if( isset($_GET['mfn-demo-product']) ){ $style = $_GET['mfn-demo-product']; // demo single product style }else if( !empty($_GET['visual']) ) { $style = 'default'; } else { $style = mfn_opts_get( 'shop-product-style' ); } $classes[] = 'style-'. $style; // column $column = [ 'left' => 'one-second', 'right' => 'one-second', ]; if( 'default' == $style ){ $column['left'] = 'three-fifth'; $column['right'] = 'two-fifth'; } // share if( 'hide-mobile' == mfn_opts_get( 'share' ) ){ $classes[] = 'no-share-mobile'; } elseif( ! mfn_opts_get( 'share' ) ) { $classes[] = 'no-share'; } if( mfn_opts_get( 'share-style' ) ){ $classes[] = 'share-'. mfn_opts_get( 'share-style' ); } // Quantity $product_quantity = $product->get_stock_quantity(); if( 1 === $product_quantity ){ $classes[] = 'quantity-one'; } // translate $translate['all'] = mfn_opts_get( 'translate' ) ? mfn_opts_get( 'translate-all', 'Show all' ) : __( 'Show all', 'betheme' ); /** * 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; } ?>
>