$output .='<div class="panel panel-default no-margin">';
$output .='<div class="panel-heading '.$active.'">';
$output .='<a data-toggle="collapse" data-parent="#'.$global_accordian_id.'" href="#accordion-one-link-'.$i.'">';
$output .='<h4 class="panel-title"'.$brando_title_color.'>';
$output .= $accordian_icon.$accordian_title;
$output .='<span class="pull-right">';
$output .='<i class="fa '.$icon_class.'"></i>';
$output .='</span>';
$output .='</h4>';
$output .='</a>';
$output .='</div>';
$output .='<div id="accordion-one-link-'.$i.'" class="panel-collapse collapse '.$class.'">';
$output .='<div class="panel-body no-border margin-four-tb padding-two-all no-padding-lr md-margin-one-tb">';
if($thumb[0]):
$output .='<div class="col-md-3 col-sm-3 col-xs-5 travel-about-img xs-text-center xs-margin-five-bottom">';
$output .='<img src="'.$thumb[0].'"'.$image_alt.$image_title.' class="round-border" width="'.$thumb[1].'" height="'.$thumb[2].'" />';
$output .='</div>';
$output .='<div class="col-md-9 col-sm-9 col-xs-12">';
if( $content ):
$output .= do_shortcode( brando_remove_wpautop($content) );
endif;
$output .='</div>';
else:
$output .= do_shortcode( $content );
endif;
$output .='</div>';
$output .='</div>';
$output .='</div>';
$i++;
return $output;
$('.collapse').on('show.bs.collapse', function () {
var id = $(this).attr('id');
$('a[href="#' + id + '"]').closest('.panel-heading').addClass('active-accordion');
$('a[href="#' + id + '"] .panel-title span').html('<i class="fa fa-minus"></i>');
});
$('.collapse').on('hide.bs.collapse', function () {
var id = $(this).attr('id');
$('a[href="#' + id + '"]').closest('.panel-heading').removeClass('active-accordion');
$('a[href="#' + id + '"] .panel-title span').html('<i class="fa fa-plus"></i>');
});
$('.accordion-style2 .collapse').on('show.bs.collapse', function () {
var id = $(this).attr('id');
$('a[href="#' + id + '"]').closest('.panel-heading').addClass('active-accordion');
$('a[href="#' + id + '"] .panel-title span').html('<i class="fa fa-angle-up"></i>');
});
$('.accordion-style2 .collapse').on('hide.bs.collapse', function () {
var id = $(this).attr('id');
$('a[href="#' + id + '"]').closest('.panel-heading').removeClass('active-accordion');
$('a[href="#' + id + '"] .panel-title span').html('<i class="fa fa-angle-down"></i>');
});