$item ) {
do_action( 'jet-engine-query-gateway/do-item', $item );
$tab_count = $index + 1;
$tab_title_setting_key = $this->get_repeater_setting_key( 'jet_tab_control', 'tabs', $index );
$tab_control_id = ! empty( $item['control_id'] ) ? esc_attr( $item['control_id'] ) : 'jet-tabs-control-' . $id_int . $tab_count;
$this->add_render_attribute( $tab_title_setting_key, array(
'id' => $tab_control_id,
'class' => array(
'jet-tabs__control',
'jet-tabs__control-icon-' . $this->get_settings( 'tabs_control_icon_position' ),
'elementor-menu-anchor',
( $index === $active_index && ! $no_active_tabs ) ? 'active-tab' : '',
( $tabs_scrolling_navigation && $tab_scroll_type === 'slider' ) ? 'swiper-slide' : '',
),
'data-tab' => $tab_count,
'tabindex' => 0,
'role' => 'tab',
'aria-controls' => 'jet-tabs-content-' . $id_int . $tab_count,
'aria-expanded' => $index === $active_index ? 'true' : 'false',
'data-template-id' => ! empty( $item['item_template_id'] ) ? $item['item_template_id'] : 'false',
) );
$title_icon_html = $this->__get_icon( 'item_icon', $item, '
%s
' );
$title_image_html = '';
if ( ! empty( $item['item_image']['url'] ) ) {
$title_image_html = sprintf( '

', $item['item_image']['url'] );
}
$title_label_html = '';
if ( ! empty( $item['item_label'] ) ) {
$title_label_html = sprintf( '<' . $tabs_item_label_tag . ' class="jet-tabs__label-text">%1$s' . $tabs_item_label_tag . '>', $item['item_label'] );
}
if ( 'right' === $this->get_settings( 'tabs_control_icon_position' ) ) {
echo sprintf(
'
',
$this->get_render_attribute_string( $tab_title_setting_key ),
$title_label_html,
filter_var( $item['item_use_image'], FILTER_VALIDATE_BOOLEAN ) ? $title_image_html : $title_icon_html
);
} else {
echo sprintf(
'
',
$this->get_render_attribute_string( $tab_title_setting_key ),
filter_var( $item['item_use_image'], FILTER_VALIDATE_BOOLEAN ) ? $title_image_html : $title_icon_html,
$title_label_html
);
}
$tabs_content[] = $this->get_tab_item_content( $item, $index, array(
'id_int' => $id_int,
'active_index' => $active_index,
'no_active_tabs' => $no_active_tabs,
'ajax_template' => $ajax_template,
) );
}
do_action( 'jet-engine-query-gateway/reset-item' );
?>