<?php 
// Exit if accessed directly
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

wp_enqueue_style( 'nectar-element-toggle-panels' );

extract(shortcode_atts(array(
	"accordion" => 'false', 
	'accordion_starting_functionality' => 'default',
	'style' => 'default',
	'border_radius' => ''
), $atts));  

($accordion === 'true') ? $accordion_class = 'accordion': $accordion_class = '';

if( 'minimal_shadow' === $style ) {
	$style = 'minimal';
	$accordion_class .= ' toggles--minimal-shadow';
}

echo '<div class="toggles '.$accordion_class.'" data-br="'.esc_attr($border_radius).'" data-starting="'.esc_attr($accordion_starting_functionality).'" data-style="'.esc_attr($style).'">' . do_shortcode(wp_kses_post($content)) . '</div>'; 

?>




















