Skip to content

Commit

Permalink
fix: page wrapper issue for store-toc page (#1000)
Browse files Browse the repository at this point in the history
  • Loading branch information
xaviranik authored Dec 18, 2020
1 parent 177b2dd commit 361913f
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion templates/store-toc.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,20 @@
$vendor = dokan()->vendor->get( get_query_var( 'author' ) );
$vendor_info = $vendor->get_shop_info();
$map_location = $vendor->get_location();
$store_user = get_userdata( get_query_var( 'author' ) );
$store_info = dokan_get_store_info( $store_user->ID );
$layout = get_theme_mod( 'store_layout', 'left' );

get_header( 'shop' );
?>

<?php do_action( 'woocommerce_before_main_content' ); ?>

<?php dokan_get_template_part( 'store', 'sidebar', array( 'store_user' => $vendor, 'store_info' => $vendor_info, 'map_location' => $map_location ) ); ?>
<div class="dokan-store-wrap layout-<?php echo esc_attr( $layout ); ?>">

<?php if ( 'left' === $layout ) { ?>
<?php dokan_get_template_part( 'store', 'sidebar', array( 'store_user' => $store_user, 'store_info' => $store_info, 'map_location' => $map_location ) ); ?>
<?php } ?>

<div id="primary" class="content-area dokan-single-store dokan-w8">
<div id="dokan-content" class="site-content store-review-wrap woocommerce" role="main">
Expand Down Expand Up @@ -44,6 +51,13 @@

<div class="dokan-clearfix"></div>

<?php if ( 'right' === $layout ) { ?>
<?php dokan_get_template_part( 'store', 'sidebar', array( 'store_user' => $store_user, 'store_info' => $store_info, 'map_location' => $map_location ) ); ?>
<?php } ?>

</div><!-- .dokan-store-wrap -->


<?php do_action( 'woocommerce_after_main_content' ); ?>

<?php get_footer(); ?>

0 comments on commit 361913f

Please sign in to comment.