$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;
if(isset($tab['ekit_tab_title_icon_type']) && $tab['ekit_tab_title_icon_type'] == 'icon' && $tab['ekit_tab_title_icons'] != '') {
$icon_html = '' . Icons_Manager::try_get_icon_html( $tab['ekit_tab_title_icons'], [ 'aria-hidden' => 'true' ] ) . '';
} 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 ),
],
];
}
?>