HEX
Server: Apache
System: Linux webd006.cluster128.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
User: zwafgyp (177615)
PHP: 7.4.33
Disabled: _dyuweyrj4,_dyuweyrj4r,dl
Upload Files
File: /home/zwafgyp/coolswim/wp-content/plugins/kingcomposer/shortcodes/live_editor/kc_accordion.php
<#

if( data === undefined )
	data = {};

var element_attributes = [], css_classes = [], 
	atts = ( data.atts !== undefined ) ? data.atts : {};
	
css_classes = kc.front.el_class( atts );
css_classes.push( 'kc_accordion_wrapper' );

if( atts['class'] !== undefined && atts['class'] !== '' )
	css_classes.push( atts['class'] );

if( atts['open_all'] !== undefined && atts['open_all'] == 'yes' )
	element_attributes.push( 'data-allowopenall="true"' );

if( atts['close_all'] !== undefined && atts['close_all'] == 'yes' )
	element_attributes.push( 'data-closeall="true"' );

element_attributes.push( 'class="'+css_classes.join(' ')+'"' );

#>
<div {{{element_attributes.join(' ')}}}><#
	if( atts['title'] !== undefined && atts['title'] !== '' ){
		#><h3 class="kc-accordion-title">{{atts['title']}}</h3><#
	}
#>{{{data.content}}}</div>
<#
data.callback =  function( wrp ){ kc_front.accordion( wrp ) };
#>