$tab ) : ?>
" data-behaviour="drop-down">
$tab ) : ?>
]*>(.*?)<\\/h2>/is', $tab_content, $tab_heading_matches ); $tab_headings = array_map( 'trim', array_map( 'wp_strip_all_tags', $tab_heading_matches[1] ) ); $has_title = in_array( trim( wp_strip_all_tags( $tab_title ) ), $tab_headings, true ); if ( ! $has_title ) { echo '

' . wp_kses_post( $tab_title ) . '

'; } // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped echo $tab_content; ?>
screen->uses_woo_default_template()) { wc_get_template( 'single-product/tabs/tabs.php' ); return; } $result = ''; $res = blocksy_get_theme_mod('woo_tabs_type', 'type-1'); if ( $res === 'type-1' || $res === 'type-2' ) { ob_start(); wc_get_template( 'single-product/tabs/tabs.php' ); $result = ob_get_clean(); } if ($res === 'type-3') { if (blocksy_get_theme_mod('woo_accordion_in_summary', 'default') === 'summary') { return; } ob_start(); blocksy_custom_accordion_tabs(); $result = ob_get_clean(); } if ( $res === 'type-4' ) { if (blocksy_get_theme_mod('woo_accordion_in_summary', 'default') === 'summary') { return; } ob_start(); blocksy_custom_simple_tabs(); $result = ob_get_clean(); } $res .= ':' . blocksy_get_theme_mod('woo_tabs_alignment', 'center'); $prefix = blocksy_manager()->screen->get_prefix(); $deep_link_args = [ 'prefix' => $prefix, 'suffix' => 'woo_has_product_tabs' ]; $result = str_replace( '"tabs wc-tabs', '"tabs wc-tabs is-width-constrained', $result ); echo str_replace( 'wc-tabs-wrapper"', 'wc-tabs-wrapper" data-type="' . $res . '" ' . blocksy_generic_get_deep_link($deep_link_args), $result ); } }