HEX
Server: LiteSpeed
System: Linux s1049.use1.mysecurecloudhost.com 4.18.0-477.27.2.lve.el8.x86_64 #1 SMP Wed Oct 11 12:32:56 UTC 2023 x86_64
User: xedaptot (3356)
PHP: 8.3.31
Disabled: NONE
Upload Files
File: /home/xedaptot/public_html/wp-content/plugins/kingcomposer/shortcodes/kc_tab.php
<?php
/**
 * kc_tab shortcode
 **/
 
$tab_id = $title = '';
extract( $atts );

$css_class = apply_filters( 'kc-el-class', $atts );

$css_class = array_merge($css_class, array( 'kc_tab', 'ui-tabs-panel', 'kc_ui-tabs-hide', 'kc_clearfix' ));

if( empty( $tab_id ) || (strpos( $tab_id,'%time%' ))){
	$tab_id = sanitize_title( $title );
}else{
	$tab_id = esc_attr( $tab_id );
}

if( isset( $class ) )
	array_push( $css_class, $class );

$output = '<div id="' . $tab_id . '" class="' . esc_attr( implode( ' ', $css_class ) ) . '"><div class="kc_tab_content">'.
		( ( '' === trim( $content ) ) 
		? __( 'Empty tab. Edit page to add content here.', 'kingcomposer' ) 
		: do_shortcode( str_replace('kc_tab#', 'kc_tab', $content ) ) ).
	'</div></div>';

echo $output;