render_zone( 'left', $variant ); ?>
'primary', 'container' => false, 'menu_class' => 'bt-menu-list', 'fallback_cb' => '__return_empty_string', 'depth' => 2, ) ); ?>
get_zone_layout( $variant ); $right_items = isset( $zones['right'] ) ? (array) $zones['right'] : array(); // Build right-side HTML, treating search as desktop-only. $right_html = ''; foreach ( $right_items as $slug ) { if ( 'account' === $slug ) { continue; // handled separately below (desktop only) } ob_start(); if ( 'search' === $slug ) { echo '
'; $hm->render_component( $slug ); echo '
'; } else { $hm->render_component( $slug ); } $right_html .= ob_get_clean(); } // Print built actions. echo $right_html; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped // Seller-like check (inline, no helper redeclare). $is_seller_like = is_user_logged_in() && ( ( function_exists( 'bongoto_is_user_seller' ) && bongoto_is_user_seller( get_current_user_id() ) ) || ( function_exists( 'dokan_is_user_seller' ) && dokan_is_user_seller( get_current_user_id() ) ) || current_user_can( 'administrator' ) || current_user_can( 'manage_woocommerce' ) || current_user_can( 'edit_products' ) ); // Guest/customer fallback CTA if not present already. if ( ! $is_seller_like && false === strpos( $right_html, 'bt-header-cta' ) && false === strpos( $right_html, 'bt-cta-btn' ) ) { get_template_part( 'template-parts/headers/components/cta-button' ); } // Desktop-only Account icon. echo '
'; $hm->render_component( 'account' ); echo '
'; ?>

'primary', 'container' => false, 'menu_class' => 'bt-drawer-menu', 'fallback_cb' => '__return_empty_string', 'depth' => 1, ) ); ?>

' . esc_html__( 'Add contact info via Appearance › Widgets › Footer Contact.', 'bongoto' ) . '

'; if ( $admin_email ) { printf( '

%s: %s

', esc_html__( 'Email', 'bongoto' ), esc_html( $admin_email ) ); } } ?>