$tab) :
$is_active = ($tab['ekit_tab_title_is_active'] == 'yes') ? ' active show' : '';
$is_active = ($has_user_defined_active_tab == false && $i == 0) ? ' active show' : $is_active;
// new icon
$migrated = isset( $tab['__fa4_migrated']['ekit_tab_title_icons'] );
// Check if its a new widget without previously selected icon using the old Icon control
$is_new = empty( $tab['ekit_tab_title_icon'] );
if($is_new || $migrated){
ob_start();
Icons_Manager::render_icon( $tab['ekit_tab_title_icons'], [ 'aria-hidden' => 'true' ] );
$rendered_icon = ob_get_clean();
$icon_html = !empty($tab['ekit_tab_title_icons']) ? ($tab['ekit_tab_title_icons']['library'] === 'svg' ? ''. $rendered_icon .'' : '') : '';
} else {
$icon_html = '';
}
$img_html = isset($tab['ekit_tab_title_icon_type']) && ($tab['ekit_tab_title_icon_type'] == 'image' && ! empty( $tab['ekit_tab_title_image']['url'] )) ?
''. \Elementskit_Lite\Utils::get_attachment_image_html($tab, 'ekit_tab_title_image', 'full', [
'draggable' => 'false'
]) .'
' : '';
// URL Hash id
$handler_id = (($tab['ekit_tab_title']) != '' ? strtolower(preg_replace("![^a-z0-9]+!i", "-", $tab['ekit_tab_title'])) : ('tab-'.$tab['_id']));
?>
-
$tab) :
$is_active = ($tab['ekit_tab_title_is_active'] == 'yes') ? ' active show' : '';
$is_active = ($has_user_defined_active_tab == false && $i == 0) ? ' active show' : $is_active;
?>
print_text_editor( $tab['ekit_tab_content'] ); ?>
'https://schema.org',
'@type' => 'FAQPage',
'mainEntity' => [],
];
foreach ( $settings['ekit_tab_items'] as $index => $item ) {
$faq_tab_text = !empty( $item['ekit_tab_content'] ) ? $item['ekit_tab_content'] : '';
$json['mainEntity'][] = [
'@type' => 'Question',
'name' => esc_html($item['ekit_tab_title']),
'acceptedAnswer' => [
'@type' => 'Answer',
'text' => \ElementsKit_Lite\Utils::kses( $faq_tab_text ),
],
];
}
?>