';
$output .= '
';
$output .= do_shortcode( $content );
$output .= '
';
}
//
$output .= '
';
//
if ( ' ' != $utl_ues_settings['title'] || ' ' != $utl_ues_settings['new_title'] ) {
return $output;
}
}
/**
* For vc map check
*
* @since ----
* @access public
*/
public function ultimate_ultimate_exp_section() {
if ( function_exists( 'vc_map' ) ) {
vc_map(
array(
'name' => __( 'Expandable Section' ),
'base' => 'ultimate_exp_section',
'icon' => 'uvc_expandable',
'class' => 'uvc_expandable',
'as_parent' => array( 'except' => 'ultimate_exp_section' ),
'category' => __( 'Ultimate VC Addons', 'ultimate_vc' ),
'description' => __( 'Add a Expandable Section.', 'ultimate_vc' ),
'content_element' => true,
'front_enqueue_css' => UAVC_URL . 'assets/css/expandable-section.css',
'front_enqueue_js' => UAVC_URL . 'assets/js/expandable-section.js',
'controls' => 'full',
'show_settings_on_create' => true,
'params' => array(
// Play with icon selector.
array(
'type' => 'textfield',
'class' => '',
'heading' => __( 'Title ', 'ultimate_vc' ),
'param_name' => 'title',
'value' => '',
),
array(
'type' => 'textfield',
'class' => '',
'heading' => __( 'Title After Click ', 'ultimate_vc' ),
'param_name' => 'new_title',
'value' => '',
'description' => __( 'Keep empty if you want to dispaly same title as previous.', 'ultimate_vc' ),
),
/*-----------general------------*/
array(
'type' => 'colorpicker',
'class' => '',
'heading' => __( 'Title Color', 'ultimate_vc' ),
'param_name' => 'text_color',
'value' => '',
'group' => 'Color',
),
array(
'type' => 'colorpicker',
'class' => '',
'heading' => __( 'Title Background Color', 'ultimate_vc' ),
'param_name' => 'background_color',
'value' => '',
'group' => 'Color',
'edit_field_class' => 'vc_col-sm-12 vc_column ult_space_border',
),
array(
'type' => 'colorpicker',
'class' => '',
'heading' => __( 'Title Hover Color', 'ultimate_vc' ),
'param_name' => 'text_hovercolor',
'value' => '',
'group' => 'Color',
),
array(
'type' => 'colorpicker',
'class' => '',
'heading' => __( 'Title Hover Background Color', 'ultimate_vc' ),
'param_name' => 'bghovercolor',
'value' => '',
'group' => 'Color',
'edit_field_class' => 'vc_col-sm-12 vc_column ult_space_border',
),
array(
'type' => 'colorpicker',
'class' => '',
'heading' => __( 'Title Active Color', 'ultimate_vc' ),
'param_name' => 'title_active',
'value' => '',
'group' => 'Color',
),
array(
'type' => 'colorpicker',
'class' => '',
'heading' => __( 'Title Active Background Color', 'ultimate_vc' ),
'param_name' => 'title_active_bg',
'value' => '',
'group' => 'Color',
'edit_field_class' => 'vc_col-sm-12 vc_column ult_space_border',
),
/*--container bg color---*/
array(
'type' => 'colorpicker',
'class' => '',
'heading' => __( 'Content Background Color', 'ultimate_vc' ),
'param_name' => 'cnt_bg_color',
'value' => '',
'group' => 'Color',
),
/*---icon---*/
array(
'type' => 'ult_param_heading',
'param_name' => 'btn1_icon_setting',
'text' => __( 'Icon / Image ', 'ultimate_vc' ),
'value' => '',
'class' => '',
'group' => __( 'Icon', 'ultimate_vc' ),
'edit_field_class' => 'ult-param-heading-wrapper vc_column vc_col-sm-12',
),
array(
'type' => 'dropdown',
'class' => '',
'heading' => __( 'Icon to display', 'ultimate_vc' ),
'param_name' => 'icon_type',
'value' => array(
'Font Icon Manager' => 'selector',
'Custom Image Icon' => 'custom',
),
'description' => __( 'Use existing font icon or upload a custom image.', 'ultimate_vc' ),
'group' => __( 'Icon', 'ultimate_vc' ),
),
array(
'type' => 'icon_manager',
'class' => '',
'heading' => __( 'Select Icon ', 'ultimate_vc' ),
'param_name' => 'icon',
'value' => '',
'description' => __( "Click and select icon of your choice. If you can't find the one that suits for your purpose", 'ultimate_vc' ) . ', ' . __( 'you can', 'ultimate_vc' ) . "