46 lines
1.1 KiB
PHP
46 lines
1.1 KiB
PHP
<?php
|
|
/**
|
|
* قالب مرکزی ووکامرس — فروشگاه، دستهها، تکمحصول (woocommerce_content).
|
|
*
|
|
* @package Hesabix2
|
|
*/
|
|
|
|
defined( 'ABSPATH' ) || exit;
|
|
|
|
get_header();
|
|
|
|
if ( ! function_exists( 'hesabix2_is_woocommerce_active' ) || ! hesabix2_is_woocommerce_active() ) {
|
|
while ( have_posts() ) :
|
|
the_post();
|
|
the_content();
|
|
endwhile;
|
|
get_footer();
|
|
return;
|
|
}
|
|
|
|
$with_sidebar = hesabix2_wc_show_shop_sidebar_column();
|
|
$breadcrumb = hesabix2_wc_breadcrumb_args();
|
|
$grid_modifier = $with_sidebar ? 'hesabix-wc__grid--with-sidebar' : 'hesabix-wc__grid--solo';
|
|
|
|
?>
|
|
<div id="woocommerce-primary" class="hesabix-wc page-wrap woocommerce">
|
|
<div class="page-outer">
|
|
<div class="hesabix-wc__shell max-w-none mx-auto">
|
|
<?php woocommerce_breadcrumb( $breadcrumb ); ?>
|
|
|
|
<div class="hesabix-wc__grid <?php echo esc_attr( $grid_modifier ); ?>">
|
|
<?php
|
|
if ( $with_sidebar && is_rtl() ) :
|
|
hesabix2_wc_render_sidebar();
|
|
hesabix2_wc_render_main_column();
|
|
else :
|
|
hesabix2_wc_render_main_column();
|
|
hesabix2_wc_render_sidebar();
|
|
endif;
|
|
?>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<?php
|
|
get_footer();
|