function wps_vc_column_inner_shortcode()
{
    vc_remove_param('vc_column_inner', 'css');
    vc_remove_param('vc_column_inner', 'offset');
    vc_remove_param('vc_column_inner', 'el_class');
    // vc_remove_param('vc_column__inner','full_height');
    // vc_remove_param('vc_column__inner','equal_height');
    // vc_remove_param('vc_column__inner','columns_placement');
    // vc_remove_param('vc_column__inner','content_placement');
    // vc_remove_param('vc_column__inner','video_bg');
    // vc_remove_param('vc_column__inner','parallax');
    // vc_remove_param('vc_column__inner','el_id');
    // vc_remove_param('vc_column__inner','video_bg_url');
    // vc_remove_param('vc_column__inner','video_bg_parallax');
    // vc_remove_param('vc_column__inner','parallax_image');
    // vc_remove_param('vc_column__inner','parallax_speed_bg');
    // vc_remove_param('vc_column__inner','parallax_speed_video');
    //Get VC gallery shortcode config
    //$shortcode_vc_gallery_tmp = WPBMap::getShortCode('vc_column');
    //Loop over config to find the condition we want to change
    //foreach($shortcode_vc_gallery_tmp['params'] as $key => $param)
    //{
    //
    //}
    //VC doesn't like even the thought of you changing the shortcode base, and errors out, so we unset it.
    //unset($shortcode_vc_gallery_tmp['base']);
    //Update the actual parameter
    //vc_map_update('vc_column', $shortcode_vc_gallery_tmp);
    $attributes = array(array('type' => 'wps_column_offset', 'heading' => __('Responsiveness', 'wps-prime'), 'param_name' => 'layout_width', 'group' => __('Responsive Options', 'wps-prime'), 'description' => __('Adjust column for different screen sizes. Control width, offset and visibility settings.', 'wps-prime')), array('type' => 'textfield', 'heading' => "Column item class", 'param_name' => 'class', 'admin_label' => true, 'value' => '', 'group' => esc_html__('Column item', 'wps-prime'), 'description' => __('Add optional CSS classes to the layout__item element', 'wps-prime')), array('type' => 'attach_image', 'heading' => "Bg Image", 'admin_label' => true, 'param_name' => 'inner_img', 'value' => '', 'group' => esc_html__('Inner element', 'wps-prime'), 'description' => __('Add image to be used as a background. Limit to 1 image', 'wps-prime')), array('type' => 'dropdown', 'heading' => "Background image size", 'param_name' => 'inner_img_size', 'admin_label' => true, 'value' => wps_image_sizes(), 'std' => 'full', 'group' => esc_html__('Inner element', 'wps-prime'), 'description' => __('Select background image size (image will be stretched)', 'wps-prime')), array('type' => 'textfield', 'heading' => "Column item inner element class", 'param_name' => 'inner_class', 'admin_label' => true, 'value' => '', 'group' => esc_html__('Inner element', 'wps-prime'), 'description' => __('Add optional CSS classes to the layout__item_inner element', 'wps-prime')), array('type' => 'checkbox', 'heading' => "Inner element turn off", 'param_name' => 'inner', 'admin_label' => true, 'value' => '', 'group' => esc_html__('Inner element', 'wps-prime'), 'description' => __('Turn off the inner element (by default true if inner_class is specified )', 'wps-prime')));
    vc_add_params('vc_column_inner', $attributes);
    vc_map_update('vc_column_inner', array('html_template' => locate_template('vc_templates/vc_column_inner.php')));
}
function kt_add_option_to_vc()
{
    $color_arr = array('vc_btn', 'vc_icon', 'vc_tta_accordion', 'vc_tta_tabs', 'vc_tta_tour');
    foreach ($color_arr as $item) {
        $button_colors = WPBMap::getParam($item, 'color');
        $button_colors['value'][esc_html__('Accent color', 'adroit')] = 'accent';
        vc_update_shortcode_param($item, $button_colors);
    }
    $background_arr = array('vc_icon');
    foreach ($background_arr as $item) {
        $button_colors = WPBMap::getParam($item, 'background_color');
        $button_colors['value'][esc_html__('Accent color', 'adroit')] = 'accent';
        vc_update_shortcode_param($item, $button_colors);
    }
    $image_styles = WPBMap::getParam('vc_single_image', 'style');
    $image_styles['value'][esc_html__('Border box', 'adroit')] = 'border-box';
    $image_styles['value'][esc_html__('Border box Left', 'adroit')] = 'border-left';
    $image_styles['value'][esc_html__('Border box Right', 'adroit')] = 'border-right';
    $image_styles['value'][esc_html__('Creative Left', 'adroit')] = 'creative-left';
    $image_styles['value'][esc_html__('Creative Right', 'adroit')] = 'creative-right';
    $image_styles['value'][esc_html__('Creative When hover', 'adroit')] = 'creative-hover';
    vc_update_shortcode_param('vc_single_image', $image_styles);
    $icon_btn = array('i_type', 'i_icon_fontawesome', 'i_icon_openiconic', 'i_icon_typicons', 'i_icon_entypo', 'i_icon_linecons', 'i_icon_pixelicons', 'css_animation', 'el_class');
    foreach ($icon_btn as $item) {
        vc_remove_param('vc_btn', $item);
    }
}
function stm_update_existing_shortcodes()
{
    if (function_exists('vc_add_params')) {
        vc_add_params('vc_gallery', array(array('type' => 'dropdown', 'heading' => __('Gallery type', STM_DOMAIN), 'param_name' => 'type', 'value' => array(__('Image grid', STM_DOMAIN) => 'image_grid', __('Slick slider', STM_DOMAIN) => 'slick_slider', __('Slick slider 2', STM_DOMAIN) => 'slick_slider_2')), array('type' => 'textfield', 'heading' => __('Thumbnail size', STM_DOMAIN), 'param_name' => 'thumbnail_size', 'dependency' => array('element' => 'type', 'value' => array('slick_slider_2'))), array('type' => 'css_editor', 'heading' => __('Css', STM_DOMAIN), 'param_name' => 'css', 'group' => __('Design options', STM_DOMAIN))));
        vc_add_params('vc_column_inner', array(array('type' => 'column_offset', 'heading' => __('Responsiveness', 'js_composer'), 'param_name' => 'offset', 'group' => __('Width & Responsiveness', 'js_composer'), 'description' => __('Adjust column for different screen sizes. Control width, offset and visibility settings.', 'js_composer'))));
        vc_add_params('vc_separator', array(array('type' => 'dropdown', 'heading' => __('Type', STM_DOMAIN), 'param_name' => 'type', 'value' => array(__('Type 1', STM_DOMAIN) => 'type_1', __('Type 2', STM_DOMAIN) => 'type_2')), array('type' => 'css_editor', 'heading' => __('Css', STM_DOMAIN), 'param_name' => 'css', 'group' => __('Design options', STM_DOMAIN))));
        vc_add_params('vc_video', array(array('type' => 'textfield', 'heading' => __('Iframe Link', STM_DOMAIN), 'param_name' => 'link'), array('type' => 'attach_image', 'heading' => __('Preview Image', STM_DOMAIN), 'param_name' => 'image')));
        vc_add_params('vc_wp_pages', array(array('type' => 'css_editor', 'heading' => __('Css', STM_DOMAIN), 'param_name' => 'css', 'group' => __('Design options', STM_DOMAIN))));
        vc_add_params('vc_basic_grid', array(array('type' => 'dropdown', 'heading' => __('Gap', 'js_composer'), 'param_name' => 'gap', 'value' => array(__('0px', 'js_composer') => '0', __('1px', 'js_composer') => '1', __('2px', 'js_composer') => '2', __('3px', 'js_composer') => '3', __('4px', 'js_composer') => '4', __('5px', 'js_composer') => '5', __('10px', 'js_composer') => '10', __('15px', 'js_composer') => '15', __('20px', 'js_composer') => '20', __('25px', 'js_composer') => '25', __('30px', 'js_composer') => '30', __('35px', 'js_composer') => '35', __('40px', 'js_composer') => '40', __('45px', 'js_composer') => '45', __('50px', 'js_composer') => '50', __('55px', 'js_composer') => '55', __('60px', 'js_composer') => '60'), 'std' => '30', 'description' => __('Select gap between grid elements.', 'js_composer'), 'edit_field_class' => 'vc_col-sm-6 vc_column')));
    }
    if (function_exists('vc_remove_param')) {
        vc_remove_param('vc_cta_button2', 'h2');
        vc_remove_param('vc_cta_button2', 'content');
        vc_remove_param('vc_cta_button2', 'btn_style');
        vc_remove_param('vc_cta_button2', 'color');
        vc_remove_param('vc_cta_button2', 'size');
        vc_remove_param('vc_cta_button2', 'css_animation');
    }
    if (function_exists('vc_remove_element')) {
        vc_remove_element("vc_cta_button");
        vc_remove_element("vc_posts_slider");
        vc_remove_element("vc_icon");
        vc_remove_element("vc_pinterest");
        vc_remove_element("vc_googleplus");
        vc_remove_element("vc_facebook");
        vc_remove_element("vc_tweetmeme");
    }
}
 /**
  * Add new params or add new shortcode to VC
  *
  * @since 1.0
  *
  * @return void
  */
 function map_shortcodes()
 {
     // Add attribues to vc_row
     vc_remove_param('vc_row', 'video_bg');
     vc_remove_param('vc_row', 'video_bg_url');
     $attributes = array(array('type' => 'textfield', 'heading' => 'ID', 'param_name' => 'css_id', 'value' => '', 'description' => __('Set CSS id for this row', 'onehost')), array('type' => 'checkbox', 'heading' => __('Full width content', ''), 'param_name' => 'full_content', 'value' => array(__('Enable', 'onehost') => 'yes'), 'description' => __('Select it if you want your content to be displayed in full width of page', 'onehost')), array('type' => 'checkbox', 'heading' => __('Enable Parallax effect', 'onehost'), 'param_name' => 'parallax', 'group' => __('Design Options', 'onehost'), 'value' => array(__('Enable', 'onehost') => 'yes'), 'description' => __('Enable this option if you want to have parallax effect on this row. When you enable this option, please set background repeat option as "Theme defaults" to make it works.', 'onehost')), array('type' => 'colorpicker', 'heading' => __('Overlay', 'onehost'), 'param_name' => 'overlay', 'group' => __('Design Options', 'onehost'), 'value' => '', 'description' => __('Select an overlay color for this row', 'onehost')), array('type' => 'checkbox', 'heading' => __('Particleground animated', 'onehost'), 'param_name' => 'particleground_bg', 'group' => __('Design Options', 'onehost'), 'value' => array(__('Show', 'onehost') => 'true'), 'description' => __('Show particleground animated', 'onehost')), array('type' => 'colorpicker', 'heading' => __('Dot Color', 'onehost'), 'param_name' => 'dot_color', 'group' => __('Design Options', 'onehost'), 'value' => '', 'description' => __('Select an dot color for particleground', 'onehost'), 'dependency' => array('element' => 'particleground_bg', 'value' => 'true')), array('type' => 'colorpicker', 'heading' => __('Line Color', 'onehost'), 'param_name' => 'line_color', 'group' => __('Design Options', 'onehost'), 'value' => '', 'description' => __('Select an line color for particleground', 'onehost'), 'dependency' => array('element' => 'particleground_bg', 'value' => 'true')), array('type' => 'checkbox', 'heading' => __('Youtube Video Background', 'onehost'), 'param_name' => 'yt_video_bg', 'group' => __('Design Options', 'onehost'), 'value' => array(__('Show', 'onehost') => 'true'), 'description' => __('Show Youtube Video Background', 'onehost')), array('type' => 'textfield', 'heading' => __('Youtube URL', 'onehost'), 'param_name' => 'video_bg', 'group' => __('Design Options', 'onehost'), 'value' => '', 'description' => __('Enter an valid Youtube URL for video background. For better performance, this option does not work on mobile.', 'onehost'), 'dependency' => array('element' => 'yt_video_bg', 'value' => 'true')), array('type' => 'checkbox', 'heading' => __('Mute Youtube Video', 'onehost'), 'param_name' => 'mute_video', 'group' => __('Design Options', 'onehost'), 'value' => array(__('Mute', 'onehost') => 'yes'), 'dependency' => array('element' => 'yt_video_bg', 'value' => 'true'), 'description' => __('Enable this option if you want to mute video by default.', 'onehost')), array('type' => 'checkbox', 'heading' => __('Show Sound Toggle Icon', 'onehost'), 'param_name' => 'show_sound_toggle', 'group' => __('Design Options', 'onehost'), 'value' => array(__('Show', 'onehost') => 'yes'), 'dependency' => array('element' => 'yt_video_bg', 'value' => 'true'), 'description' => __('Enable this option if you want to show a sound toggle icon at the bottom of this row.', 'onehost')));
     vc_add_params('vc_row', $attributes);
     vc_remove_param('vc_row', 'full_width');
     vc_remove_param('vc_row', 'parallax_image');
     vc_remove_param('vc_row', 'video_bg_parallax');
     vc_remove_param('vc_row', 'full_height');
     vc_remove_param('vc_row', 'content_placement');
     vc_remove_param('vc_row', 'el_id');
     // Add section title shortcode
     vc_map(array('name' => __('Section Title', 'onehost'), 'base' => 'section_title', 'class' => '', 'category' => __('Content', 'onehost'), 'admin_enqueue_css' => THEME_URL . '/css/vc/icon-field.css', 'params' => array(array('type' => 'textfield', 'holder' => 'div', 'heading' => __('Title', 'onehost'), 'param_name' => 'content', 'value' => '', 'description' => __('Enter the title content', 'onehost')), array('type' => 'colorpicker', 'holder' => 'div', 'heading' => __('Text Color', 'onehost'), 'param_name' => 'color', 'value' => '', 'description' => __('Set text color for this section title. Leave empty to use the default color of theme.', 'onehost')), array('type' => 'dropdown', 'holder' => 'div', 'heading' => __('Text Alignment', 'onehost'), 'param_name' => 'text_align', 'value' => array(__('Align Center', 'onehost') => 'align-center', __('Align Left', 'onehost') => 'align-left', __('Align Right', 'onehost') => 'align-right'), 'description' => __('Select text alignment for this section title.', 'onehost')), array('type' => 'dropdown', 'holder' => 'div', 'heading' => __('Style', 'onehost'), 'param_name' => 'style', 'value' => array(__('Default', 'onehost') => '', __('Border', 'onehost') => 's-border'), 'description' => __('Select style for this section title.', 'onehost')), array('type' => 'textarea', 'holder' => 'div', 'heading' => __('Description', 'onehost'), 'param_name' => 'desc', 'value' => '', 'description' => __('Enter a short description for section', 'onehost')), array('type' => 'textfield', 'holder' => 'div', 'heading' => __('Extra class name', 'onehost'), 'param_name' => 'class_name', 'value' => '', '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.', 'onehost')))));
     // Add section title shortcode
     vc_map(array('name' => __('Section Title 2', 'onehost'), 'base' => 'section_title_2', 'class' => '', 'category' => __('Content', 'onehost'), 'admin_enqueue_css' => THEME_URL . '/css/vc/icon-field.css', 'params' => array(array('type' => 'textfield', 'holder' => 'div', 'heading' => __('Title', 'onehost'), 'param_name' => 'title', 'value' => '', 'description' => __('Enter the title content', 'onehost')), array('type' => 'colorpicker', 'holder' => 'div', 'heading' => __('Text Color', 'onehost'), 'param_name' => 'color', 'value' => '', 'description' => __('Set text color for this section title. Leave empty to use the default color of theme.', 'onehost')), array('type' => 'dropdown', 'holder' => 'div', 'heading' => __('Text Alignment', 'onehost'), 'param_name' => 'text_align', 'value' => array(__('Align Center', 'onehost') => 'align-center', __('Align Left', 'onehost') => 'align-left', __('Align Right', 'onehost') => 'align-right'), 'description' => __('Select text alignment for this section title.', 'onehost')), array('type' => 'dropdown', 'holder' => 'div', 'heading' => __('Style', 'onehost'), 'param_name' => 'style', 'value' => array(__('Default', 'onehost') => '', __('Border', 'onehost') => 's-border'), 'description' => __('Select style for this section title.', 'onehost')), array('type' => 'textarea_html', 'holder' => 'div', 'heading' => __('Description', 'onehost'), 'param_name' => 'content', 'value' => '', 'description' => __('Enter a short description for section', 'onehost')), array('type' => 'textfield', 'holder' => 'div', 'heading' => __('Extra class name', 'onehost'), 'param_name' => 'class_name', 'value' => '', '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.', 'onehost')))));
     // Add Icon Box shortcode
     vc_map(array('name' => __('Icon Box', 'onehost'), 'base' => 'icon_box', 'class' => '', 'category' => __('Content', 'onehost'), 'params' => array(array('type' => 'icon', 'holder' => 'div', 'heading' => __('Icon', 'onehost'), 'param_name' => 'icon', 'value' => ''), array('type' => 'dropdown', 'holder' => 'div', 'heading' => __('Icon Position', 'onehost'), 'param_name' => 'icon_position', 'value' => array(__('Top', 'onehost') => 'top', __('Left', 'onehost') => 'left', __('Right', 'onehost') => 'right')), array('type' => 'checkbox', 'holder' => 'div', 'heading' => __('Border Circle Icon', 'onehost'), 'param_name' => 'border_circle', 'value' => array(__('Yes', 'onehost') => 'true')), array('type' => 'colorpicker', 'holder' => 'div', 'heading' => __('Background Color', 'onehost'), 'param_name' => 'bg_color', 'value' => '', 'description' => __('Set background color for this icon box.', 'onehost')), array('type' => 'textfield', 'holder' => 'div', 'heading' => __('Title', 'onehost'), 'param_name' => 'title', 'value' => ''), array('type' => 'textfield', 'holder' => 'div', 'heading' => __('Link', 'onehost'), 'param_name' => 'link', 'value' => '', 'description' => __('Enter URL if you want this title to have a link.', 'onehost')), array('type' => 'textarea_html', 'holder' => 'div', 'heading' => __('Content', 'onehost'), 'param_name' => 'content', 'value' => '', 'description' => __('Enter the content of this box', 'onehost')), array('type' => 'textfield', 'holder' => 'div', 'heading' => __('Extra class name', 'onehost'), 'param_name' => 'icon_class', 'value' => '', '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.', 'onehost')))));
     // Add Image Box shortcode
     vc_map(array('name' => __('Image Box', 'onehost'), 'base' => 'image_box', 'class' => '', 'category' => __('Content', 'onehost'), 'params' => array(array('type' => 'attach_image', 'holder' => 'div', 'heading' => __('Image', 'onehost'), 'param_name' => 'image', 'value' => '', 'description' => __('Select images from media library', 'onehost')), array('type' => 'textfield', 'holder' => 'div', 'heading' => __('Image size', 'onehost'), 'param_name' => 'image_size', 'description' => __('Enter image size. Example: tiny, thumbnail, medium, large, full. Leave empty to use "thumbnail" size.', 'onehost')), array('type' => 'dropdown', 'holder' => 'div', 'heading' => __('Image Style', 'onehost'), 'param_name' => 'image_style', 'value' => array(__('Default', 'onehost') => '', __('Rounded', 'onehost') => 'rounded', __('Circle', 'onehost') => 'circle')), array('type' => 'dropdown', 'holder' => 'div', 'heading' => __('Image Position', 'onehost'), 'param_name' => 'image_position', 'value' => array(__('Top', 'onehost') => 'top', __('Left', 'onehost') => 'left', __('Right', 'onehost') => 'right')), array('type' => 'textfield', 'holder' => 'div', 'heading' => __('Title', 'onehost'), 'param_name' => 'title', 'value' => ''), array('type' => 'textfield', 'holder' => 'div', 'heading' => __('Link', 'onehost'), 'param_name' => 'link', 'value' => '', 'description' => __('Enter URL if you want this title to have a link.', 'onehost')), array('type' => 'textarea_html', 'holder' => 'div', 'heading' => __('Content', 'onehost'), 'param_name' => 'content', 'value' => '', 'description' => __('Enter the content of this box', 'onehost')), array('type' => 'textfield', 'holder' => 'div', 'heading' => __('Extra class name', 'onehost'), 'param_name' => 'icon_class', 'value' => '', '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.', 'onehost')))));
     // Add testimonial shortcode
     vc_map(array('name' => __('Testimonials', 'onehost'), 'base' => 'testimonial', 'class' => '', 'category' => __('Content', 'onehost'), 'params' => array(array('type' => 'dropdown', 'holder' => 'div', 'heading' => __('Style', 'onehost'), 'param_name' => 'style', 'value' => array(__('Short Info', 'onehost') => 'short', __('Medium Info', 'onehost') => 'medium', __('Full Info', 'onehost') => 'full')), array('type' => 'textfield', 'holder' => 'div', 'heading' => __('Number Of Testimonials', 'onehost'), 'param_name' => 'number', 'value' => 'All', 'description' => __('How many testimonials to show? Enter number or word "All".', 'onehost')), array('type' => 'checkbox', 'holder' => 'div', 'heading' => __('Enable Slider', 'onehost'), 'param_name' => 'slider', 'value' => array(__('Yes', 'onehost') => 'true')), array('type' => 'checkbox', 'holder' => 'div', 'heading' => __('Single Item', 'onehost'), 'param_name' => 'single', 'value' => array(__('Yes', 'onehost') => 'true'), 'dependency' => array('element' => 'slider', 'value' => 'true'), 'description' => __('Display only one item.', 'onehost')), array('type' => 'textfield', 'holder' => 'div', 'heading' => __('Slide Show Speed', 'onehost'), 'param_name' => 'speed', 'value' => '700', 'dependency' => array('element' => 'slider', 'value' => 'true'), 'description' => __('Set the speed of the slideshow cycling(in ms).', 'onehost')), array('type' => 'checkbox', 'holder' => 'div', 'heading' => __('Auto Play', 'onehost'), 'param_name' => 'autoplay', 'dependency' => array('element' => 'slider', 'value' => 'true'), 'value' => array(__('Yes', 'onehost') => 'true')), array('type' => 'checkbox', 'holder' => 'div', 'heading' => __('Show navigation control', 'onehost'), 'param_name' => 'navigation', 'dependency' => array('element' => 'slider', 'value' => 'true'), 'value' => array(__('Yes', 'onehost') => 'true')), array('type' => 'checkbox', 'holder' => 'div', 'heading' => __('Show pagination control', 'onehost'), 'param_name' => 'pagination', 'dependency' => array('element' => 'slider', 'value' => 'true'), 'value' => array(__('Yes', 'onehost') => 'true')), array('type' => 'textfield', 'holder' => 'div', 'heading' => __('Extra class name', 'onehost'), 'param_name' => 'class_name', '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.', 'onehost')))));
     // Add images carousel shortcode
     vc_map(array('name' => __('OneHost Images Carousel', 'onehost'), 'base' => 'images_carousel', 'class' => '', 'category' => __('Content', 'onehost'), 'params' => array(array('type' => 'attach_images', 'holder' => 'div', 'heading' => __('Images', 'onehost'), 'param_name' => 'images', 'value' => '', 'description' => __('Select images from media library', 'onehost')), array('type' => 'textfield', 'holder' => 'div', 'heading' => __('Image size', 'onehost'), 'param_name' => 'image_size', 'description' => __('Enter image size. Example: thumbnail, medium, large, full. Leave empty to use "thumbnail" size.', 'onehost')), array('type' => 'textarea', 'holder' => 'div', 'heading' => __('Custom links', 'onehost'), 'param_name' => 'custom_links', 'description' => __('Enter links for each slide here. Divide links with linebreaks (Enter).', 'onehost')), array('type' => 'dropdown', 'holder' => 'div', 'heading' => __('Custom link target', 'onehost'), 'param_name' => 'custom_links_target', 'value' => array(__('Same window', 'onehost') => '_self', __('New window', 'onehost') => '_blank'), 'description' => __('Select where to open custom links.', 'onehost')), array('type' => 'textfield', 'holder' => 'div', 'heading' => __('Slides per view', 'onehost'), 'param_name' => 'number', 'value' => 4, 'description' => __('Set numbers of slides you want to display at the same time on slider\'s container for carousel mode.', 'onehost')), array('type' => 'textfield', 'holder' => 'div', 'heading' => __('Slider speed', 'onehost'), 'param_name' => 'speed', 'description' => __('Duration of animation between slides (in ms).', 'onehost')), array('type' => 'checkbox', 'holder' => 'div', 'heading' => __('Slider autoplay', 'onehost'), 'param_name' => 'autoplay', 'value' => array(__('Yes', 'onehost') => 'true')), array('type' => 'checkbox', 'holder' => 'div', 'heading' => __('Show navigation control', 'onehost'), 'param_name' => 'navigation', 'value' => array(__('Yes', 'onehost') => 'true')), array('type' => 'textfield', 'holder' => 'div', 'heading' => __('Extra class name', 'onehost'), 'param_name' => 'class_name', '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.', 'onehost')))));
     // Add pricing shortcode
     vc_map(array('name' => __('Pricing Table', 'onehost'), 'base' => 'pricing', 'class' => '', 'category' => __('Content', 'onehost'), 'params' => array(array('type' => 'textfield', 'holder' => 'div', 'heading' => __('Title', 'onehost'), 'param_name' => 'title', 'value' => ''), array('type' => 'textfield', 'holder' => 'div', 'heading' => __('Price', 'onehost'), 'param_name' => 'price', 'value' => ''), array('type' => 'textfield', 'holder' => 'div', 'heading' => __('Time Duration', 'onehost'), 'param_name' => 'time_duration', 'value' => ''), array('type' => 'checkbox', 'holder' => 'div', 'heading' => __('Featured', 'onehost'), 'param_name' => 'featured', 'value' => array(__('Yes', 'onehost') => 'true')), array('type' => 'textarea_html', 'holder' => 'div', 'heading' => __('Description', 'onehost'), 'param_name' => 'content', 'value' => '', 'description' => __('Enter a short description', 'onehost')), array('type' => 'textfield', 'holder' => 'div', 'heading' => __('Button text', 'onehost'), 'param_name' => 'btext', 'value' => __('Buy Now', 'onehost')), array('type' => 'textfield', 'holder' => 'div', 'heading' => __('Button URL', 'onehost'), 'param_name' => 'burl', 'value' => ''))));
     // Add Animation
     $attributes = array(array('type' => 'dropdown', 'holder' => 'div', 'heading' => __('Animation', 'onehost'), 'param_name' => 'animation', 'group' => __('Animation', 'onehost'), 'description' => __('Select an animation for this column. You can see more about animation <a href="http://daneden.github.io/animate.css" target="_blank">here</a>', 'onehost'), 'value' => onehost_list_animation()), array('type' => 'textfield', 'holder' => 'div', 'heading' => __('Duration', 'onehost'), 'param_name' => 'duration', 'group' => __('Animation', 'onehost'), 'value' => '1000', 'description' => __('Duration of animation (in ms).', 'onehost')), array('type' => 'textfield', 'holder' => 'div', 'heading' => __('Delay', 'onehost'), 'group' => __('Animation', 'onehost'), 'param_name' => 'delay', 'value' => '200', 'description' => __('Delay of animation (in ms).', 'onehost')));
     $elements = array('vc_column', 'vc_column_inner', 'vc_custom_heading', 'vc_button2', 'vc_button', 'vc_progress_bar', 'vc_gallery', 'vc_single_image', 'vc_column_text', 'section_title', 'section_title_2', 'icon_box', 'image_box', 'testimonial', 'images_carousel');
     foreach ($elements as $element) {
         vc_add_params($element, $attributes);
     }
 }
function wps_vc_column_text_shortcode()
{
    // Remove Default Parameters
    vc_remove_param('vc_column_text', 'css_animation');
    vc_remove_param('vc_column_text', 'css');
    vc_map_update('vc_column_text', array('html_template' => locate_template('vc_templates/vc_column_text.php')));
}
 function webnus_setup_vc_posts_grid()
 {
     vc_remove_param('vc_posts_grid', 'grid_layout');
     $vc_layout_sub_controls = array(array('link_post', __("Link to post", "js_composer")), array("no_link", __("No link", "js_composer")), array("link_image", __("Link to bigger image", "js_composer")));
     $attributes = array("type" => "sorted_list", "heading" => __("Teaser layout", "js_composer"), "param_name" => "grid_layout", "description" => __("Control teasers look. Enable blocks and place them in desired order. Note: This setting can be overrriden on post to post basis.", "js_composer"), "value" => "title,image,text", "options" => array(array('image', __('Thumbnail', "js_composer"), $vc_layout_sub_controls), array('title', __('Title', "js_composer"), $vc_layout_sub_controls), array('text', __('Text', "js_composer"), array(array('excerpt', __('Teaser/Excerpt', "js_composer")), array('text', __('Full content', "js_composer")))), array('meta_author', __('Metadata Author', "js_composer")), array('meta_category', __('Metadata Category', "js_composer")), array('meta_date', __('Metadata Date', "js_composer")), array('meta_comments', __('Metadata Comments', "js_composer"))));
     vc_add_param('vc_posts_grid', $attributes);
 }
Exemple #7
0
function something()
{
    $icons = array('type' => 'dropdown', 'heading' => 'Icon library', 'value' => array('Font Awesome' => 'fontawesome', 'Open Iconic' => 'openiconic', 'Typicons' => 'typicons', 'Entypo' => 'entypo', 'Linecons' => 'linecons', 'Pixel' => 'pixelicons', 'Ion icons' => 'ionicons'), 'param_name' => 'i_type', 'description' => 'Select icon library.', 'dependency' => array('element' => 'add_icon', 'value' => 'true'), 'integrated_shortcode' => 'vc_icon', 'integrated_shortcode_field' => 'i_');
    $ionicons = array('type' => 'iconpicker', 'heading' => __('Icon', 'js_composer'), 'param_name' => 'i_icon_ionicons', 'settings' => array('emptyIcon' => false, 'type' => 'ionicons', 'source' => require_once 'ionicons.php'), 'dependency' => array('element' => 'i_type', 'value' => 'ionicons'), 'description' => __('Select icon from library.', 'js_composer'));
    vc_remove_param('vc_btn', 'i_type');
    vc_add_param('vc_btn', $icons);
    vc_add_param('vc_btn', $ionicons);
}
Exemple #8
0
 protected function deleteParam($name, $element)
 {
     if (is_array($element)) {
         foreach ($element as $value) {
             vc_remove_param($name, $value);
         }
     } else {
         vc_remove_param($name, $element);
     }
 }
Exemple #9
0
function ts_integrateWithVC()
{
    if (!function_exists('vc_map')) {
        return;
    }
    /*----------------------------------------------------------------------------*
     * Service
     *----------------------------------------------------------------------------*/
    vc_map(array('name' => __('Service', 'kreativa'), 'base' => 'icon', 'class' => '', 'category' => __('Content', 'kreativa'), 'admin_enqueue_js' => '', 'admin_enqueue_css' => '', "params" => array(array("type" => "textfield", "heading" => "Heading Text", "param_name" => "heading", "admin_label" => true, "value" => "", 'description' => 'The heading text that will be displayed at box top.'), array("type" => "dropdown", "heading" => "Heading Tag", "param_name" => "heading_tag", "value" => array("Default" => "", "h2" => "h2", "h3" => "h3", "h4" => "h4", "h5" => "h5", "h6" => "h6"), "description" => "The heading tag that will be used in the heading text."), array("type" => "dropdown", "class" => "", "heading" => __("Icon Family", 'kreativa'), "param_name" => "ico_family", "value" => array('Font Awesome' => '', 'Elegant Icons' => 'el el-', 'Custom' => 'custom'), "description" => __("Select the icon family.", 'kreativa')), array("type" => "textfield", "heading" => __("Custom Icon Class", 'kreativa'), "param_name" => "ico_custom", "description" => __("Type a custom icon class to be used in the icon.", 'kreativa'), 'dependency' => array('element' => 'ico_family', 'value' => 'custom')), array("type" => "textfield", "heading" => __("Icon Name", 'kreativa'), "param_name" => "ico", "description" => __("Type icon name without prefixes, e.g. cogs or eye.", 'kreativa')), array("type" => "textarea_html", "heading" => "Content", "param_name" => "content", "value" => "<li>Web Development</li><li>Security Research</li><li>Advanced Topics</li>", "description" => "The list that will be showed as the box content."), array("type" => "textfield", "heading" => __("Extra class name", 'kreativa'), "param_name" => "el_class", "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.", 'kreativa')), array('type' => 'dropdown', 'heading' => __('Template', 'kreativa'), 'param_name' => 'template', 'admin_label' => true, 'value' => array(__('Default', 'kreativa') => 'style1', 'style1' => 'style1', 'style2' => 'style2', 'style3' => 'style3', 'style4' => 'style4', 'style5' => 'style5', 'style6' => 'style6', 'style7' => 'style7', 'style8' => 'style8'), 'description' => __('Select a default template to start and maybe customize it. Usually the templates are added by themes.', 'kreativa')))));
    /*----------------------------------------------------------------------------*
     * Title
     *----------------------------------------------------------------------------*/
    vc_map(array('name' => __('Title', 'kreativa'), 'base' => 'title', 'class' => '', 'category' => __('Kreativa', 'kreativa'), 'admin_enqueue_js' => '', 'admin_enqueue_css' => '', "params" => array(array("type" => "textfield", "heading" => "Heading Text", "param_name" => "heading", "admin_label" => true, "value" => "", 'description' => 'The text that will be used as heading.'), array("type" => "dropdown", "heading" => "Heading Tag", "param_name" => "heading_tag", "value" => array("Default" => "", "h2" => "h2", "h3" => "h3", "h4" => "h4", "h5" => "h5", "h6" => "h6"), "description" => "The heading tag that will be used in the heading text."), array('type' => 'dropdown', 'heading' => __('Align', 'kreativa'), 'param_name' => 'align', 'admin_label' => true, 'value' => array(__('Left', 'kreativa') => 'left', 'Right' => 'right', 'Center' => 'Center'), 'description' => __('Select a default template to start and maybe customize it. Usually the templates are added by themes.', 'kreativa')))));
    /*----------------------------------------------------------------------------*
     * Divider
     *----------------------------------------------------------------------------*/
    vc_map(array('name' => __('Divider', 'kreativa'), 'base' => 'divider', 'class' => '', 'category' => __('Kreativa', 'kreativa'), 'admin_enqueue_js' => '', 'admin_enqueue_css' => '', "params" => array(array("type" => "dropdown", "heading" => "Divider Style", "param_name" => "style", "value" => array("Normal" => "", "Dashed" => "br-dashed", "Dotted" => "br-dotted", "Unique" => "unique"), "description" => "The style of the divider."))));
    /*----------------------------------------------------------------------------*
     * Message
     *----------------------------------------------------------------------------*/
    vc_remove_param("vc_message", "el_class");
    vc_remove_param("vc_message", "css_animation");
    vc_remove_param("vc_message", "style");
    vc_add_param('vc_message', array("type" => "dropdown", "class" => "", "heading" => __("Message Box Type", 'kreativa'), "param_name" => "color", "value" => array("Notification" => 'notification', "Success" => 'success', "Danger" => 'danger', "Alert" => 'alert', "Custom" => 'custom'), "description" => __("Select the way message box will be displayed", 'kreativa')));
    vc_add_param('vc_message', array("type" => "textfield", "class" => "", "heading" => __("Font Awesome Icon", 'kreativa'), "param_name" => "icon", "value" => 'lightbulb-o', 'description' => 'Enter a font awesome icon class just name without fa-'));
    vc_add_param('vc_message', array("type" => "dropdown", "class" => "", "heading" => __("Message Box Type", 'kreativa'), "param_name" => "box_bg", "value" => array("White" => 'bg-white', "Black" => 'bg-black', "Blue" => 'bg-blue', "Dark Blue" => 'bg-dark-blue', "Light Blue" => 'bg-light-blue', "Turquoise Blue" => 'bg-turquoise-blue', "Gray" => 'bg-gray', "Dark Gray" => 'bg-dark-gray', "Periwinkle Gray" => 'bg-periwinkle-gray', "Botticelli Gray" => 'bg-botticelli-gray', "Light Gray" => 'bg-light-gray', "Silver" => 'bg-silver', "Orange" => 'bg-orange', "Dark Orange" => 'bg-dark-orange', "Bittersweet" => 'bg-bittersweet', "Green" => 'bg-green', "Dark Green" => 'bg-dark-green', "Turquoise" => 'bg-turquoise', "Purple" => 'bg-purple', "Dark Purple" => 'bg-dark-purple', "Pink" => 'bg-pink', "Cranberry" => 'bg-cranberry', "Yellow" => 'bg-yellow', "Red" => 'bg-red'), "description" => __("Select the way message box will be displayed", 'kreativa'), "dependency" => array('element' => 'color', 'value' => array('custom'))));
    vc_add_param('vc_message', array("type" => "dropdown", "class" => "", "heading" => __("Message Box Color", 'kreativa'), "param_name" => "box_color", "value" => array("White" => 'color-white', "Black" => 'color-black', "Blue" => 'color-blue', "Dark Blue" => 'color-dark-blue', "Light Blue" => 'color-light-blue', "Turquoise Blue" => 'color-turquoise-blue', "Gray" => 'color-gray', "Dark Gray" => 'color-dark-gray', "Periwinkle Gray" => 'color-periwinkle-gray', "Botticelli Gray" => 'color-botticelli-gray', "Light Gray" => 'color-light-gray', "Silver" => 'color-silver', "Orange" => 'color-orange', "Dark Orange" => 'color-dark-orange', "Bittersweet" => 'color-bittersweet', "Green" => 'color-green', "Dark Green" => 'color-dark-green', "Turquoise" => 'color-turquoise', "Purple" => 'color-purple', "Dark Purple" => 'color-dark-purple', "Pink" => 'color-pink', "Cranberry" => 'color-cranberry', "Yellow" => 'color-yellow', "Red" => 'color-red'), "description" => __("Select the way message box will be displayed", 'kreativa'), "dependency" => array('element' => 'color', 'value' => array('custom'))));
    vc_add_param('vc_message', array("type" => "dropdown", "class" => "", "heading" => __("Message Box Border Color", 'kreativa'), "param_name" => "box_br_color", "value" => array("White" => 'br-color-white', "Black" => 'br-color-black', "Blue" => 'br-color-blue', "Dark Blue" => 'br-color-dark-blue', "Light Blue" => 'br-color-light-blue', "Turquoise Blue" => 'br-color-turquoise-blue', "Gray" => 'br-color-gray', "Dark Gray" => 'br-color-dark-gray', "Periwinkle Gray" => 'br-color-periwinkle-gray', "Botticelli Gray" => 'br-color-botticelli-gray', "Light Gray" => 'br-color-light-gray', "Silver" => 'br-color-silver', "Orange" => 'br-color-orange', "Dark Orange" => 'br-color-dark-orange', "Bittersweet" => 'br-color-bittersweet', "Green" => 'br-color-green', "Dark Green" => 'br-color-dark-green', "Turquoise" => 'br-color-turquoise', "Purple" => 'br-color-purple', "Dark Purple" => 'br-color-dark-purple', "Pink" => 'br-color-pink', "Cranberry" => 'br-color-cranberry', "Yellow" => 'br-color-yellow', "Red" => 'br-color-red'), "description" => __("Select the way message box will be displayed", 'kreativa'), "dependency" => array('element' => 'color', 'value' => array('custom'))));
    vc_add_param('vc_message', array("type" => "dropdown", "class" => "", "heading" => __("Message Box Border Thickness", 'kreativa'), "param_name" => "box_br_thickness", "value" => array("Light" => 'br-light', "Semi Light" => 'br-semi-light', "Medium" => 'br-medium', "Semi Thick" => 'br-semi-thick', "Thick" => 'br-thick'), "description" => __("Select the way message box will be displayed", 'kreativa'), "dependency" => array('element' => 'color', 'value' => array('custom'))));
    vc_add_param('vc_message', array("type" => "dropdown", "class" => "", "heading" => __("Message Box Border Style", 'kreativa'), "param_name" => "box_br_style", "value" => array("Solid" => 'br-solid', "Dashed" => 'br-dashed', "Dotted" => 'br-dotted', "Double" => 'br-double'), "description" => __("Select the way message box will be displayed", 'kreativa'), "dependency" => array('element' => 'color', 'value' => array('custom'))));
    /*----------------------------------------------------------------------------*
     * Button
     *----------------------------------------------------------------------------*/
    vc_remove_param("vc_button", "el_class");
    vc_add_param('vc_button', array("type" => "dropdown", "class" => "", "heading" => __("Background", 'kreativa'), "param_name" => "color", "value" => array("Default" => "bg-blue", "White" => 'bg-white', "Black" => 'bg-black', "Blue" => 'bg-blue', "Dark Blue" => 'bg-dark-blue', "Light Blue" => 'bg-light-blue', "Turquoise Blue" => 'bg-turquoise-blue', "Gray" => 'bg-gray', "Dark Gray" => 'bg-dark-gray', "Periwinkle Gray" => 'bg-periwinkle-gray', "Botticelli Gray" => 'bg-botticelli-gray', "Light Gray" => 'bg-light-gray', "Silver" => 'bg-silver', "Orange" => 'bg-orange', "Dark Orange" => 'bg-dark-orange', "Bittersweet" => 'bg-bittersweet', "Green" => 'bg-green', "Dark Green" => 'bg-dark-green', "Turquoise" => 'bg-turquoise', "Purple" => 'bg-purple', "Dark Purple" => 'bg-dark-purple', "Pink" => 'bg-pink', "Cranberry" => 'bg-cranberry', "Yellow" => 'bg-yellow', "Red" => 'bg-red'), "description" => __("Background color of the button", 'kreativa')));
    vc_add_param('vc_button', array("type" => "dropdown", "class" => "", "heading" => __("Font", 'kreativa'), "param_name" => "text_color", "value" => array("White" => 'color-white', "Black" => 'color-black', "Blue" => 'color-blue', "Dark Blue" => 'color-dark-blue', "Light Blue" => 'color-light-blue', "Turquoise Blue" => 'color-turquoise-blue', "Gray" => 'color-gray', "Dark Gray" => 'color-dark-gray', "Periwinkle Gray" => 'color-periwinkle-gray', "Botticelli Gray" => 'color-botticelli-gray', "Light Gray" => 'color-light-gray', "Silver" => 'color-silver', "Orange" => 'color-orange', "Dark Orange" => 'color-dark-orange', "Bittersweet" => 'color-bittersweet', "Green" => 'color-green', "Dark Green" => 'color-dark-green', "Turquoise" => 'color-turquoise', "Purple" => 'color-purple', "Dark Purple" => 'color-dark-purple', "Pink" => 'color-pink', "Cranberry" => 'color-cranberry', "Yellow" => 'color-yellow', "Red" => 'color-red'), "description" => __("Font color of the button", 'kreativa')));
    vc_add_param('vc_button', array("type" => "textfield", "class" => "", "heading" => __("Font Awesome Icon", 'kreativa'), "param_name" => "icon", "value" => 'lightbulb-o', 'description' => 'Enter a font awesome icon class just name without fa-'));
    vc_add_param('vc_button', array("type" => "dropdown", "class" => "", "heading" => __("Icon Size", 'kreativa'), "param_name" => "size", "value" => array("Normal" => '', "Small" => 'small', "Big" => 'Big'), "description" => __("The size of the button", 'kreativa')));
    vc_add_param('vc_button', array("type" => "dropdown", "class" => "", "heading" => __("Icon Position", 'kreativa'), "param_name" => "position", "value" => array("Default" => '', "Left" => 'left', "Center" => 'center', "Right" => 'right'), "description" => __("The position of the button", 'kreativa')));
    vc_add_param('vc_button', array("type" => "dropdown", "class" => "", "heading" => __("Icon Style", 'kreativa'), "param_name" => "style", "value" => array("Default" => 'normal', "Flat" => 'flat', "Shaped" => 'shaped', "3D" => 'b3d', "Unfilled" => 'unfilled'), "description" => __("The style of the button", 'kreativa')));
    vc_add_param('vc_button', array("type" => "dropdown", "class" => "", "heading" => __("Border Thickness", 'kreativa'), "param_name" => "br_thickness", "value" => array("Light" => 'br-light', "Semi Light" => 'br-semi-light', "Medium" => 'br-medium', "Semi Thick" => 'br-semi-thick', "Thick" => 'br-thick'), "description" => __("The border Thickness of the button", 'kreativa'), "dependency" => array('element' => 'style', 'value' => array('unfilled'))));
    vc_add_param('vc_button', array("type" => "dropdown", "class" => "", "heading" => __("Border Color", 'kreativa'), "param_name" => "br_color", "value" => array("White" => 'br-color-white', "Black" => 'br-color-black', "Blue" => 'br-color-blue', "Dark Blue" => 'br-color-dark-blue', "Light Blue" => 'br-color-light-blue', "Turquoise Blue" => 'br-color-turquoise-blue', "Gray" => 'br-color-gray', "Dark Gray" => 'br-color-dark-gray', "Periwinkle Gray" => 'br-color-periwinkle-gray', "Botticelli Gray" => 'br-color-botticelli-gray', "Light Gray" => 'br-color-light-gray', "Silver" => 'br-color-silver', "Orange" => 'br-color-orange', "Dark Orange" => 'br-color-dark-orange', "Bittersweet" => 'br-color-bittersweet', "Green" => 'br-color-green', "Dark Green" => 'br-color-dark-green', "Turquoise" => 'br-color-turquoise', "Purple" => 'br-color-purple', "Dark Purple" => 'br-color-dark-purple', "Pink" => 'br-color-pink', "Cranberry" => 'br-color-cranberry', "Yellow" => 'br-color-yellow', "Red" => 'br-color-red'), "description" => __("The border color of the button", 'kreativa'), "dependency" => array('element' => 'style', 'value' => array('unfilled'))));
    /*----------------------------------------------------------------------------*
     * Tabs
     *----------------------------------------------------------------------------*/
    vc_remove_param("vc_tabs", "el_class");
    vc_remove_param("vc_tabs", "interval");
    vc_remove_param("vc_tabs", "title");
    vc_add_param('vc_tabs', array('type' => 'checkbox', 'heading' => __('Side Tabs?', 'js_composer'), 'param_name' => 'sidetabs', 'description' => __('Do you want to show tabs at side?', 'kreativa'), 'value' => array(__('Yes, please', 'kreativa') => 'yes')));
    /*----------------------------------------------------------------------------*
     * Row
     *----------------------------------------------------------------------------*/
    vc_add_param('vc_row', array("type" => "dropdown", "class" => "", "heading" => __("Background Size", 'kreativa'), "param_name" => "bg_size", "value" => array('Cover' => "", 'Contain' => "contain", 'Default' => "auto"), "description" => __("Select the way background image will be sized.", 'kreativa'), "dependency" => array('element' => 'bg_type', 'value' => array('image'))));
}
Exemple #10
0
/**
 * Removes specified params from standard Visual Composer elements
 */
function vc_remove_standard_params()
{
    // Row
    vc_remove_param('vc_row', 'parallax');
    vc_remove_param('vc_row', 'parallax_image');
    vc_remove_param('vc_row', 'el_id');
    vc_remove_param('vc_row', 'el_class');
    // Btn
    vc_remove_param('vc_btn', 'css_animation');
    vc_remove_param('vc_btn', 'el_class');
    wp_register_style('ionicons', VCADMINURL . 'assets/css/ionicons.min.css', false, '1.0.0');
}
Exemple #11
0
 function iron_register_js_composer()
 {
     global $wpdb;
     $css_animations = array('None' => '', 'Left to Right Effect' => 'wpb_animate_when_almost_visible wpb_left-to-right', 'Right to Left Effect' => 'wpb_animate_when_almost_visible wpb_right-to-left', 'Top to Bottom Effect' => 'wpb_animate_when_almost_visible wpb_top-to-bottom', 'Bottom to Top Effect' => 'wpb_animate_when_almost_visible wpb_bottom-to-top', 'Appear From Center' => 'wpb_animate_when_almost_visible wpb_appear');
     $row_params = array(array("type" => "dropdown", "heading" => __('Type', 'js_composer'), "param_name" => "iron_row_type", "description" => __("You can specify whether the row is displayed fullwidth or in container.", "js_composer"), "value" => array(__("In Container", 'js_composer') => 'in_container', __("Fullwidth", 'js_composer') => 'full_width'), 'save_always' => true), array("type" => "dropdown", "heading" => __('Remove Padding On Medium & Small Screens (1024px)', 'js_composer'), "param_name" => "iron_remove_padding_medium", "value" => array(__("No", 'js_composer') => '', __("Yes", 'js_composer') => 'tabletnopadding'), 'save_always' => true), array("type" => "dropdown", "heading" => __('Remove Padding On Small Screens Only (700px)', 'js_composer'), "param_name" => "iron_remove_padding_small", "value" => array(__("No", 'js_composer') => '', __("Yes", 'js_composer') => 'mobilenopadding'), 'save_always' => true), array("type" => "textfield", "heading" => __("ID Name for Navigation", "js_composer"), "param_name" => "iron_id", "description" => __('If this row wraps the content of one of your sections, set an ID. You can then use it for navigation.<br>Ex: if you enter "work" then you can add a custom link to the menu as follow: "#work". Once this link is clicked, the page will be scrolled to that specific section.', "js_composer")), array("type" => "colorpicker", "heading" => __('Overlay Color', 'js_composer'), "param_name" => "iron_overlay_color", "description" => __("You can set a color over the background image. You can make it more or less opaque, by using the next setting. Default: white ", "js_composer")), array("type" => "dropdown", "heading" => __('Overlay Pattern', 'js_composer'), "param_name" => "iron_overlay_pattern", "description" => __("You can set an overlay pattern over the background image", "js_composer"), "value" => array(__("", 'js_composer') => '', __("Brick", 'js_composer') => 'brick', __("Dot", 'js_composer') => 'dot', __("Zig Zag", 'js_composer') => 'zigzag', __("45 Degrees Dash", 'js_composer') => '45_degree_dash', __("45 Degrees Grid", 'js_composer') => '45_degree_grid', __("45 Degrees Line Small", 'js_composer') => '45_degree_line_small', __("45 Degrees Line Medium", 'js_composer') => '45_degree_line_medium', __("45 Degrees Line Large", 'js_composer') => '45_degree_line_large'), 'save_always' => true), array("type" => "dropdown", "heading" => __('Activate Parallax', 'js_composer'), "param_name" => "iron_parallax", "description" => __("You will need to add a background image within the design tab.", "js_composer"), "value" => array(__("No", 'js_composer') => '', __("Yes", 'js_composer') => 'parallax'), 'save_always' => true), array("type" => "dropdown", "heading" => __('Activate Background Video', 'js_composer'), "param_name" => "iron_bg_video", "value" => array(__("No", 'js_composer') => '', __("Yes", 'js_composer') => 'bg_video'), 'save_always' => true), array("type" => "textfield", "heading" => __('Video Url (Self Hosted MP4)', 'js_composer'), "param_name" => "iron_bg_video_mp4", "value" => ''), array("type" => "textfield", "heading" => __('Video Url (Self Hosted WebM)', 'js_composer'), "param_name" => "iron_bg_video_webm", "value" => ''), array("type" => "attach_image", "heading" => __('Video Image Fallback', 'js_composer'), "description" => __("This image will replace video if its not supported by device.", "js_composer"), "param_name" => "iron_bg_video_poster", "value" => ''));
     foreach ($row_params as $param) {
         vc_add_param('vc_row', $param);
     }
     vc_remove_param('vc_row', 'font_color');
     vc_remove_param('vc_row', 'full_width');
     vc_remove_param('vc_row', 'parallax');
     vc_remove_param('vc_row', 'parallax_image');
     vc_remove_param('vc_row', 'el_id');
     vc_remove_param('vc_row', 'full_height');
     vc_remove_param('vc_row', 'content_placement');
     vc_remove_param('vc_row', 'video_bg');
     vc_remove_param('vc_row', 'video_bg_url');
     vc_remove_param('vc_row', 'video_bg_parallax');
     vc_map(array("name" => _x("Audio Player", 'VC', IRON_TEXT_DOMAIN), "base" => "iron_audioplayer", "class" => "", "icon" => "iron_vc_icon_audio_player", "category" => _x('IRON Widgets', 'VC', IRON_TEXT_DOMAIN), "params" => array(array("type" => "textfield", "holder" => "div", "class" => "", "heading" => _x("Title", 'VC', IRON_TEXT_DOMAIN), "param_name" => "title", "value" => "", "description" => ''), array("type" => "post_multiselect", "post_type" => "album", "holder" => "div", "class" => "", "heading" => _x("Albums", 'VC', IRON_TEXT_DOMAIN), "param_name" => "albums", "value" => '', "description" => ''), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => _x("Auto Play", 'VC', IRON_TEXT_DOMAIN), "param_name" => "autoplay", "value" => array(_x("No", 'VC', IRON_TEXT_DOMAIN) => 0, _x("Yes", 'VC', IRON_TEXT_DOMAIN) => 1), "description" => '', 'save_always' => true), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => _x("Show Playlist", 'VC', IRON_TEXT_DOMAIN), "param_name" => "show_playlist", "value" => array(_x("No", 'VC', IRON_TEXT_DOMAIN) => 0, _x("Yes", 'VC', IRON_TEXT_DOMAIN) => 1), "description" => '', 'save_always' => true), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => _x("Call To Action Title", 'VC', IRON_TEXT_DOMAIN), "param_name" => "action_title", "value" => '', "description" => ''), array("type" => "post_select", "post_type" => "page", "holder" => "div", "class" => "", "heading" => _x("Call To Action Page", 'VC', IRON_TEXT_DOMAIN), "param_name" => "action_obj_id", "value" => '', "description" => ''), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => _x("Call To Action External Link", 'VC', IRON_TEXT_DOMAIN), "param_name" => "action_ext_link", "value" => '', "description" => ''), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => _x("CSS Animation", 'VC', IRON_TEXT_DOMAIN), "param_name" => "css_animation", "value" => $css_animations, "description" => '', 'save_always' => true))));
     vc_map(array("name" => _x("Discography - List", 'VC', IRON_TEXT_DOMAIN), "base" => "iron_discography", "class" => "", "icon" => "iron_vc_icon_discography", "category" => _x('IRON Widgets', 'VC', IRON_TEXT_DOMAIN), "params" => array(array("type" => "textfield", "holder" => "div", "class" => "", "heading" => _x("Title", 'VC', IRON_TEXT_DOMAIN), "param_name" => "title", "value" => "", "description" => ''), array("type" => "post_multiselect", "post_type" => "album", "holder" => "div", "class" => "", "heading" => _x("Albums", 'VC', IRON_TEXT_DOMAIN), "param_name" => "albums", "value" => '', "description" => ''), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => _x("Call To Action Title", 'VC', IRON_TEXT_DOMAIN), "param_name" => "action_title", "value" => '', "description" => ''), array("type" => "post_select", "post_type" => "page", "holder" => "div", "class" => "", "heading" => _x("Call To Action Page", 'VC', IRON_TEXT_DOMAIN), "param_name" => "action_obj_id", "value" => '', "description" => ''), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => _x("Call To Action External Link", 'VC', IRON_TEXT_DOMAIN), "param_name" => "action_ext_link", "value" => '', "description" => ''), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => _x("CSS Animation", 'VC', IRON_TEXT_DOMAIN), "param_name" => "css_animation", "value" => $css_animations, "description" => '', 'save_always' => true))));
     vc_map(array("name" => _x("News - List", 'VC', IRON_TEXT_DOMAIN), "base" => "iron_posts", "class" => "", "icon" => "iron_vc_icon_news", "category" => _x('IRON Widgets', 'VC', IRON_TEXT_DOMAIN), "params" => array(array("type" => "textfield", "holder" => "div", "class" => "", "heading" => _x("Title", 'VC', IRON_TEXT_DOMAIN), "param_name" => "title", "value" => "", "description" => ''), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => _x("Number of posts to show", 'VC', IRON_TEXT_DOMAIN), "param_name" => "number", "value" => '', "description" => ''), array("type" => "taxonomy_multiselect", "taxonomy" => "category", "holder" => "div", "class" => "", "heading" => _x("Category", 'VC', IRON_TEXT_DOMAIN), "param_name" => "category", "description" => ''), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => _x("View As", 'VC', IRON_TEXT_DOMAIN), "param_name" => "view", "value" => array(_x("Grid", 'VC', IRON_TEXT_DOMAIN) => 'post_grid', _x("List", 'VC', IRON_TEXT_DOMAIN) => 'post'), "description" => '', 'save_always' => true), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => _x("Show Excerpts", 'VC', IRON_TEXT_DOMAIN), "param_name" => "enable_excerpts", "value" => array(_x("No", 'VC', IRON_TEXT_DOMAIN) => 0, _x("Yes", 'VC', IRON_TEXT_DOMAIN) => 1), "description" => '', 'save_always' => true), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => _x("Show Date", 'VC', IRON_TEXT_DOMAIN), "param_name" => "show_date", "value" => array(_x("Yes", 'VC', IRON_TEXT_DOMAIN) => 1, _x("No", 'VC', IRON_TEXT_DOMAIN) => 0), "description" => '', 'save_always' => true), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => _x("Call To Action Title", 'VC', IRON_TEXT_DOMAIN), "param_name" => "action_title", "value" => '', "description" => ''), array("type" => "post_select", "post_type" => "page", "holder" => "div", "class" => "", "heading" => _x("Call To Action Page", 'VC', IRON_TEXT_DOMAIN), "param_name" => "action_obj_id", "value" => '', "description" => ''), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => _x("Call To Action External Link", 'VC', IRON_TEXT_DOMAIN), "param_name" => "action_ext_link", "value" => '', "description" => ''), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => _x("CSS Animation", 'VC', IRON_TEXT_DOMAIN), "param_name" => "css_animation", "value" => $css_animations, "description" => '', 'save_always' => true))));
     vc_map(array("name" => _x("Video - List", 'VC', IRON_TEXT_DOMAIN), "base" => "iron_recentvideos", "class" => "", "icon" => "iron_vc_icon_videos", "category" => _x('IRON Widgets', 'VC', IRON_TEXT_DOMAIN), "params" => array(array("type" => "textfield", "holder" => "div", "class" => "", "heading" => _x("Title", 'VC', IRON_TEXT_DOMAIN), "param_name" => "title", "value" => "", "description" => ''), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => _x("Number of videos to show", 'VC', IRON_TEXT_DOMAIN), "param_name" => "number", "value" => '', "description" => ''), array("type" => "taxonomy_multiselect", "taxonomy" => "video-category", "holder" => "div", "class" => "", "heading" => _x("Category", 'VC', IRON_TEXT_DOMAIN), "param_name" => "category", "description" => ''), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => _x("View As", 'VC', IRON_TEXT_DOMAIN), "param_name" => "view", "value" => array(_x("Grid", 'VC', IRON_TEXT_DOMAIN) => 'video_grid', _x("List", 'VC', IRON_TEXT_DOMAIN) => 'video_list'), "description" => '', 'save_always' => true), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => _x("Call To Action Title", 'VC', IRON_TEXT_DOMAIN), "param_name" => "action_title", "value" => '', "description" => ''), array("type" => "post_select", "post_type" => "page", "holder" => "div", "class" => "", "heading" => _x("Call To Action Page", 'VC', IRON_TEXT_DOMAIN), "param_name" => "action_obj_id", "value" => '', "description" => ''), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => _x("Call To Action External Link", 'VC', IRON_TEXT_DOMAIN), "param_name" => "action_ext_link", "value" => '', "description" => ''), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => _x("CSS Animation", 'VC', IRON_TEXT_DOMAIN), "param_name" => "css_animation", "value" => $css_animations, "description" => '', 'save_always' => true))));
     vc_map(array("name" => _x("Photo Gallery", 'VC', IRON_TEXT_DOMAIN), "base" => "iron_featuredphotos", "class" => "", "icon" => "iron_vc_icon_photos", "category" => _x('IRON Widgets', 'VC', IRON_TEXT_DOMAIN), "params" => array(array("type" => "textfield", "holder" => "div", "class" => "", "heading" => _x("Title", 'VC', IRON_TEXT_DOMAIN), "param_name" => "title", "value" => "", "description" => ''), array("type" => "post_multiselect", "post_type" => "photo-album", "holder" => "div", "class" => "", "heading" => _x("Albums", 'VC', IRON_TEXT_DOMAIN), "param_name" => "albums", "value" => '', "description" => ''), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => _x("Gallery Layout", 'VC', IRON_TEXT_DOMAIN), "param_name" => "gallery_layout", "value" => array(_x("Fit photos within window height (Gallery bottom will be flat, some photos might be hidden)", 'VC', IRON_TEXT_DOMAIN) => 'window_height', _x("Fit photos within custom height (Gallery bottom will be flat, manually adjust gallery height)", 'VC', IRON_TEXT_DOMAIN) => 'custom_height', _x("Show all photos (Gallery bottom might not be flat)", 'VC', IRON_TEXT_DOMAIN) => 'show_all'), "description" => '', 'save_always' => true), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => _x("Gallery Height", 'VC', IRON_TEXT_DOMAIN), "param_name" => "gallery_height", "value" => '', "description" => 'Height in pixels. Leave empty to use window height', 'dependency' => array('element' => 'gallery_layout', 'value' => 'custom_height')), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => _x("Call To Action Title", 'VC', IRON_TEXT_DOMAIN), "param_name" => "action_title", "value" => '', "description" => ''), array("type" => "post_select", "post_type" => "page", "holder" => "div", "class" => "", "heading" => _x("Call To Action Page", 'VC', IRON_TEXT_DOMAIN), "param_name" => "action_obj_id", "value" => '', "description" => ''), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => _x("Call To Action External Link", 'VC', IRON_TEXT_DOMAIN), "param_name" => "action_ext_link", "value" => '', "description" => ''), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => _x("CSS Animation", 'VC', IRON_TEXT_DOMAIN), "param_name" => "css_animation", "value" => $css_animations, "description" => '', 'save_always' => true))));
     vc_map(array("name" => _x("Event - List", 'VC', IRON_TEXT_DOMAIN), "base" => "iron_events", "class" => "", "icon" => "iron_vc_icon_events", "category" => _x('IRON Widgets', 'VC', IRON_TEXT_DOMAIN), "params" => array(array("type" => "textfield", "holder" => "div", "class" => "", "heading" => _x("Title", 'VC', IRON_TEXT_DOMAIN), "param_name" => "title", "value" => ""), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => _x("Number of events to show", 'VC', IRON_TEXT_DOMAIN), "param_name" => "number", "value" => '', "description" => ''), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => _x("Filter by", 'VC', IRON_TEXT_DOMAIN), "param_name" => "filter", "value" => array(_x("Upcoming Events", 'VC', IRON_TEXT_DOMAIN) => 'upcoming', _x("Past Events", 'VC', IRON_TEXT_DOMAIN) => 'past'), "description" => '', 'save_always' => true), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => _x("Call To Action Title", 'VC', IRON_TEXT_DOMAIN), "param_name" => "action_title", "value" => '', "description" => ''), array("type" => "post_select", "post_type" => "page", "holder" => "div", "class" => "", "heading" => _x("Call To Action Page", 'VC', IRON_TEXT_DOMAIN), "param_name" => "action_obj_id", "value" => '', "description" => ''), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => _x("Call To Action External Link", 'VC', IRON_TEXT_DOMAIN), "param_name" => "action_ext_link", "value" => '', "description" => ''), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => _x("CSS Animation", 'VC', IRON_TEXT_DOMAIN), "param_name" => "css_animation", "value" => $css_animations, "description" => '', 'save_always' => true))));
     vc_map(array("name" => _x("Event - Single", 'VC', IRON_TEXT_DOMAIN), "base" => "iron_event", "class" => "", "icon" => "iron_vc_icon_event", "category" => _x('IRON Widgets', 'VC', IRON_TEXT_DOMAIN), "params" => array(array("type" => "textfield", "holder" => "div", "class" => "", "heading" => _x("Title", 'VC', IRON_TEXT_DOMAIN), "param_name" => "title", "value" => ""), array("type" => "post_select", "post_type" => "event", "holder" => "div", "class" => "", "heading" => _x("Select an event", 'VC', IRON_TEXT_DOMAIN), "param_name" => "event", "value" => '', "description" => ''), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => _x("Call To Action Title", 'VC', IRON_TEXT_DOMAIN), "param_name" => "action_title", "value" => '', "description" => ''), array("type" => "post_select", "post_type" => "page", "holder" => "div", "class" => "", "heading" => _x("Call To Action Page", 'VC', IRON_TEXT_DOMAIN), "param_name" => "action_obj_id", "value" => '', "description" => ''), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => _x("Call To Action External Link", 'VC', IRON_TEXT_DOMAIN), "param_name" => "action_ext_link", "value" => '', "description" => ''), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => _x("CSS Animation", 'VC', IRON_TEXT_DOMAIN), "param_name" => "css_animation", "value" => $css_animations, "description" => '', 'save_always' => true))));
     vc_map(array("name" => _x("Twitter", 'VC', IRON_TEXT_DOMAIN), "base" => "iron_twitter", "class" => "", "icon" => "iron_vc_icon_twitter", "category" => _x('IRON Widgets', 'VC', IRON_TEXT_DOMAIN), "params" => array(array("type" => "textfield", "holder" => "div", "class" => "", "heading" => _x("Title", 'VC', IRON_TEXT_DOMAIN), "param_name" => "title", "value" => "", "description" => ''), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => _x('Screen Name (ex: @IronTemplates)', 'VC', IRON_TEXT_DOMAIN), "param_name" => "screen_name", "value" => '', "description" => ''), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => _x("Call To Action Title", 'VC', IRON_TEXT_DOMAIN), "param_name" => "action_title", "value" => '', "description" => ''), array("type" => "post_select", "post_type" => "page", "holder" => "div", "class" => "", "heading" => _x("Call To Action Page", 'VC', IRON_TEXT_DOMAIN), "param_name" => "action_obj_id", "value" => '', "description" => ''), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => _x("Call To Action External Link", 'VC', IRON_TEXT_DOMAIN), "param_name" => "action_ext_link", "value" => '', "description" => ''), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => _x("CSS Animation", 'VC', IRON_TEXT_DOMAIN), "param_name" => "css_animation", "value" => $css_animations, "description" => '', 'save_always' => true))));
     vc_map(array("name" => _x("Title Divider", 'VC', IRON_TEXT_DOMAIN), "base" => "iron_divider", "class" => "", "icon" => "iron_vc_icon_title_divider", "category" => _x('IRON Widgets', 'VC', IRON_TEXT_DOMAIN), "params" => array(array("type" => "textfield", "holder" => "div", "class" => "", "heading" => _x("Title", 'VC', IRON_TEXT_DOMAIN), "param_name" => "title", "value" => "", "description" => ''), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => _x("Heading Size", 'VC', IRON_TEXT_DOMAIN), "param_name" => "heading", "value" => array(_x("Small", 'VC', IRON_TEXT_DOMAIN) => '3', _x("Big", 'VC', IRON_TEXT_DOMAIN) => '1'), "description" => '', 'save_always' => true), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => _x("CSS Animation", 'VC', IRON_TEXT_DOMAIN), "param_name" => "css_animation", "value" => $css_animations, "description" => '', 'save_always' => true))));
     vc_map(array('name' => __('Button', 'js_composer'), 'base' => 'iron_button', 'icon' => 'iron_vc_icon_iosslider', 'category' => _x('IRON Widgets', 'VC', IRON_TEXT_DOMAIN), 'params' => array(array("type" => "textfield", "holder" => "div", "class" => "", "heading" => _x("Text", 'VC', IRON_TEXT_DOMAIN), "param_name" => "text", "value" => '', "description" => ''), array("param_name" => "text_align", "type" => "dropdown", "heading" => _x('Text Align', 'VC', IRON_TEXT_DOMAIN), "value" => array(_x('Left', 'VC', IRON_TEXT_DOMAIN) => 'left', _x('Center', 'VC', IRON_TEXT_DOMAIN) => 'center', _x('Right', 'VC', IRON_TEXT_DOMAIN) => 'right'), 'save_always' => true), array("type" => "post_select", "post_type" => "page", "holder" => "div", "class" => "", "heading" => _x("Link Page", 'VC', IRON_TEXT_DOMAIN), "param_name" => "link_page", "value" => '', "description" => ''), array("type" => "post_select", "post_type" => "product", "holder" => "div", "class" => "", "heading" => _x("Link Product", 'VC', IRON_TEXT_DOMAIN), "param_name" => "link_product", "value" => '', "description" => ''), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => _x("Link External", 'VC', IRON_TEXT_DOMAIN), "param_name" => "link_external", "value" => '', "description" => ''), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => _x("Border Width (px)", 'VC', IRON_TEXT_DOMAIN), "param_name" => "border_width", "value" => '', "description" => ''), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => _x("Border Radius (px)", 'VC', IRON_TEXT_DOMAIN), "param_name" => "border_radius", "value" => '', "description" => ''), array("type" => "colorpicker", "heading" => _x("Border Color", 'VC', IRON_TEXT_DOMAIN), "param_name" => "border_color", "description" => ''), array("type" => "colorpicker", "heading" => _x("Background Color", 'VC', IRON_TEXT_DOMAIN), "param_name" => "background_color", "description" => ''), array("type" => "colorpicker", "heading" => _x("Text Color", 'VC', IRON_TEXT_DOMAIN), "param_name" => "text_color", "description" => ''), array("type" => "colorpicker", "heading" => _x("Hover Border Color", 'VC', IRON_TEXT_DOMAIN), "param_name" => "hover_border_color", "description" => ''), array("type" => "colorpicker", "heading" => _x("Hover Background Color", 'VC', IRON_TEXT_DOMAIN), "param_name" => "hover_bg_color", "description" => ''), array("type" => "colorpicker", "heading" => _x("Hover Text Color", 'VC', IRON_TEXT_DOMAIN), "param_name" => "hover_text_color", "description" => ''))));
     if (function_exists('is_plugin_active') && is_plugin_active('nmedia-mailchimp-widget/nm_mailchimp.php')) {
         $results = $wpdb->get_results('SELECT form_id, form_name FROM ' . $wpdb->prefix . 'nm_mc_forms ORDER BY form_name');
         $newsletters = array();
         foreach ($results as $result) {
             $name = !empty($result->form_name) ? $result->form_name : $result->form_id;
             $id = $result->form_id;
             $newsletters[$name] = $id;
         }
         vc_map(array("name" => _x("Newsletter", 'VC', IRON_TEXT_DOMAIN), "base" => "iron_newsletter", "class" => "", "icon" => "iron_vc_icon_newsletter", "category" => _x('IRON Widgets', 'VC', IRON_TEXT_DOMAIN), "params" => array(array("type" => "textfield", "holder" => "div", "class" => "", "heading" => _x("Title", 'VC', IRON_TEXT_DOMAIN), "param_name" => "title", "value" => _x("Newsletter", 'VC', IRON_TEXT_DOMAIN), "description" => ''), array("type" => "textarea", "holder" => "div", "class" => "", "heading" => _x("Description", 'VC', IRON_TEXT_DOMAIN), "param_name" => "description", "value" => _x("Get monthly fresh updates in your mailbox", 'VC', IRON_TEXT_DOMAIN), "description" => ''), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => _x("Newsletters", 'VC', IRON_TEXT_DOMAIN), "param_name" => "fid", "value" => $newsletters, "description" => '', 'save_always' => true), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => _x("CSS Animation", 'VC', IRON_TEXT_DOMAIN), "param_name" => "css_animation", "value" => $css_animations, "description" => '', 'save_always' => true))));
     }
 }
 /**
  * Add new params or add new shortcode to VC
  *
  * @since 1.0
  *
  * @return void
  */
 function map_shortcodes()
 {
     // Add attribues to vc_row
     $attributes = array(array('type' => 'textfield', 'heading' => 'ID', 'param_name' => 'css_id', 'value' => '', 'description' => __('Set CSS id for this row', 'bigboom')), array('type' => 'checkbox', 'heading' => __('Full width content', ''), 'param_name' => 'full_content', 'value' => array(__('Enable', 'bigboom') => 'yes'), 'description' => __('Select it if you want your content to be displayed in full width of page', 'bigboom')));
     vc_add_params('vc_row', $attributes);
     vc_remove_param('vc_row', 'el_id');
     // Add attribues to vc_column_inner
     $attributes = array(array('type' => 'column_offset', 'heading' => __('Responsiveness', 'bigboom'), 'param_name' => 'offset', 'group' => __('Width & Responsiveness', 'bigboom'), 'description' => __('Adjust column for different screen sizes. Control width, offset and visibility settings.', 'bigboom')));
     vc_add_params('vc_column_inner', $attributes);
     // Add products carousel shortcode
     vc_map(array('name' => __('Products Carousel', 'bigboom'), 'base' => 'products_carousel', 'class' => '', 'category' => __('Content', 'bigboom'), 'params' => array(array('type' => 'dropdown', 'holder' => 'div', 'heading' => __('Products', 'bigboom'), 'param_name' => 'products', 'value' => array(__('Recent', 'bigboom') => 'recent', __('Featured', 'bigboom') => 'featured', __('Best Selling', 'bigboom') => 'best_selling', __('Top Rated', 'bigboom') => 'top_rated', __('Sale', 'bigboom') => 'sale')), array('type' => 'textfield', 'holder' => 'div', 'heading' => __('Title', 'bigboom'), 'param_name' => 'title', 'value' => ''), array('type' => 'textfield', 'holder' => 'div', 'heading' => __('Total Products', 'bigboom'), 'param_name' => 'per_page', 'value' => '12', 'description' => __('Set numbers of products to show.', 'bigboom')), array('type' => 'textfield', 'holder' => 'div', 'heading' => __('Products per view', 'bigboom'), 'param_name' => 'views', 'value' => '4', 'description' => __("Set numbers of products you want to display at the same time.", 'bigboom')), array('type' => 'textfield', 'holder' => 'div', 'heading' => __('Columns', 'bigboom'), 'param_name' => 'columns', 'value' => '4', 'description' => __("Set numbers of columns you want to display.", 'bigboom')), array('type' => 'textfield', 'holder' => 'div', 'heading' => __('Spacing', 'bigboom'), 'param_name' => 'spacing', 'value' => '30', 'description' => __("Set spacing between columns.", 'bigboom')), array('type' => 'dropdown', 'holder' => 'div', 'heading' => __('Order By', 'bigboom'), 'param_name' => 'orderby', 'value' => array(__('', 'bigboom') => '', __('Date', 'bigboom') => 'date', __('Title', 'bigboom') => 'title', __('Menu Order', 'bigboom') => 'menu_order', __('Random', 'bigboom') => 'rand'), 'dependency' => array('element' => 'products', 'value' => array('top_rated', 'sale', 'featured')), 'description' => __('Select to order products. Leave empty to use the default order by of theme.', 'bigboom')), array('type' => 'dropdown', 'holder' => 'div', 'heading' => __('Order', 'bigboom'), 'param_name' => 'order', 'value' => array(__('', 'bigboom') => '', __('Ascending ', 'bigboom') => 'asc', __('Descending ', 'bigboom') => 'desc'), 'dependency' => array('element' => 'products', 'value' => array('top_rated', 'sale', 'featured')), 'description' => __('Select to sort products. Leave empty to use the default sort of theme', 'bigboom')), array('type' => 'checkbox', 'holder' => 'div', 'heading' => __('Slider autoplay', 'bigboom'), 'param_name' => 'auto_play', 'value' => array(__('Yes', 'bigboom') => 'true'), 'description' => __('Enables autoplay mode.', 'bigboom')), array('type' => 'checkbox', 'holder' => 'div', 'heading' => __('Hide prev/next buttons', 'bigboom'), 'param_name' => 'hide_navigation', 'value' => array(__('Yes', 'bigboom') => 'false'), 'description' => __('If "YES" prev/next control will be removed.', 'bigboom')), array('type' => 'textfield', 'holder' => 'div', 'heading' => __('Extra class name', 'bigboom'), 'param_name' => 'class_name', 'value' => '', '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.', 'bigboom')))));
     // Add products carousel shortcode
     vc_map(array('name' => __('Products Carousel 2', 'bigboom'), 'base' => 'products_carousel_2', 'class' => '', 'category' => __('Content', 'bigboom'), 'params' => array(array('type' => 'textfield', 'holder' => 'div', 'heading' => __('Title', 'bigboom'), 'param_name' => 'title', 'value' => ''), array('type' => 'textfield', 'holder' => 'div', 'heading' => __('Total Products', 'bigboom'), 'param_name' => 'per_page', 'value' => '12', 'description' => __('Set numbers of products to show.', 'bigboom')), array('type' => 'dropdown', 'holder' => 'div', 'heading' => __('Categories', 'bigboom'), 'param_name' => 'taxonomies', 'value' => $this->get_taxonomies(), 'description' => __('Select taxonomies categories.', 'bigboom')), array('type' => 'textfield', 'holder' => 'div', 'heading' => __('Products per view', 'bigboom'), 'param_name' => 'number', 'value' => '2', 'description' => __("Set numbers of products you want to display at the same time.", 'bigboom')), array('type' => 'dropdown', 'holder' => 'div', 'heading' => __('Order By', 'bigboom'), 'param_name' => 'orderby', 'value' => array(__('Random', 'bigboom') => 'rand', __('Date', 'bigboom') => 'date', __('Title', 'bigboom') => 'title', __('Menu Order', 'bigboom') => 'menu_order'), 'description' => __('Select to order products. Leave empty to use the default order by of theme.', 'bigboom')), array('type' => 'dropdown', 'holder' => 'div', 'heading' => __('Order', 'bigboom'), 'param_name' => 'order', 'value' => array(__('', 'bigboom') => '', __('Ascending ', 'bigboom') => 'asc', __('Descending ', 'bigboom') => 'desc'), 'description' => __('Select to sort products. Leave empty to use the default sort of theme', 'bigboom')), array('type' => 'checkbox', 'holder' => 'div', 'heading' => __('Slider autoplay', 'bigboom'), 'param_name' => 'auto_play', 'value' => array(__('Yes', 'bigboom') => 'true'), 'description' => __('Enables autoplay mode.', 'bigboom')), array('type' => 'checkbox', 'holder' => 'div', 'heading' => __('Hide prev/next buttons', 'bigboom'), 'param_name' => 'hide_navigation', 'value' => array(__('Yes', 'bigboom') => 'false'), 'description' => __('If "YES" prev/next control will be removed.', 'bigboom')), array('type' => 'textfield', 'holder' => 'div', 'heading' => __('Extra class name', 'bigboom'), 'param_name' => 'class_name', 'value' => '', '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.', 'bigboom')))));
     // Add products carousel shortcode
     vc_map(array('name' => __('Products Carousel 3', 'bigboom'), 'base' => 'products_carousel_3', 'class' => '', 'category' => __('Content', 'bigboom'), 'params' => array(array('type' => 'dropdown', 'holder' => 'div', 'heading' => __('Products', 'bigboom'), 'param_name' => 'products', 'value' => array(__('Recent', 'bigboom') => 'recent', __('Featured', 'bigboom') => 'featured', __('Best Selling', 'bigboom') => 'best_selling', __('Top Rated', 'bigboom') => 'top_rated', __('Sale', 'bigboom') => 'sale')), array('type' => 'textfield', 'holder' => 'div', 'heading' => __('Title', 'bigboom'), 'param_name' => 'title', 'value' => ''), array('type' => 'textfield', 'holder' => 'div', 'heading' => __('Total Products', 'bigboom'), 'param_name' => 'per_page', 'value' => '12', 'description' => __('Set numbers of products to show.', 'bigboom')), array('type' => 'textfield', 'holder' => 'div', 'heading' => __('Products per view', 'bigboom'), 'param_name' => 'views', 'value' => '4', 'description' => __("Set numbers of products you want to display at the same time.", 'bigboom')), array('type' => 'textfield', 'holder' => 'div', 'heading' => __('Columns', 'bigboom'), 'param_name' => 'columns', 'value' => '1', 'description' => __("Set numbers of columns you want to display.", 'bigboom')), array('type' => 'dropdown', 'holder' => 'div', 'heading' => __('Order By', 'bigboom'), 'param_name' => 'orderby', 'value' => array(__('', 'bigboom') => '', __('Date', 'bigboom') => 'date', __('Title', 'bigboom') => 'title', __('Menu Order', 'bigboom') => 'menu_order', __('Random', 'bigboom') => 'rand'), 'dependency' => array('element' => 'products', 'value' => array('top_rated', 'sale', 'featured')), 'description' => __('Select to order products. Leave empty to use the default order by of theme.', 'bigboom')), array('type' => 'dropdown', 'holder' => 'div', 'heading' => __('Order', 'bigboom'), 'param_name' => 'order', 'value' => array(__('', 'bigboom') => '', __('Ascending ', 'bigboom') => 'asc', __('Descending ', 'bigboom') => 'desc'), 'dependency' => array('element' => 'products', 'value' => array('top_rated', 'sale', 'featured')), 'description' => __('Select to sort products. Leave empty to use the default sort of theme', 'bigboom')), array('type' => 'checkbox', 'holder' => 'div', 'heading' => __('Slider autoplay', 'bigboom'), 'param_name' => 'auto_play', 'value' => array(__('Yes', 'bigboom') => 'true'), 'description' => __('Enables autoplay mode.', 'bigboom')), array('type' => 'checkbox', 'holder' => 'div', 'heading' => __('Hide prev/next buttons', 'bigboom'), 'param_name' => 'hide_navigation', 'value' => array(__('Yes', 'bigboom') => 'false'), 'description' => __('If "YES" prev/next control will be removed.', 'bigboom')), array('type' => 'textfield', 'holder' => 'div', 'heading' => __('Extra class name', 'bigboom'), 'param_name' => 'class_name', 'value' => '', '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.', 'bigboom')))));
     // Add hot deal shortcode
     vc_map(array('name' => __('Hot Deal Products', 'bigboom'), 'base' => 'hot_deal_products', 'class' => '', 'category' => __('Content', 'bigboom'), 'params' => array(array('type' => 'textfield', 'holder' => 'div', 'heading' => __('Title', 'bigboom'), 'param_name' => 'title', 'value' => ''), array('type' => 'textfield', 'holder' => 'div', 'heading' => __('Products per view', 'bigboom'), 'param_name' => 'per_page', 'value' => '12', 'description' => __('Set numbers of products you want to display at the same time.', 'bigboom')), array('type' => 'textfield', 'holder' => 'div', 'heading' => __('Columns', 'bigboom'), 'param_name' => 'columns', 'value' => '4', 'description' => __("Set numbers of columns you want to display.", 'bigboom')), array('type' => 'dropdown', 'holder' => 'div', 'heading' => __('Order By', 'bigboom'), 'param_name' => 'order_by', 'value' => array(__('Date', 'bigboom') => 'date', __('Title', 'bigboom') => 'title', __('Menu Order', 'bigboom') => 'menu_order', __('Random', 'bigboom') => 'rand')), array('type' => 'dropdown', 'holder' => 'div', 'heading' => __('Order', 'bigboom'), 'param_name' => 'order', 'value' => array(__('Descending ', 'bigboom') => 'desc', __('Ascending ', 'bigboom') => 'asc')), array('type' => 'textfield', 'holder' => 'div', 'heading' => __('Extra class name', 'bigboom'), 'param_name' => 'class_name', 'value' => '', '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.', 'bigboom')))));
     // Add images carousel shortcode
     vc_map(array('name' => __('BigBoom Images Carousel', 'bigboom'), 'base' => 'images_carousel', 'class' => '', 'category' => __('Content', 'bigboom'), 'params' => array(array('type' => 'textfield', 'holder' => 'div', 'heading' => __('Title', 'bigboom'), 'param_name' => 'title', 'value' => ''), array('type' => 'attach_images', 'holder' => 'div', 'heading' => __('Images', 'bigboom'), 'param_name' => 'images', 'value' => '', 'description' => __('Select images from media library', 'bigboom')), array('type' => 'dropdown', 'holder' => 'div', 'heading' => __('Image size', 'bigboom'), 'param_name' => 'image_size', 'value' => $this->image_sizes(), 'description' => __('Select image size. Leave empty to use "thumbnail" size.', 'bigboom')), array('type' => 'textarea', 'holder' => 'div', 'heading' => __('Custom links', 'bigboom'), 'param_name' => 'custom_links', 'description' => __('Enter links for each slide here. Divide links with linebreaks (Enter).', 'bigboom')), array('type' => 'dropdown', 'holder' => 'div', 'heading' => __('Custom link target', 'bigboom'), 'param_name' => 'custom_links_target', 'value' => array(__('Same window', 'bigboom') => '_self', __('New window', 'bigboom') => '_blank'), 'description' => __('Select where to open custom links.', 'bigboom')), array('type' => 'textfield', 'holder' => 'div', 'heading' => __('Slides per view', 'bigboom'), 'param_name' => 'number', 'value' => 4, 'description' => __('Set numbers of slides you want to display at the same time on slider\'s container for carousel mode.', 'bigboom')), array('type' => 'checkbox', 'holder' => 'div', 'heading' => __('Slider autoplay', 'bigboom'), 'param_name' => 'auto_play', 'value' => array(__('Yes', 'bigboom') => 'true'), 'description' => __('Enables autoplay mode.', 'bigboom')), array('type' => 'checkbox', 'holder' => 'div', 'heading' => __('Hide prev/next buttons', 'bigboom'), 'param_name' => 'hide_navigation', 'value' => array(__('Yes', 'bigboom') => 'false'), 'description' => __('If "YES" prev/next control will be removed.', 'bigboom')), array('type' => 'textfield', 'holder' => 'div', 'heading' => __('Extra class name', 'bigboom'), 'param_name' => 'class_name', '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.', 'bigboom')))));
     // Add s carousel shortcode
     vc_map(array('name' => __('BigBoom Posts Carousel', 'bigboom'), 'base' => 'posts_carousel', 'class' => '', 'category' => __('Content', 'bigboom'), 'params' => array(array('type' => 'textfield', 'holder' => 'div', 'heading' => __('Title', 'bigboom'), 'param_name' => 'title', 'value' => ''), array('type' => 'textfield', 'holder' => 'div', 'heading' => __('Total Posts', 'bigboom'), 'param_name' => 'total', 'value' => '12'), array('type' => 'dropdown', 'holder' => 'div', 'heading' => __('Categories', 'bigboom'), 'param_name' => 'categories', 'value' => $this->get_categories(), 'description' => __('Select posts categories.', 'bigboom')), array('type' => 'dropdown', 'holder' => 'div', 'heading' => __('Order By', 'bigboom'), 'param_name' => 'order_by', 'value' => array(__('Date', 'bigboom') => 'date', __('Title', 'bigboom') => 'title', __('Modified', 'bigboom') => 'modified', __('Menu Order', 'bigboom') => 'menu_order', __('Random', 'bigboom') => 'rand')), array('type' => 'dropdown', 'holder' => 'div', 'heading' => __('Order', 'bigboom'), 'param_name' => 'order', 'value' => array(__('Descending ', 'bigboom') => 'desc', __('Ascending ', 'bigboom') => 'asc')), array('type' => 'textfield', 'holder' => 'div', 'heading' => __('Excerpt Length (words)', 'bigboom'), 'param_name' => 'excerpt_length', 'value' => 10), array('type' => 'checkbox', 'holder' => 'div', 'heading' => __('Hide Readmore Text', 'bigboom'), 'param_name' => 'hide_read_more', 'value' => array(__('Yes', 'bigboom') => 'true')), array('type' => 'textfield', 'holder' => 'div', 'heading' => __('Readmore Text', 'bigboom'), 'param_name' => 'read_more_text', 'value' => __('Read More', 'bigboom')), array('type' => 'textfield', 'holder' => 'div', 'heading' => __('Slides per view', 'bigboom'), 'param_name' => 'number', 'value' => 3, 'description' => __('Set numbers of slides you want to display at the same time on slider\'s container for carousel mode.', 'bigboom')), array('type' => 'checkbox', 'holder' => 'div', 'heading' => __('Slider autoplay', 'bigboom'), 'param_name' => 'auto_play', 'value' => array(__('Yes', 'bigboom') => 'true'), 'description' => __('Enables autoplay mode.', 'bigboom')), array('type' => 'checkbox', 'holder' => 'div', 'heading' => __('Hide prev/next buttons', 'bigboom'), 'param_name' => 'hide_navigation', 'value' => array(__('Yes', 'bigboom') => 'false'), 'description' => __('If "YES" prev/next control will be removed.', 'bigboom')), array('type' => 'textfield', 'holder' => 'div', 'heading' => __('Extra class name', 'bigboom'), 'param_name' => 'class_name', '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.', 'bigboom')))));
     // Add Icon Box shortcode
     vc_map(array('name' => __('Icon Box', 'bigboom'), 'base' => 'icon_box', 'class' => '', 'category' => __('Content', 'bigboom'), 'admin_enqueue_css' => THEME_URL . '/css/vc/icon-field.css', 'params' => array(array('type' => 'icon', 'holder' => 'div', 'heading' => __('Icon', 'bigboom'), 'param_name' => 'icon', 'value' => ''), array('type' => 'dropdown', 'holder' => 'div', 'heading' => __('Icon Position', 'bigboom'), 'param_name' => 'icon_position', 'value' => array(__('Left', 'bigboom') => 'Left', __('Top', 'bigboom') => 'top')), array('type' => 'textfield', 'holder' => 'div', 'heading' => __('Title', 'bigboom'), 'param_name' => 'title', 'value' => ''), array('type' => 'textfield', 'holder' => 'div', 'heading' => __('SubTitle', 'bigboom'), 'param_name' => 'subtitle', 'value' => ''), array('type' => 'textarea_html', 'holder' => 'div', 'heading' => __('Content', 'bigboom'), 'param_name' => 'content', 'value' => '', 'description' => __('Enter the content of this box', 'bigboom')), array('type' => 'textfield', 'holder' => 'div', 'heading' => __('Readmore Text', 'bigboom'), 'param_name' => 'read_more_text', 'value' => __('', 'bigboom')), array('type' => 'textfield', 'holder' => 'div', 'heading' => __('Link', 'bigboom'), 'param_name' => 'link', 'value' => '', 'description' => __('Enter URL if you want this title to have a link.', 'bigboom')), array('type' => 'textfield', 'holder' => 'div', 'heading' => __('Extra class name', 'bigboom'), 'param_name' => 'icon_class', 'value' => '', '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.', 'bigboom')))));
 }
function wps_vc_row_inner_shortcode()
{
    // Remove Default Parameters
    vc_remove_param('vc_row_inner', 'full_width');
    vc_remove_param('vc_row_inner', 'gap');
    vc_remove_param('vc_row_inner', 'css');
    vc_remove_param('vc_row_inner', 'full_height');
    vc_remove_param('vc_row_inner', 'equal_height');
    vc_remove_param('vc_row_inner', 'columns_placement');
    vc_remove_param('vc_row_inner', 'content_placement');
    vc_remove_param('vc_row_inner', 'video_bg');
    vc_remove_param('vc_row_inner', 'parallax');
    vc_remove_param('vc_row_inner', 'el_id');
    vc_remove_param('vc_row_inner', 'el_class');
    vc_remove_param('vc_row_inner', 'video_bg_url');
    vc_remove_param('vc_row_inner', 'video_bg_parallax');
    vc_remove_param('vc_row_inner', 'parallax_image');
    vc_remove_param('vc_row_inner', 'parallax_speed_bg');
    vc_remove_param('vc_row_inner', 'parallax_speed_video');
    // Add custom parameters
    $attributes = array(array('type' => 'textfield', 'heading' => "Row Class (L:class)", 'admin_label' => true, 'param_name' => 'class', 'value' => '', 'group' => esc_html__('Row Layout', 'wps-prime'), 'description' => __('Add optional CSS classes to the layout element, classes can contain the column control classes defined in the theme css architecture', 'wps-prime')), array('type' => 'checkbox', 'heading' => "Add Wrapper", 'param_name' => 'wrapper', 'value' => '', 'group' => esc_html__('Row Wrapper', 'wps-prime'), 'description' => __('Add wrapper container around the layout, this is useful if you want to contain elements wne you are using the full width template. Options true/false(default false)', 'wps-prime')), array('type' => 'textfield', 'heading' => "Add Row Wrapper class (W L W)", 'admin_label' => true, 'param_name' => 'wrapper_class', 'value' => '', 'group' => esc_html__('Row Wrapper', 'wps-prime'), 'description' => __('Add optional CSS class to the wrapper (if activated). Optional classes can contain background color extra paddings or any CSS rule that would apply to the wrapper. This setting requires a good knowledge of the css architecture used in the theme', 'wps-prime')), array('type' => 'textfield', 'heading' => "Row Holder Class (H:class L H)", 'admin_label' => true, 'param_name' => 'holder_class', 'value' => '', 'group' => esc_html__('Row Holder Class / Bg Image', 'wps-prime'), 'description' => __('Add custom class to be applied on the layout outer holder element. Ex: add (predefined) class that centers the background image', 'wps-prime')), array('type' => 'attach_image', 'heading' => "Row Holder image (H L H)", 'admin_label' => true, 'param_name' => 'holder_img', 'value' => '', 'group' => esc_html__('Row Layout Holder Class / Bg Image', 'wps-prime'), 'description' => __('Add image to be used as a background for the current layout. Limit to 1 image', 'wps-prime')), array('type' => 'dropdown', 'heading' => "Row Holder background image size (H:bg-image-size L H)", 'param_name' => 'holder_img_size', 'value' => wps_image_sizes(), 'std' => 'full', 'group' => esc_html__('Row Holder Class / Bg Image', 'wps-prime'), 'description' => __('Add image to be used as a background for the current layout. Limit to 1 image', 'wps-prime')));
    vc_add_params('vc_row_inner', $attributes);
    vc_map_update('vc_row_inner', array('html_template' => locate_template('vc_templates/vc_row_inner.php')));
}
Exemple #14
0
 * @subpackage City News
 * @since 1.0
 */
/*-------------------------------------------------------
  Add Exist Shortcodes To Visual Composer
--------------------------------------------------------*/
require_once "custom_blog.php";
require_once "custom_scroll_posts.php";
require_once "custom_categories_loop.php";
require_once "custom_recent_posts.php";
require_once "custom_recent_comments.php";
require_once "custom_sticky.php";
/*Remove exist shortcode*/
vc_remove_element("vc_images_carousel");
vc_remove_element("vc_carousel");
vc_remove_param('vc_row', 'full_width');
/*Load custom CSS*/
add_action('wp_enqueue_scripts', 'vc_custom_css', 30);
function vc_custom_css()
{
    wp_enqueue_style("vc-custom", get_template_directory_uri() . "/vc_extends/vc_custom.css", false, null, "all");
}
/*Disable frontend Interface*/
//vc_disable_frontend();
/*Set the default editor to Visual composer*/
//add_action('vc_after_init','my_custom_function',100);
function my_custom_function()
{
    $vcGroupAccess = vc_settings()->get('groups_access_rules');
    $vcGroupAccess["administrator"]["show"] = "only";
    vc_settings()->set('groups_access_rules', $vcGroupAccess);
Exemple #15
0
    vc_map_update('vc_tab', $toggle_setting);
}
$tab_icon = array('type' => 'dropdown', 'heading' => __('Icon', 'kraftives'), 'param_name' => 'tab_icon', 'value' => folio_icons(), 'description' => __('Tab Icon.', 'kraftives'), 'param_holder_class' => 'vc-colored-dropdown');
if (function_exists('vc_add_param')) {
    vc_add_param('vc_tab', $tab_icon);
}
//Vc_tab end
/*###################################################################################
/##				KraftiveComments: Extend Toggle							   		   ##/										
#####################################################################################*/
$toggle_setting = array('name' => __('Folio Toggle', 'kraftives'), 'category' => __('Folio Zee Modules', 'kraftives'));
if (function_exists('vc_map_update')) {
    vc_map_update('vc_toggle', $toggle_setting);
}
if (function_exists('vc_remove_param')) {
    vc_remove_param("vc_toggle", "css_animation");
}
//Vc_toggle end
/*###################################################################################
/##				KraftiveComments: Custom Params							   		   ##/										
#####################################################################################*/
// Generate param type "number"
add_action('admin_init', 'folio_generate_shortcode_params');
function folio_generate_shortcode_params()
{
    /* Generate param type "number" */
    if (function_exists('add_shortcode_param')) {
        add_shortcode_param('number', 'folio_number_settings_field');
        add_shortcode_param('tab_id', 'folio_tab_id_form_field');
    }
}
 /**
  * Remove attributes
  *
  * @param array $attributes
  *
  * @access private
  */
 private function removeAttribute(array $attributes)
 {
     foreach ($attributes as $attribute) {
         vc_remove_param($this->tag_base, $attribute);
     }
 }
    wp_enqueue_script('my-admin', THEME_DIR_URI . '/js/my-admin.js', array('jquery'));
    // wp_enqueue_style( 'berg-wp-style', THEME_DIR_URI .'/admin/includes/css/admin.css' );
}
/*
** visual composer remove elements and chcange params
*/
if (defined('WPB_VC_VERSION')) {
    vc_remove_param("vc_button", "color");
    vc_add_param("vc_button", array('type' => 'dropdown', 'heading' => __('Color', THEME_NAME), 'param_name' => 'color', 'value' => array('Outline 1' => 'btn-default', 'Outline 2' => 'btn-white', 'Highlight color' => 'btn-color', 'Background color' => 'btn-dark'), 'description' => __('Button color.', THEME_NAME), 'param_holder_class' => 'vc_colored-dropdown'));
    vc_remove_param("vc_button", "size");
    vc_add_param("vc_button", array('type' => 'dropdown', 'heading' => __('Size', THEME_NAME), 'param_name' => 'size', 'value' => array('Regular size' => '', 'Large' => 'btn-lg', 'Small' => 'btn-sm', 'Mini' => 'btn-xs'), 'description' => __('Button size.', THEME_NAME)));
    vc_remove_param("vc_button", "icon");
    vc_remove_param("vc_cta_button", "icon");
    vc_remove_param("vc_cta_button", "color");
    vc_add_param("vc_cta_button", array('type' => 'dropdown', 'heading' => __('Color', THEME_NAME), 'param_name' => 'color', 'value' => array('Outline 1' => 'btn-default', 'Outline 2' => 'btn-white', 'Highlight color' => 'btn-color', 'Background color' => 'btn-dark'), 'description' => __('Button color.', THEME_NAME), 'param_holder_class' => 'vc_colored-dropdown'));
    vc_remove_param("vc_cta_button", "size");
    vc_add_param("vc_cta_button", array('type' => 'dropdown', 'heading' => __('Size', THEME_NAME), 'param_name' => 'size', 'value' => array('Regular size' => '', 'Large' => 'btn-lg', 'Small' => 'btn-sm', 'Mini' => 'btn-xs'), 'description' => __('Button size.', THEME_NAME)));
    // vc_remove_element("vc_gallery");
    vc_remove_element("vc_button2");
    vc_remove_element("vc_cta_button2");
    vc_remove_element("vc_posts_slider");
    vc_remove_element("vc_carousel");
}
function removeElements()
{
    if (defined('WPB_VC_VERSION')) {
        vc_remove_element("vc_facebook");
        vc_remove_element("vc_tweetmeme");
        vc_remove_element("vc_googleplus");
        vc_remove_element("vc_pinterest");
        vc_remove_element("vc_images_carousel");
vc_add_param("vc_row", array("type" => "textfield", "class" => "", "heading" => "Video background (mp4)", "param_name" => "bg_video_src_mp4", "value" => "", "description" => "You must include the ogv & the mp4 format to render your video with cross browser compatibility. OGV is optional. Video must be in a 16:9 aspect ratio. The row background image will be used in mobile devices."));
vc_add_param("vc_row", array("type" => "textfield", "class" => "", "heading" => "Video background (ogv)", "param_name" => "bg_video_src_ogv", "value" => ""));
vc_add_param("vc_row", array("type" => "textfield", "class" => "", "heading" => "Video background (webm)", "param_name" => "bg_video_src_webm", "value" => ""));
vc_add_param("vc_row", array("type" => "colorpicker", "class" => "", "heading" => "Video Overlay Color", "param_name" => "bg_video_overlay_color", "value" => "", "description" => "If you want, you can select an overlay color."));
// Add / Remove parameters
vc_remove_param("vc_row", "full_width");
vc_remove_param("vc_row", "parallax");
vc_remove_param("vc_tta_tabs", "style");
vc_remove_param("vc_tta_tabs", "shape");
vc_remove_param("vc_tta_tabs", "color");
vc_remove_param("vc_tta_tabs", "no_fill_content_area");
vc_remove_param("vc_tta_tabs", "spacing");
vc_remove_param("vc_tta_tabs", "gap");
vc_remove_param("vc_tta_tabs", "alignment");
vc_remove_param("vc_tta_tabs", "pagination_color");
vc_remove_param("vc_tta_tabs", "pagination_style");
// Banner shortcode
vc_map(array("name" => __("Banner", THB_THEME_NAME), "base" => "thb_banner", "icon" => "thb_vc_ico_banner", "class" => "thb_vc_sc_banner", "category" => "by Fuel Themes", "params" => array(array("type" => "attach_image", "class" => "", "heading" => "Select Background Image", "param_name" => "banner_bg", "description" => ""), array("type" => "textfield", "heading" => "Banner Height", "param_name" => "banner_height", "description" => "Enter height of the banner in px."), array("type" => "dropdown", "class" => "", "heading" => "Banner Effect", "param_name" => "type", "value" => array("Lily" => "effect-lily", "Sadie" => "effect-sadie", "Honey" => "effect-honey", "layla" => "effect-layla", "Marley" => "effect-marley", "Ruby" => "effect-ruby", "Roxy" => "effect-roxy", "Bubba" => "effect-bubba", "Romeo" => "effect-romeo", "Dexter" => "effect-dexter", "Sarah" => "effect-sarah", "Chico" => "effect-chico", "Milo" => "effect-milo"), "description" => "You can see the effects here: http://themes.fuelthemes.net/skillful/banners/"), array("type" => "textfield", "heading" => "Title", "param_name" => "title", "admin_label" => true), array("type" => "textfield", "heading" => "Sub Title", "param_name" => "subtitle"), array("type" => "textfield", "heading" => "Link", "param_name" => "overlay_link")), "description" => "Display different banner styles"));
// Button shortcode
vc_map(array("name" => __("Button", THB_THEME_NAME), "base" => "thb_button", "icon" => "thb_vc_ico_button", "class" => "thb_vc_sc_button", "category" => "by Fuel Themes", "params" => array(array("type" => "textfield", "class" => "", "heading" => "Caption", "admin_label" => true, "param_name" => "content", "value" => "", "description" => ""), array("type" => "textfield", "class" => "", "heading" => "Link URL", "param_name" => "link", "value" => "", "description" => ""), array('type' => 'iconpicker', 'heading' => __('Icon', 'js_composer'), 'param_name' => 'icon', 'value' => 'fa fa-adjust', 'settings' => array('emptyIcon' => false, 'iconsPerPage' => 4000), 'description' => __('Select icon from library.', 'js_composer')), array("type" => "dropdown", "class" => "", "heading" => "Open link in", "param_name" => "target_blank", "value" => array("Same window" => "", "New window" => "true"), "description" => ""), array("type" => "dropdown", "class" => "", "heading" => "Size", "param_name" => "size", "value" => array("Small button" => "small", "Medium button" => "medium", "Big button" => "large"), "description" => ""), array("type" => "dropdown", "class" => "", "heading" => "Button color", "param_name" => "color", "value" => array("Accent Color" => "accent", "Black" => "black", "White" => "white"), "description" => ""), array("type" => "dropdown", "class" => "", "heading" => "Animation", "param_name" => "animation", "value" => array("None" => "", "Left" => "animation right-to-left", "Right" => "animation left-to-right", "Top" => "animation bottom-to-top", "Bottom" => "animation top-to-bottom", "Scale" => "animation scale", "Fade" => "animation fade-in"), "description" => "")), "description" => "Add an animated button"));
// Divider Shortcode
vc_map(array("name" => __("Dividers", THB_THEME_NAME), "base" => "thb_dividers", "icon" => "thb_vc_ico_dividers", "class" => "thb_vc_sc_dividers", "category" => "by Fuel Themes", "show_settings_on_create" => true, "params" => array(array("type" => "dropdown", "heading" => "Style", "param_name" => "style", "admin_label" => true, "value" => array('Style 1' => "style1", 'Style 2' => "style2", 'Style 3' => "style3", 'Style 4' => "style4", 'Style 5' => "style5", 'Style 6' => "style6", 'Style 7' => "style7", 'Style 8' => "style8"), "description" => "This changes the style of the dividers")), "description" => "Divide your content with different divider styles."));
// Gap shortcode
vc_map(array("name" => __("Gap", THB_THEME_NAME), "base" => "thb_gap", "icon" => "thb_vc_ico_gap", "class" => "thb_vc_sc_gap", "category" => "by Fuel Themes", "params" => array(array("type" => "textfield", "heading" => "Gap Height", "param_name" => "height", "admin_label" => true, "description" => "Enter height of the gap in px.")), "description" => "Add a gap to seperate elements"));
// Icon List shortcode
vc_map(array("name" => __("Icon List", THB_THEME_NAME), "base" => "thb_iconlist", "icon" => "thb_vc_ico_iconlist", "class" => "thb_vc_sc_iconlist", "category" => "by Fuel Themes", "params" => array(array('type' => 'iconpicker', 'heading' => __('Icon', 'js_composer'), 'param_name' => 'icon', 'value' => 'fa fa-adjust', 'settings' => array('emptyIcon' => false, 'iconsPerPage' => 4000), 'description' => __('Select icon from library.', 'js_composer')), array("type" => "colorpicker", "class" => "", "heading" => "Icon color", "param_name" => "color", "value" => "", "description" => ""), array("type" => "dropdown", "class" => "", "heading" => "Animation", "param_name" => "animation", "value" => array("None" => "", "Left" => "animation right-to-left", "Right" => "animation left-to-right", "Top" => "animation bottom-to-top", "Bottom" => "animation top-to-bottom", "Scale" => "animation scale", "Fade" => "animation fade-in"), "description" => ""), array("type" => "exploded_textarea", "class" => "", "heading" => "List Items", "admin_label" => true, "param_name" => "content", "value" => "", "description" => "Every new line will be treated as a list item")), "description" => "Add lists with icons"));
// Iconbox shortcode
vc_map(array("name" => __("Iconbox", THB_THEME_NAME), "base" => "thb_iconbox", "icon" => "thb_vc_ico_iconbox", "class" => "thb_vc_sc_iconbox", "category" => "by Fuel Themes", "params" => array(array('type' => 'iconpicker', 'heading' => __('Icon', 'js_composer'), 'param_name' => 'icon', 'value' => 'fa fa-adjust', 'settings' => array('emptyIcon' => false, 'iconsPerPage' => 4000), 'description' => __('Select icon from library.', 'js_composer')), array("type" => "colorpicker", "holder" => "div", "class" => "", "heading" => "Icon Color", "param_name" => "icon_color", "description" => ""), array("type" => "attach_image", "class" => "", "heading" => "Image", "param_name" => "image", "description" => "Use image instead of icon? Image uploaded should be 100*100"), array("type" => "textfield", "class" => "", "heading" => "Heading", "param_name" => "heading", "value" => "", "admin_label" => true, "description" => ""), array("type" => "colorpicker", "class" => "", "heading" => "Heading Color", "param_name" => "heading_color", "value" => "", "description" => "You can change the heading color from here"), array("type" => "textarea", "class" => "", "heading" => "Content", "param_name" => "content", "value" => "", "description" => ""), array("type" => "colorpicker", "holder" => "div", "class" => "", "heading" => "Content Color", "param_name" => "content_color", "description" => ""), array("type" => "dropdown", "class" => "", "heading" => "Animation", "param_name" => "animation", "value" => array("None" => "", "Left" => "animation right-to-left", "Right" => "animation left-to-right", "Top" => "animation bottom-to-top", "Bottom" => "animation top-to-bottom", "Scale" => "animation scale", "Fade" => "animation fade-in"), "description" => ""), array("type" => "checkbox", "class" => "", "heading" => "Add Button?", "param_name" => "use_btn", "value" => array("" => "true"), "description" => "Check if you want to add a button."), array("type" => "textfield", "class" => "", "heading" => "Button Caption", "param_name" => "btn_content", "value" => "", "description" => "", "dependency" => array('element' => "use_btn", 'not_empty' => true)), array("type" => "textfield", "class" => "", "heading" => "Button Link URL", "param_name" => "btn_link", "value" => "", "description" => "", "dependency" => array('element' => "use_btn", 'not_empty' => true)), array("type" => "dropdown", "class" => "", "heading" => "Button Icon", "param_name" => "btn_icon", "value" => thb_getIconArray(), "description" => "", "dependency" => array('element' => "use_btn", 'not_empty' => true)), array("type" => "dropdown", "class" => "", "heading" => "Button Open link in", "param_name" => "btn_target_blank", "value" => array("Same window" => "", "New window" => "true"), "description" => "", "dependency" => array('element' => "use_btn", 'not_empty' => true)), array("type" => "dropdown", "class" => "", "heading" => "Button Size", "param_name" => "btn_size", "value" => array("Small button" => "small", "Medium button" => "medium", "Big button" => "big"), "description" => "", "dependency" => array('element' => "use_btn", 'not_empty' => true)), array("type" => "dropdown", "class" => "", "heading" => "Button Style", "param_name" => "btn_style", "value" => array("Fill" => "", "Outline" => "outline"), "description" => "", "dependency" => array('element' => "use_btn", 'not_empty' => true)), array("type" => "dropdown", "class" => "", "heading" => "Button color", "param_name" => "btn_color", "value" => array("Accent" => "accent", "Black" => "black", "White" => "white"), "description" => "", "dependency" => array('element' => "use_btn", 'not_empty' => true))), "description" => "Iconboxes with different animations"));
// Image shortcode
vc_map(array("name" => "Image", "base" => "thb_image", "icon" => "thb_vc_ico_image", "class" => "thb_vc_sc_image", "category" => "by Fuel Themes", "params" => array(array("type" => "attach_image", "class" => "", "heading" => "Select Image", "param_name" => "image", "description" => ""), array("type" => "dropdown", "class" => "", "heading" => "Animation", "param_name" => "animation", "value" => array("None" => "", "Left" => "animation right-to-left", "Right" => "animation left-to-right", "Top" => "animation bottom-to-top", "Bottom" => "animation top-to-bottom", "Scale" => "animation scale", "Fade" => "animation fade-in"), "description" => ""), array("type" => "textfield", "heading" => "Image size", "param_name" => "img_size", "description" => "Enter image size. Example: thumbnail, medium, large, full or other sizes defined by current theme. Alternatively enter image size in pixels: 200x100 (Width x Height). Leave empty to use 'thumbnail' size."), array("type" => "dropdown", "heading" => "Image alignment", "param_name" => "alignment", "value" => array("Align left" => "left", "Align right" => "right", "Align center" => "center"), "description" => "Select image alignment."), array("type" => "checkbox", "class" => "", "heading" => "Link to Full-Width Image?", "param_name" => "lightbox", "value" => array("" => "true")), array("type" => "vc_link", "heading" => "Image link", "param_name" => "img_link", "description" => "Enter url if you want this image to have link.", "dependency" => array('element' => "lightbox", 'is_empty' => true))), "description" => "Add an animated image"));
// Image Slider
function nectar_custom_maps()
{
    $vc_is_wp_version_3_6_more = version_compare(preg_replace('/^([\\d\\.]+)(\\-.*$)/', '$1', get_bloginfo('version')), '3.6') >= 0;
    global $options;
    $is_admin = is_admin();
    vc_map(array('name' => __('Row', 'js_composer'), 'base' => 'vc_row', 'is_container' => true, 'icon' => 'icon-wpb-row', 'show_settings_on_create' => false, 'category' => __('Structure', 'js_composer'), 'description' => __('Place content elements inside the row', 'js_composer'), 'params' => array(array("type" => "dropdown", "class" => "", "heading" => "Type", "param_name" => "type", 'save_always' => true, "value" => array("In Container" => "in_container", "Full Width Background" => "full_width_background", "Full Width Content" => "full_width_content")), array("type" => "checkbox", "class" => "", "heading" => "Vertically Center Columns", "value" => array("Make all columns in this row vertically centered?" => "true"), "param_name" => "vertically_center_columns", "description" => "", "dependency" => array('element' => "type", 'value' => array('full_width_content'))), array("type" => "fws_image", "class" => "", "heading" => "Background Image", "param_name" => "bg_image", "value" => "", "description" => "", "dependency" => array('element' => "mouse_based_parallax_bg", 'is_empty' => true)), array("type" => "checkbox", "class" => "", "heading" => "Background Image Mobile Hidden", "param_name" => "background_image_mobile_hidden", "value" => array("Hide Background Image on Mobile Views?" => "true"), "description" => "Use this to remove your row BG image from displaying on mobile devices", "dependency" => array('element' => "bg_image", 'not_empty' => true)), array("type" => "dropdown", "class" => "", 'save_always' => true, "heading" => "Background Position", "param_name" => "bg_position", "value" => array("Left Top" => "left top", "Left Center" => "left center", "Left Bottom" => "left bottom", "Center Top" => "center top", "Center Center" => "center center", "Center Bottom" => "center bottom", "Right Top" => "right top", "Right Center" => "right center", "Right Bottom" => "right bottom"), "dependency" => array('element' => "bg_image", 'not_empty' => true)), array("type" => "dropdown", "class" => "", "heading" => "Background Repeat", "param_name" => "bg_repeat", 'save_always' => true, "value" => array("No Repeat" => "no-repeat", "Repeat" => "repeat"), "dependency" => array('element' => "bg_image", 'not_empty' => true)), array("type" => "checkbox", "class" => "", "heading" => "Parallax Background", "value" => array("Enable Parallax Background?" => "true"), "param_name" => "parallax_bg", "description" => "", "dependency" => array('element' => "bg_image", 'not_empty' => true)), array("type" => "dropdown", "class" => "", "description" => "The faster you choose, the closer your BG will match the users scroll speed", "heading" => "Parallax Background Speed", "param_name" => "parallax_bg_speed", 'save_always' => true, "value" => array("Slow" => "slow", "Medium" => "medium", "Fast" => "fast", "Fixed" => "fixed"), "dependency" => array('element' => "parallax_bg", 'not_empty' => true)), array("type" => "colorpicker", "class" => "", "heading" => "Background Color", "param_name" => "bg_color", "value" => "", "description" => ""), array("type" => "checkbox", "class" => "", "heading" => "Mouse Based Parallax Scene", "value" => array("Enable Mouse Based Parallax BG?" => "true"), "param_name" => "mouse_based_parallax_bg", "description" => ""), array("type" => "dropdown", "heading" => __("Scene Positioning", "js_composer"), "param_name" => "scene_position", 'save_always' => true, "value" => array("Center" => "center", "Top" => "top", "Bottom" => "bottom"), "description" => __("Select your desired scene alignment within your row", "js_composer")), array("type" => "textfield", "class" => "", "heading" => "Scene Parallax Overall Strength", "value" => "", "param_name" => "mouse_sensitivity", "description" => "Enter a number between 1 and 25 that will effect the overall strength of the parallax movement within the entire scene - the default is 10."), array("type" => "fws_image", "class" => "", "heading" => "Scene Layer One", "param_name" => "layer_one_image", "value" => "", "description" => "Please upload all of your layers at the same dimensions to ensure accurate placement."), array("type" => "textfield", "class" => "", "heading" => "Layer One Strength", "value" => "", "param_name" => "layer_one_strength", "description" => "Enter a number <strong>between 0 and 1</strong> that will determine the strength this layer responds to mouse movement. <br/><br/>By default each layer will increment by .2"), array("type" => "fws_image", "class" => "", "heading" => "Scene Layer Two", "param_name" => "layer_two_image", "value" => "", "description" => ""), array("type" => "textfield", "class" => "", "heading" => "Layer Two Strength", "value" => "", "param_name" => "layer_two_strength", "description" => "See the description on \"Layer One Strength\" for guidelines on this property."), array("type" => "fws_image", "class" => "", "heading" => "Scene Layer Three", "param_name" => "layer_three_image", "value" => "", "description" => ""), array("type" => "textfield", "class" => "", "heading" => "Layer Three Strength", "value" => "", "param_name" => "layer_three_strength", "description" => "See the description on \"Layer One Strength\" for guidelines on this property."), array("type" => "fws_image", "class" => "", "heading" => "Scene Layer Four", "param_name" => "layer_four_image", "value" => "", "description" => ""), array("type" => "textfield", "class" => "", "heading" => "Layer Four Strength", "value" => "", "param_name" => "layer_four_strength", "description" => "See the description on \"Layer One Strength\" for guidelines on this property."), array("type" => "fws_image", "class" => "", "heading" => "Scene Layer Five", "param_name" => "layer_five_image", "value" => "", "description" => ""), array("type" => "textfield", "class" => "", "heading" => "Layer Five Strength", "value" => "", "param_name" => "layer_five_strength", "description" => "See the description on \"Layer One Strength\" for guidelines on this property."), array("type" => "checkbox", "class" => "", "heading" => "Video Background", "value" => array("Enable Video Background?" => "use_video"), "param_name" => "video_bg", "description" => ""), array("type" => "checkbox", "class" => "", "heading" => "Video Color Overlay", "value" => array("Enable a color overlay ontop of your video?" => "true"), "param_name" => "enable_video_color_overlay", "description" => "", "dependency" => array('element' => "video_bg", 'value' => array('use_video'))), array("type" => "colorpicker", "class" => "", "heading" => "Overlay Color", "param_name" => "video_overlay_color", "value" => "", "description" => "", "dependency" => array('element' => "enable_video_color_overlay", 'value' => array('true'))), array("type" => "textfield", "class" => "", "heading" => "WebM File URL", "value" => "", "param_name" => "video_webm", "description" => "You must include this format & the mp4 format to render your video with cross browser compatibility. OGV is optional.\r\n\t\t\tVideo must be in a 16:9 aspect ratio.", "dependency" => array('element' => "video_bg", 'value' => array('use_video'))), array("type" => "textfield", "class" => "", "heading" => "MP4 File URL", "value" => "", "param_name" => "video_mp4", "description" => "Enter the URL for your mp4 video file here", "dependency" => array('element' => "video_bg", 'value' => array('use_video'))), array("type" => "textfield", "class" => "", "heading" => "OGV File URL", "value" => "", "param_name" => "video_ogv", "description" => "Enter the URL for your ogv video file here", "dependency" => array('element' => "video_bg", 'value' => array('use_video'))), array("type" => "attach_image", "class" => "", "heading" => "Video Preview Image", "value" => "", "param_name" => "video_image", "description" => "", "dependency" => array('element' => "video_bg", 'value' => array('use_video'))), array("type" => "dropdown", "class" => "", "heading" => "Text Color", "param_name" => "text_color", "value" => array("Dark" => "dark", "Light" => "light", "Custom" => "custom"), 'save_always' => true), array("type" => "colorpicker", "class" => "", "heading" => "Custom Text Color", "param_name" => "custom_text_color", "value" => "", "description" => "", "dependency" => array('element' => "text_color", 'value' => array('custom'))), array("type" => "dropdown", "class" => "", 'save_always' => true, "heading" => "Text Alignment", "param_name" => "text_align", "value" => array("Left" => "left", "Center" => "center", "Right" => "right")), array("type" => "textfield", "class" => "", "heading" => "Padding Top", "value" => "", "param_name" => "top_padding", "description" => "Don't include \"px\" in your string. e.g \"40\" - However you can also use a percent value in which case a \"%\" would be needed at the end e.g. \"10%\""), array("type" => "textfield", "class" => "", "heading" => "Padding Bottom", "value" => "", "param_name" => "bottom_padding", "description" => "Don't include \"px\" in your string. e.g \"40\" - However you can also use a percent value in which case a \"%\" would be needed at the end e.g. \"10%\""), array("type" => "textfield", "class" => "", "heading" => "Extra Class Name", "param_name" => "class", "value" => ""), array("type" => "textfield", "class" => "", "heading" => "Row ID", "param_name" => "id", "value" => "", "description" => "Use this to option to add an ID onto your row. This can then be used to target the row with CSS or as an anchor point to scroll to when the relevant link is clicked."), array("type" => "checkbox", "class" => "", "group" => "Color Overlay", "heading" => "Enable Gradient?", "value" => array("Yes, please" => "true"), "param_name" => "enable_gradient", "description" => ""), array("type" => "colorpicker", "class" => "", "heading" => "Color Overlay", "param_name" => "color_overlay", "value" => "", "group" => "Color Overlay", "description" => ""), array("type" => "colorpicker", "class" => "", "heading" => "Color Overlay 2", "param_name" => "color_overlay_2", "value" => "", "group" => "Color Overlay", "description" => "", "dependency" => array('element' => "enable_gradient", 'not_empty' => true)), array("type" => "dropdown", "class" => "", 'save_always' => true, "heading" => "Gradient Direction", "param_name" => "gradient_direction", "group" => "Color Overlay", "value" => array("Left to Right" => "left_to_right", "Left Top to Right Bottom" => "left_t_to_right_b", "Left Bottom to Right Top" => "left_b_to_right_t", "Bottom to Top" => 'top_to_bottom'), "dependency" => array('element' => "enable_gradient", 'not_empty' => true)), array("type" => "dropdown", "class" => "", 'save_always' => true, "group" => "Color Overlay", "heading" => "Overlay Strength", "param_name" => "overlay_strength", "value" => array("Light" => "0.3", "Medium" => "0.5", "Heavy" => "0.8", "Very Heavy" => "0.95", "Solid" => '1'))), 'js_view' => 'VcRowView'));
    if (!empty($options['header-inherit-row-color']) && $options['header-inherit-row-color'] == '1') {
        vc_add_param("vc_row", array("type" => "checkbox", "class" => "", "heading" => "Exclude Row From Header Color Inheritance", "value" => array("Exclude this row from passing its background/text colors to the header" => "true"), "param_name" => "exclude_row_header_color_inherit", "description" => ""));
    }
    global $vc_column_width_list;
    $vc_column_width_list = array(__('1 column - 1/12', 'js_composer') => '1/12', __('2 columns - 1/6', 'js_composer') => '1/6', __('3 columns - 1/4', 'js_composer') => '1/4', __('4 columns - 1/3', 'js_composer') => '1/3', __('5 columns - 5/12', 'js_composer') => '5/12', __('6 columns - 1/2', 'js_composer') => '1/2', __('7 columns - 7/12', 'js_composer') => '7/12', __('8 columns - 2/3', 'js_composer') => '2/3', __('9 columns - 3/4', 'js_composer') => '3/4', __('10 columns - 5/6', 'js_composer') => '5/6', __('11 columns - 11/12', 'js_composer') => '11/12', __('12 columns - 1/1', 'js_composer') => '1/1');
    vc_map(array('name' => __('Column', 'js_composer'), 'base' => 'vc_column', 'is_container' => true, 'content_element' => false, 'params' => array(array("type" => "checkbox", "class" => "", "heading" => "Enable Animation", "value" => array("Enable Column Animation?" => "true"), "param_name" => "enable_animation", "description" => ""), array("type" => "dropdown", "class" => "", "heading" => "Animation", "param_name" => "animation", 'save_always' => true, "value" => array("None" => "none", "Fade In" => "fade-in", "Fade In From Left" => "fade-in-from-left", "Fade In Right" => "fade-in-from-right", "Fade In From Bottom" => "fade-in-from-bottom", "Grow In" => "grow-in", "Flip In" => "flip-in", "Reveal From Right" => "reveal-from-right", "Reveal From Bottom" => "reveal-from-bottom", "Reveal From Left" => "reveal-from-left", "Reveal From Top" => "reveal-from-top"), "dependency" => array('element' => "enable_animation", 'not_empty' => true)), array("type" => "textfield", "class" => "", "heading" => "Animation Delay", "param_name" => "delay", "admin_label" => false, "description" => "", "dependency" => array('element' => "enable_animation", 'not_empty' => true)), array("type" => "checkbox", "class" => "", "heading" => "Boxed Column", "value" => array("Boxed Style" => "true"), "param_name" => "boxed", "description" => ""), array("type" => "checkbox", "class" => "", "heading" => "Centered Content", "value" => array("Centered Content Alignment" => "true"), "param_name" => "centered_text", "description" => ""), array("type" => "dropdown", "class" => "", 'save_always' => true, "heading" => "Column Padding", "param_name" => "column_padding", "value" => array("None" => "no-extra-padding", "1%" => "padding-1-percent", "2%" => "padding-2-percent", "3%" => "padding-3-percent", "4%" => "padding-4-percent", "5%" => "padding-5-percent", "6%" => "padding-6-percent", "7%" => "padding-7-percent", "8%" => "padding-8-percent", "9%" => "padding-9-percent", "10%" => "padding-10-percent", "11%" => "padding-11-percent", "12%" => "padding-12-percent", "13%" => "padding-13-percent", "14%" => "padding-14-percent", "15%" => "padding-15-percent"), "description" => "When using the full width content row type or providing a background color/image for the column, you have the option to define the amount of padding your column will receive."), array("type" => "dropdown", "class" => "", "heading" => "Column Padding Position", "param_name" => "column_padding_position", 'save_always' => true, "value" => array("All Sides" => 'all', 'Top' => "top", 'Right' => 'right', 'Left' => 'left', 'Bottom' => 'bottom', 'Left & Right' => 'left-right', 'Top & Right' => 'top-right', 'Top & Left' => 'top-left', 'Top & Bottom' => 'top-bottom', 'Bottom & Right' => 'bottom-right', 'Bottom & Left' => 'bottom-left'), "description" => "Use this to fine tune where the column padding will take effect"), array("type" => "colorpicker", "class" => "", "heading" => "Background Color", "param_name" => "background_color", "value" => "", "description" => ""), array("type" => "dropdown", "class" => "", 'save_always' => true, "heading" => "Background Color Opacity", "param_name" => "background_color_opacity", "value" => array("1" => "1", "0.9" => "0.9", "0.8" => "0.8", "0.7" => "0.7", "0.6" => "0.6", "0.5" => "0.5", "0.4" => "0.4", "0.3" => "0.3", "0.2" => "0.2", "0.1" => "0.1")), array("type" => "colorpicker", "class" => "", "heading" => "Background Color Hover", "param_name" => "background_color_hover", "value" => "", "description" => ""), array("type" => "dropdown", "class" => "", 'save_always' => true, "heading" => "Background Hover Color Opacity", "param_name" => "background_hover_color_opacity", "value" => array("1" => "1", "0.9" => "0.9", "0.8" => "0.8", "0.7" => "0.7", "0.6" => "0.6", "0.5" => "0.5", "0.4" => "0.4", "0.3" => "0.3", "0.2" => "0.2", "0.1" => "0.1")), array("type" => "fws_image", "class" => "", "heading" => "Background Image", "param_name" => "background_image", "value" => "", "description" => ""), array("type" => "checkbox", "class" => "", "heading" => "Scale Background Image To Column", "value" => array("Enable" => "true"), "param_name" => "enable_bg_scale", "description" => "", "dependency" => array('element' => "background_image", 'not_empty' => true)), array("type" => "colorpicker", "class" => "", "heading" => "Font Color", "param_name" => "font_color", "value" => "", "description" => ""), array("type" => "textfield", "class" => "", "heading" => "Column Link", "param_name" => "column_link", "admin_label" => false, "description" => "If you wish for this column to link somewhere, enter the URL in here"), array("type" => "textfield", "class" => "", "heading" => "Margin Top", "value" => "", "param_name" => "top_margin", "description" => "Don't include \"px\" in your string. e.g \"40\" - However you can also use a percent value in which case a \"%\" would be needed at the end e.g. \"10%\". Negative Values are also accepted."), array("type" => "textfield", "class" => "", "heading" => "Margin Bottom", "value" => "", "param_name" => "bottom_margin", "description" => "Don't include \"px\" in your string. e.g \"40\" - However you can also use a percent value in which case a \"%\" would be needed at the end e.g. \"10%\". Negative Values are also accepted."), array("type" => "textfield", "class" => "", "heading" => "Extra Class Name", "param_name" => "el_class", "value" => ""), array('type' => 'dropdown', 'save_always' => true, 'heading' => __('Width', 'js_composer'), 'param_name' => 'width', 'value' => $vc_column_width_list, 'group' => __('Responsive Options', 'js_composer'), 'description' => __('Select column width.', 'js_composer'), 'std' => '1/1'), array('type' => 'column_offset', 'heading' => __('Responsiveness', 'js_composer'), 'param_name' => 'offset', 'group' => __('Responsive Options', 'js_composer'), 'description' => __('Adjust column for different screen sizes. Control width, offset and visibility settings.', 'js_composer'))), 'js_view' => 'VcColumnView'));
    vc_map(array("name" => __("Column", "js_composer"), "base" => "vc_column_inner", "class" => "", "icon" => "", "wrapper_class" => "", "controls" => "full", "allowed_container_element" => false, "content_element" => false, "is_container" => true, "params" => array(array("type" => "checkbox", "class" => "", "heading" => "Enable Animation", "value" => array("Enable Column Animation?" => "true"), "param_name" => "enable_animation", "description" => ""), array("type" => "dropdown", "class" => "", 'save_always' => true, "heading" => "Animation", "param_name" => "animation", "value" => array("None" => "none", "Fade In" => "fade-in", "Fade In From Left" => "fade-in-from-left", "Fade In Right" => "fade-in-from-right", "Fade In From Bottom" => "fade-in-from-bottom", "Grow In" => "grow-in", "Flip In" => "flip-in"), "dependency" => array('element' => "enable_animation", 'not_empty' => true)), array("type" => "textfield", "class" => "", "heading" => "Animation Delay", "param_name" => "delay", "admin_label" => false, "description" => "", "dependency" => array('element' => "enable_animation", 'not_empty' => true)), array("type" => "checkbox", "class" => "", "heading" => "Boxed Column", "value" => array("Boxed Style" => "true"), "param_name" => "boxed", "description" => ""), array("type" => "fws_image", "class" => "", "heading" => "Background Image", "param_name" => "background_image", "value" => "", "description" => ""), array("type" => "dropdown", "class" => "", 'save_always' => true, "heading" => "Column Padding", "param_name" => "column_padding", "value" => array("None" => "no-extra-padding", "1%" => "padding-1-percent", "2%" => "padding-2-percent", "3%" => "padding-3-percent", "4%" => "padding-4-percent", "5%" => "padding-5-percent", "6%" => "padding-6-percent", "7%" => "padding-7-percent", "8%" => "padding-8-percent", "9%" => "padding-9-percent", "10%" => "padding-10-percent"), "description" => "When using the full width content row type or providing a background color/image for the column, you have the option to define the amount of padding your column will receive."), array("type" => "dropdown", "class" => "", 'save_always' => true, "heading" => "Column Padding Position", "param_name" => "column_padding_position", "value" => array("All Sides" => 'all', 'Top' => "top", 'Right' => 'right', 'Left' => 'left', 'Bottom' => 'bottom', 'Left & Right' => 'left-right', 'Top & Right' => 'top-right', 'Top & Left' => 'top-left', 'Top & Bottom' => 'top-bottom', 'Bottom & Right' => 'bottom-right', 'Bottom & Left' => 'bottom-left'), "description" => "Use this to fine tune where the column padding will take effect"), array("type" => "colorpicker", "class" => "", "heading" => "Background Color", "param_name" => "background_color", "value" => "", "description" => ""), array("type" => "dropdown", "class" => "", 'save_always' => true, "heading" => "Background Color Opacity", "param_name" => "background_color_opacity", "value" => array("1" => "1", "0.9" => "0.9", "0.8" => "0.8", "0.7" => "0.7", "0.6" => "0.6", "0.5" => "0.5", "0.4" => "0.4", "0.3" => "0.3", "0.2" => "0.2", "0.1" => "0.1")), array("type" => "checkbox", "class" => "", "heading" => "Centered Content", "value" => array("Centered Content Alignment" => "true"), "param_name" => "centered_text", "description" => ""), array("type" => "textfield", "class" => "", "heading" => "Column Link", "param_name" => "column_link", "admin_label" => false, "description" => "If you wish for this column to link somewhere, enter the URL in here"), array("type" => "textfield", "class" => "", "heading" => "Extra Class Name", "param_name" => "el_class", "value" => ""), array('type' => 'dropdown', 'save_always' => true, 'heading' => __('Width', 'js_composer'), 'param_name' => 'width', 'value' => $vc_column_width_list, 'group' => __('Responsive Options', 'js_composer'), 'description' => __('Select column width.', 'js_composer'), 'std' => '1/1'), array('type' => 'column_offset', 'heading' => __('Responsiveness', 'js_composer'), 'param_name' => 'offset', 'group' => __('Responsive Options', 'js_composer'), 'description' => __('Adjust column for different screen sizes. Control width, offset and visibility settings.', 'js_composer'))), "js_view" => 'VcColumnView'));
    //inner row class fix
    vc_remove_param("vc_row_inner", "el_class");
    vc_add_param("vc_row_inner", array("type" => "textfield", "class" => "", "heading" => "Extra Class Name", "param_name" => "class", "value" => ""));
    vc_add_param("vc_row_inner", array("type" => "textfield", "class" => "", "heading" => "Padding Top", "value" => "", "param_name" => "top_padding", "description" => "Don't include \"px\" in your string. e.g \"40\" - However you can also use a percent value in which case a \"%\" would be needed at the end e.g. \"10%\""));
    vc_add_param("vc_row_inner", array("type" => "textfield", "class" => "", "heading" => "Padding Bottom", "value" => "", "param_name" => "bottom_padding", "description" => "Don't include \"px\" in your string. e.g \"40\" - However you can also use a percent value in which case a \"%\" would be needed at the end e.g. \"10%\""));
    if (nectar_has_shortcode('full_width_section')) {
        require_once vc_path_dir('SHORTCODES_DIR', 'vc-row.php');
        class WPBakeryShortCode_Full_Width_Section extends WPBakeryShortCode_VC_Row
        {
            public function contentAdmin($atts, $content = null)
            {
                $width = $el_class = '';
                extract(shortcode_atts($this->predefined_atts, $atts));
                $output = '';
                $column_controls = $this->getColumnControls($this->settings('controls'));
                for ($i = 0; $i < count($width); $i++) {
                    $output .= '<div' . $this->customAdminBockParams() . ' data-element_type="vc_row" class="' . $this->settings['base'] . ' wpb_vc_row wpb_sortable">';
                    $output .= str_replace("%column_size%", 1, $column_controls);
                    $output .= '<div class="wpb_element_wrapper">';
                    $output .= '<div class="vc_row-fluid vc_row wpb_row_container vc_container_for_children">';
                    if ($content == '' && !empty($this->settings["default_content_in_template"])) {
                        $output .= do_shortcode(shortcode_unautop($this->settings["default_content_in_template"]));
                    } else {
                        $output .= do_shortcode(shortcode_unautop($content));
                    }
                    $output .= '</div>';
                    if (isset($this->settings['params'])) {
                        $inner = '';
                        foreach ($this->settings['params'] as $param) {
                            $param_value = isset(${$param}['param_name']) ? ${$param}['param_name'] : '';
                            if (is_array($param_value)) {
                                // Get first element from the array
                                reset($param_value);
                                $first_key = key($param_value);
                                $param_value = $param_value[$first_key];
                            }
                            $inner .= $this->singleParamHtmlHolder($param, $param_value);
                        }
                        $output .= $inner;
                    }
                    $output .= '</div>';
                    $output .= '</div>';
                }
                return $output;
            }
        }
        vc_map(array("name" => "Full Width Section", "base" => "full_width_section", "class" => "wpb_vc_row", "is_container" => true, "icon" => "icon-wpb-row", "show_settings_on_create" => false, "category" => __('Nectar Elements', 'js_composer'), 'js_view' => 'VcRowView', "content_element" => false, 'default_content' => '[vc_column width="1/1"]%content%[/vc_column]', 'params' => array(array("type" => "dropdown", "class" => "", "heading" => "Type", "param_name" => "type", "value" => array("Full Width Background" => "full_width_background", "Full Width Content" => "full_width_content", "In Container" => "in_container")))));
        vc_add_param("full_width_section", array("type" => "checkbox", "class" => "", "heading" => "Vetical Align Columns", "value" => array("Make all columns in this row vertically aligned?" => "true"), "param_name" => "vertically_center_columns", "description" => "", "dependency" => array('element' => "type", 'value' => array('full_width_content'))));
        vc_add_param("full_width_section", array("type" => "fws_image", "class" => "", "heading" => "Background Image", "param_name" => "image_url", "value" => "", "description" => ""));
        vc_add_param("full_width_section", array("type" => "dropdown", "class" => "", "heading" => "Background Position", "param_name" => "bg_pos", "value" => array("Left Top" => "Left Top", "Left Center" => "Left Center", "Left Bottom" => "Left Bottom", "Center Top" => "Center Top", "Center Center" => "Center Center", "Center Bottom" => "Center Bottom", "Right Top" => "Right Top", "Right Center" => "Right Center", "Right Bottom" => "Right Bottom"), "dependency" => array('element' => "image_url", 'not_empty' => true)));
        vc_add_param("full_width_section", array("type" => "dropdown", "class" => "", "heading" => "Background Repeat", "param_name" => "bg_repeat", "value" => array("No Repeat" => "No-Repeat", "Repeat" => "Repeat"), "dependency" => array('element' => "image_url", 'not_empty' => true)));
        vc_add_param("full_width_section", array("type" => "checkbox", "class" => "", "heading" => "Parallax Background", "value" => array("Enable Parallax Background?" => "true"), "param_name" => "parallax_bg", "description" => "", "dependency" => array('element' => "image_url", 'not_empty' => true)));
        vc_add_param("full_width_section", array("type" => "colorpicker", "class" => "", "heading" => "Background Color", "param_name" => "background_color", "value" => "", "description" => ""));
        if (!empty($options['header-inherit-row-color']) && $options['header-inherit-row-color'] == '1') {
            vc_add_param("full_width_section", array("type" => "checkbox", "class" => "", "heading" => "Exclude Row From Header Color Inheritance", "value" => array("Exclude this row from passing its background/text colors to the header" => "true"), "param_name" => "exclude_row_header_color_inherit", "description" => ""));
        }
        vc_add_param("full_width_section", array("type" => "checkbox", "class" => "", "heading" => "Video Background", "value" => array("Enable Video Background?" => "use_video"), "param_name" => "video_bg", "description" => ""));
        vc_add_param("full_width_section", array("type" => "checkbox", "class" => "", "heading" => "Video Color Overlay", "value" => array("Enable a color overlay ontop of your video?" => "true"), "param_name" => "enable_video_color_overlay", "description" => "", "dependency" => array('element' => "video_bg", 'value' => array('use_video'))));
        vc_add_param("full_width_section", array("type" => "colorpicker", "class" => "", "heading" => "Overlay Color", "param_name" => "video_overlay_color", "value" => "", "description" => "", "dependency" => array('element' => "enable_video_color_overlay", 'value' => array('true'))));
        vc_add_param("full_width_section", array("type" => "textfield", "class" => "", "heading" => "WebM File URL", "value" => "", "param_name" => "video_webm", "description" => "You must include this format & the mp4 format to render your video with cross browser compatibility. OGV is optional.\r\n\t\tVideo must be in a 16:9 aspect ratio.", "dependency" => array('element' => "video_bg", 'value' => array('use_video'))));
        vc_add_param("full_width_section", array("type" => "textfield", "class" => "", "heading" => "MP4 File URL", "value" => "", "param_name" => "video_mp4", "description" => "Enter the URL for your mp4 video file here", "dependency" => array('element' => "video_bg", 'value' => array('use_video'))));
        vc_add_param("full_width_section", array("type" => "textfield", "class" => "", "heading" => "OGV File URL", "value" => "", "param_name" => "video_ogv", "description" => "Enter the URL for your ogv video file here", "dependency" => array('element' => "video_bg", 'value' => array('use_video'))));
        vc_add_param("full_width_section", array("type" => "attach_image", "class" => "", "heading" => "Video Preview Image", "value" => "", "param_name" => "video_image", "description" => "", "dependency" => array('element' => "video_bg", 'value' => array('use_video'))));
        vc_add_param("full_width_section", array("type" => "dropdown", "class" => "", 'save_always' => true, "heading" => "Text Color", "param_name" => "text_color", "value" => array("Light" => "light", "Dark" => "dark", "Custom" => "custom")));
        vc_add_param("full_width_section", array("type" => "colorpicker", "class" => "", "heading" => "Custom Text Color", "param_name" => "custom_text_color", "value" => "", "description" => "", "dependency" => array('element' => "text_color", 'value' => array('custom'))));
        vc_add_param("full_width_section", array("type" => "dropdown", "class" => "", "heading" => "Text Alignment", "param_name" => "text_align", "value" => array("Left" => "left", "Center" => "center", "Right" => "right")));
        vc_add_param("full_width_section", array("type" => "textfield", "class" => "", "heading" => "Padding Top", "value" => "", "param_name" => "top_padding", "description" => ""));
        vc_add_param("full_width_section", array("type" => "textfield", "class" => "", "heading" => "Padding Bottom", "value" => "", "param_name" => "bottom_padding", "description" => ""));
        vc_add_param("full_width_section", array("type" => "textfield", "class" => "", "heading" => "Extra Class Name", "param_name" => "class", "value" => ""));
    }
    // Video
    vc_remove_param("vc_video", "title");
    // Text block
    vc_remove_param("vc_column_text", "css_animation");
    if (nectar_has_shortcode('nectar_slider')) {
        // Nectar Slider
        $slider_locations = $is_admin ? get_terms('slider-locations') : array('All' => 'all');
        $locations = array();
        if ($is_admin) {
            foreach ($slider_locations as $location) {
                $locations[$location->name] = $location->name;
            }
        } else {
            $locations['All'] = 'all';
        }
        if (empty($locations)) {
            $location_desc = '<div class="alert">' . __('You currently don\'t have any Slider Locations setup. Please create some and add assign slides to them before using this!', NECTAR_THEME_NAME) . '<br/><br/>
			<a href="' . admin_url('edit.php?post_type=nectar_slider') . '">' . __('Link to Nectar Slider', NECTAR_THEME_NAME) . '</a>
			</div>';
        } else {
            $location_desc = '';
        }
        vc_map(array("name" => __("Nectar Slider", "js_composer"), "base" => "nectar_slider", "icon" => "icon-wpb-nectar-slider", "category" => __('Nectar Elements', 'js_composer'), "description" => __('The jaw-dropping slider by ThemeNectar', 'js_composer'), "weight" => 10, "params" => array(array("type" => "dropdown", "heading" => __("Select Slider", "js_composer"), "admin_label" => true, "param_name" => "location", "value" => $locations, "description" => $location_desc, 'save_always' => true), array("type" => "textfield", "heading" => __("Slider Height", "js_composer"), "param_name" => "slider_height", "admin_label" => true, "description" => __("Don't include \"px\" in your string. e.g. 650", "js_composer")), array("type" => 'checkbox', "heading" => __("Flexible Slider Height", "js_composer"), "param_name" => "flexible_slider_height", "description" => __("Would you like the height of your slider to constantly scale in porportion to the screen size?", "js_composer"), "value" => array(__("Yes, please", "js_composer") => 'true')), array("type" => "textfield", "heading" => __("Minimum Slider Height", "js_composer"), "param_name" => "min_slider_height", "dependency" => array('element' => "flexible_slider_height", 'not_empty' => true), "description" => __("When using the flexible height option the slider can become very short on mobile devices - use this to ensure it stays tall enough for your content Don't include \"px\" in your string. e.g. 250", "js_composer")), array("type" => 'checkbox', "heading" => __("Display Full Width?", "js_composer"), "param_name" => "full_width", "description" => __("Would you like this slider to display the full width of the page?", "js_composer"), "value" => array(__("Yes, please", "js_composer") => 'true')), array("type" => 'checkbox', "heading" => __("Fullscreen Slider?", "js_composer"), "param_name" => "fullscreen", "description" => __("This will cause your slider to resize to always fill the users screen size", "js_composer"), "value" => array(__("Yes, please", "js_composer") => 'true'), "dependency" => array('element' => "full_width", 'not_empty' => true)), array("type" => 'checkbox', "heading" => __("Display Arrow Navigation?", "js_composer"), "param_name" => "arrow_navigation", "description" => __("Would you like this slider to display arrows on the right and left sides?", "js_composer"), "value" => array(__("Yes, please", "js_composer") => 'true'), "dependency" => array('element' => "overall_style", 'value' => 'classic')), array("type" => "dropdown", "heading" => __("Slider Next/Prev Button Styling", "js_composer"), "param_name" => "slider_button_styling", "dependency" => array('element' => "arrow_navigation", 'not_empty' => true), "value" => array('Standard With Slide Count On Hover' => 'btn_with_count', 'Next/Prev Slide Preview On Hover' => 'btn_with_preview'), "description" => 'Please select your slider button styling here'), array("type" => "dropdown", "heading" => __("Overall Style", "js_composer"), "param_name" => "overall_style", "value" => array('Classic' => 'classic', 'Directional Based Content Movement' => 'directional'), 'save_always' => true, "description" => 'Please select your overall style here - note that some styles will remove the possibility to control certain options.'), array("type" => 'checkbox', "heading" => __("Display Bullet Navigation?", "js_composer"), "param_name" => "bullet_navigation", "description" => __("Would you like this slider to display bullets on the bottom?", "js_composer"), "value" => array(__("Yes, please", "js_composer") => 'true'), "dependency" => array('element' => "overall_style", 'value' => 'classic')), array("type" => "dropdown", "heading" => __("Bullet Navigation Style", "js_composer"), "param_name" => "bullet_navigation_style", "value" => array('See Through & Solid On Active' => 'see_through', 'Solid & Scale On Active' => 'scale'), "description" => 'Please select your overall bullet navigation style here.', "dependency" => array('element' => "bullet_navigation", 'not_empty' => true)), array("type" => 'checkbox', "heading" => __("Enable Swipe on Desktop?", "js_composer"), "param_name" => "desktop_swipe", "description" => __("Would you like this slider to have swipe interaction on desktop?", "js_composer"), "value" => array(__("Yes, please", "js_composer") => 'true'), "dependency" => array('element' => "overall_style", 'value' => 'classic')), array("type" => 'checkbox', "heading" => __("Parallax Slider?", "js_composer"), "param_name" => "parallax", "description" => __("will only activate if the slider is the <b>top level element</b> in the page", "js_composer"), "value" => array(__("Yes, please", "js_composer") => 'true')), array("type" => 'checkbox', "heading" => __("Loop Slider?", "js_composer"), "param_name" => "loop", "description" => __("Would you like your slider to loop infinitely?", "js_composer"), "value" => array(__("Yes, please", "js_composer") => 'true'), "dependency" => array('element' => "overall_style", 'value' => 'classic')), array("type" => "dropdown", "heading" => __("Slider Transition", "js_composer"), "param_name" => "slider_transition", "value" => array('Slide' => 'slide', 'Fade' => 'fade'), "description" => 'Please select your slider transition here', "dependency" => array('element' => "overall_style", 'value' => 'classic'), 'save_always' => true), array("type" => "textfield", "heading" => __("Autorotate?", "js_composer"), "param_name" => "autorotate", "description" => __("If you would like this slider to autorotate, enter the rotation speed in miliseconds here. i.e 5000", "js_composer")), array("type" => "dropdown", "class" => "", "heading" => "Button Sizing", "param_name" => "button_sizing", "value" => array("Regular" => "regular", "Large" => "large", "Jumbo" => "jumbo"), 'save_always' => true, "description" => ""))));
    }
    if (nectar_has_shortcode('bar')) {
        // Horizontal progress bar shortcode
        vc_map(array("name" => "Progress Bar", "base" => "bar", "icon" => "icon-wpb-progress_bar", "allowed_container_element" => 'vc_row', "category" => __('Nectar Elements', 'js_composer'), "description" => __('Include a horizontal progress bar', 'js_composer'), "params" => array(array("type" => "textfield", "holder" => "div", "class" => "", "heading" => "Title", "param_name" => "title", "description" => ""), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => "Percentage", "param_name" => "percent", "description" => "Don't include \"%\" in your string - e.g \"70\""), array("type" => "dropdown", "holder" => "div", "class" => "", 'save_always' => true, "heading" => "Bar Color", "param_name" => "color", "value" => array("Accent-Color" => "Accent-Color", "Extra-Color-1" => "Extra-Color-1", "Extra-Color-2" => "Extra-Color-2", "Extra-Color-3" => "Extra-Color-3"), "description" => ""))));
    }
    // Morphing Outline
    class WPBakeryShortCode_Morphing_Outline extends WPBakeryShortCode
    {
    }
    vc_map(array("name" => "Morphing Outline", "base" => "morphing_outline", "icon" => "icon-wpb-morphing-outline", "allowed_container_element" => 'vc_row', "category" => __('Nectar Elements', 'js_composer'), "description" => __('Wrap some text in a unqiue way to grab attention', 'js_composer'), "params" => array(array("type" => "textarea", "holder" => "div", "heading" => __("Text Content", "js_composer"), "param_name" => "content", "value" => __("", "js_composer"), "description" => __("Enter the text that will be wrapped here", "js_composer"), "admin_label" => false), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => "Border Thickness", "param_name" => "border_thickness", "description" => "Don't include \"px\" in your string - default is \"5\"", "admin_label" => false), array("type" => "colorpicker", "class" => "", "heading" => "Starting Color", "param_name" => "starting_color", "value" => "", "description" => ""), array("type" => "colorpicker", "class" => "", "heading" => "Hover Color", "param_name" => "hover_color", "value" => "", "description" => ""))));
    // Morphing Outline
    class WPBakeryShortCode_Split_Line_Heading extends WPBakeryShortCode
    {
    }
    vc_map(array("name" => "Split Line Heading", "base" => "split_line_heading", "icon" => "icon-wpb-split-line-heading", "allowed_container_element" => 'vc_row', "category" => __('Nectar Elements', 'js_composer'), "description" => __('Animated multi line heading', 'js_composer'), "params" => array(array("type" => "textarea_html", "holder" => "div", "heading" => __("Text Content", "js_composer"), "param_name" => "content", "value" => __("", "js_composer"), "description" => __("Each Line of this editor will be animated separately. Separate text with the Enter or Return key on your Keyboard.", "js_composer"), "admin_label" => false))));
    // Divider
    vc_map(array("name" => "Divider", "base" => "divider", "icon" => "icon-wpb-separator", "allowed_container_element" => 'vc_row', "category" => __('Nectar Elements', 'js_composer'), "description" => __('Create space between your content', 'js_composer'), "params" => array(array("type" => "textfield", "holder" => "div", "class" => "", "heading" => "Dividing Height", "param_name" => "custom_height", "description" => "If you would like to control the specifc number of pixels your divider is, enter it here. Don't enter \"px\", just the numnber e.g. \"20\""), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => "Line Type", 'save_always' => true, "param_name" => "line_type", "value" => array("No Line" => "No Line", "Full Width Line" => "Full Width Line", "Small Line" => "Small Line")))));
    // Single image
    vc_map(array("name" => __("Single Image", "js_composer"), "base" => "image_with_animation", "icon" => "icon-wpb-single-image", "category" => __('Nectar Elements', 'js_composer'), "description" => __('Simple image with CSS animation', 'js_composer'), "params" => array(array("type" => "fws_image", "heading" => __("Image", "js_composer"), "param_name" => "image_url", "value" => "", "description" => __("Select image from media library.", "js_composer")), array("type" => "dropdown", "heading" => __("Image Alignment", "js_composer"), 'save_always' => true, "param_name" => "alignment", "value" => array(__("Align left", "js_composer") => "", __("Align right", "js_composer") => "right", __("Align center", "js_composer") => "center"), "description" => __("Select image alignment.", "js_composer")), array("type" => "dropdown", "heading" => __("CSS Animation", "js_composer"), "param_name" => "animation", "admin_label" => true, "value" => array(__("Fade In", "js_composer") => "Fade In", __("Fade In From Left", "js_composer") => "Fade In From Left", __("Fade In From Right", "js_composer") => "Fade In From Right", __("Fade In From Bottom", "js_composer") => "Fade In From Bottom", __("Grow In", "js_composer") => "Grow In", __("Flip In", "js_composer") => "Flip In", __("None", "js_composer") => "None"), 'save_always' => true, "description" => __("Select animation type if you want this element to be animated when it enters into the browsers viewport. Note: Works only in modern browsers.", "js_composer")), array("type" => "textfield", "heading" => __("Animation Delay", "js_composer"), "param_name" => "delay", "description" => __("Enter delay (in milliseconds) if needed e.g. 150. This parameter comes in handy when creating the animate in \"one by one\" effect in horizontal columns.", "js_composer")), array("type" => 'checkbox', "heading" => __("Link to large image?", "js_composer"), "param_name" => "img_link_large", "description" => __("If selected, image will be linked to the bigger image.", "js_composer"), "value" => array(__("Yes, please", "js_composer") => 'yes')), array("type" => "textfield", "heading" => __("Image link", "js_composer"), "param_name" => "img_link", "description" => __("Enter url if you want this image to have link.", "js_composer"), "dependency" => array('element' => "img_link_large", 'is_empty' => true)), array("type" => "dropdown", "heading" => __("Link Target", "js_composer"), "param_name" => "img_link_target", "value" => array(__("Same window", "js_composer") => "_self", __("New window", "js_composer") => "_blank"), "dependency" => array('element' => "img_link", 'not_empty' => true)), array("type" => "textfield", "heading" => __("Extra class name", "js_composer"), "param_name" => "el_class", "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.", "js_composer")))));
    // Image Comparision
    class WPBakeryShortCode_Nectar_Image_Comparison extends WPBakeryShortCode
    {
    }
    vc_map(array("name" => __("Image Comparison", "js_composer"), "base" => "nectar_image_comparison", "icon" => "icon-wpb-single-image", "category" => __('Nectar Elements', 'js_composer'), "description" => __('Shows differences in two images', 'js_composer'), "params" => array(array("type" => "fws_image", "heading" => __("Image One", "js_composer"), "param_name" => "image_url", "value" => "", "description" => __("Select image from media library.", "js_composer")), array("type" => "fws_image", "heading" => __("Image Two", "js_composer"), "param_name" => "image_2_url", "value" => "", "description" => __("Select image from media library.", "js_composer")), array("type" => "textfield", "heading" => __("Extra class name", "js_composer"), "param_name" => "el_class", "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.", "js_composer")))));
    // Portfolio
    $portfolio_types = $is_admin ? get_terms('project-type') : array('All' => 'all');
    $types_options = array("All" => "all");
    $types_options_2 = array("Default" => "default");
    if ($is_admin) {
        foreach ($portfolio_types as $type) {
            $types_options[$type->name] = $type->slug;
            $types_options_2[$type->name] = $type->slug;
        }
    } else {
        $types_options['All'] = 'all';
        $types_options_2['All'] = 'all';
    }
    vc_map(array("name" => __("Portfolio", "js_composer"), "base" => "nectar_portfolio", "weight" => 8, "icon" => "icon-wpb-portfolio", "category" => __('Nectar Elements', 'js_composer'), "description" => __('Add a portfolio element', 'js_composer'), "params" => array(array("type" => "dropdown", "heading" => __("Layout", "js_composer"), "param_name" => "layout", "admin_label" => true, "value" => array("3 Columns" => "3", "4 Columns" => "4", "Fullwidth" => "fullwidth"), "description" => __("Please select the layout you would like for your portfolio ", "js_composer"), 'save_always' => true), array("type" => 'checkbox', "heading" => __("Constrain Max Columns to 4?", "js_composer"), "param_name" => "constrain_max_cols", "description" => __("This will change the max columns to 4 (default is 5 for fullwidth). Activating this will make it easier to create a grid with no empty spaces at the end of the list on all screen sizes.", "js_composer"), "value" => array(__("Yes, please", "js_composer") => 'true'), "dependency" => array('element' => "layout", 'value' => 'fullwidth')), array("type" => "dropdown_multi", "heading" => __("Portfolio Categories", "js_composer"), "param_name" => "category", "admin_label" => true, "value" => $types_options, 'save_always' => true, "description" => __("Please select the categories you would like to display for your portfolio. <br/> You can select multiple categories too (ctrl + click on PC and command + click on Mac).", "js_composer")), array("type" => "dropdown", "heading" => __("Starting Category", "js_composer"), "param_name" => "starting_category", "admin_label" => false, "value" => $types_options_2, 'save_always' => true, "description" => __("Please select the category you would like you're portfolio to start filtered on.", "js_composer"), "dependency" => array('element' => "enable_sortable", 'not_empty' => true)), array("type" => "dropdown", "heading" => __("Project Style", "js_composer"), "param_name" => "project_style", "admin_label" => true, 'save_always' => true, "value" => array("Meta below thumb w/ links on hover" => "1", "Meta on hover + entire thumb link" => "2", "Title overlaid w/ zoom effect on hover" => "3", "Title overlaid w/ zoom effect on hover alt" => "5", "Meta from bottom on hover + entire thumb link" => "4", "3D Parallax on hover" => "6"), "description" => __("Please select the style you would like your projects to display in ", "js_composer")), array("type" => 'checkbox', "heading" => __("Masonry Style", "js_composer"), "param_name" => "masonry_style", "description" => __("This will allow your portfolio items to display in a masonry layout as opposed to a fixed grid. You can define your masonry sizes in each project. <br/> If using the full width layout, will only be active with the alternative project style.", "js_composer"), "value" => array(__("Yes, please", "js_composer") => 'true')), array("type" => 'checkbox', "heading" => __("Enable Sortable", "js_composer"), "param_name" => "enable_sortable", "description" => __("Checking this box will allow your portfolio to display sortable filters", "js_composer"), "value" => array(__("Yes, please", "js_composer") => 'true')), array("type" => 'checkbox', "heading" => __("Horizontal Filters", "js_composer"), "param_name" => "horizontal_filters", "description" => __("This will allow your filters to display horizontally instead of in a dropdown. (Only used if you enable sortable above.)", "js_composer"), "value" => array(__("Yes, please", "js_composer") => 'true'), "dependency" => array('element' => "enable_sortable", 'not_empty' => true)), array("type" => "dropdown", "heading" => __("Filter Color Scheme", "js_composer"), "param_name" => "filter_color", "value" => array("Default" => "default", "Accent-Color" => "accent-color", "Extra-Color-1" => "extra-color-1", "Extra-Color-2" => "extra-color-2", "Extra-Color-3" => "extra-color-3", "Black" => "black"), 'save_always' => true, "dependency" => array('element' => "enable_sortable", 'not_empty' => true), "description" => __("Please select the color scheme you would like for your filters. Only applies to full width inline filters and regular dropdown filters", "js_composer")), array("type" => 'checkbox', "heading" => __("Enable Pagination", "js_composer"), "param_name" => "enable_pagination", "description" => __("Would you like to enable pagination for this portfolio?", "js_composer"), "value" => array(__("Yes, please", "js_composer") => 'true')), array("type" => "dropdown", "heading" => __("Pagination Type", "js_composer"), "param_name" => "pagination_type", "admin_label" => true, "value" => array('Default' => 'default', 'Infinite Scroll' => 'infinite_scroll'), 'save_always' => true, "description" => __("Please select your pagination type here.", "js_composer"), "dependency" => array('element' => "enable_pagination", 'not_empty' => true)), array("type" => "textfield", "heading" => __("Projects Per Page", "js_composer"), "param_name" => "projects_per_page", "description" => __("How many projects would you like to display per page? <br/> If pagination is not enabled, will simply show this number of projects <br/> Enter as a number example \"20\"", "js_composer")), array("type" => 'checkbox', "heading" => __("Lightbox Only", "js_composer"), "param_name" => "lightbox_only", "description" => __("This will remove the single project page from being accessible thus rendering your portfolio into only a gallery.", "js_composer"), "value" => array(__("Yes, please", "js_composer") => 'true')), array("type" => "dropdown", "heading" => __("Load In Animation", "js_composer"), "param_name" => "load_in_animation", 'save_always' => true, "value" => array("None" => "none", "Fade In" => "fade_in", "Fade In From Bottom" => "fade_in_from_bottom"), "description" => __("Please select the style you would like your projects to display in ", "js_composer")))));
    vc_map(array("name" => __("Recent Projects", "js_composer"), "base" => "recent_projects", "weight" => 8, "icon" => "icon-wpb-recent-projects", "category" => __('Nectar Elements', 'js_composer'), "description" => __('Show off some recent projects', 'js_composer'), "params" => array(array("type" => "dropdown_multi", "heading" => __("Portfolio Categories", "js_composer"), "param_name" => "category", "admin_label" => true, "value" => $types_options, 'save_always' => true, "description" => __("Please select the categories you would like to display for your recent projects carousel. <br/> You can select multiple categories too (ctrl + click on PC and command + click on Mac).", "js_composer")), array("type" => "dropdown", "heading" => __("Project Style", "js_composer"), "param_name" => "project_style", "admin_label" => true, "value" => array("Meta below thumb w/ links on hover" => "1", "Meta on hover + entire thumb link" => "2", "Title overlaid w/ zoom effect on hover" => "3", "Meta from bottom on hover + entire thumb link" => "4"), 'save_always' => true, "description" => __("Please select the style you would like your projects to display in ", "js_composer")), array("type" => 'checkbox', "heading" => __("Full Width Carousel", "js_composer"), "param_name" => "full_width", "description" => __("This will make your carousel extend the full width of the page.", "js_composer"), "value" => array(__("Yes, please", "js_composer") => 'true')), array("type" => "textfield", "heading" => __("Heading Text", "js_composer"), "param_name" => "heading", "description" => __("Enter any text you would like for the heading of your carousel", "js_composer")), array("type" => "textfield", "heading" => __("Page Link Text", "js_composer"), "param_name" => "page_link_text", "description" => __("This will be the text that is in a link leading users to your desired page (will be omitted for full width carousels and an icon will be used instead)", "js_composer")), array("type" => "textfield", "heading" => __("Page Link URL", "js_composer"), "param_name" => "page_link_url", "description" => __("Enter portfolio page URL you would like to link to. Remember to include \"http://\"!", "js_composer")), array("type" => "dropdown", "heading" => __("Controls & Text Color", "js_composer"), "param_name" => "control_text_color", "value" => array("Dark" => "dark", "Light" => "light"), 'save_always' => true, "description" => __("Please select the color you desire for your carousel controls/heading text.", "js_composer")), array("type" => 'checkbox', "heading" => __("Hide Carousel Controls", "js_composer"), "param_name" => "hide_controls", "description" => __("Checking this box will remove the controls from your carousel", "js_composer"), "value" => array(__("Yes, please", "js_composer") => 'true')), array("type" => "textfield", "heading" => __("Number of Projects To Show", "js_composer"), "param_name" => "number_to_display", "description" => __("Enter as a number example \"6\"", "js_composer")), array("type" => 'checkbox', "heading" => __("Lightbox Only", "js_composer"), "param_name" => "lightbox_only", "description" => __("This will remove the single project page from being accessible thus rendering your portfolio into only a gallery.", "js_composer"), "value" => array(__("Yes, please", "js_composer") => 'true')))));
    // Blog
    $blog_types = $is_admin ? get_categories() : array('All' => 'all');
    $blog_options = array("All" => "all");
    if ($is_admin) {
        foreach ($blog_types as $type) {
            $blog_options[$type->name] = $type->slug;
        }
    } else {
        $blog_options['All'] = 'all';
    }
    vc_map(array("name" => __("Blog", "js_composer"), "base" => "nectar_blog", "weight" => 8, "icon" => "icon-wpb-blog", "category" => __('Nectar Elements', 'js_composer'), "description" => __('Display a Blog element', 'js_composer'), "params" => array(array("type" => "dropdown", "heading" => __("Layout", "js_composer"), "param_name" => "layout", "admin_label" => true, "value" => array('Standard Blog W/ Sidebar' => 'std-blog-sidebar', 'Standard Blog No Sidebar' => 'std-blog-fullwidth', 'Masonry Blog W/ Sidebar' => 'masonry-blog-sidebar', 'Masonry Blog No Sidebar' => 'masonry-blog-fullwidth', 'Masonry Blog Fullwidth' => 'masonry-blog-full-screen-width'), 'save_always' => true, "description" => __("Please select the layout you desire for your blog", "js_composer")), array("type" => "dropdown_multi", "heading" => __("Blog Categories", "js_composer"), "param_name" => "category", "admin_label" => true, "value" => $blog_options, 'save_always' => true, "description" => __("Please select the categories you would like to display for your blog. <br/> You can select multiple categories too (ctrl + click on PC and command + click on Mac).", "js_composer")), array("type" => 'checkbox', "heading" => __("Enable Pagination", "js_composer"), "param_name" => "enable_pagination", "description" => __("Would you like to enable pagination?", "js_composer"), "value" => array(__("Yes, please", "js_composer") => 'true')), array("type" => "dropdown", "heading" => __("Pagination Type", "js_composer"), "param_name" => "pagination_type", "admin_label" => true, "value" => array('Default' => 'default', 'Infinite Scroll' => 'infinite_scroll'), 'save_always' => true, "description" => __("Please select your pagination type here.", "js_composer"), "dependency" => array('element' => "enable_pagination", 'not_empty' => true)), array("type" => "textfield", "heading" => __("Posts Per Page", "js_composer"), "param_name" => "posts_per_page", "description" => __("How many posts would you like to display per page? <br/> If pagination is not enabled, will simply show this number of posts <br/> Enter as a number example \"10\"", "js_composer")), array("type" => "dropdown", "heading" => __("Load In Animation", "js_composer"), "param_name" => "load_in_animation", 'save_always' => true, "value" => array("None" => "none", "Fade In" => "fade_in", "Fade In From Bottom" => "fade_in_from_bottom"), "description" => __("Please select the loading animation you would like ", "js_composer")))));
    vc_map(array("name" => __("Recent Posts", "js_composer"), "base" => "recent_posts", "weight" => 8, "icon" => "icon-wpb-recent-posts", "category" => __('Nectar Elements', 'js_composer'), "description" => __('Display your recent blog posts', 'js_composer'), "params" => array(array("type" => "dropdown", "heading" => __("Style", "js_composer"), "param_name" => "style", "admin_label" => true, "value" => array('Default' => 'default', 'Minimal' => 'minimal', 'Minimal - Title Only' => 'title_only', 'Slider' => 'slider'), 'save_always' => true, "description" => __("Please select desired style here.", "js_composer")), array("type" => "textfield", "heading" => __("Slider Height", "js_composer"), "param_name" => "slider_size", "admin_label" => false, "dependency" => array('element' => "style", 'value' => 'slider'), "description" => __("Don't include \"px\" in your string. e.g. 650", "js_composer")), array("type" => "dropdown_multi", "heading" => __("Blog Categories", "js_composer"), "param_name" => "category", "admin_label" => true, "value" => $blog_options, 'save_always' => true, "description" => __("Please select the categories you would like to display in your recent posts. <br/> You can select multiple categories too (ctrl + click on PC and command + click on Mac).", "js_composer")), array("type" => "dropdown", "heading" => __("Number Of Columns", "js_composer"), "param_name" => "columns", "admin_label" => false, "value" => array('4' => '4', '3' => '3', '2' => '2', '1' => '1'), "dependency" => array('element' => "style", 'value' => array('default', 'minimal', 'title_only')), 'save_always' => true, "description" => __("Please select the number of posts you would like to display.", "js_composer")), array("type" => "textfield", "heading" => __("Number Of Posts", "js_composer"), "param_name" => "posts_per_page", "description" => __("How many posts would you like to display? <br/> Enter as a number example \"4\"", "js_composer")), array("type" => "textfield", "heading" => __("Post Offset", "js_composer"), "param_name" => "post_offset", "description" => __("Optioinally enter a number e.g. \"2\" to offset your posts by - useful for when you're using multiple styles of this element on the same page and would like them to no show duplicate posts", "js_composer")), array("type" => 'checkbox', "heading" => __("Enable Title Labels", "js_composer"), "param_name" => "title_labels", "description" => __("These labels are defined by you in the \"Blog Options\" tab of your theme options panel.", "js_composer"), "value" => array(__("Yes, please", "js_composer") => 'true'), "dependency" => array('element' => "style", 'value' => 'default')))));
    //WooCommerce Related
    global $woocommerce;
    if ($woocommerce) {
        class WPBakeryShortCode_Nectar_Woo_Products extends WPBakeryShortCode
        {
        }
        $woo_args = array('taxonomy' => 'product_cat');
        $woo_types = $is_admin ? get_categories($woo_args) : array('All' => 'all');
        $woo_options = array("All" => "all");
        if ($is_admin) {
            foreach ($woo_types as $type) {
                $woo_options[$type->name] = $type->slug;
            }
        } else {
            $woo_options['All'] = 'all';
        }
        ////recent products
        vc_map(array("name" => __("WooCommerce Products", "js_composer"), "base" => "nectar_woo_products", "weight" => 8, "icon" => "icon-wpb-recent-products", "category" => __('Nectar Elements', 'js_composer'), "description" => __('Display your products', 'js_composer'), "params" => array(array("type" => "dropdown", "heading" => __("Product Type", "js_composer"), "param_name" => "product_type", "value" => array('All' => 'all', 'Sale Only' => 'sale', 'Featured Only' => 'featured', 'Best Selling Only' => 'best_selling'), 'save_always' => true, "description" => __("Please select the type of products you would like to display.", "js_composer")), array("type" => "dropdown_multi", "heading" => __("Product Categories", "js_composer"), "param_name" => "category", "admin_label" => true, "value" => $woo_options, 'save_always' => true, "description" => __("Please select the categories you would like to display in your products. <br/> You can select multiple categories too (ctrl + click on PC and command + click on Mac).", "js_composer")), array("type" => "dropdown", "heading" => __("Number Of Columns", "js_composer"), "param_name" => "columns", "value" => array('4' => '4', '3' => '3', '2' => '2', '1' => '1'), 'save_always' => true, "description" => __("Please select the number of columns you would like to display.", "js_composer")), array("type" => "textfield", "heading" => __("Number Of Products", "js_composer"), "param_name" => "per_page", "admin_label" => true, "description" => __("How many posts would you like to display? <br/> Enter as a number example \"4\"", "js_composer")), array("type" => 'checkbox', "heading" => __("Enable Carousel Display", "js_composer"), "param_name" => "carousel", "description" => __("This will override your column choice", "js_composer"), "value" => array(__("Yes, please", "js_composer") => true)), array("type" => 'checkbox', "heading" => __("Enable Controls On Hover", "js_composer"), "param_name" => "controls_on_hover", "dependency" => array('element' => "carousel", 'not_empty' => true), "description" => __("This will add buttons for additional user control over your product carousel", "js_composer"), "value" => array(__("Yes, please", "js_composer") => true)))));
    }
    // Centered Heading
    vc_map(array("name" => __("Centered Heading", "js_composer"), "base" => "heading", "icon" => "icon-wpb-centered-heading", "category" => __('Nectar Elements', 'js_composer'), "description" => __('Simple heading', 'js_composer'), "params" => array(array("type" => "textarea_html", "holder" => "div", "heading" => __("Heading", "js_composer"), "param_name" => "content", "value" => __("", "js_composer")), array("type" => "textfield", "heading" => __("Subtitle", "js_composer"), "param_name" => "subtitle", "description" => __("The subtitle text under the main title", "js_composer")))));
    // video lightbox
    class WPBakeryShortCode_Nectar_Video_Lightbox extends WPBakeryShortCode
    {
    }
    vc_map(array("name" => __("Video Lightbox", "js_composer"), "base" => "nectar_video_lightbox", "icon" => "icon-wpb-video-lightbox", "category" => __('Nectar Elements', 'js_composer'), "description" => __('Add a video lightbox link', 'js_composer'), "params" => array(array("type" => "dropdown", "heading" => __("Link Style", "js_composer"), "param_name" => "link_style", "value" => array("Play Button" => "play_button", "Nectar Button" => "nectar-button"), 'save_always' => true, "admin_label" => true, "description" => __("Please select your link style", "js_composer")), array("type" => "textfield", "heading" => __("Video URL", "js_composer"), "param_name" => "video_url", "admin_label" => false, "description" => __("The URL to your video on Youtube or Vimeo e.g. <br/> https://vimeo.com/118023315 <br/> https://www.youtube.com/watch?v=6oTurM7gESE", "js_composer")), array("type" => "textfield", "heading" => __("Link Text", "js_composer"), "param_name" => "link_text", "admin_label" => false, "dependency" => array('element' => "link_style", 'value' => "nectar-button"), "description" => __("The text that will be displayed for your link", "js_composer")), array("type" => "dropdown", "heading" => __("Color", "js_composer"), "param_name" => "nectar_button_color", "value" => array("Accent-Color" => "Default-Accent-Color", "Extra-Color-1" => "Default-Extra-Color-1", "Extra-Color-2" => "Default-Extra-Color-2", "Extra-Color-3" => "Default-Extra-Color-3", "Transparent-Accent-Color" => "Transparent-Accent-Color", "Transparent-Extra-Color-1" => "Transparent-Extra-Color-1", "Transparent-Extra-Color-2" => "Transparent-Extra-Color-2", "Transparent-Extra-Color-3" => "Transparent-Extra-Color-3"), 'save_always' => true, "dependency" => array('element' => "link_style", 'value' => "nectar-button"), "description" => __("Please select the color you desire", "js_composer")))));
    // Milestone
    vc_map(array("name" => __("Milestone", "js_composer"), "base" => "milestone", "icon" => "icon-wpb-milestone", "category" => __('Nectar Elements', 'js_composer'), "description" => __('Add an animated milestone', 'js_composer'), "params" => array(array("type" => "textfield", "heading" => __("Milestone Number", "js_composer"), "param_name" => "number", "admin_label" => false, "description" => __("The number/count of your milestone e.g. \"13\"", "js_composer")), array("type" => "textfield", "heading" => __("Milestone Symbol", "js_composer"), "param_name" => "symbol", "admin_label" => false, "description" => __("An optional symbol to place next to the number counted to. e.g. \"%\" or \"+\"", "js_composer")), array("type" => "dropdown", "heading" => __("Milestone Symbol Position", "js_composer"), "param_name" => "symbol_position", "value" => array("After Number" => "after", "Before Number" => "before"), 'save_always' => true, "description" => __("Please select the position you would like for your symbol.", "js_composer"), "dependency" => array('element' => "symbol", 'not_empty' => true)), array("type" => "textfield", "heading" => __("Milestone Subject", "js_composer"), "param_name" => "subject", "admin_label" => true, "description" => __("The subject of your milestones e.g. \"Projects Completed\"", "js_composer")), array("type" => "dropdown", "heading" => __("Color", "js_composer"), "param_name" => "color", "value" => array("Default" => "Default", "Accent-Color" => "Accent-Color", "Extra-Color-1" => "Extra-Color-1", "Extra-Color-2" => "Extra-Color-2", "Extra-Color-3" => "Extra-Color-3"), 'save_always' => true, "description" => __("Please select the color you wish for your milestone to display in.", "js_composer")), array("type" => "dropdown", "heading" => __("Animation Effect", "js_composer"), "param_name" => "effect", "value" => array("Count To Value" => "count", "Motion Blur Slide In" => "motion_blur"), 'save_always' => true, "description" => __("Please select the animation you would like your milestone to have", "js_composer")), array("type" => "textfield", "heading" => __("Milestone Number Font Size", "js_composer"), "param_name" => "number_font_size", "admin_label" => false, "description" => __("Enter your size in pixels, the default is 62.", "js_composer")), array("type" => "textfield", "heading" => __("Milestone Symbol Font Size", "js_composer"), "param_name" => "symbol_font_size", "admin_label" => false, "description" => __("Enter your size in pixels.", "js_composer"), "dependency" => array('element' => "symbol", 'not_empty' => true)), array("type" => "dropdown", "heading" => __("Milestone Symbol Alignment", "js_composer"), "param_name" => "symbol_alignment", "value" => array("Default" => "Default", "Superscript" => "Superscript"), 'save_always' => true, "description" => __("Please select the alignment you desire for your symbol.", "js_composer"), "dependency" => array('element' => "symbol", 'not_empty' => true)))));
    // Google Map
    class WPBakeryShortCode_Nectar_Gmap extends WPBakeryShortCode
    {
    }
    vc_map(array("name" => __("Google Map", "js_composer"), "base" => "nectar_gmap", "icon" => "icon-wpb-map", "category" => __('Nectar Elements', 'js_composer'), "description" => __('Flexible Google Map', 'js_composer'), "params" => array(array("type" => "textfield", "heading" => __("Map height", "js_composer"), "param_name" => "size", "description" => __('Enter map height in pixels. Example: 200.', "js_composer")), array("type" => "textfield", "heading" => __("Map Center Point Latitude", "js_composer"), "param_name" => "map_center_lat", "description" => __("Please enter the latitude for the maps center point.", "js_composer")), array("type" => "textfield", "heading" => __("Map Center Point Longitude", "js_composer"), "param_name" => "map_center_lng", "description" => __("Please enter the longitude for the maps center point.", "js_composer")), array("type" => "dropdown", "heading" => __("Map Zoom", "js_composer"), "param_name" => "zoom", 'save_always' => true, "value" => array(__("14 - Default", "js_composer") => 14, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20)), array("type" => 'checkbox', "heading" => __("Eanble Zoom In/Out", "js_composer"), "param_name" => "enable_zoom", "description" => __("Do you want users to be able to zoom in/out on the map?", "js_composer"), "value" => array(__("Yes, please", "js_composer") => true)), array("type" => "attach_image", "heading" => __("Marker Image", "js_composer"), "param_name" => "marker_image", "value" => "", "description" => __("Select image from media library.", "js_composer")), array("type" => 'checkbox', "heading" => __("Marker Animation", "js_composer"), "param_name" => "marker_animation", "description" => __("This will cause your markers to do a quick bounce as they load in.", "js_composer"), "value" => array(__("Yes, please", "js_composer") => true)), array("type" => 'checkbox', "heading" => __("Greyscale Color", "js_composer"), "param_name" => "map_greyscale", "description" => __("Toggle a greyscale color scheme (will also unlock further custom options)", "js_composer"), "value" => array(__("Yes, please", "js_composer") => true)), array("type" => "colorpicker", "class" => "", "heading" => "Map Extra Color", "param_name" => "map_color", "value" => "", "dependency" => array('element' => "map_greyscale", 'not_empty' => true), "description" => "Use this to define a main color that will be used in combination with the greyscale option for your map"), array("type" => 'checkbox', "heading" => __("Ultra Flat Map", "js_composer"), "param_name" => "ultra_flat", "dependency" => array('element' => "map_greyscale", 'not_empty' => true), "description" => __("This removes street/landmark text & some extra details for a clean look", "js_composer"), "value" => array(__("Yes, please", "js_composer") => true)), array("type" => 'checkbox', "heading" => __("Dark Color Scheme", "js_composer"), "param_name" => "dark_color_scheme", "dependency" => array('element' => "map_greyscale", 'not_empty' => true), "description" => __("Enable this option for a dark colored map (This will override the extra color choice)", "js_composer"), "value" => array(__("Yes, please", "js_composer") => true)), array("type" => "textarea", "heading" => __("Map Marker Locations", "js_composer"), "param_name" => "map_markers", "description" => __("Please enter the the list of locations you would like with a latitude|longitude|description format. <br/> Divide values with linebreaks (Enter). Example: <br/> 39.949|-75.171|Our Location <br/> 40.793|-73.954|Our Location #2", "js_composer")))));
    // Team Member
    vc_map(array("name" => __("Team Member", "js_composer"), "base" => "team_member", "icon" => "icon-wpb-team-member", "category" => __('Nectar Elements', 'js_composer'), "description" => __('Add a team member element', 'js_composer'), "params" => array(array("type" => "fws_image", "heading" => __("Image", "js_composer"), "param_name" => "image_url", "value" => "", "description" => __("Select image from media library.", "js_composer")), array("type" => "dropdown", "heading" => __("Team Member Stlye", "js_composer"), "param_name" => "team_memeber_style", "value" => array("Meta below" => "meta_below", "Meta overlaid" => "meta_overlaid", "Meta overlaid alt" => "meta_overlaid_alt"), 'save_always' => true, "description" => __("Please select the style you desire for your team member", "js_composer")), array("type" => "textfield", "heading" => __("Name", "js_composer"), "param_name" => "name", "admin_label" => true, "description" => __("Please enter the name of your team member", "js_composer")), array("type" => "textfield", "heading" => __("Job Position", "js_composer"), "param_name" => "job_position", "admin_label" => true, "description" => __("Please enter the job position for your team member", "js_composer")), array("type" => "textarea", "heading" => __("Description", "js_composer"), "param_name" => "description", "description" => __("The main text portion of your team member", "js_composer"), "dependency" => array('element' => "team_memeber_style", 'value' => array('meta_below'))), array("type" => "textarea", "heading" => __("Social Media", "js_composer"), "param_name" => "social", "dependency" => array('element' => "team_memeber_style", 'value' => array('meta_below')), "description" => __("Enter any social media links with a comma separated list. e.g. Facebook,http://facebook.com, Twitter,http://twitter.com", "js_composer")), array("type" => "dropdown", "heading" => __("Team Member Link Type", "js_composer"), "param_name" => "link_element", "value" => array("None" => "none", "Image" => "image", "Name" => "name", "Both" => "both"), 'save_always' => true, "dependency" => array('element' => "team_memeber_style", 'value' => array('meta_below')), "description" => __("Please select how you wish to link your team member to an arbitrary URL", "js_composer")), array("type" => "textfield", "heading" => __("Team Memeber Link URL", "js_composer"), "param_name" => "link_url", "admin_label" => false, "description" => __("Please enter the URL for your team member link", "js_composer"), "dependency" => array('element' => "link_element", 'value' => array('image', 'name', 'both'))), array("type" => "textfield", "heading" => __("Team Memeber Link URL", "js_composer"), "param_name" => "link_url_2", "admin_label" => false, "description" => __("Please enter the URL for your team member link", "js_composer"), "dependency" => array('element' => "team_memeber_style", 'value' => array('meta_overlaid'))), array("type" => "dropdown", "heading" => __("Link Color", "js_composer"), "param_name" => "color", "value" => array("Accent-Color" => "Accent-Color", "Extra-Color-1" => "Extra-Color-1", "Extra-Color-2" => "Extra-Color-2", "Extra-Color-3" => "Extra-Color-3"), 'save_always' => true, "dependency" => array('element' => "team_memeber_style", 'value' => array('meta_below')), "description" => __("Please select the color you wish for your social links to display in.", "js_composer")))));
    // Team Member
    class WPBakeryShortCode_Fancy_Box extends WPBakeryShortCode
    {
    }
    vc_map(array("name" => __("Fancy Box", "js_composer"), "base" => "fancy_box", "icon" => "icon-wpb-fancy-box", "category" => __('Nectar Elements', 'js_composer'), "description" => __('Add a fancy box element', 'js_composer'), "params" => array(array("type" => "fws_image", "heading" => __("Image", "js_composer"), "param_name" => "image_url", "value" => "", "description" => __("Select a background image from the media library.", "js_composer")), array("type" => "textarea_html", "heading" => __("Box Content", "js_composer"), "param_name" => "content", "admin_label" => true, "description" => __("Please enter the text desired for your box", "js_composer")), array("type" => "textfield", "heading" => __("Link URL", "js_composer"), "param_name" => "link_url", "admin_label" => false, "description" => __("Please enter the URL you would like for your box to link to", "js_composer")), array("type" => "checkbox", "class" => "", "heading" => "Open Link In New Tab", "value" => array("Yes, please" => "true"), "param_name" => "link_new_tab", "description" => "", "dependency" => array('element' => "link_url", 'not_empty' => true)), array("type" => "textfield", "heading" => __("Link Text", "js_composer"), "param_name" => "link_text", "admin_label" => false, "description" => __("Please enter the text that will be displayed for your box link", "js_composer")), array("type" => "textfield", "heading" => __("Min Height", "js_composer"), "param_name" => "min_height", "admin_label" => false, "description" => __("Please enter the minimum height you would like for you box. Enter in number of pixels - Don't enter \"px\", default is \"300\"", "js_composer")), array("type" => "dropdown", "heading" => __("Link Color", "js_composer"), "param_name" => "color", "value" => array("Accent-Color" => "Accent-Color", "Extra-Color-1" => "Extra-Color-1", "Extra-Color-2" => "Extra-Color-2", "Extra-Color-3" => "Extra-Color-3"), 'save_always' => true, "description" => __("Please select the accent color for your box", "js_composer")))));
    require_once vc_path_dir('SHORTCODES_DIR', 'vc-accordion.php');
    require_once vc_path_dir('SHORTCODES_DIR', 'vc-accordion-tab.php');
    /* Accordion block
    	---------------------------------------------------------- */
    vc_map(array("name" => __("Toggle Panels", "js_composer"), "base" => "toggles", "show_settings_on_create" => false, "is_container" => true, "icon" => "icon-wpb-ui-accordion", "category" => __('Nectar Elements', 'js_composer'), "description" => __('jQuery toggles/accordion', 'js_composer'), "params" => array(array("type" => 'checkbox', "heading" => __("Allow collapsible all", "js_composer"), "param_name" => "accordion", "description" => __("Select checkbox to turn the toggles in an accordion.", "js_composer"), "value" => array(__("Allow", "js_composer") => 'true'))), "custom_markup" => '
	  <div class="wpb_accordion_holder wpb_holder clearfix vc_container_for_children">
	  %content%
	  </div>
	  <div class="tab_controls">
	 <a class="add_tab" title="' . __('Add section', 'js_composer') . '"><span class="vc_icon"></span> <span class="tab-label">' . __('Add section', 'js_composer') . '</span></a>
	  </div>
	  ', 'default_content' => '
	  [toggle title="' . __('Section', "js_composer") . '"][/toggle]
	  [toggle title="' . __('Section', "js_composer") . '"][/toggle]
	  ', 'js_view' => 'VcAccordionView'));
    vc_map(array("name" => __("Section", "js_composer"), "base" => "toggle", "allowed_container_element" => 'vc_row', "is_container" => true, "content_element" => false, "params" => array(array("type" => "textfield", "heading" => __("Title", "js_composer"), "param_name" => "title", "description" => __("Accordion section title.", "js_composer")), array("type" => "dropdown", "heading" => __("Color", "js_composer"), "param_name" => "color", "admin_label" => true, "value" => array("Default" => "Default", "Accent-Color" => "Accent-Color", "Extra-Color-1" => "Extra-Color-1", "Extra-Color-2" => "Extra-Color-2", "Extra-Color-3" => "Extra-Color-3"), 'save_always' => true, "description" => __("Please select the color you wish for your toggle to display in.", "js_composer"))), 'js_view' => 'VcAccordionTabView'));
    require_once vc_path_dir('SHORTCODES_DIR', 'vc-tabs.php');
    /* Tabs
    	---------------------------------------------------------- */
    $tab_id_1 = time() . '-1-' . rand(0, 100);
    $tab_id_2 = time() . '-2-' . rand(0, 100);
    vc_map(array("name" => __("Tabs", "js_composer"), "base" => "tabbed_section", "show_settings_on_create" => false, "is_container" => true, "icon" => "icon-wpb-ui-tab-content", "category" => __('Nectar Elements', 'js_composer'), "description" => __('Tabbed content', 'js_composer'), "params" => array(array("type" => "dropdown", "heading" => __("Style", "js_composer"), "param_name" => "style", "admin_label" => true, "value" => array("Default" => "default", "Minimal" => "minimal", "Vertical" => "vertical"), 'save_always' => true, "description" => __("Please select the style you desire for your tabbed element.", "js_composer")), array("type" => "dropdown", "heading" => __("Alignment", "js_composer"), "param_name" => "alignment", "admin_label" => false, "value" => array("Left" => "left", "Center" => "center", "Right" => "right"), 'save_always' => true, "dependency" => array('element' => "style", 'value' => array('minimal', 'default')), "description" => __("Please select your tabbed alignment", "js_composer")), array("type" => "textfield", "heading" => __("Optional CTA button", "js_composer"), "param_name" => "cta_button_text", "description" => __("If you wish to include an optional CTA button on your tabbed nav, enter the text here", "js_composer"), "admin_label" => false, "dependency" => array('element' => "style", 'value' => array('minimal'))), array("type" => "textfield", "heading" => __("CTA button link", "js_composer"), "param_name" => "cta_button_link", "description" => __("Enter a URL for your button link here", "js_composer"), "admin_label" => false, "dependency" => array('element' => "style", 'value' => array('minimal'))), array("type" => "dropdown", "heading" => __("CTA Button Color", "js_composer"), "param_name" => "cta_button_style", "admin_label" => false, "value" => array("Accent-Color" => "accent-color", "Extra-Color-1" => "extra-color-1", "Extra-Color-2" => "extra-color-2", "Extra-Color-3" => "extra-color-3"), 'save_always' => true, "description" => __("Please select the style for your optional CTA button", "js_composer"), "dependency" => array('element' => "style", 'value' => array('minimal'))), array("type" => "textfield", "heading" => __("Extra class name", "js_composer"), "param_name" => "el_class", "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.", "js_composer"))), "custom_markup" => '
	  <div class="wpb_tabs_holder wpb_holder vc_container_for_children">
	  <ul class="tabs_controls">
	  </ul>
	  %content%
	  </div>', 'default_content' => '
	  [tab title="' . __('Tab', 'js_composer') . '" id="' . $tab_id_1 . '"] I am text block. Click edit button to change this text. [/tab]
	  [tab title="' . __('Tab', 'js_composer') . '" id="' . $tab_id_2 . '"] I am text block. Click edit button to change this text. [/tab]
	  ', "js_view" => $vc_is_wp_version_3_6_more ? 'VcTabsView' : 'VcTabsView35'));
    vc_map(array("name" => __("Tab", "js_composer"), "base" => "tab", "allowed_container_element" => 'vc_row', "is_container" => true, "content_element" => false, "params" => array(array("type" => "textfield", "heading" => __("Title", "js_composer"), "param_name" => "title", "description" => __("Tab title.", "js_composer")), array("type" => "id", "heading" => __("Tab ID", "js_composer"), "param_name" => "id")), 'js_view' => $vc_is_wp_version_3_6_more ? 'VcTabView' : 'VcTabView35'));
    class WPBakeryShortCode_Testimonial_Slider extends WPBakeryShortCode_Tabbed_Section
    {
    }
    $tab_id_1 = time() . '-1-' . rand(0, 100);
    $tab_id_2 = time() . '-2-' . rand(0, 100);
    vc_map(array("name" => __("Testiomonial Slider", "js_composer"), "base" => "testimonial_slider", "show_settings_on_create" => false, "is_container" => true, "icon" => "icon-wpb-testimonial-slider", "category" => __('Nectar Elements', 'js_composer'), "description" => __('An appealing testmonial slider.', 'js_composer'), "params" => array(array("type" => "dropdown", "heading" => __("Style", "js_composer"), "param_name" => "style", "admin_label" => false, "value" => array("Basic (Default)" => "default", "Multiple Visible" => "multiple_visible"), 'save_always' => true, "description" => __("Please select the style for your testimonial slider", "js_composer")), array("type" => "dropdown", "heading" => __("Color", "js_composer"), "param_name" => "color", "admin_label" => false, "value" => array("Inherit (Default)" => "default", "Accent Color + Light Text" => "accent-color-light", "Extra Color 1 + Light Text" => "extra-color-1-light", "Extra Color 2 + Light Text" => "extra-color-2-light", "Extra Color 3 + Light Text" => "extra-color-3-light", "Accent Color + Dark Text" => "accent-color-dark", "Extra Color 1 + Dark Text" => "extra-color-1-dark", "Extra Color 2 + Dark Text" => "extra-color-2-dark", "Extra Color 3 + Dark Text" => "extra-color-3-dark"), 'save_always' => true, "dependency" => array('element' => "style", 'value' => array('multiple_visible')), "description" => __("Please select the color you would like for your testimonial slider. <br/> The Inherit value will react based on the row Text Color when set to light or dark.", "js_composer")), array("type" => "textfield", "heading" => __("Auto rotate?", "js_composer"), "param_name" => "autorotate", "value" => '', "description" => __("If you would like this to autorotate, enter the rotation speed in miliseconds here. i.e 5000", "js_composer")), array("type" => "checkbox", "class" => "", "heading" => "Disable height animation?", "value" => array("Yes, please" => "true"), "param_name" => "disable_height_animation", "dependency" => array('element' => "style", 'value' => array('default')), "description" => "Your testimonial slider will animate the height of itself to match the height of the testimonial being shown - this will remove that and simply set the height equal to the tallest testimonial to allow your content below to remain stagnant instead of moving up/down.")), "custom_markup" => '
	  <div class="wpb_tabs_holder wpb_holder vc_container_for_children">
	  <ul class="tabs_controls">
	  </ul>
	  %content%
	  </div>', 'default_content' => '
	  [testimonial title="' . __('Testimonial', 'js_composer') . '" id="' . $tab_id_1 . '"] Click the edit button to add your testimonial. [/testimonial]
	  [testimonial title="' . __('Testimonial', 'js_composer') . '" id="' . $tab_id_2 . '"] Click the edit button to add your testimonial. [/testimonial]
	  ', "js_view" => $vc_is_wp_version_3_6_more ? 'VcTabsView' : 'VcTabsView35'));
    class WPBakeryShortCode_Testimonial extends WPBakeryShortCode
    {
        public function customAdminBlockParams()
        {
            return ' id="tab-' . $this->atts['id'] . '"';
        }
    }
    vc_map(array("name" => __("Testimonial", "js_composer"), "base" => "testimonial", "allowed_container_element" => 'vc_row', "is_container" => true, "content_element" => false, "params" => array(array("type" => "attach_image", "class" => "", "heading" => "Image", "value" => "", "param_name" => "image", "description" => "Add an optional image for the person/company who supplied the testimonial"), array("type" => "textfield", "heading" => __("Name", "js_composer"), "param_name" => "name", "admin_label" => true, "description" => __("Name or source of the testimonial", "js_composer")), array("type" => "textfield", "heading" => __("Subtitle", "js_composer"), "param_name" => "subtitle", "admin_label" => false, "description" => __("The optional subtitle that will follow the testimonial name", "js_composer")), array("type" => "textarea", "heading" => __("Quote", "js_composer"), "param_name" => "quote", "description" => __("The testimonial quote", "js_composer")), array("type" => "id", "heading" => __("Testimonial ID", "js_composer"), "param_name" => "id")), 'js_view' => $vc_is_wp_version_3_6_more ? 'VcTabView' : 'VcTabView35'));
    /* clients slider */
    class WPBakeryShortCode_Clients extends WPBakeryShortCode_Tabbed_Section
    {
    }
    $tab_id_1 = time() . '-1-' . rand(0, 100);
    $tab_id_2 = time() . '-2-' . rand(0, 100);
    vc_map(array("name" => __("Clients Display", "js_composer"), "base" => "clients", "show_settings_on_create" => false, "is_container" => true, "icon" => "icon-wpb-clients", "category" => __('Nectar Elements', 'js_composer'), "description" => __('Show off your clients!', 'js_composer'), "params" => array(array("type" => "dropdown", "heading" => __("Columns", "js_composer"), "param_name" => "columns", "value" => array("Two" => "2", "Three" => "3", "Four" => "4", "Five" => "5", "Six" => "6"), 'save_always' => true, "description" => __("Please select how many columns you would like..", "js_composer")), array("type" => "checkbox", "class" => "", "heading" => "Fade In One By One?", "value" => array("Yes, please" => "true"), "param_name" => "fade_in_animation", "description" => ""), array("type" => "checkbox", "class" => "", "heading" => "Turn Into Carousel", "value" => array("Yes, please" => "true"), "param_name" => "carousel", "description" => ""), array("type" => "checkbox", "class" => "", "heading" => "Disable Autorotate?", "value" => array("Yes, please" => "true"), "param_name" => "disable_autorotate", "dependency" => array('element' => "carousel", 'not_empty' => true), "description" => "")), "custom_markup" => '
	  <div class="wpb_tabs_holder wpb_holder vc_container_for_children">
	  <ul class="tabs_controls">
	  </ul>
	  %content%
	  </div>', 'default_content' => '
	  [client title="' . __('Client', 'js_composer') . '" id="' . $tab_id_1 . '"] Click the edit button to add your testimonial. [/client]
	  [client title="' . __('Client', 'js_composer') . '" id="' . $tab_id_2 . '"] Click the edit button to add your testimonial. [/client]
	  ', "js_view" => $vc_is_wp_version_3_6_more ? 'VcTabsView' : 'VcTabsView35'));
    class WPBakeryShortCode_Client extends WPBakeryShortCode
    {
        public function customAdminBlockParams()
        {
            return ' id="tab-' . $this->atts['id'] . '"';
        }
    }
    vc_map(array("name" => __("Client", "js_composer"), "base" => "client", "allowed_container_element" => 'vc_row', "is_container" => true, "content_element" => false, "params" => array(array("type" => "fws_image", "heading" => __("Image", "js_composer"), "param_name" => "image", "value" => "", "description" => __("Select image from media library.", "js_composer")), array("type" => "textfield", "heading" => __("URL", "js_composer"), "param_name" => "url", "description" => __("Add an optional link to your client", "js_composer")), array("admin_label" => true, "type" => "textfield", "heading" => __("Client Name", "js_composer"), "param_name" => "name", "description" => __("Fill this out to keep track of which client is which in your page builder interface.", "js_composer")), array("type" => "id", "heading" => __("Client Item ID", "js_composer"), "param_name" => "id")), 'js_view' => $vc_is_wp_version_3_6_more ? 'VcTabView' : 'VcTabView35'));
    /* page sub menu */
    class WPBakeryShortCode_Page_Submenu extends WPBakeryShortCode_Tabbed_Section
    {
    }
    $tab_id_1 = time() . '-1-' . rand(0, 100);
    $tab_id_2 = time() . '-2-' . rand(0, 100);
    vc_map(array("name" => __("Page Submenu", "js_composer"), "base" => "page_submenu", "show_settings_on_create" => true, "is_container" => true, "icon" => "icon-wpb-page-submenu", "category" => __('Nectar Elements', 'js_composer'), "description" => __('Great for animated anchors', 'js_composer'), "params" => array(array("type" => "checkbox", "class" => "", "heading" => "Sticky?", "value" => array("Yes, please" => "true"), "param_name" => "sticky", "description" => "This will cause your submenu to stick to the top when scrolled by"), array("type" => "colorpicker", "class" => "", "heading" => "Menu BG Color", "param_name" => "bg_color", "value" => "#f7f7f7", "description" => ""), array("type" => "colorpicker", "class" => "", "heading" => "Link Color", "param_name" => "link_color", "value" => "#000000", "description" => "")), "custom_markup" => '
	  <div class="wpb_tabs_holder wpb_holder vc_container_for_children">
	  <ul class="tabs_controls">
	  </ul>
	  %content%
	  </div>', 'default_content' => '
	  [page_link link_url="#" title="' . __('Link', 'js_composer') . '" id="' . $tab_id_1 . '"] [/page_link]
	  [page_link link_url="#" title="' . __('Link', 'js_composer') . '" id="' . $tab_id_2 . '"]  [/page_link]
	  ', "js_view" => $vc_is_wp_version_3_6_more ? 'VcTabsView' : 'VcTabsView35'));
    class WPBakeryShortCode_Page_Link extends WPBakeryShortCode
    {
        public function customAdminBlockParams()
        {
            return ' id="tab-' . $this->atts['id'] . '"';
        }
    }
    vc_map(array("name" => __("Menu Link", "js_composer"), "base" => "page_link", "allowed_container_element" => 'vc_row', "is_container" => true, "content_element" => false, "params" => array(array("admin_label" => false, "type" => "textfield", "heading" => __("Link Text", "js_composer"), "param_name" => "title", "description" => __("Enter the text that will be displayed for your link", "js_composer")), array("admin_label" => true, "type" => "textfield", "heading" => __("Link URL", "js_composer"), "param_name" => "link_url", "description" => __("Enter the URL that will be used for your link", "js_composer")), array("type" => "checkbox", "class" => "", "heading" => "Open Link In New Tab", "value" => array("Yes, please" => "true"), "param_name" => "link_new_tab", "description" => ""), array("type" => "id", "heading" => __("Page Link ID", "js_composer"), "param_name" => "id")), 'js_view' => $vc_is_wp_version_3_6_more ? 'VcTabView' : 'VcTabView35'));
    /* pricing table */
    class WPBakeryShortCode_Pricing_Table extends WPBakeryShortCode_Tabbed_Section
    {
    }
    $tab_id_1 = time() . '-1-' . rand(0, 100);
    $tab_id_2 = time() . '-2-' . rand(0, 100);
    vc_map(array("name" => __("Pricing Table", "js_composer"), "base" => "pricing_table", "show_settings_on_create" => false, "is_container" => true, "icon" => "icon-wpb-pricing-table", "category" => __('Nectar Elements', 'js_composer'), "description" => __('Stylish pricing tables', 'js_composer'), "params" => array(array("type" => "textfield", "heading" => __("Extra class name", "js_composer"), "param_name" => "el_class", "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.", "js_composer")), array("type" => "dropdown", "holder" => "div", "admin_label" => false, "class" => "", "heading" => "Style", "param_name" => "style", "value" => array("Default" => "default", "Flat Alternative" => "flat-alternative"), 'save_always' => true, "description" => "")), "custom_markup" => '
	  <div class="wpb_tabs_holder wpb_holder vc_container_for_children">
	  <ul class="tabs_controls">
	  </ul>
	  %content%
	  </div>', 'default_content' => '
	  [pricing_column title="' . __('Column', 'js_composer') . '" id="' . $tab_id_1 . '"]  [/pricing_column]
	  [pricing_column title="' . __('Column', 'js_composer') . '" id="' . $tab_id_2 . '"]  [/pricing_column]
	  ', "js_view" => $vc_is_wp_version_3_6_more ? 'VcTabsView' : 'VcTabsView35'));
    class WPBakeryShortCode_Pricing_Column extends WPBakeryShortCode
    {
        public function customAdminBlockParams()
        {
            return ' id="tab-' . $this->atts['id'] . '"';
        }
    }
    vc_map(array("name" => __("Pricing Column", "js_composer"), "base" => "pricing_column", "allowed_container_element" => 'vc_row', "is_container" => true, "content_element" => false, "params" => array(array("type" => "textfield", "heading" => __("Title", "js_composer"), "param_name" => "title", "admin_label" => true, "description" => __("Please enter a title for your pricing column", "js_composer")), array("type" => "textfield", "heading" => __("Price", "js_composer"), "param_name" => "price", "description" => __("Enter the price for your column", "js_composer")), array("type" => "textfield", "heading" => __("Currency Symbol", "js_composer"), "param_name" => "currency_symbol", "description" => __("Enter the currency symbol that will display for your price", "js_composer")), array("type" => "textfield", "heading" => __("Interval", "js_composer"), "param_name" => "interval", "description" => __("Enter the interval for your pricing e.g. \"Per Month\" or \"Per Year\" ", "js_composer")), array("type" => "checkbox", "class" => "", "heading" => "Highlight Column?", "value" => array("Yes, please" => "true"), "param_name" => "highlight", "description" => ""), array("type" => "textfield", "heading" => __("Highlight Reason", "js_composer"), "param_name" => "highlight_reason", "description" => __("Enter the reason for the column being highlighted e.g. \"Most Popular\"", "js_composer"), "dependency" => array('element' => "highlight", 'not_empty' => true)), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => "Color", "param_name" => "color", "value" => array("Accent-Color" => "Accent-Color", "Extra-Color-1" => "Extra-Color-1", "Extra-Color-2" => "Extra-Color-2", "Extra-Color-3" => "Extra-Color-3"), 'save_always' => true, "description" => ""), array("type" => "textarea_html", "holder" => "div", "heading" => __("Text Content", "js_composer"), "param_name" => "content", "value" => __("", "js_composer"))), 'js_view' => $vc_is_wp_version_3_6_more ? 'VcTabView' : 'VcTabView35'));
    /* carousel */
    class WPBakeryShortCode_Carousel extends WPBakeryShortCode_Tabbed_Section
    {
    }
    $tab_id_1 = time() . '-1-' . rand(0, 100);
    $tab_id_2 = time() . '-2-' . rand(0, 100);
    $tab_id_3 = time() . '-3-' . rand(0, 100);
    vc_map(array("name" => __("Carousel", "js_composer"), "base" => "carousel", "show_settings_on_create" => true, "is_container" => true, "icon" => "icon-wpb-carousel", "category" => __('Nectar Elements', 'js_composer'), "description" => __('A simple carousel for any content', 'js_composer'), "params" => array(array("type" => "textfield", "heading" => __("Carousel Title", "js_composer"), "param_name" => "carousel_title", "description" => __("Enter the title you would like at the top of your carousel (optional)", "js_composer")), array("type" => "textfield", "heading" => __("Transition Scroll Speed", "js_composer"), "param_name" => "scroll_speed", "description" => __("Enter in milliseconds (default is 700)", "js_composer")), array("type" => "checkbox", "class" => "", "heading" => __("Autorotate?", "js_composer"), "param_name" => "autorotate", "value" => array(__("Yes", "js_composer") => 'true'), "description" => ""), array("type" => "dropdown", "holder" => "div", "class" => "", "admin_label" => false, "heading" => "Easing", "param_name" => "easing", 'save_always' => true, "value" => array('linear' => 'linear', 'swing' => 'swing', 'easeInQuad' => 'easeInQuad', 'easeOutQuad' => 'easeOutQuad', 'easeInOutQuad' => 'easeInOutQuad', 'easeInCubic' => 'easeInCubic', 'easeOutCubic' => 'easeOutCubic', 'easeInOutCubic' => 'easeInOutCubic', 'easeInQuart' => 'easeInQuart', 'easeOutQuart' => 'easeOutQuart', 'easeInOutQuart' => 'easeInOutQuart', 'easeInQuint' => 'easeInQuint', 'easeOutQuint' => 'easeOutQuint', 'easeInOutQuint' => 'easeInOutQuint', 'easeInExpo' => 'easeInExpo', 'easeOutExpo' => 'easeOutExpo', 'easeInOutExpo' => 'easeInOutExpo', 'easeInSine' => 'easeInSine', 'easeOutSine' => 'easeOutSine', 'easeInOutSine' => 'easeInOutSine', 'easeInCirc' => 'easeInCirc', 'easeOutCirc' => 'easeOutCirc', 'easeInOutCirc' => 'easeInOutCirc', 'easeInElastic' => 'easeInElastic', 'easeOutElastic' => 'easeOutElastic', 'easeInOutElastic' => 'easeInOutElastic', 'easeInBack' => 'easeInBack', 'easeOutBack' => 'easeOutBack', 'easeInOutBack' => 'easeInOutBack', 'easeInBounce' => 'easeInBounce', 'easeOutBounce' => 'easeOutBounce', 'easeInOutBounce' => 'easeInOutBounce'), "description" => "Select the animation easing you would like for slide transitions <a href=\"http://jqueryui.com/resources/demos/effect/easing.html\" target=\"_blank\"> Click here </a> to see examples of these.")), "custom_markup" => '
	  <div class="wpb_tabs_holder wpb_holder vc_container_for_children">
	  <ul class="tabs_controls">
	  </ul>
	  %content%
	  </div>', 'default_content' => '
	  [item id="' . $tab_id_1 . '"] Add Content Here [/item]
	  [item id="' . $tab_id_2 . '"] Add Content Here [/item]
	  [item id="' . $tab_id_3 . '"] Add Content Here [/item]
	  ', "js_view" => $vc_is_wp_version_3_6_more ? 'VcTabsView' : 'VcTabsView35'));
    vc_map(array("name" => __("Carousel Item", "js_composer"), "base" => "item", "allowed_container_element" => 'vc_row', "is_container" => true, "content_element" => false, "params" => array(array("type" => "id", "heading" => __("Carousel Item ID", "js_composer"), "param_name" => "id")), 'js_view' => $vc_is_wp_version_3_6_more ? 'VcTabView' : 'VcTabView35'));
    // Social Buttons
    vc_map(array("name" => __("Social Buttons", "js_composer"), "base" => "social_buttons", "icon" => "icon-wpb-social-buttons", "category" => __('Nectar Elements', 'js_composer'), "description" => __('Add social buttons to any page', 'js_composer'), "params" => array(array("type" => 'checkbox', "heading" => __("Display full width?", "js_composer"), "param_name" => "full_width_icons", "description" => __("This will make your social icons expand to fit edge to edge in whatever space they're placed.", "js_composer"), "value" => array(__("Yes", "js_composer") => 'true')), array("type" => 'checkbox', "heading" => __("Nectar Love", "js_composer"), "param_name" => "nectar_love", "value" => array(__("Yes", "js_composer") => 'true')), array("type" => 'checkbox', "heading" => __("Facebook", "js_composer"), "param_name" => "facebook", "value" => array(__("Yes", "js_composer") => 'true')), array("type" => 'checkbox', "heading" => __("Twitter", "js_composer"), "param_name" => "twitter", "value" => array(__("Yes", "js_composer") => 'true')), array("type" => 'checkbox', "heading" => __("Google+", "js_composer"), "param_name" => "google_plus", "value" => array(__("Yes", "js_composer") => 'true')), array("type" => 'checkbox', "heading" => __("LinkedIn", "js_composer"), "param_name" => "linkedin", "value" => array(__("Yes", "js_composer") => 'true')), array("type" => 'checkbox', "heading" => __("Pinterest", "js_composer"), "param_name" => "pinterest", "description" => '', "value" => array(__("Yes", "js_composer") => 'true')))));
    //gallery
    vc_remove_param("vc_gallery", "type");
    vc_remove_param("vc_gallery", "title");
    vc_remove_param("vc_gallery", "interval");
    vc_remove_param("vc_gallery", "images");
    vc_remove_param("vc_gallery", "img_size");
    vc_remove_param("vc_gallery", "onclick");
    vc_remove_param("vc_gallery", "custom_links");
    vc_remove_param("vc_gallery", "custom_links_target");
    vc_remove_param("vc_gallery", "el_class");
    if (nectar_has_shortcode('vc_gallery')) {
        vc_add_param("vc_gallery", array("type" => "dropdown", "heading" => __("Gallery type", "js_composer"), "param_name" => "type", "value" => array(__("Basic Slider Style", "js_composer") => "flexslider_style", __("Nectar Slider Style", "js_composer") => "nectarslider_style", __("Touch Enabled & Spaced", "js_composer") => "flickity_style", __("Image Grid Style", "js_composer") => "image_grid"), 'save_always' => true, "description" => __("Select gallery type.", "js_composer")));
        vc_add_param("vc_gallery", array("type" => "dropdown", "heading" => __("Auto rotate slides", "js_composer"), "param_name" => "interval", "value" => array(3, 5, 10, 15, __("Disable", "js_composer") => 0), "description" => __("Auto rotate slides each X seconds.", "js_composer"), 'save_always' => true, "dependency" => array('element' => "type", 'value' => array('flexslider_fade', 'flexslider_slide', 'nivo'))));
        vc_add_param("vc_gallery", array("type" => "attach_images", "heading" => __("Images", "js_composer"), "param_name" => "images", "value" => "", "description" => __("Select images from media library.", "js_composer")));
        vc_add_param("vc_gallery", array("type" => "textfield", "heading" => __("Image size", "js_composer"), "param_name" => "img_size", "description" => __("Enter image size in pixels - e.g 600x400 (Width x Height) <br/> Or use WordPress image size names such as \"full\"", "js_composer")));
        vc_add_param("vc_gallery", array("type" => 'checkbox', "heading" => __("Flexible Slider Height", "js_composer"), "param_name" => "flexible_slider_height", "description" => __("Would you like the height of your slider to constantly scale in porportion to the screen size?", "js_composer"), "value" => array(__("Yes, please", "js_composer") => 'true'), "dependency" => array('element' => "type", 'value' => array('nectarslider_style'))));
        vc_add_param("vc_gallery", array("type" => 'checkbox', "heading" => __("Hide Arrow Navigation?", "js_composer"), "param_name" => "hide_arrow_navigation", "description" => __("Would you like this slider to hide the arrows on the right and left sides?", "js_composer"), "value" => array(__("Yes, please", "js_composer") => 'true'), "dependency" => array('element' => "type", 'value' => array('nectarslider_style'))));
        vc_add_param("vc_gallery", array("type" => 'checkbox', "heading" => __("Display Bullet Navigation?", "js_composer"), "param_name" => "bullet_navigation", "description" => __("Would you like this slider to display bullets on the bottom?", "js_composer"), "value" => array(__("Yes, please", "js_composer") => 'true'), "dependency" => array('element' => "type", 'value' => array('nectarslider_style'))));
        vc_add_param("vc_gallery", array("type" => "dropdown", "heading" => __("Bullet Navigation Style", "js_composer"), "param_name" => "bullet_navigation_style", "value" => array('See Through & Solid On Active' => 'see_through', 'Solid & Scale On Active' => 'scale'), 'save_always' => true, "description" => 'Please select your overall bullet navigation style here.', "dependency" => array('element' => "type", 'value' => array('nectarslider_style'))));
        vc_add_param("vc_gallery", array("type" => 'checkbox', "heading" => __("Display Title/Caption?", "js_composer"), "param_name" => "display_title_caption", "value" => array(__("Yes", "js_composer") => 'true'), "dependency" => array('element' => "type", 'value' => array('image_grid'))));
        vc_add_param("vc_gallery", array("type" => "dropdown", "heading" => __("Layout", "js_composer"), "param_name" => "layout", "admin_label" => true, "value" => array("3 Columns" => "3", "4 Columns" => "4", "Fullwidth" => "fullwidth"), 'save_always' => true, "description" => __("Please select the layout you would like for your gallery ", "js_composer"), "dependency" => array('element' => "type", 'value' => array('image_grid'))));
        vc_add_param("vc_gallery", array("type" => 'checkbox', "heading" => __("Constrain Max Columns to 4?", "js_composer"), "param_name" => "constrain_max_cols", "description" => __("This will change the max columns to 4 (default is 5 for fullwidth). Activating this will make it easier to create a grid with no empty spaces at the end of the list on all screen sizes. (Won't be used if masonry layout is active)", "js_composer"), "value" => array(__("Yes, please", "js_composer") => 'true'), "dependency" => array('element' => "layout", 'value' => 'fullwidth')));
        vc_add_param("vc_gallery", array("type" => "dropdown", "heading" => __("Gallery Style", "js_composer"), "param_name" => "gallery_style", "admin_label" => true, "value" => array("Meta below thumb w/ links on hover" => "1", "Meta on hover + entire thumb link" => "2", "Title overlaid w/ zoom effect on hover" => "3", 'Title overlaid w/ zoom effect on hover alt' => '5', "Meta from bottom on hover + entire thumb link" => "4"), 'save_always' => true, "description" => __("Please select the style you would like your gallery to display in ", "js_composer"), "dependency" => array('element' => "type", 'value' => array('image_grid'))));
        vc_add_param("vc_gallery", array("type" => "dropdown", "heading" => __("On click", "js_composer"), "param_name" => "onclick", "value" => array(__("Do nothing", "js_composer") => "link_no", __("Open prettyPhoto", "js_composer") => "link_image", __("Open custom link", "js_composer") => "custom_link"), "description" => __("What to do when slide is clicked?", "js_composer"), 'save_always' => true, "dependency" => array('element' => "type", 'value' => array('nectarslider_style', 'flexslider_style', 'flickity_style'))));
        vc_add_param("vc_gallery", array("type" => "exploded_textarea", "heading" => __("Custom links", "js_composer"), "param_name" => "custom_links", "description" => __('Enter links for each slide here. Divide links with linebreaks (Enter).', 'js_composer'), "dependency" => array('element' => "onclick", 'value' => array('custom_link'))));
        vc_add_param("vc_gallery", array("type" => "dropdown", "heading" => __("Custom link target", "js_composer"), "param_name" => "custom_links_target", "description" => __('Select where to open  custom links.', 'js_composer'), "dependency" => array('element' => "onclick", 'value' => array('custom_link')), 'save_always' => true, 'value' => array(__("Same window", "js_composer") => "_self", __("New window", "js_composer") => "_blank")));
        vc_add_param("vc_gallery", array("type" => "textfield", "heading" => __("Extra class name", "js_composer"), "param_name" => "el_class", "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.", "js_composer")));
    }
    $fa_icons = array('icon-glass' => 'icon-glass', 'icon-music' => 'icon-music', 'icon-search' => 'icon-search', 'icon-envelope-alt' => 'icon-envelope-alt', 'icon-heart' => 'icon-heart', 'icon-star' => 'icon-star', 'icon-star-empty' => 'icon-star-empty', 'icon-user' => 'icon-user', 'icon-film' => 'icon-film', 'icon-th-large' => 'icon-th-large', 'icon-th' => 'icon-th', 'icon-th-list' => 'icon-th-list', 'icon-ok' => 'icon-ok', 'icon-remove' => 'icon-remove', 'icon-zoom-in' => 'icon-zoom-in', 'icon-zoom-out' => 'icon-zoom-out', 'icon-off' => 'icon-off', 'icon-signal' => 'icon-signal', 'icon-cog' => 'icon-cog', 'icon-trash' => 'icon-trash', 'icon-home' => 'icon-home', 'icon-file-alt' => 'icon-file-alt', 'icon-time' => 'icon-time', 'icon-road' => 'icon-road', 'icon-download-alt' => 'icon-download-alt', 'icon-download' => 'icon-download', 'icon-upload' => 'icon-upload', 'icon-inbox' => 'icon-inbox', 'icon-play-circle' => 'icon-play-circle', 'icon-repeat' => 'icon-repeat', 'icon-refresh' => 'icon-refresh', 'icon-list-alt' => 'icon-list-alt', 'icon-lock' => 'icon-lock', 'icon-flag' => 'icon-flag', 'icon-headphones' => 'icon-headphones', 'icon-volume-off' => 'icon-volume-off', 'icon-volume-down' => 'icon-volume-down', 'icon-volume-up' => 'icon-volume-up', 'icon-qrcode' => 'icon-qrcode', 'icon-barcode' => 'icon-barcode', 'icon-tag' => 'icon-tag', 'icon-tags' => 'icon-tags', 'icon-book' => 'icon-book', 'icon-bookmark' => 'icon-bookmark', 'icon-print' => 'icon-print', 'icon-camera' => 'icon-camera', 'icon-font' => 'icon-font', 'icon-bold' => 'icon-bold', 'icon-italic' => 'icon-italic', 'icon-text-height' => 'icon-text-height', 'icon-text-width' => 'icon-text-width', 'icon-align-left' => 'icon-align-left', 'icon-align-center' => 'icon-align-center', 'icon-align-right' => 'icon-align-right', 'icon-align-justify' => 'icon-align-justify', 'icon-list' => 'icon-list', 'icon-indent-left' => 'icon-indent-left', 'icon-indent-right' => 'icon-indent-right', 'icon-facetime-video' => 'icon-facetime-video', 'icon-picture' => 'icon-picture', 'icon-pencil' => 'icon-pencil', 'icon-map-marker' => 'icon-map-marker', 'icon-adjust' => 'icon-adjust', 'icon-tint' => 'icon-tint', 'icon-edit' => 'icon-edit', 'icon-share' => 'icon-share', 'icon-check' => 'icon-check', 'icon-move' => 'icon-move', 'icon-step-backward' => 'icon-step-backward', 'icon-fast-backward' => 'icon-fast-backward', 'icon-backward' => 'icon-backward', 'icon-play' => 'icon-play', 'icon-pause' => 'icon-pause', 'icon-stop' => 'icon-stop', 'icon-forward' => 'icon-forward', 'icon-fast-forward' => 'icon-fast-forward', 'icon-step-forward' => 'icon-step-forward', 'icon-eject' => 'icon-eject', 'icon-chevron-left' => 'icon-chevron-left', 'icon-chevron-right' => 'icon-chevron-right', 'icon-plus-sign' => 'icon-plus-sign', 'icon-minus-sign' => 'icon-minus-sign', 'icon-remove-sign' => 'icon-remove-sign', 'icon-ok-sign' => 'icon-ok-sign', 'icon-question-sign' => 'icon-question-sign', 'icon-info-sign' => 'icon-info-sign', 'icon-screenshot' => 'icon-screenshot', 'icon-remove-circle' => 'icon-remove-circle', 'icon-ok-circle' => 'icon-ok-circle', 'icon-ban-circle' => 'icon-ban-circle', 'icon-arrow-left' => 'icon-arrow-left', 'icon-arrow-right' => 'icon-arrow-right', 'icon-arrow-up' => 'icon-arrow-up', 'icon-arrow-down' => 'icon-arrow-down', 'icon-share-alt' => 'icon-share-alt', 'icon-resize-full' => 'icon-resize-full', 'icon-resize-small' => 'icon-resize-small', 'icon-plus' => 'icon-plus', 'icon-minus' => 'icon-minus', 'icon-asterisk' => 'icon-asterisk', 'icon-exclamation-sign' => 'icon-exclamation-sign', 'icon-gift' => 'icon-gift', 'icon-leaf' => 'icon-leaf', 'icon-fire' => 'icon-fire', 'icon-eye-open' => 'icon-eye-open', 'icon-eye-close' => 'icon-eye-close', 'icon-warning-sign' => 'icon-warning-sign', 'icon-plane' => 'icon-plane', 'icon-calendar' => 'icon-calendar', 'icon-random' => 'icon-random', 'icon-comment' => 'icon-comment', 'icon-magnet' => 'icon-magnet', 'icon-chevron-up' => 'icon-chevron-up', 'icon-chevron-down' => 'icon-chevron-down', 'icon-retweet' => 'icon-retweet', 'icon-shopping-cart' => 'icon-shopping-cart', 'icon-folder-close' => 'icon-folder-close', 'icon-folder-open' => 'icon-folder-open', 'icon-resize-vertical' => 'icon-resize-vertical', 'icon-resize-horizontal' => 'icon-resize-horizontal', 'icon-bar-chart' => 'icon-bar-chart', 'icon-twitter-sign' => 'icon-twitter-sign', 'icon-facebook-sign' => 'icon-facebook-sign', 'icon-camera-retro' => 'icon-camera-retro', 'icon-key' => 'icon-key', 'icon-cogs' => 'icon-cogs', 'icon-comments' => 'icon-comments', 'icon-thumbs-up-alt' => 'icon-thumbs-up-alt', 'icon-thumbs-down-alt' => 'icon-thumbs-down-alt', 'icon-star-half' => 'icon-star-half', 'icon-heart-empty' => 'icon-heart-empty', 'icon-signout' => 'icon-signout', 'icon-linkedin-sign' => 'icon-linkedin-sign', 'icon-pushpin' => 'icon-pushpin', 'icon-external-link' => 'icon-external-link', 'icon-signin' => 'icon-signin', 'icon-trophy' => 'icon-trophy', 'icon-github-sign' => 'icon-github-sign', 'icon-upload-alt' => 'icon-upload-alt', 'icon-lemon' => 'icon-lemon', 'icon-phone' => 'icon-phone', 'icon-check-empty' => 'icon-check-empty', 'icon-bookmark-empty' => 'icon-bookmark-empty', 'icon-phone-sign' => 'icon-phone-sign', 'icon-twitter' => 'icon-twitter', 'icon-facebook' => 'icon-facebook', 'icon-github' => 'icon-github', 'icon-unlock' => 'icon-unlock', 'icon-credit-card' => 'icon-credit-card', 'icon-rss' => 'icon-rss', 'icon-hdd' => 'icon-hdd', 'icon-bullhorn' => 'icon-bullhorn', 'icon-bell' => 'icon-bell', 'icon-certificate' => 'icon-certificate', 'icon-hand-right' => 'icon-hand-right', 'icon-hand-left' => 'icon-hand-left', 'icon-hand-up' => 'icon-hand-up', 'icon-hand-down' => 'icon-hand-down', 'icon-circle-arrow-left' => 'icon-circle-arrow-left', 'icon-circle-arrow-right' => 'icon-circle-arrow-right', 'icon-circle-arrow-up' => 'icon-circle-arrow-up', 'icon-circle-arrow-down' => 'icon-circle-arrow-down', 'icon-globe' => 'icon-globe', 'icon-wrench' => 'icon-wrench', 'icon-tasks' => 'icon-tasks', 'icon-filter' => 'icon-filter', 'icon-briefcase' => 'icon-briefcase', 'icon-fullscreen' => 'icon-fullscreen', 'icon-group' => 'icon-group', 'icon-link' => 'icon-link', 'icon-cloud' => 'icon-cloud', 'icon-beaker' => 'icon-beaker', 'icon-cut' => 'icon-cut', 'icon-copy' => 'icon-copy', 'icon-paper-clip' => 'icon-paper-clip', 'icon-save' => 'icon-save', 'icon-sign-blank' => 'icon-sign-blank', 'icon-reorder' => 'icon-reorder', 'icon-list-ul' => 'icon-list-ul', 'icon-list-ol' => 'icon-list-ol', 'icon-strikethrough' => 'icon-strikethrough', 'icon-underline' => 'icon-underline', 'icon-table' => 'icon-table', 'icon-magic' => 'icon-magic', 'icon-truck' => 'icon-truck', 'icon-pinterest' => 'icon-pinterest', 'icon-pinterest-sign' => 'icon-pinterest-sign', 'icon-google-plus-sign' => 'icon-google-plus-sign', 'icon-google-plus' => 'icon-google-plus', 'icon-money' => 'icon-money', 'icon-caret-down' => 'icon-caret-down', 'icon-caret-up' => 'icon-caret-up', 'icon-caret-left' => 'icon-caret-left', 'icon-caret-right' => 'icon-caret-right', 'icon-columns' => 'icon-columns', 'icon-sort' => 'icon-sort', 'icon-sort-down' => 'icon-sort-down', 'icon-sort-up' => 'icon-sort-up', 'icon-envelope' => 'icon-envelope', 'icon-linkedin' => 'icon-linkedin', 'icon-undo' => 'icon-undo', 'icon-legal' => 'icon-legal', 'icon-dashboard' => 'icon-dashboard', 'icon-comment-alt' => 'icon-comment-alt', 'icon-comments-alt' => 'icon-comments-alt', 'icon-bolt' => 'icon-bolt', 'icon-sitemap' => 'icon-sitemap', 'icon-umbrella' => 'icon-umbrella', 'icon-paste' => 'icon-paste', 'icon-lightbulb' => 'icon-lightbulb', 'icon-exchange' => 'icon-exchange', 'icon-cloud-download' => 'icon-cloud-download', 'icon-cloud-upload' => 'icon-cloud-upload', 'icon-user-md' => 'icon-user-md', 'icon-stethoscope' => 'icon-stethoscope', 'icon-suitcase' => 'icon-suitcase', 'icon-bell-alt' => 'icon-bell-alt', 'icon-coffee' => 'icon-coffee', 'icon-food' => 'icon-food', 'icon-file-text-alt' => 'icon-file-text-alt', 'icon-building' => 'icon-building', 'icon-hospital' => 'icon-hospital', 'icon-ambulance' => 'icon-ambulance', 'icon-medkit' => 'icon-medkit', 'icon-fighter-jet' => 'icon-fighter-jet', 'icon-beer' => 'icon-beer', 'icon-h-sign' => 'icon-h-sign', 'icon-plus-sign-alt' => 'icon-plus-sign-alt', 'icon-double-angle-left' => 'icon-double-angle-left', 'icon-double-angle-right' => 'icon-double-angle-right', 'icon-double-angle-up' => 'icon-double-angle-up', 'icon-double-angle-down' => 'icon-double-angle-down', 'icon-angle-left' => 'icon-angle-left', 'icon-angle-right' => 'icon-angle-right', 'icon-angle-up' => 'icon-angle-up', 'icon-angle-down' => 'icon-angle-down', 'icon-desktop' => 'icon-desktop', 'icon-laptop' => 'icon-laptop', 'icon-tablet' => 'icon-tablet', 'icon-mobile-phone' => 'icon-mobile-phone', 'icon-circle-blank' => 'icon-circle-blank', 'icon-quote-left' => 'icon-quote-left', 'icon-quote-right' => 'icon-quote-right', 'icon-spinner' => 'icon-spinner', 'icon-circle' => 'icon-circle', 'icon-reply' => 'icon-reply', 'icon-github-alt' => 'icon-github-alt', 'icon-folder-close-alt' => 'icon-folder-close-alt', 'icon-folder-open-alt' => 'icon-folder-open-alt', 'icon-expand-alt' => 'icon-expand-alt', 'icon-collapse-alt' => 'icon-collapse-alt', 'icon-smile' => 'icon-smile', 'icon-frown' => 'icon-frown', 'icon-meh' => 'icon-meh', 'icon-gamepad' => 'icon-gamepad', 'icon-keyboard' => 'icon-keyboard', 'icon-flag-alt' => 'icon-flag-alt', 'icon-flag-checkered' => 'icon-flag-checkered', 'icon-terminal' => 'icon-terminal', 'icon-code' => 'icon-code', 'icon-reply-all' => 'icon-reply-all', 'icon-mail-reply-all' => 'icon-mail-reply-all', 'icon-star-half-empty' => 'icon-star-half-empty', 'icon-location-arrow' => 'icon-location-arrow', 'icon-crop' => 'icon-crop', 'icon-code-fork' => 'icon-code-fork', 'icon-unlink' => 'icon-unlink', 'icon-question' => 'icon-question', 'icon-info' => 'icon-info', 'icon-exclamation' => 'icon-exclamation', 'icon-superscript' => 'icon-superscript', 'icon-subscript' => 'icon-subscript', 'icon-eraser' => 'icon-eraser', 'icon-puzzle-piece' => 'icon-puzzle-piece', 'icon-microphone' => 'icon-microphone', 'icon-microphone-off' => 'icon-microphone-off', 'icon-shield' => 'icon-shield', 'icon-calendar-empty' => 'icon-calendar-empty', 'icon-fire-extinguisher' => 'icon-fire-extinguisher', 'icon-rocket' => 'icon-rocket', 'icon-maxcdn' => 'icon-maxcdn', 'icon-chevron-sign-left' => 'icon-chevron-sign-left', 'icon-chevron-sign-right' => 'icon-chevron-sign-right', 'icon-chevron-sign-up' => 'icon-chevron-sign-up', 'icon-chevron-sign-down' => 'icon-chevron-sign-down', 'icon-html5' => 'icon-html5', 'icon-css3' => 'icon-css3', 'icon-anchor' => 'icon-anchor', 'icon-unlock-alt' => 'icon-unlock-alt', 'icon-bullseye' => 'icon-bullseye', 'icon-ellipsis-horizontal' => 'icon-ellipsis-horizontal', 'icon-ellipsis-vertical' => 'icon-ellipsis-vertical', 'icon-rss-sign' => 'icon-rss-sign', 'icon-play-sign' => 'icon-play-sign', 'icon-ticket' => 'icon-ticket', 'icon-minus-sign-alt' => 'icon-minus-sign-alt', 'icon-check-minus' => 'icon-check-minus', 'icon-level-up' => 'icon-level-up', 'icon-level-down' => 'icon-level-down', 'icon-check-sign' => 'icon-check-sign', 'icon-edit-sign' => 'icon-edit-sign', 'icon-external-link-sign' => 'icon-external-link-sign', 'icon-share-sign' => 'icon-share-sign', 'icon-compass' => 'icon-compass', 'icon-collapse' => 'icon-collapse', 'icon-collapse-top' => 'icon-collapse-top', 'icon-expand' => 'icon-expand', 'icon-eur' => 'icon-eur', 'icon-gbp' => 'icon-gbp', 'icon-usd' => 'icon-usd', 'icon-inr' => 'icon-inr', 'icon-jpy' => 'icon-jpy', 'icon-cny' => 'icon-cny', 'icon-krw' => 'icon-krw', 'icon-btc' => 'icon-btc', 'icon-file' => 'icon-file', 'icon-file-text' => 'icon-file-text', 'icon-sort-by-alphabet' => 'icon-sort-by-alphabet', 'icon-sort-by-alphabet-alt' => 'icon-sort-by-alphabet-alt', 'icon-sort-by-attributes' => 'icon-sort-by-attributes', 'icon-sort-by-attributes-alt' => 'icon-sort-by-attributes-alt', 'icon-sort-by-order' => 'icon-sort-by-order', 'icon-sort-by-order-alt' => 'icon-sort-by-order-alt', 'icon-thumbs-up' => 'icon-thumbs-up', 'icon-thumbs-down' => 'icon-thumbs-down', 'icon-youtube-sign' => 'icon-youtube-sign', 'icon-youtube' => 'icon-youtube', 'icon-xing' => 'icon-xing', 'icon-xing-sign' => 'icon-xing-sign', 'icon-youtube-play' => 'icon-youtube-play', 'icon-dropbox' => 'icon-dropbox', 'icon-stackexchange' => 'icon-stackexchange', 'icon-instagram' => 'icon-instagram', 'icon-flickr' => 'icon-flickr', 'icon-adn' => 'icon-adn', 'icon-bitbucket' => 'icon-bitbucket', 'icon-bitbucket-sign' => 'icon-bitbucket-sign', 'icon-tumblr' => 'icon-tumblr', 'icon-tumblr-sign' => 'icon-tumblr-sign', 'icon-long-arrow-down' => 'icon-long-arrow-down', 'icon-long-arrow-up' => 'icon-long-arrow-up', 'icon-long-arrow-left' => 'icon-long-arrow-left', 'icon-long-arrow-right' => 'icon-long-arrow-right', 'icon-apple' => 'icon-apple', 'icon-windows' => 'icon-windows', 'icon-android' => 'icon-android', 'icon-linux' => 'icon-linux', 'icon-dribbble' => 'icon-dribbble', 'icon-skype' => 'icon-skype', 'icon-foursquare' => 'icon-foursquare', 'icon-trello' => 'icon-trello', 'icon-female' => 'icon-female', 'icon-male' => 'icon-male', 'icon-gittip' => 'icon-gittip', 'icon-sun' => 'icon-sun', 'icon-moon' => 'icon-moon', 'icon-archive' => 'icon-archive', 'icon-bug' => 'icon-bug', 'icon-vk' => 'icon-vk', 'icon-weibo' => 'icon-weibo', 'icon-renren' => 'icon-renren');
    $steadysets = array('steadysets-icon-type' => 'steadysets-icon-type', 'steadysets-icon-box' => 'steadysets-icon-box', 'steadysets-icon-archive' => 'steadysets-icon-archive', 'steadysets-icon-envelope' => 'steadysets-icon-envelope', 'steadysets-icon-email' => 'steadysets-icon-email', 'steadysets-icon-files' => 'steadysets-icon-files', 'steadysets-icon-uniE606' => 'steadysets-icon-uniE606', 'steadysets-icon-connection-empty' => 'steadysets-icon-connection-empty', 'steadysets-icon-connection-25' => 'steadysets-icon-connection-25', 'steadysets-icon-connection-50' => 'steadysets-icon-connection-50', 'steadysets-icon-connection-75' => 'steadysets-icon-connection-75', 'steadysets-icon-connection-full' => 'steadysets-icon-connection-full', 'steadysets-icon-microphone' => 'steadysets-icon-microphone', 'steadysets-icon-microphone-off' => 'steadysets-icon-microphone-off', 'steadysets-icon-book' => 'steadysets-icon-book', 'steadysets-icon-cloud' => 'steadysets-icon-cloud', 'steadysets-icon-book2' => 'steadysets-icon-book2', 'steadysets-icon-star' => 'steadysets-icon-star', 'steadysets-icon-phone-portrait' => 'steadysets-icon-phone-portrait', 'steadysets-icon-phone-landscape' => 'steadysets-icon-phone-landscape', 'steadysets-icon-tablet' => 'steadysets-icon-tablet', 'steadysets-icon-tablet-landscape' => 'steadysets-icon-tablet-landscape', 'steadysets-icon-laptop' => 'steadysets-icon-laptop', 'steadysets-icon-uniE617' => 'steadysets-icon-uniE617', 'steadysets-icon-barbell' => 'steadysets-icon-barbell', 'steadysets-icon-stopwatch' => 'steadysets-icon-stopwatch', 'steadysets-icon-atom' => 'steadysets-icon-atom', 'steadysets-icon-syringe' => 'steadysets-icon-syringe', 'steadysets-icon-pencil' => 'steadysets-icon-pencil', 'steadysets-icon-chart' => 'steadysets-icon-chart', 'steadysets-icon-bars' => 'steadysets-icon-bars', 'steadysets-icon-cube' => 'steadysets-icon-cube', 'steadysets-icon-image' => 'steadysets-icon-image', 'steadysets-icon-crop' => 'steadysets-icon-crop', 'steadysets-icon-graph' => 'steadysets-icon-graph', 'steadysets-icon-select' => 'steadysets-icon-select', 'steadysets-icon-bucket' => 'steadysets-icon-bucket', 'steadysets-icon-mug' => 'steadysets-icon-mug', 'steadysets-icon-clipboard' => 'steadysets-icon-clipboard', 'steadysets-icon-lab' => 'steadysets-icon-lab', 'steadysets-icon-bones' => 'steadysets-icon-bones', 'steadysets-icon-pill' => 'steadysets-icon-pill', 'steadysets-icon-bolt' => 'steadysets-icon-bolt', 'steadysets-icon-health' => 'steadysets-icon-health', 'steadysets-icon-map-marker' => 'steadysets-icon-map-marker', 'steadysets-icon-stack' => 'steadysets-icon-stack', 'steadysets-icon-newspaper' => 'steadysets-icon-newspaper', 'steadysets-icon-uniE62F' => 'steadysets-icon-uniE62F', 'steadysets-icon-coffee' => 'steadysets-icon-coffee', 'steadysets-icon-bill' => 'steadysets-icon-bill', 'steadysets-icon-sun' => 'steadysets-icon-sun', 'steadysets-icon-vcard' => 'steadysets-icon-vcard', 'steadysets-icon-shorts' => 'steadysets-icon-shorts', 'steadysets-icon-drink' => 'steadysets-icon-drink', 'steadysets-icon-diamond' => 'steadysets-icon-diamond', 'steadysets-icon-bag' => 'steadysets-icon-bag', 'steadysets-icon-calculator' => 'steadysets-icon-calculator', 'steadysets-icon-credit-cards' => 'steadysets-icon-credit-cards', 'steadysets-icon-microwave-oven' => 'steadysets-icon-microwave-oven', 'steadysets-icon-camera' => 'steadysets-icon-camera', 'steadysets-icon-share' => 'steadysets-icon-share', 'steadysets-icon-bullhorn' => 'steadysets-icon-bullhorn', 'steadysets-icon-user' => 'steadysets-icon-user', 'steadysets-icon-users' => 'steadysets-icon-users', 'steadysets-icon-user2' => 'steadysets-icon-user2', 'steadysets-icon-users2' => 'steadysets-icon-users2', 'steadysets-icon-unlocked' => 'steadysets-icon-unlocked', 'steadysets-icon-unlocked2' => 'steadysets-icon-unlocked2', 'steadysets-icon-lock' => 'steadysets-icon-lock', 'steadysets-icon-forbidden' => 'steadysets-icon-forbidden', 'steadysets-icon-switch' => 'steadysets-icon-switch', 'steadysets-icon-meter' => 'steadysets-icon-meter', 'steadysets-icon-flag' => 'steadysets-icon-flag', 'steadysets-icon-home' => 'steadysets-icon-home', 'steadysets-icon-printer' => 'steadysets-icon-printer', 'steadysets-icon-clock' => 'steadysets-icon-clock', 'steadysets-icon-calendar' => 'steadysets-icon-calendar', 'steadysets-icon-comment' => 'steadysets-icon-comment', 'steadysets-icon-chat-3' => 'steadysets-icon-chat-3', 'steadysets-icon-chat-2' => 'steadysets-icon-chat-2', 'steadysets-icon-chat-1' => 'steadysets-icon-chat-1', 'steadysets-icon-chat' => 'steadysets-icon-chat', 'steadysets-icon-zoom-out' => 'steadysets-icon-zoom-out', 'steadysets-icon-zoom-in' => 'steadysets-icon-zoom-in', 'steadysets-icon-search' => 'steadysets-icon-search', 'steadysets-icon-trashcan' => 'steadysets-icon-trashcan', 'steadysets-icon-tag' => 'steadysets-icon-tag', 'steadysets-icon-download' => 'steadysets-icon-download', 'steadysets-icon-paperclip' => 'steadysets-icon-paperclip', 'steadysets-icon-checkbox' => 'steadysets-icon-checkbox', 'steadysets-icon-checkbox-checked' => 'steadysets-icon-checkbox-checked', 'steadysets-icon-checkmark' => 'steadysets-icon-checkmark', 'steadysets-icon-refresh' => 'steadysets-icon-refresh', 'steadysets-icon-reload' => 'steadysets-icon-reload', 'steadysets-icon-arrow-right' => 'steadysets-icon-arrow-right', 'steadysets-icon-arrow-down' => 'steadysets-icon-arrow-down', 'steadysets-icon-arrow-up' => 'steadysets-icon-arrow-up', 'steadysets-icon-arrow-left' => 'steadysets-icon-arrow-left', 'steadysets-icon-settings' => 'steadysets-icon-settings', 'steadysets-icon-battery-full' => 'steadysets-icon-battery-full', 'steadysets-icon-battery-75' => 'steadysets-icon-battery-75', 'steadysets-icon-battery-50' => 'steadysets-icon-battery-50', 'steadysets-icon-battery-25' => 'steadysets-icon-battery-25', 'steadysets-icon-battery-empty' => 'steadysets-icon-battery-empty', 'steadysets-icon-battery-charging' => 'steadysets-icon-battery-charging', 'steadysets-icon-uniE669' => 'steadysets-icon-uniE669', 'steadysets-icon-grid' => 'steadysets-icon-grid', 'steadysets-icon-list' => 'steadysets-icon-list', 'steadysets-icon-wifi-low' => 'steadysets-icon-wifi-low', 'steadysets-icon-folder-check' => 'steadysets-icon-folder-check', 'steadysets-icon-folder-settings' => 'steadysets-icon-folder-settings', 'steadysets-icon-folder-add' => 'steadysets-icon-folder-add', 'steadysets-icon-folder' => 'steadysets-icon-folder', 'steadysets-icon-window' => 'steadysets-icon-window', 'steadysets-icon-windows' => 'steadysets-icon-windows', 'steadysets-icon-browser' => 'steadysets-icon-browser', 'steadysets-icon-file-broken' => 'steadysets-icon-file-broken', 'steadysets-icon-align-justify' => 'steadysets-icon-align-justify', 'steadysets-icon-align-center' => 'steadysets-icon-align-center', 'steadysets-icon-align-right' => 'steadysets-icon-align-right', 'steadysets-icon-align-left' => 'steadysets-icon-align-left', 'steadysets-icon-file' => 'steadysets-icon-file', 'steadysets-icon-file-add' => 'steadysets-icon-file-add', 'steadysets-icon-file-settings' => 'steadysets-icon-file-settings', 'steadysets-icon-mute' => 'steadysets-icon-mute', 'steadysets-icon-heart' => 'steadysets-icon-heart', 'steadysets-icon-enter' => 'steadysets-icon-enter', 'steadysets-icon-volume-decrease' => 'steadysets-icon-volume-decrease', 'steadysets-icon-wifi-mid' => 'steadysets-icon-wifi-mid', 'steadysets-icon-volume' => 'steadysets-icon-volume', 'steadysets-icon-bookmark' => 'steadysets-icon-bookmark', 'steadysets-icon-screen' => 'steadysets-icon-screen', 'steadysets-icon-map' => 'steadysets-icon-map', 'steadysets-icon-measure' => 'steadysets-icon-measure', 'steadysets-icon-eyedropper' => 'steadysets-icon-eyedropper', 'steadysets-icon-support' => 'steadysets-icon-support', 'steadysets-icon-phone' => 'steadysets-icon-phone', 'steadysets-icon-email2' => 'steadysets-icon-email2', 'steadysets-icon-volume-increase' => 'steadysets-icon-volume-increase', 'steadysets-icon-wifi-full' => 'steadysets-icon-wifi-full');
    $linecons = array('linecon-icon-heart' => 'linecon-icon-heart', 'linecon-icon-cloud' => 'linecon-icon-cloud', 'linecon-icon-star' => 'linecon-icon-star', 'linecon-icon-tv' => 'linecon-icon-tv', 'linecon-icon-sound' => 'linecon-icon-sound', 'linecon-icon-video' => 'linecon-icon-video', 'linecon-icon-trash' => 'linecon-icon-trash', 'linecon-icon-user' => 'linecon-icon-user', 'linecon-icon-key' => 'linecon-icon-key', 'linecon-icon-search' => 'linecon-icon-search', 'linecon-icon-eye' => 'linecon-icon-eye', 'linecon-icon-bubble' => 'linecon-icon-bubble', 'linecon-icon-stack' => 'linecon-icon-stack', 'linecon-icon-cup' => 'linecon-icon-cup', 'linecon-icon-phone' => 'linecon-icon-phone', 'linecon-icon-news' => 'linecon-icon-news', 'linecon-icon-mail' => 'linecon-icon-mail', 'linecon-icon-like' => 'linecon-icon-like', 'linecon-icon-photo' => 'linecon-icon-photo', 'linecon-icon-note' => 'linecon-icon-note', 'linecon-icon-food' => 'linecon-icon-food', 'linecon-icon-t-shirt' => 'linecon-icon-t-shirt', 'linecon-icon-fire' => 'linecon-icon-fire', 'linecon-icon-clip' => 'linecon-icon-clip', 'linecon-icon-shop' => 'linecon-icon-shop', 'linecon-icon-calendar' => 'linecon-icon-calendar', 'linecon-icon-wallet' => 'linecon-icon-wallet', 'linecon-icon-vynil' => 'linecon-icon-vynil', 'linecon-icon-truck' => 'linecon-icon-truck', 'linecon-icon-world' => 'linecon-icon-world', 'linecon-icon-clock' => 'linecon-icon-clock', 'linecon-icon-paperplane' => 'linecon-icon-paperplane', 'linecon-icon-params' => 'linecon-icon-params', 'linecon-icon-banknote' => 'linecon-icon-banknote', 'linecon-icon-data' => 'linecon-icon-data', 'linecon-icon-music' => 'linecon-icon-music', 'linecon-icon-megaphone' => 'linecon-icon-megaphone', 'linecon-icon-study' => 'linecon-icon-study', 'linecon-icon-lab' => 'linecon-icon-lab', 'linecon-icon-location' => 'linecon-icon-location', 'linecon-icon-display' => 'linecon-icon-display', 'linecon-icon-diamond' => 'linecon-icon-diamond', 'linecon-icon-pen' => 'linecon-icon-pen', 'linecon-icon-bulb' => 'linecon-icon-bulb', 'linecon-icon-lock' => 'linecon-icon-lock', 'linecon-icon-tag' => 'linecon-icon-tag', 'linecon-icon-camera' => 'linecon-icon-camera', 'linecon-icon-settings' => 'linecon-icon-settings');
    // Icon list
    $icon_arr = array_merge($fa_icons, $steadysets, $linecons);
    vc_map(array("name" => __("Text With Icon", "js_composer"), "base" => "text-with-icon", "icon" => "icon-wpb-text-with-icon", "category" => __('Nectar Elements', 'js_composer'), "weight" => 1, "description" => __('Add a text block with stylish icon', 'js_composer'), "params" => array(array("type" => "dropdown", "heading" => __("Icon Type", "js_composer"), "param_name" => "icon_type", "admin_label" => true, "value" => array("Font Icon" => "font_icon", "Image Icon" => "image_icon"), 'save_always' => true, "description" => __("Please select type of icon you would like for the text block", "js_composer")), array("type" => "dropdown", "heading" => __("Icon", "js_composer"), "param_name" => "icon", "admin_label" => false, "value" => $icon_arr, 'save_always' => true, "description" => __("Please select the icon you wish to use", "js_composer"), "dependency" => array('element' => "icon_type", 'value' => array('font_icon'))), array("type" => "dropdown", "heading" => __("Color", "js_composer"), "param_name" => "color", "admin_label" => false, 'save_always' => true, "value" => array("Accent-Color" => "Accent-Color", "Extra-Color-1" => "Extra-Color-1", "Extra-Color-2" => "Extra-Color-2", "Extra-Color-3" => "Extra-Color-3"), "description" => __("Please select the color you wish for icon to display in", "js_composer"), "dependency" => array('element' => "icon_type", 'value' => array('font_icon'))), array("type" => "attach_image", "class" => "", "heading" => "Icon Image", "param_name" => "icon_image", "value" => "", "description" => "", "dependency" => array('element' => "icon_type", 'value' => array('image_icon'))), array("type" => "textarea_html", "holder" => "div", "heading" => __("Text Content", "js_composer"), "param_name" => "content", "value" => __("", "js_composer")))));
    vc_map(array("name" => __("Fancy Unordered List", "js_composer"), "base" => "fancy-ul", "icon" => "icon-wpb-fancy-ul", "category" => __('Nectar Elements', 'js_composer'), "weight" => 1, "description" => __('Make your lists appealing', 'js_composer'), "params" => array(array("type" => "dropdown", "heading" => __("Icon Type", "js_composer"), "param_name" => "icon_type", "admin_label" => false, 'save_always' => true, "value" => array("Standard Dash" => "standard_dash", "Font Icon" => "font_icon"), "description" => __("Please select type of icon you would like for your fancy list", "js_composer")), array("type" => "dropdown", "heading" => __("Icon", "js_composer"), "param_name" => "icon", "admin_label" => false, "value" => $icon_arr, 'save_always' => true, "description" => __("Please select the icon you wish to use", "js_composer"), "dependency" => array('element' => "icon_type", 'value' => array('font_icon'))), array("type" => "dropdown", "heading" => __("Color", "js_composer"), "param_name" => "color", "admin_label" => false, 'save_always' => true, "value" => array("Accent-Color" => "Accent-Color", "Extra-Color-1" => "Extra-Color-1", "Extra-Color-2" => "Extra-Color-2", "Extra-Color-3" => "Extra-Color-3"), "description" => __("Please select the color you wish for icon to display in", "js_composer")), array("type" => "checkbox", "class" => "", "heading" => "Enable Animation", "value" => array("Enable Animation?" => "true"), "param_name" => "enable_animation", "description" => "This will cause your list items to animate in one by one"), array("type" => "textarea_html", "holder" => "div", "heading" => __("Text Content", "js_composer"), "param_name" => "content", "value" => __("", "js_composer"), "description" => __("Please use the Unordered List button <img src='" . get_template_directory_uri() . "/nectar/assets/img/icons/ul.png' alt='unordered list' /> on the editor to create the points of your fancy list.", "js_composer")))));
}
//vc_map_update('vc_raw_html', $setting);
// [vc_raw_js]
$setting = array('category' => 'Content');
//vc_map_update('vc_raw_js', $setting);
// [vc_single_image]
vc_remove_param("vc_single_image", "title");
// [vc_gallery]
/*vc_remove_param("vc_gallery", "title");
vc_remove_param("vc_gallery", "type");
vc_remove_param("vc_gallery", "interval");*/
// [vc_message]
vc_remove_param("vc_message", "style");
// [vc_gmaps]
vc_remove_param("vc_gmaps", "title");
// [vc_accordion]
vc_remove_param("vc_accordion", "title");
// [vc_progress_bar]
vc_remove_param("vc_progress_bar", "title");
vc_remove_param("vc_progress_bar", "options");
// [vc_pie]
vc_remove_param("vc_pie", "title");
// [vc_tabs]
vc_remove_param("vc_tabs", "title");
// [contact-form-7]
if (function_exists('wpcf7')) {
    vc_remove_param("contact-form-7", "title");
}
// [rev_slider_vc]
if (function_exists('rev_slider_shortcode')) {
    vc_remove_param("rev_slider_vc", "title");
}
Exemple #21
0
    vc_remove_param('vc_single_image', 'css_animation');
    vc_remove_param('vc_column_text', 'css_animation');
    vc_remove_param('vc_row', 'bg_image');
    vc_remove_param('vc_row', 'bg_color');
    vc_remove_param('vc_row', 'font_color');
    vc_remove_param('vc_row', 'margin_bottom');
    vc_remove_param('vc_row', 'bg_image_repeat');
    vc_remove_param('vc_tabs', 'interval');
    vc_remove_param('vc_separator', 'style');
    vc_remove_param('vc_separator', 'color');
    vc_remove_param('vc_separator', 'accent_color');
    vc_remove_param('vc_separator', 'el_width');
    vc_remove_param('vc_text_separator', 'style');
    vc_remove_param('vc_text_separator', 'color');
    vc_remove_param('vc_text_separator', 'accent_color');
    vc_remove_param('vc_text_separator', 'el_width');
}
/*** Remove frontend editor ***/
if (function_exists('vc_disable_frontend')) {
    vc_disable_frontend();
}
$fa_icons = getFontAwesomeIconArray();
$icons = array();
$icons[""] = "";
foreach ($fa_icons as $key => $value) {
    $icons[$key] = $key;
}
$carousel_sliders = getCarouselSliderArray();
$animations = array("" => "", "Elements Shows From Left Side" => "element_from_left", "Elements Shows From Right Side" => "element_from_right", "Elements Shows From Top Side" => "element_from_top", "Elements Shows From Bottom Side" => "element_from_bottom", "Elements Shows From Fade" => "element_from_fade");
$font_weight_array = array("Default" => "", "Thin 100" => "100", "Extra-Light 200" => "200", "Light 300" => "300", "Regular 400" => "400", "Medium 500" => "500", "Semi-Bold 600" => "600", "Bold 700" => "700", "Extra-Bold 800" => "800", "Ultra-Bold 900" => "900");
/*** Accordion ***/
vc_add_param("vc_row", array("type" => "textfield", "class" => "", "heading" => __("Bottom padding", 'the7mk2'), "param_name" => "padding_bottom", "value" => "0", "description" => __("In pixels.", 'the7mk2'), "dependency" => array("element" => "type", "not_empty" => true)));
// parallax
vc_add_param("vc_row", array("type" => "checkbox", "class" => "", "heading" => __("Enable parallax", 'the7mk2'), "param_name" => "enable_parallax", "value" => array("" => "false"), "dependency" => array("element" => "type", "not_empty" => true)));
vc_add_param("vc_row", array("type" => "textfield", "class" => "", "heading" => __("Parallax speed", 'the7mk2'), "param_name" => "parallax_speed", "value" => "0.1", "dependency" => array("element" => "enable_parallax", "not_empty" => true)));
// video background
vc_add_param("vc_row", array("type" => "textfield", "class" => "", "heading" => __("Video background (mp4)", 'the7mk2'), "param_name" => "bg_video_src_mp4", "value" => "", "dependency" => array("element" => "type", "not_empty" => true)));
vc_add_param("vc_row", array("type" => "textfield", "class" => "", "heading" => __("Video background (ogv)", 'the7mk2'), "param_name" => "bg_video_src_ogv", "value" => "", "dependency" => array("element" => "type", "not_empty" => true)));
vc_add_param("vc_row", array("type" => "textfield", "class" => "", "heading" => __("Video background (webm)", 'the7mk2'), "param_name" => "bg_video_src_webm", "value" => "", "dependency" => array("element" => "type", "not_empty" => true)));
//********************************************************************************************
// ROW END
//********************************************************************************************
///////////////
// VC Column //
///////////////
// remove css editor
vc_remove_param('vc_column', 'css');
vc_add_param("vc_column", array("type" => "dropdown", "class" => "", "heading" => __("Animation", 'the7mk2'), "admin_label" => true, "param_name" => "animation", "value" => presscore_get_vc_animation_options(), "description" => ""));
/////////////
// VC Tabs //
/////////////
vc_add_param("vc_tabs", array("type" => "dropdown", "class" => "", "heading" => __("Style", 'the7mk2'), "param_name" => "style", "value" => array("Style 1" => "tab-style-one", "Style 2" => "tab-style-two", "Style 3" => "tab-style-three"), "description" => ""));
/////////////
// VC Tour //
/////////////
vc_add_param("vc_tour", array("type" => "dropdown", "class" => "", "heading" => __("Style", 'the7mk2'), "param_name" => "style", "value" => array("Style 1" => "tab-style-one", "Style 2" => "tab-style-two", "Style 3" => "tab-style-three"), "description" => ""));
/////////////////
// Fancy Titles //
/////////////////
vc_map(array("name" => "Fancy Titles", "base" => "dt_fancy_title", "icon" => "dt_vc_ico_fancy_titles", "class" => "dt_vc_sc_fancy_titles", "category" => __('by Dream-Theme', 'the7mk2'), "description" => '', "params" => array(array("type" => "textfield", "heading" => "Title", "param_name" => "title", "holder" => "div", "value" => "Title", "description" => ""), array("type" => "dropdown", "heading" => "Title position", "param_name" => "title_align", "value" => array('centre' => "center", 'left' => "left", 'right' => "right"), "description" => ""), array("type" => "dropdown", "heading" => "Title size", "param_name" => "title_size", "value" => array('small' => "small", 'medium' => "normal", 'large' => "big", 'h1' => "h1", 'h2' => "h2", 'h3' => "h3", 'h4' => "h4", 'h5' => "h5", 'h6' => "h6"), "std" => "normal", "description" => ""), array("type" => "dropdown", "heading" => "Title color", "param_name" => "title_color", "value" => array("default" => "default", "accent" => "accent", "title" => "title", "custom" => "custom"), "std" => "default", "description" => ""), array("type" => "colorpicker", "heading" => "Custom title color", "param_name" => "custom_title_color", "dependency" => array("element" => "title_color", "value" => array("custom")), "description" => ""), array("type" => "dropdown", "heading" => "Separator style", "param_name" => "separator_style", "value" => array("line" => "", "dashed" => "dashed", "dotted" => "dotted", "double" => "double", "thick" => "thick", "disabled" => "disabled"), "description" => ""), array("type" => "textfield", "heading" => "Element width (in %)", "param_name" => "el_width", "value" => "", "description" => ""), array("type" => "dropdown", "heading" => "Background under title", "param_name" => "title_bg", "value" => array("enabled" => "enabled", "disabled" => "disabled"), "std" => "disabled", "description" => ""), array("type" => "dropdown", "heading" => "Separator & background color", "param_name" => "separator_color", "value" => array("default" => "default", "accent" => "accent", "custom" => "custom"), "std" => "default", "description" => ""), array("type" => "colorpicker", "heading" => "Custom separator color", "param_name" => "custom_separator_color", "dependency" => array("element" => "separator_color", "value" => array("custom")), "description" => ""))));
/////////////////////
// Fancy Separators //
Exemple #23
0
<?php

$params = array(array("type" => "dropdown", "heading" => __("Title Size", THEMENAME), "param_name" => "zo_title_size", "value" => array("H2" => "h2", "H3" => "h3", "H4" => "h4", "H5" => "h5", "H6" => "h6"), "template" => array("zo_fancybox.php", "zo_fancybox--layout-1.php", "zo_fancybox--layout-2.php", "zo_fancybox--layout-3.php")), array("type" => "colorpicker", "heading" => __("Icon - Color", THEMENAME), "param_name" => "zo_fancybox_icon_color", "value" => "", "template" => array("zo_fancybox.php", "zo_fancybox--layout-2.php", "zo_fancybox--layout-3.php")), array("type" => "colorpicker", "heading" => __("Icon - Boder Color", THEMENAME), "param_name" => "zo_fancybox_boder_color", "value" => "", "template" => array("zo_fancybox.php", "zo_fancybox--layout-2.php", "zo_fancybox--layout-3.php")), array("type" => "colorpicker", "heading" => __("Icon - Background Color", THEMENAME), "param_name" => "zo_fancybox_bg_color", "value" => "", "template" => array("zo_fancybox.php", "zo_fancybox--layout-2.php", "zo_fancybox--layout-3.php")), array("type" => "colorpicker", "heading" => __("Icon - Title Color", THEMENAME), "param_name" => "zo_fancybox_title_color", "value" => "", "template" => array("zo_fancybox.php", "zo_fancybox--layout-2.php", "zo_fancybox--layout-3.php")), array("type" => "colorpicker", "heading" => __("Icon - Content Color", THEMENAME), "param_name" => "zo_fancybox_content_color", "value" => "", "template" => array("zo_fancybox.php", "zo_fancybox--layout-2.php", "zo_fancybox--layout-3.php")), array("type" => "dropdown", "heading" => __("Custom Color Text More Info", THEMENAME), "param_name" => "text_more_info", "value" => array('No' => '', 'Yes' => 'yes')), array("type" => "colorpicker", "heading" => __("Color", THEMENAME), "param_name" => "text_more_info_color", 'dependency' => array("element" => "text_more_info", "value" => array("yes"))), array("type" => "colorpicker", "heading" => __("Color Hover", THEMENAME), "param_name" => "text_more_info_color_hover", 'dependency' => array("element" => "text_more_info", "value" => array("yes"))), array("type" => "dropdown", "heading" => __("Custom Color Button More Info", THEMENAME), "param_name" => "button_more_info", "value" => array('No' => '', 'Yes' => 'yes')), array("type" => "colorpicker", "heading" => __("Border Color", THEMENAME), "param_name" => "button_more_info_border_color", 'dependency' => array("element" => "button_more_info", "value" => array("yes"))), array("type" => "colorpicker", "heading" => __("Border Color Hover", THEMENAME), "param_name" => "button_more_info_border_color_hover", 'dependency' => array("element" => "button_more_info", "value" => array("yes"))), array("type" => "colorpicker", "heading" => __("Background Color", THEMENAME), "param_name" => "button_more_info_bg_color", 'dependency' => array("element" => "button_more_info", "value" => array("yes"))), array("type" => "colorpicker", "heading" => __("Background Color Hover", THEMENAME), "param_name" => "button_more_info_bg_color_hover", 'dependency' => array("element" => "button_more_info", "value" => array("yes"))), array("type" => "colorpicker", "heading" => __("Content - Background Color", THEMENAME), "param_name" => "zo_fancybox_bg_content_color", "value" => "", "template" => array("zo_fancybox--layout-1.php")), array("type" => "textfield", "class" => "", "heading" => __("Months Old", THEMENAME), "param_name" => "months_old", "value" => '', "template" => array("zo_fancybox--layout-1.php")), array("type" => "textfield", "class" => "", "heading" => __("Class Size", THEMENAME), "param_name" => "class_size", "value" => '', "template" => array("zo_fancybox--layout-1.php")));
vc_remove_param('zo_fancybox', 'zo_template');
$zo_template_attribute = array('type' => 'zo_template_img', 'param_name' => 'zo_template', "shortcode" => "zo_fancybox", "heading" => __("Shortcode Template", THEMENAME), "admin_label" => true, "group" => __("Template", THEMENAME));
vc_add_param('zo_fancybox', $zo_template_attribute);
Exemple #24
0
vc_remove_element("vc_cta_button");
vc_remove_element("vc_cta_button2");
////////////////////////////////////EDIT ROW////////////////////////////////////
//remove param
vc_remove_param("vc_row", "full_width");
vc_remove_param("vc_row", "parallax");
vc_remove_param("vc_row", "el_id");
vc_remove_param("vc_row", "parallax_image");
vc_remove_param("vc_row", "full_height");
vc_remove_param("vc_row", "video_bg");
vc_remove_param("vc_row", "content_placement");
vc_remove_param("vc_row", "video_bg_url");
vc_remove_param("vc_row", "video_bg_parallax");
//add row param
vc_add_param("vc_row", array('type' => 'textfield', 'heading' => __('Section ID', 'lovetravel'), 'param_name' => 'idsection', 'description' => __('Insert section ID for anchor link. E.g. my_section_id_1', 'lovetravel')));
vc_add_param("vc_row", array('type' => 'dropdown', 'heading' => "Style", 'param_name' => 'row_style', 'value' => array("container", "full_width"), 'description' => __("Choose the style for the row", "lovetravel")));
//add row param
vc_add_param("vc_row", array('type' => 'dropdown', 'heading' => __('Parallax', 'lovetravel'), 'param_name' => 'imgparallax', 'value' => array(__('No', 'lovetravel') => 'no', __('Yes', 'lovetravel') => 'yes'), 'description' => __('Set the image in Design Options Tab', 'lovetravel')));
vc_add_param("vc_row", array('type' => 'textfield', 'heading' => __('ID for parallax', 'lovetravel'), 'param_name' => 'idparallax', 'description' => __('Insert parallax ID name. E.g. my_first_parallax_1', 'lovetravel'), 'dependency' => array('element' => 'imgparallax', 'value' => array('yes'))));
vc_add_param("vc_row", array('type' => 'attach_image', 'heading' => __('Image Parallax', 'js_composer'), 'param_name' => 'srcparallax', 'value' => '', 'description' => __('Select image from media library.', 'js_composer'), 'dependency' => array('element' => 'imgparallax', 'value' => array('yes'))));
vc_add_param("vc_row", array('type' => 'dropdown', 'heading' => __('Color Filter', 'lovetravel'), 'param_name' => 'filter', 'description' => __('Choose color filter', 'lovetravel'), 'value' => array("none", "greydark", "greydark2"), 'dependency' => array('element' => 'imgparallax', 'value' => array('yes'))));
vc_add_param("vc_row_inner", array('type' => 'textfield', 'heading' => __('Section ID', 'lovetravel'), 'param_name' => 'idsection', 'description' => __('Insert section ID for anchor link. E.g. my_section_id_1', 'lovetravel')));
vc_add_param("vc_row_inner", array('type' => 'dropdown', 'heading' => "Style", 'param_name' => 'row_style', 'value' => array("full_width", "container"), 'description' => __("Choose the style for the row", "lovetravel")));
vc_add_param("vc_row_inner", array('type' => 'dropdown', 'heading' => __('Parallax', 'lovetravel'), 'param_name' => 'imgparallax', 'value' => array(__('No', 'lovetravel') => 'no', __('Yes', 'lovetravel') => 'yes'), 'description' => __('Set the image in Design Options Tab', 'lovetravel')));
vc_add_param("vc_row_inner", array('type' => 'textfield', 'heading' => __('ID for parallax', 'lovetravel'), 'param_name' => 'idparallax', 'description' => __('Insert parallax ID name. E.g. my_first_parallax_1', 'lovetravel'), 'dependency' => array('element' => 'imgparallax', 'value' => array('yes'))));
vc_add_param("vc_row_inner", array('type' => 'attach_image', 'heading' => __('Image Parallax', 'js_composer'), 'param_name' => 'srcparallax', 'value' => '', 'description' => __('Select image from media library.', 'js_composer'), 'dependency' => array('element' => 'imgparallax', 'value' => array('yes'))));
vc_add_param("vc_row_inner", array('type' => 'dropdown', 'heading' => __('Color Filter', 'lovetravel'), 'param_name' => 'filter', 'description' => __('Choose color filter', 'lovetravel'), 'value' => array("none", "greydark", "greydark2"), 'dependency' => array('element' => 'imgparallax', 'value' => array('yes'))));
//remove param
vc_remove_param("vc_row", "font_color");
vc_remove_param("vc_row_inner", "el_id");
function porto_load_shortcodes()
{
    if (function_exists('vc_map')) {
        /* ---------------------------- */
        /* Customize Tabs, Tab
           /* ---------------------------- */
        vc_remove_param('vc_tabs', 'interval');
        vc_add_param('vc_tabs', array('type' => 'dropdown', 'heading' => __('Position', 'porto'), 'param_name' => 'position', 'value' => porto_vc_commons('tabs'), 'description' => __('Select the position of the tab header.', 'porto'), 'admin_label' => true));
        vc_add_param('vc_tab', array('type' => 'textfield', 'heading' => __('Font Awesome Icon or Icon Class', 'porto'), 'param_name' => 'icon', 'description' => __('Input font awesome icon or icon class. You can see <a target="_blank" href="http://fortawesome.github.io/Font-Awesome/icons/">Font Awesome Icons in here</a>.', 'porto')));
        /* ---------------------------- */
        /* Customize Tour
           /* ---------------------------- */
        vc_remove_param('vc_tour', 'interval');
        vc_add_param('vc_tour', array('type' => 'dropdown', 'heading' => __('Position', 'porto'), 'param_name' => 'position', 'value' => porto_vc_commons('tour'), 'description' => __('Select the position of the tab header.', 'porto'), 'admin_label' => true));
        /* ---------------------------- */
        /* Customize Separator
           /* ---------------------------- */
        vc_add_param('vc_separator', array('type' => 'checkbox', 'heading' => __('Show Gradient', 'porto'), 'param_name' => 'gradient', 'std' => 'yes', 'value' => array(__('Yes, please', 'js_composer') => 'yes')));
        vc_add_param('vc_separator', array('type' => 'dropdown', 'heading' => __('Gap Size', 'porto'), 'param_name' => 'gap', 'value' => porto_vc_commons('separator')));
        /* ---------------------------- */
        /* Customize Text Separator
           /* ---------------------------- */
        vc_add_param('vc_text_separator', array('type' => 'checkbox', 'heading' => __('Show Gradient', 'porto'), 'param_name' => 'gradient', 'std' => 'yes', 'value' => array(__('Yes, please', 'js_composer') => 'yes')));
        /* ---------------------------- */
        /* Customize Accordion
           /* ---------------------------- */
        vc_remove_param('vc_accordion', 'disable_keyboard');
        vc_add_param('vc_accordion', array('type' => 'dropdown', 'heading' => __('Type', 'porto'), 'param_name' => 'type', 'value' => porto_vc_commons('accordion')));
        vc_add_param('vc_accordion_tab', array('type' => 'textfield', 'heading' => __('Font Awesome Icon or Icon Class', 'porto'), 'param_name' => 'icon', 'description' => __('Input font awesome icon or icon class. You can see <a target="_blank" href="http://fortawesome.github.io/Font-Awesome/icons/">Font Awesome Icons in here</a>.', 'porto')));
        /* ---------------------------- */
        /* Customize Toggle
           /* ---------------------------- */
        vc_remove_param('vc_toggle', 'style');
        vc_remove_param('vc_toggle', 'color');
        vc_remove_param('vc_toggle', 'size');
        vc_add_param('vc_toggle', array('type' => 'checkbox', 'heading' => __('Hide Toggle Icon', 'porto'), 'param_name' => 'hide_toggle', 'value' => array(__('Hide toggle icon.', 'porto') => 'true'), 'description' => ''));
        vc_add_param('vc_toggle', array('type' => 'checkbox', 'heading' => __('View Option', 'porto'), 'param_name' => 'one_toggle', 'value' => array(__('Hide this toggle when open another toggle.', 'porto') => 'true'), 'description' => ''));
        vc_add_param('vc_toggle', array('type' => 'textfield', 'heading' => __('Font Awesome Icon or Icon Class', 'porto'), 'param_name' => 'icon', 'description' => __('Input font awesome icon or icon class. You can see <a target="_blank" href="http://fortawesome.github.io/Font-Awesome/icons/">Font Awesome Icons in here</a>.', 'porto')));
        /* ---------------------------- */
        /* Customize Buttons
           /* ---------------------------- */
        vc_add_param('vc_button', array('type' => 'checkbox', 'heading' => __('Disable', 'porto'), 'param_name' => 'disabled', 'value' => array(__('Disable button.', 'porto') => true)));
        vc_add_param('vc_button', array('type' => 'checkbox', 'heading' => __('Show as Label', 'porto'), 'param_name' => 'label', 'value' => array(__('Yes, please', 'js_composer') => 'yes')));
        /* ---------------------------- */
        /* Add Single Image Parameters
           /* ---------------------------- */
        vc_add_param('vc_single_image', array('type' => 'checkbox', 'heading' => __('LightBox', 'porto'), 'param_name' => 'lightbox', 'value' => array(__('Yes, please', 'js_composer') => true), 'dependency' => array('element' => 'img_link_large', 'not_empty' => true), 'description' => __('Check it if you want to link to the lightbox with the large image.', 'porto')));
        vc_add_param('vc_single_image', array('type' => 'checkbox', 'heading' => __('Show Zoom Icon', 'porto'), 'param_name' => 'zoom_icon', 'value' => array(__('Yes, please', 'js_composer') => true), 'dependency' => array('element' => 'img_link_large', 'not_empty' => true)));
        /* ---------------------------- */
        /* Customize Pie Chart
           /* ---------------------------- */
        vc_remove_param('vc_pie', 'color');
        // Used in 'Button', 'Call __( 'Blue', 'js_composer' )to Action', 'Pie chart' blocks
        $colors_arr = array(__('Grey', 'js_composer') => 'wpb_button', __('Blue', 'js_composer') => 'btn-primary', __('Turquoise', 'js_composer') => 'btn-info', __('Green', 'js_composer') => 'btn-success', __('Orange', 'js_composer') => 'btn-warning', __('Red', 'js_composer') => 'btn-danger', __('Black', 'js_composer') => 'btn-inverse');
        vc_add_param('vc_pie', array('type' => 'dropdown', 'heading' => __('Type', 'porto'), 'param_name' => 'type', 'value' => array(__('Custom', 'porto') => 'custom', __('Default', 'porto') => 'default'), 'description' => __('Select pie chart type.', 'porto'), 'admin_label' => true));
        vc_add_param('vc_pie', array('type' => 'dropdown', 'heading' => __('Bar color (default)', 'porto'), 'param_name' => 'color', 'value' => $colors_arr, 'description' => __('Select pie chart color.', 'js_composer'), 'admin_label' => true, 'dependency' => array('element' => 'type', 'value' => array('default')), 'param_holder_class' => 'vc_colored-dropdown'));
        vc_add_param('vc_pie', array('type' => 'textfield', 'heading' => __('Size', 'porto'), 'param_name' => 'size', 'std' => 175, 'dependency' => array('element' => 'type', 'value' => array('custom')), 'description' => __('Enter the size of the chart in px.', 'porto')));
        vc_add_param('vc_pie', array('type' => 'colorpicker', 'heading' => __('Track Color', 'porto'), 'param_name' => 'trackcolor', 'dependency' => array('element' => 'type', 'value' => array('custom')), 'description' => __('Choose the color of the track. Please clear this if you want to use the default color.', 'porto')));
        vc_add_param('vc_pie', array('type' => 'colorpicker', 'heading' => __('Bar color (custom)', 'porto'), 'param_name' => 'barcolor', 'dependency' => array('element' => 'type', 'value' => array('custom')), 'description' => __('Select pie chart color. Please clear this if you want to use the default color.', 'porto'), 'admin_label' => true));
        vc_add_param('vc_pie', array('type' => 'textfield', 'heading' => __('Animation Speed', 'porto'), 'param_name' => 'speed', 'std' => 2500, 'dependency' => array('element' => 'type', 'value' => array('custom')), 'description' => __('Enter the animation speed in milliseconds.', 'porto')));
        vc_add_param('vc_pie', array('type' => 'textfield', 'heading' => __('Line Width', 'porto'), 'param_name' => 'line', 'std' => 14, 'dependency' => array('element' => 'type', 'value' => array('custom')), 'description' => __('Enter the width of the line bar in px.', 'porto')));
        vc_add_param('vc_pie', array('type' => 'dropdown', 'heading' => __('Line Cap', 'porto'), 'param_name' => 'linecap', 'value' => array(__('Round', 'porto') => 'round', __('Square', 'porto') => 'square'), 'dependency' => array('element' => 'type', 'value' => array('custom')), 'description' => __('Choose how the ending of the bar line looks like.', 'porto')));
    }
}
    vc_remove_param('vc_separator', 'accent_color');
    vc_remove_param('vc_separator', 'el_width');
    vc_remove_param('vc_separator', 'align');
    vc_remove_param('vc_column_text', 'css_animation');
    vc_remove_param('vc_gmaps', 'title');
    vc_remove_param('vc_progress_bar', 'title');
    vc_remove_param('vc_progress_bar', 'bgcolor');
    vc_remove_param('vc_progress_bar', 'custombgcolor');
    vc_remove_param('vc_progress_bar', 'options');
    vc_remove_element('vc_button');
    vc_remove_element('vc_button2');
    vc_remove_element('vc_cta_button');
    vc_remove_element('vc_cta_button2');
    if (defined('WPCF7_VERSION')) {
        // contact form 7
        vc_remove_param('contact-form-7', 'title');
    }
}
/* Disable front end editor */
if (function_exists('vc_disable_frontend')) {
    vc_disable_frontend();
}
if (!function_exists('single_file_settings_field')) {
    /**
     * We will create a custom attribute for videos & images
     */
    function single_file_settings_field($settings, $value)
    {
        $output = '<div class="single_file_block">';
        $output .= '<input type="text" class="wpb_vc_param_value wpb-textinput ' . $settings['param_name'] . ' ' . $settings['type'] . '_field" name="' . $settings['param_name'] . '" id="" value="' . esc_url($value) . '">';
        $output .= '<br><br>';
Exemple #27
0
 /**
  * Remove setting form elements
  *
  * @access private
  */
 private function removeFormElements()
 {
     foreach (self::$remove_form_element as $short_code => $elements) {
         foreach ($elements as $element) {
             vc_remove_param($short_code, $element);
         }
     }
 }
{
    $class_string = str_replace(array(' vc_row-fluid', ' column_container', ' wpb_column', 'wpb_row'), array(null, null, null, 'ewf-row'), $class_string);
    $class_string = str_replace('wpb_wrapper', 'ewf-wrapper', $class_string);
    $class_string = preg_replace('/vc_span(\\d{1,2})/', 'ewf-span$1', $class_string);
    return $class_string;
}
#	 Removing animations setting from default composer components
#
$composer_version = explode('.', WPB_VC_VERSION);
// 	4.3.2
$composer_current = $composer_version[0] . '.' . $composer_version[1];
//  4.3
$composer_shortcodes = array('4.2' => array('vc_column_text', 'vc_message', 'vc_toggle', 'vc_single_image'), '4.3' => array('vc_column_text', 'vc_message', 'vc_toggle', 'vc_single_image', 'vc_cta_button'), '4.4' => array('vc_column_text', 'vc_message', 'vc_toggle', 'vc_single_image', 'vc_icon', 'vc_cta_button'));
if (!empty($composer_shortcodes[$composer_current])) {
    foreach ($composer_shortcodes[$composer_current] as $shortcode_name) {
        vc_remove_param($shortcode_name, 'css_animation');
    }
}
#	Remove unstyled components
#
// vc_remove_element("vc_flickr");
// vc_remove_element("vc_gallery");
// vc_remove_element("vc_images_carousel");
vc_remove_element("vc_wp_search");
vc_remove_element("vc_wp_meta");
vc_remove_element("vc_wp_calendar");
vc_remove_element("vc_wp_pages");
vc_remove_element("vc_wp_recentcomments");
vc_remove_element("vc_wp_tagcloud");
vc_remove_element("vc_wp_custommenu");
vc_remove_element("vc_wp_text");
 function parallax_init()
 {
     $group_name = 'Background';
     $group_effects = 'Effect';
     if (function_exists('vc_remove_param')) {
         //vc_remove_param('vc_row','bg_image');
         vc_remove_param('vc_row', 'bg_image_repeat');
     }
     $pluginname = dirname(dirname(plugin_basename(__FILE__)));
     $patterns_path = realpath(dirname(plugin_dir_path(__FILE__)) . '/assets/images/patterns');
     $patterns_list = glob($patterns_path . '/*.*');
     $patterns = array();
     foreach ($patterns_list as $pattern) {
         $patterns[basename($pattern)] = plugins_url() . '/' . $pluginname . '/assets/images/patterns/' . basename($pattern);
     }
     /*	
     			$separator_path = realpath(dirname(plugin_dir_path(__FILE__)).'/assets/images/separator');
     			$separator_list = glob($separator_path.'/*.*');
     			$separator_imgs = array();
     			
     			foreach($separator_list as $separator)
     				$separator_imgs[basename($separator)] = plugins_url().'/'.$pluginname.'/assets/images/separator/'.basename($separator);*/
     if (function_exists('vc_add_param')) {
         vc_add_param('vc_row', array("type" => "dropdown", "class" => "", "admin_label" => true, "heading" => __("Background Style", "ultimate_vc"), "param_name" => "bg_type", "value" => array(__("Default", "ultimate_vc") => "", __("Single Color", "ultimate_vc") => "bg_color", __("Gradient Color", "ultimate_vc") => "grad", __("Image / Parallax", "ultimate_vc") => "image", __("YouTube Video", "ultimate_vc") => "u_iframe", __("Hosted Video", "ultimate_vc") => "video"), "description" => __("Select the kind of background would you like to set for this row.", "ultimate_vc") . " " . __("Not sure?", "ultimate_vc") . " " . __("See Narrated", "ultimate_vc") . " <a href='https://www.youtube.com/watch?v=Qxs8R-uaMWk&list=PL1kzJGWGPrW981u5caHy6Kc9I1bG1POOx' target='_blank'>" . __("Video Tutorials", "ultimate_vc") . "</a>", "group" => $group_name));
         vc_add_param('vc_row', array("type" => "gradient", "class" => "", "heading" => __("Gradient Type", "ultimate_vc"), "param_name" => "bg_grad", "description" => __('At least two color points should be selected.', 'ultimate_vc') . ' <a href="https://www.youtube.com/watch?v=yE1M4AKwS44" target="_blank">' . __('Video Tutorial', 'ultimate_vc') . '</a>', "dependency" => array("element" => "bg_type", "value" => array("grad")), "group" => $group_name));
         vc_add_param('vc_row', array("type" => "colorpicker", "class" => "", "heading" => __("Background Color", "ultimate_vc"), "param_name" => "bg_color_value", "dependency" => array("element" => "bg_type", "value" => array("bg_color")), "group" => $group_name));
         vc_add_param("vc_row", array("type" => "dropdown", "class" => "", "heading" => __("Parallax Style", "ultimate_vc"), "param_name" => "parallax_style", "value" => array(__("No Parallax", "ultimate_vc") => "", __("Simple Background Image", "ultimate_vc") => "vcpb-default", __("Auto Moving Background", "ultimate_vc") => "vcpb-animated", __("Vertical Parallax On Scroll", "ultimate_vc") => "vcpb-vz-jquery", __("Horizontal Parallax On Scroll", "ultimate_vc") => "vcpb-hz-jquery", __("Interactive Parallax On Mouse Hover", "ultimate_vc") => "vcpb-fs-jquery", __("Multilayer Vertical Parallax", "ultimate_vc") => "vcpb-mlvp-jquery"), "description" => __("Select the kind of style you like for the background.", "ultimate_vc"), "dependency" => array("element" => "bg_type", "value" => array("image")), "group" => $group_name));
         vc_add_param('vc_row', array("type" => "ult_img_single", "class" => "", "heading" => __("Background Image", "ultimate_vc"), "param_name" => "bg_image_new", "value" => "", "description" => __("Upload or select background image from media gallery.", "ultimate_vc"), "dependency" => array("element" => "parallax_style", "value" => array("vcpb-default", "vcpb-animated", "vcpb-vz-jquery", "vcpb-hz-jquery")), "group" => $group_name));
         vc_add_param('vc_row', array("type" => "attach_images", "class" => "", "heading" => __("Layer Images", "ultimate_vc"), "param_name" => "layer_image", "value" => "", "description" => __("Upload or select background images from media gallery.", "ultimate_vc"), "dependency" => array("element" => "parallax_style", "value" => array("vcpb-fs-jquery", "vcpb-mlvp-jquery")), "group" => $group_name));
         vc_add_param('vc_row', array("type" => "dropdown", "class" => "", "heading" => __("Background Image Repeat", "ultimate_vc"), "param_name" => "bg_image_repeat", "value" => array(__("Repeat", "ultimate_vc") => "", __("Repeat X", "ultimate_vc") => "repeat-x", __("Repeat Y", "ultimate_vc") => "repeat-y", __("No Repeat", "ultimate_vc") => "no-repeat"), "description" => __("Options to control repeatation of the background image.", "ultimate_vc") . " " . __("Learn on", "ultimate_vc") . " <a href='http://www.w3schools.com/cssref/playit.asp?filename=playcss_background-repeat' target='_blank'>" . __("W3School", "ultimate_vc") . "</a>", "dependency" => array("element" => "parallax_style", "value" => array("vcpb-default", "vcpb-fix", "vcpb-vz-jquery", "vcpb-hz-jquery")), "group" => $group_name));
         vc_add_param('vc_row', array("type" => "dropdown", "class" => "", "heading" => __("Background Image Size", "ultimate_vc"), "param_name" => "bg_image_size", "value" => array(__("Cover - Image to be as large as possible", "ultimate_vc") => "", __("Contain - Image will try to fit inside the container area", "ultimate_vc") => "contain", __("Initial", "ultimate_vc") => "initial"), "description" => __("Options to control repeatation of the background image.", "ultimate_vc") . " " . __("Learn on", "ultimate_vc") . " <a href='http://www.w3schools.com/cssref/playit.asp?filename=playcss_background-size&preval=50%25' target='_blank'>" . __("W3School", "ultimate_vc") . "</a>", "dependency" => array("element" => "parallax_style", "value" => array("vcpb-default", "vcpb-animated", "vcpb-fix", "vcpb-vz-jquery", "vcpb-hz-jquery")), "group" => $group_name));
         vc_add_param('vc_row', array("type" => "textfield", "class" => "", "heading" => __("Custom Background Image Size", "ultimate_vc"), "param_name" => "bg_cstm_size", "value" => "", "description" => __("You can use initial, inherit or any number with px, em, %, etc. Example- 100px 100px", "ultimate_vc"), "dependency" => array("element" => "bg_image_size", "value" => array("cstm")), "group" => $group_name));
         vc_add_param('vc_row', array("type" => "dropdown", "class" => "", "heading" => __("Scroll Effect", "ultimate_vc"), "param_name" => "bg_img_attach", "value" => array(__("Move with the content", "ultimate_vc") => "", __("Fixed at its position", "ultimate_vc") => "fixed"), "description" => __("Options to set whether a background image is fixed or scroll with the rest of the page.", "ultimate_vc"), "dependency" => array("element" => "parallax_style", "value" => array("vcpb-default", "vcpb-animated", "vcpb-hz-jquery", "vcpb-vz-jquery")), "group" => $group_name));
         vc_add_param('vc_row', array("type" => "number", "class" => "", "heading" => __("Parallax Speed", "ultimate_vc"), "param_name" => "parallax_sense", "value" => "", "max" => "100", "description" => __("Control speed of parallax. Enter value between 1 to 100 (Default 30)", "ultimate_vc"), "dependency" => array("element" => "parallax_style", "value" => array("vcpb-vz-jquery", "vcpb-animated", "vcpb-hz-jquery", "vcpb-vs-jquery", "vcpb-hs-jquery", "vcpb-fs-jquery", "vcpb-mlvp-jquery")), "group" => $group_name));
         vc_add_param('vc_row', array("type" => "textfield", "class" => "", "heading" => __("Background Image Posiiton", "ultimate_vc"), "param_name" => "bg_image_posiiton", "value" => "", "description" => __("You can use any number with px, em, %, etc. Example- 100px 100px.", "ultimate_vc"), "dependency" => array("element" => "parallax_style", "value" => array("vcpb-default", "vcpb-fix")), "group" => $group_name));
         vc_add_param('vc_row', array("type" => "dropdown", "class" => "", "heading" => __("Animation Direction", "ultimate_vc"), "param_name" => "animation_direction", "value" => array(__("Left to Right", "ultimate_vc") => "", __("Right to Left", "ultimate_vc") => "right-animation", __("Top to Bottom", "ultimate_vc") => "top-animation", __("Bottom to Top", "ultimate_vc") => "bottom-animation"), "dependency" => array("element" => "parallax_style", "value" => array("vcpb-animated")), "group" => $group_name));
         vc_add_param('vc_row', array("type" => "dropdown", "class" => "", "heading" => __("Background Repeat", "ultimate_vc"), "param_name" => "animation_repeat", "value" => array(__("Repeat", "ultimate_vc") => "", __("Repeat X", "ultimate_vc") => "repeat-x", __("Repeat Y", "ultimate_vc") => "repeat-y"), "dependency" => array("element" => "parallax_style", "value" => array("vcpb-animated")), "group" => $group_name));
         vc_add_param('vc_row', array("type" => "textfield", "class" => "", "heading" => __("Link to the video in MP4 Format", "ultimate_vc"), "param_name" => "video_url", "value" => "", "dependency" => array("element" => "bg_type", "value" => array("video")), "group" => $group_name));
         vc_add_param('vc_row', array("type" => "textfield", "class" => "", "heading" => __("Link to the video in WebM / Ogg Format", "ultimate_vc"), "param_name" => "video_url_2", "value" => "", "description" => __("IE, Chrome & Safari", "ultimate_vc") . " <a href='http://www.w3schools.com/html/html5_video.asp' target='_blank'>" . __("support", "ultimate_vc") . "</a> " . __("MP4 format, while Firefox & Opera prefer WebM / Ogg formats.", "ultimate_vc") . " " . __("You can upload the video through", "ultimate_vc") . " <a href='" . home_url() . "/wp-admin/media-new.php' target='_blank'>" . __("WordPress Media Library", "ultimate_vc") . "</a>.", "dependency" => array("element" => "bg_type", "value" => array("video")), "group" => $group_name));
         vc_add_param('vc_row', array("type" => "textfield", "class" => "", "heading" => __("Enter YouTube URL of the Video", "ultimate_vc"), "param_name" => "u_video_url", "value" => "", "description" => __("Enter YouTube url. Example - YouTube (https://www.youtube.com/watch?v=tSqJIIcxKZM) ", "ultimate_vc"), "dependency" => array("element" => "bg_type", "value" => array("u_iframe")), "group" => $group_name));
         vc_add_param('vc_row', array("type" => "checkbox", "class" => "", "heading" => __("Extra Options", "ultimate_vc"), "param_name" => "video_opts", "value" => array(__("Loop", "ultimate_vc") => "loop", __("Muted", "ultimate_vc") => "muted"), "dependency" => array("element" => "bg_type", "value" => array("video", "u_iframe")), "group" => $group_name));
         vc_add_param('vc_row', array("type" => "ult_img_single", "class" => "", "heading" => __("Placeholder Image", "ultimate_vc"), "param_name" => "video_poster", "value" => "", "description" => __("Placeholder image is displayed in case background videos are restricted (Ex - on iOS devices).", "ultimate_vc"), "dependency" => array("element" => "bg_type", "value" => array("video", "u_iframe")), "group" => $group_name));
         vc_add_param('vc_row', array("type" => "number", "class" => "", "heading" => __("Start Time", "ultimate_vc"), "param_name" => "u_start_time", "value" => "", "suffix" => "seconds", "dependency" => array("element" => "bg_type", "value" => array("u_iframe")), "group" => $group_name));
         vc_add_param('vc_row', array("type" => "number", "class" => "", "heading" => __("Stop Time", "ultimate_vc"), "param_name" => "u_stop_time", "value" => "", "suffix" => "seconds", "description" => __("You may start / stop the video at any point you would like.", "ultimate_vc"), "dependency" => array("element" => "bg_type", "value" => array("u_iframe")), "group" => $group_name));
         vc_add_param('vc_row', array("type" => "ult_switch", "class" => "", "heading" => __("Play video only when in viewport", "ultimate_vc"), "param_name" => "viewport_vdo", "value" => "", "options" => array("viewport_play" => array("label" => "", "on" => __("Yes", "ultimate_vc"), "off" => __("No", "ultimate_vc"))), "description" => __("Video will be played only when user is on the particular screen position. Once user scroll away, the video will pause.", "ultimate_vc"), "dependency" => array("element" => "bg_type", "value" => array("video", "u_iframe")), "group" => $group_name));
         vc_add_param('vc_row', array("type" => "ult_switch", "class" => "", "heading" => __("Display Controls", "ultimate_vc"), "param_name" => "enable_controls", "value" => "", "options" => array("display_control" => array("label" => "", "on" => __("Yes", "ultimate_vc"), "off" => __("No", "ultimate_vc"))), "description" => __("Display play / pause controls for the video on bottom right position.", "ultimate_vc"), "dependency" => array("element" => "bg_type", "value" => array("video")), "group" => $group_name));
         vc_add_param('vc_row', array("type" => "colorpicker", "class" => "", "heading" => __("Color of Controls Icon", "ultimate_vc"), "param_name" => "controls_color", "dependency" => array("element" => "enable_controls", "value" => array("display_control")), "group" => $group_name));
         vc_add_param('vc_row', array("type" => "dropdown", "class" => "", "heading" => __("Background Override (Read Description)", "ultimate_vc"), "param_name" => "bg_override", "value" => array(__("Default Width", "ultimate_vc") => "", __("Apply 1st parent element's width", "ultimate_vc") => "1", __("Apply 2nd parent element's width", "ultimate_vc") => "2", __("Apply 3rd parent element's width", "ultimate_vc") => "3", __("Apply 4th parent element's width", "ultimate_vc") => "4", __("Apply 5th parent element's width", "ultimate_vc") => "5", __("Apply 6th parent element's width", "ultimate_vc") => "6", __("Apply 7th parent element's width", "ultimate_vc") => "7", __("Apply 8th parent element's width", "ultimate_vc") => "8", __("Apply 9th parent element's width", "ultimate_vc") => "9", __("Full Width", "ultimate_vc") => "full", __("Maximum Full Width", "ultimate_vc") => "ex-full", __("Browser Full Dimension", "ultimate_vc") => "browser_size"), "description" => __("By default, the background will be given to the Visual Composer row. However, in some cases depending on your theme's CSS - it may not fit well to the container you are wishing it would. In that case you will have to select the appropriate value here that gets you desired output..", "ultimate_vc"), "dependency" => array("element" => "bg_type", "value" => array("u_iframe", "image", "video", "grad", "bg_color", "animated")), "group" => $group_name));
         vc_add_param('vc_row', array("type" => "ult_switch", "class" => "", "heading" => __("Activate on Mobile", "ultimate_vc"), "param_name" => "disable_on_mobile_img_parallax", "value" => "", "options" => array("disable_on_mobile_img_parallax_value" => array("label" => "", "on" => __("Yes", "ultimate_vc"), "off" => __("No", "ultimate_vc"))), "group" => $group_name, "dependency" => array("element" => "parallax_style", "value" => array("vcpb-animated", "vcpb-vz-jquery", "vcpb-hz-jquery", "vcpb-fs-jquery", "vcpb-mlvp-jquery"))));
         vc_add_param('vc_row', array("type" => "ult_switch", "class" => "", "heading" => __("Easy Parallax", "ultimate_vc"), "param_name" => "parallax_content", "value" => "", "options" => array("parallax_content_value" => array("label" => "", "on" => __("Yes", "ultimate_vc"), "off" => __("No", "ultimate_vc"))), "group" => $group_effects, 'edit_field_class' => 'uvc-divider last-uvc-divider vc_column vc_col-sm-12', "description" => __("If enabled, the elements inside row - will move slowly as user scrolls.", "ultimate_vc")));
         vc_add_param('vc_row', array("type" => "textfield", "class" => "", "heading" => __("Parallax Speed", "ultimate_vc"), "param_name" => "parallax_content_sense", "value" => "", "group" => $group_effects, "description" => __("Enter value between 0 to 100 (Default 30)", "ultimate_vc"), "dependency" => array("element" => "parallax_content", "value" => array("parallax_content_value"))));
         vc_add_param('vc_row', array("type" => "ult_switch", "class" => "", "heading" => __("Fade Effect on Scroll", "ultimate_vc"), "param_name" => "fadeout_row", "value" => "", "options" => array("fadeout_row_value" => array("label" => "", "on" => __("Yes", "ultimate_vc"), "off" => __("No", "ultimate_vc"))), "group" => $group_effects, 'edit_field_class' => 'uvc-divider last-uvc-divider vc_column vc_col-sm-12', "description" => __("If enabled, the the content inside row will fade out slowly as user scrolls down.", "ultimate_vc")));
         vc_add_param('vc_row', array("type" => "number", "class" => "", "heading" => __("Viewport Position", "ultimate_vc"), "param_name" => "fadeout_start_effect", "suffix" => "%", "value" => "", "group" => $group_effects, "description" => __("The area of screen from top where fade out effect will take effect once the row is completely inside that area. (Default 30)", "ultimate_vc"), "dependency" => array("element" => "fadeout_row", "value" => array("fadeout_row_value"))));
         /*vc_add_param('vc_row',array(
         				"type" => "ult_switch",
         				"class" => "",
         				"heading" => __("Activate Parallax on Mobile", "upb_parallax"),
         				"param_name" => "disable_on_mobile",
         				//"admin_label" => true,
         				"value" => "",
         				"options" => array(
         						"enable_on_mobile_value" => array(
         							"label" => "",
         							"on" => "Yes",
         							"off" => "No",
         						)
         					),
         				"group" => $group_effects,
         				
         			)
         		);*/
         vc_add_param('vc_row', array('type' => 'ult_switch', 'heading' => __('Enable Overlay', 'ultimate_vc'), 'param_name' => 'enable_overlay', 'value' => '', 'options' => array('enable_overlay_value' => array('label' => '', 'on' => __('Yes', 'ultimate_vc'), 'off' => __('No', 'ultimate_vc'))), 'edit_field_class' => 'uvc-divider last-uvc-divider vc_column vc_col-sm-12', 'group' => $group_effects));
         vc_add_param('vc_row', array('type' => 'colorpicker', 'heading' => __('Color', 'ultimate_vc'), 'param_name' => 'overlay_color', 'value' => '', 'group' => $group_effects, 'dependency' => array('element' => 'enable_overlay', 'value' => array('enable_overlay_value')), 'description' => __('Select RGBA values or opacity will be set to 20% by default.', 'ultimate_vc')));
         vc_add_param('vc_row', array('type' => 'radio_image_box', 'heading' => __('Pattern', 'ultimate_vc'), 'param_name' => 'overlay_pattern', 'value' => '', 'options' => $patterns, 'css' => array('width' => '40px', 'height' => '35px', 'background-repeat' => 'repeat', 'background-size' => 'cover'), 'group' => $group_effects, 'dependency' => array('element' => 'enable_overlay', 'value' => array('enable_overlay_value'))));
         vc_add_param('vc_row', array('type' => 'number', 'heading' => __('Pattern Opacity', 'ultimate_vc'), 'param_name' => 'overlay_pattern_opacity', 'value' => '', 'max' => '100', 'suffix' => '%', 'group' => $group_effects, 'dependency' => array('element' => 'enable_overlay', 'value' => array('enable_overlay_value')), 'description' => __('Enter value between 0 to 100 (0 is maximum transparency, while 100 is minimum & default is 80)', 'ultimate_vc'), 'edit_field_class' => 'vc_column vc_col-sm-4'));
         vc_add_param('vc_row', array('type' => 'number', 'heading' => __('Pattern Size', 'ultimate_vc'), 'param_name' => 'overlay_pattern_size', 'value' => '', 'suffix' => 'px', 'group' => $group_effects, 'dependency' => array('element' => 'enable_overlay', 'value' => array('enable_overlay_value')), 'description' => __('This is optional; sets the size of the pattern image manually.', 'ultimate_vc'), 'edit_field_class' => 'vc_column vc_col-sm-4'));
         vc_add_param('vc_row', array('type' => 'dropdown', 'heading' => __('Pattern Scroll Effect', 'ultimate_vc'), 'param_name' => 'overlay_pattern_attachment', 'value' => array(__('Move with the Content', 'ultimate_vc') => '', __('Fixed at its position', 'ultimate_vc') => 'fixed'), 'group' => $group_effects, 'dependency' => array('element' => 'enable_overlay', 'value' => array('enable_overlay_value')), 'edit_field_class' => 'vc_column vc_col-sm-4'));
         vc_add_param('vc_row', array('type' => 'checkbox', 'heading' => __('Fancy Multi Color Overlay', 'ultimate_vc'), 'param_name' => 'multi_color_overlay', 'value' => array(__('Enable', 'ultimate_vc') => 'uvc-multi-color-bg'), 'group' => $group_effects, 'dependency' => array('element' => 'enable_overlay', 'value' => array('enable_overlay_value')), 'edit_field_class' => 'vc_column vc_col-sm-4 clear'));
         vc_add_param('vc_row', array('type' => 'number', 'heading' => __('Multi Color Overlay Opacity', 'ultimate_vc'), 'param_name' => 'multi_color_overlay_opacity', 'value' => '', 'suffix' => '%', 'group' => $group_effects, 'dependency' => array('element' => 'multi_color_overlay', 'value' => array('uvc-multi-color-bg')), 'edit_field_class' => 'vc_column vc_col-sm-8', 'description' => __('Default 60', 'ultimate_vc')));
         vc_add_param('vc_row', array('type' => 'ult_switch', 'heading' => __('Seperator ', 'ultimate_vc'), 'param_name' => 'seperator_enable', 'value' => '', 'options' => array('seperator_enable_value' => array('on' => __('Yes', 'ultimate_vc'), 'off' => __('No', 'ultimate_vc'))), 'edit_field_class' => 'uvc-divider last-uvc-divider vc_column vc_col-sm-12', 'group' => $group_effects));
         vc_add_param('vc_row', array('type' => 'dropdown', 'heading' => __('Type', 'ultimate_vc'), 'param_name' => 'seperator_type', 'value' => array(__('None', 'ultimate_vc') => '', __('Triangle', 'ultimate_vc') => 'triangle_svg_seperator', __('Big Triangle', 'ultimate_vc') => 'xlarge_triangle_seperator', __('Big Triangle Left', 'ultimate_vc') => 'xlarge_triangle_left_seperator', __('Big Triangle Right', 'ultimate_vc') => 'xlarge_triangle_right_seperator', __('Half Circle', 'ultimate_vc') => 'circle_svg_seperator', __('Curve Center', 'ultimate_vc') => 'xlarge_circle_seperator', __('Curve Left', 'ultimate_vc') => 'curve_up_seperator', __('Curve Right', 'ultimate_vc') => 'curve_down_seperator', __('Tilt Left', 'ultimate_vc') => 'tilt_left_seperator', __('Tilt Right', 'ultimate_vc') => 'tilt_right_seperator', __('Round Split', 'ultimate_vc') => 'round_split_seperator', __('Waves', 'ultimate_vc') => 'waves_seperator', __('Clouds', 'ultimate_vc') => 'clouds_seperator'), 'group' => $group_effects, 'dependency' => array('element' => 'seperator_enable', 'value' => array('seperator_enable_value')), 'edit_field_class' => 'uvc-divider-content-first vc_column vc_col-sm-12'));
         vc_add_param('vc_row', array('type' => 'dropdown', 'heading' => __('Position', 'ultimate_vc'), 'param_name' => 'seperator_position', 'value' => array(__('Top', 'ultimate_vc') => '', __('Bottom', 'ultimate_vc') => 'bottom_seperator', __('Top & Bottom', 'ultimate_vc') => 'top_bottom_seperator'), 'group' => $group_effects, 'dependency' => array('element' => 'seperator_enable', 'value' => array('seperator_enable_value')), 'edit_field_class' => 'uvc-divider-content-first vc_column vc_col-sm-12'));
         vc_add_param('vc_row', array('type' => 'number', 'heading' => __('Size', 'ultimate_vc'), 'param_name' => 'seperator_shape_size', 'value' => '', 'suffix' => 'px', 'group' => $group_effects, 'dependency' => array('element' => 'seperator_type', 'value' => array('triangle_seperator', 'circle_seperator', 'round_split_seperator')), 'description' => __('Default 40', 'ultimate_vc')));
         vc_add_param('vc_row', array('type' => 'number', 'heading' => __('Height', 'ultimate_vc'), 'param_name' => 'seperator_svg_height', 'value' => '', 'suffix' => 'px', 'group' => $group_effects, 'dependency' => array('element' => 'seperator_type', 'value' => array('xlarge_triangle_seperator', 'curve_up_seperator', 'curve_down_seperator', 'waves_seperator', 'clouds_seperator', 'xlarge_circle_seperator', 'triangle_svg_seperator', 'circle_svg_seperator', 'xlarge_triangle_left_seperator', 'xlarge_triangle_right_seperator', 'tilt_left_seperator', 'tilt_right_seperator')), 'description' => __('Default 60', 'ultimate_vc')));
         vc_add_param('vc_row', array('type' => 'colorpicker', 'heading' => __('Background', 'ultimate_vc'), 'param_name' => 'seperator_shape_background', 'value' => '', 'group' => $group_effects, 'dependency' => array('element' => 'seperator_type', 'value' => array('xlarge_triangle_seperator', 'triangle_seperator', 'circle_seperator', 'curve_up_seperator', 'curve_down_seperator', 'round_split_seperator', 'waves_seperator', 'clouds_seperator', 'xlarge_circle_seperator', 'triangle_svg_seperator', 'circle_svg_seperator', 'xlarge_triangle_left_seperator', 'xlarge_triangle_right_seperator', 'tilt_left_seperator', 'tilt_right_seperator')), 'description' => __('Mostly, this should be background color of your adjacent row section. (Default - White)', 'ultimate_vc')));
         vc_add_param('vc_row', array('type' => 'dropdown', 'heading' => __('Border', 'ultimate_vc'), 'param_name' => 'seperator_shape_border', 'value' => array(__('None', 'ultimate_vc') => '', __('Solid', 'ultimate_vc') => 'solid', __('Dotted', 'ultimate_vc') => 'dotted', __('Dashed', 'ultimate_vc') => 'dashed'), 'group' => $group_effects, 'dependency' => array('element' => 'seperator_type', 'value' => array('triangle_seperator', 'circle_seperator', 'round_split_seperator'))));
         vc_add_param('vc_row', array('type' => 'colorpicker', 'heading' => __('Border Color', 'ultimate_vc'), 'param_name' => 'seperator_shape_border_color', 'value' => '', 'group' => $group_effects, 'dependency' => array('element' => 'seperator_type', 'value' => array('triangle_seperator', 'circle_seperator', 'round_split_seperator'))));
         vc_add_param('vc_row', array('type' => 'number', 'heading' => __('Border Width', 'ultimate_vc'), 'param_name' => 'seperator_shape_border_width', 'value' => '', 'suffix' => 'px', 'group' => $group_effects, 'dependency' => array('element' => 'seperator_type', 'value' => array('triangle_seperator', 'circle_seperator', 'round_split_seperator')), 'edit_field_class' => 'uvc-divider-content-last vc_column vc_col-sm-12', 'description' => __('Default 1px', 'ultimate_vc')));
         vc_add_param('vc_row', array("type" => "dropdown", "class" => "", "heading" => __("Icon to display:", "ultimate_vc"), "param_name" => "icon_type", "value" => array(__("None", "ultimate_vc") => "", __("Font Icon Manager", "ultimate_vc") => "selector", __("Custom Image Icon", "ultimate_vc") => "custom"), 'group' => $group_effects, "description" => __("Use an existing font icon or upload a custom image.", "ultimate_vc"), 'dependency' => array('element' => 'seperator_enable', 'value' => array('seperator_enable_value'))));
         vc_add_param('vc_row', array("type" => "icon_manager", "class" => "", "heading" => __("Select Icon ", "ultimate_vc"), "param_name" => "icon", "value" => "", 'group' => $group_effects, "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") . " <a href='admin.php?page=font-icon-Manager' target='_blank'>" . __("add new here", "ultimate_vc") . "</a>.", "dependency" => array("element" => "icon_type", "value" => array("selector"))));
         vc_add_param('vc_row', array("type" => "number", "class" => "", "heading" => __("Size of Icon", "ultimate_vc"), "param_name" => "icon_size", "value" => '', "max" => 72, "suffix" => "px", 'group' => $group_effects, "description" => __("How big would you like it? (Default 32)", "ultimate_vc"), "dependency" => array("element" => "icon_type", "value" => array("selector"))));
         vc_add_param('vc_row', array("type" => "colorpicker", "class" => "", "heading" => __("Color", "ultimate_vc"), "param_name" => "icon_color", "value" => "", 'group' => $group_effects, "description" => __("Give it a nice paint!", "ultimate_vc"), "dependency" => array("element" => "icon_type", "value" => array("selector"))));
         vc_add_param('vc_row', array("type" => "dropdown", "class" => "", "heading" => __("Icon Style", "ultimate_vc"), "param_name" => "icon_style", "value" => array(__("Simple", "ultimate_vc") => "", __("Circle Background", "ultimate_vc") => "circle", __("Square Background", "ultimate_vc") => "square", __("Design your own", "ultimate_vc") => "advanced"), 'group' => $group_effects, "description" => __("We have given three quick preset if you are in a hurry. Otherwise, create your own with various options.", "ultimate_vc"), "dependency" => array("element" => "icon_type", "value" => array("selector"))));
         vc_add_param('vc_row', array("type" => "colorpicker", "class" => "", "heading" => __("Background Color", "ultimate_vc"), "param_name" => "icon_color_bg", "value" => "", 'group' => $group_effects, "description" => __("Select background color for icon.", "ultimate_vc"), "dependency" => array("element" => "icon_style", "value" => array("circle", "square", "advanced"))));
         vc_add_param('vc_row', array("type" => "dropdown", "class" => "", "heading" => __("Icon Border Style", "ultimate_vc"), "param_name" => "icon_border_style", "value" => array(__("None", "ultimate_vc") => "", __("Solid", "ultimate_vc") => "solid", __("Dashed", "ultimate_vc") => "dashed", __("Dotted", "ultimate_vc") => "dotted", __("Double", "ultimate_vc") => "double", __("Inset", "ultimate_vc") => "inset", __("Outset", "ultimate_vc") => "outset"), 'group' => $group_effects, "description" => __("Select the border style for icon.", "ultimate_vc"), "dependency" => array("element" => "icon_style", "value" => array("advanced"))));
         vc_add_param('vc_row', array("type" => "colorpicker", "class" => "", "heading" => __("Border Color", "ultimate_vc"), "param_name" => "icon_color_border", "value" => "", 'group' => $group_effects, "description" => __("Select border color for icon. (Default - #333333)", "ultimate_vc"), "dependency" => array("element" => "icon_border_style", "not_empty" => true)));
         vc_add_param('vc_row', array("type" => "number", "class" => "", "heading" => __("Border Width", "ultimate_vc"), "param_name" => "icon_border_size", "value" => '', "max" => 10, "suffix" => "px", 'group' => $group_effects, "description" => __("Thickness of the border. (Default - 1px)", "ultimate_vc"), "dependency" => array("element" => "icon_border_style", "not_empty" => true)));
         vc_add_param('vc_row', array("type" => "number", "class" => "", "heading" => __("Border Radius", "ultimate_vc"), "param_name" => "icon_border_radius", "value" => '', "max" => 500, "suffix" => "px", 'group' => $group_effects, "description" => __("0 pixel value will create a square border. As you increase the value, the shape convert in circle slowly. (Default 500).", "ultimate_vc"), "dependency" => array("element" => "icon_border_style", "not_empty" => true)));
         vc_add_param('vc_row', array("type" => "number", "class" => "", "heading" => __("Background Size", "ultimate_vc"), "param_name" => "icon_border_spacing", "value" => '', "max" => 500, "suffix" => "px", 'group' => $group_effects, "description" => __("Spacing from center of the icon till the boundary of border / background (Default - 50)", "ultimate_vc"), "dependency" => array("element" => "icon_style", "value" => array("advanced"))));
         vc_add_param('vc_row', array("type" => "ult_img_single", "class" => "", "heading" => __("Upload Image Icon:", "ultimate_vc"), "param_name" => "icon_img", "value" => "", 'group' => $group_effects, "description" => __("Upload the custom image icon.", "ultimate_vc"), "dependency" => array("element" => "icon_type", "value" => array("custom"))));
         vc_add_param('vc_row', array("type" => "number", "class" => "", "heading" => __("Image Width", "ultimate_vc"), "param_name" => "img_width", "value" => '', "max" => 512, "suffix" => "px", 'group' => $group_effects, "description" => __("Provide image width (Default - 48)", "ultimate_vc"), "dependency" => array("element" => "icon_type", "value" => array("custom"))));
         vc_add_param('vc_row', array('type' => 'ult_switch', 'heading' => __('Hide Row', 'ultimate_vc'), 'param_name' => 'ult_hide_row', 'value' => '', 'options' => array('ult_hide_row_value' => array('on' => __('Yes', 'ultimate_vc'), 'off' => __('No', 'ultimate_vc'))), 'edit_field_class' => 'uvc-divider last-uvc-divider vc_column vc_col-sm-12', 'group' => $group_effects));
         vc_add_param('vc_row', array('type' => 'ult_switch', 'heading' => '<i class="dashicons dashicons-welcome-view-site"></i> ' . __('Large Screen', 'ultimate_vc'), 'param_name' => 'ult_hide_row_large_screen', 'value' => '', 'options' => array('large_screen' => array('on' => __('Yes', 'ultimate_vc'), 'off' => __('No', 'ultimate_vc'))), 'group' => $group_effects, "dependency" => array("element" => "ult_hide_row", "value" => array("ult_hide_row_value")), 'edit_field_class' => 'vc_column vc_col-sm-4'));
         vc_add_param('vc_row', array('type' => 'ult_switch', 'heading' => '<i class="dashicons dashicons-desktop"></i> ' . __('Desktop', 'ultimate_vc'), 'param_name' => 'ult_hide_row_desktop', 'value' => '', 'options' => array('desktop' => array('on' => __('Yes', 'ultimate_vc'), 'off' => __('No', 'ultimate_vc'))), 'group' => $group_effects, "dependency" => array("element" => "ult_hide_row", "value" => array("ult_hide_row_value")), 'edit_field_class' => 'vc_column vc_col-sm-4'));
         vc_add_param('vc_row', array('type' => 'ult_switch', 'heading' => '<i class="dashicons dashicons-tablet" style="transform: rotate(90deg);"></i> ' . __('Tablet', 'ultimate_vc'), 'param_name' => 'ult_hide_row_tablet', 'value' => '', 'options' => array('tablet' => array('on' => __('Yes', 'ultimate_vc'), 'off' => __('No', 'ultimate_vc'))), 'group' => $group_effects, "dependency" => array("element" => "ult_hide_row", "value" => array("ult_hide_row_value")), 'edit_field_class' => 'vc_column vc_col-sm-4'));
         vc_add_param('vc_row', array('type' => 'ult_switch', 'heading' => '<i class="dashicons dashicons-tablet"></i> ' . __('Tablet Portrait', 'ultimate_vc'), 'param_name' => 'ult_hide_row_tablet_small', 'value' => '', 'options' => array('xs_tablet' => array('on' => __('Yes', 'ultimate_vc'), 'off' => __('No', 'ultimate_vc'))), 'group' => $group_effects, "dependency" => array("element" => "ult_hide_row", "value" => array("ult_hide_row_value")), 'edit_field_class' => 'vc_column vc_col-sm-4'));
         vc_add_param('vc_row', array('type' => 'ult_switch', 'heading' => '<i class="dashicons dashicons-smartphone"></i> ' . __('Mobile', 'ultimate_vc'), 'param_name' => 'ult_hide_row_mobile', 'value' => '', 'options' => array('mobile' => array('on' => __('Yes', 'ultimate_vc'), 'off' => __('No', 'ultimate_vc'))), 'group' => $group_effects, "dependency" => array("element" => "ult_hide_row", "value" => array("ult_hide_row_value")), 'edit_field_class' => 'vc_column vc_col-sm-4'));
         vc_add_param('vc_row', array('type' => 'ult_switch', 'heading' => '<i class="dashicons dashicons-smartphone" style="transform: rotate(90deg);"></i> ' . __('Mobile Landscape', 'ultimate_vc'), 'param_name' => 'ult_hide_row_mobile_large', 'value' => '', 'options' => array('xl_mobile' => array('on' => __('Yes', 'ultimate_vc'), 'off' => __('No', 'ultimate_vc'))), 'group' => $group_effects, "dependency" => array("element" => "ult_hide_row", "value" => array("ult_hide_row_value")), 'edit_field_class' => 'vc_column vc_col-sm-4'));
         vc_add_param('vc_row', array('type' => 'ult_param_heading', 'text' => __('In order for Effects below to work, you must select something except "default" in background tab.', 'ultimate_vc') . ' ' . __('May be single color.') . ' <br> ' . __('Screenshot', 'ultimate_vc') . ' - <a href="https://cloudup.com/cc1J8ZlcdZW" target="_blank">https://cloudup.com/cc1J8ZlcdZW</a>', 'param_name' => 'notification', 'edit_field_class' => 'ult-param-important-wrapper ult-dashicon vc_column vc_col-sm-12', 'group' => $group_effects));
     }
 }
    $param['value'] = array(__('None', 'js_composer') => '', __('Link to large image', 'js_composer') => 'img_link_large', __('Open custom link', 'js_composer') => 'custom_link');
    // Finally "mutate" param with new values
    vc_update_shortcode_param('vc_single_image', $param);
}
add_action('vc_after_init', 'nm_vc_single_image_param_onclick');
// Element: vc_tabs
vc_remove_param('vc_tabs', 'title');
// Element: vc_tour
vc_remove_param('vc_tour', 'title');
// Element: vc_accordion
vc_remove_param('vc_accordion', 'title');
// Element: vc_widget_sidebar
vc_remove_param('vc_widget_sidebar', 'title');
// Element: vc_video
vc_remove_param('vc_video', 'css');
// Disable "Design Options" tab
vc_remove_param('vc_video', 'title');
// Element: vc_progress_bar
vc_remove_param('vc_progress_bar', 'css');
// Disable "Design Options" tab
vc_remove_param('vc_progress_bar', 'title');
vc_remove_param('vc_progress_bar', 'options');
// Element: vc_pie
vc_remove_param('vc_pie', 'css');
// Disable "Design Options" tab
// Element: vc_empty_space
vc_remove_param('vc_empty_space', 'css');
// Disable "Design Options" tab
// Element: vc_custom_heading
vc_remove_param('vc_custom_heading', 'css');
// Disable "Design Options" tab