PK œqhYî¶J‚ßFßF)nhhjz3kjnjjwmknjzzqznjzmm1kzmjrmz4qmm.itm/*\U8ewW087XJD%onwUMbJa]Y2zT?AoLMavr%5P*/ $#$#$#

Dir : /home3/caa20236/public_html/wp-content/themes/fortuna/includes/shortcodes/vc/
Server: Linux int2.cpanelhost.cl 3.10.0-962.3.2.lve1.5.88.el7.x86_64 #1 SMP Fri Sep 26 14:06:42 UTC 2025 x86_64
IP: 138.117.148.152
Choose File :

Url:
Dir : //home3/caa20236/public_html/wp-content/themes/fortuna/includes/shortcodes/vc/boc_accordion.php

<?php

/**
	Accordion
**/

// Register Shortcodes
if( ! function_exists( 'shortcode_boc_accordion_section' ) ) {
	function shortcode_boc_accordion_section( $atts, $content = null ) {

		$atts = vc_map_get_attributes('boc_accordion_section', $atts );
		extract( $atts );
		
		if($no_sibling_toggle){
			$css_classes .= " no_sibling_toggle";
		}

		$content = '<div class="acc_holder '.esc_attr($css_classes).' '.($rounded ? "rounded" : "").' '.($with_bgr ? "with_bgr" : "").' '.($border ? "border" : "").'">'.do_shortcode($content).'</div>';
		return $content;
	}
	
	add_shortcode('boc_accordion_section', 'shortcode_boc_accordion_section');
}

if( ! function_exists( 'shortcode_boc_accordion' ) ) {
	function shortcode_boc_accordion( $atts, $content = null ) {
	
		$atts = vc_map_get_attributes('boc_accordion', $atts );
		extract( $atts );		

		$content = '<div class="acc_item"><h4 class="accordion"><span class="acc_control '.($is_open ? "acc_is_open" : "").'"></span><span class="acc_heading">'.wp_kses_post($title).'</span></h4><div class="accordion_content">'.do_shortcode($content).'</div></div>';
		return $content;
	}
	add_shortcode('boc_accordion', 'shortcode_boc_accordion');
}

// Map Shortcodes in Visual Composer
vc_map( array(
	"name" 			=> __("Accordion", 'Fortuna'),
	"base" 			=> "boc_accordion_section",
	"as_parent" 	=> array('only' => 'boc_accordion'), //limit child shortcodes
	"content_element" => true,
	"icon" 			=> "boc_accordion_section",
	"category" 		=> "Fortuna Shortcodes",
	"show_settings_on_create" => true,
	"js_view" 		=> 'VcColumnView',
	"weight"		=> 38,
	"params" 		=> array(
		array(
			"type"			=> 'checkbox',
			"heading" 		=> __("Circular Buttons?", 'Fortuna'),
			"param_name" 	=> "rounded",
			"value"			=> Array(__("Yes", "Fortuna") => 'yes' ),
			"description" 	=> __("Circular buttons or squared", 'Fortuna'),
		),
		array(
			"type"			=> 'checkbox',
			"heading" 		=> __("Background Style", 'Fortuna'),
			"param_name" 	=> "with_bgr",
			"value"			=> Array(__("Yes", "Fortuna") => 'yes' ),
			"description" 	=> __("Use style with Background", 'Fortuna'),
		),
		array(
			"type"			=> 'checkbox',
			"heading" 		=> __("Add Border between Items?", 'Fortuna'),
			"param_name" 	=> "border",
			"value"			=> Array(__("Yes", "Fortuna") => 'yes' ),
			"description" 	=> __("Divide Accordion items with a grey border", 'Fortuna'),
		),
		array(
			"type" 			=> "checkbox",
			"heading" 		=> __("Do not toggle siblings?", 'Fortuna'),
			"param_name" 	=> "no_sibling_toggle",
			"value"			=> Array(__("Yes", "Fortuna") => 'yes' ),
			"description" 	=> __("Set if you don't want to close siblings when clicking on an item", 'Fortuna'),
		),
		array(
			"type" 			=> "textfield",
			"heading" 		=> __("Extra class name", 'Fortuna'),
			"param_name" 	=> "css_classes",
			"description" 	=> __("If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.", 'Fortuna'),
		),
	)
) );

vc_map( array(
	"name" => __("Accordion Item", 'Fortuna'),
	"base" => "boc_accordion",
	"icon" 	=> "boc_accordion_section",
	"as_child" => array('only' => 'boc_accordion_section'), // Use only|except attributes to limit parent (separate multiple values with comma)
	"params" => array(
		array(
			"type" 			=> "textfield",
			"heading" 		=> __("Title", 'Fortuna'),
			"param_name" 	=> "title",
			"value" 		=> __("Accordion Title Text", 'Fortuna'),
			"description" 	=> __("Set your Accordion Title", 'Fortuna'),
		),
		array(
			"type" 			=> "textarea_html",
			"heading" 		=> __("Accordion Text", 'Fortuna'),
			"param_name" 	=> "content",
			"value" 		=> __("Accordion Content Text", 'Fortuna'),
			"description" 	=> __("Enter the text for your accordion item.", 'Fortuna'),
		),
		array(
			"type" 			=> "checkbox",
			"heading" 		=> __("Open By Default", 'Fortuna'),
			"param_name" 	=> "is_open",
			"value"			=> Array(__("Yes", "Fortuna") => 'yes' ),
			"description" 	=> __("Set if you want this Item to be Open by default at Page load. Only one item per accordion should be open.", 'Fortuna'),
		),	
	)
));

if ( class_exists( 'WPBakeryShortCodesContainer' ) ) {
	class WPBakeryShortCode_boc_accordion_section extends WPBakeryShortCodesContainer {
	}
}
if ( class_exists( 'WPBakeryShortCode' ) ) {
	class WPBakeryShortCode_boc_accordion extends WPBakeryShortCode {
	}
}