public static function getMediaCommonAtts()
 {
     if (self::$mediaGrid) {
         return self::$mediaGrid;
     }
     if (is_null(self::$btn3Params) && is_null(self::$gridColsList)) {
         self::initData();
     }
     self::$mediaGrid = array_merge(array(array('type' => 'attach_images', 'heading' => __('Images', 'js_composer'), 'param_name' => 'include', 'description' => __('Select images from media library.', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Display Style', 'js_composer'), 'param_name' => 'style', 'value' => array(__('Show all', 'js_composer') => 'all', __('Load more button', 'js_composer') => 'load-more', __('Lazy loading', 'js_composer') => 'lazy', __('Pagination', 'js_composer') => 'pagination'), 'dependency' => array('element' => 'post_type', 'value_not_equal_to' => array('custom')), 'edit_field_class' => 'vc_col-sm-6', 'description' => __('Select display style for grid.', 'js_composer')), array('type' => 'textfield', 'heading' => __('Items per page', 'js_composer'), 'param_name' => 'items_per_page', 'description' => __('Number of items to show per page.', 'js_composer'), 'value' => '10', 'dependency' => array('element' => 'style', 'value' => array('lazy', 'load-more', 'pagination')), 'edit_field_class' => 'vc_col-sm-6'), array('type' => 'dropdown', 'heading' => __('Grid elements per row', 'js_composer'), 'param_name' => 'element_width', 'value' => self::$gridColsList, 'std' => '4', 'edit_field_class' => 'vc_col-sm-6', 'description' => __('Select number of single grid elements per row.', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Gap', 'js_composer'), 'param_name' => 'gap', 'value' => array('0px' => '0', '1px' => '1', '2px' => '2', '3px' => '3', '4px' => '4', '5px' => '5', '10px' => '10', '15px' => '15', '20px' => '20', '25px' => '25', '30px' => '30', '35px' => '35'), 'std' => '5', 'description' => __('Select gap between grid elements.', 'js_composer'), 'edit_field_class' => 'vc_col-sm-6'), array('type' => 'hidden', 'heading' => __('Button style', 'js_composer'), 'param_name' => 'button_style', 'value' => '', 'param_holder_class' => 'vc_colored-dropdown', 'group' => __('Load More Button', 'js_composer'), 'dependency' => array('element' => 'style', 'value' => array('load-more')), 'description' => __('Select button style.', 'js_composer')), array('type' => 'hidden', 'heading' => __('Button color', 'js_composer'), 'param_name' => 'button_color', 'value' => '', 'param_holder_class' => 'vc_colored-dropdown', 'group' => __('Load More Button', 'js_composer'), 'dependency' => array('element' => 'style', 'value' => array('load-more')), 'description' => __('Select button color.', 'js_composer')), array('type' => 'hidden', 'heading' => __('Button size', 'js_composer'), 'param_name' => 'button_size', 'value' => '', 'description' => __('Select button size.', 'js_composer'), 'group' => __('Load More Button', 'js_composer'), 'dependency' => array('element' => 'style', 'value' => array('load-more'))), array('type' => 'dropdown', 'heading' => __('Arrows design', 'js_composer'), 'param_name' => 'arrows_design', 'value' => array(__('None', 'js_composer') => 'none', __('Simple', 'js_composer') => 'vc_arrow-icon-arrow_01_left', __('Simple Circle Border', 'js_composer') => 'vc_arrow-icon-arrow_02_left', __('Simple Circle', 'js_composer') => 'vc_arrow-icon-arrow_03_left', __('Simple Square', 'js_composer') => 'vc_arrow-icon-arrow_09_left', __('Simple Square Rounded', 'js_composer') => 'vc_arrow-icon-arrow_12_left', __('Simple Rounded', 'js_composer') => 'vc_arrow-icon-arrow_11_left', __('Rounded', 'js_composer') => 'vc_arrow-icon-arrow_04_left', __('Rounded Circle Border', 'js_composer') => 'vc_arrow-icon-arrow_05_left', __('Rounded Circle', 'js_composer') => 'vc_arrow-icon-arrow_06_left', __('Rounded Square', 'js_composer') => 'vc_arrow-icon-arrow_10_left', __('Simple Arrow', 'js_composer') => 'vc_arrow-icon-arrow_08_left', __('Simple Rounded Arrow', 'js_composer') => 'vc_arrow-icon-arrow_07_left'), 'group' => __('Pagination', 'js_composer'), 'dependency' => array('element' => 'style', 'value' => array('pagination')), 'description' => __('Select design for arrows.', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Arrows position', 'js_composer'), 'param_name' => 'arrows_position', 'value' => array(__('Inside Wrapper', 'js_composer') => 'inside', __('Outside Wrapper', 'js_composer') => 'outside'), 'group' => __('Pagination', 'js_composer'), 'dependency' => array('element' => 'arrows_design', 'value_not_equal_to' => array('none')), 'description' => __('Arrows will be displayed inside or outside grid.', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Arrows color', 'js_composer'), 'param_name' => 'arrows_color', 'value' => getVcShared('colors'), 'param_holder_class' => 'vc_colored-dropdown', 'group' => __('Pagination', 'js_composer'), 'dependency' => array('element' => 'arrows_design', 'value_not_equal_to' => array('none')), 'description' => __('Select color for arrows.', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Pagination style', 'js_composer'), 'param_name' => 'paging_design', 'value' => array(__('None', 'js_composer') => 'none', __('Square Dots', 'js_composer') => 'square_dots', __('Radio Dots', 'js_composer') => 'radio_dots', __('Point Dots', 'js_composer') => 'point_dots', __('Fill Square Dots', 'js_composer') => 'fill_square_dots', __('Rounded Fill Square Dots', 'js_composer') => 'round_fill_square_dots', __('Pagination Default', 'js_composer') => 'pagination_default', __('Outline Default Dark', 'js_composer') => 'pagination_default_dark', __('Outline Default Light', 'js_composer') => 'pagination_default_light', __('Pagination Rounded', 'js_composer') => 'pagination_rounded', __('Outline Rounded Dark', 'js_composer') => 'pagination_rounded_dark', __('Outline Rounded Light', 'js_composer') => 'pagination_rounded_light', __('Pagination Square', 'js_composer') => 'pagination_square', __('Outline Square Dark', 'js_composer') => 'pagination_square_dark', __('Outline Square Light', 'js_composer') => 'pagination_square_light', __('Pagination Rounded Square', 'js_composer') => 'pagination_rounded_square', __('Outline Rounded Square Dark', 'js_composer') => 'pagination_rounded_square_dark', __('Outline Rounded Square Light', 'js_composer') => 'pagination_rounded_square_light', __('Stripes Dark', 'js_composer') => 'pagination_stripes_dark', __('Stripes Light', 'js_composer') => 'pagination_stripes_light'), 'std' => 'radio_dots', 'group' => __('Pagination', 'js_composer'), 'dependency' => array('element' => 'style', 'value' => array('pagination')), 'description' => __('Select pagination style.', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Pagination color', 'js_composer'), 'param_name' => 'paging_color', 'value' => getVcShared('colors'), 'std' => 'grey', 'param_holder_class' => 'vc_colored-dropdown', 'group' => __('Pagination', 'js_composer'), 'dependency' => array('element' => 'paging_design', 'value_not_equal_to' => array('none')), 'description' => __('Select pagination color.', 'js_composer')), array('type' => 'checkbox', 'heading' => __('Loop pages?', 'js_composer'), 'param_name' => 'loop', 'description' => __('Allow items to be repeated in infinite loop (carousel).', 'js_composer'), 'value' => array(__('Yes', 'js_composer') => 'yes'), 'group' => __('Pagination', 'js_composer'), 'dependency' => array('element' => 'style', 'value' => array('pagination'))), array('type' => 'textfield', 'heading' => __('Autoplay delay', 'js_composer'), 'param_name' => 'autoplay', 'value' => '-1', 'description' => __('Enter value in seconds. Set -1 to disable autoplay.', 'js_composer'), 'group' => __('Pagination', 'js_composer'), 'dependency' => array('element' => 'style', 'value' => array('pagination'))), array('type' => 'animation_style', 'heading' => __('Animation In', 'js_composer'), 'param_name' => 'paging_animation_in', 'group' => __('Pagination', 'js_composer'), 'settings' => array('type' => array('in', 'other')), 'dependency' => array('element' => 'style', 'value' => array('pagination')), 'description' => __('Select "animation in" for page transition.', 'js_composer')), array('type' => 'animation_style', 'heading' => __('Animation Out', 'js_composer'), 'param_name' => 'paging_animation_out', 'group' => __('Pagination', 'js_composer'), 'settings' => array('type' => array('out')), 'dependency' => array('element' => 'style', 'value' => array('pagination')), 'description' => __('Select "animation out" for page transition.', 'js_composer')), array('type' => 'vc_grid_item', 'heading' => __('Grid element template', 'js_composer'), 'param_name' => 'item', 'description' => sprintf(__('%sCreate new%s template or %smodify selected%s. Predefined templates will be cloned.', 'js_composer'), '<a href="' . esc_url(admin_url('post-new.php?post_type=vc_grid_item')) . '" target="_blank">', '</a>', '<a href="#" target="_blank" data-vc-grid-item="edit_link">', '</a>'), 'group' => __('Item Design', 'js_composer'), 'value' => 'mediaGrid_Default'), array('type' => 'vc_grid_id', 'param_name' => 'grid_id'), array('type' => 'css_editor', 'heading' => __('CSS box', 'js_composer'), 'param_name' => 'css', 'group' => __('Design Options', 'js_composer'))), self::$btn3Params, array(array('type' => 'hidden', 'heading' => __('Button style', 'js_composer'), 'param_name' => 'button_style', 'value' => '', 'param_holder_class' => 'vc_colored-dropdown', 'group' => __('Load More Button', 'js_composer'), 'dependency' => array('element' => 'style', 'value' => array('load-more')), 'description' => __('Select button style.', 'js_composer')), array('type' => 'hidden', 'heading' => __('Button color', 'js_composer'), 'param_name' => 'button_color', 'value' => '', 'param_holder_class' => 'vc_colored-dropdown', 'group' => __('Load More Button', 'js_composer'), 'dependency' => array('element' => 'style', 'value' => array('load-more')), 'description' => __('Select button color.', 'js_composer')), array('type' => 'hidden', 'heading' => __('Button size', 'js_composer'), 'param_name' => 'button_size', 'value' => '', 'description' => __('Select button size.', 'js_composer'), 'group' => __('Load More Button', 'js_composer'), 'dependency' => array('element' => 'style', 'value' => array('load-more'))), array('type' => 'animation_style', 'heading' => __('Initial loading animation', 'js_composer'), 'param_name' => 'initial_loading_animation', 'value' => 'fadeIn', 'settings' => array('type' => array('in', 'other')), 'description' => __('Select initial loading animation for grid element.', 'js_composer'))));
     self::$mediaGrid = array_merge(self::$mediaGrid);
     return self::$mediaGrid;
 }
예제 #2
0
function CruxStore_Icon_map($group = false, $prefix = '', $default = 'fa fa-adjust', $remove = false)
{
    if ($remove) {
        $shape_arr = array();
    } else {
        $shape_arr = array(array('type' => 'dropdown', 'heading' => __('Background shape', 'js_composer'), 'param_name' => 'background_style', 'value' => array(__('None', 'js_composer') => '', __('Circle', 'js_composer') => 'rounded', __('Square', 'js_composer') => 'boxed', __('Rounded', 'js_composer') => 'rounded-less', __('Outline Circle', 'js_composer') => 'rounded-outline', __('Outline Square', 'js_composer') => 'boxed-outline', __('Outline Rounded', 'js_composer') => 'rounded-less-outline'), 'description' => __('Select background shape and style for icon.', 'js_composer'), 'dependency' => array("element" => "type", "value" => array('icon', 'svg')), "admin_label" => true), array('type' => 'dropdown', 'heading' => __('Background color', 'js_composer'), 'param_name' => 'background_color', 'value' => array_merge(array(esc_html__('Accent color', 'cruxstore') => 'accent'), getVcShared('colors'), array(__('Custom color', 'js_composer') => 'custom')), 'std' => 'grey', 'description' => __('Select background color for icon.', 'js_composer'), 'param_holder_class' => 'vc_colored-dropdown', 'dependency' => array('element' => 'background_style', 'not_empty' => true)), array('type' => 'colorpicker', 'heading' => __('Custom background color', 'js_composer'), 'param_name' => 'custom_background_color', 'description' => __('Select custom icon background color.', 'js_composer'), 'dependency' => array('element' => 'background_color', 'value' => 'custom')), array('type' => 'dropdown', 'heading' => __('Background color on hover', 'js_composer'), 'param_name' => 'background_color_hover', 'value' => array_merge(array(esc_html__('Default', 'js_composer') => 'default'), array(esc_html__('Accent color', 'cruxstore') => 'accent'), getVcShared('colors'), array(__('Custom color', 'js_composer') => 'custom')), 'std' => '', 'description' => __('Select background color for icon.', 'js_composer'), 'param_holder_class' => 'vc_colored-dropdown', 'dependency' => array('element' => 'background_style', 'not_empty' => true)), array('type' => 'colorpicker', 'heading' => __('Custom background color on hover', 'js_composer'), 'param_name' => 'custom_background_color_hover', 'description' => __('Select custom icon background color.', 'js_composer'), 'dependency' => array('element' => 'background_color_hover', 'value' => 'custom')));
    }
    $arr = array_merge(array(array('type' => 'dropdown', 'heading' => esc_html__('Icon to display', 'cruxstore'), 'param_name' => 'type', 'value' => array(esc_html__('Font Icon', 'cruxstore') => 'icon', esc_html__('Svg Icon', 'cruxstore') => 'svg', esc_html__('Image Icon', 'cruxstore') => 'image'), 'description' => esc_html__('Select your layout.', 'cruxstore'), "admin_label" => true), array('type' => 'attach_image', 'heading' => esc_html__('Image Thumbnail', 'cruxstore'), 'param_name' => 'image', 'dependency' => array('element' => 'type', 'value' => array('image')), 'description' => esc_html__('Select image from media library.', 'js_composer')), array('type' => 'textarea_raw_html', 'heading' => __('SVG HTML', 'js_composer'), 'param_name' => 'svg', 'description' => __('Enter your SVG content.', 'cruxstore'), 'dependency' => array('element' => 'type', 'value' => array('svg')), 'value' => base64_encode('')), array("type" => "cruxstore_icons", 'heading' => esc_html__('Choose your icon', 'js_composer'), 'param_name' => 'icon', "value" => $default, 'description' => esc_html__('Use existing font icon or upload a custom image.', 'cruxstore'), 'dependency' => array("element" => "type", "value" => array('icon'))), array('type' => 'dropdown', 'heading' => esc_html__('Icon color', 'js_composer'), 'param_name' => 'color', 'value' => array_merge(array(esc_html__('Default', 'js_composer') => 'default'), array(esc_html__('Accent color', 'cruxstore') => 'accent'), getVcShared('colors'), array(esc_html__('Custom color', 'js_composer') => 'custom')), 'description' => esc_html__('Select icon color.', 'js_composer'), 'param_holder_class' => 'vc_colored-dropdown', 'dependency' => array("element" => "type", "value" => array('icon', 'svg')), "admin_label" => true), array('type' => 'colorpicker', 'heading' => esc_html__('Custom Icon Color', 'js_composer'), 'param_name' => 'custom_color', 'description' => esc_html__('Select custom icon color.', 'js_composer'), 'dependency' => array('element' => 'color', 'value' => 'custom')), array('type' => 'dropdown', 'heading' => esc_html__('Icon color on Hover', 'js_composer'), 'param_name' => 'color_hover', 'value' => array_merge(array(esc_html__('Default', 'js_composer') => 'default'), array(esc_html__('Accent color', 'cruxstore') => 'accent'), getVcShared('colors'), array(esc_html__('Custom color', 'js_composer') => 'custom')), 'description' => esc_html__('Select icon color hover.', 'js_composer'), 'param_holder_class' => 'vc_colored-dropdown', 'dependency' => array("element" => "type", "value" => array('icon', 'svg')), "admin_label" => true), array('type' => 'colorpicker', 'heading' => esc_html__('Custom Icon Color on hover', 'js_composer'), 'param_name' => 'custom_color_hover', 'description' => esc_html__('Select custom icon color hover.', 'js_composer'), 'dependency' => array('element' => 'color_hover', 'value' => 'custom'))), $shape_arr, array(array('type' => 'dropdown', 'heading' => esc_html__('Size', 'js_composer'), 'param_name' => 'size', 'value' => array_merge(getVcShared('sizes'), array('Extra Large' => 'xl')), 'std' => 'md', 'description' => esc_html__('Icon size.', 'js_composer'), "admin_label" => true)));
    if ($group) {
        foreach ($arr as &$item) {
            $item['group'] = esc_html__('Icon', 'cruxstore');
            if ($prefix) {
                $item['param_name'] = $prefix . $item['param_name'];
                if (isset($item['dependency'])) {
                    $item['dependency']['element'] = $prefix . $item['dependency']['element'];
                }
            }
        }
    }
    return $arr;
}
function add_custom_theme_vc_params()
{
    // Old element color structure
    // ...............................................................
    // Visual Composer color values
    $vc_colors = 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");
    // Custom color values
    $theme_custom_colors = array(__("Theme Default", "framework") => "theme-default", __("Theme Accent Color", "framework") => "accent-primary");
    // Merged all colors
    $all_colors = array_merge((array) $theme_custom_colors, (array) $vc_colors);
    // Updated element color structure
    // ...............................................................
    // Visual Composer color values
    $vc_shared_colors = function_exists('getVcShared') ? getVcShared("colors") : array();
    // Custom color values
    $theme_custom_shared_colors = array(__("Theme Default", "framework") => "theme-default", __("Theme Accent Color", "framework") => "accent-primary");
    // Merged all colors
    $all_shared_colors = array_merge((array) $theme_custom_shared_colors, (array) $vc_shared_colors);
    // Apply updtes to default VC elements using add param function
    // ===============================================================
    if (function_exists('vc_add_param')) {
        // Add custom progress bar colors
        // ===============================================================
        // Add parameters to 'vc_progress_bar'
        // ...............................................................
        $base = 'vc_progress_bar';
        $extraParams = array(array("type" => "dropdown", "heading" => __("Bar color", "js_composer"), "param_name" => "bgcolor", "value" => array_merge(array(__("Theme Accent Color", "js_composer") => "accent-primary"), (array) $vc_colors), "description" => __("Select bar background color.", "js_composer"), "admin_label" => true));
        foreach ($extraParams as $params) {
            vc_add_param($base, $params);
        }
        // Add custom button colors
        // ===============================================================
        // Add parameters to 'vc_button' (Button)
        // ...............................................................
        $base = 'vc_button';
        $extraParams = array(array("type" => "dropdown", "heading" => __("Color", "js_composer"), "param_name" => "color", "value" => $all_colors, "description" => __("Button color.", "js_composer"), "param_holder_class" => 'vc-colored-dropdown'));
        foreach ($extraParams as $params) {
            vc_add_param($base, $params);
        }
        // Add parameters to 'vc_button2' (Button 2)
        // ...............................................................
        /*$base = 'vc_button2';
        		$extraParams = array(
        			array(
        				"type" => "dropdown",
        				"heading" => __("Color", "js_composer"),
        				"param_name" => "color",
        				"value" => $all_shared_colors,
        				"description" => __("Button color.", "js_composer"),
        				"param_holder_class" => 'vc-colored-dropdown'
        			)
        		);
        		foreach ($extraParams as $params) {
        			vc_add_param( $base, $params );
        		}*/
        // Add parameters to 'vc_cta_button' (Call to Action)
        // ...............................................................
        $base = 'vc_cta_button';
        $extraParams = array(array("type" => "dropdown", "heading" => __("Color", "js_composer"), "param_name" => "color", "value" => $all_colors, "description" => __("Button color.", "js_composer"), "param_holder_class" => 'vc-colored-dropdown'));
        foreach ($extraParams as $params) {
            vc_add_param($base, $params);
        }
        // Add parameters to 'vc_cta_button2' (Call to Action 2)
        // ...............................................................
        /*$base = 'vc_cta_button2'; 
        		$extraParams = array(
        			array(
        				"type" => "dropdown",
        				"heading" => __("Color", "js_composer"),
        				"param_name" => "color",
        				"value" => $all_shared_colors,
        				"description" => __("Button color.", "js_composer"),
        				"param_holder_class" => 'vc-colored-dropdown'
        			)
        		);
        		foreach ($extraParams as $params) {
        			vc_add_param( $base, $params );
        		}*/
        // Add custom row options
        // ===============================================================
        // Add parameters to 'vc_row'
        $base = 'vc_row';
        $extraParams = array(array("type" => "checkbox", "param_name" => "bg_parallax", "value" => array(__('Enable parallax effect', 'framework') => 'true'), "description" => __("Make the background image have a parallax scrolling effect.", "framework")), array("type" => "dropdown", "class" => "", "heading" => __("Scroll Offset (inertia)", 'framework'), "param_name" => "inertia", "value" => array(1 => '0.1', 2 => '0.2', 3 => '0.3', 4 => '0.4', 5 => '0.5', 6 => '0.6', 7 => '0.7', 8 => '0.8', 9 => '0.9'), "description" => __("Specify the offset speed of the parallax effect. The lower the number the less the background moves relative to browser window.", 'framework')), array("type" => "textfield", "admin_label" => true, "heading" => __("Google Maps Url", "framework"), "param_name" => "bg_maps", "description" => __("Instead of a background image, show a gorgeous full width google map. Parallax effect won't apply here.", "framework")), array("type" => "textfield", "admin_label" => true, "heading" => __("Google Maps Height", "framework"), "param_name" => "bg_maps_height", "description" => __("Specify the height of the maps. (default 200px)", "framework")), array("type" => "textfield", "admin_label" => true, "heading" => __("Google Maps Zoom Level", "framework"), "param_name" => "bg_maps_zoom", "description" => __("Specify the zoom level for the maps. The higher the number the closer up it gets zoomed in. (Range 1 - 19, 17 by default)", "framework")), array("type" => "checkbox", "param_name" => "bg_maps_scroll", "value" => array(__('Google Maps Mousewheel Scrolling', 'framework') => 'true'), "description" => __("Should the user be able to scroll the maps with his mousewheel? Not recommended for one page layouts.", 'framework')), array("type" => "checkbox", "param_name" => "bg_maps_infobox", "value" => array(__('Google Maps Show info box', 'framework') => 'true'), "description" => __("Shows an information box right next to the pin that locates the address.", "framework")), array("type" => "textarea", "admin_label" => true, "heading" => __("Google Maps Info Box Content", "framework"), "param_name" => "bg_maps_infobox_content", "description" => __("Enter the content that should be shown in the information box of the location. If empty, the address will be shown. Basic HTML allowed.", "framework")));
        foreach ($extraParams as $params) {
            vc_add_param($base, $params);
        }
        // Update 'vc_row' to include custom shortcode template and re-map shortcode
        $sc = vc_map_update('vc_row', array('html_template' => locate_template('templates/vc_templates/vc_row.php')));
        // Remove default vc_row shortcode
        vc_remove_element('vc_row');
        // Remap shortcode, identical to original, but with custom template path
        vc_map($sc['vc_row']);
    }
}
예제 #4
0
<?php

if (!defined('ABSPATH')) {
    die('-1');
}
return array('name' => __('Accordion', 'js_composer'), 'base' => 'vc_tta_accordion', 'icon' => 'icon-wpb-ui-accordion', 'is_container' => true, 'show_settings_on_create' => false, 'as_parent' => array('only' => 'vc_tta_section'), 'category' => __('Content', 'js_composer'), 'description' => __('Collapsible content panels', 'js_composer'), 'params' => array(array('type' => 'textfield', 'param_name' => 'title', 'heading' => __('Widget title', 'js_composer'), 'description' => __('Enter text used as widget title (Note: located above content element).', 'js_composer')), array('type' => 'dropdown', 'param_name' => 'style', 'value' => array(__('Classic', 'js_composer') => 'classic', __('Modern', 'js_composer') => 'modern', __('Flat', 'js_composer') => 'flat', __('Outline', 'js_composer') => 'outline'), 'heading' => __('Style', 'js_composer'), 'description' => __('Select accordion display style.', 'js_composer')), array('type' => 'dropdown', 'param_name' => 'shape', 'value' => array(__('Rounded', 'js_composer') => 'rounded', __('Square', 'js_composer') => 'square', __('Round', 'js_composer') => 'round'), 'heading' => __('Shape', 'js_composer'), 'description' => __('Select accordion shape.', 'js_composer')), array('type' => 'dropdown', 'param_name' => 'color', 'value' => getVcShared('colors-dashed'), 'std' => 'grey', 'heading' => __('Color', 'js_composer'), 'description' => __('Select accordion color.', 'js_composer'), 'param_holder_class' => 'vc_colored-dropdown'), array('type' => 'checkbox', 'param_name' => 'no_fill', 'heading' => __('Do not fill content area?', 'js_composer'), 'description' => __('Do not fill content area with color.', 'js_composer')), array('type' => 'dropdown', 'param_name' => 'spacing', 'value' => array(__('None', 'js_composer') => '', '1px' => '1', '2px' => '2', '3px' => '3', '4px' => '4', '5px' => '5', '10px' => '10', '15px' => '15', '20px' => '20', '25px' => '25', '30px' => '30', '35px' => '35'), 'heading' => __('Spacing', 'js_composer'), 'description' => __('Select accordion spacing.', 'js_composer')), array('type' => 'dropdown', 'param_name' => 'gap', 'value' => array(__('None', 'js_composer') => '', '1px' => '1', '2px' => '2', '3px' => '3', '4px' => '4', '5px' => '5', '10px' => '10', '15px' => '15', '20px' => '20', '25px' => '25', '30px' => '30', '35px' => '35'), 'heading' => __('Gap', 'js_composer'), 'description' => __('Select accordion gap.', 'js_composer')), array('type' => 'dropdown', 'param_name' => 'c_align', 'value' => array(__('Left', 'js_composer') => 'left', __('Right', 'js_composer') => 'right', __('Center', 'js_composer') => 'center'), 'heading' => __('Alignment', 'js_composer'), 'description' => __('Select accordion section title alignment.', 'js_composer')), array('type' => 'dropdown', 'param_name' => 'autoplay', 'value' => array(__('None', 'js_composer') => 'none', '1' => '1', '2' => '2', '3' => '3', '4' => '4', '5' => '5', '10' => '10', '20' => '20', '30' => '30', '40' => '40', '50' => '50', '60' => '60'), 'std' => 'none', 'heading' => __('Autoplay', 'js_composer'), 'description' => __('Select auto rotate for accordion in seconds (Note: disabled by default).', 'js_composer')), array('type' => 'checkbox', 'param_name' => 'collapsible_all', 'heading' => __('Allow collapse all?', 'js_composer'), 'description' => __('Allow collapse all accordion sections.', 'js_composer')), array('type' => 'dropdown', 'param_name' => 'c_icon', 'value' => array(__('None', 'js_composer') => '', __('Chevron', 'js_composer') => 'chevron', __('Plus', 'js_composer') => 'plus', __('Triangle', 'js_composer') => 'triangle'), 'std' => 'plus', 'heading' => __('Icon', 'js_composer'), 'description' => __('Select accordion navigation icon.', 'js_composer')), array('type' => 'dropdown', 'param_name' => 'c_position', 'value' => array(__('Left', 'js_composer') => 'left', __('Right', 'js_composer') => 'right'), 'dependency' => array('element' => 'c_icon', 'not_empty' => true), 'heading' => __('Position', 'js_composer'), 'description' => __('Select accordion navigation icon position.', 'js_composer')), array('type' => 'textfield', 'param_name' => 'active_section', 'heading' => __('Active section', 'js_composer'), 'value' => 1, 'description' => __('Enter active section number (Note: to have all sections closed on initial load enter non-existing number).', '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')), array('type' => 'css_editor', 'heading' => __('CSS box', 'js_composer'), 'param_name' => 'css', 'group' => __('Design Options', 'js_composer'))), 'js_view' => 'VcBackendTtaAccordionView', 'custom_markup' => '
<div class="vc_tta-container" data-vc-action="collapseAll">
	<div class="vc_general vc_tta vc_tta-accordion vc_tta-color-backend-accordion-white vc_tta-style-flat vc_tta-shape-rounded vc_tta-o-shape-group vc_tta-controls-align-left vc_tta-gap-2">
	   <div class="vc_tta-panels vc_clearfix {{container-class}}">
	      {{ content }}
	      <div class="vc_tta-panel vc_tta-section-append">
	         <div class="vc_tta-panel-heading">
	            <h4 class="vc_tta-panel-title vc_tta-controls-icon-position-left">
	               <a href="javascript:;" aria-expanded="false" class="vc_tta-backend-add-control">
	                   <span class="vc_tta-title-text">' . __('Add Section', 'js_composer') . '</span>
	                    <i class="vc_tta-controls-icon vc_tta-controls-icon-plus"></i>
					</a>
	            </h4>
	         </div>
	      </div>
	   </div>
	</div>
</div>', 'default_content' => '[vc_tta_section title="' . sprintf('%s %d', __('Section', 'js_composer'), 1) . '"][/vc_tta_section][vc_tta_section title="' . sprintf('%s %d', __('Section', 'js_composer'), 2) . '"][/vc_tta_section]');
예제 #5
0
$grid_cols_list = array(array('label' => '6', 'value' => 2), array('label' => '4', 'value' => 3), array('label' => '3', 'value' => 4), array('label' => '2', 'value' => 6), array('label' => '1', 'value' => 12));
$btn3_params = vc_map_integrate_shortcode('vc_btn', 'btn_', __('Load More Button', 'js_composer'), array('exclude' => array('link', 'css', 'el_class', 'css_animation')), array('element' => 'style', 'value' => array('load-more')));
foreach ($btn3_params as $key => $value) {
    if ('btn_title' == $value['param_name']) {
        $btn3_params[$key]['value'] = __('Load more', 'js_composer');
    } else {
        if ('btn_color' == $value['param_name']) {
            $btn3_params[$key]['std'] = 'blue';
        } else {
            if ('btn_style' == $value['param_name']) {
                $btn3_params[$key]['std'] = 'flat';
            }
        }
    }
}
$grid_params = array_merge(array(0 => array('type' => 'dropdown', 'heading' => __('Data source', 'js_composer'), 'param_name' => 'post_type', 'value' => $post_types_list, 'save_always' => true, 'description' => __('Select content type for your grid.', 'js_composer')), 1 => array('type' => 'autocomplete', 'heading' => __('Include only', 'js_composer'), 'param_name' => 'include', 'description' => __('Add posts, pages, etc. by title.', 'js_composer'), 'settings' => array('multiple' => true, 'sortable' => true, 'groups' => true), 'dependency' => array('element' => 'post_type', 'value' => array('ids'))), 2 => array('type' => 'textarea_safe', 'heading' => __('Custom query', 'js_composer'), 'param_name' => 'custom_query', 'description' => __('Build custom query according to <a href="http://codex.wordpress.org/Function_Reference/query_posts">WordPress Codex</a>.', 'js_composer'), 'dependency' => array('element' => 'post_type', 'value' => array('custom'))), 3 => array('type' => 'autocomplete', 'heading' => __('Narrow data source', 'js_composer'), 'param_name' => 'taxonomies', 'settings' => array('multiple' => true, 'min_length' => 1, 'groups' => true, 'unique_values' => true, 'display_inline' => true, 'delay' => 500, 'auto_focus' => true), 'param_holder_class' => 'vc_not-for-custom', 'description' => __('Enter categories, tags or custom taxonomies.', 'js_composer'), 'dependency' => array('element' => 'post_type', 'value_not_equal_to' => array('ids', 'custom'))), 4 => array('type' => 'textfield', 'heading' => __('Total items', 'js_composer'), 'param_name' => 'max_items', 'value' => 10, 'param_holder_class' => 'vc_not-for-custom', 'description' => __('Set max limit for items in grid or enter -1 to display all (limited to 1000).', 'js_composer'), 'dependency' => array('element' => 'post_type', 'value_not_equal_to' => array('ids', 'custom'))), 5 => array('type' => 'dropdown', 'heading' => __('Display Style', 'js_composer'), 'param_name' => 'style', 'value' => array(__('Show all', 'js_composer') => 'all', __('Load more button', 'js_composer') => 'load-more', __('Lazy loading', 'js_composer') => 'lazy', __('Pagination', 'js_composer') => 'pagination'), 'dependency' => array('element' => 'post_type', 'value_not_equal_to' => array('custom')), 'edit_field_class' => 'vc_col-sm-6 vc_column', 'description' => __('Select display style for grid.', 'js_composer')), 6 => array('type' => 'textfield', 'heading' => __('Items per page', 'js_composer'), 'param_name' => 'items_per_page', 'description' => __('Number of items to show per page.', 'js_composer'), 'value' => '10', 'dependency' => array('element' => 'style', 'value' => array('lazy', 'load-more', 'pagination')), 'edit_field_class' => 'vc_col-sm-6 vc_column'), 7 => array('type' => 'checkbox', 'heading' => __('Show filter', 'js_composer'), 'param_name' => 'show_filter', 'value' => array(__('Yes', 'js_composer') => 'yes'), 'description' => __('Append filter to grid.', 'js_composer')), 8 => array('type' => 'dropdown', 'heading' => __('Grid elements per row', 'js_composer'), 'param_name' => 'element_width', 'value' => $grid_cols_list, 'std' => '4', 'edit_field_class' => 'vc_col-sm-6 vc_column', 'description' => __('Select number of single grid elements per row.', 'js_composer')), 9 => array('type' => 'dropdown', 'heading' => __('Gap', 'js_composer'), 'param_name' => 'gap', 'value' => array('0px' => '0', '1px' => '1', '2px' => '2', '3px' => '3', '4px' => '4', '5px' => '5', '10px' => '10', '15px' => '15', '20px' => '20', '25px' => '25', '30px' => '30', '35px' => '35'), 'std' => '30', 'description' => __('Select gap between grid elements.', 'js_composer'), 'edit_field_class' => 'vc_col-sm-6 vc_column'), 10 => array('type' => 'dropdown', 'heading' => __('Order by', 'js_composer'), 'param_name' => 'orderby', 'value' => array(__('Date', 'js_composer') => 'date', __('Order by post ID', 'js_composer') => 'ID', __('Author', 'js_composer') => 'author', __('Title', 'js_composer') => 'title', __('Last modified date', 'js_composer') => 'modified', __('Post/page parent ID', 'js_composer') => 'parent', __('Number of comments', 'js_composer') => 'comment_count', __('Menu order/Page Order', 'js_composer') => 'menu_order', __('Meta value', 'js_composer') => 'meta_value', __('Meta value number', 'js_composer') => 'meta_value_num', __('Random order', 'js_composer') => 'rand'), 'description' => __('Select order type. If "Meta value" or "Meta value Number" is chosen then meta key is required.', 'js_composer'), 'group' => __('Data Settings', 'js_composer'), 'param_holder_class' => 'vc_grid-data-type-not-ids', 'dependency' => array('element' => 'post_type', 'value_not_equal_to' => array('ids', 'custom'))), 11 => array('type' => 'dropdown', 'heading' => __('Sort order', 'js_composer'), 'param_name' => 'order', 'group' => __('Data Settings', 'js_composer'), 'value' => array(__('Descending', 'js_composer') => 'DESC', __('Ascending', 'js_composer') => 'ASC'), 'param_holder_class' => 'vc_grid-data-type-not-ids', 'description' => __('Select sorting order.', 'js_composer'), 'dependency' => array('element' => 'post_type', 'value_not_equal_to' => array('ids', 'custom'))), 12 => array('type' => 'textfield', 'heading' => __('Meta key', 'js_composer'), 'param_name' => 'meta_key', 'description' => __('Input meta key for grid ordering.', 'js_composer'), 'group' => __('Data Settings', 'js_composer'), 'param_holder_class' => 'vc_grid-data-type-not-ids', 'dependency' => array('element' => 'orderby', 'value' => array('meta_value', 'meta_value_num'))), 13 => array('type' => 'textfield', 'heading' => __('Offset', 'js_composer'), 'param_name' => 'offset', 'description' => __('Number of grid elements to displace or pass over.', 'js_composer'), 'group' => __('Data Settings', 'js_composer'), 'param_holder_class' => 'vc_grid-data-type-not-ids', 'dependency' => array('element' => 'post_type', 'value_not_equal_to' => array('ids', 'custom'))), 14 => array('type' => 'autocomplete', 'heading' => __('Exclude', 'js_composer'), 'param_name' => 'exclude', 'description' => __('Exclude posts, pages, etc. by title.', 'js_composer'), 'group' => __('Data Settings', 'js_composer'), 'settings' => array('multiple' => true), 'param_holder_class' => 'vc_grid-data-type-not-ids', 'dependency' => array('element' => 'post_type', 'value_not_equal_to' => array('ids', 'custom'), 'callback' => 'vc_grid_exclude_dependency_callback')), 15 => array('type' => 'dropdown', 'heading' => __('Filter by', 'js_composer'), 'param_name' => 'filter_source', 'value' => $taxonomies_for_filter, 'group' => __('Filter', 'js_composer'), 'dependency' => array('element' => 'show_filter', 'value' => array('yes')), 'save_always' => true, 'description' => __('Select filter source.', 'js_composer')), 16 => array('type' => 'autocomplete', 'heading' => __('Exclude from filter list', 'js_composer'), 'param_name' => 'exclude_filter', 'settings' => array('multiple' => true, 'min_length' => 1, 'groups' => true, 'unique_values' => true, 'display_inline' => true, 'delay' => 500, 'auto_focus' => true), 'description' => __('Enter categories, tags won\'t be shown in the filters list', 'js_composer'), 'dependency' => array('element' => 'show_filter', 'value' => array('yes'), 'callback' => 'vcGridFilterExcludeCallBack'), 'group' => __('Filter', 'js_composer')), 17 => array('type' => 'dropdown', 'heading' => __('Style', 'js_composer'), 'param_name' => 'filter_style', 'value' => array(__('Rounded', 'js_composer') => 'default', __('Less Rounded', 'js_composer') => 'default-less-rounded', __('Border', 'js_composer') => 'bordered', __('Rounded Border', 'js_composer') => 'bordered-rounded', __('Less Rounded Border', 'js_composer') => 'bordered-rounded-less', __('Filled', 'js_composer') => 'filled', __('Rounded Filled', 'js_composer') => 'filled-rounded', __('Dropdown', 'js_composer') => 'dropdown'), 'dependency' => array('element' => 'show_filter', 'value' => array('yes')), 'group' => __('Filter', 'js_composer'), 'description' => __('Select filter display style.', 'js_composer')), 18 => array('type' => 'dropdown', 'heading' => __('Alignment', 'js_composer'), 'param_name' => 'filter_align', 'value' => array(__('Center', 'js_composer') => 'center', __('Left', 'js_composer') => 'left', __('Right', 'js_composer') => 'right'), 'dependency' => array('element' => 'show_filter', 'value' => array('yes')), 'group' => __('Filter', 'js_composer'), 'description' => __('Select filter alignment.', 'js_composer')), 19 => array('type' => 'dropdown', 'heading' => __('Color', 'js_composer'), 'param_name' => 'filter_color', 'value' => getVcShared('colors'), 'std' => 'grey', 'param_holder_class' => 'vc_colored-dropdown', 'dependency' => array('element' => 'show_filter', 'value' => array('yes')), 'group' => __('Filter', 'js_composer'), 'description' => __('Select filter color.', 'js_composer')), 20 => array('type' => 'dropdown', 'heading' => __('Filter size', 'js_composer'), 'param_name' => 'filter_size', 'value' => getVcShared('sizes'), 'std' => 'md', 'description' => __('Select filter size.', 'js_composer'), 'dependency' => array('element' => 'show_filter', 'value' => array('yes')), 'group' => __('Filter', 'js_composer')), 24 => array('type' => 'dropdown', 'heading' => __('Arrows design', 'js_composer'), 'param_name' => 'arrows_design', 'value' => array(__('None', 'js_composer') => 'none', __('Simple', 'js_composer') => 'vc_arrow-icon-arrow_01_left', __('Simple Circle Border', 'js_composer') => 'vc_arrow-icon-arrow_02_left', __('Simple Circle', 'js_composer') => 'vc_arrow-icon-arrow_03_left', __('Simple Square', 'js_composer') => 'vc_arrow-icon-arrow_09_left', __('Simple Square Rounded', 'js_composer') => 'vc_arrow-icon-arrow_12_left', __('Simple Rounded', 'js_composer') => 'vc_arrow-icon-arrow_11_left', __('Rounded', 'js_composer') => 'vc_arrow-icon-arrow_04_left', __('Rounded Circle Border', 'js_composer') => 'vc_arrow-icon-arrow_05_left', __('Rounded Circle', 'js_composer') => 'vc_arrow-icon-arrow_06_left', __('Rounded Square', 'js_composer') => 'vc_arrow-icon-arrow_10_left', __('Simple Arrow', 'js_composer') => 'vc_arrow-icon-arrow_08_left', __('Simple Rounded Arrow', 'js_composer') => 'vc_arrow-icon-arrow_07_left'), 'group' => __('Pagination', 'js_composer'), 'dependency' => array('element' => 'style', 'value' => array('pagination')), 'description' => __('Select design for arrows.', 'js_composer')), 25 => array('type' => 'dropdown', 'heading' => __('Arrows position', 'js_composer'), 'param_name' => 'arrows_position', 'value' => array(__('Inside Wrapper', 'js_composer') => 'inside', __('Outside Wrapper', 'js_composer') => 'outside'), 'group' => __('Pagination', 'js_composer'), 'dependency' => array('element' => 'arrows_design', 'value_not_equal_to' => array('none')), 'description' => __('Arrows will be displayed inside or outside grid.', 'js_composer')), 26 => array('type' => 'dropdown', 'heading' => __('Arrows color', 'js_composer'), 'param_name' => 'arrows_color', 'value' => getVcShared('colors'), 'param_holder_class' => 'vc_colored-dropdown', 'group' => __('Pagination', 'js_composer'), 'dependency' => array('element' => 'arrows_design', 'value_not_equal_to' => array('none')), 'description' => __('Select color for arrows.', 'js_composer')), 27 => array('type' => 'dropdown', 'heading' => __('Pagination style', 'js_composer'), 'param_name' => 'paging_design', 'value' => array(__('None', 'js_composer') => 'none', __('Square Dots', 'js_composer') => 'square_dots', __('Radio Dots', 'js_composer') => 'radio_dots', __('Point Dots', 'js_composer') => 'point_dots', __('Fill Square Dots', 'js_composer') => 'fill_square_dots', __('Rounded Fill Square Dots', 'js_composer') => 'round_fill_square_dots', __('Pagination Default', 'js_composer') => 'pagination_default', __('Outline Default Dark', 'js_composer') => 'pagination_default_dark', __('Outline Default Light', 'js_composer') => 'pagination_default_light', __('Pagination Rounded', 'js_composer') => 'pagination_rounded', __('Outline Rounded Dark', 'js_composer') => 'pagination_rounded_dark', __('Outline Rounded Light', 'js_composer') => 'pagination_rounded_light', __('Pagination Square', 'js_composer') => 'pagination_square', __('Outline Square Dark', 'js_composer') => 'pagination_square_dark', __('Outline Square Light', 'js_composer') => 'pagination_square_light', __('Pagination Rounded Square', 'js_composer') => 'pagination_rounded_square', __('Outline Rounded Square Dark', 'js_composer') => 'pagination_rounded_square_dark', __('Outline Rounded Square Light', 'js_composer') => 'pagination_rounded_square_light', __('Stripes Dark', 'js_composer') => 'pagination_stripes_dark', __('Stripes Light', 'js_composer') => 'pagination_stripes_light'), 'std' => 'radio_dots', 'group' => __('Pagination', 'js_composer'), 'dependency' => array('element' => 'style', 'value' => array('pagination')), 'description' => __('Select pagination style.', 'js_composer')), 28 => array('type' => 'dropdown', 'heading' => __('Pagination color', 'js_composer'), 'param_name' => 'paging_color', 'value' => getVcShared('colors'), 'std' => 'grey', 'param_holder_class' => 'vc_colored-dropdown', 'group' => __('Pagination', 'js_composer'), 'dependency' => array('element' => 'paging_design', 'value_not_equal_to' => array('none')), 'description' => __('Select pagination color.', 'js_composer')), 29 => array('type' => 'checkbox', 'heading' => __('Loop pages?', 'js_composer'), 'param_name' => 'loop', 'description' => __('Allow items to be repeated in infinite loop (carousel).', 'js_composer'), 'value' => array(__('Yes', 'js_composer') => 'yes'), 'group' => __('Pagination', 'js_composer'), 'dependency' => array('element' => 'style', 'value' => array('pagination'))), 30 => array('type' => 'textfield', 'heading' => __('Autoplay delay', 'js_composer'), 'param_name' => 'autoplay', 'value' => '-1', 'description' => __('Enter value in seconds. Set -1 to disable autoplay.', 'js_composer'), 'group' => __('Pagination', 'js_composer'), 'dependency' => array('element' => 'style', 'value' => array('pagination'))), 31 => array('type' => 'animation_style', 'heading' => __('Animation In', 'js_composer'), 'param_name' => 'paging_animation_in', 'group' => __('Pagination', 'js_composer'), 'settings' => array('type' => array('in', 'other')), 'dependency' => array('element' => 'style', 'value' => array('pagination')), 'description' => __('Select "animation in" for page transition.', 'js_composer')), 32 => array('type' => 'animation_style', 'heading' => __('Animation Out', 'js_composer'), 'param_name' => 'paging_animation_out', 'group' => __('Pagination', 'js_composer'), 'settings' => array('type' => array('out')), 'dependency' => array('element' => 'style', 'value' => array('pagination')), 'description' => __('Select "animation out" for page transition.', 'js_composer')), 33 => array('type' => 'vc_grid_item', 'heading' => __('Grid element template', 'js_composer'), 'param_name' => 'item', 'description' => sprintf(__('%sCreate new%s template or %smodify selected%s. Predefined templates will be cloned.', 'js_composer'), '<a href="' . esc_url(admin_url('post-new.php?post_type=vc_grid_item')) . '" target="_blank">', '</a>', '<a href="#" target="_blank" data-vc-grid-item="edit_link">', '</a>'), 'group' => __('Item Design', 'js_composer'), 'value' => 'none'), 34 => array('type' => 'vc_grid_id', 'param_name' => 'grid_id'), 35 => array('type' => 'textfield', 'heading' => __('Extra class name', 'js_composer'), 'param_name' => 'el_class', 'description' => __('Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer')), 36 => array('type' => 'css_editor', 'heading' => __('CSS box', 'js_composer'), 'param_name' => 'css', 'group' => __('Design Options', 'js_composer')), 21 => array('type' => 'hidden', 'heading' => __('Button style', 'js_composer'), 'param_name' => 'button_style', 'value' => '', 'param_holder_class' => 'vc_colored-dropdown', 'group' => __('Load More Button', 'js_composer'), 'dependency' => array('element' => 'style', 'value' => array('load-more')), 'description' => __('Select button style.', 'js_composer')), 22 => array('type' => 'hidden', 'heading' => __('Button color', 'js_composer'), 'param_name' => 'button_color', 'value' => '', 'param_holder_class' => 'vc_colored-dropdown', 'group' => __('Load More Button', 'js_composer'), 'dependency' => array('element' => 'style', 'value' => array('load-more')), 'description' => __('Select button color.', 'js_composer')), 23 => array('type' => 'hidden', 'heading' => __('Button size', 'js_composer'), 'param_name' => 'button_size', 'value' => '', 'description' => __('Select button size.', 'js_composer'), 'group' => __('Load More Button', 'js_composer'), 'dependency' => array('element' => 'style', 'value' => array('load-more')))), $btn3_params);
add_filter('vc_autocomplete_vc_basic_grid_include_callback', 'vc_include_field_search', 10, 1);
// Get suggestion(find). Must return an array
add_filter('vc_autocomplete_vc_basic_grid_include_render', 'vc_include_field_render', 10, 1);
// Render exact product. Must return an array (label,value)
add_filter('vc_autocomplete_vc_masonry_grid_include_callback', 'vc_include_field_search', 10, 1);
// Get suggestion(find). Must return an array
add_filter('vc_autocomplete_vc_masonry_grid_include_render', 'vc_include_field_render', 10, 1);
// Render exact product. Must return an array (label,value)
// Narrow data taxonomies
add_filter('vc_autocomplete_vc_basic_grid_taxonomies_callback', 'vc_autocomplete_taxonomies_field_search', 10, 1);
add_filter('vc_autocomplete_vc_basic_grid_taxonomies_render', 'vc_autocomplete_taxonomies_field_render', 10, 1);
add_filter('vc_autocomplete_vc_masonry_grid_taxonomies_callback', 'vc_autocomplete_taxonomies_field_search', 10, 1);
add_filter('vc_autocomplete_vc_masonry_grid_taxonomies_render', 'vc_autocomplete_taxonomies_field_render', 10, 1);
// Narrow data taxonomies for exclude_filter
add_filter('vc_autocomplete_vc_basic_grid_exclude_filter_callback', 'vc_autocomplete_taxonomies_field_search', 10, 1);
예제 #6
0
파일: map.php 프로젝트: roycocup/enclothed
vc_map(array("name" => __("Carousel", 'vc_extend'), "base" => "vc_carousel", "class" => "", "icon" => "icon-wpb-vc_carousel", "category" => __('Content', 'js_composer'), "description" => __('Animated carousel with posts', 'js_composer'), "params" => array(array("type" => "textfield", "heading" => __("Widget title", "js_composer"), "param_name" => "title", "description" => __("Enter text which will be used as widget title. Leave blank if no title is needed.", "js_composer")), array("type" => "loop", "heading" => __("Carousel content", "js_composer"), "param_name" => "posts_query", 'settings' => array('size' => array('hidden' => false, 'value' => 10), 'order_by' => array('value' => 'date')), "description" => __("Create WordPress loop, to populate content from your site.", "js_composer")), array("type" => "sorted_list", "heading" => __("Teaser layout", "js_composer"), "param_name" => "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('link', __('Read more link', "js_composer")))), array("type" => "dropdown", "heading" => __("Link target", "js_composer"), "param_name" => "link_target", "value" => $target_arr), array("type" => "textfield", "heading" => __("Thumbnail size", "js_composer"), "param_name" => "thumb_size", "description" => __('Enter thumbnail size. Example: thumbnail, medium, large, full or other sizes defined by current theme. Alternatively enter image size in pixels: 200x100 (Width x Height).', "js_composer")), array("type" => "textfield", "heading" => __("Slider speed", "js_composer"), "param_name" => "speed", "value" => "5000", "description" => __("Duration of animation between slides (in ms)", "js_composer")), array("type" => "dropdown", "heading" => __("Slider mode", "js_composer"), "param_name" => "mode", "value" => array(__("Horizontal", "js_composer") => 'horizontal', __("Vertical", "js_composer") => 'vertical'), "description" => __("Slides will be positioned horizontally (for horizontal swipes) or vertically (for vertical swipes)", "js_composer")), array("type" => "textfield", "heading" => __("Slides per view", "js_composer"), "param_name" => "slides_per_view", "value" => "4", "description" => __("Set numbers of slides you want to display at the same time on slider's container for carousel mode. Also supports for 'auto' value, in this case it will fit slides depending on container's width. 'auto' mode doesn't compatible with loop mode.", "js_composer")), array("type" => 'checkbox', "heading" => __("Slider autoplay", "js_composer"), "param_name" => "autoplay", "description" => __("Enables autoplay mode.", "js_composer"), "value" => array(__("Yes, please", "js_composer") => 'yes')), array("type" => 'checkbox', "heading" => __("Hide pagination control", "js_composer"), "param_name" => "hide_pagination_control", "description" => __("If YES pagination control will be removed .", "js_composer"), "value" => array(__("Yes, please", "js_composer") => 'yes')), array("type" => 'checkbox', "heading" => __("Hide prev/next buttons", "js_composer"), "param_name" => "hide_prev_next_buttons", "description" => __("If \"YES\" prev/next control will be removed", "js_composer"), "value" => array(__("Yes, please", "js_composer") => 'yes')), array("type" => 'checkbox', "heading" => __("Partial view", "js_composer"), "param_name" => "partial_view", "description" => __("If \"YES\" part of the next slide will be visible on the right side.", "js_composer"), "value" => array(__("Yes, please", "js_composer") => 'yes')), array("type" => 'checkbox', "heading" => __("Slider loop", "js_composer"), "param_name" => "wrap", "description" => __("Enables loop mode.", "js_composer"), "value" => array(__("Yes, please", "js_composer") => 'yes')), 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")))));
/* Posts slider
---------------------------------------------------------- */
vc_map(array("name" => __("Posts Slider", "js_composer"), "base" => "vc_posts_slider", "icon" => "icon-wpb-slideshow", "category" => __('Content', 'js_composer'), "description" => __('Slider with WP Posts', 'js_composer'), "params" => array(array("type" => "textfield", "heading" => __("Widget title", "js_composer"), "param_name" => "title", "description" => __("Enter text which will be used as widget title. Leave blank if no title is needed.", "js_composer")), array("type" => "dropdown", "heading" => __("Slider type", "js_composer"), "param_name" => "type", "admin_label" => true, "value" => array(__("Flex slider fade", "js_composer") => "flexslider_fade", __("Flex slider slide", "js_composer") => "flexslider_slide", __("Nivo slider", "js_composer") => "nivo"), "description" => __("Select slider type.", "js_composer")), array("type" => "textfield", "heading" => __("Slides count", "js_composer"), "param_name" => "count", "description" => __('How many slides to show? Enter number or word "All".', "js_composer")), 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")), array("type" => "posttypes", "heading" => __("Post types", "js_composer"), "param_name" => "posttypes", "description" => __("Select post types to populate posts from.", "js_composer")), array("type" => "dropdown", "heading" => __("Description", "js_composer"), "param_name" => "slides_content", "value" => array(__("No description", "js_composer") => "", __("Teaser (Excerpt)", "js_composer") => "teaser"), "description" => __("Some sliders support description text, what content use for it?", "js_composer"), "dependency" => array('element' => "type", 'value' => array('flexslider_fade', 'flexslider_slide'))), array("type" => 'checkbox', "heading" => __("Output post title?", "js_composer"), "param_name" => "slides_title", "description" => __("If selected, title will be printed before the teaser text.", "js_composer"), "value" => array(__("Yes, please", "js_composer") => true), "dependency" => array('element' => "slides_content", 'value' => array('teaser'))), array("type" => "dropdown", "heading" => __("Link", "js_composer"), "param_name" => "link", "value" => array(__("Link to post", "js_composer") => "link_post", __("Link to bigger image", "js_composer") => "link_image", __("Open custom link", "js_composer") => "custom_link", __("No link", "js_composer") => "link_no"), "description" => __("Link type.", "js_composer")), array("type" => "exploded_textarea", "heading" => __("Custom links", "js_composer"), "param_name" => "custom_links", "dependency" => array('element' => "link", 'value' => 'custom_link'), "description" => __('Enter links for each slide here. Divide links with linebreaks (Enter).', 'js_composer')), array("type" => "textfield", "heading" => __("Thumbnail size", "js_composer"), "param_name" => "thumb_size", "description" => __('Enter thumbnail size. Example: thumbnail, medium, large, full or other sizes defined by current theme. Alternatively enter image size in pixels: 200x100 (Width x Height).', "js_composer")), array("type" => "textfield", "heading" => __("Post/Page IDs", "js_composer"), "param_name" => "posts_in", "description" => __('Fill this field with page/posts IDs separated by commas (,), to retrieve only them. Use this in conjunction with "Post types" field.', "js_composer")), array("type" => "exploded_textarea", "heading" => __("Categories", "js_composer"), "param_name" => "categories", "description" => __("If you want to narrow output, enter category names here. Note: Only listed categories will be included. Divide categories with linebreaks (Enter).", "js_composer")), array("type" => "dropdown", "heading" => __("Order by", "js_composer"), "param_name" => "orderby", "value" => array("", __("Date", "js_composer") => "date", __("ID", "js_composer") => "ID", __("Author", "js_composer") => "author", __("Title", "js_composer") => "title", __("Modified", "js_composer") => "modified", __("Random", "js_composer") => "rand", __("Comment count", "js_composer") => "comment_count", __("Menu order", "js_composer") => "menu_order"), "description" => sprintf(__('Select how to sort retrieved posts. More at %s.', 'js_composer'), '<a href="http://codex.wordpress.org/Class_Reference/WP_Query#Order_.26_Orderby_Parameters" target="_blank">WordPress codex page</a>')), array("type" => "dropdown", "heading" => __("Order by", "js_composer"), "param_name" => "order", "value" => array(__("Descending", "js_composer") => "DESC", __("Ascending", "js_composer") => "ASC"), "description" => sprintf(__('Designates the ascending or descending order. More at %s.', 'js_composer'), '<a href="http://codex.wordpress.org/Class_Reference/WP_Query#Order_.26_Orderby_Parameters" target="_blank">WordPress codex page</a>')), 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")))));
/* Widgetised sidebar
---------------------------------------------------------- */
vc_map(array("name" => __("Widgetised Sidebar", "js_composer"), "base" => "vc_widget_sidebar", "class" => "wpb_widget_sidebar_widget", "icon" => "icon-wpb-layout_sidebar", "category" => __('Structure', 'js_composer'), "description" => __('Place widgetised sidebar', 'js_composer'), "params" => array(array("type" => "textfield", "heading" => __("Widget title", "js_composer"), "param_name" => "title", "description" => __("Enter text which will be used as widget title. Leave blank if no title is needed.", "js_composer")), array("type" => "widgetised_sidebars", "heading" => __("Sidebar", "js_composer"), "param_name" => "sidebar_id", "description" => __("Select which widget area output.", "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")))));
/* Button
---------------------------------------------------------- */
$icons_arr = array(__("None", "js_composer") => "none", __("Address book icon", "js_composer") => "wpb_address_book", __("Alarm clock icon", "js_composer") => "wpb_alarm_clock", __("Anchor icon", "js_composer") => "wpb_anchor", __("Application Image icon", "js_composer") => "wpb_application_image", __("Arrow icon", "js_composer") => "wpb_arrow", __("Asterisk icon", "js_composer") => "wpb_asterisk", __("Hammer icon", "js_composer") => "wpb_hammer", __("Balloon icon", "js_composer") => "wpb_balloon", __("Balloon Buzz icon", "js_composer") => "wpb_balloon_buzz", __("Balloon Facebook icon", "js_composer") => "wpb_balloon_facebook", __("Balloon Twitter icon", "js_composer") => "wpb_balloon_twitter", __("Battery icon", "js_composer") => "wpb_battery", __("Binocular icon", "js_composer") => "wpb_binocular", __("Document Excel icon", "js_composer") => "wpb_document_excel", __("Document Image icon", "js_composer") => "wpb_document_image", __("Document Music icon", "js_composer") => "wpb_document_music", __("Document Office icon", "js_composer") => "wpb_document_office", __("Document PDF icon", "js_composer") => "wpb_document_pdf", __("Document Powerpoint icon", "js_composer") => "wpb_document_powerpoint", __("Document Word icon", "js_composer") => "wpb_document_word", __("Bookmark icon", "js_composer") => "wpb_bookmark", __("Camcorder icon", "js_composer") => "wpb_camcorder", __("Camera icon", "js_composer") => "wpb_camera", __("Chart icon", "js_composer") => "wpb_chart", __("Chart pie icon", "js_composer") => "wpb_chart_pie", __("Clock icon", "js_composer") => "wpb_clock", __("Fire icon", "js_composer") => "wpb_fire", __("Heart icon", "js_composer") => "wpb_heart", __("Mail icon", "js_composer") => "wpb_mail", __("Play icon", "js_composer") => "wpb_play", __("Shield icon", "js_composer") => "wpb_shield", __("Video icon", "js_composer") => "wpb_video");
vc_map(array("name" => __("Button", "js_composer"), "base" => "vc_button", "icon" => "icon-wpb-ui-button", "category" => __('Content', 'js_composer'), "description" => __('Eye catching button', 'js_composer'), "params" => array(array("type" => "textfield", "heading" => __("Text on the button", "js_composer"), "holder" => "button", "class" => "wpb_button", "param_name" => "title", "value" => __("Text on the button", "js_composer"), "description" => __("Text on the button.", "js_composer")), array("type" => "textfield", "heading" => __("URL (Link)", "js_composer"), "param_name" => "href", "description" => __("Button link.", "js_composer")), array("type" => "dropdown", "heading" => __("Target", "js_composer"), "param_name" => "target", "value" => $target_arr, "dependency" => array('element' => "href", 'not_empty' => true)), array("type" => "dropdown", "heading" => __("Color", "js_composer"), "param_name" => "color", "value" => $colors_arr, "description" => __("Button color.", "js_composer")), array("type" => "dropdown", "heading" => __("Icon", "js_composer"), "param_name" => "icon", "value" => $icons_arr, "description" => __("Button icon.", "js_composer")), array("type" => "dropdown", "heading" => __("Size", "js_composer"), "param_name" => "size", "value" => $size_arr, "description" => __("Button size.", "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"))), "js_view" => 'VcButtonView'));
vc_map(array("name" => __("Button", "js_composer") . " 2", "base" => "vc_button2", "icon" => "icon-wpb-ui-button", "category" => array(__('Content', 'js_composer'), __("New elements", "js_composer")), "description" => __('Eye catching button', 'js_composer'), "params" => array(array("type" => "vc_link", "heading" => __("URL (Link)", "js_composer"), "param_name" => "link", "description" => __("Button link.", "js_composer")), array("type" => "textfield", "heading" => __("Text on the button", "js_composer"), "holder" => "button", "class" => "wpb_button", "param_name" => "title", "value" => __("Text on the button", "js_composer"), "description" => __("Text on the button.", "js_composer")), array("type" => "dropdown", "heading" => __("Style", "js_composer"), "param_name" => "style", "value" => getVcShared("button styles"), "description" => __("Button style.", "js_composer")), array("type" => "dropdown", "heading" => __("Color", "js_composer"), "param_name" => "color", "value" => getVcShared("colors"), "description" => __("Button color.", "js_composer")), array("type" => "dropdown", "heading" => __("Size", "js_composer"), "param_name" => "size", "value" => getVcShared("sizes"), "std" => 'md', "description" => __("Button size.", "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")))));
/* Call to Action Button
---------------------------------------------------------- */
vc_map(array("name" => __("Call to Action Button", "js_composer"), "base" => "vc_cta_button", "icon" => "icon-wpb-call-to-action", "category" => __('Content', 'js_composer'), "description" => __('Catch visitors attention with CTA block', 'js_composer'), "params" => array(array("type" => "textarea", 'admin_label' => true, "heading" => __("Text", "js_composer"), "param_name" => "call_text", "value" => __("Click edit button to change this text.", "js_composer"), "description" => __("Enter your content.", "js_composer")), array("type" => "textfield", "heading" => __("Text on the button", "js_composer"), "param_name" => "title", "value" => __("Text on the button", "js_composer"), "description" => __("Text on the button.", "js_composer")), array("type" => "textfield", "heading" => __("URL (Link)", "js_composer"), "param_name" => "href", "description" => __("Button link.", "js_composer")), array("type" => "dropdown", "heading" => __("Target", "js_composer"), "param_name" => "target", "value" => $target_arr, "dependency" => array('element' => "href", 'not_empty' => true)), array("type" => "dropdown", "heading" => __("Color", "js_composer"), "param_name" => "color", "value" => $colors_arr, "description" => __("Button color.", "js_composer")), array("type" => "dropdown", "heading" => __("Icon", "js_composer"), "param_name" => "icon", "value" => $icons_arr, "description" => __("Button icon.", "js_composer")), array("type" => "dropdown", "heading" => __("Size", "js_composer"), "param_name" => "size", "value" => $size_arr, "description" => __("Button size.", "js_composer")), array("type" => "dropdown", "heading" => __("Button position", "js_composer"), "param_name" => "position", "value" => array(__("Align right", "js_composer") => "cta_align_right", __("Align left", "js_composer") => "cta_align_left", __("Align bottom", "js_composer") => "cta_align_bottom"), "description" => __("Select button alignment.", "js_composer")), $add_css_animation, 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"))), "js_view" => 'VcCallToActionView'));
vc_map(array("name" => __("Call to Action Button", "js_composer") . " 2", "base" => "vc_cta_button2", "icon" => "icon-wpb-call-to-action", "category" => array(__('Content', 'js_composer'), __("New elements", "js_composer")), "description" => __('Catch visitors attention with CTA block', 'js_composer'), "params" => array(array("type" => "textfield", "heading" => __("Heading first line", "js_composer"), "holder" => "h2", "param_name" => "h2", "value" => __("Hey! I am first heading line feel free to change me", "js_composer"), "description" => __("Text for the first heading line.", "js_composer")), array("type" => "textfield", "heading" => __("Heading second line", "js_composer"), "holder" => "h4", "param_name" => "h4", "value" => "", "description" => __("Optional text for the second heading line.", "js_composer")), array("type" => "dropdown", "heading" => __("CTA style", "js_composer"), "param_name" => "style", "value" => getVcShared("cta styles"), "description" => __("Call to action style.", "js_composer")), array("type" => "dropdown", "heading" => __("Element width", "js_composer"), "param_name" => "el_width", "value" => getVcShared("cta widths"), "description" => __("Call to action element width in percents.", "js_composer")), array("type" => "dropdown", "heading" => __("Text align", "js_composer"), "param_name" => "txt_align", "value" => getVcShared("text align"), "description" => __("Text align in call to action block.", "js_composer")), array("type" => "colorpicker", "heading" => __("Custom Background Color", "wpb"), "param_name" => "accent_color", "description" => __("Select background color for your element.", "wpb")), array("type" => "textarea_html", "holder" => "div", "heading" => __("Promotional text", "js_composer"), "param_name" => "content", "value" => __("<p>I am promo text. Click edit button to change this text. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.</p>", "js_composer")), array("type" => "vc_link", "heading" => __("URL (Link)", "js_composer"), "param_name" => "link", "description" => __("Button link.", "js_composer")), array("type" => "textfield", "heading" => __("Text on the button", "js_composer"), "param_name" => "title", "value" => __("Text on the button", "js_composer"), "description" => __("Text on the button.", "js_composer")), array("type" => "dropdown", "heading" => __("Button style", "js_composer"), "param_name" => "btn_style", "value" => getVcShared("button styles"), "description" => __("Button style.", "js_composer")), array("type" => "dropdown", "heading" => __("Color", "js_composer"), "param_name" => "color", "value" => getVcShared("colors"), "description" => __("Button color.", "js_composer")), array("type" => "dropdown", "heading" => __("Size", "js_composer"), "param_name" => "size", "value" => getVcShared("sizes"), "std" => 'md', "description" => __("Button size.", "js_composer")), array("type" => "dropdown", "heading" => __("Button position", "js_composer"), "param_name" => "position", "value" => array(__("Align right", "js_composer") => "right", __("Align left", "js_composer") => "left", __("Align bottom", "js_composer") => "bottom"), "description" => __("Select button alignment.", "js_composer")), $add_css_animation, 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")))));
/* Video element
---------------------------------------------------------- */
vc_map(array("name" => __("Video Player", "js_composer"), "base" => "vc_video", "icon" => "icon-wpb-film-youtube", "category" => __('Content', 'js_composer'), "description" => __('Embed YouTube/Vimeo player', 'js_composer'), "params" => array(array("type" => "textfield", "heading" => __("Widget title", "js_composer"), "param_name" => "title", "description" => __("Enter text which will be used as widget title. Leave blank if no title is needed.", "js_composer")), array("type" => "textfield", "heading" => __("Video link", "js_composer"), "param_name" => "link", "admin_label" => true, "description" => sprintf(__('Link to the video. More about supported formats at %s.', "js_composer"), '<a href="http://codex.wordpress.org/Embeds#Okay.2C_So_What_Sites_Can_I_Embed_From.3F" target="_blank">WordPress codex page</a>')), 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")))));
/* Google maps element
---------------------------------------------------------- */
vc_map(array("name" => __("Google Maps", "js_composer"), "base" => "vc_gmaps", "icon" => "icon-wpb-map-pin", "category" => __('Content', 'js_composer'), "description" => __('Map block', 'js_composer'), "params" => array(array("type" => "textfield", "heading" => __("Widget title", "js_composer"), "param_name" => "title", "description" => __("Enter text which will be used as widget title. Leave blank if no title is needed.", "js_composer")), array("type" => "textarea_safe", "heading" => __("Map embed iframe", "js_composer"), "param_name" => "link", "description" => sprintf(__('Visit %s to create your map. 1) Find location 2) Click "Share" and make sure map is public on the web 3) Click folder icon to reveal "Embed on my site" link 4) Copy iframe code and paste it here.', "js_composer"), '<a href="https://mapsengine.google.com/" target="_blank">Google maps</a>')), array("type" => "textfield", "heading" => __("Map height", "js_composer"), "param_name" => "size", "description" => __('Enter map height in pixels. Example: 200 or leave it empty to make map responsive.', "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")))));
/* Raw HTML
---------------------------------------------------------- */
vc_map(array("name" => __("Raw HTML", "js_composer"), "base" => "vc_raw_html", "icon" => "icon-wpb-raw-html", "category" => __('Structure', 'js_composer'), "wrapper_class" => "clearfix", "description" => __('Output raw html code on your page', 'js_composer'), "params" => array(array("type" => "textarea_raw_html", "holder" => "div", "heading" => __("Raw HTML", "js_composer"), "param_name" => "content", "value" => base64_encode("<p>I am raw html block.<br/>Click edit button to change this html</p>"), "description" => __("Enter your HTML content.", "js_composer")))));
/* Raw JS
---------------------------------------------------------- */
vc_map(array("name" => __("Raw JS", "js_composer"), "base" => "vc_raw_js", "icon" => "icon-wpb-raw-javascript", "category" => __('Structure', 'js_composer'), "wrapper_class" => "clearfix", "description" => __('Output raw javascript code on your page', 'js_composer'), "params" => array(array("type" => "textarea_raw_html", "holder" => "div", "heading" => __("Raw js", "js_composer"), "param_name" => "content", "value" => __(base64_encode("<script type='text/javascript'> alert('Enter your js here!'); </script>"), "js_composer"), "description" => __("Enter your JS code.", "js_composer")))));
/* Flickr
---------------------------------------------------------- */
vc_map(array("base" => "vc_flickr", "name" => __("Flickr Widget", "js_composer"), "icon" => "icon-wpb-flickr", "category" => __('Content', 'js_composer'), "description" => __('Image feed from your flickr account', 'js_composer'), "params" => array(array("type" => "textfield", "heading" => __("Widget title", "js_composer"), "param_name" => "title", "description" => __("Enter text which will be used as widget title. Leave blank if no title is needed.", "js_composer")), array("type" => "textfield", "heading" => __("Flickr ID", "js_composer"), "param_name" => "flickr_id", 'admin_label' => true, "description" => sprintf(__('To find your flickID visit %s.', "js_composer"), '<a href="http://idgettr.com/" target="_blank">idGettr</a>')), array("type" => "dropdown", "heading" => __("Number of photos", "js_composer"), "param_name" => "count", "value" => array(9, 8, 7, 6, 5, 4, 3, 2, 1), "description" => __("Number of photos.", "js_composer")), array("type" => "dropdown", "heading" => __("Type", "js_composer"), "param_name" => "type", "value" => array(__("User", "js_composer") => "user", __("Group", "js_composer") => "group"), "description" => __("Photo stream type.", "js_composer")), array("type" => "dropdown", "heading" => __("Display", "js_composer"), "param_name" => "display", "value" => array(__("Latest", "js_composer") => "latest", __("Random", "js_composer") => "random"), "description" => __("Photo order.", "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")))));
예제 #7
0
vc_map(array('name' => __('Post Carousel', 'vc_extend'), 'base' => 'vc_carousel', 'class' => '', 'icon' => 'icon-wpb-vc_carousel', 'category' => __('Content', 'js_composer'), 'description' => __('Animated carousel with posts', 'js_composer'), 'params' => array(array('type' => 'textfield', 'heading' => __('Widget title', 'js_composer'), 'param_name' => 'title', 'description' => __('Enter text which will be used as widget title. Leave blank if no title is needed.', 'js_composer')), array('type' => 'loop', 'heading' => __('Carousel content', 'js_composer'), 'param_name' => 'posts_query', 'settings' => array('size' => array('hidden' => false, 'value' => 10), 'order_by' => array('value' => 'date')), 'description' => __('Create WordPress loop, to populate content from your site.', 'js_composer')), array('type' => 'sorted_list', 'heading' => __('Teaser layout', 'js_composer'), 'param_name' => '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('link', __('Read more link', 'js_composer')))), array('type' => 'dropdown', 'heading' => __('Link target', 'js_composer'), 'param_name' => 'link_target', 'value' => $target_arr), array('type' => 'textfield', 'heading' => __('Thumbnail size', 'js_composer'), 'param_name' => 'thumb_size', 'description' => __('Enter thumbnail size. Example: thumbnail, medium, large, full or other sizes defined by current theme. Alternatively enter image size in pixels: 200x100 (Width x Height) . ', 'js_composer')), array('type' => 'textfield', 'heading' => __('Slider speed', 'js_composer'), 'param_name' => 'speed', 'value' => '5000', 'description' => __('Duration of animation between slides (in ms)', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Slider mode', 'js_composer'), 'param_name' => 'mode', 'value' => array(__('Horizontal', 'js_composer') => 'horizontal', __('Vertical', 'js_composer') => 'vertical'), 'description' => __('Slides will be positioned horizontally (for horizontal swipes) or vertically (for vertical swipes)', 'js_composer')), array('type' => 'textfield', 'heading' => __('Slides per view', 'js_composer'), 'param_name' => 'slides_per_view', 'value' => '1', 'description' => __('Set numbers of slides you want to display at the same time on slider\'s container for carousel mode. Also supports for "auto" value, in this case it will fit slides depending on container\'s width. "auto" mode doesn\'t compatible with loop mode.', 'js_composer')), array('type' => 'checkbox', 'heading' => __('Slider autoplay', 'js_composer'), 'param_name' => 'autoplay', 'description' => __('Enables autoplay mode.', 'js_composer'), 'value' => array(__('Yes, please', 'js_composer') => 'yes')), array('type' => 'checkbox', 'heading' => __('Hide pagination control', 'js_composer'), 'param_name' => 'hide_pagination_control', 'description' => __('If "YES" pagination control will be removed', 'js_composer'), 'value' => array(__('Yes, please', 'js_composer') => 'yes')), array('type' => 'checkbox', 'heading' => __('Hide prev/next buttons', 'js_composer'), 'param_name' => 'hide_prev_next_buttons', 'description' => __('If "YES" prev/next control will be removed', 'js_composer'), 'value' => array(__('Yes, please', 'js_composer') => 'yes')), array('type' => 'checkbox', 'heading' => __('Partial view', 'js_composer'), 'param_name' => 'partial_view', 'description' => __('If "YES" part of the next slide will be visible on the right side', 'js_composer'), 'value' => array(__('Yes, please', 'js_composer') => 'yes')), array('type' => 'checkbox', 'heading' => __('Slider loop', 'js_composer'), 'param_name' => 'wrap', 'description' => __('Enables loop mode.', 'js_composer'), 'value' => array(__('Yes, please', 'js_composer') => 'yes')), 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')))));
/* Posts slider
---------------------------------------------------------- */
vc_map(array('name' => __('Posts Slider', 'js_composer'), 'base' => 'vc_posts_slider', 'icon' => 'icon-wpb-slideshow', 'category' => __('Content', 'js_composer'), 'description' => __('Slider with WP Posts', 'js_composer'), 'params' => array(array('type' => 'textfield', 'heading' => __('Widget title', 'js_composer'), 'param_name' => 'title', 'description' => __('Enter text which will be used as widget title. Leave blank if no title is needed.', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Slider type', 'js_composer'), 'param_name' => 'type', 'admin_label' => true, 'value' => array(__('Flex slider fade', 'js_composer') => 'flexslider_fade', __('Flex slider slide', 'js_composer') => 'flexslider_slide', __('Nivo slider', 'js_composer') => 'nivo'), 'description' => __('Select slider type.', 'js_composer')), array('type' => 'textfield', 'heading' => __('Slides count', 'js_composer'), 'param_name' => 'count', 'description' => __('How many slides to show? Enter number or word "All".', 'js_composer')), 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')), array('type' => 'posttypes', 'heading' => __('Post types', 'js_composer'), 'param_name' => 'posttypes', 'description' => __('Select post types to populate posts from.', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Description', 'js_composer'), 'param_name' => 'slides_content', 'value' => array(__('No description', 'js_composer') => '', __('Teaser (Excerpt)', 'js_composer') => 'teaser'), 'description' => __('Some sliders support description text, what content use for it?', 'js_composer'), 'dependency' => array('element' => 'type', 'value' => array('flexslider_fade', 'flexslider_slide'))), array('type' => 'checkbox', 'heading' => __('Output post title?', 'js_composer'), 'param_name' => 'slides_title', 'description' => __('If selected, title will be printed before the teaser text.', 'js_composer'), 'value' => array(__('Yes, please', 'js_composer') => true), 'dependency' => array('element' => 'slides_content', 'value' => array('teaser'))), array('type' => 'dropdown', 'heading' => __('Link', 'js_composer'), 'param_name' => 'link', 'value' => array(__('Link to post', 'js_composer') => 'link_post', __('Link to bigger image', 'js_composer') => 'link_image', __('Open custom link', 'js_composer') => 'custom_link', __('No link', 'js_composer') => 'link_no'), 'description' => __('Link type.', 'js_composer')), array('type' => 'exploded_textarea', 'heading' => __('Custom links', 'js_composer'), 'param_name' => 'custom_links', 'dependency' => array('element' => 'link', 'value' => 'custom_link'), 'description' => __('Enter links for each slide here. Divide links with linebreaks (Enter).', 'js_composer')), array('type' => 'textfield', 'heading' => __('Thumbnail size', 'js_composer'), 'param_name' => 'thumb_size', 'description' => __('Enter thumbnail size. Example: thumbnail, medium, large, full or other sizes defined by current theme. Alternatively enter image size in pixels: 200x100 (Width x Height) . ', 'js_composer')), array('type' => 'textfield', 'heading' => __('Post/Page IDs', 'js_composer'), 'param_name' => 'posts_in', 'description' => __('Fill this field with page/posts IDs separated by commas (,), to retrieve only them. Use this in conjunction with "Post types" field.', 'js_composer')), array('type' => 'exploded_textarea', 'heading' => __('Categories', 'js_composer'), 'param_name' => 'categories', 'description' => __('If you want to narrow output, enter category names here. Note: Only listed categories will be included. Divide categories with linebreaks (Enter) . ', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Order by', 'js_composer'), 'param_name' => 'orderby', 'value' => array('', __('Date', 'js_composer') => 'date', __('ID', 'js_composer') => 'ID', __('Author', 'js_composer') => 'author', __('Title', 'js_composer') => 'title', __('Modified', 'js_composer') => 'modified', __('Random', 'js_composer') => 'rand', __('Comment count', 'js_composer') => 'comment_count', __('Menu order', 'js_composer') => 'menu_order'), 'description' => sprintf(__('Select how to sort retrieved posts. More at %s.', 'js_composer'), '<a href="http://codex.wordpress.org/Class_Reference/WP_Query#Order_.26_Orderby_Parameters" target="_blank">WordPress codex page</a>')), array('type' => 'dropdown', 'heading' => __('Order by', 'js_composer'), 'param_name' => 'order', 'value' => array(__('Descending', 'js_composer') => 'DESC', __('Ascending', 'js_composer') => 'ASC'), 'description' => sprintf(__('Designates the ascending or descending order. More at %s.', 'js_composer'), '<a href="http://codex.wordpress.org/Class_Reference/WP_Query#Order_.26_Orderby_Parameters" target="_blank">WordPress codex page</a>')), 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')))));
/* Widgetised sidebar
---------------------------------------------------------- */
vc_map(array('name' => __('Widgetised Sidebar', 'js_composer'), 'base' => 'vc_widget_sidebar', 'class' => 'wpb_widget_sidebar_widget', 'icon' => 'icon-wpb-layout_sidebar', 'category' => __('Structure', 'js_composer'), 'description' => __('Place widgetised sidebar', 'js_composer'), 'params' => array(array('type' => 'textfield', 'heading' => __('Widget title', 'js_composer'), 'param_name' => 'title', 'description' => __('Enter text which will be used as widget title. Leave blank if no title is needed.', 'js_composer')), array('type' => 'widgetised_sidebars', 'heading' => __('Sidebar', 'js_composer'), 'param_name' => 'sidebar_id', 'description' => __('Select which widget area output.', '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')))));
/* Button
---------------------------------------------------------- */
$icons_arr = array(__('None', 'js_composer') => 'none', __('Address book icon', 'js_composer') => 'wpb_address_book', __('Alarm clock icon', 'js_composer') => 'wpb_alarm_clock', __('Anchor icon', 'js_composer') => 'wpb_anchor', __('Application Image icon', 'js_composer') => 'wpb_application_image', __('Arrow icon', 'js_composer') => 'wpb_arrow', __('Asterisk icon', 'js_composer') => 'wpb_asterisk', __('Hammer icon', 'js_composer') => 'wpb_hammer', __('Balloon icon', 'js_composer') => 'wpb_balloon', __('Balloon Buzz icon', 'js_composer') => 'wpb_balloon_buzz', __('Balloon Facebook icon', 'js_composer') => 'wpb_balloon_facebook', __('Balloon Twitter icon', 'js_composer') => 'wpb_balloon_twitter', __('Battery icon', 'js_composer') => 'wpb_battery', __('Binocular icon', 'js_composer') => 'wpb_binocular', __('Document Excel icon', 'js_composer') => 'wpb_document_excel', __('Document Image icon', 'js_composer') => 'wpb_document_image', __('Document Music icon', 'js_composer') => 'wpb_document_music', __('Document Office icon', 'js_composer') => 'wpb_document_office', __('Document PDF icon', 'js_composer') => 'wpb_document_pdf', __('Document Powerpoint icon', 'js_composer') => 'wpb_document_powerpoint', __('Document Word icon', 'js_composer') => 'wpb_document_word', __('Bookmark icon', 'js_composer') => 'wpb_bookmark', __('Camcorder icon', 'js_composer') => 'wpb_camcorder', __('Camera icon', 'js_composer') => 'wpb_camera', __('Chart icon', 'js_composer') => 'wpb_chart', __('Chart pie icon', 'js_composer') => 'wpb_chart_pie', __('Clock icon', 'js_composer') => 'wpb_clock', __('Fire icon', 'js_composer') => 'wpb_fire', __('Heart icon', 'js_composer') => 'wpb_heart', __('Mail icon', 'js_composer') => 'wpb_mail', __('Play icon', 'js_composer') => 'wpb_play', __('Shield icon', 'js_composer') => 'wpb_shield', __('Video icon', 'js_composer') => "wpb_video");
vc_map(array('name' => __('Button', 'js_composer'), 'base' => 'vc_button', 'icon' => 'icon-wpb-ui-button', 'category' => __('Content', 'js_composer'), 'description' => __('Eye catching button', 'js_composer'), 'params' => array(array('type' => 'textfield', 'heading' => __('Text on the button', 'js_composer'), 'holder' => 'button', 'class' => 'wpb_button', 'param_name' => 'title', 'value' => __('Text on the button', 'js_composer'), 'description' => __('Text on the button.', 'js_composer')), array('type' => 'href', 'heading' => __('URL (Link)', 'js_composer'), 'param_name' => 'href', 'description' => __('Button link.', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Target', 'js_composer'), 'param_name' => 'target', 'value' => $target_arr, 'dependency' => array('element' => 'href', 'not_empty' => true, 'callback' => 'vc_button_param_target_callback')), array('type' => 'dropdown', 'heading' => __('Color', 'js_composer'), 'param_name' => 'color', 'value' => $colors_arr, 'description' => __('Button color.', 'js_composer'), 'param_holder_class' => 'vc_colored-dropdown'), array('type' => 'dropdown', 'heading' => __('Icon', 'js_composer'), 'param_name' => 'icon', 'value' => $icons_arr, 'description' => __('Button icon.', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Size', 'js_composer'), 'param_name' => 'size', 'value' => $size_arr, 'description' => __('Button size.', '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'))), 'js_view' => 'VcButtonView'));
vc_map(array('name' => __('Button', 'js_composer') . " 2", 'base' => 'vc_button2', 'icon' => 'icon-wpb-ui-button', 'category' => array(__('Content', 'js_composer')), 'description' => __('Eye catching button', 'js_composer'), 'params' => array(array('type' => 'vc_link', 'heading' => __('URL (Link)', 'js_composer'), 'param_name' => 'link', 'description' => __('Button link.', 'js_composer')), array('type' => 'textfield', 'heading' => __('Text on the button', 'js_composer'), 'holder' => 'button', 'class' => 'vc_btn', 'param_name' => 'title', 'value' => __('Text on the button', 'js_composer'), 'description' => __('Text on the button.', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Style', 'js_composer'), 'param_name' => 'style', 'value' => getVcShared('button styles'), 'description' => __('Button style.', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Color', 'js_composer'), 'param_name' => 'color', 'value' => getVcShared('colors'), 'description' => __('Button color.', 'js_composer'), 'param_holder_class' => 'vc_colored-dropdown'), array('type' => 'dropdown', 'heading' => __('Size', 'js_composer'), 'param_name' => 'size', 'value' => getVcShared('sizes'), 'std' => 'md', 'description' => __('Button size.', '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'))), 'js_view' => 'VcButton2View'));
/* Call to Action Button
---------------------------------------------------------- */
vc_map(array('name' => __('Call to Action Button', 'js_composer'), 'base' => 'vc_cta_button', 'icon' => 'icon-wpb-call-to-action', 'category' => __('Content', 'js_composer'), 'description' => __('Catch visitors attention with CTA block', 'js_composer'), 'params' => array(array('type' => 'textarea', 'admin_label' => true, 'heading' => __('Text', 'js_composer'), 'param_name' => 'call_text', 'value' => __('Click edit button to change this text.', 'js_composer'), 'description' => __('Enter your content.', 'js_composer')), array('type' => 'textfield', 'heading' => __('Text on the button', 'js_composer'), 'param_name' => 'title', 'value' => __('Text on the button', 'js_composer'), 'description' => __('Text on the button.', 'js_composer')), array('type' => 'href', 'heading' => __('URL (Link)', 'js_composer'), 'param_name' => 'href', 'description' => __('Button link.', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Target', 'js_composer'), 'param_name' => 'target', 'value' => $target_arr, 'dependency' => array('element' => 'href', 'not_empty' => true, 'callback' => 'vc_cta_button_param_target_callback')), array('type' => 'dropdown', 'heading' => __('Color', 'js_composer'), 'param_name' => 'color', 'value' => $colors_arr, 'description' => __('Button color.', 'js_composer'), 'param_holder_class' => 'vc_colored-dropdown'), array('type' => 'dropdown', 'heading' => __('Icon', 'js_composer'), 'param_name' => 'icon', 'value' => $icons_arr, 'description' => __('Button icon.', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Size', 'js_composer'), 'param_name' => 'size', 'value' => $size_arr, 'description' => __('Button size.', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Button position', 'js_composer'), 'param_name' => 'position', 'value' => array(__('Align right', 'js_composer') => 'cta_align_right', __('Align left', 'js_composer') => 'cta_align_left', __('Align bottom', 'js_composer') => 'cta_align_bottom'), 'description' => __('Select button alignment.', 'js_composer')), $add_css_animation, 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'))), 'js_view' => 'VcCallToActionView'));
vc_map(array('name' => __('Call to Action Button', 'js_composer') . ' 2', 'base' => 'vc_cta_button2', 'icon' => 'icon-wpb-call-to-action', 'category' => array(__('Content', 'js_composer')), 'description' => __('Catch visitors attention with CTA block', 'js_composer'), 'params' => array(array('type' => 'textfield', 'heading' => __('Heading first line', 'js_composer'), 'admin_label' => true, 'param_name' => 'h2', 'value' => __('Hey! I am first heading line feel free to change me', 'js_composer'), 'description' => __('Text for the first heading line.', 'js_composer')), array('type' => 'textfield', 'heading' => __('Heading second line', 'js_composer'), 'param_name' => 'h4', 'value' => '', 'description' => __('Optional text for the second heading line.', 'js_composer')), array('type' => 'dropdown', 'heading' => __('CTA style', 'js_composer'), 'param_name' => 'style', 'value' => getVcShared('cta styles'), 'description' => __('Call to action style.', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Element width', 'js_composer'), 'param_name' => 'el_width', 'value' => getVcShared('cta widths'), 'description' => __('Call to action element width in percents.', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Text align', 'js_composer'), 'param_name' => 'txt_align', 'value' => getVcShared('text align'), 'description' => __('Text align in call to action block.', 'js_composer')), array('type' => 'colorpicker', 'heading' => __('Custom Background Color', 'js_composer'), 'param_name' => 'accent_color', 'description' => __('Select background color for your element.', 'js_composer')), array('type' => 'textarea_html', 'heading' => __('Promotional text', 'js_composer'), 'param_name' => 'content', 'value' => __('I am promo text. Click edit button to change this text. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.', 'js_composer')), array('type' => 'vc_link', 'heading' => __('URL (Link)', 'js_composer'), 'param_name' => 'link', 'description' => __('Button link.', 'js_composer')), array('type' => 'textfield', 'heading' => __('Text on the button', 'js_composer'), 'param_name' => 'title', 'value' => __('Text on the button', 'js_composer'), 'description' => __('Text on the button.', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Button style', 'js_composer'), 'param_name' => 'btn_style', 'value' => getVcShared('button styles'), 'description' => __('Button style.', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Color', 'js_composer'), 'param_name' => 'color', 'value' => getVcShared('colors'), 'description' => __('Button color.', 'js_composer'), 'param_holder_class' => 'vc_colored-dropdown'), array('type' => 'dropdown', 'heading' => __('Size', 'js_composer'), 'param_name' => 'size', 'value' => getVcShared('sizes'), 'std' => 'md', 'description' => __('Button size.', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Button position', 'js_composer'), 'param_name' => 'position', 'value' => array(__('Align right', 'js_composer') => 'right', __('Align left', 'js_composer') => 'left', __('Align bottom', 'js_composer') => 'bottom'), 'description' => __('Select button alignment.', 'js_composer')), $add_css_animation, 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')))));
/* Video element
---------------------------------------------------------- */
vc_map(array('name' => __('Video Player', 'js_composer'), 'base' => 'vc_video', 'icon' => 'icon-wpb-film-youtube', 'category' => __('Content', 'js_composer'), 'description' => __('Embed YouTube/Vimeo player', 'js_composer'), 'params' => array(array('type' => 'textfield', 'heading' => __('Widget title', 'js_composer'), 'param_name' => 'title', 'description' => __('Enter text which will be used as widget title. Leave blank if no title is needed.', 'js_composer')), array('type' => 'textfield', 'heading' => __('Video link', 'js_composer'), 'param_name' => 'link', 'admin_label' => true, 'description' => sprintf(__('Link to the video. More about supported formats at %s.', 'js_composer'), '<a href="http://codex.wordpress.org/Embeds#Okay.2C_So_What_Sites_Can_I_Embed_From.3F" target="_blank">WordPress codex page</a>')), 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' => 'css_editor', 'heading' => __('Css', 'js_composer'), 'param_name' => 'css', 'group' => __('Design options', 'js_composer')))));
/* Google maps element
---------------------------------------------------------- */
vc_map(array('name' => __('Google Maps', 'js_composer'), 'base' => 'vc_gmaps', 'icon' => 'icon-wpb-map-pin', 'category' => __('Content', 'js_composer'), 'description' => __('Map block', 'js_composer'), 'params' => array(array('type' => 'textfield', 'heading' => __('Widget title', 'js_composer'), 'param_name' => 'title', 'description' => __('Enter text which will be used as widget title. Leave blank if no title is needed.', 'js_composer')), array('type' => 'textarea_safe', 'heading' => __('Map embed iframe', 'js_composer'), 'param_name' => 'link', 'description' => sprintf(__('Visit %s to create your map. 1) Find location 2) Click "Share" and make sure map is public on the web 3) Click folder icon to reveal "Embed on my site" link 4) Copy iframe code and paste it here.', 'js_composer'), '<a href="https://mapsengine.google.com/" target="_blank">Google maps</a>')), array('type' => 'textfield', 'heading' => __('Map height', 'js_composer'), 'param_name' => 'size', 'admin_label' => true, 'description' => __('Enter map height in pixels. Example: 200 or leave it empty to make map responsive.', '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')))));
/* Raw HTML
---------------------------------------------------------- */
vc_map(array('name' => __('Raw HTML', 'js_composer'), 'base' => 'vc_raw_html', 'icon' => 'icon-wpb-raw-html', 'category' => __('Structure', 'js_composer'), 'wrapper_class' => 'clearfix', 'description' => __('Output raw html code on your page', 'js_composer'), 'params' => array(array('type' => 'textarea_raw_html', 'holder' => 'div', 'heading' => __('Raw HTML', 'js_composer'), 'param_name' => 'content', 'value' => base64_encode('<p>I am raw html block.<br/>Click edit button to change this html</p>'), 'description' => __('Enter your HTML content.', 'js_composer')))));
/* Raw JS
---------------------------------------------------------- */
vc_map(array('name' => __('Raw JS', 'js_composer'), 'base' => 'vc_raw_js', 'icon' => 'icon-wpb-raw-javascript', 'category' => __('Structure', 'js_composer'), 'wrapper_class' => 'clearfix', 'description' => __('Output raw javascript code on your page', 'js_composer'), 'params' => array(array('type' => 'textarea_raw_html', 'holder' => 'div', 'heading' => __('Raw js', 'js_composer'), 'param_name' => 'content', 'value' => __(base64_encode('<script type="text/javascript"> alert("Enter your js here!" ); </script>'), 'js_composer'), 'description' => __('Enter your JS code.', 'js_composer')))));
/* Flickr
---------------------------------------------------------- */
vc_map(array('base' => 'vc_flickr', 'name' => __('Flickr Widget', 'js_composer'), 'icon' => 'icon-wpb-flickr', 'category' => __('Content', 'js_composer'), 'description' => __('Image feed from your flickr account', 'js_composer'), "params" => array(array('type' => 'textfield', 'heading' => __('Widget title', 'js_composer'), 'param_name' => 'title', 'description' => __('Enter text which will be used as widget title. Leave blank if no title is needed.', 'js_composer')), array('type' => 'textfield', 'heading' => __('Flickr ID', 'js_composer'), 'param_name' => 'flickr_id', 'admin_label' => true, 'description' => sprintf(__('To find your flickID visit %s.', 'js_composer'), '<a href="http://idgettr.com/" target="_blank">idGettr</a>')), array('type' => 'dropdown', 'heading' => __('Number of photos', 'js_composer'), 'param_name' => 'count', 'value' => array(9, 8, 7, 6, 5, 4, 3, 2, 1), 'description' => __('Number of photos.', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Type', 'js_composer'), 'param_name' => 'type', 'value' => array(__('User', 'js_composer') => 'user', __('Group', 'js_composer') => 'group'), 'description' => __('Photo stream type.', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Display', 'js_composer'), 'param_name' => 'display', 'value' => array(__('Latest', 'js_composer') => 'latest', __('Random', 'js_composer') => 'random'), 'description' => __('Photo order.', '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')))));
예제 #8
0
<?php

vc_map(array('name' => __('Tabs', 'js_composer'), 'base' => 'vc_tta_tabs', 'icon' => 'icon-wpb-ui-tab-content', 'is_container' => true, 'show_settings_on_create' => false, 'as_parent' => array('only' => 'vc_tta_section'), 'category' => __('Content', 'js_composer'), 'description' => __('Tabbed content', 'js_composer'), 'params' => array(array('type' => 'textfield', 'param_name' => 'title', 'heading' => __('Widget title', 'js_composer'), 'description' => __('Enter text used as widget title (Note: located above content element).', 'js_composer')), array('type' => 'dropdown', 'param_name' => 'style', 'value' => array(__('Classic', 'js_composer') => 'classic', __('Modern', 'js_composer') => 'modern', __('Flat', 'js_composer') => 'flat', __('Outline', 'js_composer') => 'outline'), 'heading' => __('Style', 'js_composer'), 'description' => __('Select tabs display style.', 'js_composer')), array('type' => 'dropdown', 'param_name' => 'shape', 'value' => array(__('Rounded', 'js_composer') => 'rounded', __('Square', 'js_composer') => 'square', __('Round', 'js_composer') => 'round'), 'heading' => __('Shape', 'js_composer'), 'description' => __('Select tabs shape.', 'js_composer')), array('type' => 'dropdown', 'param_name' => 'color', 'heading' => __('Color', 'js_composer'), 'description' => __('Select tabs color.', 'js_composer'), 'value' => getVcShared('colors-dashed'), 'std' => 'grey', 'param_holder_class' => 'vc_colored-dropdown'), array('type' => 'checkbox', 'param_name' => 'no_fill_content_area', 'heading' => __('Do not fill content area?', 'js_composer'), 'description' => __('Do not fill content area with color.', 'js_composer')), array('type' => 'dropdown', 'param_name' => 'spacing', 'value' => array(__('None', 'js_composer') => '', __('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'), 'heading' => __('Spacing', 'js_composer'), 'description' => __('Select tabs spacing.', 'js_composer'), 'std' => '1'), array('type' => 'dropdown', 'param_name' => 'gap', 'value' => array(__('None', 'js_composer') => '', __('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'), 'heading' => __('Gap', 'js_composer'), 'description' => __('Select tabs gap.', 'js_composer')), array('type' => 'dropdown', 'param_name' => 'tab_position', 'value' => array(__('Top', 'js_composer') => 'top', __('Bottom', 'js_composer') => 'bottom'), 'heading' => __('Position', 'js_composer'), 'description' => __('Select tabs navigation position.', 'js_composer')), array('type' => 'dropdown', 'param_name' => 'alignment', 'value' => array(__('Left', 'js_composer') => 'left', __('Right', 'js_composer') => 'right', __('Center', 'js_composer') => 'center'), 'heading' => __('Alignment', 'js_composer'), 'description' => __('Select tabs section title alignment.', 'js_composer')), array('type' => 'dropdown', 'param_name' => 'autoplay', 'value' => array(__('None', 'js_composer') => 'none', __('1', 'js_composer') => '1', __('2', 'js_composer') => '2', __('3', 'js_composer') => '3', __('4', 'js_composer') => '4', __('5', 'js_composer') => '5', __('10', 'js_composer') => '10', __('20', 'js_composer') => '20', __('30', 'js_composer') => '30', __('40', 'js_composer') => '40', __('50', 'js_composer') => '50', __('60', 'js_composer') => '60'), 'std' => 'none', 'heading' => __('Autoplay', 'js_composer'), 'description' => __('Select auto rotate for tabs in seconds (Note: disabled by default).', 'js_composer')), array('type' => 'textfield', 'param_name' => 'active_section', 'heading' => __('Active section', 'js_composer'), 'value' => 1, 'description' => __('Enter active section number (Note: to have all sections closed on initial load enter non-existing number).', 'js_composer')), array('type' => 'dropdown', 'param_name' => 'pagination_style', 'value' => array(__('None', 'js_composer') => '', __('Square Dots', 'js_composer') => 'outline-square', __('Radio Dots', 'js_composer') => 'outline-round', __('Point Dots', 'js_composer') => 'flat-round', __('Fill Square Dots', 'js_composer') => 'flat-square', __('Rounded Fill Square Dots', 'js_composer') => 'flat-rounded'), 'heading' => __('Pagination style', 'js_composer'), 'description' => __('Select pagination style.', 'js_composer')), array('type' => 'dropdown', 'param_name' => 'pagination_color', 'value' => getVcShared('colors-dashed'), 'heading' => __('Pagination color', 'js_composer'), 'description' => __('Select pagination color.', 'js_composer'), 'param_holder_class' => 'vc_colored-dropdown', 'std' => 'grey', 'dependency' => array('element' => 'pagination_style', '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'))), 'js_view' => 'VcBackendTtaTabsView', 'custom_markup' => '
<div class="vc_tta-container" data-vc-action="collapse">
	<div class="vc_general vc_tta vc_tta-tabs vc_tta-color-backend-tabs-white vc_tta-style-flat vc_tta-shape-rounded vc_tta-spacing-1 vc_tta-tabs-position-top vc_tta-controls-align-left">
		<div class="vc_tta-tabs-container">' . '<ul class="vc_tta-tabs-list">' . '<li class="vc_tta-tab" data-vc-tab data-vc-target-model-id="{{ model_id }}" data-element_type="vc_tta_section"><a href="javascript:;" data-vc-tabs data-vc-container=".vc_tta" data-vc-target="[data-model-id=\'{{ model_id }}\']" data-vc-target-model-id="{{ model_id }}"><span class="vc_tta-title-text">{{ section_title }}</span></a></li>' . '</ul>
		</div>
		<div class="vc_tta-panels vc_clearfix {{container-class}}">
		  {{ content }}
		</div>
	</div>
</div>', 'default_content' => '
[vc_tta_section title="' . sprintf("%s %d", __('Tab', 'js_composer'), 1) . '"][/vc_tta_section]
[vc_tta_section title="' . sprintf("%s %d", __('Tab', 'js_composer'), 2) . '"][/vc_tta_section]
	', 'admin_enqueue_js' => array(vc_asset_url('lib/vc_accordion/vc-accordion.js'), vc_asset_url('lib/vc_tabs/vc-tabs.js'))));
<?php

return array('name' => __('Round Chart', 'js_composer'), 'base' => 'vc_round_chart', 'class' => '', 'icon' => 'icon-wpb-vc-round-chart', 'category' => __('Content', 'js_composer'), 'description' => __('Pie and Doughnat charts', 'js_composer'), 'params' => array(array('type' => 'textfield', 'heading' => __('Widget title', 'js_composer'), 'param_name' => 'title', 'description' => __('Enter text used as widget title (Note: located above content element).', 'js_composer'), 'admin_label' => true), array('type' => 'dropdown', 'heading' => __('Design', 'js_composer'), 'param_name' => 'type', 'value' => array(__('Pie', 'js_composer') => 'pie', __('Doughnut', 'js_composer') => 'doughnut'), 'description' => __('Select type of chart.', 'js_composer'), 'admin_label' => true), array('type' => 'dropdown', 'heading' => __('Style', 'js_composer'), 'description' => __('Select chart color style.', 'js_composer'), 'param_name' => 'style', 'value' => array(__('Flat', 'js_composer') => 'flat', __('Modern', 'js_composer') => 'modern', __('Custom', 'js_composer') => 'custom'), 'dependency' => array('callback' => 'vcChartCustomColorDependency')), array('type' => 'dropdown', 'heading' => __('Gap', 'js_composer'), 'param_name' => 'stroke_width', 'value' => array(0 => 0, 1 => 1, 2 => 2, 5 => 5), 'description' => __('Select gap size.', 'js_composer'), 'std' => 2), array('type' => 'dropdown', 'heading' => __('Outline color', 'js_composer'), 'param_name' => 'stroke_color', 'value' => getVcShared('colors-dashed') + array(__('Custom', 'js_composer') => 'custom'), 'description' => __('Select outline color.', 'js_composer'), 'param_holder_class' => 'vc_colored-dropdown', 'std' => 'white', 'dependency' => array('element' => 'stroke_width', 'value_not_equal_to' => '0')), array('type' => 'colorpicker', 'heading' => __('Custom outline color', 'js_composer'), 'param_name' => 'custom_stroke_color', 'description' => __('Select custom outline color.', 'js_composer'), 'dependency' => array('element' => 'stroke_color', 'value' => array('custom'))), array('type' => 'checkbox', 'heading' => __('Show legend?', 'js_composer'), 'param_name' => 'legend', 'description' => __('If checked, chart will have legend.', 'js_composer'), 'value' => array(__('Yes', 'js_composer') => 'yes'), 'std' => 'yes'), array('type' => 'checkbox', 'heading' => __('Show hover values?', 'js_composer'), 'param_name' => 'tooltips', 'description' => __('If checked, chart will show values on hover.', 'js_composer'), 'value' => array(__('Yes', 'js_composer') => 'yes'), 'std' => 'yes'), array('type' => 'param_group', 'heading' => __('Values', 'js_composer'), 'param_name' => 'values', 'value' => urlencode(json_encode(array(array('title' => __('One', 'js_composer'), 'value' => '60', 'color' => 'blue'), array('title' => __('Two', 'js_composer'), 'value' => '40', 'color' => 'pink')))), 'params' => array(array('type' => 'textfield', 'heading' => __('Title', 'js_composer'), 'param_name' => 'title', 'description' => __('Enter title for chart area.', 'js_composer'), 'admin_label' => true), array('type' => 'textfield', 'heading' => __('Value', 'js_composer'), 'param_name' => 'value', 'description' => __('Enter value for area.', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Color', 'js_composer'), 'param_name' => 'color', 'value' => getVcShared('colors-dashed'), 'description' => __('Select area color.', 'js_composer'), 'param_holder_class' => 'vc_colored-dropdown'), array('type' => 'colorpicker', 'heading' => __('Custom color', 'js_composer'), 'param_name' => 'custom_color', 'description' => __('Select custom area color.', 'js_composer'))), 'callbacks' => array('after_add' => 'vcChartParamAfterAddCallback')), array('type' => 'dropdown', 'heading' => __('Animation', 'js_composer'), 'description' => __('Select animation style.', 'js_composer'), 'param_name' => 'animation', 'value' => getVcShared('animation styles'), 'std' => 'easeinOutCubic'), array('type' => 'textfield', 'heading' => __('Extra class name', 'js_composer'), 'param_name' => 'el_class', 'description' => __('Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer')), array('type' => 'css_editor', 'heading' => __('CSS box', 'js_composer'), 'param_name' => 'css', 'group' => __('Design Options', 'js_composer'))));
<?php

return array('name' => __('Single Image', 'js_composer'), 'base' => 'vc_single_image', 'icon' => 'icon-wpb-single-image', 'category' => __('Content', 'js_composer'), 'description' => __('Simple image with CSS animation', 'js_composer'), 'params' => array(array('type' => 'textfield', 'heading' => __('Widget title', 'js_composer'), 'param_name' => 'title', 'description' => __('Enter text used as widget title (Note: located above content element).', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Image source', 'js_composer'), 'param_name' => 'source', 'value' => array(__('Media library', 'js_composer') => 'media_library', __('External link', 'js_composer') => 'external_link', __('Featured Image', 'js_composer') => 'featured_image'), 'std' => 'media_library', 'description' => __('Select image source.', 'js_composer')), array('type' => 'attach_image', 'heading' => __('Image', 'js_composer'), 'param_name' => 'image', 'value' => '', 'description' => __('Select image from media library.', 'js_composer'), 'dependency' => array('element' => 'source', 'value' => 'media_library'), 'admin_label' => true), array('type' => 'textfield', 'heading' => __('External link', 'js_composer'), 'param_name' => 'custom_src', 'description' => __('Select external link.', 'js_composer'), 'dependency' => array('element' => 'source', 'value' => 'external_link'), 'admin_label' => true), array('type' => 'textfield', 'heading' => __('Image size', 'js_composer'), 'param_name' => 'img_size', 'value' => 'thumbnail', 'description' => __('Enter image size (Example: "thumbnail", "medium", "large", "full" or other sizes defined by theme). Alternatively enter size in pixels (Example: 200x100 (Width x Height)).', 'js_composer'), 'dependency' => array('element' => 'source', 'value' => array('media_library', 'featured_image'))), array('type' => 'textfield', 'heading' => __('Image size', 'js_composer'), 'param_name' => 'external_img_size', 'value' => '', 'description' => __('Enter image size in pixels. Example: 200x100 (Width x Height).', 'js_composer'), 'dependency' => array('element' => 'source', 'value' => 'external_link')), array('type' => 'textfield', 'heading' => __('Caption', 'js_composer'), 'param_name' => 'caption', 'description' => __('Enter text for image caption.', 'js_composer'), 'dependency' => array('element' => 'source', 'value' => 'external_link')), array('type' => 'checkbox', 'heading' => __('Add caption?', 'js_composer'), 'param_name' => 'add_caption', 'description' => __('Add image caption.', 'js_composer'), 'value' => array(__('Yes', 'js_composer') => 'yes'), 'dependency' => array('element' => 'source', 'value' => array('media_library', 'featured_image'))), array('type' => 'dropdown', 'heading' => __('Image alignment', 'js_composer'), 'param_name' => 'alignment', 'value' => array(__('Left', 'js_composer') => 'left', __('Right', 'js_composer') => 'right', __('Center', 'js_composer') => 'center'), 'description' => __('Select image alignment.', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Image style', 'js_composer'), 'param_name' => 'style', 'value' => getVcShared('single image styles'), 'description' => __('Select image display style.', 'js_comopser'), 'dependency' => array('element' => 'source', 'value' => array('media_library', 'featured_image'))), array('type' => 'dropdown', 'heading' => __('Image style', 'js_composer'), 'param_name' => 'external_style', 'value' => getVcShared('single image external styles'), 'description' => __('Select image display style.', 'js_comopser'), 'dependency' => array('element' => 'source', 'value' => 'external_link')), array('type' => 'dropdown', 'heading' => __('Border color', 'js_composer'), 'param_name' => 'border_color', 'value' => getVcShared('colors'), 'std' => 'grey', 'dependency' => array('element' => 'style', 'value' => array('vc_box_border', 'vc_box_border_circle', 'vc_box_outline', 'vc_box_outline_circle', 'vc_box_border_circle_2', 'vc_box_outline_circle_2')), 'description' => __('Border color.', 'js_composer'), 'param_holder_class' => 'vc_colored-dropdown'), array('type' => 'dropdown', 'heading' => __('Border color', 'js_composer'), 'param_name' => 'external_border_color', 'value' => getVcShared('colors'), 'std' => 'grey', 'dependency' => array('element' => 'external_style', 'value' => array('vc_box_border', 'vc_box_border_circle', 'vc_box_outline', 'vc_box_outline_circle')), 'description' => __('Border color.', 'js_composer'), 'param_holder_class' => 'vc_colored-dropdown'), array('type' => 'dropdown', 'heading' => __('On click action', 'js_composer'), 'param_name' => 'onclick', 'value' => array(__('None', 'js_composer') => '', __('Link to large image', 'js_composer') => 'img_link_large', __('Open prettyPhoto', 'js_composer') => 'link_image', __('Open custom link', 'js_composer') => 'custom_link', __('Zoom', 'js_composer') => 'zoom'), 'description' => __('Select action for click action.', 'js_composer'), 'std' => ''), array('type' => 'href', 'heading' => __('Image link', 'js_composer'), 'param_name' => 'link', 'description' => __('Enter URL if you want this image to have a link (Note: parameters like "mailto:" are also accepted).', 'js_composer'), 'dependency' => array('element' => 'onclick', 'value' => 'custom_link')), array('type' => 'dropdown', 'heading' => __('Link Target', 'js_composer'), 'param_name' => 'img_link_target', 'value' => vc_target_param_list(), 'dependency' => array('element' => 'onclick', 'value' => array('custom_link', 'img_link_large'))), vc_map_add_css_animation(), array('type' => 'textfield', 'heading' => __('Extra class name', 'js_composer'), 'param_name' => 'el_class', 'description' => __('Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer')), array('type' => 'css_editor', 'heading' => __('CSS box', 'js_composer'), 'param_name' => 'css', 'group' => __('Design Options', 'js_composer')), array('type' => 'hidden', 'param_name' => 'img_link_large')));
예제 #11
0
<?php

return array('name' => __('Old Call to Action Button', 'js_composer') . ' 2', 'base' => 'vc_cta_button2', 'icon' => 'icon-wpb-call-to-action', 'deprecated' => '4.5', 'content_element' => false, 'category' => array(__('Content', 'js_composer')), 'description' => __('Catch visitors attention with CTA block', 'js_composer'), 'params' => array(array('type' => 'textfield', 'heading' => __('Heading', 'js_composer'), 'admin_label' => true, 'param_name' => 'h2', 'value' => __('Hey! I am first heading line feel free to change me', 'js_composer'), 'description' => __('Enter text for heading line.', 'js_composer')), array('type' => 'textfield', 'heading' => __('Subheading', 'js_composer'), 'param_name' => 'h4', 'value' => '', 'description' => __('Enter text for subheading line.', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Shape', 'js_composer'), 'param_name' => 'style', 'value' => getVcShared('cta styles'), 'description' => __('Select display shape and style.', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Width', 'js_composer'), 'param_name' => 'el_width', 'value' => getVcShared('cta widths'), 'description' => __('Select element width (percentage).', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Text alignment', 'js_composer'), 'param_name' => 'txt_align', 'value' => getVcShared('text align'), 'description' => __('Select text alignment in "Call to Action" block.', 'js_composer')), array('type' => 'colorpicker', 'heading' => __('Background color', 'js_composer'), 'param_name' => 'accent_color', 'description' => __('Select background color.', 'js_composer')), array('type' => 'textarea_html', 'heading' => __('Text', 'js_composer'), 'param_name' => 'content', 'value' => __('I am promo text. Click edit button to change this text. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.', 'js_composer')), array('type' => 'vc_link', 'heading' => __('URL (Link)', 'js_composer'), 'param_name' => 'link', 'description' => __('Add link to button (Important: adding link automatically adds button).', 'js_composer')), array('type' => 'textfield', 'heading' => __('Text on the button', 'js_composer'), 'param_name' => 'title', 'value' => __('Text on the button', 'js_composer'), 'description' => __('Add text on the button.', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Shape', 'js_composer'), 'param_name' => 'btn_style', 'value' => getVcShared('button styles'), 'description' => __('Select button display style and shape.', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Color', 'js_composer'), 'param_name' => 'color', 'value' => getVcShared('colors'), 'description' => __('Select button color.', 'js_composer'), 'param_holder_class' => 'vc_colored-dropdown'), array('type' => 'dropdown', 'heading' => __('Size', 'js_composer'), 'param_name' => 'size', 'value' => getVcShared('sizes'), 'std' => 'md', 'description' => __('Select button size.', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Button position', 'js_composer'), 'param_name' => 'position', 'value' => array(__('Right', 'js_composer') => 'right', __('Left', 'js_composer') => 'left', __('Bottom', 'js_composer') => 'bottom'), 'description' => __('Select button alignment.', 'js_composer')), vc_map_add_css_animation(), array('type' => 'textfield', 'heading' => __('Extra class name', 'js_composer'), 'param_name' => 'el_class', 'description' => __('Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer'))));
예제 #12
0
파일: map.php 프로젝트: GitIPFire/Homeworks
			'value' => getVcShared( 'colors' ),
			'description' => __( 'Button color.', LANGUAGE_ZONE ),
			'param_holder_class' => 'vc_colored-dropdown'
		),
		/*array(
        'type' => 'dropdown',
        'heading' => __( 'Icon', LANGUAGE_ZONE ),
        'param_name' => 'icon',
        'value' => getVcShared( 'icons' ),
        'description' => __( 'Button icon.', LANGUAGE_ZONE )
  ),*/
		array(
			'type' => 'dropdown',
			'heading' => __( 'Size', LANGUAGE_ZONE ),
			'param_name' => 'size',
			'value' => getVcShared( 'sizes' ),
			'std' => 'md',
			'description' => __( 'Button size.', LANGUAGE_ZONE )
		),
		array(
			'type' => 'dropdown',
			'heading' => __( 'Button position', LANGUAGE_ZONE ),
			'param_name' => 'position',
			'value' => array(
				__( 'Align right', LANGUAGE_ZONE ) => 'right',
				__( 'Align left', LANGUAGE_ZONE ) => 'left',
				__( 'Align bottom', LANGUAGE_ZONE ) => 'bottom'
			),
			'description' => __( 'Select button alignment.', LANGUAGE_ZONE )
		),
		$add_css_animation,
예제 #13
0
<?php

return array('name' => __('Old Button', 'js_composer') . ' 2', 'base' => 'vc_button2', 'icon' => 'icon-wpb-ui-button', 'deprecated' => '4.5', 'content_element' => false, 'category' => array(__('Content', 'js_composer')), 'description' => __('Eye catching button', 'js_composer'), 'params' => array(array('type' => 'vc_link', 'heading' => __('URL (Link)', 'js_composer'), 'param_name' => 'link', 'description' => __('Add link to button.', 'js_composer')), array('type' => 'textfield', 'heading' => __('Text', 'js_composer'), 'holder' => 'button', 'class' => 'vc_btn', 'param_name' => 'title', 'value' => __('Text on the button', 'js_composer'), 'description' => __('Enter text on the button.', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Alignment', 'js_composer'), 'param_name' => 'align', 'value' => array(__('Inline', 'js_composer') => 'inline', __('Left', 'js_composer') => 'left', __('Center', 'js_composer') => 'center', __('Right', 'js_composer') => 'right'), 'description' => __('Select button alignment.', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Shape', 'js_composer'), 'param_name' => 'style', 'value' => getVcShared('button styles'), 'description' => __('Select button display style and shape.', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Color', 'js_composer'), 'param_name' => 'color', 'value' => getVcShared('colors'), 'description' => __('Select button color.', 'js_composer'), 'param_holder_class' => 'vc_colored-dropdown'), array('type' => 'dropdown', 'heading' => __('Size', 'js_composer'), 'param_name' => 'size', 'value' => getVcShared('sizes'), 'std' => 'md', 'description' => __('Select button size.', 'js_composer')), array('type' => 'textfield', 'heading' => __('Extra class name', 'js_composer'), 'param_name' => 'el_class', 'description' => __('Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer'))), 'js_view' => 'VcButton2View');
예제 #14
0
function om_wpb_init()
{
    vc_remove_element('vc_widget_sidebar');
    vc_remove_element('vc_basic_grid');
    vc_remove_element('vc_media_grid');
    vc_remove_element('vc_masonry_grid');
    vc_remove_element('vc_masonry_media_grid');
    /**
     * Row
     */
    vc_remove_param("vc_row", "css");
    vc_remove_param("vc_row", "parallax");
    vc_remove_param("vc_row", "parallax_image");
    $param = WPBMap::getParam('vc_row', 'full_width');
    $param['description'] = __('Please, note, that if you use "Stretch row" option you must hide the sidebar on the page to make use of this option.', 'om_theme');
    WPBMap::mutateParam('vc_row', $param);
    /*
    vc_add_param('vc_row', array(
    	'type' => 'dropdown',
    	'heading' => __('Row Layout', 'om_theme'),
    	'param_name' => 'row_layout',
    	'value' => array(
    		__('Standard', 'om_theme') => 'standard',
    		__('Background - full width, content - standard width', 'om_theme') => 'expand_standard_paddings',
    		__('Background - full width, content - full width with small paddings', 'om_theme') => 'expand_tiny_paddings',
    		__('Background - full width, content - full width with no paddings', 'om_theme') => 'expand_no_paddings',
    	),
    	'description' => __( 'Please, note, that if you use "Expand to full width" option you must hide the sidebar on the page to make use of this option.', 'om_theme' ),
    ));
    */
    vc_add_param('vc_row', array('type' => 'colorpicker', 'heading' => __('Font color', 'om_theme'), 'param_name' => 'font_color', 'description' => __('Select custom font color or leave empty to use default.', 'om_theme')));
    vc_add_param('vc_row', array('type' => 'dropdown', 'heading' => __('Row Background', 'om_theme'), 'param_name' => 'bg_type', 'value' => array(__('Solid Color', 'om_theme') => 'color', __('Gradient Color', 'om_theme') => 'gradient', __('Image', 'om_theme') => 'image', __('Video', 'om_theme') => 'video'), 'group' => __('Background', 'om_theme')));
    vc_add_param('vc_row', array('type' => 'colorpicker', 'heading' => __('Background color', 'om_theme'), 'param_name' => 'bg_color', 'group' => __('Background', 'om_theme'), 'dependency' => array('element' => 'bg_type', 'value' => array('color', 'gradient'))));
    vc_add_param('vc_row', array('type' => 'colorpicker', 'heading' => __('Background color 2', 'om_theme'), 'param_name' => 'bg_color2', 'description' => __('Second color of the gradient.', 'om_theme'), 'group' => __('Background', 'om_theme'), 'dependency' => array('element' => 'bg_type', 'value' => array('gradient'))));
    vc_add_param('vc_row', array('type' => 'dropdown', 'heading' => __('Gradient type', 'om_theme'), 'param_name' => 'gradient_type', 'value' => array(__('Vertical', 'om_theme') . ' ↓' => 'vertical', __('Horisontal', 'om_theme') . ' →' => 'horisontal', __('Diagonal', 'om_theme') . ' ↗' => 'diagonal1', __('Diagonal', 'om_theme') . ' ↘' => 'diagonal2', __('Radial', 'om_theme') . ' o' => 'radial'), 'group' => __('Background', 'om_theme'), 'dependency' => array('element' => 'bg_type', 'value' => array('gradient'))));
    vc_add_param('vc_row', array('type' => 'attach_image', 'heading' => __('Background image', 'om_theme'), 'param_name' => 'bg_image', 'description' => __('Select background image for the row.', 'om_theme'), 'group' => __('Background', 'om_theme'), 'dependency' => array('element' => 'bg_type', 'value' => array('image'))));
    vc_add_param('vc_row', array('type' => 'dropdown', 'heading' => __('Background image position', 'om_theme'), 'param_name' => 'bg_image_pos', 'value' => array_flip(om_get_bg_img_pos_options()), 'dependency' => array('element' => 'bg_image', 'not_empty' => true), 'group' => __('Background', 'om_theme')));
    vc_add_param('vc_row', array('type' => 'dropdown', 'heading' => __('Background image attachment', 'om_theme'), 'param_name' => 'bg_image_att', 'value' => array(__('Scroll', 'om_theme') => 'scroll', __('Fixed', 'om_theme') => 'fixed', __('Parallax, up direction', 'om_theme') => 'parallax', __('Parallax, down direction', 'om_theme') => 'parallax_down'), 'dependency' => array('element' => 'bg_image', 'not_empty' => true), 'group' => __('Background', 'om_theme')));
    vc_add_param('vc_row', array('type' => 'attach_video', 'heading' => __('Background Video File', 'om_theme'), 'param_name' => 'bg_video_src', 'description' => __('Select background video for the row.', 'om_theme'), 'group' => __('Background', 'om_theme'), 'dependency' => array('element' => 'bg_type', 'value' => array('video'))));
    vc_add_param('vc_row', array('type' => 'attach_video', 'heading' => __('MP4 Video File URL (Optional)', 'om_theme'), 'param_name' => 'bg_video_mp4', 'description' => __('Use as a fallback format in addition to the main video file.', 'om_theme'), 'dependency' => array('element' => 'bg_video_src', 'not_empty' => true), 'group' => __('Background', 'om_theme')));
    vc_add_param('vc_row', array('type' => 'attach_video', 'heading' => __('M4V Video File URL (Optional)', 'om_theme'), 'param_name' => 'bg_video_m4v', 'description' => __('Use as a fallback format in addition to the main video file.', 'om_theme'), 'dependency' => array('element' => 'bg_video_src', 'not_empty' => true), 'group' => __('Background', 'om_theme')));
    vc_add_param('vc_row', array('type' => 'attach_video', 'heading' => __('WebM Video File URL (Optional)', 'om_theme'), 'param_name' => 'bg_video_webm', 'description' => __('Use as a fallback format in addition to the main video file.', 'om_theme'), 'dependency' => array('element' => 'bg_video_src', 'not_empty' => true), 'group' => __('Background', 'om_theme')));
    vc_add_param('vc_row', array('type' => 'attach_video', 'heading' => __('OGV Video File URL (Optional)', 'om_theme'), 'param_name' => 'bg_video_ogv', 'description' => __('Use as a fallback format in addition to the main video file.', 'om_theme'), 'dependency' => array('element' => 'bg_video_src', 'not_empty' => true), 'group' => __('Background', 'om_theme')));
    vc_add_param('vc_row', array('type' => 'attach_video', 'heading' => __('WMV Video File URL (Optional)', 'om_theme'), 'param_name' => 'bg_video_wmv', 'description' => __('Use as a fallback format in addition to the main video file.', 'om_theme'), 'dependency' => array('element' => 'bg_video_src', 'not_empty' => true), 'group' => __('Background', 'om_theme')));
    vc_add_param('vc_row', array('type' => 'attach_video', 'heading' => __('FLV Video File URL (Optional)', 'om_theme'), 'param_name' => 'bg_video_flv', 'description' => __('Use as a fallback format in addition to the main video file.', 'om_theme'), 'dependency' => array('element' => 'bg_video_src', 'not_empty' => true), 'group' => __('Background', 'om_theme')));
    vc_add_param('vc_row', array('type' => 'colorpicker', 'heading' => __('Fallback background color', 'om_theme'), 'param_name' => 'bg_color_fallback', 'group' => __('Background', 'om_theme'), 'dependency' => array('element' => 'bg_type', 'value' => array('video'))));
    vc_add_param('vc_row', array('type' => 'attach_image', 'heading' => __('Fallback background image', 'om_theme'), 'param_name' => 'bg_image_fallback', 'group' => __('Background', 'om_theme'), 'dependency' => array('element' => 'bg_type', 'value' => array('video'))));
    vc_add_param('vc_row', array('type' => 'dropdown', 'heading' => __('Fancy bottom edge', 'om_theme'), 'param_name' => 'fancy_edge', 'value' => array(__('No', 'om_theme') => '', __('Diagonal', 'om_theme') . ' /' => 'diagonal_left', __('Diagonal', 'om_theme') . ' \\' => 'diagonal_right', __('Corner', 'om_theme') . ' \\/' => 'corner_down', __('Corner', 'om_theme') . ' /\\' => 'corner_up'), 'group' => __('Background', 'om_theme'), 'dependency' => array('element' => 'bg_type', 'value' => array('color'))));
    vc_add_param('vc_row', array('type' => 'dropdown', 'heading' => __('Edge size', 'om_theme'), 'param_name' => 'fancy_edge_size', 'value' => array(__('Small', 'om_theme') => 'sm', __('Medium', 'om_theme') => 'md', __('Large', 'om_theme') => 'lg', __('X-Large', 'om_theme') => 'xlg'), 'group' => __('Background', 'om_theme'), 'dependency' => array('element' => 'fancy_edge', 'not_empty' => true)));
    vc_add_param('vc_row', array('type' => 'colorpicker', 'heading' => __('Edge transient color', 'om_theme'), 'param_name' => 'fancy_edge_t_color', 'description' => __('Set this color if you want to apply transition to custom color (for instance background color of next section). Leave empty to disable transition.', 'om_theme'), 'group' => __('Background', 'om_theme'), 'dependency' => array('element' => 'fancy_edge', 'not_empty' => true)));
    vc_add_param('vc_row', array('type' => 'textfield', 'heading' => __('Top padding', 'om_theme'), 'param_name' => 'padding_top', 'description' => __('You can use px, em, %, etc. or enter just number and it will use pixels.', 'om_theme'), 'group' => __('Extra', 'om_theme')));
    vc_add_param('vc_row', array('type' => 'textfield', 'heading' => __('Bottom padding', 'om_theme'), 'param_name' => 'padding_bottom', 'description' => __('You can use px, em, %, etc. or enter just number and it will use pixels.', 'om_theme'), 'group' => __('Extra', 'om_theme')));
    vc_add_param('vc_row', array('type' => 'textfield', 'heading' => __('Top margin', 'om_theme'), 'param_name' => 'margin_top', 'description' => __('You can use px, em, %, etc. or enter just number and it will use pixels.', 'om_theme'), 'group' => __('Extra', 'om_theme')));
    vc_add_param('vc_row', array('type' => 'textfield', 'heading' => __('Bottom margin', 'om_theme'), 'param_name' => 'margin_bottom', 'description' => __('You can use px, em, %, etc. or enter just number and it will use pixels.', 'om_theme'), 'group' => __('Extra', 'om_theme')));
    vc_add_param('vc_row', array('type' => 'textarea', 'heading' => __('Custom CSS Style', 'om_theme'), 'param_name' => 'custom_css', 'description' => __('You can add custom CSS style for the row.', 'om_theme'), 'group' => __('Extra', 'om_theme')));
    /**
     * Video
     */
    vc_add_param('vc_video', array('type' => 'dropdown', 'value' => array('2:1' => '2', '16:9' => '1.777778', 'Golden ratio (1.61)' => '1.61', '3:2' => '1.5', '4:3' => '1.333333', '1:1' => '1', '3:4' => '0.75', '2:3' => '0.666667', '9:16' => '0.5625', '1:2' => '0.5'), 'std' => '1.61', 'heading' => __('Width/Height Ratio', 'om_theme'), 'param_name' => 'ratio'));
    vc_add_param('vc_video', array('type' => 'textfield', 'heading' => __('Maximum width (pixels)', 'om_theme'), 'param_name' => 'maxwidth', 'description' => __('By default video will fit all available width, you can specify maximum width', 'js_composer')));
    /**
     * Gallery
     */
    $param = WPBMap::getParam('vc_gallery', 'type');
    unset($param['value']['Flex slider fade']);
    unset($param['value']['Flex slider slide']);
    $param['value'] = array_merge(array(__('OM slider', 'om_theme') => 'om', __('Sliced', 'om_theme') => 'sliced', __('Masonry', 'om_theme') => 'masonry'), $param['value']);
    WPBMap::mutateParam('vc_gallery', $param);
    vc_remove_param("vc_gallery", "img_size");
    vc_remove_param("vc_gallery", "el_class");
    vc_add_param('vc_gallery', array('type' => 'dropdown', 'heading' => __('Columns number', 'om_theme'), 'param_name' => 'columns', 'value' => array('1', '2', '3', '4', '5', '6', '7', '8', '9'), 'dependency' => array('element' => 'type', 'value' => array('masonry', 'image_grid'))));
    vc_add_param('vc_gallery', array('type' => 'dropdown', 'heading' => __('Images width/height ratio', 'om_theme'), 'param_name' => 'ratio', 'value' => array('2:1' => '2:1', '16:9' => '16:9', '3:2' => '3:2', '4:3' => '4:3', '1:1' => '1:1', '3:4' => '3:4', '2:3' => '2:3', '9:16' => '9:16', '1:2' => '1:2'), 'dependency' => array('element' => 'type', 'value' => array('image_grid'))));
    vc_add_param('vc_gallery', array('type' => 'checkbox', 'heading' => __('Display captions', 'om_theme'), 'param_name' => 'captions', 'value' => array(__('Yes, please', 'om_theme') => 'yes'), 'dependency' => array('element' => 'type', 'value' => array('om', 'sliced', 'masonry', 'image_grid'))));
    vc_add_param('vc_gallery', array('type' => 'checkbox', 'heading' => __('Use hi-res images', 'om_theme'), 'description' => __('Check this option of you use gallery in a row without padding and the dimendions of images is not enough. Source images also must be high resolution in this case.', 'om_theme'), 'param_name' => 'hires', 'value' => array(__('Yes, please', 'om_theme') => 'yes'), 'dependency' => array('element' => 'type', 'value' => array('sliced', 'masonry', 'image_grid'))));
    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')));
    /**
     * VC Column
     */
    $tmp = array('type' => 'dropdown', 'heading' => __('Delimiter', 'om_theme'), 'description' => __('Delimiter at right hand side, between columns.', 'om_theme'), 'param_name' => 'delimiter', 'value' => array(__('No', 'om_theme') => '', __('Vertical line', 'om_theme') => 'vline', __('Horisontal line', 'om_theme') => 'hline', __('Dot', 'om_theme') => 'dot', __('Arrow', 'om_theme') => 'rarr'));
    vc_add_param('vc_column', $tmp);
    vc_add_param('vc_column_inner', $tmp);
    /**
     * Animation
     */
    $css_animation = array('type' => 'dropdown', 'heading' => __('CSS Animation', 'js_composer'), 'param_name' => 'css_animation', 'admin_label' => true, 'value' => array(__('No', 'js_composer') => '', __('Top to bottom', 'js_composer') => 'top-to-bottom', __('Bottom to top', 'js_composer') => 'bottom-to-top', __('Left to right', 'js_composer') => 'left-to-right', __('Right to left', 'js_composer') => 'right-to-left', __('Appear from center', 'js_composer') => 'appear', __('Bounce', 'om_theme') => 'bounce', __('Zoom In', 'om_theme') => 'zoom-in', __('Zoom In Down', 'om_theme') => 'zoom-in-down', __('Zoom In Up', 'om_theme') => 'zoom-in-up', __('Zoom Out', 'om_theme') => 'zoom-out', __('Spin', 'om_theme') => 'spin', __('Spin around Left Top', 'om_theme') => 'spin-lt', __('Spin around Right Top', 'om_theme') => 'spin-rt', __('Flip', 'om_theme') => 'flip', __('Flip X', 'om_theme') => 'flip-x', __('Flip Y', 'om_theme') => 'flip-y'), 'description' => __('Select type of animation if you want this element to be animated when it enters into the browsers viewport. Note: Works only in modern browsers.', 'js_composer'));
    $css_animation_delay = array('type' => 'textfield', 'heading' => __('Delay before animation starts (milliseconds)', 'js_composer'), 'param_name' => 'css_animation_delay', 'dependency' => array('element' => 'css_animation', 'not_empty' => true));
    vc_add_param('vc_column', $css_animation);
    vc_add_param('vc_column', $css_animation_delay);
    vc_add_param('vc_column_inner', $css_animation);
    vc_add_param('vc_column_inner', $css_animation_delay);
    vc_add_param('vc_row', $css_animation);
    vc_add_param('vc_row', $css_animation_delay);
    vc_add_param('vc_row_inner', $css_animation);
    vc_add_param('vc_row_inner', $css_animation_delay);
    WPBMap::mutateParam('vc_btn', $css_animation);
    WPBMap::mutateParam('vc_column_text', $css_animation);
    WPBMap::mutateParam('vc_cta', $css_animation);
    WPBMap::mutateParam('vc_message', array_merge($css_animation, array('admin_label' => false)));
    WPBMap::mutateParam('vc_single_image', $css_animation);
    WPBMap::mutateParam('vc_toggle', $css_animation);
    /**
     * Toggle
     */
    vc_remove_param('vc_toggle', 'style');
    vc_remove_param('vc_toggle', 'color');
    vc_remove_param('vc_toggle', 'size');
    /**
     * om_icon_separator
     */
    $tmp = om_wpb_icon_params();
    $tmp = array_merge($tmp, array(array('type' => 'dropdown', 'heading' => __('Icon position', 'om_theme'), 'param_name' => 'title_align', 'value' => array(__('Align center', 'js_composer') => 'separator_align_center', __('Align left', 'js_composer') => 'separator_align_left', __('Align right', 'js_composer') => "separator_align_right"), 'description' => __('Select title location.', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Color', 'js_composer'), 'param_name' => 'color', 'value' => array_merge(getVcShared('colors'), array(__('Custom color', 'js_composer') => 'custom')), 'std' => 'grey', 'description' => __('Separator color.', 'js_composer'), 'param_holder_class' => 'vc_colored-dropdown'), array('type' => 'colorpicker', 'heading' => __('Custom Color', 'js_composer'), 'param_name' => 'accent_color', 'description' => __('Custom separator color for your element.', 'js_composer'), 'dependency' => array('element' => 'color', 'value' => array('custom'))), array('type' => 'dropdown', 'heading' => __('Style', 'js_composer'), 'param_name' => 'style', 'value' => getVcShared('separator styles'), 'description' => __('Separator style.', 'js_composer')), array('type' => 'dropdown', 'value' => getVcShared('separator border widths'), 'description' => __('Border width in pixels.', 'js_composer'), 'heading' => __('Border width', 'om_theme'), 'param_name' => 'border_width'), array('type' => 'dropdown', 'heading' => __('Element width', 'js_composer'), 'param_name' => 'el_width', 'value' => getVcShared('separator widths'), 'description' => __('Separator element width in percents.', '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'))));
    vc_map_update('om_icon_separator', array('params' => $tmp));
    /**
     * Message box
     */
    $param = WPBMap::getParam('vc_message', 'color');
    $tmp = array();
    foreach ($param['options'] as $v) {
        if (!in_array($v['value'], array('alert-info', 'alert-warning', 'alert-success', 'alert-danger'))) {
            $tmp[] = $v;
        }
    }
    $param['options'] = $tmp;
    WPBMap::mutateParam('vc_message', $param);
    $param = WPBMap::getParam('vc_message', 'icon_type');
    $param['value'] = array_merge(array_diff($param['value'], array('pixelicons')));
    WPBMap::mutateParam('vc_message', $param);
    $param = WPBMap::getParam('vc_message', 'message_box_color');
    $param['value'] = array_merge(array_diff($param['value'], array('alert-info', 'alert-warning', 'alert-success', 'alert-danger')));
    WPBMap::mutateParam('vc_message', $param);
    vc_remove_param('vc_message', 'style');
    /**
     * Single image
     */
    $param = WPBMap::getParam('vc_single_image', 'style');
    unset($param['value']['3D Shadow']);
    WPBMap::mutateParam('vc_single_image', $param);
    $param = WPBMap::getParam('vc_single_image', 'img_size');
    $param['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 "full" size.', 'om_theme');
    WPBMap::mutateParam('vc_single_image', $param);
    /**
     * Button
     */
    $params = new OMWPBScParams('vc_btn');
    $params->remove('custom_background');
    $params->remove('custom_text');
    $params->remove('shape');
    $param = $params->get('style');
    $param['value'] = array(__('Classic', 'om_theme') => 'flat', __('Outlined', 'om_theme') => 'outline');
    $params->update($param);
    $param = $params->get('color');
    $param['value'] = array_merge(om_wpb_get_std_colors(), array(__('Custom', 'om_theme') => 'custom'));
    $param['edit_field_class'] = 'vc_col-sm-6 vc_column vc_block_clear';
    $params->update($param);
    $params->add(array('type' => 'colorpicker', 'heading' => __('Custom color', 'js_composer'), 'param_name' => 'custom_color', 'description' => __('Select custom color for button.', 'om_theme'), 'dependency' => array('element' => 'color', 'value' => array('custom')), 'edit_field_class' => 'vc_col-sm-6 vc_column'), 'color');
    $params->add(array('type' => 'dropdown', 'heading' => __('Hover color', 'js_composer'), 'param_name' => 'hover_color', 'description' => __('Select color for button by hover.', 'om_theme'), 'value' => array(__('Auto', 'om_theme') => 'auto', __('Custom', 'om_theme') => 'custom'), 'edit_field_class' => 'vc_col-sm-6 vc_column vc_block_clear'), 'custom_color');
    $params->add(array('type' => 'colorpicker', 'heading' => __('Custom hover color', 'js_composer'), 'param_name' => 'hover_custom_color', 'dependency' => array('element' => 'hover_color', 'value' => array('custom')), 'edit_field_class' => 'vc_col-sm-6 vc_column'), 'hover_color');
    $params->add(array('type' => 'dropdown', 'heading' => __('Text color', 'js_composer'), 'param_name' => 'text_color', 'value' => array(__('Default', 'om_theme') => 'auto', __('Custom', 'om_theme') => 'custom'), 'edit_field_class' => 'vc_col-sm-6 vc_column vc_block_clear'), 'hover_custom_color');
    $params->add(array('type' => 'colorpicker', 'heading' => __('Custom text color', 'js_composer'), 'param_name' => 'text_custom_color', 'dependency' => array('element' => 'text_color', 'value' => array('custom')), 'edit_field_class' => 'vc_col-sm-6 vc_column'), 'text_color');
    $params->add(array('type' => 'dropdown', 'heading' => __('Hover text color', 'js_composer'), 'param_name' => 'hover_text_color', 'value' => array(__('Default', 'om_theme') => 'auto', __('Custom', 'om_theme') => 'custom'), 'edit_field_class' => 'vc_col-sm-6 vc_column vc_block_clear'), 'text_custom_color');
    $params->add(array('type' => 'colorpicker', 'heading' => __('Custom hover text color', 'js_composer'), 'param_name' => 'hover_text_custom_color', 'dependency' => array('element' => 'hover_text_color', 'value' => array('custom')), 'edit_field_class' => 'vc_col-sm-6 vc_column'), 'hover_text_color');
    $param = $params->get('size');
    $param['value']['XLarge'] = 'xlg';
    $params->update($param);
    $params->add(array('type' => 'dropdown', 'heading' => __('Icon color', 'js_composer'), 'param_name' => 'icon_color', 'value' => array(__('Default', 'om_theme') => 'auto', __('Custom', 'om_theme') => 'custom'), 'dependency' => array('element' => 'add_icon', 'value' => 'true'), 'edit_field_class' => 'vc_col-sm-6 vc_column vc_block_clear'), 'i_align');
    $params->add(array('type' => 'colorpicker', 'heading' => __('Custom icon color', 'js_composer'), 'param_name' => 'icon_custom_color', 'dependency' => array('element' => 'icon_color', 'value' => array('custom')), 'edit_field_class' => 'vc_col-sm-6 vc_column'), 'icon_color');
    $param = $params->get('i_type');
    $param['value'] = om_wpb_remove_pixel_icons($param['value']);
    $params->update($param);
    $params->add(array('type' => 'om_get_code', 'heading' => __('Get code', 'om_theme'), 'param_name' => 'code', 'description' => __('If you wish to use button shortcode somewhere out of Visual Composer or insert it into text inline, you can generate the code which you can use separately.', 'js_composer')));
    $params->save();
    /**
     * CTA Button
     */
    $params = new OMWPBScParams('vc_cta');
    $params->remove('use_custom_fonts_h2');
    $params->removeIntegratedShortcode('vc_custom_heading', 'h2_');
    $params->remove('use_custom_fonts_h4');
    $params->removeIntegratedShortcode('vc_custom_heading', 'h4_');
    $params->remove('shape');
    $params->remove('color');
    $param = $params->get('style');
    $param['value'] = array(__('Classic', 'om_theme') => 'classic', __('Outline', 'om_theme') => 'outline');
    $params->update($param);
    $param = $params->get('custom_background');
    unset($param['dependency']);
    $params->update($param);
    $param = $params->get('custom_text');
    unset($param['dependency']);
    $params->update($param);
    $param = $params->get('add_button');
    foreach ($param['value'] as $k => $v) {
        if ($v == 'top') {
            unset($param['value'][$k]);
            break;
        }
    }
    $params->update($param);
    $params->remove('add_icon');
    $params->remove('i_on_border');
    $params->removeIntegratedShortcode('vc_icon', 'i_');
    $params->save();
    /**
     * Progress Bars
     */
    vc_remove_param('vc_progress_bar', 'el_class');
    vc_add_param('vc_progress_bar', array('type' => 'dropdown', 'heading' => __('Titles color', 'js_composer'), 'param_name' => 'titles_color', 'value' => array(__('Default', 'om_theme') => 'auto', __('Custom', 'om_theme') => 'custom')));
    vc_add_param('vc_progress_bar', array('type' => 'colorpicker', 'heading' => __('Titles custom color', 'js_composer'), 'param_name' => 'titles_custom_color', 'dependency' => array('element' => 'titles_color', 'value' => array('custom'))));
    vc_add_param('vc_progress_bar', 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')));
    /**
     * Pie charts
     */
    vc_remove_param('vc_pie', 'el_class');
    vc_remove_param('vc_pie', 'label_value');
    vc_remove_param('vc_pie', 'units');
    vc_remove_param('vc_pie', 'color');
    vc_add_param('vc_pie', array('type' => 'dropdown', 'heading' => __('Pie label inside circle', 'om_theme'), 'param_name' => 'label_type', 'value' => array(__('Number', 'om_theme') => 'number', __('Display widget title', 'om_theme') => 'title', __('Icon', 'om_theme') => 'icon')));
    vc_add_param('vc_pie', array('type' => 'textfield', 'heading' => __('Pie label value', 'js_composer'), 'param_name' => 'label_value', 'description' => __('Input integer value for label. If empty "Pie value" will be used.', 'js_composer'), 'value' => '', 'dependency' => array('element' => 'label_type', 'value' => array('number'))));
    vc_add_param('vc_pie', array('type' => 'textfield', 'heading' => __('Units', 'js_composer'), 'param_name' => 'units', 'description' => __('Enter measurement units (if needed) Eg. %, px, points, etc. Graph value and unit will be appended to the graph title.', 'js_composer'), 'dependency' => array('element' => 'label_type', 'value' => array('number'))));
    $tmp = om_wpb_icon_params(false, array('element' => 'label_type', 'value' => array('icon')));
    foreach ($tmp as $v) {
        vc_add_param('vc_pie', $v);
    }
    vc_add_param('vc_pie', array('type' => 'dropdown', 'heading' => __('Bar color', 'js_composer'), 'param_name' => 'color', 'value' => 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", __('Custom', 'om_theme') => 'custom'), 'description' => __('Select pie chart color.', 'js_composer'), 'admin_label' => true, 'param_holder_class' => 'vc_colored-dropdown'));
    vc_add_param('vc_pie', array('type' => 'colorpicker', 'heading' => __('Custom color', 'js_composer'), 'param_name' => 'custom_color', 'dependency' => array('element' => 'color', 'value' => array('custom'))));
    vc_add_param('vc_pie', array('type' => 'textfield', 'heading' => __('Width', 'js_composer'), 'param_name' => 'width', 'description' => __('Leave this field blank for auto width or specify maximum width', 'om_theme')));
    vc_add_param('vc_pie', 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')));
    /**
     * GMaps
     */
    vc_remove_param('vc_gmaps', 'link');
    vc_remove_param('vc_gmaps', 'size');
    vc_remove_param('vc_gmaps', 'el_class');
    vc_add_param('vc_gmaps', array('type' => 'textarea_safe', 'heading' => __('Map embed iframe', 'js_composer'), 'param_name' => 'link', 'description' => sprintf(__('Visit %s or %s to create your map. 1) Find location 2) Click "Share" and make sure map is public on the web 3) Copy iframe code and paste it here.', 'js_composer'), '<a href="https://maps.google.com/" target="_blank">Google maps</a>', '<a href="https://mapsengine.google.com/" target="_blank">Google Maps Engine</a>')));
    vc_add_param('vc_gmaps', array('type' => 'textfield', 'heading' => __('Map height', 'js_composer'), 'param_name' => 'size', 'admin_label' => true, 'description' => __('Enter map height in pixels. Example: 200 or leave it empty to make map responsive.', 'js_composer')));
    vc_add_param('vc_gmaps', 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')));
    /**
     * Adding "Theme Color" option to some shortcodes.
     */
    $theme_color = array(__('Theme Hightlight Color', 'om_theme') => 'om-theme-color');
    $param = WPBMap::getParam('vc_separator', 'color');
    $param['value'] = array_merge($theme_color, $param['value']);
    WPBMap::mutateParam('vc_separator', $param);
    $param = WPBMap::getParam('vc_text_separator', 'color');
    $param['value'] = array_merge($theme_color, $param['value']);
    WPBMap::mutateParam('vc_text_separator', $param);
    $param = WPBMap::getParam('om_icon_separator', 'color');
    $param['value'] = array_merge($theme_color, $param['value']);
    WPBMap::mutateParam('om_icon_separator', $param);
    $param = WPBMap::getParam('vc_single_image', 'border_color');
    $param['value'] = array_merge($theme_color, $param['value']);
    WPBMap::mutateParam('vc_single_image', $param);
    $param = WPBMap::getParam('vc_btn', 'color');
    $param['value'] = array_merge($theme_color, $param['value']);
    WPBMap::mutateParam('vc_btn', $param);
    $param = WPBMap::getParam('vc_progress_bar', 'bgcolor');
    $param['value'] = array_merge($theme_color, $param['value']);
    WPBMap::mutateParam('vc_progress_bar', $param);
    $param = WPBMap::getParam('vc_pie', 'color');
    $param['value'] = array_merge($theme_color, $param['value']);
    WPBMap::mutateParam('vc_pie', $param);
    $param = WPBMap::getParam('vc_message', 'message_box_color');
    $param['value'] = array_merge($theme_color, $param['value']);
    WPBMap::mutateParam('vc_message', $param);
    $param = WPBMap::getParam('vc_icon', 'color');
    $param['value'] = array_merge($theme_color, $param['value']);
    WPBMap::mutateParam('vc_icon', $param);
    $param = WPBMap::getParam('vc_icon', 'background_color');
    $param['value'] = array_merge($theme_color, $param['value']);
    WPBMap::mutateParam('vc_icon', $param);
    /**
     * Update some integrated shortcodes
     */
    $params = new OMWPBScParams('vc_cta');
    $params->updateIntegratedShortcode('vc_btn', 'btn_', __('Button', 'js_composer'), false, array('element' => 'add_button', 'not_empty' => true));
    $params->remove('btn_code');
    $params->save();
}
예제 #15
0
                $custom_color = cruxstore_color2Hex($color);
            }
            $lightbox_style = 'style="color: ' . $custom_color . '"';
            $lightbox_icon = sprintf('<span class="%s %s" %s></span>', $iconbox_icon, implode(' ', $lightbox_class), $lightbox_style);
        }
        $link_attr = array('href' => '', 'class' => 'lightbox-link lightbox-' . $type);
        if ($type == 'inline') {
            $link_attr['href'] = '#lightbox-content' . $uniqid;
            $output .= sprintf('<div id="%s" class="%s">%s</div>', 'lightbox-content' . $uniqid, 'mfp-hide lightbox-popup-block mfp-with-anim', $content);
        } elseif ($type == 'iframe') {
            $link_attr['href'] = $link;
        } else {
            $img_lightbox_id = preg_replace('/[^\\d]/', '', $image);
            $img_lightbox = wp_get_attachment_image_src($img_lightbox_id, 'full');
            if (array($img_lightbox)) {
                $link_attr['href'] = $img_lightbox['0'];
            } else {
                $link_attr['href'] = vc_asset_url('vc/no_image.png');
            }
        }
        $output .= sprintf('<a href="%s" class="%s" data-type="%s" data-effect="%s" data-width="%s">%s</a>', $link_attr['href'], $link_attr['class'], $type, $effect, $max_width, $lightbox_icon);
        if ($animation_delay) {
            $animation_delay = sprintf(' data-wow-delay="%sms"', $animation_delay);
        }
        $elementClass = preg_replace(array('/\\s+/', '/^\\s|\\s$/'), array(' ', ''), implode(' ', $elementClass));
        return '<div id="lightbox-' . $uniqid . '" class="' . esc_attr($elementClass) . '"' . $animation_delay . '>' . $output . $custom_css . '</div>';
    }
}
// Add your Visual Composer logic here
vc_map(array("name" => esc_html__("KT: Icon Lightbox", 'cruxstore'), "base" => "icon_lightbox", "category" => esc_html__('by Kite-Themes', 'cruxstore'), "params" => array(array('type' => 'dropdown', 'heading' => esc_html__('Lightbox Type', 'cruxstore'), 'param_name' => 'type', 'value' => array(esc_html__('Image', 'cruxstore') => 'image', esc_html__('Iframe - Video', 'cruxstore') => 'iframe', esc_html__('Inline', 'cruxstore') => 'inline'), 'description' => esc_html__('Select type of lightbox.', 'cruxstore'), "admin_label" => true), array('type' => 'attach_image', 'heading' => esc_html__('Image', 'cruxstore'), 'param_name' => 'image', 'dependency' => array("element" => "type", "value" => array('image')), 'description' => esc_html__('Select image from media library.', 'js_composer')), array("type" => "textfield", 'heading' => esc_html__('Link', 'js_composer'), 'param_name' => 'link', "admin_label" => true, 'dependency' => array("element" => "type", "value" => array('iframe')), 'description' => esc_html__('Enter your link in here.', 'js_composer')), array("type" => "textarea_html", "heading" => esc_html__("Content", 'cruxstore'), "param_name" => "content", "value" => '', 'dependency' => array("element" => "type", "value" => array('inline'))), array('type' => 'dropdown', 'heading' => esc_html__('Lightbox Effect', 'cruxstore'), 'param_name' => 'effect', 'value' => array(esc_html__('Default', 'cruxstore') => '', esc_html__('Zoom In', 'cruxstore') => 'mfp-zoom-in', esc_html__('Newspaper', 'cruxstore') => 'mfp-newspaper', esc_html__('Move Horizontal', 'cruxstore') => 'mfp-move-horizontal', esc_html__('Move from top', 'cruxstore') => 'mfp-move-from-top', esc_html__('3d unfold', 'cruxstore') => 'mfp-3d-unfold', esc_html__('Zoom out', 'cruxstore') => 'mfp-zoom-out'), 'description' => esc_html__('Select effect of lightbox.', 'cruxstore'), "admin_label" => true), array("type" => "cruxstore_number", "heading" => esc_html__("Max width", 'cruxstore'), "param_name" => "max_width", "value" => 650, "suffix" => esc_html__("px", 'cruxstore'), 'description' => esc_html__('Select max-width for lightbox.', 'cruxstore'), 'dependency' => array("element" => "type", "value" => array('inline', 'iframe'))), array('type' => 'dropdown', 'heading' => esc_html__('Alignment', 'js_composer'), 'param_name' => 'align', 'value' => array(esc_html__('Center', 'js_composer') => 'center', esc_html__('Left', 'js_composer') => 'left', esc_html__('Right', 'js_composer') => "right"), "admin_label" => true, 'description' => esc_html__('Select separator alignment.', 'js_composer')), cruxstore_map_add_css_animation(), cruxstore_map_add_css_animation_delay(), array("type" => "textfield", "heading" => esc_html__("Extra class name", "js_composer"), "param_name" => "el_class", "description" => esc_html__("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', 'heading' => esc_html__('Icon to display', 'cruxstore'), 'param_name' => 'icon_type', 'value' => array(esc_html__('Font Icon', 'cruxstore') => 'icon', esc_html__('Image Icon', 'cruxstore') => 'image'), 'description' => esc_html__('Select your layout.', 'cruxstore'), 'group' => esc_html__('Icon', 'cruxstore')), array('type' => 'attach_image', 'heading' => esc_html__('Image Thumbnail', 'cruxstore'), 'param_name' => 'iconbox_image', 'dependency' => array('element' => 'icon_type', 'value' => array('image')), 'description' => esc_html__('Select image from media library.', 'js_composer'), 'group' => esc_html__('Icon', 'cruxstore')), array("type" => "cruxstore_icons", 'heading' => esc_html__('Choose your icon', 'js_composer'), 'param_name' => 'iconbox_icon', "value" => 'fa fa-adjust', 'description' => esc_html__('Use existing font icon or upload a custom image.', 'cruxstore'), 'dependency' => array("element" => "icon_type", "value" => array('icon')), 'group' => esc_html__('Icon', 'cruxstore')), array('type' => 'dropdown', 'heading' => esc_html__('Icon color', 'js_composer'), 'param_name' => 'color', 'value' => array_merge(array(esc_html__('Default', 'js_composer') => 'default'), getVcShared('colors'), array(esc_html__('Custom color', 'js_composer') => 'custom')), 'description' => esc_html__('Select icon color.', 'js_composer'), 'param_holder_class' => 'vc_colored-dropdown', 'group' => esc_html__('Icon', 'cruxstore'), 'dependency' => array("element" => "icon_type", "value" => array('icon'))), array('type' => 'colorpicker', 'heading' => esc_html__('Custom Icon Color', 'js_composer'), 'param_name' => 'custom_color', 'description' => esc_html__('Select custom icon color.', 'js_composer'), 'dependency' => array('element' => 'color', 'value' => 'custom'), 'group' => esc_html__('Icon', 'cruxstore')), array('type' => 'dropdown', 'heading' => esc_html__('Size', 'js_composer'), 'param_name' => 'size', 'value' => array_merge(getVcShared('sizes'), array('Extra Large' => 'xl')), 'std' => 'md', 'description' => esc_html__('Icon size.', 'js_composer'), 'group' => esc_html__('Icon', 'cruxstore')), array('type' => 'css_editor', 'heading' => esc_html__('CSS box', 'js_composer'), 'param_name' => 'css', 'group' => esc_html__('Design Options', 'js_composer')))));
예제 #16
0
        $text = '';
        $left_text = '';
        $left_right = '';
        foreach ($values as $key => $data) {
            $new_line = $data;
            $new_line['left'] = isset($data['left']) ? $data['left'] : 0;
            $new_line['top'] = isset($data['top']) ? $data['top'] : 0;
            $new_line['label'] = isset($data['label']) ? $data['label'] : '';
            $new_line['color'] = isset($data['color']) ? $data['color'] : 'default';
            $new_line['color'] = isset($data['color']) ? $data['color'] : 'default';
            $new_line['content'] = isset($data['content']) ? $data['content'] : '';
            $active = $key == 0 ? ' active' : '';
            $text .= sprintf('<div class="image-tooltip-item %s" style="top: %s; left: %s;"><div class="image-tooltip-content" data-count="%s" title="%s"></div></div>', 'tooltip-' . $new_line['color'] . $active, $new_line['top'] . '%', $new_line['left'] . '%', $key, $new_line['label']);
            $tooltip = sprintf('<div class="image-tooltip-element %s" data-count="%s"><h4>%s</h4><div>%s</div></div>', $active, $key, $new_line['label'], $data['content']);
            if ($new_line['align'] == 'right') {
                $left_right .= $tooltip;
            } else {
                $left_text .= $tooltip;
            }
        }
        $output = sprintf('<div class="row"><div class="image-tooltip-left col-md-4">%s</div><div class="image-tooltip-center col-md-4">%s %s</div><div class="image-tooltip-right col-md-4">%s</div></div>', $left_text, '<div class="image-tooltip-image">' . $img['thumbnail'] . '</div>', '<div class="image-tooltip-text">' . $text . '</div>', $left_right);
        $elementClass = preg_replace(array('/\\s+/', '/^\\s|\\s$/'), array(' ', ''), implode(' ', $elementClass));
        if ($animation_delay) {
            $animation_delay = sprintf(' data-wow-delay="%sms"', $animation_delay);
        }
        return '<div class="' . esc_attr($elementClass) . '"' . $animation_delay . '>' . $output . '</div>';
    }
}
// Add your Visual Composer logic here
vc_map(array("name" => esc_html__("KT: Image with Tooltip", 'cruxstore'), "base" => "image_tooltip", "category" => esc_html__('by Kite-Themes', 'cruxstore'), "params" => array(array('type' => 'attach_image', 'heading' => esc_html__('Image', 'cruxstore'), 'param_name' => 'image', 'description' => esc_html__('Select image from media library.', 'js_composer')), array('type' => 'textfield', 'heading' => esc_html__('Image size', 'js_composer'), 'param_name' => 'img_size', 'value' => 'thumbnail', 'description' => esc_html__('Enter image size (Example: "thumbnail", "medium", "large", "full" or other sizes defined by theme). Alternatively enter size in pixels (Example: 200x100 (Width x Height)).', 'js_composer')), array('type' => 'param_group', 'heading' => __('Values', 'js_composer'), 'param_name' => 'values', 'description' => __('Enter values for tooltip - Position, title and color.', 'js_composer'), 'value' => urlencode(json_encode(array(array('label' => __('Tooltip content', 'js_composer'), 'top' => '10', 'left' => '10')))), 'params' => array(array('type' => 'textfield', 'heading' => __('Label', 'js_composer'), 'param_name' => 'label', 'description' => __('Enter text used as title of tooltip.', 'js_composer'), 'admin_label' => true), array('type' => 'cruxstore_number', "suffix" => esc_html__("Percent", 'cruxstore'), 'heading' => __('Position top', 'js_composer'), 'param_name' => 'top', 'description' => __('Enter top position of tooltip.', 'js_composer'), 'admin_label' => true), array('type' => 'cruxstore_number', "suffix" => esc_html__("Percent", 'cruxstore'), 'heading' => __('Position left', 'js_composer'), 'param_name' => 'left', 'description' => __('Enter left position of tooltip.', 'js_composer'), 'admin_label' => true), array('type' => 'textarea', 'holder' => 'div', 'heading' => esc_html__('Enter text used as content of tooltip.', 'js_composer'), 'param_name' => 'content'), array('type' => 'dropdown', 'heading' => __('Color', 'js_composer'), 'param_name' => 'color', 'value' => array(__('Default', 'js_composer') => '') + getVcShared('colors-dashed'), 'description' => __('Select single tooltip background color.', 'js_composer'), 'admin_label' => true, 'param_holder_class' => 'vc_colored-dropdown'), array('type' => 'dropdown', 'heading' => __('Align', 'js_composer'), 'param_name' => 'align', 'value' => array(__('Left', 'js_composer') => 'left', __('Right', 'js_composer') => 'right'), 'description' => __('Select align for item.', 'js_composer'), 'admin_label' => true))), array("type" => "cruxstore_preview", "heading" => esc_html__("Preview tooltip", "cruxstore"), "param_name" => "preview_tooltip", "description" => esc_html__("Please update it after you upload image and values.", "cruxstore")), cruxstore_map_add_css_animation(), cruxstore_map_add_css_animation_delay(), array("type" => "textfield", "heading" => esc_html__("Extra class name", "js_composer"), "param_name" => "el_class", "description" => esc_html__("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' => 'css_editor', 'heading' => esc_html__('CSS box', 'js_composer'), 'param_name' => 'css', 'group' => esc_html__('Design Options', 'js_composer')))));
예제 #17
0
<?php

return array('name' => __('Line Chart', 'js_composer'), 'base' => 'vc_line_chart', 'class' => '', 'icon' => 'icon-wpb-vc-line-chart', 'category' => __('Content', 'js_composer'), 'description' => __('Line and Bar charts', 'js_composer'), 'params' => array(array('type' => 'textfield', 'heading' => __('Widget title', 'js_composer'), 'param_name' => 'title', 'description' => __('Enter text used as widget title (Note: located above content element).', 'js_composer'), 'admin_label' => true), array('type' => 'dropdown', 'heading' => __('Design', 'js_composer'), 'param_name' => 'type', 'value' => array(__('Line', 'js_composer') => 'line', __('Bar', 'js_composer') => 'bar'), 'std' => 'bar', 'description' => __('Select type of chart.', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Style', 'js_composer'), 'description' => __('Select chart color style.', 'js_composer'), 'param_name' => 'style', 'value' => array(__('Flat', 'js_composer') => 'flat', __('Modern', 'js_composer') => 'modern', __('Custom', 'js_composer') => 'custom'), 'dependency' => array('callback' => 'vcChartCustomColorDependency')), array('type' => 'checkbox', 'heading' => __('Show legend?', 'js_composer'), 'param_name' => 'legend', 'description' => __('If checked, chart will have legend.', 'js_composer'), 'value' => array(__('Yes', 'js_composer') => 'yes'), 'std' => 'yes'), array('type' => 'checkbox', 'heading' => __('Show hover values?', 'js_composer'), 'param_name' => 'tooltips', 'description' => __('If checked, chart will show values on hover.', 'js_composer'), 'value' => array(__('Yes', 'js_composer') => 'yes'), 'std' => 'yes'), array('type' => 'textfield', 'heading' => __('X-axis values', 'js_composer'), 'param_name' => 'x_values', 'description' => __('Enter values for axis (Note: separate values with ";").', 'js_composer'), 'value' => 'JAN; FEB; MAR; APR; MAY; JUN; JUL; AUG'), array('type' => 'param_group', 'heading' => __('Values', 'js_composer'), 'param_name' => 'values', 'value' => urlencode(json_encode(array(array('title' => __('One', 'js_composer'), 'y_values' => '10; 15; 20; 25; 27; 25; 23; 25', 'color' => 'blue'), array('title' => __('Two', 'js_composer'), 'y_values' => '25; 18; 16; 17; 20; 25; 30; 35', 'color' => 'pink')))), 'params' => array(array('type' => 'textfield', 'heading' => __('Title', 'js_composer'), 'param_name' => 'title', 'description' => __('Enter title for chart dataset.', 'js_composer'), 'admin_label' => true), array('type' => 'textfield', 'heading' => __('Y-axis values', 'js_composer'), 'param_name' => 'y_values', 'description' => __('Enter values for axis (Note: separate values with ";").', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Color', 'js_composer'), 'param_name' => 'color', 'value' => getVcShared('colors-dashed'), 'description' => __('Select chart color.', 'js_composer'), 'param_holder_class' => 'vc_colored-dropdown'), array('type' => 'colorpicker', 'heading' => __('Custom color', 'js_composer'), 'param_name' => 'custom_color', 'description' => __('Select custom chart color.', 'js_composer'))), 'callbacks' => array('after_add' => 'vcChartParamAfterAddCallback')), array('type' => 'dropdown', 'heading' => __('Animation', 'js_composer'), 'description' => __('Select animation style.', 'js_composer'), 'param_name' => 'animation', 'value' => getVcShared('animation styles'), 'std' => 'easeinOutCubic'), array('type' => 'textfield', 'heading' => __('Extra class name', 'js_composer'), 'param_name' => 'el_class', 'description' => __('Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer')), array('type' => 'css_editor', 'heading' => __('CSS box', 'js_composer'), 'param_name' => 'css', 'group' => __('Design Options', 'js_composer'))));
예제 #18
0
 public function update_elements()
 {
     /* Remove VC Elements 
        ---------------------------------------------------------- */
     vc_remove_element('vc_button');
     vc_remove_element('vc_button2');
     vc_remove_element('vc_carousel');
     vc_remove_element('vc_posts_grid');
     vc_remove_element('vc_posts_slider');
     vc_remove_element('vc_pie');
     vc_remove_element('vc_gmaps');
     // remove unused elements
     vc_remove_element('vc_cta');
     vc_remove_element('vc_icon');
     vc_remove_element('vc_basic_grid');
     vc_remove_element('vc_media_grid');
     vc_remove_element('vc_masonry_grid');
     vc_remove_element('vc_masonry_media_grid');
     /*
     vc_map_update( 'vc_tta_tabs', array('deprecated' => '4.6') );
     vc_map_update( 'vc_tta_tour', array('deprecated' => '4.6') );
     vc_map_update( 'vc_tta_accordion', array('deprecated' => '4.6') );
     vc_map_update( 'vc_tta_section', array('deprecated' => '4.6') );
     */
     vc_remove_element('vc_tta_tabs');
     vc_remove_element('vc_tta_tour');
     vc_remove_element('vc_tta_accordion');
     vc_remove_element('vc_tta_section');
     /* Update VC Elements 
        /* Row
        ---------------------------------------------------------- */
     vc_map(array('name' => __('Row', 'Vela'), 'base' => 'vc_row', 'is_container' => true, 'icon' => 'icon-wpb-row', 'show_settings_on_create' => false, 'category' => __('Content', 'Vela'), 'description' => __('Place content elements inside the row', 'Vela'), 'params' => array(array('type' => 'dropdown', 'class' => '', 'heading' => __('Content Width', 'Vela'), 'param_name' => 'full_width', 'value' => array('Default' => '', 'Full Width' => 'true'), 'std' => '', 'description' => __('Select Full Width to stretch content to full the browser width.', 'Vela')), array('type' => 'dropdown', 'class' => '', 'heading' => __('Content Height', 'Vela'), 'param_name' => 'full_screen', 'value' => array('Default' => '', 'Full Screen' => 'true'), 'std' => '', 'description' => __('Select Full Screen to create a Full screen section (Full Height).', 'Vela')), array('type' => 'dropdown', 'class' => '', 'heading' => __('Text Color', 'Vela'), 'param_name' => 'alt_color', 'value' => array('Dark' => '', 'Light' => 'true'), 'description' => __('Select dark or light text color.', 'Vela')), array('type' => 'dropdown', 'class' => '', 'heading' => __('Background Color', 'Vela'), 'param_name' => 'alt_bg_color', 'value' => array('Light' => '', 'Dark' => 'true'), 'std' => '', 'description' => __('Select dark or light background color.', 'Vela')), array('type' => 'dropdown', 'class' => '', 'heading' => __('Background Parallax', 'Vela'), 'param_name' => 'parallax', 'value' => array('None' => '', 'Parallax' => 'true'), 'std' => '', 'description' => __('Select parallax to enable parallax background scrolling.', 'Vela')), array('type' => 'dropdown', 'class' => '', 'heading' => __('Background Overlay', 'Vela'), 'param_name' => 'background_overlay', 'value' => array('None' => '', 'Color Overlay' => 'color', 'Pattern Overlay' => 'pattern'), 'description' => __('Apply an overlay to the background.', 'Vela')), array('type' => 'colorpicker', 'heading' => __('Overlay Color', 'Vela'), 'param_name' => 'overlay_color', 'description' => __('Select background color overlay.', 'Vela'), 'dependency' => array('element' => 'background_overlay', 'not_empty' => true)), array('type' => 'dropdown', 'class' => '', 'heading' => __('Content Mask', 'Vela'), 'param_name' => 'mask', 'value' => array('None' => '', 'Top' => 'top', 'Bottom' => 'bottom'), 'description' => __('Select content mask position.', 'Vela')), array('type' => 'colorpicker', 'heading' => __('Mask Color', 'Vela'), 'param_name' => 'mask_color', 'description' => __('Select content mask color.', 'Vela'), 'dependency' => array('element' => 'mask', 'not_empty' => true)), array('type' => 'dropdown', 'class' => '', 'heading' => __('Mask Style', 'Vela'), 'param_name' => 'mask_style', 'value' => array('0/100' => '0', '10/90' => '10', '20/80' => '20', '30/70' => '30', '40/60' => '40', '50/50' => '50', '60/40' => '60', '70/30' => '70', '80/20' => '80', '90/10' => '90', '100/0' => '100'), 'description' => __('Select content mask style.', 'Vela'), 'dependency' => array('element' => 'mask', 'not_empty' => true), 'std' => '50'), array('type' => 'dropdown', 'class' => '', 'heading' => __('Content Vertical Alignment', 'Vela'), 'param_name' => 'vertical_align', 'value' => array('Top' => '', 'Middle' => 'middle', 'Bottom' => 'bottom'), 'description' => __('Select content vertical alignment.', 'Vela')), array('type' => 'dropdown', 'class' => '', 'heading' => __('Padding Size', 'Vela'), 'param_name' => 'padding_size', 'value' => array('Default' => '', 'No Padding' => 'no-padding', 'Small' => 's-padding', 'Medium' => 'm-padding', 'Large' => 'l-padding', 'Extra Large' => 'xl-padding'), 'description' => __('Select padding size.', 'Vela')), array('type' => 'textfield', 'heading' => __('Row ID', 'flora'), 'param_name' => 'el_id', 'description' => sprintf(__('Enter row ID (Note: make sure it is unique and valid according to <a href="%s" target="_blank">W3C specification</a>).', 'flora'), 'http://www.w3schools.com/tags/att_global_id.asp')), array('type' => 'textfield', 'class' => '', 'heading' => __('Extra CSS Class', 'Vela'), 'param_name' => 'el_class', 'value' => '', 'description' => __('If you wish to style particular content element differently, then use this field to add a class name.', 'Vela')), array('type' => 'css_editor', 'heading' => __('Css', 'Vela'), 'param_name' => 'css', 'group' => __('Design options', 'Vela'))), 'js_view' => 'VcRowView'));
     /* Row Inner
        ---------------------------------------------------------- */
     vc_map(array('name' => __('Row', 'Vela'), 'base' => 'vc_row_inner', 'content_element' => false, 'is_container' => true, 'icon' => 'icon-wpb-row', 'weight' => 1000, 'show_settings_on_create' => false, 'description' => __('Place content elements inside the row', 'Vela'), 'params' => array(array('type' => 'dropdown', 'class' => '', 'heading' => __('Text Color', 'Vela'), 'param_name' => 'alt_color', 'value' => array('Dark' => '', 'Light' => 'true'), 'description' => __('Select dark or light text color.', 'Vela')), array('type' => 'dropdown', 'class' => '', 'heading' => __('Background Color', 'Vela'), 'param_name' => 'alt_bg_color', 'value' => array('Light' => '', 'Dark' => 'true'), 'std' => '', 'description' => __('Select dark or light background color.', 'Vela')), array('type' => 'dropdown', 'class' => '', 'heading' => __('Background Overlay', 'Vela'), 'param_name' => 'background_overlay', 'value' => array('None' => '', 'Color Overlay' => 'color', 'Pattern Overlay' => 'pattern'), 'description' => __('Apply an overlay to the background.', 'Vela')), array('type' => 'colorpicker', 'heading' => __('Overlay Color', 'Vela'), 'param_name' => 'overlay_color', 'description' => __('Select background color overlay.', 'Vela'), 'dependency' => array('element' => 'background_overlay', 'not_empty' => true)), array('type' => 'dropdown', 'class' => '', 'heading' => __('Content Mask', 'Vela'), 'param_name' => 'mask', 'value' => array('None' => '', 'Top' => 'top', 'Bottom' => 'bottom'), 'description' => __('Select content mask position.', 'Vela')), array('type' => 'colorpicker', 'heading' => __('Mask Color', 'Vela'), 'param_name' => 'mask_color', 'description' => __('Select content mask color.', 'Vela'), 'dependency' => array('element' => 'mask', 'not_empty' => true)), array('type' => 'dropdown', 'class' => '', 'heading' => __('Mask Style', 'Vela'), 'param_name' => 'mask_style', 'value' => array('0/100' => '0', '10/90' => '10', '20/80' => '20', '30/70' => '30', '40/60' => '40', '50/50' => '50', '60/40' => '60', '70/30' => '70', '80/20' => '80', '90/10' => '90', '100/0' => '100'), 'description' => __('Select content mask style.', 'Vela'), 'dependency' => array('element' => 'mask', 'not_empty' => true), 'std' => '50'), array('type' => 'dropdown', 'class' => '', 'heading' => __('Content Vertical Alignment', 'Vela'), 'param_name' => 'vertical_align', 'value' => array('Top' => '', 'Middle' => 'middle', 'Bottom' => 'bottom'), 'description' => __('Select content vertical alignment.', 'Vela')), array('type' => 'dropdown', 'class' => '', 'heading' => __('Padding Size', 'Vela'), 'param_name' => 'padding_size', 'value' => array('Default' => '', 'No Padding' => 'no-padding', 'Small' => 's-padding', 'Medium' => 'm-padding', 'Large' => 'l-padding', 'Extra Large' => 'xl-padding'), 'description' => __('Select padding size.', 'Vela')), array('type' => 'textfield', 'class' => '', 'heading' => __('Extra CSS Class', 'Vela'), 'param_name' => 'el_class', 'value' => '', 'description' => __('If you wish to style particular content element differently, then use this field to add a class name.', 'Vela')), array('type' => 'css_editor', 'heading' => __('Css', 'Vela'), 'param_name' => 'css', 'group' => __('Design options', 'Vela'))), 'js_view' => 'VcRowView'));
     global $vc_column_width_list;
     /* Column
        ---------------------------------------------------------- */
     vc_map(array('name' => __('Column', 'Vela'), 'base' => 'vc_column', 'is_container' => true, 'content_element' => false, 'params' => array(array('type' => 'dropdown', 'class' => '', 'heading' => __('Text Color', 'Vela'), 'param_name' => 'alt_color', 'value' => array('Dark' => '', 'Light' => 'true'), 'description' => __('Select dark or light text color.', 'Vela')), array('type' => 'dropdown', 'class' => '', 'heading' => __('Background Color', 'Vela'), 'param_name' => 'alt_bg_color', 'value' => array('Light' => '', 'Dark' => 'true'), 'std' => '', 'description' => __('Select dark or light background color.', 'Vela')), array('type' => 'dropdown', 'class' => '', 'heading' => __('Text Alignment', 'Vela'), 'param_name' => 'text_align', 'value' => array('Left' => '', 'Center' => 'center', 'Right' => 'right'), 'description' => __('Select text alignment.', 'Vela')), array('type' => 'dropdown', 'class' => '', 'heading' => __('Padding Size', 'Vela'), 'param_name' => 'padding_size', 'value' => array('Default' => '', 'No Padding' => 'no-padding', 'Small' => 's-padding', 'Medium' => 'm-padding', 'Large' => 'l-padding', 'Extra Large' => 'xl-padding'), 'description' => __('Select padding size.', 'Vela')), array('type' => 'textfield', 'class' => '', 'heading' => __('Extra CSS Class', 'Vela'), 'param_name' => 'el_class', 'value' => '', 'description' => __('If you wish to style particular content element differently, then use this field to add a class name.', 'Vela')), array('type' => 'dropdown', 'heading' => __('Width', 'Vela'), 'param_name' => 'width', 'value' => $vc_column_width_list, 'group' => __('Responsive Options', 'Vela'), 'description' => __('Select column width.', 'Vela'), 'std' => '1/1'), array('type' => 'column_offset', 'heading' => __('Responsiveness', 'Vela'), 'param_name' => 'offset', 'group' => __('Responsive Options', 'Vela'), 'description' => __('Adjust column for different screen sizes. Control width, offset and visibility settings.', 'Vela')), array('type' => 'css_editor', 'heading' => __('Css', 'Vela'), 'param_name' => 'css', 'group' => __('Design options', 'Vela'))), "js_view" => 'VcColumnView'));
     /* Column Inner
        ---------------------------------------------------------- */
     vc_map(array("name" => __("Column", "Vela"), "base" => "vc_column_inner", "class" => "", "icon" => "", "wrapper_class" => "", "controls" => "full", "allowed_container_element" => false, "content_element" => false, "is_container" => true, "params" => array(array('type' => 'dropdown', 'class' => '', 'heading' => __('Text Color', 'Vela'), 'param_name' => 'alt_color', 'value' => array('Dark' => '', 'Light' => 'true'), 'description' => __('Select dark or light text color.', 'Vela')), array('type' => 'dropdown', 'class' => '', 'heading' => __('Background Color', 'Vela'), 'param_name' => 'alt_bg_color', 'value' => array('Light' => '', 'Dark' => 'true'), 'std' => '', 'description' => __('Select dark or light background color.', 'Vela')), array('type' => 'dropdown', 'class' => '', 'heading' => __('Text Alignment', 'Vela'), 'param_name' => 'text_align', 'value' => array('Left' => '', 'Center' => 'center', 'Right' => 'right'), 'description' => __('Select text alignment.', 'Vela')), array('type' => 'dropdown', 'class' => '', 'heading' => __('Padding Size', 'Vela'), 'param_name' => 'padding_size', 'value' => array('Default' => '', 'No Padding' => 'no-padding', 'Small' => 's-padding', 'Medium' => 'm-padding', 'Large' => 'l-padding', 'Extra Large' => 'xl-padding'), 'description' => __('Select padding size.', 'Vela')), array('type' => 'textfield', 'class' => '', 'heading' => __('Extra CSS Class', 'Vela'), 'param_name' => 'el_class', 'value' => '', 'description' => __('If you wish to style particular content element differently, then use this field to add a class name.', 'Vela')), array('type' => 'dropdown', 'heading' => __('Width', 'Vela'), 'param_name' => 'width', 'value' => $vc_column_width_list, 'group' => __('Responsive Options', 'Vela'), 'description' => __('Select column width.', 'Vela'), 'std' => '1/1'), array('type' => 'column_offset', 'heading' => __('Responsiveness', 'Vela'), 'param_name' => 'offset', 'group' => __('Responsive Options', 'Vela'), 'description' => __('Adjust column for different screen sizes. Control width, offset and visibility settings.', 'Vela')), array('type' => 'css_editor', 'heading' => __('Css', 'Vela'), 'param_name' => 'css', 'group' => __('Design options', 'Vela'))), "js_view" => 'VcColumnView'));
     /* Text Block
        ---------------------------------------------------------- */
     vc_map(array('name' => __('Text Block', 'Vela'), 'base' => 'vc_column_text', 'icon' => 'icon-wpb-layer-shape-text', 'wrapper_class' => 'clearfix', 'category' => __('Content', 'Vela'), 'description' => __('A block of text with WYSIWYG editor', 'Vela'), 'params' => array(array('type' => 'textarea_html', 'holder' => 'div', 'heading' => __('Text', 'Vela'), 'param_name' => 'content', 'value' => __('<p>I am text block. Click edit button to change this text. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.</p>', 'Vela')), array('type' => 'wyde_animation', 'class' => '', 'heading' => __('Animation', 'Vela'), 'param_name' => 'animation', 'description' => __('Select a CSS3 Animation that applies to this element.', 'Vela')), array('type' => 'textfield', 'class' => '', 'heading' => __('Animation Delay', 'Vela'), 'param_name' => 'animation_delay', 'value' => '', 'description' => __('Defines when the animation will start (in seconds). Example: 0.5, 1, 2, ...', 'Vela'), 'dependency' => array('element' => 'animation', 'not_empty' => true)), array('type' => 'textfield', 'class' => '', 'heading' => __('Extra CSS Class', 'Vela'), 'param_name' => 'el_class', 'value' => '', 'description' => __('If you wish to style particular content element differently, then use this field to add a class name.', 'Vela')), array('type' => 'css_editor', 'heading' => __('CSS box', 'Vela'), 'param_name' => 'css', 'group' => __('Design Options', 'Vela')))));
     /* Message box
        ---------------------------------------------------------- */
     vc_remove_param('vc_message', 'css_animation');
     vc_remove_param('vc_message', 'el_class');
     vc_add_param('vc_message', array('type' => 'wyde_animation', 'class' => '', 'heading' => __('Animation', 'Vela'), 'param_name' => 'animation', 'description' => __('Select a CSS3 Animation that applies to this element.', 'Vela')));
     vc_add_param('vc_message', array('type' => 'textfield', 'class' => '', 'heading' => __('Animation Delay', 'Vela'), 'param_name' => 'animation_delay', 'value' => '', 'description' => __('Defines when the animation will start (in seconds). Example: 0.5, 1, 2, ...', 'Vela'), 'dependency' => array('element' => 'animation', 'not_empty' => true)));
     vc_add_param('vc_message', array('type' => 'textfield', 'class' => '', 'heading' => __('Extra CSS Class', 'Vela'), 'param_name' => 'el_class', 'value' => '', 'description' => __('If you wish to style particular content element differently, then use this field to add a class name.', 'Vela')));
     /* Accordion block
        ---------------------------------------------------------- */
     vc_map(array('name' => __('Accordion', 'js_composer'), 'base' => 'vc_accordion', 'show_settings_on_create' => false, 'is_container' => true, 'icon' => 'icon-wpb-ui-accordion', 'category' => __('Content', 'js_composer'), 'description' => __('Collapsible content panels', 'js_composer'), 'params' => array(array('type' => 'textfield', 'heading' => __('Widget title', 'js_composer'), 'param_name' => 'title', 'description' => __('Enter text used as widget title (Note: located above content element).', 'js_composer')), array('type' => 'textfield', 'heading' => __('Active section', 'js_composer'), 'param_name' => 'active_tab', 'value' => 1, 'description' => __('Enter section number to be active on load or enter "false" to collapse all sections.', 'js_composer')), array('type' => 'checkbox', 'heading' => __('Allow collapse all sections?', 'js_composer'), 'param_name' => 'collapsible', 'description' => __('If checked, it is allowed to collapse all sections.', 'js_composer'), 'value' => array(__('Yes', 'js_composer') => 'yes')), array('type' => 'checkbox', 'heading' => __('Disable keyboard interactions?', 'js_composer'), 'param_name' => 'disable_keyboard', 'description' => __('If checked, disables keyboard arrow interactions (Keys: Left, Up, Right, Down, Space).', 'js_composer'), 'value' => array(__('Yes', 'js_composer') => 'yes')), array('type' => 'textfield', 'heading' => __('Extra class name', 'js_composer'), 'param_name' => 'el_class', 'description' => __('Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer'))), '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' => '
         [vc_accordion_tab title="' . __('Section 1', 'js_composer') . '"][/vc_accordion_tab]
         [vc_accordion_tab title="' . __('Section 2', 'js_composer') . '"][/vc_accordion_tab]
         ', 'js_view' => 'VcAccordionView'));
     /* Accordion Section
        ---------------------------------------------------------- */
     vc_map(array('name' => __('Section', 'Vela'), 'base' => 'vc_accordion_tab', 'allowed_container_element' => 'vc_row', 'is_container' => true, 'content_element' => false, 'params' => array(array('type' => 'textfield', 'heading' => __('Title', 'Vela'), 'param_name' => 'title', 'description' => __('Enter accordion section title.', 'Vela')), array('type' => 'dropdown', 'heading' => __('Icon Set', 'Vela'), 'value' => array('Font Awesome' => '', 'Open Iconic' => 'openiconic', 'Typicons' => 'typicons', 'Entypo' => 'entypo', 'Linecons' => 'linecons'), 'admin_label' => true, 'param_name' => 'icon_set', 'description' => __('Select an icon set.', 'Vela')), array('type' => 'iconpicker', 'heading' => __('Icon', 'Vela'), 'param_name' => 'icon', 'value' => '', 'settings' => array('emptyIcon' => true, 'iconsPerPage' => 4000), 'description' => __('Select an icon.', 'Vela'), 'dependency' => array('element' => 'icon_set', 'is_empty' => true)), array('type' => 'iconpicker', 'heading' => __('Icon', 'Vela'), 'param_name' => 'icon_openiconic', 'value' => '', 'settings' => array('emptyIcon' => true, 'type' => 'openiconic', 'iconsPerPage' => 4000), 'description' => __('Select an icon.', 'Vela'), 'dependency' => array('element' => 'icon_set', 'value' => 'openiconic')), array('type' => 'iconpicker', 'heading' => __('Icon', 'Vela'), 'param_name' => 'icon_typicons', 'value' => '', 'settings' => array('emptyIcon' => true, 'type' => 'typicons', 'iconsPerPage' => 4000), 'description' => __('Select an icon.', 'Vela'), 'dependency' => array('element' => 'icon_set', 'value' => 'typicons')), array('type' => 'iconpicker', 'heading' => __('Icon', 'Vela'), 'param_name' => 'icon_entypo', 'value' => '', 'settings' => array('emptyIcon' => true, 'type' => 'entypo', 'iconsPerPage' => 4000), 'description' => __('Select an icon.', 'Vela'), 'dependency' => array('element' => 'icon_set', 'value' => 'entypo')), array('type' => 'iconpicker', 'heading' => __('Icon', 'Vela'), 'param_name' => 'icon_linecons', 'value' => '', 'settings' => array('emptyIcon' => true, 'type' => 'linecons', 'iconsPerPage' => 4000), 'description' => __('Select an icon.', 'Vela'), 'dependency' => array('element' => 'icon_set', 'value' => 'linecons')), array('type' => 'el_id', 'heading' => __('Section ID', 'Vela'), 'param_name' => 'el_id', 'description' => sprintf(__('Enter optionally section ID. Make sure it is unique, and it is valid as w3c specification: %s (Must not have spaces)', 'Vela'), '<a target="_blank" href="http://www.w3schools.com/tags/att_global_id.asp">' . __('link', 'Vela') . '</a>')), array('type' => 'textfield', 'class' => '', 'heading' => __('Extra CSS Class', 'Vela'), 'param_name' => 'el_class', 'value' => '', 'description' => __('If you wish to style particular content element differently, then use this field to add a class name.', 'Vela'))), 'js_view' => 'VcAccordionTabView'));
     /* Call to Action
        ---------------------------------------------------------- */
     vc_map(array('name' => __('Call to Action', 'js_composer'), 'base' => 'vc_cta_button', 'icon' => 'icon-wpb-call-to-action', 'category' => __('Content', 'js_composer'), 'description' => __('Catch visitors attention with CTA block', 'js_composer'), 'params' => array(array('type' => 'textarea', 'admin_label' => true, 'heading' => __('Text', 'js_composer'), 'param_name' => 'call_text', 'value' => __('Click edit button to change this text.', 'js_composer'), 'description' => __('Enter text content.', 'js_composer')), array('type' => 'textfield', 'heading' => __('Text on the button', 'js_composer'), 'param_name' => 'title', 'value' => __('Text on the button', 'js_composer'), 'description' => __('Enter text on the button.', 'js_composer')), array('type' => 'href', 'heading' => __('URL (Link)', 'js_composer'), 'param_name' => 'href', 'description' => __('Enter button link.', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Target', 'js_composer'), 'param_name' => 'target', 'value' => array(__('Same window', 'js_composer') => '_self', __('New window', 'js_composer') => '_blank'), 'dependency' => array('element' => 'href', 'not_empty' => true, 'callback' => 'vc_cta_button_param_target_callback')), array('type' => 'dropdown', 'heading' => __('Button position', 'js_composer'), 'param_name' => 'position', 'value' => array(__('Right', 'js_composer') => 'cta_align_right', __('Left', 'js_composer') => 'cta_align_left', __('Bottom', 'js_composer') => 'cta_align_bottom'), 'description' => __('Select button alignment.', 'js_composer')), array('type' => 'colorpicker', 'heading' => __('Background Color', 'Vela'), 'param_name' => 'color', 'description' => __('Select button background color. If empty "Theme Color Scheme" will be used.', 'Vela')), array('type' => 'wyde_animation', 'class' => '', 'heading' => __('Animation', 'Vela'), 'param_name' => 'animation', 'description' => __('Select a CSS3 Animation that applies to this element.', 'Vela')), array('type' => 'textfield', 'class' => '', 'heading' => __('Animation Delay', 'Vela'), 'param_name' => 'animation_delay', 'value' => '', 'description' => __('Defines when the animation will start (in seconds). Example: 0.5, 1, 2, ...', 'Vela'), 'dependency' => array('element' => 'animation', 'not_empty' => true)), array('type' => 'textfield', 'class' => '', 'heading' => __('Extra CSS Class', 'Vela'), 'param_name' => 'el_class', 'value' => '', 'description' => __('If you wish to style particular content element differently, then use this field to add a class name.', 'Vela'))), 'js_view' => 'VcCallToActionView'));
     /* Call to Action 2
        ---------------------------------------------------------- */
     vc_map(array('name' => __('Call to Action Block', 'Vela'), 'base' => 'vc_cta_button2', 'icon' => 'icon-wpb-call-to-action', 'category' => array(__('Content', 'Vela')), 'description' => __('Catch visitors attention with call to action block', 'Vela'), 'params' => array(array('type' => 'textfield', 'heading' => __('Heading first line', 'Vela'), 'admin_label' => true, 'param_name' => 'h2', 'value' => '', 'description' => __('Text for the first heading line.', 'Vela')), array('type' => 'textfield', 'heading' => __('Heading second line', 'Vela'), 'param_name' => 'h4', 'value' => '', 'description' => __('Optional text for the second heading line.', 'Vela')), array('type' => 'dropdown', 'heading' => __('Text align', 'Vela'), 'param_name' => 'txt_align', 'value' => array('Left' => 'left', 'Right' => 'right', 'Center' => 'center', 'Justify' => 'justify'), 'description' => __('Text align in call to action block.', 'Vela')), array('type' => 'colorpicker', 'heading' => __('Custom Background Color', 'Vela'), 'param_name' => 'accent_color', 'description' => __('Select background color for your element.', 'Vela')), array('type' => 'textarea_html', 'heading' => __('Promotional text', 'Vela'), 'param_name' => 'content', 'value' => __('I am promo text. Click edit button to change this text. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.', 'Vela')), array('type' => 'vc_link', 'heading' => __('URL (Link)', 'Vela'), 'param_name' => 'link', 'description' => __('Button link.', 'Vela')), array('type' => 'textfield', 'heading' => __('Text on the button', 'Vela'), 'param_name' => 'title', 'value' => '', 'description' => __('Text on the button.', 'Vela')), array('type' => 'dropdown', 'heading' => __('Icon Set', 'Vela'), 'value' => array('Font Awesome' => '', 'Open Iconic' => 'openiconic', 'Typicons' => 'typicons', 'Entypo' => 'entypo', 'Linecons' => 'linecons'), 'admin_label' => true, 'param_name' => 'icon_set', 'description' => __('Select an icon set.', 'Vela')), array('type' => 'iconpicker', 'heading' => __('Icon', 'Vela'), 'param_name' => 'icon', 'value' => '', 'settings' => array('emptyIcon' => true, 'iconsPerPage' => 4000), 'description' => __('Select an icon.', 'Vela'), 'dependency' => array('element' => 'icon_set', 'is_empty' => true)), array('type' => 'iconpicker', 'heading' => __('Icon', 'Vela'), 'param_name' => 'icon_openiconic', 'value' => '', 'settings' => array('emptyIcon' => true, 'type' => 'openiconic', 'iconsPerPage' => 4000), 'description' => __('Select an icon.', 'Vela'), 'dependency' => array('element' => 'icon_set', 'value' => 'openiconic')), array('type' => 'iconpicker', 'heading' => __('Icon', 'Vela'), 'param_name' => 'icon_typicons', 'value' => '', 'settings' => array('emptyIcon' => true, 'type' => 'typicons', 'iconsPerPage' => 4000), 'description' => __('Select an icon.', 'Vela'), 'dependency' => array('element' => 'icon_set', 'value' => 'typicons')), array('type' => 'iconpicker', 'heading' => __('Icon', 'Vela'), 'param_name' => 'icon_entypo', 'value' => '', 'settings' => array('emptyIcon' => true, 'type' => 'entypo', 'iconsPerPage' => 4000), 'description' => __('Select an icon.', 'Vela'), 'dependency' => array('element' => 'icon_set', 'value' => 'entypo')), array('type' => 'iconpicker', 'heading' => __('Icon', 'Vela'), 'param_name' => 'icon_linecons', 'value' => '', 'settings' => array('emptyIcon' => true, 'type' => 'linecons', 'iconsPerPage' => 4000), 'description' => __('Select an icon.', 'Vela'), 'dependency' => array('element' => 'icon_set', 'value' => 'linecons')), array('type' => 'colorpicker', 'heading' => __('Button Background Color', 'Vela'), 'param_name' => 'color', 'description' => __('Select button background color. If empty "Theme Color Scheme" will be used.', 'Vela')), array('type' => 'dropdown', 'heading' => __('Button position', 'Vela'), 'param_name' => 'position', 'value' => array(__('Align right', 'Vela') => 'right', __('Align left', 'Vela') => 'left', __('Align bottom', 'Vela') => 'bottom'), 'description' => __('Select button alignment.', 'Vela')), array('type' => 'wyde_animation', 'class' => '', 'heading' => __('Animation', 'Vela'), 'param_name' => 'animation', 'description' => __('Select a CSS3 Animation that applies to this element.', 'Vela')), array('type' => 'textfield', 'class' => '', 'heading' => __('Animation Delay', 'Vela'), 'param_name' => 'animation_delay', 'value' => '', 'description' => __('Defines when the animation will start (in seconds). Example: 0.5, 1, 2, ...', 'Vela'), 'dependency' => array('element' => 'animation', 'not_empty' => true)), array('type' => 'textfield', 'class' => '', 'heading' => __('Extra CSS Class', 'Vela'), 'param_name' => 'el_class', 'value' => '', 'description' => __('If you wish to style particular content element differently, then use this field to add a class name.', 'Vela')))));
     /* Separator
        ---------------------------------------------------------- */
     vc_map(array('name' => __('Separator', 'Vela'), 'base' => 'vc_separator', 'icon' => 'icon-wpb-ui-separator', 'show_settings_on_create' => true, 'category' => __('Content', 'Vela'), 'description' => __('Horizontal separator line', 'Vela'), 'params' => array(array('type' => 'dropdown', 'heading' => __('Alignment', 'Vela'), 'param_name' => 'align', 'value' => array(__('Center', 'Vela') => 'align_center', __('Left', 'Vela') => 'align_left', __('Right', 'Vela') => "align_right"), 'description' => __('Select separator alignment.', 'Vela')), array('type' => 'dropdown', 'heading' => __('Style', 'Vela'), 'param_name' => 'style', 'value' => array('Border' => '', 'Dashed' => 'dashed', 'Dotted' => 'dotted', 'Double' => 'double', 'Wyde Theme' => 'theme'), 'description' => __('Separator Style', 'Vela')), array('type' => 'dropdown', 'heading' => __('Element width', 'Vela'), 'param_name' => 'el_width', 'value' => array('10%', '20%', '30%', '40%', '50%', '60%', '70%', '80%', '90%', '100%'), 'description' => __('Separator element width in percents.', 'Vela'), 'dependency' => array('element' => 'style', 'value' => array('', 'dashed', 'dotted', 'double'))), array('type' => 'colorpicker', 'heading' => __('Border Color', 'Vela'), 'param_name' => 'color', 'description' => __('Select border color.', 'Vela')), array('type' => 'textfield', 'class' => '', 'heading' => __('Extra CSS Class', 'Vela'), 'param_name' => 'el_class', 'value' => '', 'description' => __('If you wish to style particular content element differently, then use this field to add a class name.', 'Vela')))));
     /* Text Separator
        ---------------------------------------------------------- */
     vc_map(array('name' => __('Separator with Text', 'Vela'), 'base' => 'vc_text_separator', 'icon' => 'icon-wpb-ui-separator-label', 'category' => __('Content', 'Vela'), 'description' => __('Horizontal separator line with heading', 'Vela'), 'params' => array(array('type' => 'textfield', 'heading' => __('Title', 'Vela'), 'param_name' => 'title', 'holder' => 'div', 'value' => __('Title', 'Vela'), 'description' => __('Add text to separator.', 'Vela')), array('type' => 'dropdown', 'heading' => __('Title position', 'Vela'), 'param_name' => 'title_align', 'value' => array(__('Center', 'Vela') => 'separator_align_center', __('Left', 'Vela') => 'separator_align_left', __('Right', 'Vela') => "separator_align_right"), 'description' => __('Select title location.', 'Vela')), array('type' => 'colorpicker', 'heading' => __('Border Color', 'Vela'), 'param_name' => 'color', 'description' => __('Select border color. If empty "Theme Color Scheme" will be used.', 'Vela')), array('type' => 'dropdown', 'heading' => __('Style', 'Vela'), 'param_name' => 'style', 'value' => VcSharedLibrary::getSeparatorStyles(), 'description' => __('Separator display style.', 'Vela')), array('type' => 'dropdown', 'heading' => __('Element width', 'Vela'), 'param_name' => 'el_width', 'value' => VcSharedLibrary::getElementWidths(), 'description' => __('Separator element width in percents.', 'Vela')), array('type' => 'textfield', 'class' => '', 'heading' => __('Extra CSS Class', 'Vela'), 'param_name' => 'el_class', 'value' => '', 'description' => __('If you wish to style particular content element differently, then use this field to add a class name.', 'Vela'))), 'js_view' => 'VcTextSeparatorView'));
     /* Tabs
        ---------------------------------------------------------- */
     $tab_id_1 = '';
     // 'def' . time() . '-1-' . rand( 0, 100 );
     $tab_id_2 = '';
     // 'def' . time() . '-2-' . rand( 0, 100 );
     vc_map(array("name" => __('Tabs', 'js_composer'), 'base' => 'vc_tabs', 'show_settings_on_create' => false, 'is_container' => true, 'icon' => 'icon-wpb-ui-tab-content', 'category' => __('Content', 'js_composer'), 'description' => __('Tabbed content', 'js_composer'), 'params' => array(array('type' => 'textfield', 'heading' => __('Widget title', 'js_composer'), 'param_name' => 'title', 'description' => __('Enter text used as widget title (Note: located above content element).', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Auto rotate', 'js_composer'), 'param_name' => 'interval', 'value' => array(__('Disable', 'js_composer') => 0, 3, 5, 10, 15), 'std' => 0, 'description' => __('Auto rotate tabs each X seconds.', 'js_composer')), array('type' => 'textfield', 'heading' => __('Extra class name', 'js_composer'), 'param_name' => 'el_class', 'description' => __('Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer'))), 'custom_markup' => '
         <div class="wpb_tabs_holder wpb_holder vc_container_for_children">
         <ul class="tabs_controls">
         </ul>
         %content%
         </div>', 'default_content' => '
         [vc_tab title="' . __('Tab 1', 'js_composer') . '" tab_id="' . $tab_id_1 . '"][/vc_tab]
         [vc_tab title="' . __('Tab 2', 'js_composer') . '" tab_id="' . $tab_id_2 . '"][/vc_tab]
         ', 'js_view' => 'VcTabsView'));
     /* Tab Section
        ---------------------------------------------------------- */
     vc_map(array('name' => __('Tab', 'Vela'), 'base' => 'vc_tab', 'allowed_container_element' => 'vc_row', 'is_container' => true, 'content_element' => false, 'params' => array(array('type' => 'dropdown', 'heading' => __('Navigation', 'Vela'), 'param_name' => 'mode', 'value' => array('Text' => 'text', 'Icon' => 'icon'), 'description' => __('Select tab navigation mode.', 'Vela')), array('type' => 'textfield', 'heading' => __('Title', 'Vela'), 'param_name' => 'title', 'description' => __('Tab title.', 'Vela'), 'dependency' => array('element' => 'mode', 'value' => array('text'))), array('type' => 'dropdown', 'heading' => __('Icon Set', 'Vela'), 'value' => array('Font Awesome' => '', 'Open Iconic' => 'openiconic', 'Typicons' => 'typicons', 'Entypo' => 'entypo', 'Linecons' => 'linecons'), 'admin_label' => true, 'param_name' => 'icon_set', 'description' => __('Select an icon set.', 'Vela'), 'dependency' => array('element' => 'mode', 'value' => array('icon'))), array('type' => 'iconpicker', 'heading' => __('Icon', 'Vela'), 'param_name' => 'icon', 'value' => '', 'settings' => array('emptyIcon' => true, 'iconsPerPage' => 4000), 'description' => __('Select an icon.', 'Vela'), 'dependency' => array('element' => 'icon_set', 'is_empty' => true)), array('type' => 'iconpicker', 'heading' => __('Icon', 'Vela'), 'param_name' => 'icon_openiconic', 'value' => '', 'settings' => array('emptyIcon' => true, 'type' => 'openiconic', 'iconsPerPage' => 4000), 'description' => __('Select an icon.', 'Vela'), 'dependency' => array('element' => 'icon_set', 'value' => 'openiconic')), array('type' => 'iconpicker', 'heading' => __('Icon', 'Vela'), 'param_name' => 'icon_typicons', 'value' => '', 'settings' => array('emptyIcon' => true, 'type' => 'typicons', 'iconsPerPage' => 4000), 'description' => __('Select an icon.', 'Vela'), 'dependency' => array('element' => 'icon_set', 'value' => 'typicons')), array('type' => 'iconpicker', 'heading' => __('Icon', 'Vela'), 'param_name' => 'icon_entypo', 'value' => '', 'settings' => array('emptyIcon' => true, 'type' => 'entypo', 'iconsPerPage' => 4000), 'description' => __('Select an icon.', 'Vela'), 'dependency' => array('element' => 'icon_set', 'value' => 'entypo')), array('type' => 'iconpicker', 'heading' => __('Icon', 'Vela'), 'param_name' => 'icon_linecons', 'value' => '', 'settings' => array('emptyIcon' => true, 'type' => 'linecons', 'iconsPerPage' => 4000), 'description' => __('Select an icon.', 'Vela'), 'dependency' => array('element' => 'icon_set', 'value' => 'linecons')), array('type' => 'tab_id', 'heading' => __('Tab ID', 'Vela'), 'param_name' => "tab_id")), 'js_view' => 'WydeTabView'));
     /* Toggle (FAQ)
        ---------------------------------------------------------- */
     vc_map(array('name' => __('FAQ', 'Vela'), 'base' => 'vc_toggle', 'icon' => 'icon-wpb-toggle-small-expand', 'category' => __('Content', 'Vela'), 'description' => __('Toggle element for Q&A block', 'Vela'), 'params' => array(array('type' => 'textfield', 'holder' => 'h4', 'class' => 'toggle_title', 'heading' => __('Toggle title', 'Vela'), 'param_name' => 'title', 'value' => __('Toggle title', 'Vela'), 'description' => __('Enter title of toggle block.', 'Vela')), array('type' => 'textarea_html', 'holder' => 'div', 'class' => 'toggle_content', 'heading' => __('Toggle content', 'Vela'), 'param_name' => 'content', 'value' => __('<p>Toggle content goes here, click edit button to change this text.</p>', 'Vela'), 'description' => __('Toggle block content.', 'Vela')), array('type' => 'dropdown', 'heading' => __('Default state', 'Vela'), 'param_name' => 'open', 'value' => array(__('Closed', 'Vela') => 'false', __('Open', 'Vela') => 'true'), 'description' => __('Select "Open" if you want toggle to be open by default.', 'Vela')), array('type' => 'wyde_animation', 'class' => '', 'heading' => __('Animation', 'Vela'), 'param_name' => 'animation', 'description' => __('Select a CSS3 Animation that applies to this element.', 'Vela')), array('type' => 'textfield', 'class' => '', 'heading' => __('Animation Delay', 'Vela'), 'param_name' => 'animation_delay', 'value' => '', 'description' => __('Defines when the animation will start (in seconds). Example: 0.5, 1, 2, ...', 'Vela'), 'dependency' => array('element' => 'animation', 'not_empty' => true)), array('type' => 'textfield', 'class' => '', 'heading' => __('Extra CSS Class', 'Vela'), 'param_name' => 'el_class', 'value' => '', 'description' => __('If you wish to style particular content element differently, then use this field to add a class name.', 'Vela'))), 'js_view' => 'VcToggleView'));
     /* Tour Section
        ---------------------------------------------------------- */
     $tab_id_1 = '';
     // time() . '-1-' . rand( 0, 100 );
     $tab_id_2 = '';
     // time() . '-2-' . rand( 0, 100 );
     vc_map(array('name' => __('Tour', 'js_composer'), 'base' => 'vc_tour', 'show_settings_on_create' => false, 'is_container' => true, 'container_not_allowed' => true, 'icon' => 'icon-wpb-ui-tab-content-vertical', 'category' => __('Content', 'js_composer'), 'wrapper_class' => 'vc_clearfix', 'description' => __('Vertical tabbed content', 'js_composer'), 'params' => array(array('type' => 'dropdown', 'heading' => __('Auto rotate slides', 'js_composer'), 'param_name' => 'interval', 'value' => array(__('Disable', 'js_composer') => 0, 3, 5, 10, 15), 'std' => 0, 'description' => __('Auto rotate slides each X seconds.', 'js_composer')), array('type' => 'textfield', 'heading' => __('Extra class name', 'js_composer'), 'param_name' => 'el_class', 'description' => __('Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer'))), 'custom_markup' => '
         <div class="wpb_tabs_holder wpb_holder vc_clearfix vc_container_for_children">
         <ul class="tabs_controls">
         </ul>
         %content%
         </div>', 'default_content' => '
         [vc_tab title="' . __('Tab 1', 'js_composer') . '" tab_id="' . $tab_id_1 . '"][/vc_tab]
         [vc_tab title="' . __('Tab 2', 'js_composer') . '" tab_id="' . $tab_id_2 . '"][/vc_tab]
         ', 'js_view' => 'VcTabsView'));
     /* Single Image
        ---------------------------------------------------------- */
     /*vc_map( array(
        'name' => __( 'Single Image', 'Vela' ),
        'base' => 'vc_single_image',
        'icon' => 'icon-wpb-single-image',
        'category' => __( 'Content', 'Vela' ),
        'description' => __( 'Simple image with CSS animation', 'Vela' ),
        'params' => array(
         array(
          'type' => 'textfield',
          'heading' => __( 'Widget Title', 'Vela' ),
          'param_name' => 'title',
          'description' => __( 'Enter text which will be used as widget title. Leave blank if no title is needed.', 'Vela' )
         ),
         array(
          'type' => 'attach_image',
          'heading' => __( 'Image', 'Vela' ),
          'param_name' => 'image',
          'value' => '',
          'description' => __( 'Select image from media library.', 'Vela' )
         ),
         array(
          'type' => 'dropdown',
          'heading' => __( 'Image Size', 'Vela' ),
          'param_name' => 'img_size',
          'value' => array(
           'Thumbnail (150x150)' => 'thumbnail',
           'Medium (300x300)' => 'medium',
           'Large (640x640)'=> 'large',
                       'Full (Original)'=> 'full',
           'Blog Medium (600x340)'=> 'blog-medium',
           'Blog Large (800x450)'=> 'blog-large',
           'Blog Full (1066x600)'=> 'blog-full',
          ),
          'description' => __( 'Select image size.', 'Vela' )
         ),
         array(
          'type' => 'dropdown',
          'heading' => __( 'Image Alignment', 'Vela' ),
          'param_name' => 'alignment',
          'value' => array(
           __( 'Align Left', 'Vela' ) => '',
           __( 'Align Right', 'Vela' ) => 'right',
           __( 'Align Center', 'Vela' ) => 'center'
          ),
          'description' => __( 'Select image alignment.', 'Vela' )
         ),
         array(
          'type' => 'dropdown',
          'heading' => __( 'Image Style', 'Vela' ),
          'param_name' => 'style',
          'value' => VcSharedLibrary::getBoxStyles()
               ),
         array(
          'type' => 'colorpicker',
          'heading' => __( 'Border Color', 'Vela' ),
          'param_name' => 'border_color',
          'dependency' => array(
           'element' => 'style',
           'value' => array( 'vc_box_border', 'vc_box_border_circle', 'vc_box_outline', 'vc_box_outline_circle' )
          ),
          'description' => __( 'Select border color.', 'Vela' ),
          'param_holder_class' => 'vc_colored-dropdown'
         ),
         array(
          'type' => 'checkbox',
          'heading' => __( 'Link to large image?', 'Vela' ),
          'param_name' => 'img_link_large',
          'description' => __( 'If selected, image will be linked to the larger image.', 'Vela' ),
          'value' => array( __( 'Yes, please', 'Vela' ) => 'yes' )
         ),
         array(
          'type' => 'dropdown',
          'heading' => __( 'Link Target', 'Vela' ),
          'param_name' => 'img_link_target',
          'value' => array(
                   	__( 'Pretty Photo', 'Vela' ) => "prettyphoto",
                    __( 'Same window', 'Vela' ) => '_self',
                    __( 'New window', 'Vela' ) => "_blank",
                   ),
                   'dependency' => array(
           'element' => 'img_link_large',
           'value' => array('yes')
          )
         ),
               array(
                     'type' => 'wyde_animation',
                     'class' => '',
                     'heading' => __('Animation', 'Vela'),
                     'param_name' => 'animation',
                     'description' => __('Select a CSS3 Animation that applies to this element.', 'Vela')
               ),
               array(
                   'type' => 'textfield',
                   'class' => '',
                   'heading' => __('Animation Delay', 'Vela'),
                   'param_name' => 'animation_delay',
                   'value' => '',
                   'description' => __('Defines when the animation will start (in seconds). Example: 0.5, 1, 2, ...', 'Vela'),
                   'dependency' => array(
           'element' => 'animation',
           'not_empty' => true
          )
               ),
         array(
          'type' => 'textfield',
          'heading' => __('Extra CSS Class', 'Vela'),
          'param_name' => 'el_class',
          'description' => __('If you wish to style particular content element differently, then use this field to add a class name.', 'Vela')
         ),
         array(
          'type' => 'css_editor',
          'heading' => __( 'Css', 'Vela' ),
          'param_name' => 'css',
          'group' => __( 'Design options', 'Vela' )
               ) 
           )
        
       ) );
       */
     vc_map(array('name' => __('Single Image', 'js_composer'), 'base' => 'vc_single_image', 'icon' => 'icon-wpb-single-image', 'category' => __('Content', 'js_composer'), 'description' => __('Simple image with CSS animation', 'js_composer'), 'params' => array(array('type' => 'textfield', 'heading' => __('Widget title', 'js_composer'), 'param_name' => 'title', 'description' => __('Enter text used as widget title (Note: located above content element).', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Image source', 'js_composer'), 'param_name' => 'source', 'value' => array(__('Media library', 'js_composer') => 'media_library', __('External link', 'js_composer') => 'external_link', __('Featured Image', 'js_composer') => 'featured_image'), 'std' => 'media_library', 'description' => __('Select image source.', 'js_composer')), array('type' => 'attach_image', 'heading' => __('Image', 'js_composer'), 'param_name' => 'image', 'value' => '', 'description' => __('Select image from media library.', 'js_composer'), 'dependency' => array('element' => 'source', 'value' => 'media_library')), array('type' => 'textfield', 'heading' => __('External link', 'js_composer'), 'param_name' => 'custom_src', 'description' => __('Select external link.', 'js_composer'), 'dependency' => array('element' => 'source', 'value' => 'external_link')), array('type' => 'dropdown', 'heading' => __('Image size', 'js_composer'), 'param_name' => 'img_size', 'value' => array('Thumbnail (150x150)' => 'thumbnail', 'Medium (300x300)' => 'medium', 'Large (640x640)' => 'large', 'Full (Original)' => 'full', 'Blog Medium (600x340)' => 'blog-medium', 'Blog Large (800x450)' => 'blog-large', 'Blog Full (1066x600)' => 'blog-full'), 'description' => __('Select image size.', 'Vela'), 'dependency' => array('element' => 'source', 'value' => array('media_library', 'featured_image'))), array('type' => 'textfield', 'heading' => __('Image size', 'js_composer'), 'param_name' => 'external_img_size', 'value' => '', 'description' => __('Enter image size in pixels. Example: 200x100 (Width x Height).', 'js_composer'), 'dependency' => array('element' => 'source', 'value' => 'external_link')), array('type' => 'textfield', 'heading' => __('Caption', 'js_composer'), 'param_name' => 'caption', 'description' => __('Enter text for image caption.', 'js_composer'), 'dependency' => array('element' => 'source', 'value' => 'external_link')), array('type' => 'checkbox', 'heading' => __('Add caption?', 'js_composer'), 'param_name' => 'add_caption', 'description' => __('Add image caption.', 'js_composer'), 'value' => array(__('Yes', 'js_composer') => 'yes'), 'dependency' => array('element' => 'source', 'value' => array('media_library', 'featured_image'))), array('type' => 'dropdown', 'heading' => __('Image alignment', 'js_composer'), 'param_name' => 'alignment', 'value' => array(__('Left', 'js_composer') => 'left', __('Right', 'js_composer') => 'right', __('Center', 'js_composer') => 'center'), 'description' => __('Select image alignment.', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Image style', 'js_composer'), 'param_name' => 'style', 'value' => getVcShared('single image styles'), 'description' => __('Select image display style.', 'js_comopser'), 'dependency' => array('element' => 'source', 'value' => array('media_library', 'featured_image'))), array('type' => 'dropdown', 'heading' => __('Image style', 'js_composer'), 'param_name' => 'external_style', 'value' => getVcShared('single image external styles'), 'description' => __('Select image display style.', 'js_comopser'), 'dependency' => array('element' => 'source', 'value' => 'external_link')), array('type' => 'dropdown', 'heading' => __('Border color', 'js_composer'), 'param_name' => 'border_color', 'value' => getVcShared('colors'), 'std' => 'grey', 'dependency' => array('element' => 'style', 'value' => array('vc_box_border', 'vc_box_border_circle', 'vc_box_outline', 'vc_box_outline_circle', 'vc_box_border_circle_2', 'vc_box_outline_circle_2')), 'description' => __('Border color.', 'js_composer'), 'param_holder_class' => 'vc_colored-dropdown'), array('type' => 'dropdown', 'heading' => __('Border color', 'js_composer'), 'param_name' => 'external_border_color', 'value' => getVcShared('colors'), 'std' => 'grey', 'dependency' => array('element' => 'external_style', 'value' => array('vc_box_border', 'vc_box_border_circle', 'vc_box_outline', 'vc_box_outline_circle')), 'description' => __('Border color.', 'js_composer'), 'param_holder_class' => 'vc_colored-dropdown'), array('type' => 'dropdown', 'heading' => __('On click action', 'js_composer'), 'param_name' => 'onclick', 'value' => array(__('None', 'js_composer') => '', __('Link to large image', 'js_composer') => 'img_link_large', __('Open prettyPhoto', 'js_composer') => 'link_image', __('Open custom link', 'js_composer') => 'custom_link', __('Zoom', 'js_composer') => 'zoom'), 'description' => __('Select action for click action.', 'js_composer'), 'std' => ''), array('type' => 'href', 'heading' => __('Image link', 'js_composer'), 'param_name' => 'link', 'description' => __('Enter URL if you want this image to have a link (Note: parameters like "mailto:" are also accepted).', 'js_composer'), 'dependency' => array('element' => 'onclick', 'value' => 'custom_link')), array('type' => 'dropdown', 'heading' => __('Link Target', 'js_composer'), 'param_name' => 'img_link_target', 'value' => vc_target_param_list(), 'dependency' => array('element' => 'onclick', 'value' => array('custom_link', 'img_link_large'))), array('type' => 'wyde_animation', 'class' => '', 'heading' => __('Animation', 'Vela'), 'param_name' => 'animation', 'description' => __('Select a CSS3 Animation that applies to this element.', 'Vela')), array('type' => 'textfield', 'class' => '', 'heading' => __('Animation Delay', 'Vela'), 'param_name' => 'animation_delay', 'value' => '', 'description' => __('Defines when the animation will start (in seconds). Example: 0.5, 1, 2, ...', 'Vela'), 'dependency' => array('element' => 'animation', 'not_empty' => true)), array('type' => 'textfield', 'heading' => __('Extra CSS Class', 'Vela'), 'param_name' => 'el_class', 'description' => __('If you wish to style particular content element differently, then use this field to add a class name.', 'Vela')), array('type' => 'css_editor', 'heading' => __('Css', 'Vela'), 'param_name' => 'css', 'group' => __('Design options', 'Vela')), array('type' => 'hidden', 'param_name' => 'img_link_large'))));
     /* Progress Bar
        ---------------------------------------------------------- */
     vc_map(array('name' => __('Progress Bar', 'Vela'), 'base' => 'vc_progress_bar', 'icon' => 'icon-wpb-graph', 'category' => __('Content', 'Vela'), 'description' => __('Animated progress bar', 'Vela'), 'params' => array(array('type' => 'textfield', 'heading' => __('Title', 'Vela'), 'param_name' => 'title', 'description' => __('Enter text used as widget title (Note: located above content element).', 'Vela')), array('type' => 'exploded_textarea', 'heading' => __('Values', 'Vela'), 'param_name' => 'values', 'description' => __('Enter values for graph - value, title and color. Divide value sets with linebreak "Enter" (Example: 90|Development|#e75956).', 'Vela'), 'value' => "90|Development,80|Design,70|Marketing"), array('type' => 'textfield', 'heading' => __('Units', 'Vela'), 'param_name' => 'units', 'description' => __('Enter measurement units (Example: %, px, points, etc. Note: graph value and units will be appended to graph title).', 'Vela')), array('type' => 'colorpicker', 'heading' => __('Bar Color', 'Vela'), 'param_name' => 'color', 'description' => __('Select progress bar color. If empty "Theme Color Scheme" will be used.', 'Vela'), 'admin_label' => true), array('type' => 'checkbox', 'heading' => __('Options', 'Vela'), 'param_name' => 'options', 'value' => array(__('Add stripes', 'Vela') => 'striped', __('Add animation (Note: visible only with striped bar).', 'Vela') => 'animated')), array('type' => 'textfield', 'class' => '', 'heading' => __('Extra CSS Class', 'Vela'), 'param_name' => 'el_class', 'value' => '', 'description' => __('If you wish to style particular content element differently, then use this field to add a class name.', 'Vela')), array('type' => 'css_editor', 'heading' => __('Css', 'Vela'), 'param_name' => 'css', 'group' => __('Design options', 'Vela')))));
     /* Image Gallery
        ---------------------------------------------------------- */
     vc_map(array('name' => __('Image Gallery', 'js_composer'), 'base' => 'vc_gallery', 'icon' => 'icon-wpb-images-stack', 'category' => __('Content', 'js_composer'), 'description' => __('Responsive image gallery', 'js_composer'), 'params' => array(array('type' => 'textfield', 'heading' => __('Widget title', 'js_composer'), 'param_name' => 'title', 'description' => __('Enter text used as widget title (Note: located above content element).', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Gallery type', 'js_composer'), 'param_name' => 'type', 'value' => array(__('Flex slider fade', 'js_composer') => 'flexslider_fade', __('Flex slider slide', 'js_composer') => 'flexslider_slide', __('Nivo slider', 'js_composer') => 'nivo', __('Image grid', 'js_composer') => 'image_grid'), 'description' => __('Select gallery type.', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Auto rotate', 'js_composer'), 'param_name' => 'interval', 'value' => array(3, 5, 10, 15, __('Disable', 'js_composer') => 0), 'description' => __('Auto rotate slides each X seconds.', 'js_composer'), 'dependency' => array('element' => 'type', 'value' => array('flexslider_fade', 'flexslider_slide', 'nivo'))), array('type' => 'dropdown', 'heading' => __('Grid Columns', 'Vela'), 'param_name' => 'columns', 'value' => array(2, 3, 4), 'std' => 3, 'description' => __('Select number of grid columns.', 'Vela'), 'dependency' => array('element' => 'type', 'value' => array('image_grid'))), array('type' => 'dropdown', 'heading' => __('Image source', 'js_composer'), 'param_name' => 'source', 'value' => array(__('Media library', 'js_composer') => 'media_library', __('External links', 'js_composer') => 'external_link'), 'std' => 'media_library', 'description' => __('Select image source.', 'js_composer')), array('type' => 'attach_images', 'heading' => __('Images', 'js_composer'), 'param_name' => 'images', 'value' => '', 'description' => __('Select images from media library.', 'js_composer'), 'dependency' => array('element' => 'source', 'value' => 'media_library')), array('type' => 'exploded_textarea', 'heading' => __('External links', 'js_composer'), 'param_name' => 'custom_srcs', 'description' => __('Enter external link for each gallery image (Note: divide links with linebreaks (Enter)).', 'js_composer'), 'dependency' => array('element' => 'source', 'value' => 'external_link')), array('type' => 'dropdown', 'heading' => __('Image Size', 'Vela'), 'param_name' => 'img_size', 'value' => array('Thumbnail (150x150)' => 'thumbnail', 'Medium (300x300)' => 'medium', 'Large (640x640)' => 'large', 'Full (Original)' => 'full', 'Blog Medium (600x340)' => 'blog-medium', 'Blog Large (800x450)' => 'blog-large', 'Blog Full (1066x600)' => 'blog-full'), 'description' => __('Select image size.', 'Vela'), 'dependency' => array('element' => 'source', 'value' => 'media_library')), array('type' => 'dropdown', 'heading' => __('On click action', 'js_composer'), 'param_name' => 'onclick', 'value' => array(__('None', 'js_composer') => '', __('Link to large image', 'js_composer') => 'img_link_large', __('Open prettyPhoto', 'js_composer') => 'link_image', __('Open custom link', 'js_composer') => 'custom_link'), 'description' => __('Select action for click action.', 'js_composer'), 'std' => 'link_image'), array('type' => 'exploded_textarea', 'heading' => __('Custom links', 'js_composer'), 'param_name' => 'custom_links', 'description' => __('Enter links for each slide (Note: divide links with linebreaks (Enter)).', 'js_composer'), 'dependency' => array('element' => 'onclick', 'value' => array('custom_link'))), 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', 'img_link_large')), 'value' => array(__('Same window', 'js_composer') => '_self', __('New window', 'js_composer') => '_blank')), array('type' => 'textfield', 'class' => '', 'heading' => __('Extra CSS Class', 'Vela'), 'param_name' => 'el_class', 'value' => '', 'description' => __('If you wish to style particular content element differently, then use this field to add a class name.', 'Vela')), array('type' => 'css_editor', 'heading' => __('CSS box', 'js_composer'), 'param_name' => 'css', 'group' => __('Design Options', 'js_composer')))));
 }
예제 #19
0
if (is_array($shortcode_vc_separator) && isset($shortcode_vc_separator['base'])) {
    $list['vc_separator'] = $shortcode_vc_separator;
    $list['vc_separator']['post_type'] = Vc_Grid_Item_Editor::postType();
}
$shortcode_vc_text_separator = WPBMap::getShortCode('vc_text_separator');
if (is_array($shortcode_vc_text_separator) && isset($shortcode_vc_text_separator['base'])) {
    $list['vc_text_separator'] = $shortcode_vc_text_separator;
    $list['vc_text_separator']['post_type'] = Vc_Grid_Item_Editor::postType();
}
$shortcode_vc_icon = WPBMap::getShortCode('vc_icon');
if (is_array($shortcode_vc_icon) && isset($shortcode_vc_icon['base'])) {
    $list['vc_icon'] = $shortcode_vc_icon;
    $list['vc_icon']['post_type'] = Vc_Grid_Item_Editor::postType();
    $list['vc_icon']['params'] = vc_map_integrate_shortcode('vc_icon', '', '', array('exclude' => array('link')));
}
$list['vc_single_image'] = array('name' => __('Single Image', 'js_composer'), 'base' => 'vc_single_image', 'icon' => 'icon-wpb-single-image', 'category' => __('Content', 'js_composer'), 'description' => __('Simple image with CSS animation', 'js_composer'), 'params' => array(array('type' => 'textfield', 'heading' => __('Widget title', 'js_composer'), 'param_name' => 'title', 'description' => __('Enter text used as widget title (Note: located above content element).', 'js_composer')), array('type' => 'attach_image', 'heading' => __('Image', 'js_composer'), 'param_name' => 'image', 'value' => '', 'description' => __('Select image from media library.', 'js_composer')), $vc_add_css_animation, array('type' => 'textfield', 'heading' => __('Image size', 'js_composer'), 'param_name' => 'img_size', 'description' => __('Enter image size (Example: "thumbnail", "medium", "large", "full" or other sizes defined by theme). Alternatively enter size in pixels (Example: 200x100 (Width x Height)). Leave parameter empty to use "thumbnail" by default.', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Image alignment', 'js_composer'), 'param_name' => 'alignment', 'value' => array(__('Left', 'js_composer') => '', __('Right', 'js_composer') => 'right', __('Center', 'js_composer') => 'center'), 'description' => __('Select image alignment.', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Image style', 'js_composer'), 'param_name' => 'style', 'value' => getVcShared('single image styles'), 'description' => __('Select image display style.', 'js_comopser')), array('type' => 'dropdown', 'heading' => __('Border color', 'js_composer'), 'param_name' => 'border_color', 'value' => getVcShared('colors'), 'std' => 'grey', 'dependency' => array('element' => 'style', 'value' => array('vc_box_border', 'vc_box_border_circle', 'vc_box_outline', 'vc_box_outline_circle')), 'description' => __('Border color.', 'js_composer'), 'param_holder_class' => 'vc_colored-dropdown'), array('type' => 'textfield', 'heading' => __('Extra class name', 'js_composer'), 'param_name' => 'el_class', 'description' => __('Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer')), array('type' => 'css_editor', 'heading' => __('CSS box', 'js_composer'), 'param_name' => 'css', 'group' => __('Design Options', 'js_composer'))), 'post_type' => Vc_Grid_Item_Editor::postType());
$shortcode_vc_button2 = WPBMap::getShortCode('vc_button2');
if (is_array($shortcode_vc_button2) && isset($shortcode_vc_button2['base'])) {
    $list['vc_button2'] = $shortcode_vc_button2;
    $list['vc_button2']['post_type'] = Vc_Grid_Item_Editor::postType();
}
$shortcode_vc_btn = WPBMap::getShortCode('vc_btn');
if (is_array($shortcode_vc_btn) && isset($shortcode_vc_btn['base'])) {
    $list['vc_btn'] = $shortcode_vc_btn;
    $list['vc_btn']['post_type'] = Vc_Grid_Item_Editor::postType();
    unset($list['vc_btn']['params'][1]);
}
$shortcode_vc_custom_heading = WPBMap::getShortCode('vc_custom_heading');
if (is_array($shortcode_vc_custom_heading) && isset($shortcode_vc_custom_heading['base'])) {
    $list['vc_custom_heading'] = $shortcode_vc_custom_heading;
    $list['vc_custom_heading']['post_type'] = Vc_Grid_Item_Editor::postType();
예제 #20
0
<?php

return array('name' => __('Separator', 'js_composer'), 'base' => 'vc_separator', 'icon' => 'icon-wpb-ui-separator', 'show_settings_on_create' => true, 'category' => __('Content', 'js_composer'), 'description' => __('Horizontal separator line', 'js_composer'), 'params' => array(array('type' => 'dropdown', 'heading' => __('Color', 'js_composer'), 'param_name' => 'color', 'value' => array_merge(getVcShared('colors'), array(__('Custom color', 'js_composer') => 'custom')), 'std' => 'grey', 'description' => __('Select color of separator.', 'js_composer'), 'param_holder_class' => 'vc_colored-dropdown'), array('type' => 'dropdown', 'heading' => __('Alignment', 'js_composer'), 'param_name' => 'align', 'value' => array(__('Center', 'js_composer') => 'align_center', __('Left', 'js_composer') => 'align_left', __('Right', 'js_composer') => 'align_right'), 'description' => __('Select separator alignment.', 'js_composer')), array('type' => 'colorpicker', 'heading' => __('Custom Border Color', 'js_composer'), 'param_name' => 'accent_color', 'description' => __('Select border color for your element.', 'js_composer'), 'dependency' => array('element' => 'color', 'value' => array('custom'))), array('type' => 'dropdown', 'heading' => __('Style', 'js_composer'), 'param_name' => 'style', 'value' => getVcShared('separator styles'), 'description' => __('Separator display style.', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Border width', 'js_composer'), 'param_name' => 'border_width', 'value' => getVcShared('separator border widths'), 'description' => __('Select border width (pixels).', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Element width', 'js_composer'), 'param_name' => 'el_width', 'value' => getVcShared('separator widths'), 'description' => __('Select separator width (percentage).', 'js_composer')), array('type' => 'textfield', 'heading' => __('Extra class name', 'js_composer'), 'param_name' => 'el_class', 'description' => __('Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer')), array('type' => 'css_editor', 'heading' => __('CSS box', 'js_composer'), 'param_name' => 'css', 'group' => __('Design Options', 'js_composer'))));
예제 #21
0
                    unset($h2_custom_heading[$key]['settings']['fields']['text_align']);
                }
            }
        }
    }
}
$h4_custom_heading = vc_map_integrate_shortcode(vc_custom_heading_element_params(), 'h4_', __('Subheading', 'js_composer'), array('exclude' => array('source', 'text', 'css')), array('element' => 'use_custom_fonts_h4', 'value' => 'true'));
// This is needed to remove custom heading _tag and _align options.
if (is_array($h4_custom_heading) && !empty($h4_custom_heading)) {
    foreach ($h4_custom_heading as $key => $param) {
        if (is_array($param) && isset($param['type']) && 'font_container' === $param['type']) {
            $h4_custom_heading[$key]['value'] = '';
            if (isset($param['settings']) && is_array($param['settings']) && isset($param['settings']['fields'])) {
                $sub_key = array_search('tag', $param['settings']['fields']);
                if (false !== $sub_key) {
                    unset($h4_custom_heading[$key]['settings']['fields'][$sub_key]);
                } elseif (isset($param['settings']['fields']['tag'])) {
                    unset($h4_custom_heading[$key]['settings']['fields']['tag']);
                }
                $sub_key = array_search('text_align', $param['settings']['fields']);
                if (false !== $sub_key) {
                    unset($h4_custom_heading[$key]['settings']['fields'][$sub_key]);
                } elseif (isset($param['settings']['fields']['text_align'])) {
                    unset($h4_custom_heading[$key]['settings']['fields']['text_align']);
                }
            }
        }
    }
}
$params = array_merge(array(array('type' => 'textfield', 'heading' => __('Heading', 'js_composer'), 'admin_label' => true, 'param_name' => 'h2', 'value' => __('Hey! I am first heading line feel free to change me', 'js_composer'), 'description' => __('Enter text for heading line.', 'js_composer'), 'edit_field_class' => 'vc_col-sm-9'), array('type' => 'checkbox', 'heading' => __('Use custom font?', 'js_composer'), 'param_name' => 'use_custom_fonts_h2', 'description' => __('Enable Google fonts.', 'js_composer'), 'edit_field_class' => 'vc_col-sm-3')), $h2_custom_heading, array(array('type' => 'textfield', 'heading' => __('Subheading', 'js_composer'), 'param_name' => 'h4', 'value' => '', 'description' => __('Enter text for subheading line.', 'js_composer'), 'edit_field_class' => 'vc_col-sm-9'), array('type' => 'checkbox', 'heading' => __('Use custom font?', 'js_composer'), 'param_name' => 'use_custom_fonts_h4', 'description' => __('Enable custom font option.', 'js_composer'), 'edit_field_class' => 'vc_col-sm-3')), $h4_custom_heading, array(array('type' => 'dropdown', 'heading' => __('Text alignment', 'js_composer'), 'param_name' => 'txt_align', 'value' => getVcShared('text align'), 'description' => __('Select text alignment in "Call to Action" block.', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Shape', 'js_composer'), 'param_name' => 'shape', 'std' => 'rounded', 'value' => array(__('Square', 'js_composer') => 'square', __('Rounded', 'js_composer') => 'rounded', __('Round', 'js_composer') => 'round'), 'description' => __('Select call to action shape.', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Style', 'js_composer'), 'param_name' => 'style', 'value' => array(__('Classic', 'js_composer') => 'classic', __('Flat', 'js_composer') => 'flat', __('Outline', 'js_composer') => 'outline', __('3d', 'js_composer') => '3d', __('Custom', 'js_composer') => 'custom'), 'std' => 'classic', 'description' => __('Select call to action display style.', 'js_composer')), array('type' => 'colorpicker', 'heading' => __('Background color', 'js_composer'), 'param_name' => 'custom_background', 'description' => __('Select custom background color.', 'js_composer'), 'dependency' => array('element' => 'style', 'value' => array('custom')), 'edit_field_class' => 'vc_col-sm-6'), array('type' => 'colorpicker', 'heading' => __('Text color', 'js_composer'), 'param_name' => 'custom_text', 'description' => __('Select custom text color.', 'js_composer'), 'dependency' => array('element' => 'style', 'value' => array('custom')), 'edit_field_class' => 'vc_col-sm-6'), array('type' => 'dropdown', 'heading' => __('Color', 'js_composer'), 'param_name' => 'color', 'value' => array(__('Classic', 'js_composer') => 'classic') + getVcShared('colors-dashed'), 'std' => 'classic', 'description' => __('Select color schema.', 'js_composer'), 'param_holder_class' => 'vc_colored-dropdown vc_cta3-colored-dropdown', 'dependency' => array('element' => 'style', 'value_not_equal_to' => array('custom'))), array('type' => 'textarea_html', 'heading' => __('Text', 'js_composer'), 'param_name' => 'content', 'value' => __('I am promo text. Click edit button to change this text. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Width', 'js_composer'), 'param_name' => 'el_width', 'value' => array('100%' => '', '90%' => 'xl', '80%' => 'lg', '70%' => 'md', '60%' => 'sm', '50%' => 'xs'), 'description' => __('Select call to action width (percentage).', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Add button', 'js_composer') . '?', 'description' => __('Add button for call to action.', 'js_composer'), 'param_name' => 'add_button', 'value' => array(__('No', 'js_composer') => '', __('Top', 'js_composer') => 'top', __('Bottom', 'js_composer') => 'bottom', __('Left', 'js_composer') => 'left', __('Right', 'js_composer') => 'right'))), vc_map_integrate_shortcode('vc_btn', 'btn_', __('Button', 'js_composer'), array('exclude' => array('css')), array('element' => 'add_button', 'not_empty' => true)), array(array('type' => 'dropdown', 'heading' => __('Add icon?', 'js_composer'), 'description' => __('Add icon for call to action.', 'js_composer'), 'param_name' => 'add_icon', 'value' => array(__('No', 'js_composer') => '', __('Top', 'js_composer') => 'top', __('Bottom', 'js_composer') => 'bottom', __('Left', 'js_composer') => 'left', __('Right', 'js_composer') => 'right')), array('type' => 'checkbox', 'param_name' => 'i_on_border', 'heading' => __('Place icon on border?', 'js_composer'), 'description' => __('Display icon on call to action element border.', 'js_composer'), 'group' => __('Icon', 'js_composer'), 'dependency' => array('element' => 'add_icon', 'not_empty' => true))), vc_map_integrate_shortcode('vc_icon', 'i_', __('Icon', 'js_composer'), array('exclude' => array('align', 'css')), array('element' => 'add_icon', 'not_empty' => true)), array(vc_map_add_css_animation(), array('type' => 'textfield', 'heading' => __('Extra class name', 'js_composer'), 'param_name' => 'el_class', 'description' => __('Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer')), array('type' => 'css_editor', 'heading' => __('CSS box', 'js_composer'), 'param_name' => 'css', 'group' => __('Design Options', 'js_composer'))));
return array('name' => __('Call to Action', 'js_composer'), 'base' => 'vc_cta', 'icon' => 'icon-wpb-call-to-action', 'category' => array(__('Content', 'js_composer')), 'description' => __('Catch visitors attention with CTA block', 'js_composer'), 'since' => '4.5', 'params' => $params, 'js_view' => 'VcCallToActionView3');
$add_background_attachment = array('type' => 'dropdown', 'heading' => '', "description" => wp_kses(__("Define the background attachment. <a href='http://www.w3schools.com/cssref/pr_background-attachment.asp' target='_blank'>Check this for reference</a>", 'uncode'), array('a' => array('href' => array(), 'target' => array()))), 'param_name' => 'back_attachment', 'value' => array(esc_html__('background-attachement', 'uncode') => '', esc_html__('Fixed', 'uncode') => 'fixed', esc_html__('Scroll', 'uncode') => 'scroll', esc_html__('Inherit', 'uncode') => 'inherit'), 'dependency' => array('element' => 'back_image', 'not_empty' => true), "group" => esc_html__("Style", 'uncode'));
$add_background_position = array('type' => 'dropdown', 'heading' => '', "description" => wp_kses(__("Define the background position. <a href='http://www.w3schools.com/cssref/pr_background-position.asp' target='_blank'>Check this for reference</a>", 'uncode'), array('a' => array('href' => array(), 'target' => array()))), 'param_name' => 'back_position', 'value' => array(esc_html__('background-position', 'uncode') => '', esc_html__('Left Top', 'uncode') => 'left top', esc_html__('Left Center', 'uncode') => 'left center', esc_html__('Left Bottom', 'uncode') => 'left bottom', esc_html__('Center Top', 'uncode') => 'center top', esc_html__('Center Center', 'uncode') => 'center center', esc_html__('Center Bottom', 'uncode') => 'center bottom', esc_html__('Right Top', 'uncode') => 'right top', esc_html__('Right Center', 'uncode') => 'right center', esc_html__('Right Bottom', 'uncode') => 'right bottom'), 'dependency' => array('element' => 'back_image', 'not_empty' => true), "group" => esc_html__("Style", 'uncode'));
$add_background_size = array('type' => 'textfield', 'heading' => '', "description" => wp_kses(__("Define the background size (Default value is 'cover'). <a href='http://www.w3schools.com/cssref/css3_pr_background-size.asp' target='_blank'>Check this for reference</a>", 'uncode'), array('a' => array('href' => array(), 'target' => array()))), 'param_name' => 'back_size', 'dependency' => array('element' => 'back_image', 'not_empty' => true), "group" => esc_html__("Style", 'uncode'));
vc_map(array('name' => esc_html__('Row', 'uncode'), 'base' => 'vc_row', 'weight' => 1000, 'php_class_name' => 'uncode_row', 'is_container' => true, 'icon' => 'fa fa-align-justify', 'show_settings_on_create' => false, 'category' => esc_html__('Content', 'uncode'), 'description' => esc_html__('Row container element', 'uncode'), 'params' => array(array("type" => 'checkbox', "heading" => esc_html__("Container width", 'uncode'), "param_name" => "unlock_row", "description" => esc_html__("Define the width of the container.", 'uncode'), "value" => array('' => 'yes'), "std" => 'yes', "group" => esc_html__("Aspect", 'uncode')), array("type" => 'checkbox', "heading" => esc_html__("Content width", 'uncode'), "param_name" => "unlock_row_content", "description" => esc_html__("Define the width of the content area.", 'uncode'), "value" => array('' => 'yes'), "group" => esc_html__("Aspect", 'uncode'), 'dependency' => array('element' => 'unlock_row', 'value' => 'yes')), array("type" => "type_numeric_slider", "heading" => esc_html__("Height", 'uncode'), "param_name" => "row_height_percent", "min" => 0, "max" => 100, "step" => 1, "value" => 0, "description" => wp_kses(__("Set the row height with a percent value.<br>N.B. This value is including the top and bottom padding.", 'uncode'), array('br' => array())), "group" => esc_html__("Aspect", 'uncode')), array('type' => 'textfield', 'heading' => esc_html__("Min height", 'uncode'), 'param_name' => 'row_height_pixel', 'description' => esc_html__("Insert the row minimum height in pixel.", 'uncode'), "group" => esc_html__("Aspect", 'uncode')), array("type" => 'checkbox', "heading" => esc_html__("Custom padding", 'uncode'), "param_name" => "override_padding", "description" => esc_html__('Activate this to define custom paddings.', 'uncode'), "group" => esc_html__("Aspect", 'uncode'), "value" => array('' => 'yes')), array("type" => "type_numeric_slider", "heading" => esc_html__("Left and right padding", 'uncode'), "param_name" => "h_padding", "min" => 0, "max" => 7, "step" => 1, "value" => 2, "description" => esc_html__("Set the left and right padding.", 'uncode'), "group" => esc_html__("Aspect", 'uncode'), "dependency" => array('element' => "override_padding", 'value' => array('yes'))), array("type" => "type_numeric_slider", "heading" => esc_html__("Top padding", 'uncode'), "param_name" => "top_padding", "min" => 0, "max" => 7, "step" => 1, "value" => 2, "description" => esc_html__("Set the top padding.", 'uncode'), "group" => esc_html__("Aspect", 'uncode'), "dependency" => array('element' => "override_padding", 'value' => array('yes'))), array("type" => "type_numeric_slider", "heading" => esc_html__("Bottom padding", 'uncode'), "param_name" => "bottom_padding", "min" => 0, "max" => 7, "step" => 1, "value" => 2, "description" => esc_html__("Set the bottom padding.", 'uncode'), "group" => esc_html__("Aspect", 'uncode'), "dependency" => array('element' => "override_padding", 'value' => array('yes'))), array("type" => "dropdown", "heading" => esc_html__("Background color", 'uncode'), "param_name" => "back_color", "description" => esc_html__("Specify a background color for the row.", 'uncode'), "group" => esc_html__("Style", 'uncode'), "value" => $uncode_colors), array("type" => "media_element", "heading" => esc_html__("Background media", 'uncode'), "param_name" => "back_image", "value" => "", "description" => esc_html__("Specify a media from the media library.", 'uncode'), "group" => esc_html__("Style", 'uncode')), $add_background_repeat, $add_background_attachment, $add_background_position, $add_background_size, array("type" => 'checkbox', "heading" => esc_html__("Parallax", 'uncode'), "param_name" => "parallax", "description" => esc_html__("Activate this to have the background parallax effect.", 'uncode'), "value" => array(esc_html__("Yes, please", 'uncode') => 'yes'), "dependency" => array('element' => "back_image", 'not_empty' => true), "group" => esc_html__("Style", 'uncode')), array("type" => "dropdown", "heading" => esc_html__("Overlay color", 'uncode'), "param_name" => "overlay_color", "description" => esc_html__("Specify an overlay color for the background.", 'uncode'), "group" => esc_html__("Style", 'uncode'), "value" => $uncode_colors), array("type" => "type_numeric_slider", "heading" => '', "param_name" => "overlay_alpha", "min" => 0, "max" => 100, "step" => 1, "value" => 50, "description" => esc_html__("Set the transparency for the overlay.", 'uncode'), "group" => esc_html__("Style", 'uncode')), array("type" => 'checkbox', "heading" => esc_html__("Columns with equal height", 'uncode'), "param_name" => "equal_height", "description" => esc_html__("Activate this to have columns that are all equally tall, matching the height of the tallest.", 'uncode'), "value" => array(esc_html__("Yes, please", 'uncode') => 'yes'), "group" => esc_html__("Inner columns", 'uncode')), array("type" => "type_numeric_slider", "heading" => esc_html__("Columns gap", 'uncode'), "param_name" => "gutter_size", "min" => 0, "max" => 4, "step" => 1, "value" => 3, "description" => esc_html__("Set the columns gap.", 'uncode'), "group" => esc_html__("Inner columns", 'uncode')), array('type' => 'css_editor', 'heading' => esc_html__('Css', 'uncode'), 'param_name' => 'css', 'group' => esc_html__('Custom', 'uncode')), array("type" => "dropdown", "heading" => esc_html__("Border color", 'uncode'), "param_name" => "border_color", "description" => esc_html__("Specify a border color.", 'uncode'), "group" => esc_html__("Custom", 'uncode'), "value" => $uncode_colors_w_transp), array("type" => "dropdown", "heading" => esc_html__("Border style", 'uncode'), "param_name" => "border_style", "description" => esc_html__("Specify a border style.", 'uncode'), "group" => esc_html__("Custom", 'uncode'), "value" => $border_style), array("type" => 'checkbox', "heading" => esc_html__("Desktop", 'uncode'), "param_name" => "desktop_visibility", "description" => esc_html__("Choose the visibiliy of the element in desktop layout mode (960px >).", 'uncode'), 'group' => esc_html__('Responsive', 'uncode'), "value" => array('' => 'yes')), array("type" => 'checkbox', "heading" => esc_html__("Tablet", 'uncode'), "param_name" => "medium_visibility", "description" => esc_html__("Choose the visibiliy of the element in tablet layout mode (570px > < 960px).", 'uncode'), 'group' => esc_html__('Responsive', 'uncode'), "value" => array('' => 'yes')), array("type" => 'checkbox', "heading" => esc_html__("Mobile", 'uncode'), "param_name" => "mobile_visibility", "description" => esc_html__("Choose the visibiliy of the element in mobile layout mode (< 570px).", 'uncode'), 'group' => esc_html__('Responsive', 'uncode'), "value" => array('' => 'yes')), array("type" => "type_numeric_slider", "heading" => esc_html__("Shift y-axis", 'uncode'), "param_name" => "shift_y", "min" => -5, "max" => 5, "step" => 1, "value" => 0, "description" => esc_html__("Set how much the element has to shift in the Y axis.", 'uncode'), 'group' => esc_html__('Off-grid', 'uncode')), array("type" => 'checkbox', "heading" => esc_html__("Shift y-axis fixed", 'uncode'), "param_name" => "shift_y_fixed", "description" => esc_html__("Deactive shift-y responsiveness.", 'uncode'), 'group' => esc_html__('Off-grid', 'uncode'), "value" => array('' => 'yes')), array('type' => 'textfield', 'heading' => esc_html__('Extra class', 'uncode'), 'param_name' => 'el_class', 'description' => esc_html__('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.', 'uncode'), "group" => esc_html__("Extra", 'uncode')), array('type' => 'textfield', 'heading' => esc_html__('Section name', 'uncode'), 'param_name' => 'row_name', 'description' => esc_html__('Required for the onepage scroll, this gives the name to the section.', 'uncode'), "group" => esc_html__("Extra", 'uncode'))), 'js_view' => 'UncodeRowView'));
vc_map(array('name' => esc_html__('Row', 'uncode'), 'base' => 'vc_row_inner', 'php_class_name' => 'uncode_row_inner', 'content_element' => false, 'is_container' => true, 'icon' => 'icon-wpb-row', 'weight' => 1000, 'show_settings_on_create' => false, 'params' => array(array("type" => "type_numeric_slider", 'heading' => esc_html__("Height", 'uncode'), "param_name" => "row_inner_height_percent", "min" => 0, "max" => 100, "step" => 1, "value" => 0, "description" => wp_kses(__("Set the row height with a percent value.<br>N.B. This value is relative to the row parent.", 'uncode'), array('br' => array())), "group" => esc_html__("Aspect", 'uncode')), array('type' => 'textfield', 'heading' => esc_html__("Min height", 'uncode'), 'param_name' => 'row_height_pixel', 'description' => esc_html__("Insert the row minimum height in pixel.", 'uncode'), "group" => esc_html__("Aspect", 'uncode')), array("type" => 'checkbox', "heading" => esc_html__("Force width 100%", 'uncode'), "param_name" => "force_width_grid", "description" => wp_kses(__('Set this value if you need to force the width to 100%.<br>N.B. This is needed only when all the columns are OFF-GRID.', 'uncode'), array('br' => array(), 'b' => array())), "group" => esc_html__("Aspect", 'uncode'), "value" => array('' => 'yes')), array("type" => "dropdown", "heading" => esc_html__("Background color", 'uncode'), "param_name" => "back_color", "description" => esc_html__("Specify a background color for the row.", 'uncode'), "group" => esc_html__("Style", 'uncode'), "value" => $uncode_colors), array("type" => "media_element", "heading" => esc_html__("Background media", 'uncode'), "param_name" => "back_image", "value" => "", "description" => esc_html__("Specify a media from the media library.", 'uncode'), "group" => esc_html__("Style", 'uncode')), $add_background_repeat, $add_background_attachment, $add_background_position, $add_background_size, array("type" => 'checkbox', "heading" => esc_html__("Parallax", 'uncode'), "param_name" => "parallax", "description" => esc_html__("Activate this to have the background parallax effect.", 'uncode'), "value" => array(esc_html__("Yes, please", 'uncode') => 'yes'), "dependency" => array('element' => "back_image", 'not_empty' => true), "group" => esc_html__("Style", 'uncode')), array("type" => "dropdown", "heading" => esc_html__("Overlay color", 'uncode'), "param_name" => "overlay_color", "description" => esc_html__("Specify an overlay color for the background.", 'uncode'), "group" => esc_html__("Style", 'uncode'), "value" => $uncode_colors), array("type" => "type_numeric_slider", "heading" => '', "param_name" => "overlay_alpha", "min" => 0, "max" => 100, "step" => 1, "value" => 50, "description" => esc_html__("Set the transparency for the overlay.", 'uncode'), "group" => esc_html__("Style", 'uncode')), array("type" => 'checkbox', "heading" => esc_html__("Columns with equal height", 'uncode'), "param_name" => "equal_height", "description" => esc_html__("Activate this to have columns that are all equally tall, matching the height of the tallest.", 'uncode'), "value" => array(esc_html__("Yes, please", 'uncode') => 'yes'), "group" => esc_html__("Inner columns", 'uncode')), array("type" => "type_numeric_slider", "heading" => esc_html__("Columns gap", 'uncode'), "param_name" => "gutter_size", "min" => 0, "max" => 4, "step" => 1, "value" => 3, "description" => esc_html__("Set the columns gap.", 'uncode'), "group" => esc_html__("Inner columns", 'uncode')), array("type" => 'checkbox', "heading" => esc_html__("Desktop", 'uncode'), "param_name" => "desktop_visibility", "description" => esc_html__("Choose the visibiliy of the element in desktop layout mode (960px >).", 'uncode'), 'group' => esc_html__('Responsive', 'uncode'), "value" => array('' => 'yes')), array("type" => 'checkbox', "heading" => esc_html__("Tablet", 'uncode'), "param_name" => "medium_visibility", "description" => esc_html__("Choose the visibiliy of the element in tablet layout mode (570px > < 960px).", 'uncode'), 'group' => esc_html__('Responsive', 'uncode'), "value" => array('' => 'yes')), array("type" => 'checkbox', "heading" => esc_html__("Mobile", 'uncode'), "param_name" => "mobile_visibility", "description" => esc_html__("Choose the visibiliy of the element in mobile layout mode (< 570px).", 'uncode'), 'group' => esc_html__('Responsive', 'uncode'), "value" => array('' => 'yes')), array("type" => "type_numeric_slider", "heading" => esc_html__("Shift y-axis", 'uncode'), "param_name" => "shift_y", "min" => -5, "max" => 5, "step" => 1, "value" => 0, "description" => esc_html__("Set how much the element has to shift in the Y axis.", 'uncode'), 'group' => esc_html__('Off-grid', 'uncode')), array("type" => 'checkbox', "heading" => esc_html__("Shift y-axis fixed", 'uncode'), "param_name" => "shift_y_fixed", "description" => esc_html__("Deactive shift-y responsiveness.", 'uncode'), 'group' => esc_html__('Off-grid', 'uncode'), "value" => array('' => 'yes')), array('type' => 'css_editor', 'heading' => esc_html__('Css', 'uncode'), 'param_name' => 'css', 'group' => esc_html__('Custom', 'uncode')), array("type" => "dropdown", "heading" => esc_html__("Border color", 'uncode'), "param_name" => "border_color", "description" => esc_html__("Specify a border color.", 'uncode'), "group" => esc_html__("Custom", 'uncode'), "value" => $uncode_colors_w_transp), array("type" => "dropdown", "heading" => esc_html__("Border style", 'uncode'), "param_name" => "border_style", "description" => esc_html__("Specify a border style.", 'uncode'), "group" => esc_html__("Custom", 'uncode'), "value" => $border_style), array('type' => 'textfield', 'heading' => esc_html__('Extra class', 'uncode'), 'param_name' => 'el_class', 'description' => esc_html__('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.', 'uncode'), "group" => esc_html__("Extra", 'uncode'))), 'js_view' => 'UncodeRowView'));
vc_map(array("name" => esc_html__("Column", 'uncode'), "base" => "vc_column", "is_container" => true, "content_element" => false, "params" => array(array("type" => 'checkbox', "heading" => esc_html__("Content width", 'uncode'), "param_name" => "column_width_use_pixel", "edit_field_class" => 'vc_col-sm-12 vc_column row_height', "description" => 'Set this value if you want to constrain the column width.', "group" => esc_html__("Aspect", 'uncode'), "value" => array('' => 'yes')), array("type" => "type_numeric_slider", "heading" => '', "param_name" => "column_width_percent", "min" => 0, "max" => 100, "step" => 1, "value" => 100, "description" => esc_html__("Set the column width with a percent value.", 'uncode'), "group" => esc_html__("Aspect", 'uncode'), 'dependency' => array('element' => 'column_width_use_pixel', 'is_empty' => true)), array('type' => 'textfield', 'heading' => '', 'param_name' => 'column_width_pixel', 'description' => esc_html__("Insert the column width in pixel.", 'uncode'), "group" => esc_html__("Aspect", 'uncode'), 'dependency' => array('element' => 'column_width_use_pixel', 'value' => 'yes')), array("type" => 'dropdown', "heading" => esc_html__("Horizontal position", 'uncode'), "param_name" => "position_horizontal", "description" => esc_html__("Specify the horizontal position of the content if you have decreased the width value.", 'uncode'), "std" => 'center', "value" => array('Left' => 'left', 'Center' => 'center', 'Right' => 'right'), 'group' => esc_html__('Aspect', 'uncode')), array("type" => 'dropdown', "heading" => esc_html__("Vertical position", 'uncode'), "param_name" => "position_vertical", "description" => esc_html__("Specify the vertical position of the content.", 'uncode'), "value" => array('Top' => 'top', 'Middle' => 'middle', 'Bottom' => 'bottom'), 'group' => esc_html__('Aspect', 'uncode')), array("type" => 'dropdown', "heading" => esc_html__("Text alignment", 'uncode'), "param_name" => "align_horizontal", "description" => esc_html__("Specify the alignment inside the content box.", 'uncode'), "value" => array('Left' => 'align_left', 'Center' => 'align_center', 'Right' => 'align_right'), 'group' => esc_html__('Aspect', 'uncode')), array("type" => 'checkbox', "heading" => esc_html__("Expand height to 100%", 'uncode'), "param_name" => "expand_height", "description" => esc_html__("Activate this to expand the height of the column to 100%, if you haven't activate the equal height row setting.", 'uncode'), 'group' => esc_html__('Aspect', 'uncode'), "value" => array('' => 'yes')), array("type" => 'checkbox', "heading" => esc_html__("Custom padding", 'uncode'), "param_name" => "override_padding", "description" => esc_html__('Activate this to define custom paddings.', 'uncode'), "group" => esc_html__("Aspect", 'uncode'), "value" => array('' => 'yes')), array("type" => "type_numeric_slider", "heading" => esc_html__("Custom padding", 'uncode'), "param_name" => "column_padding", "min" => 0, "max" => 5, "step" => 1, "value" => 2, "description" => esc_html__("Set the column padding", 'uncode'), "group" => esc_html__("Aspect", 'uncode'), "dependency" => array('element' => "override_padding", 'value' => array('yes'))), array("type" => "dropdown", "heading" => esc_html__("Column text skin", 'uncode'), "param_name" => "style", "value" => array(esc_html__('Inherit', 'uncode') => '', esc_html__('Light', 'uncode') => 'light', esc_html__('Dark', 'uncode') => 'dark'), 'group' => esc_html__('Style', 'uncode'), "description" => esc_html__("Specify the text/skin color of the column.", 'uncode')), array("type" => 'dropdown', "heading" => esc_html__("Column font family", 'uncode'), "param_name" => "font_family", "description" => esc_html__("Specify the column font family.", 'uncode'), "value" => $heading_font, 'std' => '', 'group' => esc_html__('Style', 'uncode')), array("type" => "dropdown", "heading" => esc_html__("Column custom background color", 'uncode'), "param_name" => "back_color", "description" => esc_html__("Specify a background color for the column.", 'uncode'), "value" => $uncode_colors, 'group' => esc_html__('Style', 'uncode')), array("type" => "media_element", "heading" => esc_html__("Media", 'uncode'), "param_name" => "back_image", "value" => "", "description" => esc_html__("Specify a media from the media library.", 'uncode'), 'group' => esc_html__('Style', 'uncode')), $add_background_repeat, $add_background_attachment, $add_background_position, $add_background_size, array("type" => 'checkbox', "heading" => esc_html__("Parallax", 'uncode'), "param_name" => "parallax", "description" => esc_html__("Activate this to have the background parallax effect.", 'uncode'), "value" => array(esc_html__("Yes, please", 'uncode') => 'yes'), "dependency" => array('element' => "back_image", 'not_empty' => true), "group" => esc_html__("Style", 'uncode')), array("type" => "dropdown", "heading" => esc_html__("Overlay color", 'uncode'), "param_name" => "overlay_color", "description" => esc_html__("Specify an overlay color for the background.", 'uncode'), "group" => esc_html__("Style", 'uncode'), "value" => $uncode_colors), array("type" => "type_numeric_slider", "heading" => '', "param_name" => "overlay_alpha", "min" => 0, "max" => 100, "step" => 1, "value" => 50, "description" => esc_html__("Set the transparency for the overlay.", 'uncode'), "group" => esc_html__("Style", 'uncode')), array("type" => "type_numeric_slider", "heading" => esc_html__("Vertical gap", 'uncode'), "param_name" => "gutter_size", "min" => 0, "max" => 6, "step" => 1, "value" => 3, "description" => esc_html__("Set the vertical space between elements.", 'uncode'), "group" => esc_html__("Inner elements", 'uncode')), array("type" => "css_editor", "heading" => esc_html__('Css', 'uncode'), "param_name" => "css", "group" => esc_html__('Custom', 'uncode')), array("type" => "dropdown", "heading" => esc_html__("Border color", 'uncode'), "param_name" => "border_color", "description" => esc_html__("Specify a border color.", 'uncode'), "group" => esc_html__("Custom", 'uncode'), "value" => $uncode_colors_w_transp), array("type" => "dropdown", "heading" => esc_html__("Border style", 'uncode'), "param_name" => "border_style", "description" => esc_html__("Specify a border style.", 'uncode'), "group" => esc_html__("Custom", 'uncode'), "value" => $border_style), array("type" => 'checkbox', "heading" => esc_html__("Desktop", 'uncode'), "param_name" => "desktop_visibility", "description" => esc_html__("Choose the visibiliy of the element in desktop layout mode (960px >).", 'uncode'), 'group' => esc_html__('Responsive', 'uncode'), "value" => array('' => 'yes')), array("type" => 'checkbox', "heading" => esc_html__("Tablet", 'uncode'), "param_name" => "medium_visibility", "description" => esc_html__("Choose the visibiliy of the element in tablet layout mode (570px > < 960px).", 'uncode'), 'group' => esc_html__('Responsive', 'uncode'), "value" => array('' => 'yes')), array("type" => 'dropdown', "param_name" => "align_medium", "description" => esc_html__("Specify the text alignment inside the content box in tablet layout mode.", 'uncode'), "value" => array('Text align (Inherit)' => '', 'Left' => 'align_left_tablet', 'Center' => 'align_center_tablet', 'Right' => 'align_right_tablet'), 'group' => esc_html__('Responsive', 'uncode')), array("type" => "type_numeric_slider", "param_name" => "medium_width", "min" => 0, "max" => 7, "step" => 1, "value" => 0, "description" => esc_html__("COLUMN WIDTH. N.B. If you change this value for one column you must specify a value for every column of the row.", 'uncode'), "group" => esc_html__("Responsive", 'uncode')), array("type" => 'checkbox', "heading" => esc_html__("Mobile", 'uncode'), "param_name" => "mobile_visibility", "description" => esc_html__("Choose the visibiliy of the element in tablet layout mode (570px > < 960px).", 'uncode'), 'group' => esc_html__('Responsive', 'uncode'), "value" => array('' => 'yes')), array("type" => 'dropdown', "param_name" => "align_mobile", "description" => esc_html__("Specify the text alignment inside the content box in mobile layout mode.", 'uncode'), "value" => array('Text align (Inherit)' => '', 'Left' => 'align_left_mobile', 'Center' => 'align_center_mobile', 'Right' => 'align_right_mobile'), 'group' => esc_html__('Responsive', 'uncode')), array("type" => "textfield", "param_name" => "mobile_height", "description" => esc_html__("MINIMUM HEIGHT. Insert the value in pixel.", 'uncode'), 'group' => esc_html__('Responsive', 'uncode')), array("type" => "type_numeric_slider", "heading" => esc_html__("Shift x-axis", 'uncode'), "param_name" => "shift_x", "min" => -5, "max" => 5, "step" => 1, "value" => 0, "description" => esc_html__("Set how much the element has to shift in the X axis.", 'uncode'), 'group' => esc_html__('Off-grid', 'uncode')), array("type" => 'checkbox', "heading" => esc_html__("Shift x-axis fixed", 'uncode'), "param_name" => "shift_x_fixed", "description" => esc_html__("Deactive shift-x responsiveness.", 'uncode'), 'group' => esc_html__('Off-grid', 'uncode'), "value" => array('' => 'yes')), array("type" => "type_numeric_slider", "heading" => esc_html__("Shift y-axis", 'uncode'), "param_name" => "shift_y", "min" => -5, "max" => 5, "step" => 1, "value" => 0, "description" => esc_html__("Set how much the element has to shift in the Y axis.", 'uncode'), 'group' => esc_html__('Off-grid', 'uncode')), array("type" => 'checkbox', "heading" => esc_html__("Shift y-axis fixed", 'uncode'), "param_name" => "shift_y_fixed", "description" => esc_html__("Deactive shift-y responsiveness.", 'uncode'), 'group' => esc_html__('Off-grid', 'uncode'), "value" => array('' => 'yes')), array("type" => "type_numeric_slider", "heading" => esc_html__("Custom z-index", 'uncode'), "param_name" => "z_index", "min" => 0, "max" => 10, "step" => 1, "value" => 0, "description" => esc_html__("Set a custom z-index to ensure the visibility of the element.", 'uncode'), 'group' => esc_html__('Off-grid', 'uncode')), $add_css_animation, $add_animation_speed, $add_animation_delay, array('type' => 'vc_link', 'heading' => esc_html__('Custom link', 'uncode'), 'param_name' => 'link_to', 'description' => esc_html__('Enter a custom link for the column.', 'uncode'), 'group' => esc_html__('Extra', 'uncode')), array("type" => "textfield", "heading" => esc_html__("Extra class", 'uncode'), "param_name" => "el_class", "description" => esc_html__("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.", 'uncode'), 'group' => esc_html__('Extra', 'uncode'))), "js_view" => 'UncodeColumnView'));
vc_map(array("name" => esc_html__("Column", 'uncode'), "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', "heading" => esc_html__("Content width", 'uncode'), "param_name" => "column_width_use_pixel", "edit_field_class" => 'vc_col-sm-12 vc_column row_height', "description" => 'Set this value if you want to constrain the column width.', "group" => esc_html__("Aspect", 'uncode'), "value" => array('' => 'yes')), array("type" => "type_numeric_slider", "heading" => '', "param_name" => "column_width_percent", "min" => 0, "max" => 100, "step" => 1, "value" => 100, "description" => esc_html__("Set the column width with a percent value.", 'uncode'), "group" => esc_html__("Aspect", 'uncode'), 'dependency' => array('element' => 'column_width_use_pixel', 'is_empty' => true)), array('type' => 'textfield', 'heading' => '', 'param_name' => 'column_width_pixel', 'description' => esc_html__("Insert the column width in pixel.", 'uncode'), "group" => esc_html__("Aspect", 'uncode'), 'dependency' => array('element' => 'column_width_use_pixel', 'value' => 'yes')), array("type" => 'dropdown', "heading" => esc_html__("Horizontal position", 'uncode'), "param_name" => "position_horizontal", "description" => esc_html__("Specify the horizontal position of the content if you have decreased the width value.", 'uncode'), "std" => 'center', "value" => array('Left' => 'left', 'Center' => 'center', 'Right' => 'right'), 'group' => esc_html__('Aspect', 'uncode')), array("type" => 'dropdown', "heading" => esc_html__("Vertical position", 'uncode'), "param_name" => "position_vertical", "description" => esc_html__("Specify the vertical position of the content.", 'uncode'), "value" => array('Top' => 'top', 'Middle' => 'middle', 'Bottom' => 'bottom'), 'group' => esc_html__('Aspect', 'uncode')), array("type" => 'dropdown', "heading" => esc_html__("Text alignment", 'uncode'), "param_name" => "align_horizontal", "description" => esc_html__("Specify the alignment inside the content box.", 'uncode'), "value" => array('Left' => 'align_left', 'Center' => 'align_center', 'Right' => 'align_right'), 'group' => esc_html__('Aspect', 'uncode')), array("type" => 'checkbox', "heading" => esc_html__("Expand height to 100%", 'uncode'), "param_name" => "expand_height", "description" => esc_html__("Activate this to expand the height of the column to 100%, if you haven't activate the equal height row setting.", 'uncode'), 'group' => esc_html__('Aspect', 'uncode'), "value" => array('' => 'yes')), array("type" => 'checkbox', "heading" => esc_html__("Custom padding", 'uncode'), "param_name" => "override_padding", "description" => esc_html__('Activate this to define custom paddings.', 'uncode'), "group" => esc_html__("Aspect", 'uncode'), "value" => array('' => 'yes')), array("type" => "type_numeric_slider", "heading" => esc_html__("Custom padding", 'uncode'), "param_name" => "column_padding", "min" => 0, "max" => 5, "step" => 1, "value" => 2, "description" => esc_html__("Set the column padding", 'uncode'), "group" => esc_html__("Aspect", 'uncode'), "dependency" => array('element' => "override_padding", 'value' => array('yes'))), array("type" => "dropdown", "heading" => esc_html__("Column text skin", 'uncode'), "param_name" => "style", "value" => array(esc_html__('Inherit', 'uncode') => '', esc_html__('Light', 'uncode') => 'light', esc_html__('Dark', 'uncode') => 'dark'), 'group' => esc_html__('Style', 'uncode'), "description" => esc_html__("Specify the text/skin color of the column.", 'uncode')), array("type" => "type_numeric_slider", "heading" => esc_html__("Vertical gap", 'uncode'), "param_name" => "gutter_size", "min" => 0, "max" => 6, "step" => 1, "value" => 3, "description" => esc_html__("Set the vertical space between elements.", 'uncode'), "group" => esc_html__("Inner elements", 'uncode')), array("type" => 'dropdown', "heading" => esc_html__("Column font family", 'uncode'), "param_name" => "font_family", "description" => esc_html__("Specify the column font family.", 'uncode'), "value" => $heading_font, 'std' => '', 'group' => esc_html__('Style', 'uncode')), array("type" => "dropdown", "heading" => esc_html__("Column custom background color", 'uncode'), "param_name" => "back_color", "description" => esc_html__("Specify a background color for the column.", 'uncode'), "value" => $uncode_colors, 'group' => esc_html__('Style', 'uncode')), array("type" => "media_element", "heading" => esc_html__("Media", 'uncode'), "param_name" => "back_image", "value" => "", "description" => esc_html__("Specify a media from the media library.", 'uncode'), 'group' => esc_html__('Style', 'uncode')), $add_background_repeat, $add_background_attachment, $add_background_position, $add_background_size, array("type" => 'checkbox', "heading" => esc_html__("Parallax", 'uncode'), "param_name" => "parallax", "description" => esc_html__("Activate this to have the background parallax effect.", 'uncode'), "value" => array(esc_html__("Yes, please", 'uncode') => 'yes'), "dependency" => array('element' => "back_image", 'not_empty' => true), "group" => esc_html__("Style", 'uncode')), array("type" => "dropdown", "heading" => esc_html__("Overlay color", 'uncode'), "param_name" => "overlay_color", "description" => esc_html__("Specify an overlay color for the background.", 'uncode'), "group" => esc_html__("Style", 'uncode'), "value" => $uncode_colors), array("type" => "type_numeric_slider", "heading" => '', "param_name" => "overlay_alpha", "min" => 0, "max" => 100, "step" => 1, "value" => 50, "description" => esc_html__("Set the transparency for the overlay.", 'uncode'), "group" => esc_html__("Style", 'uncode')), array("type" => "css_editor", "heading" => esc_html__('Css', 'uncode'), "param_name" => "css", "group" => esc_html__('Custom', 'uncode')), array("type" => "dropdown", "heading" => esc_html__("Border color", 'uncode'), "param_name" => "border_color", "description" => esc_html__("Specify a border color.", 'uncode'), "group" => esc_html__("Custom", 'uncode'), "value" => $uncode_colors_w_transp), array("type" => "dropdown", "heading" => esc_html__("Border style", 'uncode'), "param_name" => "border_style", "description" => esc_html__("Specify a border style.", 'uncode'), "group" => esc_html__("Custom", 'uncode'), "value" => $border_style), array("type" => 'checkbox', "heading" => esc_html__("Desktop", 'uncode'), "param_name" => "desktop_visibility", "description" => esc_html__("Choose the visibiliy of the element in desktop layout mode (960px >).", 'uncode'), 'group' => esc_html__('Responsive', 'uncode'), "value" => array('' => 'yes')), array("type" => 'checkbox', "heading" => esc_html__("Tablet", 'uncode'), "param_name" => "medium_visibility", "description" => esc_html__("Choose the visibiliy of the element in tablet layout mode (570px > < 960px).", 'uncode'), 'group' => esc_html__('Responsive', 'uncode'), "value" => array('' => 'yes')), array("type" => 'dropdown', "param_name" => "align_medium", "description" => esc_html__("Specify the text alignment inside the content box in tablet layout mode.", 'uncode'), "value" => array('Text align (Inherit)' => '', 'Left' => 'align_left_tablet', 'Center' => 'align_center_tablet', 'Right' => 'align_right_tablet'), 'group' => esc_html__('Responsive', 'uncode')), array("type" => "type_numeric_slider", "param_name" => "medium_width", "min" => 0, "max" => 7, "step" => 1, "value" => 0, "description" => esc_html__("COLUMN WIDTH. N.B. If you change this value for one column you must specify a value for every column of the row.", 'uncode'), "group" => esc_html__("Responsive", 'uncode')), array("type" => 'checkbox', "heading" => esc_html__("Mobile", 'uncode'), "param_name" => "mobile_visibility", "description" => esc_html__("Choose the visibiliy of the element in mobile layout mode (< 570px).", 'uncode'), 'group' => esc_html__('Responsive', 'uncode'), "value" => array('' => 'yes')), array("type" => 'dropdown', "param_name" => "align_mobile", "description" => esc_html__("Specify the text alignment inside the content box in mobile layout mode.", 'uncode'), "value" => array('Text align (Inherit)' => '', 'Left' => 'align_left_mobile', 'Center' => 'align_center_mobile', 'Right' => 'align_right_mobile'), 'group' => esc_html__('Responsive', 'uncode')), array("type" => "textfield", "param_name" => "mobile_height", "description" => esc_html__("MINIMUM HEIGHT. Insert the value in pixel.", 'uncode'), 'group' => esc_html__('Responsive', 'uncode')), array("type" => "type_numeric_slider", "heading" => esc_html__("Shift x-axis", 'uncode'), "param_name" => "shift_x", "min" => -5, "max" => 5, "step" => 1, "value" => 0, "description" => esc_html__("Set how much the element has to shift in the X axis.", 'uncode'), 'group' => esc_html__('Off-grid', 'uncode')), array("type" => 'checkbox', "heading" => esc_html__("Shift x-axis fixed", 'uncode'), "param_name" => "shift_x_fixed", "description" => esc_html__("Deactive shift-x responsiveness.", 'uncode'), 'group' => esc_html__('Off-grid', 'uncode'), "value" => array('' => 'yes')), array("type" => "type_numeric_slider", "heading" => esc_html__("Shift y-axis", 'uncode'), "param_name" => "shift_y", "min" => -5, "max" => 5, "step" => 1, "value" => 0, "description" => esc_html__("Set how much the element has to shift in the Y axis.", 'uncode'), 'group' => esc_html__('Off-grid', 'uncode')), array("type" => 'checkbox', "heading" => esc_html__("Shift y-axis fixed", 'uncode'), "param_name" => "shift_y_fixed", "description" => esc_html__("Deactive shift-y responsiveness.", 'uncode'), 'group' => esc_html__('Off-grid', 'uncode'), "value" => array('' => 'yes')), array("type" => "type_numeric_slider", "heading" => esc_html__("Custom z-index", 'uncode'), "param_name" => "z_index", "min" => 0, "max" => 10, "step" => 1, "value" => 0, "description" => esc_html__("Set a custom z-index to ensure the visibility of the element.", 'uncode'), 'group' => esc_html__('Off-grid', 'uncode')), $add_css_animation, $add_animation_speed, $add_animation_delay, array('type' => 'vc_link', 'heading' => esc_html__('Custom link', 'uncode'), 'param_name' => 'link_to', 'description' => esc_html__('Enter a custom link for the column.', 'uncode'), 'group' => esc_html__('Extra', 'uncode')), array("type" => "textfield", "heading" => esc_html__("Extra class", 'uncode'), "param_name" => "el_class", "description" => esc_html__("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.", 'uncode'), 'group' => esc_html__('Extra', 'uncode'))), "js_view" => 'UncodeColumnView'));
/* Gallery/Slideshow
 ---------------------------------------------------------- */
vc_map(array('name' => esc_html__('Media Gallery', 'uncode'), 'base' => 'vc_gallery', 'php_class_name' => 'uncode_generic_admin', 'weight' => 102, 'icon' => 'fa fa-th-large', 'category' => esc_html__('Content', 'uncode'), 'description' => esc_html__('Isotope grid or carousel layout', 'uncode'), 'params' => array(array('type' => 'textfield', 'heading' => esc_html__('Widget title', 'uncode'), 'param_name' => 'title', 'description' => esc_html__('Enter text which will be used as widget title. Leave blank if no title is needed.', 'uncode'), 'group' => esc_html__('General', 'uncode'), 'admin_label' => true), array('type' => 'textfield', 'heading' => esc_html__('Widget ID', 'uncode'), 'param_name' => 'el_id', 'value' => function_exists('big_rand') ? big_rand() : rand(), 'description' => esc_html__('This value has to be unique. Change it in case it\'s needed.', 'uncode'), 'group' => esc_html__('General', 'uncode')), array('type' => 'dropdown', 'heading' => esc_html__('Gallery module', 'uncode'), 'param_name' => 'type', 'value' => array(esc_html__('Isotope', 'uncode') => 'isotope', esc_html__('Carousel', 'uncode') => 'carousel'), 'admin_label' => true, 'description' => esc_html__('Specify gallery module type.', 'uncode'), 'group' => esc_html__('General', 'uncode')), array('type' => 'dropdown', 'heading' => esc_html__('Layout modes', 'uncode'), 'param_name' => 'isotope_mode', 'admin_label' => true, "description" => wp_kses(__("Specify the isotpe layout mode. <a href='http://isotope.metafizzy.co/layout-modes.html' target='_blank'>Check this for reference</a>", 'uncode'), array('a' => array('href' => array(), 'target' => array()))), "value" => array(esc_html__('Masonry', 'uncode') => 'masonry', esc_html__('Fit rows', 'uncode') => 'fitRows', esc_html__('Cells by row', 'uncode') => 'cellsByRow', esc_html__('Vertical', 'uncode') => 'vertical', esc_html__('Packery', 'uncode') => 'packery'), 'group' => esc_html__('General', 'uncode'), 'dependency' => array('element' => 'type', 'value' => 'isotope')), array('type' => 'media_element', 'heading' => esc_html__('Medias', 'uncode'), 'param_name' => 'medias', "edit_field_class" => 'vc_col-sm-12 vc_column uncode_gallery', 'value' => '', 'description' => esc_html__('Specify images from media library.', 'uncode'), 'group' => esc_html__('General', 'uncode')), array("type" => 'dropdown', "heading" => esc_html__("Style", 'uncode'), "param_name" => "style_preset", "description" => esc_html__("Specify the alignment inside the content box.", 'uncode'), 'dependency' => array('element' => 'type', 'value' => array('isotope')), "value" => array(esc_html__('Masonry', 'uncode') => 'masonry', esc_html__('Metro', 'uncode') => 'metro'), 'group' => esc_html__('Module', 'uncode')), array("type" => "dropdown", "heading" => esc_html__("Gallery background color", 'uncode'), "param_name" => "gallery_back_color", "description" => esc_html__("Specify a background color for the module.", 'uncode'), "class" => 'uncode_colors', "value" => $uncode_colors, 'group' => esc_html__('Module', 'uncode')), array('type' => 'textfield', 'heading' => esc_html__('Number columns ( > 960px )', 'uncode'), 'param_name' => 'carousel_lg', 'value' => 3, 'description' => esc_html__('Insert the numbers of columns for the viewport from 960px.', 'uncode'), 'group' => esc_html__('Module', 'uncode'), 'dependency' => array('element' => 'type', 'value' => 'carousel')), array('type' => 'textfield', 'heading' => esc_html__('Number columns ( > 570px and < 960px )', 'uncode'), 'param_name' => 'carousel_md', 'value' => 3, 'description' => esc_html__('Insert the numbers of columns for the viewport from 570px to 960px.', 'uncode'), 'group' => esc_html__('Module', 'uncode'), 'dependency' => array('element' => 'type', 'value' => 'carousel')), array('type' => 'textfield', 'heading' => esc_html__('Number columns ( > 0px and < 570px )', 'uncode'), 'param_name' => 'carousel_sm', 'value' => 1, 'description' => esc_html__('Insert the numbers of columns for the viewport from 0 to 570px.', 'uncode'), 'group' => esc_html__('Module', 'uncode'), 'dependency' => array('element' => 'type', 'value' => 'carousel')), array('type' => 'dropdown', 'heading' => esc_html__('Thumbnail size', 'uncode'), 'param_name' => 'thumb_size', 'description' => esc_html__('Specify the aspect ratio for the media.', 'uncode'), "value" => array(esc_html__('Regular', 'uncode') => '', esc_html__('1:1', 'uncode') => 'one-one', esc_html__('4:3', 'uncode') => 'four-three', esc_html__('3:2', 'uncode') => 'three-two', esc_html__('16:9', 'uncode') => 'sixteen-nine', esc_html__('21:9', 'uncode') => 'twentyone-nine', esc_html__('3:4', 'uncode') => 'three-four', esc_html__('2:3', 'uncode') => 'two-three', esc_html__('9:16', 'uncode') => 'nine-sixteen'), 'group' => esc_html__('Module', 'uncode'), 'dependency' => array('element' => 'type', 'value' => 'carousel')), array("type" => "type_numeric_slider", "heading" => esc_html__("Items gap", 'uncode'), "param_name" => "gutter_size", "min" => 0, "max" => 4, "step" => 1, "value" => 3, "description" => esc_html__("Set the items gap.", 'uncode'), "group" => esc_html__("Module", 'uncode')), array("type" => 'checkbox', "heading" => esc_html__("Inner module padding", 'uncode'), "param_name" => "inner_padding", "description" => esc_html__("Activate this to have an inner padding with the same size as the items gap.", 'uncode'), "value" => array(esc_html__("Yes, please", 'uncode') => 'yes'), "group" => esc_html__("Module", 'uncode'), 'dependency' => array('element' => 'type', 'value' => array('isotope'))), array('type' => 'sorted_list', 'heading' => esc_html__('Media', 'uncode'), 'param_name' => 'media_items', 'description' => esc_html__('Control teasers look. Enable blocks and place them in desired order. Note: This setting can be overridden on post to post basis.', 'uncode'), 'value' => 'media|lightbox|original,icon', "group" => esc_html__("Module", 'uncode'), 'options' => array(array('media', esc_html__('Media', 'uncode'), array(array('lightbox', esc_html__('Lightbox', 'uncode')), array('custom_link', esc_html__('Custom link', 'uncode')), array('nolink', esc_html__('No link', 'uncode'))), array(array('original', esc_html__('Original', 'uncode')), array('poster', esc_html__('Poster', 'uncode')))), array('icon', esc_html__('Icon', 'uncode')), array('title', esc_html__('Title', 'uncode')), array('caption', esc_html__('Caption', 'uncode')), array('description', esc_html__('Description', 'uncode')), array('sep-one', esc_html__('Separator One', 'uncode'), array(array('full', esc_html__('Full width', 'uncode')), array('reduced', esc_html__('Reduced width', 'uncode')))), array('sep-two', esc_html__('Separator Two', 'uncode'), array(array('full', esc_html__('Full width', 'uncode')), array('reduced', esc_html__('Reduced width', 'uncode')))), array('team-social', esc_html__('Team socials', 'uncode')))), array("type" => 'dropdown', "heading" => esc_html__("Carousel items height", 'uncode'), "param_name" => "carousel_height", "description" => esc_html__("Specify the carousel items height.", 'uncode'), "value" => array(esc_html__('Auto', 'uncode') => '', esc_html__('Equal height', 'uncode') => 'equal'), 'group' => esc_html__('Module', 'uncode')), array("type" => 'dropdown', "heading" => esc_html__("Items vertical alignment", 'uncode'), "param_name" => "carousel_v_align", "description" => esc_html__("Specify the items vertical alignment.", 'uncode'), "value" => array(esc_html__('Top', 'uncode') => '', esc_html__('Middle', 'uncode') => 'middle', esc_html__('Bottom', 'uncode') => 'bottom'), 'group' => esc_html__('Module', 'uncode'), 'dependency' => array('element' => 'type', 'value' => 'carousel'), 'dependency' => array('element' => 'carousel_height', 'is_empty' => true)), array('type' => 'dropdown', 'heading' => esc_html__('Transition type', 'uncode'), 'param_name' => 'carousel_type', "value" => array(esc_html__('Slide', 'uncode') => '', esc_html__('Fade', 'uncode') => 'fade'), 'description' => esc_html__('Specify the transition type.', 'uncode'), 'dependency' => array('element' => 'type', 'value' => 'carousel'), 'group' => esc_html__('Module', 'uncode')), array('type' => 'dropdown', 'heading' => esc_html__('Auto rotate slides', 'uncode'), 'param_name' => 'carousel_interval', 'value' => array(3000, 5000, 10000, 15000, esc_html__('Disable', 'uncode') => 0), 'description' => esc_html__('Specify the automatic timeout between slides in milliseconds.', 'uncode'), 'dependency' => array('element' => 'type', 'value' => 'carousel'), 'group' => esc_html__('Module', 'uncode')), array('type' => 'dropdown', 'heading' => esc_html__('Navigation speed', 'uncode'), 'param_name' => 'carousel_navspeed', 'value' => array(200, 400, 700, 1000, esc_html__('Disable', 'uncode') => 0), 'std' => 400, 'description' => esc_html__('Specify the navigation speed between slides in milliseconds.', 'uncode'), 'dependency' => array('element' => 'type', 'value' => 'carousel'), 'group' => esc_html__('Module', 'uncode')), array("type" => 'checkbox', "heading" => esc_html__("Loop", 'uncode'), "param_name" => "carousel_loop", "description" => esc_html__("Activate the loop option to make the carousel infinite.", 'uncode'), "value" => array(esc_html__("Yes, please", 'uncode') => 'yes'), "group" => esc_html__("Module", 'uncode'), 'dependency' => array('element' => 'type', 'value' => 'carousel')), array("type" => 'checkbox', "heading" => esc_html__("Navigation", 'uncode'), "param_name" => "carousel_nav", "description" => esc_html__("Activate the navigation to show navigational arrows.", 'uncode'), "value" => array(esc_html__("Yes, please", 'uncode') => 'yes'), "group" => esc_html__("Module", 'uncode'), 'dependency' => array('element' => 'type', 'value' => 'carousel')), array("type" => 'checkbox', "heading" => esc_html__("Mobile navigation", 'uncode'), "param_name" => "carousel_nav_mobile", "description" => esc_html__("Activate the navigation to show navigational arrows for mobile devices.", 'uncode'), "value" => array(esc_html__("Yes, please", 'uncode') => 'yes'), "group" => esc_html__("Module", 'uncode'), 'dependency' => array('element' => 'type', 'value' => 'carousel')), array("type" => 'dropdown', "heading" => esc_html__("Navigation skin", 'uncode'), "param_name" => "carousel_nav_skin", "description" => esc_html__("Specify the navigation arrows skin.", 'uncode'), "value" => array(esc_html__('Light', 'uncode') => 'light', esc_html__('Dark', 'uncode') => 'dark'), "group" => esc_html__("Module", 'uncode'), 'dependency' => array('element' => 'type', 'value' => 'carousel')), array("type" => 'checkbox', "heading" => esc_html__("Dots navigation", 'uncode'), "param_name" => "carousel_dots", "description" => esc_html__("Activate the dots navigation to show navigational dots in the bottom.", 'uncode'), "value" => array(esc_html__("Yes, please", 'uncode') => 'yes'), "group" => esc_html__("Module", 'uncode'), 'dependency' => array('element' => 'type', 'value' => 'carousel')), array("type" => 'checkbox', "heading" => esc_html__("Mobile dots navigation", 'uncode'), "param_name" => "carousel_dots_mobile", "description" => esc_html__("Activate the dots navigation to show navigational dots in the bottom for mobile devices.", 'uncode'), "value" => array(esc_html__("Yes, please", 'uncode') => 'yes'), "group" => esc_html__("Module", 'uncode'), 'dependency' => array('element' => 'type', 'value' => 'carousel')), array("type" => 'checkbox', "heading" => esc_html__("Dots navigation inside", 'uncode'), "param_name" => "carousel_dots_inside", "description" => esc_html__("Activate to have the dots navigation inside the carousel.", 'uncode'), "value" => array(esc_html__("Yes, please", 'uncode') => 'yes'), "group" => esc_html__("Module", 'uncode'), 'dependency' => array('element' => 'type', 'value' => 'carousel')), array("type" => 'checkbox', "heading" => esc_html__("Autoheight", 'uncode'), "param_name" => "carousel_autoh", "description" => esc_html__("Activate to adjust the height automatically when possible.", 'uncode'), "value" => array(esc_html__("Yes, please", 'uncode') => 'yes'), "group" => esc_html__("Module", 'uncode'), 'dependency' => array('element' => 'type', 'value' => 'carousel')), array("type" => 'checkbox', "heading" => esc_html__("Textual carousel ", 'uncode'), "param_name" => "carousel_textual", "description" => esc_html__("Activate this to have a carousel with only text.", 'uncode'), "value" => array(esc_html__("Yes, please", 'uncode') => 'yes'), "group" => esc_html__("Module", 'uncode'), 'dependency' => array('element' => 'type', 'value' => 'carousel')), array('type' => 'textfield', 'heading' => esc_html__('Breakpoint - First step', 'uncode'), 'param_name' => 'screen_lg', 'value' => 1000, 'description' => wp_kses(__('Insert the isotope large layout breakpoint in pixel.<br />N.B. This is referring to the width of the isotope container, not to the window width.', 'uncode'), array('br' => array())), 'group' => esc_html__('Module', 'uncode'), 'dependency' => array('element' => 'type', 'value' => array('isotope'))), array('type' => 'textfield', 'heading' => esc_html__('Breakpoint - Second step', 'uncode'), 'param_name' => 'screen_md', 'value' => 600, 'description' => wp_kses(__('Insert the isotope medium layout breakpoint in pixel.<br />N.B. This is referring to the width of the isotope container, not to the window width.', 'uncode'), array('br' => array())), 'group' => esc_html__('Module', 'uncode'), 'dependency' => array('element' => 'type', 'value' => array('isotope'))), array('type' => 'textfield', 'heading' => esc_html__('Breakpoint - Third step', 'uncode'), 'param_name' => 'screen_sm', 'value' => 480, 'description' => wp_kses(__('Insert the isotope small layout breakpoint in pixel.<br />N.B. This is referring to the width of the isotope container, not to the window width.', 'uncode'), array('br' => array())), 'group' => esc_html__('Module', 'uncode'), 'dependency' => array('element' => 'type', 'value' => array('isotope'))), array("type" => 'dropdown', "heading" => esc_html__("Block layout", 'uncode'), "param_name" => "single_text", "description" => esc_html__("Specify the text positioning inside the box.", 'uncode'), "value" => array(esc_html__('Content overlay', 'uncode') => 'overlay', esc_html__('Content under image', 'uncode') => 'under'), 'group' => esc_html__('Blocks', 'uncode')), array("type" => 'dropdown', "heading" => esc_html__("Width", 'uncode'), "param_name" => "single_width", "description" => esc_html__("Specify the box width.", 'uncode'), "value" => $units, "std" => "4", 'dependency' => array('element' => 'type', 'value' => array('isotope')), 'group' => esc_html__('Blocks', 'uncode')), array("type" => 'dropdown', "heading" => esc_html__("Height", 'uncode'), "param_name" => "single_height", "description" => esc_html__("Specify the box height.", 'uncode'), "value" => array(esc_html__("Default", 'uncode') => "") + $units, "std" => "", 'group' => esc_html__('Blocks', 'uncode'), 'dependency' => array('element' => 'type', 'value' => array('isotope')), 'dependency' => array('element' => 'style_preset', 'value' => 'metro')), array('type' => 'dropdown', 'heading' => esc_html__('Media ratio', 'uncode'), 'param_name' => 'images_size', 'description' => esc_html__('Specify the aspect ratio for the media.', 'uncode'), "value" => array(esc_html__('Regular', 'uncode') => '', esc_html__('1:1', 'uncode') => 'one-one', esc_html__('4:3', 'uncode') => 'four-three', esc_html__('3:2', 'uncode') => 'three-two', esc_html__('16:9', 'uncode') => 'sixteen-nine', esc_html__('21:9', 'uncode') => 'twentyone-nine', esc_html__('3:4', 'uncode') => 'three-four', esc_html__('2:3', 'uncode') => 'two-three', esc_html__('9:16', 'uncode') => 'nine-sixteen'), 'group' => esc_html__('Blocks', 'uncode'), 'dependency' => array('element' => 'style_preset', 'value' => 'masonry'), 'admin_label' => true), array("type" => "dropdown", "heading" => esc_html__("Background color", 'uncode'), "param_name" => "single_back_color", "description" => esc_html__("Specify a background color for the box.", 'uncode'), "value" => $uncode_colors, 'group' => esc_html__('Blocks', 'uncode')), array('type' => 'dropdown', 'heading' => esc_html__('Shape', 'uncode'), 'param_name' => 'single_shape', 'value' => array(esc_html__('Select…', 'uncode') => '', esc_html__('Rounded', 'uncode') => 'round', esc_html__('Circular', 'uncode') => 'circle'), 'description' => esc_html__('Specify one if you want to shape the block.', 'uncode'), 'group' => esc_html__('Blocks', 'uncode')), array("type" => 'dropdown', "heading" => esc_html__("Skin", 'uncode'), "param_name" => "single_style", "description" => esc_html__("Specify the skin inside the content box.", 'uncode'), "value" => array(esc_html__('Light', 'uncode') => 'light', esc_html__('Dark', 'uncode') => 'dark'), 'group' => esc_html__('Blocks', 'uncode')), array("type" => "dropdown", "heading" => esc_html__("Overlay color", 'uncode'), "param_name" => "single_overlay_color", "description" => esc_html__("Specify a background color for the box.", 'uncode'), "value" => $uncode_colors, 'group' => esc_html__('Blocks', 'uncode')), array("type" => 'dropdown', "heading" => esc_html__("Overlay coloration", 'uncode'), "param_name" => "single_overlay_coloration", "description" => wp_kses(__("Specify the coloration style for the overlay.<br />N.B. For the gradient you can't customize the overlay color.", 'uncode'), array('br' => array())), "value" => array(esc_html__('Fully colored', 'uncode') => '', esc_html__('Gradient top', 'uncode') => 'top_gradient', esc_html__('Gradient bottom', 'uncode') => 'bottom_gradient'), 'group' => esc_html__('Blocks', 'uncode')), array("type" => "type_numeric_slider", "heading" => esc_html__("Overlay opacity", 'uncode'), "param_name" => "single_overlay_opacity", "min" => 1, "max" => 100, "step" => 1, "value" => 50, "description" => esc_html__("Set the overlay opacity.", 'uncode'), 'group' => esc_html__('Blocks', 'uncode')), array("type" => 'dropdown', "heading" => esc_html__("Overlay text visibility", 'uncode'), "param_name" => "single_text_visible", "description" => esc_html__("Activate this to show the text as starting point.", 'uncode'), "value" => array(esc_html__('Hidden', 'uncode') => 'no', esc_html__('Visible', 'uncode') => 'yes'), "group" => esc_html__("Blocks", 'uncode')), array("type" => 'dropdown', "heading" => esc_html__("Overlay text animation", 'uncode'), "param_name" => "single_text_anim", "description" => esc_html__("Activate this to animate the text on mouse over.", 'uncode'), "value" => array(esc_html__('Animated', 'uncode') => 'yes', esc_html__('Static', 'uncode') => 'no'), "group" => esc_html__("Blocks", 'uncode')), array("type" => 'dropdown', "heading" => esc_html__("Overlay text animation type", 'uncode'), "param_name" => "single_text_anim_type", "description" => esc_html__("Specify the animation type.", 'uncode'), "value" => array(esc_html__('Opacity', 'uncode') => '', esc_html__('Bottom to top', 'uncode') => 'btt'), "group" => esc_html__("Blocks", 'uncode'), 'dependency' => array('element' => 'single_text_anim', 'value' => 'yes')), array("type" => 'dropdown', "heading" => esc_html__("Overlay visibility", 'uncode'), "param_name" => "single_overlay_visible", "description" => esc_html__("Activate this to show the overlay as starting point.", 'uncode'), "value" => array(esc_html__('Hidden', 'uncode') => 'no', esc_html__('Visible', 'uncode') => 'yes'), "group" => esc_html__("Blocks", 'uncode')), array("type" => 'dropdown', "heading" => esc_html__("Overlay animation", 'uncode'), "param_name" => "single_overlay_anim", "description" => esc_html__("Activate this to animate the overlay on mouse over.", 'uncode'), "value" => array(esc_html__('Animated', 'uncode') => 'yes', esc_html__('Static', 'uncode') => 'no'), "group" => esc_html__("Blocks", 'uncode')), array("type" => 'dropdown', "heading" => esc_html__("Image coloration", 'uncode'), "param_name" => "single_image_coloration", "description" => esc_html__("Specify the image coloration mode.", 'uncode'), "value" => array(esc_html__('Standard', 'uncode') => '', esc_html__('Desaturated', 'uncode') => 'desaturated'), "group" => esc_html__("Blocks", 'uncode')), array("type" => 'dropdown', "heading" => esc_html__("Image coloration animation", 'uncode'), "param_name" => "single_image_color_anim", "description" => esc_html__("Activate this to animate the image coloration on mouse over.", 'uncode'), "value" => array(esc_html__('Static', 'uncode') => '', esc_html__('Animated', 'uncode') => 'yes'), "group" => esc_html__("Blocks", 'uncode')), array("type" => 'dropdown', "heading" => esc_html__("Image animation", 'uncode'), "param_name" => "single_image_anim", "description" => esc_html__("Activate this to animate the image on mouse over.", 'uncode'), "value" => array(esc_html__('Animated', 'uncode') => 'yes', esc_html__('Static', 'uncode') => 'no'), "group" => esc_html__("Blocks", 'uncode')), array("type" => 'dropdown', "heading" => esc_html__("Text horizontal alignment", 'uncode'), "param_name" => "single_h_align", "description" => esc_html__("Specify the horizontal alignment.", 'uncode'), "value" => array(esc_html__('Left', 'uncode') => 'left', esc_html__('Center', 'uncode') => 'center', esc_html__('Right', 'uncode') => 'right', esc_html__('Justify', 'uncode') => 'justify'), 'group' => esc_html__('Blocks', 'uncode')), array("type" => 'dropdown', "heading" => esc_html__("Content vertical position", 'uncode'), "param_name" => "single_v_position", "description" => esc_html__("Specify the text vertical position.", 'uncode'), "value" => array(esc_html__('Middle', 'uncode') => '', esc_html__('Top', 'uncode') => 'top', esc_html__('Bottom', 'uncode') => 'bottom'), 'group' => esc_html__('Blocks', 'uncode')), array("type" => 'dropdown', "heading" => esc_html__("Content dimension reduced", 'uncode'), "param_name" => "single_reduced", "description" => esc_html__("Specify the text reduction amount to shrink the overlay content dimension.", 'uncode'), "value" => array(esc_html__('100%', 'uncode') => '', esc_html__('75%', 'uncode') => 'three_quarter', esc_html__('50%', 'uncode') => 'half'), "group" => esc_html__("Blocks", 'uncode')), array("type" => 'dropdown', "heading" => esc_html__("Content horizontal position", 'uncode'), "param_name" => "single_h_position", "description" => esc_html__("Specify the text horizontal position.", 'uncode'), "value" => array(esc_html__('Left', 'uncode') => 'left', esc_html__('Center', 'uncode') => 'center', esc_html__('Right', 'uncode') => 'right'), 'group' => esc_html__('Blocks', 'uncode'), 'dependency' => array('element' => 'single_reduced', 'not_empty' => true)), array("type" => "type_numeric_slider", "heading" => esc_html__("Padding around text", 'uncode'), "param_name" => "single_padding", "min" => 0, "max" => 5, "step" => 1, "value" => 2, "description" => esc_html__("Set the text padding", 'uncode'), "group" => esc_html__("Blocks", 'uncode')), array("type" => 'checkbox', "heading" => esc_html__("Reduce space between elements", 'uncode'), "param_name" => "single_text_reduced", "description" => esc_html__("Activate this to have less space between all the text elements inside the box.", 'uncode'), "value" => array(esc_html__("Yes, please", 'uncode') => 'yes'), "group" => esc_html__("Blocks", 'uncode')), array("type" => 'checkbox', "heading" => esc_html__("Multiple click areas", 'uncode'), "param_name" => "single_elements_click", "description" => esc_html__("Activate this to make every single elements clickable instead of the whole block (when availabe).", 'uncode'), "value" => array(esc_html__("Yes, please", 'uncode') => 'yes'), "group" => esc_html__("Blocks", 'uncode'), 'dependency' => array('element' => 'single_text', 'value' => 'overlay')), array("type" => 'dropdown', "heading" => esc_html__("Title text trasnform", 'uncode'), "param_name" => "single_title_transform", "description" => esc_html__("Specify the title text transformation.", 'uncode'), "value" => array(esc_html__('Default CSS', 'uncode') => '', esc_html__('Uppercase', 'uncode') => 'uppercase', esc_html__('Lowercase', 'uncode') => 'lowercase', esc_html__('Capitalize', 'uncode') => 'capitalize'), "group" => esc_html__("Blocks", 'uncode')), array("type" => 'dropdown', "heading" => esc_html__("Title dimension", 'uncode'), "param_name" => "single_title_dimension", "description" => esc_html__("Specify the title dimension.", 'uncode'), "value" => $heading_size, "group" => esc_html__("Blocks", 'uncode')), array("type" => 'dropdown', "heading" => esc_html__("Title font family", 'uncode'), "param_name" => "single_title_family", "description" => esc_html__("Specify the title font family.", 'uncode'), "value" => $heading_font, 'std' => '', "group" => esc_html__("Blocks", 'uncode')), array("type" => 'dropdown', "heading" => esc_html__("Title font weight", 'uncode'), "param_name" => "single_title_weight", "description" => esc_html__("Specify the title font weight.", 'uncode'), "value" => $heading_weight, 'std' => '', "group" => esc_html__("Blocks", 'uncode')), array("type" => 'dropdown', "heading" => esc_html__("Title line height", 'uncode'), "param_name" => "single_title_height", "description" => esc_html__("Specify the title line height.", 'uncode'), "value" => $heading_height, "group" => esc_html__("Blocks", 'uncode')), array("type" => 'dropdown', "heading" => esc_html__("Title letter spacing", 'uncode'), "param_name" => "single_title_space", "description" => esc_html__("Specify the title letter spacing.", 'uncode'), "value" => $heading_space, "group" => esc_html__("Blocks", 'uncode')), array('type' => 'iconpicker', 'heading' => esc_html__('Icon', 'uncode'), 'param_name' => 'single_icon', 'description' => esc_html__('Specify icon from library.', 'uncode'), 'value' => '', 'settings' => array('emptyIcon' => true, 'iconsPerPage' => 1100, 'type' => 'uncode'), 'group' => esc_html__('Blocks', 'uncode')), array('type' => 'vc_link', 'heading' => esc_html__('Custom link', 'uncode'), 'param_name' => 'single_link', 'description' => esc_html__('Enter the custom link for the item.', 'uncode'), 'group' => esc_html__('Blocks', 'uncode')), array("type" => 'checkbox', "heading" => esc_html__("Shadow", 'uncode'), "param_name" => "single_shadow", "description" => esc_html__("Activate this to have the shadow behind the block.", 'uncode'), "value" => array(esc_html__("Yes, please", 'uncode') => 'yes'), "group" => esc_html__("Blocks", 'uncode')), array("type" => 'checkbox', "heading" => esc_html__("No border", 'uncode'), "param_name" => "single_border", "description" => esc_html__("Activate this to remove the border around the block.", 'uncode'), "value" => array(esc_html__("Yes, please", 'uncode') => 'yes'), "group" => esc_html__("Blocks", 'uncode')), array_merge($add_css_animation, array("group" => esc_html__("Blocks", 'uncode'), "param_name" => 'single_css_animation')), array_merge($add_animation_speed, array("group" => esc_html__("Blocks", 'uncode'), "param_name" => 'single_animation_speed', 'dependency' => array('element' => 'single_css_animation', 'not_empty' => true))), array_merge($add_animation_delay, array("group" => esc_html__("Blocks", 'uncode'), "param_name" => 'single_animation_delay', 'dependency' => array('element' => 'single_css_animation', 'not_empty' => true))), array('type' => 'uncode_items', 'heading' => '', 'param_name' => 'items', 'description' => esc_html__('Enter text which will be used as widget title. Leave blank if no title is needed.', 'uncode'), 'group' => esc_html__('Single block', 'uncode')), array('type' => 'dropdown', 'heading' => 'Skin', 'param_name' => 'lbox_skin', 'value' => array(esc_html__('Dark', 'uncode') => '', esc_html__('Light', 'uncode') => 'white'), 'description' => esc_html__('Specify the lightbox skin color.', 'uncode'), 'group' => esc_html__('Lightbox', 'uncode')), array('type' => 'dropdown', 'heading' => 'Direction', 'param_name' => 'lbox_dir', 'value' => array(esc_html__('Horizontal', 'uncode') => '', esc_html__('Vertical', 'uncode') => 'vertical'), 'description' => esc_html__('Specify the lightbox sliding direction.', 'uncode'), 'group' => esc_html__('Lightbox', 'uncode')), array("type" => 'checkbox', "heading" => esc_html__("Title", 'uncode'), "param_name" => "lbox_title", "description" => esc_html__("Activate this to add the media title.", 'uncode'), "value" => array(esc_html__("Yes, please", 'uncode') => 'yes'), "group" => esc_html__("Lightbox", 'uncode')), array("type" => 'checkbox', "heading" => esc_html__("Caption", 'uncode'), "param_name" => "lbox_caption", "description" => esc_html__("Activate this to add the media caption.", 'uncode'), "value" => array(esc_html__("Yes, please", 'uncode') => 'yes'), "group" => esc_html__("Lightbox", 'uncode')), array("type" => 'checkbox', "heading" => esc_html__("Social", 'uncode'), "param_name" => "lbox_social", "description" => esc_html__("Activate this for the social sharing buttons.", 'uncode'), "value" => array(esc_html__("Yes, please", 'uncode') => 'yes'), "group" => esc_html__("Lightbox", 'uncode')), array("type" => 'checkbox', "heading" => esc_html__("Deeplinking", 'uncode'), "param_name" => "lbox_deep", "description" => esc_html__("Activate this for the deeplinking of every slide.", 'uncode'), "value" => array(esc_html__("Yes, please", 'uncode') => 'yes'), "group" => esc_html__("Lightbox", 'uncode')), array("type" => 'checkbox', "heading" => esc_html__("No thumbnails", 'uncode'), "param_name" => "lbox_no_tmb", "description" => esc_html__("Activate this for not showing the thumbnails.", 'uncode'), "value" => array(esc_html__("Yes, please", 'uncode') => 'yes'), "group" => esc_html__("Lightbox", 'uncode')), array("type" => 'checkbox', "heading" => esc_html__("No arrows", 'uncode'), "param_name" => "lbox_no_arrows", "description" => esc_html__("Activate this for not showing the navigation arrows.", 'uncode'), "value" => array(esc_html__("Yes, please", 'uncode') => 'yes'), "group" => esc_html__("Lightbox", 'uncode')), array('type' => 'textfield', 'heading' => esc_html__('Extra class name', 'uncode'), 'param_name' => 'el_class', 'description' => esc_html__('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.', 'uncode'), 'group' => esc_html__('Extra', 'uncode')))));
/* Text Block
 ---------------------------------------------------------- */
vc_map(array('name' => esc_html__('Text Block', 'uncode'), 'base' => 'vc_column_text', 'weight' => 98, 'icon' => 'fa fa-font', 'wrapper_class' => 'clearfix', 'php_class_name' => 'uncode_generic_admin', 'category' => esc_html__('Content', 'uncode'), 'description' => esc_html__('Basic block of text', 'uncode'), 'params' => array(array('type' => 'textarea_html', 'holder' => 'div', 'heading' => esc_html__('Text', 'uncode'), 'param_name' => 'content', 'value' => wp_kses(__('<p>I am text block. Click edit button to change this text. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.</p>', 'uncode'), array('p' => array()))), array("type" => 'checkbox', "heading" => esc_html__("Text lead", 'uncode'), "param_name" => "text_lead", "description" => esc_html__("Transform the text to leading.", 'uncode'), "value" => array('' => 'yes')), $add_css_animation, $add_animation_speed, $add_animation_delay, array('type' => 'textfield', 'heading' => esc_html__('Extra class name', 'uncode'), 'param_name' => 'el_class', 'description' => esc_html__('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.', 'uncode')), array('type' => 'css_editor', 'heading' => esc_html__('Css', 'uncode'), 'param_name' => 'css', 'group' => esc_html__('Custom', 'uncode')), array("type" => "dropdown", "heading" => esc_html__("Border color", 'uncode'), "param_name" => "border_color", "description" => esc_html__("Specify a border color.", 'uncode'), "group" => esc_html__("Custom", 'uncode'), "value" => $uncode_colors_w_transp), array("type" => "dropdown", "heading" => esc_html__("Border style", 'uncode'), "param_name" => "border_style", "description" => esc_html__("Specify a border style.", 'uncode'), "group" => esc_html__("Custom", 'uncode'), "value" => $border_style)), 'js_view' => 'UncodeTextView'));
/* Separator (Divider)
 ---------------------------------------------------------- */
vc_map(array('name' => esc_html__('Divider', 'uncode'), 'base' => 'vc_separator', 'icon' => 'fa fa-arrows-h', 'show_settings_on_create' => true, 'category' => esc_html__('Content', 'uncode'), 'description' => esc_html__('Horizontal divider', 'uncode'), 'params' => array(array("type" => "dropdown", "heading" => esc_html__("Color", 'uncode'), "param_name" => "sep_color", "description" => esc_html__("Separator color.", 'uncode'), "value" => $uncode_colors), array('type' => 'iconpicker', 'heading' => esc_html__('Icon', 'uncode'), 'param_name' => 'icon', 'description' => esc_html__('Specify icon from library.', 'uncode'), 'value' => '', 'settings' => array('emptyIcon' => true, 'iconsPerPage' => 1100, 'type' => 'uncode')), array('type' => 'dropdown', 'heading' => esc_html__('Icon position', 'uncode'), 'param_name' => 'icon_position', 'value' => array(esc_html__('Center', 'uncode') => '', esc_html__('Left', 'uncode') => 'left', esc_html__('Right', 'uncode') => "right"), 'description' => esc_html__('Specify title location.', 'uncode')), array('type' => 'dropdown', 'heading' => esc_html__('Style', 'uncode'), 'param_name' => 'type', 'value' => getVcShared('separator styles'), 'description' => esc_html__('Separator style.', 'uncode')), array('type' => 'textfield', 'heading' => esc_html__('Custom width', 'uncode'), 'param_name' => 'el_width', 'description' => esc_html__('Insert the custom value in % or px.', 'uncode')), array('type' => 'textfield', 'heading' => esc_html__('Custom thickness', 'uncode'), 'param_name' => 'el_height', 'description' => esc_html__('Insert the custom value in em or px. This option can\'t be used with the separator with the icon. ', 'uncode')), array('type' => 'checkbox', 'heading' => esc_html__('Activate scroll to top', 'uncode'), 'param_name' => 'scroll_top', 'description' => esc_html__('Activate if you want the scroll top function with the icon.', 'uncode'), 'value' => array(esc_html__('Yes, please', 'uncode') => 'yes'), 'dependency' => array('element' => 'icon', 'not_empty' => true)), array('type' => 'vc_link', 'heading' => esc_html__('URL (Link)', 'uncode'), 'param_name' => 'link', 'description' => esc_html__('Separator link.', 'uncode'), 'dependency' => array('element' => 'icon', 'not_empty' => true)), $add_css_animation, $add_animation_speed, $add_animation_delay, array('type' => 'textfield', 'heading' => esc_html__('Extra class name', 'uncode'), 'param_name' => 'el_class', 'description' => esc_html__('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.', 'uncode')))));
/* Message box
 ---------------------------------------------------------- */
vc_map(array('name' => esc_html__('Message Box', 'uncode'), 'base' => 'vc_message', 'php_class_name' => 'uncode_message', 'icon' => 'fa fa-info', 'category' => esc_html__('Content', 'uncode'), 'description' => esc_html__('Notification element', 'uncode'), 'params' => array(array('type' => 'dropdown', 'heading' => esc_html__('Message box type', 'uncode'), 'param_name' => 'message_color', 'admin_label' => true, 'value' => $uncode_colors, 'description' => esc_html__('Specify message type.', 'uncode'), 'param_holder_class' => 'vc_message-type'), array('type' => 'textarea_html', 'class' => 'messagebox_text', 'param_name' => 'content', 'heading' => esc_html__('Message text', 'uncode'), 'value' => wp_kses(__('<p>I am message box. Click edit button to change this text.</p>', 'uncode'), array('p' => array()))), $add_css_animation, $add_animation_speed, $add_animation_delay, array('type' => 'textfield', 'heading' => esc_html__('Extra class name', 'uncode'), 'param_name' => 'el_class', 'description' => esc_html__('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.', 'uncode')))));
/* Single image */
vc_map(array('name' => esc_html__('Single Media', 'uncode'), 'base' => 'vc_single_image', 'icon' => 'fa fa-image', 'weight' => 101, 'php_class_name' => 'uncode_generic_admin', 'category' => esc_html__('Content', 'uncode'), 'description' => esc_html__('Simple media item', 'uncode'), 'params' => array(array('type' => 'textfield', 'heading' => esc_html__('Widget title', 'uncode'), 'param_name' => 'title', 'description' => esc_html__('Enter text which will be used as widget title. Leave blank if no title is needed.', 'uncode')), array("type" => "media_element", "heading" => esc_html__("Media", 'uncode'), "param_name" => "media", "value" => "", "description" => esc_html__("Specify a media from the media library.", 'uncode'), "admin_label" => true), array("type" => 'checkbox', "heading" => esc_html__("Caption", 'uncode'), "param_name" => "caption", "description" => 'Activate to have the caption under the image.', "value" => array('' => 'yes')), array('type' => 'checkbox', 'heading' => esc_html__('Lightbox', 'uncode'), 'param_name' => 'media_lightbox', 'description' => esc_html__('Activate if you want to open the media in the lightbox.', 'uncode'), 'value' => array(esc_html__('Yes, please', 'uncode') => 'yes')), array('type' => 'vc_link', 'heading' => esc_html__('URL (Link)', 'uncode'), 'param_name' => 'media_link', 'description' => esc_html__('Enter URL if you want this image to have a link.', 'uncode'), 'dependency' => array('element' => 'media_link_large', 'is_empty' => true)), array("type" => 'checkbox', "heading" => esc_html__("Width", 'uncode'), "param_name" => "media_width_use_pixel", "description" => 'Set this value if you want to have a row height indipendent from the content.', "group" => esc_html__("Aspect", 'uncode'), "value" => array('' => 'yes')), array("type" => "type_numeric_slider", "heading" => '', "param_name" => "media_width_percent", "min" => 0, "max" => 100, "step" => 1, "value" => 100, "description" => esc_html__("Set the media width with a percent value.", 'uncode'), "group" => esc_html__("Aspect", 'uncode'), 'dependency' => array('element' => 'media_width_use_pixel', 'is_empty' => true)), array('type' => 'textfield', 'heading' => '', 'param_name' => 'media_width_pixel', 'description' => esc_html__("Insert the row width in pixel.", 'uncode'), "group" => esc_html__("Aspect", 'uncode'), 'dependency' => array('element' => 'media_width_use_pixel', 'value' => 'yes')), array('type' => 'dropdown', 'heading' => esc_html__('Aspect ratio', 'uncode'), 'param_name' => 'media_ratio', 'description' => esc_html__('Specify the aspect ratio for the media.', 'uncode'), "value" => array(esc_html__('Regular', 'uncode') => '', esc_html__('1:1', 'uncode') => 'one-one', esc_html__('4:3', 'uncode') => 'four-three', esc_html__('3:2', 'uncode') => 'three-two', esc_html__('16:9', 'uncode') => 'sixteen-nine', esc_html__('21:9', 'uncode') => 'twentyone-nine', esc_html__('3:4', 'uncode') => 'three-four', esc_html__('2:3', 'uncode') => 'two-three', esc_html__('9:16', 'uncode') => 'nine-sixteen'), 'group' => esc_html__('Aspect', 'uncode'), 'admin_label' => true), array('type' => 'dropdown', 'heading' => esc_html__('Alignment', 'uncode'), 'param_name' => 'alignment', 'value' => array(esc_html__('Align left', 'uncode') => '', esc_html__('Align right', 'uncode') => 'right', esc_html__('Align center', 'uncode') => 'center'), 'description' => esc_html__('Specify image alignment.', 'uncode'), "group" => esc_html__("Aspect", 'uncode')), array('type' => 'dropdown', 'heading' => esc_html__('Shape', 'uncode'), 'param_name' => 'shape', 'value' => array(esc_html__('Select…', 'uncode') => '', esc_html__('Rounded', 'uncode') => 'img-round', esc_html__('Circular', 'uncode') => 'img-circle'), 'description' => esc_html__('Specify media shape.', 'uncode'), "group" => esc_html__("Aspect", 'uncode')), array("type" => 'checkbox', "heading" => esc_html__("Thumbnail border", 'uncode'), "param_name" => "border", "description" => 'Activate to have a border around like a thumbnail.', "group" => esc_html__("Aspect", 'uncode'), "value" => array('' => 'yes')), array("type" => 'checkbox', "heading" => esc_html__("Shadow", 'uncode'), "param_name" => "shadow", "description" => 'Activate to have a shadow.', "group" => esc_html__("Aspect", 'uncode'), "value" => array('' => 'yes')), array("type" => 'checkbox', "heading" => esc_html__("Activate advanced preset", 'uncode'), "param_name" => "advanced", "description" => 'Activate if you want to have advanced options.', "group" => esc_html__("Aspect", 'uncode'), "value" => array('' => 'yes')), array('type' => 'sorted_list', 'heading' => esc_html__('Media', 'uncode'), 'param_name' => 'media_items', 'description' => esc_html__('Control teasers look. Enable blocks and place them in desired order. Note: This setting can be overridden on post to post basis.', 'uncode'), 'value' => 'media', "group" => esc_html__("Advanced", 'uncode'), 'dependency' => array('element' => 'advanced', 'value' => 'yes'), 'options' => array(array('media', esc_html__('Media', 'uncode'), array(array('original', esc_html__('Original', 'uncode')), array('poster', esc_html__('Poster', 'uncode')))), array('icon', esc_html__('Icon', 'uncode')), array('title', esc_html__('Title', 'uncode')), array('caption', esc_html__('Caption', 'uncode')), array('description', esc_html__('Description', 'uncode')), array('sep-one', esc_html__('Separator One', 'uncode'), array(array('full', esc_html__('Full width', 'uncode')), array('reduced', esc_html__('Reduced width', 'uncode')))), array('sep-two', esc_html__('Separator Two', 'uncode'), array(array('full', esc_html__('Full width', 'uncode')), array('reduced', esc_html__('Reduced width', 'uncode')))), array('team-social', esc_html__('Team socials', 'uncode')))), array("type" => 'dropdown', "heading" => esc_html__("Block layout", 'uncode'), "param_name" => "media_text", "description" => esc_html__("Specify the text positioning inside the box.", 'uncode'), "value" => array(esc_html__('Content overlay', 'uncode') => 'overlay', esc_html__('Content under image', 'uncode') => 'under'), 'dependency' => array('element' => 'advanced', 'value' => 'yes'), 'group' => esc_html__('Advanced', 'uncode')), array("type" => 'dropdown', "heading" => esc_html__("Skin", 'uncode'), "param_name" => "media_style", "description" => esc_html__("Specify the skin inside the content box.", 'uncode'), "value" => array(esc_html__('Light', 'uncode') => 'light', esc_html__('Dark', 'uncode') => 'dark'), 'dependency' => array('element' => 'advanced', 'value' => 'yes'), 'group' => esc_html__('Advanced', 'uncode')), array("type" => "dropdown", "heading" => esc_html__("Background color", 'uncode'), "param_name" => "media_back_color", "description" => esc_html__("Specify a background color for the box.", 'uncode'), "value" => $uncode_colors, 'group' => esc_html__('Advanced', 'uncode'), 'dependency' => array('element' => 'advanced', 'value' => 'yes')), array("type" => "dropdown", "heading" => esc_html__("Overlay color", 'uncode'), "param_name" => "media_overlay_color", "description" => esc_html__("Specify a background color for the box.", 'uncode'), "value" => $uncode_colors, 'group' => esc_html__('Advanced', 'uncode'), 'dependency' => array('element' => 'advanced', 'value' => 'yes')), array("type" => 'dropdown', "heading" => esc_html__("Overlay coloration", 'uncode'), "param_name" => "media_overlay_coloration", "description" => wp_kses(__("Specify the coloration style for the overlay.<br />N.B. For the gradient you can't customize the overlay color.", 'uncode'), array('br' => array())), "value" => array(esc_html__('Fully colored', 'uncode') => '', esc_html__('Gradient top', 'uncode') => 'top_gradient', esc_html__('Gradient bottom', 'uncode') => 'bottom_gradient'), 'dependency' => array('element' => 'advanced', 'value' => 'yes'), 'group' => esc_html__('Advanced', 'uncode')), array("type" => "type_numeric_slider", "heading" => esc_html__("Overlay opacity", 'uncode'), "param_name" => "media_overlay_opacity", "min" => 1, "max" => 100, "step" => 1, "value" => 50, "description" => esc_html__("Set the overlay opacity.", 'uncode'), 'dependency' => array('element' => 'advanced', 'value' => 'yes'), 'group' => esc_html__('Advanced', 'uncode')), array("type" => 'dropdown', "heading" => esc_html__("Overlay text visibility", 'uncode'), "param_name" => "media_text_visible", "description" => esc_html__("Activate this to show the text as starting point.", 'uncode'), "value" => array(esc_html__('Hidden', 'uncode') => 'no', esc_html__('Visible', 'uncode') => 'yes'), 'dependency' => array('element' => 'advanced', 'value' => 'yes'), "group" => esc_html__("Advanced", 'uncode')), array("type" => 'dropdown', "heading" => esc_html__("Overlay text animation", 'uncode'), "param_name" => "media_text_anim", "description" => esc_html__("Activate this to animate the text on mouse over.", 'uncode'), "value" => array(esc_html__('Animated', 'uncode') => 'yes', esc_html__('Static', 'uncode') => 'no'), 'dependency' => array('element' => 'advanced', 'value' => 'yes'), "group" => esc_html__("Advanced", 'uncode')), array("type" => 'dropdown', "heading" => esc_html__("Overlay text animation type", 'uncode'), "param_name" => "media_text_anim_type", "description" => esc_html__("Specify the animation type.", 'uncode'), "value" => array(esc_html__('Opacity', 'uncode') => '', esc_html__('Bottom to top', 'uncode') => 'btt'), "group" => esc_html__("Advanced", 'uncode'), 'dependency' => array('element' => 'media_text_anim', 'value' => 'yes'), 'dependency' => array('element' => 'advanced', 'value' => 'yes')), array("type" => 'dropdown', "heading" => esc_html__("Overlay visibility", 'uncode'), "param_name" => "media_overlay_visible", "description" => esc_html__("Activate this to show the overlay as starting point.", 'uncode'), "value" => array(esc_html__('Hidden', 'uncode') => 'no', esc_html__('Visible', 'uncode') => 'yes'), 'dependency' => array('element' => 'advanced', 'value' => 'yes'), "group" => esc_html__("Advanced", 'uncode')), array("type" => 'dropdown', "heading" => esc_html__("Overlay animation", 'uncode'), "param_name" => "media_overlay_anim", "description" => esc_html__("Activate this to animate the overlay on mouse over.", 'uncode'), "value" => array(esc_html__('Animated', 'uncode') => 'yes', esc_html__('Static', 'uncode') => 'no'), 'dependency' => array('element' => 'advanced', 'value' => 'yes'), "group" => esc_html__("Advanced", 'uncode')), array("type" => 'dropdown', "heading" => esc_html__("Image coloration", 'uncode'), "param_name" => "media_image_coloration", "description" => esc_html__("Specify the image coloration mode.", 'uncode'), "value" => array(esc_html__('Standard', 'uncode') => '', esc_html__('Desaturated', 'uncode') => 'desaturated'), 'dependency' => array('element' => 'advanced', 'value' => 'yes'), "group" => esc_html__("Advanced", 'uncode')), array("type" => 'dropdown', "heading" => esc_html__("Image coloration animation", 'uncode'), "param_name" => "media_image_color_anim", "description" => esc_html__("Activate this to animate the image coloration on mouse over.", 'uncode'), "value" => array(esc_html__('Static', 'uncode') => '', esc_html__('Animated', 'uncode') => 'yes'), 'dependency' => array('element' => 'advanced', 'value' => 'yes'), "group" => esc_html__("Advanced", 'uncode')), array("type" => 'dropdown', "heading" => esc_html__("Image animation", 'uncode'), "param_name" => "media_image_anim", "description" => esc_html__("Activate this to animate the image on mouse over.", 'uncode'), "value" => array(esc_html__('Animated', 'uncode') => 'yes', esc_html__('Static', 'uncode') => 'no'), 'dependency' => array('element' => 'advanced', 'value' => 'yes'), "group" => esc_html__("Advanced", 'uncode')), array("type" => 'dropdown', "heading" => esc_html__("Text horizontal alignment", 'uncode'), "param_name" => "media_h_align", "description" => esc_html__("Specify the horizontal alignment.", 'uncode'), "value" => array(esc_html__('Left', 'uncode') => 'left', esc_html__('Center', 'uncode') => 'center', esc_html__('Right', 'uncode') => 'right', esc_html__('Justify', 'uncode') => 'justify'), 'dependency' => array('element' => 'advanced', 'value' => 'yes'), 'group' => esc_html__('Advanced', 'uncode')), array("type" => 'dropdown', "heading" => esc_html__("Content vertical position", 'uncode'), "param_name" => "media_v_position", "description" => esc_html__("Specify the text vertical position.", 'uncode'), "value" => array(esc_html__('Middle', 'uncode') => '', esc_html__('Top', 'uncode') => 'top', esc_html__('Bottom', 'uncode') => 'bottom'), 'dependency' => array('element' => 'advanced', 'value' => 'yes'), 'group' => esc_html__('Advanced', 'uncode')), array("type" => 'dropdown', "heading" => esc_html__("Content dimension reduced", 'uncode'), "param_name" => "media_reduced", "description" => esc_html__("Specify the text reduction amount to shrink the overlay content dimension.", 'uncode'), "value" => array(esc_html__('100%', 'uncode') => '', esc_html__('75%', 'uncode') => 'three_quarter', esc_html__('50%', 'uncode') => 'half'), 'dependency' => array('element' => 'advanced', 'value' => 'yes'), "group" => esc_html__("Advanced", 'uncode')), array("type" => 'dropdown', "heading" => esc_html__("Content horizontal position", 'uncode'), "param_name" => "media_h_position", "description" => esc_html__("Specify the text horizontal position.", 'uncode'), "value" => array(esc_html__('Left', 'uncode') => 'left', esc_html__('Center', 'uncode') => 'center', esc_html__('Right', 'uncode') => 'right'), 'group' => esc_html__('Advanced', 'uncode'), 'dependency' => array('element' => 'media_reduced', 'not_empty' => true), 'dependency' => array('element' => 'advanced', 'value' => 'yes')), array("type" => "type_numeric_slider", "heading" => esc_html__("Padding around text", 'uncode'), "param_name" => "media_padding", "min" => 0, "max" => 5, "step" => 1, "value" => 2, "description" => esc_html__("Set the text padding", 'uncode'), 'dependency' => array('element' => 'advanced', 'value' => 'yes'), "group" => esc_html__("Advanced", 'uncode')), array("type" => 'checkbox', "heading" => esc_html__("Reduce space between elements", 'uncode'), "param_name" => "media_text_reduced", "description" => esc_html__("Activate this to have less space between all the text elements inside the box.", 'uncode'), "value" => array(esc_html__("Yes, please", 'uncode') => 'yes'), 'dependency' => array('element' => 'advanced', 'value' => 'yes'), "group" => esc_html__("Advanced", 'uncode')), array("type" => 'checkbox', "heading" => esc_html__("Multiple click areas", 'uncode'), "param_name" => "media_elements_click", "description" => esc_html__("Activate this to make every single elements clickable instead of the whole block (when availabe).", 'uncode'), "value" => array(esc_html__("Yes, please", 'uncode') => 'yes'), "group" => esc_html__("Advanced", 'uncode'), 'dependency' => array('element' => 'media_text', 'value' => 'overlay'), 'dependency' => array('element' => 'advanced', 'value' => 'yes')), array("type" => 'dropdown', "heading" => esc_html__("Title text transform", 'uncode'), "param_name" => "media_title_transform", "description" => esc_html__("Specify the title text transformation.", 'uncode'), "value" => array(esc_html__('Default CSS', 'uncode') => '', esc_html__('Uppercase', 'uncode') => 'uppercase', esc_html__('Lowercase', 'uncode') => 'lowercase', esc_html__('Capitalize', 'uncode') => 'capitalize'), "group" => esc_html__("Advanced", 'uncode'), 'dependency' => array('element' => 'advanced', 'value' => 'yes')), array("type" => 'dropdown', "heading" => esc_html__("Title dimension", 'uncode'), "param_name" => "media_title_dimension", "description" => esc_html__("Specify the title dimension.", 'uncode'), "value" => $heading_size, "group" => esc_html__("Advanced", 'uncode'), 'dependency' => array('element' => 'advanced', 'value' => 'yes')), array("type" => 'dropdown', "heading" => esc_html__("Title font family", 'uncode'), "param_name" => "media_title_family", "description" => esc_html__("Specify the title font family.", 'uncode'), "value" => $heading_font, 'std' => '', "group" => esc_html__("Advanced", 'uncode'), 'dependency' => array('element' => 'advanced', 'value' => 'yes')), array("type" => 'dropdown', "heading" => esc_html__("Title font weight", 'uncode'), "param_name" => "media_title_weight", "description" => esc_html__("Specify the title font weight.", 'uncode'), "value" => $heading_weight, 'std' => '', "group" => esc_html__("Advanced", 'uncode'), 'dependency' => array('element' => 'advanced', 'value' => 'yes')), array("type" => 'dropdown', "heading" => esc_html__("Title line height", 'uncode'), "param_name" => "media_title_height", "description" => esc_html__("Specify the title line height.", 'uncode'), "value" => $heading_height, "group" => esc_html__("Advanced", 'uncode'), 'dependency' => array('element' => 'advanced', 'value' => 'yes')), array("type" => 'dropdown', "heading" => esc_html__("Title letter spacing", 'uncode'), "param_name" => "media_title_space", "description" => esc_html__("Specify the title letter spacing.", 'uncode'), "value" => $heading_space, "group" => esc_html__("Advanced", 'uncode'), 'dependency' => array('element' => 'advanced', 'value' => 'yes')), array('type' => 'iconpicker', 'heading' => esc_html__('Icon', 'uncode'), 'param_name' => 'media_icon', 'description' => esc_html__('Specify icon from library.', 'uncode'), 'value' => '', 'settings' => array('emptyIcon' => true, 'iconsPerPage' => 1100, 'type' => 'uncode'), 'dependency' => array('element' => 'advanced', 'value' => 'yes'), 'group' => esc_html__('Advanced', 'uncode')), $add_css_animation, $add_animation_speed, $add_animation_delay, array('type' => 'dropdown', 'heading' => 'Skin', 'param_name' => 'lbox_skin', 'value' => array(esc_html__('Dark', 'uncode') => '', esc_html__('Light', 'uncode') => 'white'), 'description' => esc_html__('Specify the lightbox skin color.', 'uncode'), 'group' => esc_html__('Lightbox', 'uncode')), array('type' => 'dropdown', 'heading' => 'Direction', 'param_name' => 'lbox_dir', 'value' => array(esc_html__('Horizontal', 'uncode') => '', esc_html__('Vertical', 'uncode') => 'vertical'), 'description' => esc_html__('Specify the lightbox sliding direction.', 'uncode'), 'group' => esc_html__('Lightbox', 'uncode')), array("type" => 'checkbox', "heading" => esc_html__("Title", 'uncode'), "param_name" => "lbox_title", "description" => esc_html__("Activate this to add the media title.", 'uncode'), "value" => array(esc_html__("Yes, please", 'uncode') => 'yes'), "group" => esc_html__("Lightbox", 'uncode')), array("type" => 'checkbox', "heading" => esc_html__("Caption", 'uncode'), "param_name" => "lbox_caption", "description" => esc_html__("Activate this to add the media caption.", 'uncode'), "value" => array(esc_html__("Yes, please", 'uncode') => 'yes'), "group" => esc_html__("Lightbox", 'uncode')), array("type" => 'checkbox', "heading" => esc_html__("Social", 'uncode'), "param_name" => "lbox_social", "description" => esc_html__("Activate this for the social sharing buttons.", 'uncode'), "value" => array(esc_html__("Yes, please", 'uncode') => 'yes'), "group" => esc_html__("Lightbox", 'uncode')), array("type" => 'checkbox', "heading" => esc_html__("Deeplinking", 'uncode'), "param_name" => "lbox_deep", "description" => esc_html__("Activate this for the deeplinking of every slide.", 'uncode'), "value" => array(esc_html__("Yes, please", 'uncode') => 'yes'), "group" => esc_html__("Lightbox", 'uncode')), array("type" => 'checkbox', "heading" => esc_html__("No thumbnails", 'uncode'), "param_name" => "lbox_no_tmb", "description" => esc_html__("Activate this for not showing the thumbnails.", 'uncode'), "value" => array(esc_html__("Yes, please", 'uncode') => 'yes'), "group" => esc_html__("Lightbox", 'uncode')), array("type" => 'checkbox', "heading" => esc_html__("No arrows", 'uncode'), "param_name" => "lbox_no_arrows", "description" => esc_html__("Activate this for not showing the navigation arrows.", 'uncode'), "value" => array(esc_html__("Yes, please", 'uncode') => 'yes'), "group" => esc_html__("Lightbox", 'uncode')), array('type' => 'textfield', 'heading' => esc_html__('Extra class name', 'uncode'), 'param_name' => 'el_class', "group" => esc_html__("Extra", 'uncode'), 'description' => esc_html__('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.', 'uncode')))));
/* Tabs
 ---------------------------------------------------------- */
$tab_id_1 = time() . '-1-' . rand(0, 100);
$tab_id_2 = time() . '-2-' . rand(0, 100);
vc_map(array("name" => esc_html__('Tabs', 'uncode'), 'base' => 'vc_tabs', 'show_settings_on_create' => false, 'is_container' => true, 'icon' => 'fa fa-folder', 'category' => esc_html__('Content', 'uncode'), 'description' => esc_html__('Tabbed contents', 'uncode'), 'params' => array(array('type' => 'textfield', 'heading' => esc_html__('Widget title', 'uncode'), 'param_name' => 'title', 'description' => esc_html__('Enter text which will be used as widget title. Leave blank if no title is needed.', 'uncode')), array('type' => 'checkbox', 'heading' => esc_html__('Vertical tabs', 'uncode'), 'param_name' => 'vertical', 'description' => esc_html__('Specify checkbox to allow all sections to be collapsible.', 'uncode'), 'value' => array(esc_html__("Yes, please", 'uncode') => 'yes')), array('type' => 'textfield', 'heading' => esc_html__('Extra class name', 'uncode'), 'param_name' => 'el_class', 'description' => esc_html__('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.', 'uncode'))), 'custom_markup' => '
<div class="wpb_tabs_holder wpb_holder vc_container_for_children">
<ul class="tabs_controls">
</ul>
%content%
</div>', 'default_content' => '
<?php

global $vc_add_css_animation;
/*
 * Icon Element
 * @since 4.4
 */
vc_map(array('name' => __('Icon', 'js_composer'), 'base' => 'vc_icon', 'icon' => 'icon-wpb-vc_icon', 'category' => __('Content', 'js_composer'), 'description' => __('Eye catching icons from libraries', 'js_composer'), 'params' => array(array('type' => 'dropdown', 'heading' => __('Icon library', 'js_composer'), 'value' => array(__('Font Awesome', 'js_composer') => 'fontawesome', __('Open Iconic', 'js_composer') => 'openiconic', __('Typicons', 'js_composer') => 'typicons', __('Entypo', 'js_composer') => 'entypo', __('Linecons', 'js_composer') => 'linecons'), 'admin_label' => true, 'param_name' => 'type', 'description' => __('Select icon library.', 'js_composer')), array('type' => 'iconpicker', 'heading' => __('Icon', 'js_composer'), 'param_name' => 'icon_fontawesome', 'value' => 'fa fa-adjust', 'settings' => array('emptyIcon' => false, 'iconsPerPage' => 4000), 'dependency' => array('element' => 'type', 'value' => 'fontawesome'), 'description' => __('Select icon from library.', 'js_composer')), array('type' => 'iconpicker', 'heading' => __('Icon', 'js_composer'), 'param_name' => 'icon_openiconic', 'value' => 'vc-oi vc-oi-dial', 'settings' => array('emptyIcon' => false, 'type' => 'openiconic', 'iconsPerPage' => 4000), 'dependency' => array('element' => 'type', 'value' => 'openiconic'), 'description' => __('Select icon from library.', 'js_composer')), array('type' => 'iconpicker', 'heading' => __('Icon', 'js_composer'), 'param_name' => 'icon_typicons', 'value' => 'typcn typcn-adjust-brightness', 'settings' => array('emptyIcon' => false, 'type' => 'typicons', 'iconsPerPage' => 4000), 'dependency' => array('element' => 'type', 'value' => 'typicons'), 'description' => __('Select icon from library.', 'js_composer')), array('type' => 'iconpicker', 'heading' => __('Icon', 'js_composer'), 'param_name' => 'icon_entypo', 'value' => 'entypo-icon entypo-icon-note', 'settings' => array('emptyIcon' => false, 'type' => 'entypo', 'iconsPerPage' => 4000), 'dependency' => array('element' => 'type', 'value' => 'entypo')), array('type' => 'iconpicker', 'heading' => __('Icon', 'js_composer'), 'param_name' => 'icon_linecons', 'value' => 'vc_li vc_li-heart', 'settings' => array('emptyIcon' => false, 'type' => 'linecons', 'iconsPerPage' => 4000), 'dependency' => array('element' => 'type', 'value' => 'linecons'), 'description' => __('Select icon from library.', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Icon color', 'js_composer'), 'param_name' => 'color', 'value' => array_merge(getVcShared('colors'), array(__('Custom color', 'js_composer') => 'custom')), 'description' => __('Select icon color.', 'js_composer'), 'param_holder_class' => 'vc_colored-dropdown'), array('type' => 'colorpicker', 'heading' => __('Custom color', 'js_composer'), 'param_name' => 'custom_color', 'description' => __('Select custom icon color.', 'js_composer'), 'dependency' => array('element' => 'color', 'value' => 'custom')), array('type' => 'dropdown', 'heading' => __('Background shape', 'js_composer'), 'param_name' => 'background_style', 'value' => array(__('None', 'js_composer') => '', __('Circle', 'js_composer') => 'rounded', __('Square', 'js_composer') => 'boxed', __('Rounded', 'js_composer') => 'rounded-less', __('Outline Circle', 'js_composer') => 'rounded-outline', __('Outline Square', 'js_composer') => 'boxed-outline', __('Outline Rounded', 'js_composer') => 'rounded-less-outline'), 'description' => __('Select background shape and style for icon.', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Background color', 'js_composer'), 'param_name' => 'background_color', 'value' => array_merge(getVcShared('colors'), array(__('Custom color', 'js_composer') => 'custom')), 'std' => 'grey', 'description' => __('Select background color for icon.', 'js_composer'), 'param_holder_class' => 'vc_colored-dropdown', 'dependency' => array('element' => 'background_style', 'not_empty' => true)), array('type' => 'colorpicker', 'heading' => __('Custom background color', 'js_composer'), 'param_name' => 'custom_background_color', 'description' => __('Select custom icon background color.', 'js_composer'), 'dependency' => array('element' => 'background_color', 'value' => 'custom')), array('type' => 'dropdown', 'heading' => __('Size', 'js_composer'), 'param_name' => 'size', 'value' => array_merge(getVcShared('sizes'), array('Extra Large' => 'xl')), 'std' => 'md', 'description' => __('Icon size.', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Icon alignment', 'js_composer'), 'param_name' => 'align', 'value' => array(__('Left', 'js_composer') => 'left', __('Right', 'js_composer') => 'right', __('Center', 'js_composer') => 'center'), 'description' => __('Select icon alignment.', 'js_composer')), array('type' => 'vc_link', 'heading' => __('URL (Link)', 'js_composer'), 'param_name' => 'link', 'description' => __('Add link to icon.', 'js_composer')), $vc_add_css_animation, array('type' => 'textfield', 'heading' => __('Extra class name', 'js_composer'), 'param_name' => 'el_class', 'description' => __('Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer')), array('type' => 'css_editor', 'heading' => __('CSS box', 'js_composer'), 'param_name' => 'css', 'group' => __('Design Options', 'js_composer'))), 'js_view' => 'VcIconElementView_Backend'));
예제 #24
0
if (!defined('ABSPATH')) {
    die('-1');
}
/**
 * New button implementation
 * array_merge is needed due to merging other shortcode data into params.
 * @since 4.5
 */
global $pixel_icons;
$icons_params = vc_map_integrate_shortcode('vc_icon', 'i_', '', array('include_only_regex' => '/^(type|icon_\\w*)/'), array('element' => 'add_icon', 'value' => 'true'));
// populate integrated vc_icons params.
if (is_array($icons_params) && !empty($icons_params)) {
    foreach ($icons_params as $key => $param) {
        if (is_array($param) && !empty($param)) {
            if ('i_type' === $param['param_name']) {
                // append pixelicons to dropdown
                $icons_params[$key]['value'][__('Pixel', 'js_composer')] = 'pixelicons';
            }
            if (isset($param['admin_label'])) {
                // remove admin label
                unset($icons_params[$key]['admin_label']);
            }
        }
    }
}
$params = array_merge(array(array('type' => 'textfield', 'heading' => __('Text', 'js_composer'), 'param_name' => 'title', 'value' => __('Text on the button', 'js_composer')), array('type' => 'vc_link', 'heading' => __('URL (Link)', 'js_composer'), 'param_name' => 'link', 'description' => __('Add link to button.', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Style', 'js_composer'), 'description' => __('Select button display style.', 'js_composer'), 'param_name' => 'style', 'value' => array(__('Modern', 'js_composer') => 'modern', __('Classic', 'js_composer') => 'classic', __('Flat', 'js_composer') => 'flat', __('Outline', 'js_composer') => 'outline', __('3d', 'js_composer') => '3d', __('Custom', 'js_composer') => 'custom', __('Outline custom', 'js_composer') => 'outline-custom')), array('type' => 'colorpicker', 'heading' => __('Background', 'js_composer'), 'param_name' => 'custom_background', 'description' => __('Select custom background color for your element.', 'js_composer'), 'dependency' => array('element' => 'style', 'value' => array('custom')), 'edit_field_class' => 'vc_col-sm-6 vc_column', 'std' => '#ededed'), array('type' => 'colorpicker', 'heading' => __('Text', 'js_composer'), 'param_name' => 'custom_text', 'description' => __('Select custom text color for your element.', 'js_composer'), 'dependency' => array('element' => 'style', 'value' => array('custom')), 'edit_field_class' => 'vc_col-sm-6 vc_column', 'std' => '#666'), array('type' => 'colorpicker', 'heading' => __('Outline and Text', 'js_composer'), 'param_name' => 'outline_custom_color', 'description' => __('Select outline and text color for your element.', 'js_composer'), 'dependency' => array('element' => 'style', 'value' => array('outline-custom')), 'edit_field_class' => 'vc_col-sm-4 vc_column', 'std' => '#666'), array('type' => 'colorpicker', 'heading' => __('Hover background', 'js_composer'), 'param_name' => 'outline_custom_hover_background', 'description' => __('Select hover background color for your element.', 'js_composer'), 'dependency' => array('element' => 'style', 'value' => array('outline-custom')), 'edit_field_class' => 'vc_col-sm-4 vc_column', 'std' => '#666'), array('type' => 'colorpicker', 'heading' => __('Hover text', 'js_composer'), 'param_name' => 'outline_custom_hover_text', 'description' => __('Select hover text color for your element.', 'js_composer'), 'dependency' => array('element' => 'style', 'value' => array('outline-custom')), 'edit_field_class' => 'vc_col-sm-4 vc_column', 'std' => '#fff'), array('type' => 'dropdown', 'heading' => __('Shape', 'js_composer'), 'description' => __('Select button shape.', 'js_composer'), 'param_name' => 'shape', 'value' => array(__('Rounded', 'js_composer') => 'rounded', __('Square', 'js_composer') => 'square', __('Round', 'js_composer') => 'round')), array('type' => 'dropdown', 'heading' => __('Color', 'js_composer'), 'param_name' => 'color', 'description' => __('Select button color.', 'js_composer'), 'param_holder_class' => 'vc_colored-dropdown vc_btn3-colored-dropdown', 'value' => array(__('Classic Grey', 'js_composer') => 'default', __('Classic Blue', 'js_composer') => 'primary', __('Classic Turquoise', 'js_composer') => 'info', __('Classic Green', 'js_composer') => 'success', __('Classic Orange', 'js_composer') => 'warning', __('Classic Red', 'js_composer') => 'danger', __('Classic Black', 'js_composer') => 'inverse') + getVcShared('colors-dashed'), 'std' => 'grey', 'dependency' => array('element' => 'style', 'value_not_equal_to' => array('custom', 'outline-custom'))), array('type' => 'dropdown', 'heading' => __('Size', 'js_composer'), 'param_name' => 'size', 'description' => __('Select button display size.', 'js_composer'), 'std' => 'md', 'value' => getVcShared('sizes')), array('type' => 'dropdown', 'heading' => __('Alignment', 'js_composer'), 'param_name' => 'align', 'description' => __('Select button alignment.', 'js_composer'), 'value' => array(__('Inline', 'js_composer') => 'inline', __('Left', 'js_composer') => 'left', __('Right', 'js_composer') => 'right', __('Center', 'js_composer') => 'center')), array('type' => 'checkbox', 'heading' => __('Set full width button?', 'js_composer'), 'param_name' => 'button_block', 'dependency' => array('element' => 'align', 'value_not_equal_to' => 'inline')), array('type' => 'checkbox', 'heading' => __('Add icon?', 'js_composer'), 'param_name' => 'add_icon'), array('type' => 'dropdown', 'heading' => __('Icon Alignment', 'js_composer'), 'description' => __('Select icon alignment.', 'js_composer'), 'param_name' => 'i_align', 'value' => array(__('Left', 'js_composer') => 'left', __('Right', 'js_composer') => 'right'), 'dependency' => array('element' => 'add_icon', 'value' => 'true'))), $icons_params, array(array('type' => 'iconpicker', 'heading' => __('Icon', 'js_composer'), 'param_name' => 'i_icon_pixelicons', 'value' => 'vc_pixel_icon vc_pixel_icon-alert', 'settings' => array('emptyIcon' => false, 'type' => 'pixelicons', 'source' => $pixel_icons), 'dependency' => array('element' => 'i_type', 'value' => 'pixelicons'), 'description' => __('Select icon from library.', 'js_composer'))), array(vc_map_add_css_animation(true), array('type' => 'textfield', 'heading' => __('Extra class name', 'js_composer'), 'param_name' => 'el_class', 'description' => __('Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer')), array('type' => 'css_editor', 'heading' => __('CSS box', 'js_composer'), 'param_name' => 'css', 'group' => __('Design Options', 'js_composer'))));
/**
 * @class WPBakeryShortCode_VC_Btn
 */
vc_map(array('name' => __('Button', 'js_composer'), 'base' => 'vc_btn', 'icon' => 'icon-wpb-ui-button', 'category' => array(__('Content', 'js_composer')), 'description' => __('Eye catching button', 'js_composer'), 'params' => $params, 'js_view' => 'VcButton3View', 'custom_markup' => '{{title}}<div class="vc_btn3-container"><button class="vc_general vc_btn3 vc_btn3-size-sm vc_btn3-shape-{{ params.shape }} vc_btn3-style-{{ params.style }} vc_btn3-color-{{ params.color }}">{{{ params.title }}}</button></div>'));
예제 #25
0
/**
 * WPBakery Visual Composer Shortcodes settings
 *
 * @package VPBakeryVisualComposer
 *
 */
function vc_map_default_shortcodes()
{
    $vc_is_wp_version_3_6_more = version_compare(preg_replace('/^([\\d\\.]+)(\\-.*$)/', '$1', get_bloginfo('version')), '3.6') >= 0;
    // 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");
    // Used in "Button" and "Call to Action" blocks
    $size_arr = array(__('Regular size', 'js_composer') => 'wpb_regularsize', __('Large', 'js_composer') => 'btn-large', __('Small', 'js_composer') => 'btn-small', __('Mini', 'js_composer') => "btn-mini");
    $target_arr = array(__('Same window', 'js_composer') => '_self', __('New window', 'js_composer') => "_blank");
    $add_css_animation = array('type' => 'dropdown', 'heading' => __('CSS Animation', 'js_composer'), 'param_name' => 'css_animation', 'admin_label' => true, 'value' => array(__('No', 'js_composer') => '', __('Top to bottom', 'js_composer') => 'top-to-bottom', __('Bottom to top', 'js_composer') => 'bottom-to-top', __('Left to right', 'js_composer') => 'left-to-right', __('Right to left', 'js_composer') => 'right-to-left', __('Appear from center', 'js_composer') => "appear"), 'description' => __('Select type of animation if you want this element to be animated when it enters into the browsers viewport. Note: Works only in modern browsers.', 'js_composer'));
    vc_map(array('name' => __('Row', 'js_composer'), 'base' => 'vc_row', 'is_container' => true, 'icon' => 'icon-wpb-row', 'show_settings_on_create' => false, 'category' => __('Content', 'js_composer'), 'description' => __('Place content elements inside the row', 'js_composer'), 'params' => array(array('type' => 'colorpicker', 'heading' => __('Font Color', 'wpb'), 'param_name' => 'font_color', 'description' => __('Select font color', 'wpb'), 'edit_field_class' => 'col-md-6'), 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' => 'css_editor', 'heading' => __('Css', 'js_composer'), 'param_name' => 'css', 'group' => __('Design options', 'js_composer'))), 'js_view' => 'VcRowView'));
    vc_map(array('name' => __('Row', 'js_composer'), 'base' => 'vc_row_inner', 'content_element' => false, 'is_container' => true, 'icon' => 'icon-wpb-row', 'weight' => 1000, 'show_settings_on_create' => false, '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' => 'css_editor', 'heading' => __('Css', 'js_composer'), 'param_name' => 'css', 'group' => __('Design options', 'js_composer'))), 'js_view' => 'VcRowView'));
    vc_map(array('name' => __('Column', 'js_composer'), 'base' => 'vc_column', 'is_container' => true, 'content_element' => false, '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' => 'css_editor', 'heading' => __('Css', 'js_composer'), 'param_name' => 'css', 'group' => __('Design options', 'js_composer'))), 'js_view' => 'VcColumnView'));
    /* Text Block
      ---------------------------------------------------------- */
    vc_map(array('name' => __('Text Block', 'js_composer'), 'base' => 'vc_column_text', 'icon' => 'icon-wpb-layer-shape-text', 'wrapper_class' => 'clearfix', 'category' => __('Content', 'js_composer'), 'description' => __('A block of text with WYSIWYG editor', 'js_composer'), 'params' => array(array('type' => 'textarea_html', 'holder' => 'div', 'heading' => __('Text', 'js_composer'), 'param_name' => 'content', 'value' => __('<p>I am text block. Click edit button to change this text. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.</p>', 'js_composer')), $add_css_animation, 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' => 'css_editor', 'heading' => __('Css', 'js_composer'), 'param_name' => 'css', 'group' => __('Design options', 'js_composer')))));
    /* Latest tweets
      ---------------------------------------------------------- */
    /*vc_map( array(
        'name' => __( 'Twitter Widget', 'js_composer' ),
        'base' => 'vc_twitter',
        'icon' => 'icon-wpb-balloon-twitter-left',
        'category' => __( 'Social', 'js_composer' ),
        'params' => array(
          array(
            'type' => 'textfield',
            'heading' => __( 'Widget title', 'js_composer' ),
            'param_name' => 'title',
            'description' => __( 'Enter text which will be used as widget title. Leave blank if no title is needed.', 'js_composer' )
          ),
          array(
            'type' => 'textfield',
            'heading' => __( 'Twitter username', 'js_composer' ),
            'param_name' => 'twitter_name',
            'admin_label' => true,
            'description' => __( 'Type in twitter profile name from which load tweets.', 'js_composer' )
          ),
          array(
            'type' => 'dropdown',
            'heading' => __( 'Tweets count', 'js_composer' ),
            'param_name' => 'tweets_count',
            'admin_label' => true,
            'value' => array( 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15),
            'description' => __( 'How many recent tweets to load.', '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' )
          )
        )
      ) );*/
    /* Separator (Divider)
      ---------------------------------------------------------- */
    vc_map(array('name' => __('Separator', 'js_composer'), 'base' => 'vc_separator', 'icon' => 'icon-wpb-ui-separator', 'show_settings_on_create' => false, 'category' => __('Content', 'js_composer'), 'description' => __('Horizontal separator line', 'js_composer'), 'params' => array(array('type' => 'dropdown', 'heading' => __('Color', 'js_composer'), 'param_name' => 'color', 'value' => getVcShared('colors'), 'std' => 'grey', 'description' => __('Separator color.', 'js_composer'), 'param_holder_class' => 'vc-colored-dropdown'), array('type' => 'colorpicker', 'heading' => __('Custom Border Color', 'wpb'), 'param_name' => 'accent_color', 'description' => __('Select border color for your element.', 'wpb')), array('type' => 'dropdown', 'heading' => __('Style', 'js_composer'), 'param_name' => 'style', 'value' => getVcShared('separator styles'), 'description' => __('Separator style.', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Element width', 'js_composer'), 'param_name' => 'el_width', 'value' => getVcShared('separator widths'), 'description' => __('Separator element width in percents.', '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')))));
    /* Textual block
      ---------------------------------------------------------- */
    vc_map(array('name' => __('Separator with Text', 'js_composer'), 'base' => 'vc_text_separator', 'icon' => 'icon-wpb-ui-separator-label', 'category' => __('Content', 'js_composer'), 'description' => __('Horizontal separator line with heading', 'js_composer'), 'params' => array(array('type' => 'textfield', 'heading' => __('Title', 'js_composer'), 'param_name' => 'title', 'holder' => 'div', 'value' => __('Title', 'js_composer'), 'description' => __('Separator title.', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Title position', 'js_composer'), 'param_name' => 'title_align', 'value' => array(__('Align center', 'js_composer') => 'separator_align_center', __('Align left', 'js_composer') => 'separator_align_left', __('Align right', 'js_composer') => "separator_align_right"), 'description' => __('Select title location.', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Color', 'js_composer'), 'param_name' => 'color', 'value' => getVcShared('colors'), 'std' => 'grey', 'description' => __('Separator color.', 'js_composer'), 'param_holder_class' => 'vc-colored-dropdown'), array('type' => 'colorpicker', 'heading' => __('Custom Border Color', 'wpb'), 'param_name' => 'accent_color', 'description' => __('Select border color for your element.', 'wpb')), array('type' => 'dropdown', 'heading' => __('Style', 'js_composer'), 'param_name' => 'style', 'value' => getVcShared('separator styles'), 'description' => __('Separator style.', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Element width', 'js_composer'), 'param_name' => 'el_width', 'value' => getVcShared('separator widths'), 'description' => __('Separator element width in percents.', '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'))), 'js_view' => 'VcTextSeparatorView'));
    /* Message box
      ---------------------------------------------------------- */
    vc_map(array('name' => __('Message Box', 'js_composer'), 'base' => 'vc_message', 'icon' => 'icon-wpb-information-white', 'wrapper_class' => 'alert', 'category' => __('Content', 'js_composer'), 'description' => __('Notification box', 'js_composer'), 'params' => array(array('type' => 'dropdown', 'heading' => __('Message box type', 'js_composer'), 'param_name' => 'color', 'value' => array(__('Informational', 'js_composer') => 'alert-info', __('Warning', 'js_composer') => 'alert-warning', __('Success', 'js_composer') => 'alert-success', __('Error', 'js_composer') => "alert-danger"), 'description' => __('Select message type.', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Style', 'js_composer'), 'param_name' => 'style', 'value' => getVcShared('alert styles'), 'description' => __('Alert style.', 'js_composer')), array('type' => 'textarea_html', 'holder' => 'div', 'class' => 'messagebox_text', 'heading' => __('Message text', 'js_composer'), 'param_name' => 'content', 'value' => __('<p>I am message box. Click edit button to change this text.</p>', 'js_composer')), $add_css_animation, 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'))), 'js_view' => 'VcMessageView'));
    /* Facebook like button
      ---------------------------------------------------------- */
    vc_map(array('name' => __('Facebook Like', 'js_composer'), 'base' => 'vc_facebook', 'icon' => 'icon-wpb-balloon-facebook-left', 'category' => __('Social', 'js_composer'), 'description' => __('Facebook like button', 'js_composer'), 'params' => array(array('type' => 'dropdown', 'heading' => __('Button type', 'js_composer'), 'param_name' => 'type', 'admin_label' => true, 'value' => array(__('Standard', 'js_composer') => 'standard', __('Button count', 'js_composer') => 'button_count', __('Box count', 'js_composer') => 'box_count'), 'description' => __('Select button type.', 'js_composer')))));
    /* Tweetmeme button
      ---------------------------------------------------------- */
    vc_map(array('name' => __('Tweetmeme Button', 'js_composer'), 'base' => 'vc_tweetmeme', 'icon' => 'icon-wpb-tweetme', 'category' => __('Social', 'js_composer'), 'description' => __('Share on twitter button', 'js_composer'), 'params' => array(array('type' => 'dropdown', 'heading' => __('Button type', 'js_composer'), 'param_name' => 'type', 'admin_label' => true, 'value' => array(__('Horizontal', 'js_composer') => 'horizontal', __('Vertical', 'js_composer') => 'vertical', __('None', 'js_composer') => 'none'), 'description' => __('Select button type.', 'js_composer')))));
    /* Google+ button
      ---------------------------------------------------------- */
    vc_map(array('name' => __('Google+ Button', 'js_composer'), 'base' => 'vc_googleplus', 'icon' => 'icon-wpb-application-plus', 'category' => __('Social', 'js_composer'), 'description' => __('Recommend on Google', 'js_composer'), 'params' => array(array('type' => 'dropdown', 'heading' => __('Button size', 'js_composer'), 'param_name' => 'type', 'admin_label' => true, 'value' => array(__('Standard', 'js_composer') => '', __('Small', 'js_composer') => 'small', __('Medium', 'js_composer') => 'medium', __('Tall', 'js_composer') => 'tall'), 'description' => __('Select button size.', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Annotation', 'js_composer'), 'param_name' => 'annotation', 'admin_label' => true, 'value' => array(__('Inline', 'js_composer') => 'inline', __('Bubble', 'js_composer') => '', __('None', 'js_composer') => 'none'), 'description' => __('Select type of annotation', 'js_composer')))));
    /* Pinterest button
      ---------------------------------------------------------- */
    vc_map(array('name' => __('Pinterest', 'js_composer'), 'base' => 'vc_pinterest', 'icon' => 'icon-wpb-pinterest', 'category' => __('Social', 'js_composer'), 'description' => __('Pinterest button', 'js_composer'), "params" => array(array('type' => 'dropdown', 'heading' => __('Button layout', 'js_composer'), 'param_name' => 'type', 'admin_label' => true, 'value' => array(__('Horizontal', 'js_composer') => '', __('Vertical', 'js_composer') => 'vertical', __('No count', 'js_composer') => 'none'), 'description' => __('Select button layout.', 'js_composer')))));
    /* Toggle (FAQ)
      ---------------------------------------------------------- */
    vc_map(array('name' => __('FAQ', 'js_composer'), 'base' => 'vc_toggle', 'icon' => 'icon-wpb-toggle-small-expand', 'category' => __('Content', 'js_composer'), 'description' => __('Toggle element for Q&A block', 'js_composer'), 'params' => array(array('type' => 'textfield', 'holder' => 'h4', 'class' => 'toggle_title', 'heading' => __('Toggle title', 'js_composer'), 'param_name' => 'title', 'value' => __('Toggle title', 'js_composer'), 'description' => __('Toggle block title.', 'js_composer')), array('type' => 'textarea_html', 'holder' => 'div', 'class' => 'toggle_content', 'heading' => __('Toggle content', 'js_composer'), 'param_name' => 'content', 'value' => __('<p>Toggle content goes here, click edit button to change this text.</p>', 'js_composer'), 'description' => __('Toggle block content.', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Default state', 'js_composer'), 'param_name' => 'open', 'value' => array(__('Closed', 'js_composer') => 'false', __('Open', 'js_composer') => 'true'), 'description' => __('Select "Open" if you want toggle to be open by default.', 'js_composer')), $add_css_animation, 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'))), 'js_view' => 'VcToggleView'));
    /* Single image */
    vc_map(array('name' => __('Single Image', 'js_composer'), 'base' => 'vc_single_image', 'icon' => 'icon-wpb-single-image', 'category' => __('Content', 'js_composer'), 'description' => __('Simple image with CSS animation', 'js_composer'), 'params' => array(array('type' => 'textfield', 'heading' => __('Widget title', 'js_composer'), 'param_name' => 'title', 'description' => __('Enter text which will be used as widget title. Leave blank if no title is needed.', 'js_composer')), array('type' => 'attach_image', 'heading' => __('Image', 'js_composer'), 'param_name' => 'image', 'value' => '', 'description' => __('Select image from media library.', 'js_composer')), $add_css_animation, array('type' => 'textfield', 'heading' => __('Image size', 'js_composer'), '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.', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Image alignment', 'js_composer'), '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' => __('Image style', 'js_composer'), 'param_name' => 'style', 'value' => getVcShared('single image styles')), array('type' => 'dropdown', 'heading' => __('Border color', 'js_composer'), 'param_name' => 'border_color', 'value' => getVcShared('colors'), 'std' => 'grey', 'dependency' => array('element' => 'style', 'value' => array('vc_box_border', 'vc_box_border_circle', 'vc_box_outline', 'vc_box_outline_circle')), 'description' => __('Border color.', 'js_composer'), 'param_holder_class' => 'vc-colored-dropdown'), array('type' => 'checkbox', 'heading' => __('Link to large image?', 'js_composer'), 'param_name' => 'img_link_large', 'description' => __('If selected, image will be linked to the larger 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 a link.', 'js_composer'), 'dependency' => array('element' => 'img_link_large', 'is_empty' => true, 'callback' => 'wpb_single_image_img_link_dependency_callback')), array('type' => 'dropdown', 'heading' => __('Link Target', 'js_composer'), 'param_name' => 'img_link_target', 'value' => $target_arr, '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')), array('type' => 'css_editor', 'heading' => __('Css', 'js_composer'), 'param_name' => 'css', 'group' => __('Design options', 'js_composer')))));
    /* Gallery/Slideshow
      ---------------------------------------------------------- */
    vc_map(array('name' => __('Image Gallery', 'js_composer'), 'base' => 'vc_gallery', 'icon' => 'icon-wpb-images-stack', 'category' => __('Content', 'js_composer'), 'description' => __('Responsive image gallery', 'js_composer'), 'params' => array(array('type' => 'textfield', 'heading' => __('Widget title', 'js_composer'), 'param_name' => 'title', 'description' => __('Enter text which will be used as widget title. Leave blank if no title is needed.', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Gallery type', 'js_composer'), 'param_name' => 'type', 'value' => array(__('Flex slider fade', 'js_composer') => 'flexslider_fade', __('Flex slider slide', 'js_composer') => 'flexslider_slide', __('Nivo slider', 'js_composer') => 'nivo', __('Image grid', 'js_composer') => 'image_grid'), 'description' => __('Select gallery type.', 'js_composer')), 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'), 'dependency' => array('element' => 'type', 'value' => array('flexslider_fade', 'flexslider_slide', 'nivo'))), array('type' => 'attach_images', 'heading' => __('Images', 'js_composer'), 'param_name' => 'images', 'value' => '', 'description' => __('Select images from media library.', 'js_composer')), array('type' => 'textfield', 'heading' => __('Image size', 'js_composer'), '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.', 'js_composer')), array('type' => 'dropdown', 'heading' => __('On click', 'js_composer'), 'param_name' => 'onclick', 'value' => array(__('Open prettyPhoto', 'js_composer') => 'link_image', __('Do nothing', 'js_composer') => 'link_no', __('Open custom link', 'js_composer') => 'custom_link'), 'description' => __('Define action for onclick event if needed.', 'js_composer')), 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'))), 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')), 'value' => $target_arr), 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 Carousel
      ---------------------------------------------------------- */
    vc_map(array('name' => __('Image Carousel', 'js_composer'), 'base' => 'vc_images_carousel', 'icon' => 'icon-wpb-images-carousel', 'category' => __('Content', 'js_composer'), 'description' => __('Animated carousel with images', 'js_composer'), 'params' => array(array('type' => 'textfield', 'heading' => __('Widget title', 'js_composer'), 'param_name' => 'title', 'description' => __('Enter text which will be used as widget title. Leave blank if no title is needed.', 'js_composer')), array('type' => 'attach_images', 'heading' => __('Images', 'js_composer'), 'param_name' => 'images', 'value' => '', 'description' => __('Select images from media library.', 'js_composer')), array('type' => 'textfield', 'heading' => __('Image size', 'js_composer'), '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.', 'js_composer')), array('type' => 'dropdown', 'heading' => __('On click', 'js_composer'), 'param_name' => 'onclick', 'value' => array(__('Open prettyPhoto', 'js_composer') => 'link_image', __('Do nothing', 'js_composer') => 'link_no', __('Open custom link', 'js_composer') => 'custom_link'), 'description' => __('What to do when slide is clicked?', 'js_composer')), 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'))), 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')), 'value' => $target_arr), array('type' => 'dropdown', 'heading' => __('Slider mode', 'js_composer'), 'param_name' => 'mode', 'value' => array(__('Horizontal', 'js_composer') => 'horizontal', __('Vertical', 'js_composer') => 'vertical'), 'description' => __('Slides will be positioned horizontally (for horizontal swipes) or vertically (for vertical swipes)', 'js_composer')), array('type' => 'textfield', 'heading' => __('Slider speed', 'js_composer'), 'param_name' => 'speed', 'value' => '5000', 'description' => __('Duration of animation between slides (in ms)', 'js_composer')), array('type' => 'textfield', 'heading' => __('Slides per view', 'js_composer'), 'param_name' => 'slides_per_view', 'value' => '1', 'description' => __('Set numbers of slides you want to display at the same time on slider\'s container for carousel mode. Supports also "auto" value, in this case it will fit slides depending on container\'s width. "auto" mode isn\'t compatible with loop mode.', 'js_composer')), array('type' => 'checkbox', 'heading' => __('Slider autoplay', 'js_composer'), 'param_name' => 'autoplay', 'description' => __('Enables autoplay mode.', 'js_composer'), 'value' => array(__('Yes, please', 'js_composer') => 'yes')), array('type' => 'checkbox', 'heading' => __('Hide pagination control', 'js_composer'), 'param_name' => 'hide_pagination_control', 'description' => __('If YES pagination control will be removed.', 'js_composer'), 'value' => array(__('Yes, please', 'js_composer') => 'yes')), array('type' => 'checkbox', 'heading' => __('Hide prev/next buttons', 'js_composer'), 'param_name' => 'hide_prev_next_buttons', 'description' => __('If "YES" prev/next control will be removed.', 'js_composer'), 'value' => array(__('Yes, please', 'js_composer') => 'yes')), array('type' => 'checkbox', 'heading' => __('Partial view', 'js_composer'), 'param_name' => 'partial_view', 'description' => __('If "YES" part of the next slide will be visible on the right side.', 'js_composer'), 'value' => array(__('Yes, please', 'js_composer') => 'yes')), array('type' => 'checkbox', 'heading' => __('Slider loop', 'js_composer'), 'param_name' => 'wrap', 'description' => __('Enables loop mode.', 'js_composer'), 'value' => array(__('Yes, please', 'js_composer') => 'yes')), 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')))));
    /* 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' => 'vc_tabs', 'show_settings_on_create' => false, 'is_container' => true, 'icon' => 'icon-wpb-ui-tab-content', 'category' => __('Content', 'js_composer'), 'description' => __('Tabbed content', 'js_composer'), 'params' => array(array('type' => 'textfield', 'heading' => __('Widget title', 'js_composer'), 'param_name' => 'title', 'description' => __('Enter text which will be used as widget title. Leave blank if no title is needed.', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Auto rotate tabs', 'js_composer'), 'param_name' => 'interval', 'value' => array(__('Disable', 'js_composer') => 0, 3, 5, 10, 15), 'std' => 0, 'description' => __('Auto rotate tabs each X seconds.', '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'))), 'custom_markup' => '
    <div class="wpb_tabs_holder wpb_holder vc_container_for_children">
    <ul class="tabs_controls">
    </ul>
    %content%
    </div>', 'default_content' => '
    [vc_tab title="' . __('Tab 1', 'js_composer') . '" tab_id="' . $tab_id_1 . '"][/vc_tab]
    [vc_tab title="' . __('Tab 2', 'js_composer') . '" tab_id="' . $tab_id_2 . '"][/vc_tab]
    ', 'js_view' => $vc_is_wp_version_3_6_more ? 'VcTabsView' : 'VcTabsView35'));
    /* Tour section
      ---------------------------------------------------------- */
    $tab_id_1 = time() . '-1-' . rand(0, 100);
    $tab_id_2 = time() . '-2-' . rand(0, 100);
    WPBMap::map('vc_tour', array('name' => __('Tour Section', 'js_composer'), 'base' => 'vc_tour', 'show_settings_on_create' => false, 'is_container' => true, 'container_not_allowed' => true, 'icon' => 'icon-wpb-ui-tab-content-vertical', 'category' => __('Content', 'js_composer'), 'wrapper_class' => 'clearfix', 'description' => __('Tabbed tour section', 'js_composer'), 'params' => array(array('type' => 'textfield', 'heading' => __('Widget title', 'js_composer'), 'param_name' => 'title', 'description' => __('Enter text which will be used as widget title. Leave blank if no title is needed.', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Auto rotate slides', 'js_composer'), 'param_name' => 'interval', 'value' => array(__('Disable', 'js_composer') => 0, 3, 5, 10, 15), 'std' => 0, 'description' => __('Auto rotate slides each X seconds.', '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'))), 'custom_markup' => '
    <div class="wpb_tabs_holder wpb_holder clearfix vc_container_for_children">
    <ul class="tabs_controls">
    </ul>
    %content%
    </div>', 'default_content' => '
    [vc_tab title="' . __('Slide 1', 'js_composer') . '" tab_id="' . $tab_id_1 . '"][/vc_tab]
    [vc_tab title="' . __('Slide 2', 'js_composer') . '" tab_id="' . $tab_id_2 . '"][/vc_tab]
    ', 'js_view' => $vc_is_wp_version_3_6_more ? 'VcTabsView' : 'VcTabsView35'));
    vc_map(array('name' => __('Tab', 'js_composer'), 'base' => 'vc_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' => 'tab_id', 'heading' => __('Tab ID', 'js_composer'), 'param_name' => "tab_id")), 'js_view' => $vc_is_wp_version_3_6_more ? 'VcTabView' : 'VcTabView35'));
    /* Accordion block
      ---------------------------------------------------------- */
    vc_map(array('name' => __('Accordion', 'js_composer'), 'base' => 'vc_accordion', 'show_settings_on_create' => false, 'is_container' => true, 'icon' => 'icon-wpb-ui-accordion', 'category' => __('Content', 'js_composer'), 'description' => __('jQuery UI accordion', 'js_composer'), 'params' => array(array('type' => 'textfield', 'heading' => __('Widget title', 'js_composer'), 'param_name' => 'title', 'description' => __('Enter text which will be used as widget title. Leave blank if no title is needed.', 'js_composer')), array('type' => 'textfield', 'heading' => __('Active tab', 'js_composer'), 'param_name' => 'active_tab', 'description' => __('Enter tab number to be active on load or enter false to collapse all tabs.', 'js_composer')), array('type' => 'checkbox', 'heading' => __('Allow collapsible all', 'js_composer'), 'param_name' => 'collapsible', 'description' => __('Select checkbox to allow all sections to be collapsible.', 'js_composer'), 'value' => array(__('Allow', 'js_composer') => 'yes')), 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_accordion_holder wpb_holder clearfix vc_container_for_children">
    %content%
    </div>
    <div class="tab_controls">
    <button class="add_tab" title="' . __('Add accordion section', 'js_composer') . '">' . __('Add accordion section', 'js_composer') . '</button>
    </div>
    ', 'default_content' => '
    [vc_accordion_tab title="' . __('Section 1', 'js_composer') . '"][/vc_accordion_tab]
    [vc_accordion_tab title="' . __('Section 2', 'js_composer') . '"][/vc_accordion_tab]
    ', 'js_view' => 'VcAccordionView'));
    vc_map(array('name' => __('Accordion Section', 'js_composer'), 'base' => 'vc_accordion_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' => __('Accordion section title.', 'js_composer'))), 'js_view' => 'VcAccordionTabView'));
    /* Teaser grid
       * @deprecated please use vc_posts_grid
       ---------------------------------------------------------- */
    vc_map(array('name' => __('Teaser (posts) Grid', 'js_composer'), 'base' => 'vc_teaser_grid', 'content_element' => false, 'icon' => 'icon-wpb-application-icon-large', 'category' => __('Content', 'js_composer'), 'params' => array(array('type' => 'textfield', 'heading' => __('Widget title', 'js_composer'), 'param_name' => 'title', 'description' => __('Enter text which will be used as widget title. Leave blank if no title is needed.', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Columns count', 'js_composer'), 'param_name' => 'grid_columns_count', 'value' => array(4, 3, 2, 1), 'admin_label' => true, 'description' => __('Select columns count.', 'js_composer')), array('type' => 'posttypes', 'heading' => __('Post types', 'js_composer'), 'param_name' => 'grid_posttypes', 'description' => __('Select post types to populate posts from.', 'js_composer')), array('type' => 'textfield', 'heading' => __('Teasers count', 'js_composer'), 'param_name' => 'grid_teasers_count', 'description' => __('How many teasers to show? Enter number or word "All".', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Content', 'js_composer'), 'param_name' => 'grid_content', 'value' => array(__('Teaser (Excerpt)', 'js_composer') => 'teaser', __('Full Content', 'js_composer') => 'content'), 'description' => __('Teaser layout template.', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Layout', 'js_composer'), 'param_name' => 'grid_layout', 'value' => array(__('Title + Thumbnail + Text', 'js_composer') => 'title_thumbnail_text', __('Thumbnail + Title + Text', 'js_composer') => 'thumbnail_title_text', __('Thumbnail + Text', 'js_composer') => 'thumbnail_text', __('Thumbnail + Title', 'js_composer') => 'thumbnail_title', __('Thumbnail only', 'js_composer') => 'thumbnail', __('Title + Text', 'js_composer') => 'title_text'), 'description' => __('Teaser layout.', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Link', 'js_composer'), 'param_name' => 'grid_link', 'value' => array(__('Link to post', 'js_composer') => 'link_post', __('Link to bigger image', 'js_composer') => 'link_image', __('Thumbnail to bigger image, title to post', 'js_composer') => 'link_image_post', __('No link', 'js_composer') => 'link_no'), 'description' => __('Link type.', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Link target', 'js_composer'), 'param_name' => 'grid_link_target', 'value' => $target_arr, 'dependency' => array('element' => 'grid_link', 'value' => array('link_post', 'link_image_post'))), array('type' => 'dropdown', 'heading' => __('Teaser grid layout', 'js_composer'), 'param_name' => 'grid_template', 'value' => array(__('Grid', 'js_composer') => 'grid', __('Grid with filter', 'js_composer') => 'filtered_grid', __('Carousel', 'js_composer') => 'carousel'), 'description' => __('Teaser layout template.', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Layout mode', 'js_composer'), 'param_name' => 'grid_layout_mode', 'value' => array(__('Fit rows', 'js_composer') => 'fitRows', __('Masonry', 'js_composer') => 'masonry'), 'dependency' => array('element' => 'grid_template', 'value' => array('filtered_grid', 'grid')), 'description' => __('Teaser layout template.', 'js_composer')), array('type' => 'taxonomies', 'heading' => __('Taxonomies', 'js_composer'), 'param_name' => 'grid_taxomonies', 'dependency' => array('element' => 'grid_template', 'value' => array('filtered_grid'), 'callback' => 'wpb_grid_post_types_for_taxonomies_handler'), 'description' => __('Select taxonomies from.', 'js_composer')), array('type' => 'textfield', 'heading' => __('Thumbnail size', 'js_composer'), 'param_name' => 'grid_thumb_size', 'description' => __('Enter thumbnail size. Example: thumbnail, medium, large, full or other sizes defined by current theme. Alternatively enter image size in pixels: 200x100 (Width x Height) . ', 'js_composer')), array('type' => 'textfield', 'heading' => __('Post/Page IDs', 'js_composer'), 'param_name' => 'posts_in', 'description' => __('Fill this field with page/posts IDs separated by commas (,) to retrieve only them. Use this in conjunction with "Post types" field.', 'js_composer')), array('type' => 'textfield', 'heading' => __('Exclude Post/Page IDs', 'js_composer'), 'param_name' => 'posts_not_in', 'description' => __('Fill this field with page/posts IDs separated by commas (,) to exclude them from query.', 'js_composer')), array('type' => 'exploded_textarea', 'heading' => __('Categories', 'js_composer'), 'param_name' => 'grid_categories', 'description' => __('If you want to narrow output, enter category names here. Note: Only listed categories will be included. Divide categories with linebreaks (Enter) . ', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Order by', 'js_composer'), 'param_name' => 'orderby', 'value' => array('', __('Date', 'js_composer') => 'date', __('ID', 'js_composer') => 'ID', __('Author', 'js_composer') => 'author', __('Title', 'js_composer') => 'title', __('Modified', 'js_composer') => 'modified', __('Random', 'js_composer') => 'rand', __('Comment count', 'js_composer') => 'comment_count', __('Menu order', 'js_composer') => 'menu_order'), 'description' => sprintf(__('Select how to sort retrieved posts. More at %s.', 'js_composer'), '<a href="http://codex.wordpress.org/Class_Reference/WP_Query#Order_.26_Orderby_Parameters" target="_blank">WordPress codex page</a>')), array('type' => 'dropdown', 'heading' => __('Order way', 'js_composer'), 'param_name' => 'order', 'value' => array(__('Descending', 'js_composer') => 'DESC', __('Ascending', 'js_composer') => 'ASC'), 'description' => sprintf(__('Designates the ascending or descending order. More at %s.', 'js_composer'), '<a href="http://codex.wordpress.org/Class_Reference/WP_Query#Order_.26_Orderby_Parameters" target="_blank">WordPress codex page</a>')), 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')))));
    /* Posts Grid
      ---------------------------------------------------------- */
    $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')));
    vc_map(array('name' => __('Posts Grid', 'js_composer'), 'base' => 'vc_posts_grid', 'icon' => 'icon-wpb-application-icon-large', 'description' => __('Posts in grid view', 'js_composer'), 'params' => array(array('type' => 'textfield', 'heading' => __('Widget title', 'js_composer'), 'param_name' => 'title', 'description' => __('Enter text which will be used as widget title. Leave blank if no title is needed.', 'js_composer')), array('type' => 'loop', 'heading' => __('Grids content', 'js_composer'), 'param_name' => 'loop', 'settings' => array('size' => array('hidden' => false, 'value' => 10), 'order_by' => array('value' => 'date')), 'description' => __('Create WordPress loop, to populate content from your site.', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Columns count', 'js_composer'), 'param_name' => 'grid_columns_count', 'value' => array(6, 4, 3, 2, 1), 'std' => 3, 'admin_label' => true, 'description' => __('Select columns count.', 'js_composer')), 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('link', __('Read more link', 'js_composer')))), array('type' => 'dropdown', 'heading' => __('Link target', 'js_composer'), 'param_name' => 'grid_link_target', 'value' => $target_arr), array('type' => 'checkbox', 'heading' => __('Show filter', 'js_composer'), 'param_name' => 'filter', 'value' => array(__('Yes, please', 'js_composer') => 'yes'), 'description' => __('Select to add animated category filter to your posts grid.', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Layout mode', 'js_composer'), 'param_name' => 'grid_layout_mode', 'value' => array(__('Fit rows', 'js_composer') => 'fitRows', __('Masonry', 'js_composer') => 'masonry'), 'description' => __('Teaser layout template.', 'js_composer')), array('type' => 'textfield', 'heading' => __('Thumbnail size', 'js_composer'), 'param_name' => 'grid_thumb_size', 'description' => __('Enter thumbnail size. Example: thumbnail, medium, large, full or other sizes defined by current theme. Alternatively enter image size in pixels: 200x100 (Width x Height) . ', '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')))));
    /* Carousel
      ---------------------------------------------------------- */
    vc_map(array('name' => __('Carousel', 'vc_extend'), 'base' => 'vc_carousel', 'class' => '', 'icon' => 'icon-wpb-vc_carousel', 'category' => __('Content', 'js_composer'), 'description' => __('Animated carousel with posts', 'js_composer'), 'params' => array(array('type' => 'textfield', 'heading' => __('Widget title', 'js_composer'), 'param_name' => 'title', 'description' => __('Enter text which will be used as widget title. Leave blank if no title is needed.', 'js_composer')), array('type' => 'loop', 'heading' => __('Carousel content', 'js_composer'), 'param_name' => 'posts_query', 'settings' => array('size' => array('hidden' => false, 'value' => 10), 'order_by' => array('value' => 'date')), 'description' => __('Create WordPress loop, to populate content from your site.', 'js_composer')), array('type' => 'sorted_list', 'heading' => __('Teaser layout', 'js_composer'), 'param_name' => '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('link', __('Read more link', 'js_composer')))), array('type' => 'dropdown', 'heading' => __('Link target', 'js_composer'), 'param_name' => 'link_target', 'value' => $target_arr), array('type' => 'textfield', 'heading' => __('Thumbnail size', 'js_composer'), 'param_name' => 'thumb_size', 'description' => __('Enter thumbnail size. Example: thumbnail, medium, large, full or other sizes defined by current theme. Alternatively enter image size in pixels: 200x100 (Width x Height) . ', 'js_composer')), array('type' => 'textfield', 'heading' => __('Slider speed', 'js_composer'), 'param_name' => 'speed', 'value' => '5000', 'description' => __('Duration of animation between slides (in ms)', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Slider mode', 'js_composer'), 'param_name' => 'mode', 'value' => array(__('Horizontal', 'js_composer') => 'horizontal', __('Vertical', 'js_composer') => 'vertical'), 'description' => __('Slides will be positioned horizontally (for horizontal swipes) or vertically (for vertical swipes)', 'js_composer')), array('type' => 'textfield', 'heading' => __('Slides per view', 'js_composer'), 'param_name' => 'slides_per_view', 'value' => '4', 'description' => __('Set numbers of slides you want to display at the same time on slider\'s container for carousel mode. Also supports for "auto" value, in this case it will fit slides depending on container\'s width. "auto" mode doesn\'t compatible with loop mode.', 'js_composer')), array('type' => 'checkbox', 'heading' => __('Slider autoplay', 'js_composer'), 'param_name' => 'autoplay', 'description' => __('Enables autoplay mode.', 'js_composer'), 'value' => array(__('Yes, please', 'js_composer') => 'yes')), array('type' => 'checkbox', 'heading' => __('Hide pagination control', 'js_composer'), 'param_name' => 'hide_pagination_control', 'description' => __('If "YES" pagination control will be removed', 'js_composer'), 'value' => array(__('Yes, please', 'js_composer') => 'yes')), array('type' => 'checkbox', 'heading' => __('Hide prev/next buttons', 'js_composer'), 'param_name' => 'hide_prev_next_buttons', 'description' => __('If "YES" prev/next control will be removed', 'js_composer'), 'value' => array(__('Yes, please', 'js_composer') => 'yes')), array('type' => 'checkbox', 'heading' => __('Partial view', 'js_composer'), 'param_name' => 'partial_view', 'description' => __('If "YES" part of the next slide will be visible on the right side', 'js_composer'), 'value' => array(__('Yes, please', 'js_composer') => 'yes')), array('type' => 'checkbox', 'heading' => __('Slider loop', 'js_composer'), 'param_name' => 'wrap', 'description' => __('Enables loop mode.', 'js_composer'), 'value' => array(__('Yes, please', 'js_composer') => 'yes')), 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')))));
    /* Posts slider
      ---------------------------------------------------------- */
    vc_map(array('name' => __('Posts Slider', 'js_composer'), 'base' => 'vc_posts_slider', 'icon' => 'icon-wpb-slideshow', 'category' => __('Content', 'js_composer'), 'description' => __('Slider with WP Posts', 'js_composer'), 'params' => array(array('type' => 'textfield', 'heading' => __('Widget title', 'js_composer'), 'param_name' => 'title', 'description' => __('Enter text which will be used as widget title. Leave blank if no title is needed.', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Slider type', 'js_composer'), 'param_name' => 'type', 'admin_label' => true, 'value' => array(__('Flex slider fade', 'js_composer') => 'flexslider_fade', __('Flex slider slide', 'js_composer') => 'flexslider_slide', __('Nivo slider', 'js_composer') => 'nivo'), 'description' => __('Select slider type.', 'js_composer')), array('type' => 'textfield', 'heading' => __('Slides count', 'js_composer'), 'param_name' => 'count', 'description' => __('How many slides to show? Enter number or word "All".', 'js_composer')), 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')), array('type' => 'posttypes', 'heading' => __('Post types', 'js_composer'), 'param_name' => 'posttypes', 'description' => __('Select post types to populate posts from.', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Description', 'js_composer'), 'param_name' => 'slides_content', 'value' => array(__('No description', 'js_composer') => '', __('Teaser (Excerpt)', 'js_composer') => 'teaser'), 'description' => __('Some sliders support description text, what content use for it?', 'js_composer'), 'dependency' => array('element' => 'type', 'value' => array('flexslider_fade', 'flexslider_slide'))), array('type' => 'checkbox', 'heading' => __('Output post title?', 'js_composer'), 'param_name' => 'slides_title', 'description' => __('If selected, title will be printed before the teaser text.', 'js_composer'), 'value' => array(__('Yes, please', 'js_composer') => true), 'dependency' => array('element' => 'slides_content', 'value' => array('teaser'))), array('type' => 'dropdown', 'heading' => __('Link', 'js_composer'), 'param_name' => 'link', 'value' => array(__('Link to post', 'js_composer') => 'link_post', __('Link to bigger image', 'js_composer') => 'link_image', __('Open custom link', 'js_composer') => 'custom_link', __('No link', 'js_composer') => 'link_no'), 'description' => __('Link type.', 'js_composer')), array('type' => 'exploded_textarea', 'heading' => __('Custom links', 'js_composer'), 'param_name' => 'custom_links', 'dependency' => array('element' => 'link', 'value' => 'custom_link'), 'description' => __('Enter links for each slide here. Divide links with linebreaks (Enter).', 'js_composer')), array('type' => 'textfield', 'heading' => __('Thumbnail size', 'js_composer'), 'param_name' => 'thumb_size', 'description' => __('Enter thumbnail size. Example: thumbnail, medium, large, full or other sizes defined by current theme. Alternatively enter image size in pixels: 200x100 (Width x Height) . ', 'js_composer')), array('type' => 'textfield', 'heading' => __('Post/Page IDs', 'js_composer'), 'param_name' => 'posts_in', 'description' => __('Fill this field with page/posts IDs separated by commas (,), to retrieve only them. Use this in conjunction with "Post types" field.', 'js_composer')), array('type' => 'exploded_textarea', 'heading' => __('Categories', 'js_composer'), 'param_name' => 'categories', 'description' => __('If you want to narrow output, enter category names here. Note: Only listed categories will be included. Divide categories with linebreaks (Enter) . ', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Order by', 'js_composer'), 'param_name' => 'orderby', 'value' => array('', __('Date', 'js_composer') => 'date', __('ID', 'js_composer') => 'ID', __('Author', 'js_composer') => 'author', __('Title', 'js_composer') => 'title', __('Modified', 'js_composer') => 'modified', __('Random', 'js_composer') => 'rand', __('Comment count', 'js_composer') => 'comment_count', __('Menu order', 'js_composer') => 'menu_order'), 'description' => sprintf(__('Select how to sort retrieved posts. More at %s.', 'js_composer'), '<a href="http://codex.wordpress.org/Class_Reference/WP_Query#Order_.26_Orderby_Parameters" target="_blank">WordPress codex page</a>')), array('type' => 'dropdown', 'heading' => __('Order by', 'js_composer'), 'param_name' => 'order', 'value' => array(__('Descending', 'js_composer') => 'DESC', __('Ascending', 'js_composer') => 'ASC'), 'description' => sprintf(__('Designates the ascending or descending order. More at %s.', 'js_composer'), '<a href="http://codex.wordpress.org/Class_Reference/WP_Query#Order_.26_Orderby_Parameters" target="_blank">WordPress codex page</a>')), 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')))));
    /* Widgetised sidebar
      ---------------------------------------------------------- */
    vc_map(array('name' => __('Widgetised Sidebar', 'js_composer'), 'base' => 'vc_widget_sidebar', 'class' => 'wpb_widget_sidebar_widget', 'icon' => 'icon-wpb-layout_sidebar', 'category' => __('Structure', 'js_composer'), 'description' => __('Place widgetised sidebar', 'js_composer'), 'params' => array(array('type' => 'textfield', 'heading' => __('Widget title', 'js_composer'), 'param_name' => 'title', 'description' => __('Enter text which will be used as widget title. Leave blank if no title is needed.', 'js_composer')), array('type' => 'widgetised_sidebars', 'heading' => __('Sidebar', 'js_composer'), 'param_name' => 'sidebar_id', 'description' => __('Select which widget area output.', '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')))));
    /* Button
      ---------------------------------------------------------- */
    $icons_arr = array(__('None', 'js_composer') => 'none', __('Address book icon', 'js_composer') => 'wpb_address_book', __('Alarm clock icon', 'js_composer') => 'wpb_alarm_clock', __('Anchor icon', 'js_composer') => 'wpb_anchor', __('Application Image icon', 'js_composer') => 'wpb_application_image', __('Arrow icon', 'js_composer') => 'wpb_arrow', __('Asterisk icon', 'js_composer') => 'wpb_asterisk', __('Hammer icon', 'js_composer') => 'wpb_hammer', __('Balloon icon', 'js_composer') => 'wpb_balloon', __('Balloon Buzz icon', 'js_composer') => 'wpb_balloon_buzz', __('Balloon Facebook icon', 'js_composer') => 'wpb_balloon_facebook', __('Balloon Twitter icon', 'js_composer') => 'wpb_balloon_twitter', __('Battery icon', 'js_composer') => 'wpb_battery', __('Binocular icon', 'js_composer') => 'wpb_binocular', __('Document Excel icon', 'js_composer') => 'wpb_document_excel', __('Document Image icon', 'js_composer') => 'wpb_document_image', __('Document Music icon', 'js_composer') => 'wpb_document_music', __('Document Office icon', 'js_composer') => 'wpb_document_office', __('Document PDF icon', 'js_composer') => 'wpb_document_pdf', __('Document Powerpoint icon', 'js_composer') => 'wpb_document_powerpoint', __('Document Word icon', 'js_composer') => 'wpb_document_word', __('Bookmark icon', 'js_composer') => 'wpb_bookmark', __('Camcorder icon', 'js_composer') => 'wpb_camcorder', __('Camera icon', 'js_composer') => 'wpb_camera', __('Chart icon', 'js_composer') => 'wpb_chart', __('Chart pie icon', 'js_composer') => 'wpb_chart_pie', __('Clock icon', 'js_composer') => 'wpb_clock', __('Fire icon', 'js_composer') => 'wpb_fire', __('Heart icon', 'js_composer') => 'wpb_heart', __('Mail icon', 'js_composer') => 'wpb_mail', __('Play icon', 'js_composer') => 'wpb_play', __('Shield icon', 'js_composer') => 'wpb_shield', __('Video icon', 'js_composer') => "wpb_video");
    vc_map(array('name' => __('Button', 'js_composer'), 'base' => 'vc_button', 'icon' => 'icon-wpb-ui-button', 'category' => __('Content', 'js_composer'), 'description' => __('Eye catching button', 'js_composer'), 'params' => array(array('type' => 'textfield', 'heading' => __('Text on the button', 'js_composer'), 'holder' => 'button', 'class' => 'wpb_button', 'param_name' => 'title', 'value' => __('Text on the button', 'js_composer'), 'description' => __('Text on the button.', 'js_composer')), array('type' => 'textfield', 'heading' => __('URL (Link)', 'js_composer'), 'param_name' => 'href', 'description' => __('Button link.', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Target', 'js_composer'), 'param_name' => 'target', 'value' => $target_arr, 'dependency' => array('element' => 'href', 'not_empty' => true)), array('type' => 'dropdown', 'heading' => __('Color', 'js_composer'), 'param_name' => 'color', 'value' => $colors_arr, 'description' => __('Button color.', 'js_composer'), 'param_holder_class' => 'vc-colored-dropdown'), array('type' => 'dropdown', 'heading' => __('Icon', 'js_composer'), 'param_name' => 'icon', 'value' => $icons_arr, 'description' => __('Button icon.', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Size', 'js_composer'), 'param_name' => 'size', 'value' => $size_arr, 'description' => __('Button size.', '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'))), 'js_view' => 'VcButtonView'));
    vc_map(array('name' => __('Button', 'js_composer') . " 2", 'base' => 'vc_button2', 'icon' => 'icon-wpb-ui-button', 'category' => array(__('Content', 'js_composer'), __('New elements', 'js_composer')), 'description' => __('Eye catching button', 'js_composer'), 'params' => array(array('type' => 'vc_link', 'heading' => __('URL (Link)', 'js_composer'), 'param_name' => 'link', 'description' => __('Button link.', 'js_composer')), array('type' => 'textfield', 'heading' => __('Text on the button', 'js_composer'), 'holder' => 'button', 'class' => 'wpb_button', 'param_name' => 'title', 'value' => __('Text on the button', 'js_composer'), 'description' => __('Text on the button.', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Style', 'js_composer'), 'param_name' => 'style', 'value' => getVcShared('button styles'), 'description' => __('Button style.', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Color', 'js_composer'), 'param_name' => 'color', 'value' => getVcShared('colors'), 'description' => __('Button color.', 'js_composer'), 'param_holder_class' => 'vc-colored-dropdown'), array('type' => 'dropdown', 'heading' => __('Size', 'js_composer'), 'param_name' => 'size', 'value' => getVcShared('sizes'), 'std' => 'md', 'description' => __('Button size.', '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')))));
    /* Call to Action Button
      ---------------------------------------------------------- */
    vc_map(array('name' => __('Call to Action Button', 'js_composer'), 'base' => 'vc_cta_button', 'icon' => 'icon-wpb-call-to-action', 'category' => __('Content', 'js_composer'), 'description' => __('Catch visitors attention with CTA block', 'js_composer'), 'params' => array(array('type' => 'textarea', 'admin_label' => true, 'heading' => __('Text', 'js_composer'), 'param_name' => 'call_text', 'value' => __('Click edit button to change this text.', 'js_composer'), 'description' => __('Enter your content.', 'js_composer')), array('type' => 'textfield', 'heading' => __('Text on the button', 'js_composer'), 'param_name' => 'title', 'value' => __('Text on the button', 'js_composer'), 'description' => __('Text on the button.', 'js_composer')), array('type' => 'textfield', 'heading' => __('URL (Link)', 'js_composer'), 'param_name' => 'href', 'description' => __('Button link.', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Target', 'js_composer'), 'param_name' => 'target', 'value' => $target_arr, 'dependency' => array('element' => 'href', 'not_empty' => true)), array('type' => 'dropdown', 'heading' => __('Color', 'js_composer'), 'param_name' => 'color', 'value' => $colors_arr, 'description' => __('Button color.', 'js_composer'), 'param_holder_class' => 'vc-colored-dropdown'), array('type' => 'dropdown', 'heading' => __('Icon', 'js_composer'), 'param_name' => 'icon', 'value' => $icons_arr, 'description' => __('Button icon.', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Size', 'js_composer'), 'param_name' => 'size', 'value' => $size_arr, 'description' => __('Button size.', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Button position', 'js_composer'), 'param_name' => 'position', 'value' => array(__('Align right', 'js_composer') => 'cta_align_right', __('Align left', 'js_composer') => 'cta_align_left', __('Align bottom', 'js_composer') => 'cta_align_bottom'), 'description' => __('Select button alignment.', 'js_composer')), $add_css_animation, 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'))), 'js_view' => 'VcCallToActionView'));
    vc_map(array('name' => __('Call to Action Button', 'js_composer') . ' 2', 'base' => 'vc_cta_button2', 'icon' => 'icon-wpb-call-to-action', 'category' => array(__('Content', 'js_composer'), __('New elements', 'js_composer')), 'description' => __('Catch visitors attention with CTA block', 'js_composer'), 'params' => array(array('type' => 'textfield', 'heading' => __('Heading first line', 'js_composer'), 'holder' => 'h2', 'param_name' => 'h2', 'value' => __('Hey! I am first heading line feel free to change me', 'js_composer'), 'description' => __('Text for the first heading line.', 'js_composer')), array('type' => 'textfield', 'heading' => __('Heading second line', 'js_composer'), 'holder' => 'h4', 'param_name' => 'h4', 'value' => '', 'description' => __('Optional text for the second heading line.', 'js_composer')), array('type' => 'dropdown', 'heading' => __('CTA style', 'js_composer'), 'param_name' => 'style', 'value' => getVcShared('cta styles'), 'description' => __('Call to action style.', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Element width', 'js_composer'), 'param_name' => 'el_width', 'value' => getVcShared('cta widths'), 'description' => __('Call to action element width in percents.', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Text align', 'js_composer'), 'param_name' => 'txt_align', 'value' => getVcShared('text align'), 'description' => __('Text align in call to action block.', 'js_composer')), array('type' => 'colorpicker', 'heading' => __('Custom Background Color', 'wpb'), 'param_name' => 'accent_color', 'description' => __('Select background color for your element.', 'wpb')), array('type' => 'textarea_html', 'holder' => 'div', 'heading' => __('Promotional text', 'js_composer'), 'param_name' => 'content', 'value' => __('<p>I am promo text. Click edit button to change this text. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.</p>', 'js_composer')), array('type' => 'vc_link', 'heading' => __('URL (Link)', 'js_composer'), 'param_name' => 'link', 'description' => __('Button link.', 'js_composer')), array('type' => 'textfield', 'heading' => __('Text on the button', 'js_composer'), 'param_name' => 'title', 'value' => __('Text on the button', 'js_composer'), 'description' => __('Text on the button.', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Button style', 'js_composer'), 'param_name' => 'btn_style', 'value' => getVcShared('button styles'), 'description' => __('Button style.', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Color', 'js_composer'), 'param_name' => 'color', 'value' => getVcShared('colors'), 'description' => __('Button color.', 'js_composer'), 'param_holder_class' => 'vc-colored-dropdown'), array('type' => 'dropdown', 'heading' => __('Size', 'js_composer'), 'param_name' => 'size', 'value' => getVcShared('sizes'), 'std' => 'md', 'description' => __('Button size.', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Button position', 'js_composer'), 'param_name' => 'position', 'value' => array(__('Align right', 'js_composer') => 'right', __('Align left', 'js_composer') => 'left', __('Align bottom', 'js_composer') => 'bottom'), 'description' => __('Select button alignment.', 'js_composer')), $add_css_animation, 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')))));
    /* Video element
      ---------------------------------------------------------- */
    vc_map(array('name' => __('Video Player', 'js_composer'), 'base' => 'vc_video', 'icon' => 'icon-wpb-film-youtube', 'category' => __('Content', 'js_composer'), 'description' => __('Embed YouTube/Vimeo player', 'js_composer'), 'params' => array(array('type' => 'textfield', 'heading' => __('Widget title', 'js_composer'), 'param_name' => 'title', 'description' => __('Enter text which will be used as widget title. Leave blank if no title is needed.', 'js_composer')), array('type' => 'textfield', 'heading' => __('Video link', 'js_composer'), 'param_name' => 'link', 'admin_label' => true, 'description' => sprintf(__('Link to the video. More about supported formats at %s.', 'js_composer'), '<a href="http://codex.wordpress.org/Embeds#Okay.2C_So_What_Sites_Can_I_Embed_From.3F" target="_blank">WordPress codex page</a>')), 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' => 'css_editor', 'heading' => __('Css', 'js_composer'), 'param_name' => 'css', 'group' => __('Design options', 'js_composer')))));
    /* Google maps element
      ---------------------------------------------------------- */
    vc_map(array('name' => __('Google Maps', 'js_composer'), 'base' => 'vc_gmaps', 'icon' => 'icon-wpb-map-pin', 'category' => __('Content', 'js_composer'), 'description' => __('Map block', 'js_composer'), 'params' => array(array('type' => 'textfield', 'heading' => __('Widget title', 'js_composer'), 'param_name' => 'title', 'description' => __('Enter text which will be used as widget title. Leave blank if no title is needed.', 'js_composer')), array('type' => 'textarea_safe', 'heading' => __('Map embed iframe', 'js_composer'), 'param_name' => 'link', 'description' => sprintf(__('Visit %s to create your map. 1) Find location 2) Click "Share" and make sure map is public on the web 3) Click folder icon to reveal "Embed on my site" link 4) Copy iframe code and paste it here.', 'js_composer'), '<a href="https://mapsengine.google.com/" target="_blank">Google maps</a>')), array('type' => 'textfield', 'heading' => __('Map height', 'js_composer'), 'param_name' => 'size', 'description' => __('Enter map height in pixels. Example: 200 or leave it empty to make map responsive.', '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')))));
    /* Raw HTML
      ---------------------------------------------------------- */
    vc_map(array('name' => __('Raw HTML', 'js_composer'), 'base' => 'vc_raw_html', 'icon' => 'icon-wpb-raw-html', 'category' => __('Structure', 'js_composer'), 'wrapper_class' => 'clearfix', 'description' => __('Output raw html code on your page', 'js_composer'), 'params' => array(array('type' => 'textarea_raw_html', 'holder' => 'div', 'heading' => __('Raw HTML', 'js_composer'), 'param_name' => 'content', 'value' => base64_encode('<p>I am raw html block.<br/>Click edit button to change this html</p>'), 'description' => __('Enter your HTML content.', 'js_composer')))));
    /* Raw JS
      ---------------------------------------------------------- */
    vc_map(array('name' => __('Raw JS', 'js_composer'), 'base' => 'vc_raw_js', 'icon' => 'icon-wpb-raw-javascript', 'category' => __('Structure', 'js_composer'), 'wrapper_class' => 'clearfix', 'description' => __('Output raw javascript code on your page', 'js_composer'), 'params' => array(array('type' => 'textarea_raw_html', 'holder' => 'div', 'heading' => __('Raw js', 'js_composer'), 'param_name' => 'content', 'value' => __(base64_encode('<script type="text/javascript"> alert("Enter your js here!" ); </script>'), 'js_composer'), 'description' => __('Enter your JS code.', 'js_composer')))));
    /* Flickr
      ---------------------------------------------------------- */
    vc_map(array('base' => 'vc_flickr', 'name' => __('Flickr Widget', 'js_composer'), 'icon' => 'icon-wpb-flickr', 'category' => __('Content', 'js_composer'), 'description' => __('Image feed from your flickr account', 'js_composer'), "params" => array(array('type' => 'textfield', 'heading' => __('Widget title', 'js_composer'), 'param_name' => 'title', 'description' => __('Enter text which will be used as widget title. Leave blank if no title is needed.', 'js_composer')), array('type' => 'textfield', 'heading' => __('Flickr ID', 'js_composer'), 'param_name' => 'flickr_id', 'admin_label' => true, 'description' => sprintf(__('To find your flickID visit %s.', 'js_composer'), '<a href="http://idgettr.com/" target="_blank">idGettr</a>')), array('type' => 'dropdown', 'heading' => __('Number of photos', 'js_composer'), 'param_name' => 'count', 'value' => array(9, 8, 7, 6, 5, 4, 3, 2, 1), 'description' => __('Number of photos.', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Type', 'js_composer'), 'param_name' => 'type', 'value' => array(__('User', 'js_composer') => 'user', __('Group', 'js_composer') => 'group'), 'description' => __('Photo stream type.', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Display', 'js_composer'), 'param_name' => 'display', 'value' => array(__('Latest', 'js_composer') => 'latest', __('Random', 'js_composer') => 'random'), 'description' => __('Photo order.', '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')))));
    /* Graph
      ---------------------------------------------------------- */
    vc_map(array('name' => __('Progress Bar', 'js_composer'), 'base' => 'vc_progress_bar', 'icon' => 'icon-wpb-graph', 'category' => __('Content', 'js_composer'), 'description' => __('Animated progress bar', 'js_composer'), 'params' => array(array('type' => 'textfield', 'heading' => __('Widget title', 'js_composer'), 'param_name' => 'title', 'description' => __('Enter text which will be used as widget title. Leave blank if no title is needed.', 'js_composer')), array('type' => 'exploded_textarea', 'heading' => __('Graphic values', 'js_composer'), 'param_name' => 'values', 'description' => __('Input graph values here. Divide values with linebreaks (Enter). Example: 90|Development', 'js_composer'), 'value' => "90|Development,80|Design,70|Marketing"), array('type' => 'textfield', 'heading' => __('Units', 'js_composer'), 'param_name' => 'units', 'description' => __('Enter measurement units (if needed) Eg. %, px, points, etc. Graph value and unit will be appended to the graph title.', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Bar color', 'js_composer'), 'param_name' => 'bgcolor', 'value' => array(__('Grey', 'js_composer') => 'bar_grey', __('Blue', 'js_composer') => 'bar_blue', __('Turquoise', 'js_composer') => 'bar_turquoise', __('Green', 'js_composer') => 'bar_green', __('Orange', 'js_composer') => 'bar_orange', __('Red', 'js_composer') => 'bar_red', __('Black', 'js_composer') => 'bar_black', __('Custom Color', 'js_composer') => 'custom'), 'description' => __('Select bar background color.', 'js_composer'), 'admin_label' => true), array('type' => 'colorpicker', 'heading' => __('Bar custom color', 'js_composer'), 'param_name' => 'custombgcolor', 'description' => __('Select custom background color for bars.', 'js_composer'), 'dependency' => array('element' => 'bgcolor', 'value' => array('custom'))), array('type' => 'checkbox', 'heading' => __('Options', 'js_composer'), 'param_name' => 'options', 'value' => array(__('Add Stripes?', 'js_composer') => 'striped', __('Add animation? Will be visible with striped bars.', 'js_composer') => 'animated')), 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')))));
    /**
     * Pie chart
     */
    vc_map(array('name' => __('Pie chart', 'vc_extend'), 'base' => 'vc_pie', 'class' => '', 'icon' => 'icon-wpb-vc_pie', 'category' => __('Content', 'js_composer'), 'description' => __('Animated pie chart', 'js_composer'), 'params' => array(array('type' => 'textfield', 'heading' => __('Widget title', 'js_composer'), 'param_name' => 'title', 'description' => __('Enter text which will be used as widget title. Leave blank if no title is needed.', 'js_composer'), 'admin_label' => true), array('type' => 'textfield', 'heading' => __('Pie value', 'js_composer'), 'param_name' => 'value', 'description' => __('Input graph value here. Choose range between 0 and 100.', 'js_composer'), 'value' => '50', 'admin_label' => true), array('type' => 'textfield', 'heading' => __('Pie label value', 'js_composer'), 'param_name' => 'label_value', 'description' => __('Input integer value for label. If empty "Pie value" will be used.', 'js_composer'), 'value' => ''), array('type' => 'textfield', 'heading' => __('Units', 'js_composer'), 'param_name' => 'units', 'description' => __('Enter measurement units (if needed) Eg. %, px, points, etc. Graph value and unit will be appended to the graph title.', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Bar color', 'js_composer'), 'param_name' => 'color', 'value' => $colors_arr, 'description' => __('Select pie chart color.', 'js_composer'), 'admin_label' => true, 'param_holder_class' => 'vc-colored-dropdown'), 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')))));
    /* Support for 3rd Party plugins
      ---------------------------------------------------------- */
    // Contact form 7 plugin
    include_once ABSPATH . 'wp-admin/includes/plugin.php';
    // Require plugin.php to use is_plugin_active() below
    if (is_plugin_active('contact-form-7/wp-contact-form-7.php')) {
        global $wpdb;
        $cf7 = $wpdb->get_results("\n      SELECT ID, post_title\n      FROM {$wpdb->posts}\n      WHERE post_type = 'wpcf7_contact_form'\n      ");
        $contact_forms = array();
        if ($cf7) {
            foreach ($cf7 as $cform) {
                $contact_forms[$cform->post_title] = $cform->ID;
            }
        } else {
            $contact_forms[__('No contact forms found', 'js_composer')] = 0;
        }
        vc_map(array('base' => 'contact-form-7', 'name' => __('Contact Form 7', 'js_composer'), 'icon' => 'icon-wpb-contactform7', 'category' => __('Content', 'js_composer'), 'description' => __('Place Contact Form7', 'js_composer'), 'params' => array(array('type' => 'textfield', 'heading' => __('Form title', 'js_composer'), 'param_name' => 'title', 'admin_label' => true, 'description' => __('What text use as form title. Leave blank if no title is needed.', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Select contact form', 'js_composer'), 'param_name' => 'id', 'value' => $contact_forms, 'description' => __('Choose previously created contact form from the drop down list.', 'js_composer')))));
    }
    // if contact form7 plugin active
    if (is_plugin_active('LayerSlider/layerslider.php')) {
        global $wpdb;
        $ls = $wpdb->get_results("\n      SELECT id, name, date_c\n      FROM " . $wpdb->prefix . "layerslider\n      WHERE flag_hidden = '0' AND flag_deleted = '0'\n      ORDER BY date_c ASC LIMIT 999\n      ");
        $layer_sliders = array();
        if ($ls) {
            foreach ($ls as $slider) {
                $layer_sliders[$slider->name] = $slider->id;
            }
        } else {
            $layer_sliders[__('No sliders found', 'js_composer')] = 0;
        }
        vc_map(array('base' => 'layerslider_vc', 'name' => __('Layer Slider', 'js_composer'), 'icon' => 'icon-wpb-layerslider', 'category' => __('Content', 'js_composer'), 'description' => __('Place LayerSlider', 'js_composer'), 'params' => array(array('type' => 'textfield', 'heading' => __('Widget title', 'js_composer'), 'param_name' => 'title', 'description' => __('Enter text which will be used as widget title. Leave blank if no title is needed.', 'js_composer')), array('type' => 'dropdown', 'heading' => __('LayerSlider ID', 'js_composer'), 'param_name' => 'id', 'admin_label' => true, 'value' => $layer_sliders, 'description' => __('Select your LayerSlider.', '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')))));
    }
    // if layer slider plugin active
    if (is_plugin_active('revslider/revslider.php')) {
        global $wpdb;
        $rs = $wpdb->get_results("\n      SELECT id, title, alias\n      FROM " . $wpdb->prefix . "revslider_sliders\n      ORDER BY id ASC LIMIT 999\n      ");
        $revsliders = array();
        if ($rs) {
            foreach ($rs as $slider) {
                $revsliders[$slider->title] = $slider->alias;
            }
        } else {
            $revsliders[__('No sliders found', 'js_composer')] = 0;
        }
        vc_map(array('base' => 'rev_slider_vc', 'name' => __('Revolution Slider', 'js_composer'), 'icon' => 'icon-wpb-revslider', 'category' => __('Content', 'js_composer'), 'description' => __('Place Revolution slider', 'js_composer'), "params" => array(array('type' => 'textfield', 'heading' => __('Widget title', 'js_composer'), 'param_name' => 'title', 'description' => __('Enter text which will be used as widget title. Leave blank if no title is needed.', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Revolution Slider', 'js_composer'), 'param_name' => 'alias', 'admin_label' => true, 'value' => $revsliders, 'description' => __('Select your Revolution Slider.', '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')))));
    }
    // if revslider plugin active
    if (is_plugin_active('gravityforms/gravityforms.php')) {
        $gravity_forms_array[__('No Gravity forms found.', 'js_composer')] = '';
        if (class_exists('RGFormsModel')) {
            $gravity_forms = RGFormsModel::get_forms(1, 'title');
            if ($gravity_forms) {
                $gravity_forms_array = array(__('Select a form to display.', 'js_composer') => '');
                foreach ($gravity_forms as $gravity_form) {
                    $gravity_forms_array[$gravity_form->title] = $gravity_form->id;
                }
            }
        }
        vc_map(array('name' => __('Gravity Form', 'js_composer'), 'base' => 'gravityform', 'icon' => 'icon-wpb-vc_gravityform', 'category' => __('Content', 'js_composer'), 'description' => __('Place Gravity form', 'js_composer'), 'params' => array(array('type' => 'dropdown', 'heading' => __('Form', 'js_composer'), 'param_name' => 'id', 'value' => $gravity_forms_array, 'description' => __('Select a form to add it to your post or page.', 'js_composer'), 'admin_label' => true), array('type' => 'dropdown', 'heading' => __('Display Form Title', 'js_composer'), 'param_name' => 'title', 'value' => array(__('No', 'js_composer') => 'false', __('Yes', 'js_composer') => 'true'), 'description' => __('Would you like to display the forms title?', 'js_composer'), 'dependency' => array('element' => 'id', 'not_empty' => true)), array('type' => 'dropdown', 'heading' => __('Display Form Description', 'js_composer'), 'param_name' => 'description', 'value' => array(__('No', 'js_composer') => 'false', __('Yes', 'js_composer') => 'true'), 'description' => __('Would you like to display the forms description?', 'js_composer'), 'dependency' => array('element' => 'id', 'not_empty' => true)), array('type' => 'dropdown', 'heading' => __('Enable AJAX?', 'js_composer'), 'param_name' => 'ajax', 'value' => array(__('No', 'js_composer') => 'false', __('Yes', 'js_composer') => 'true'), 'description' => __('Enable AJAX submission?', 'js_composer'), 'dependency' => array('element' => 'id', 'not_empty' => true)), array('type' => 'textfield', 'heading' => __('Tab Index', 'js_composer'), 'param_name' => 'tabindex', 'description' => __('(Optional) Specify the starting tab index for the fields of this form. Leave blank if you\'re not sure what this is.', 'js_composer'), 'dependency' => array('element' => 'id', 'not_empty' => true)))));
    }
    // if gravityforms active
    /* WordPress default Widgets (Appearance->Widgets)
      ---------------------------------------------------------- */
    vc_map(array('name' => 'WP ' . __("Search"), 'base' => 'vc_wp_search', 'icon' => 'icon-wpb-wp', 'category' => __('WordPress Widgets', 'js_composer'), 'class' => 'wpb_vc_wp_widget', 'weight' => -50, 'description' => __('A search form for your site', 'js_composer'), 'params' => array(array('type' => 'textfield', 'heading' => __('Widget title', 'js_composer'), 'param_name' => 'title', 'description' => __('What text use as a widget title. Leave blank to use default widget title.', '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')))));
    vc_map(array('name' => 'WP ' . __('Meta'), 'base' => 'vc_wp_meta', 'icon' => 'icon-wpb-wp', 'category' => __('WordPress Widgets', 'js_composer'), 'class' => 'wpb_vc_wp_widget', 'weight' => -50, 'description' => __('Log in/out, admin, feed and WordPress links', 'js_composer'), 'params' => array(array('type' => 'textfield', 'heading' => __('Widget title', 'js_composer'), 'param_name' => 'title', 'description' => __('What text use as a widget title. Leave blank to use default widget title.', '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')))));
    vc_map(array('name' => 'WP ' . __('Recent Comments'), 'base' => 'vc_wp_recentcomments', 'icon' => 'icon-wpb-wp', 'category' => __('WordPress Widgets', 'js_composer'), 'class' => 'wpb_vc_wp_widget', 'weight' => -50, 'description' => __('The most recent comments', 'js_composer'), 'params' => array(array('type' => 'textfield', 'heading' => __('Widget title', 'js_composer'), 'param_name' => 'title', 'description' => __('What text use as a widget title. Leave blank to use default widget title.', 'js_composer')), array('type' => 'textfield', 'heading' => __('Number of comments to show', 'js_composer'), 'param_name' => 'number', 'admin_label' => 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')))));
    vc_map(array('name' => 'WP ' . __('Calendar'), 'base' => 'vc_wp_calendar', 'icon' => 'icon-wpb-wp', 'category' => __('WordPress Widgets', 'js_composer'), 'class' => 'wpb_vc_wp_widget', 'weight' => -50, 'description' => __('A calendar of your sites posts', 'js_composer'), 'params' => array(array('type' => 'textfield', 'heading' => __('Widget title', 'js_composer'), 'param_name' => 'title', 'description' => __('What text use as a widget title. Leave blank to use default widget title.', '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')))));
    vc_map(array('name' => 'WP ' . __('Pages'), 'base' => 'vc_wp_pages', 'icon' => 'icon-wpb-wp', 'category' => __('WordPress Widgets', 'js_composer'), 'class' => 'wpb_vc_wp_widget', 'weight' => -50, 'description' => __('Your sites WordPress Pages', 'js_composer'), 'params' => array(array('type' => 'textfield', 'heading' => __('Widget title', 'js_composer'), 'param_name' => 'title', 'description' => __('What text use as a widget title. Leave blank to use default widget title.', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Sort by', 'js_composer'), 'param_name' => 'sortby', 'value' => array(__('Page title', 'js_composer') => 'post_title', __('Page order', 'js_composer') => 'menu_order', __('Page ID', 'js_composer') => 'ID'), 'admin_label' => true), array('type' => 'textfield', 'heading' => __('Exclude', 'js_composer'), 'param_name' => 'exclude', 'description' => __('Page IDs, separated by commas.', 'js_composer'), 'admin_label' => 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')))));
    $tag_taxonomies = array();
    foreach (get_taxonomies() as $taxonomy) {
        $tax = get_taxonomy($taxonomy);
        if (!$tax->show_tagcloud || empty($tax->labels->name)) {
            continue;
        }
        $tag_taxonomies[$tax->labels->name] = esc_attr($taxonomy);
    }
    vc_map(array('name' => 'WP ' . __('Tag Cloud'), 'base' => 'vc_wp_tagcloud', 'icon' => 'icon-wpb-wp', 'category' => __('WordPress Widgets', 'js_composer'), 'class' => 'wpb_vc_wp_widget', 'weight' => -50, 'description' => __('Your most used tags in cloud format', 'js_composer'), 'params' => array(array('type' => 'textfield', 'heading' => __('Widget title', 'js_composer'), 'param_name' => 'title', 'description' => __('What text use as a widget title. Leave blank to use default widget title.', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Taxonomy', 'js_composer'), 'param_name' => 'taxonomy', 'value' => $tag_taxonomies, 'admin_label' => 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')))));
    $custom_menus = array();
    $menus = get_terms('nav_menu', array('hide_empty' => false));
    if (is_array($menus)) {
        foreach ($menus as $single_menu) {
            $custom_menus[$single_menu->name] = $single_menu->term_id;
        }
    }
    vc_map(array('name' => 'WP ' . __("Custom Menu"), 'base' => 'vc_wp_custommenu', 'icon' => 'icon-wpb-wp', 'category' => __('WordPress Widgets', 'js_composer'), 'class' => 'wpb_vc_wp_widget', 'weight' => -50, 'description' => __('Use this widget to add one of your custom menus as a widget', 'js_composer'), 'params' => array(array('type' => 'textfield', 'heading' => __('Widget title', 'js_composer'), 'param_name' => 'title', 'description' => __('What text use as a widget title. Leave blank to use default widget title.', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Menu', 'js_composer'), 'param_name' => 'nav_menu', 'value' => $custom_menus, 'description' => empty($custom_menus) ? __('Custom menus not found. Please visit <b>Appearance > Menus</b> page to create new menu.', 'js_composer') : __('Select menu', 'js_composer'), 'admin_label' => 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')))));
    vc_map(array('name' => 'WP ' . __('Text'), 'base' => 'vc_wp_text', 'icon' => 'icon-wpb-wp', 'category' => __('WordPress Widgets', 'js_composer'), 'class' => 'wpb_vc_wp_widget', 'weight' => -50, 'description' => __('Arbitrary text or HTML', 'js_composer'), 'params' => array(array('type' => 'textfield', 'heading' => __('Widget title', 'js_composer'), 'param_name' => 'title', 'description' => __('What text use as a widget title. Leave blank to use default widget title.', 'js_composer')), array('type' => 'textarea', 'heading' => __('Text', 'js_composer'), 'param_name' => 'content'), 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')))));
    vc_map(array('name' => 'WP ' . __('Recent Posts'), 'base' => 'vc_wp_posts', 'icon' => 'icon-wpb-wp', 'category' => __('WordPress Widgets', 'js_composer'), 'class' => 'wpb_vc_wp_widget', 'weight' => -50, 'description' => __('The most recent posts on your site', 'js_composer'), 'params' => array(array('type' => 'textfield', 'heading' => __('Widget title', 'js_composer'), 'param_name' => 'title', 'description' => __('What text use as a widget title. Leave blank to use default widget title.', 'js_composer')), array('type' => 'textfield', 'heading' => __('Number of posts to show', 'js_composer'), 'param_name' => 'number', 'admin_label' => true), array('type' => 'checkbox', 'heading' => __('Display post date?', 'js_composer'), 'param_name' => 'show_date', 'value' => array(__('Yes, please', 'js_composerp') => 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')))));
    $link_category = array(__('All Links', 'js_composer') => '');
    $link_cats = get_terms('link_category');
    if (is_array($link_cats)) {
        foreach ($link_cats as $link_cat) {
            $link_category[$link_cat->name] = $link_cat->term_id;
        }
    }
    vc_map(array('name' => 'WP ' . __('Links'), 'base' => 'vc_wp_links', 'icon' => 'icon-wpb-wp', 'category' => __('WordPress Widgets', 'js_composer'), 'class' => 'wpb_vc_wp_widget', 'weight' => -50, 'description' => __('Your blogroll', 'js_composer'), 'params' => array(array('type' => 'dropdown', 'heading' => __('Link Category', 'js_composer'), 'param_name' => 'category', 'value' => $link_category, 'admin_label' => true), array('type' => 'dropdown', 'heading' => __('Sort by', 'js_composer'), 'param_name' => 'orderby', 'value' => array(__('Link title', 'js_composer') => 'name', __('Link rating', 'js_composer') => 'rating', __('Link ID', 'js_composer') => 'id', __('Random', 'js_composer') => 'rand')), array('type' => 'checkbox', 'heading' => __('Options', 'js_composer'), 'param_name' => 'options', 'value' => array(__('Show Link Image', 'js_composer') => 'images', __('Show Link Name', 'js_composer') => 'name', __('Show Link Description', 'js_composer') => 'description', __('Show Link Rating', 'js_composer') => 'rating')), array('type' => 'textfield', 'heading' => __('Number of links to show', 'js_composer'), 'param_name' => 'limit'), 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')))));
    vc_map(array('name' => 'WP ' . __('Categories'), 'base' => 'vc_wp_categories', 'icon' => 'icon-wpb-wp', 'category' => __('WordPress Widgets', 'js_composer'), 'class' => 'wpb_vc_wp_widget', 'weight' => -50, 'description' => __('A list or dropdown of categories', 'js_composer'), 'params' => array(array('type' => 'textfield', 'heading' => __('Widget title', 'js_composer'), 'param_name' => 'title', 'description' => __('What text use as a widget title. Leave blank to use default widget title.', 'js_composer')), array('type' => 'checkbox', 'heading' => __('Options', 'js_composer'), 'param_name' => 'options', 'value' => array(__('Display as dropdown', 'js_composer') => 'dropdown', __('Show post counts', 'js_composer') => 'count', __('Show hierarchy', 'js_composer') => 'hierarchical')), 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')))));
    vc_map(array('name' => 'WP ' . __('Archives'), 'base' => 'vc_wp_archives', 'icon' => 'icon-wpb-wp', 'category' => __('WordPress Widgets', 'js_composer'), 'class' => 'wpb_vc_wp_widget', 'weight' => -50, 'description' => __('A monthly archive of your sites posts', 'js_composer'), 'params' => array(array('type' => 'textfield', 'heading' => __('Widget title', 'js_composer'), 'param_name' => 'title', 'description' => __('What text use as a widget title. Leave blank to use default widget title.', 'js_composer')), array('type' => 'checkbox', 'heading' => __('Options', 'js_composer'), 'param_name' => 'options', 'value' => array(__('Display as dropdown', 'js_composer') => 'dropdown', __('Show post counts', 'js_composer') => 'count')), 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')))));
    vc_map(array('name' => 'WP ' . __('RSS'), 'base' => 'vc_wp_rss', 'icon' => 'icon-wpb-wp', 'category' => __('WordPress Widgets', 'js_composer'), 'class' => 'wpb_vc_wp_widget', 'weight' => -50, 'description' => __('Entries from any RSS or Atom feed', 'js_composer'), 'params' => array(array('type' => 'textfield', 'heading' => __('Widget title', 'js_composer'), 'param_name' => 'title', 'description' => __('What text use as a widget title. Leave blank to use default widget title.', 'js_composer')), array('type' => 'textfield', 'heading' => __('RSS feed URL', 'js_composer'), 'param_name' => 'url', 'description' => __('Enter the RSS feed URL.', 'js_composer'), 'admin_label' => true), array('type' => 'dropdown', 'heading' => __('Items', 'js_composer'), 'param_name' => 'items', 'value' => array(__('10 - Default', 'js_composer') => '', 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20), 'description' => __('How many items would you like to display?', 'js_composer'), 'admin_label' => true), array('type' => 'checkbox', 'heading' => __('Options', 'js_composer'), 'param_name' => 'options', 'value' => array(__('Display item content?', 'js_composer') => 'show_summary', __('Display item author if available?', 'js_composer') => 'show_author', __('Display item date?', 'js_composer') => 'show_date')), 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')))));
    if (function_exists('vc_atm_map')) {
        vc_atm_map();
    }
}
예제 #26
0
<?php

return array('name' => __('FAQ', 'js_composer'), 'base' => 'vc_toggle', 'icon' => 'icon-wpb-toggle-small-expand', 'category' => __('Content', 'js_composer'), 'description' => __('Toggle element for Q&A block', 'js_composer'), 'params' => array(array('type' => 'textfield', 'holder' => 'h4', 'class' => 'vc_toggle_title', 'heading' => __('Toggle title', 'js_composer'), 'param_name' => 'title', 'value' => __('Toggle title', 'js_composer'), 'description' => __('Enter title of toggle block.', 'js_composer')), array('type' => 'textarea_html', 'holder' => 'div', 'class' => 'vc_toggle_content', 'heading' => __('Toggle content', 'js_composer'), 'param_name' => 'content', 'value' => __('<p>Toggle content goes here, click edit button to change this text.</p>', 'js_composer'), 'description' => __('Toggle block content.', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Style', 'js_composer'), 'param_name' => 'style', 'value' => getVcShared('toggle styles'), 'description' => __('Select toggle design style.', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Icon color', 'js_composer'), 'param_name' => 'color', 'value' => array(__('Default', 'js_composer') => 'default') + getVcShared('colors'), 'description' => __('Select icon color.', 'js_composer'), 'param_holder_class' => 'vc_colored-dropdown'), array('type' => 'dropdown', 'heading' => __('Size', 'js_composer'), 'param_name' => 'size', 'value' => array_diff_key(getVcShared('sizes'), array('Mini' => '')), 'std' => 'md', 'description' => __('Select toggle size', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Default state', 'js_composer'), 'param_name' => 'open', 'value' => array(__('Closed', 'js_composer') => 'false', __('Open', 'js_composer') => 'true'), 'description' => __('Select "Open" if you want toggle to be open by default.', 'js_composer')), vc_map_add_css_animation(), array('type' => 'el_id', 'heading' => __('Element ID', 'js_composer'), 'param_name' => 'el_id', 'description' => sprintf(__('Enter optional ID. Make sure it is unique, and it is valid as w3c specification: %s (Must not have spaces)', 'js_composer'), '<a target="_blank" href="http://www.w3schools.com/tags/att_global_id.asp">' . __('link', 'js_composer') . '</a>'), 'settings' => array('auto_generate' => true)), array('type' => 'textfield', 'heading' => __('Extra class name', 'js_composer'), 'param_name' => 'el_class', 'description' => __('Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer')), array('type' => 'css_editor', 'heading' => __('CSS box', 'js_composer'), 'param_name' => 'css', 'group' => __('Design Options', 'js_composer'))), 'js_view' => 'VcToggleView');
<?php

vc_map(array('name' => __('Pageable Container', 'js_composer'), 'base' => 'vc_tta_pageable', 'icon' => 'icon-wpb-ui-pageable', 'is_container' => true, 'show_settings_on_create' => false, 'as_parent' => array('only' => 'vc_tta_section'), 'category' => __('Content', 'js_composer'), 'description' => __('Pageable content container', 'js_composer'), 'params' => array(array('type' => 'textfield', 'param_name' => 'title', 'heading' => __('Widget title', 'js_composer'), 'description' => __('Enter text used as widget title (Note: located above content element).', 'js_composer')), array('type' => 'hidden', 'param_name' => 'no_fill_content_area', 'std' => true), array('type' => 'dropdown', 'param_name' => 'autoplay', 'value' => array(__('None', 'js_composer') => 'none', '1' => '1', '2' => '2', '3' => '3', '4' => '4', '5' => '5', '10' => '10', '20' => '20', '30' => '30', '40' => '40', '50' => '50', '60' => '60'), 'std' => 'none', 'heading' => __('Autoplay', 'js_composer'), 'description' => __('Select auto rotate for pageable in seconds (Note: disabled by default).', 'js_composer')), array('type' => 'textfield', 'param_name' => 'active_section', 'heading' => __('Active section', 'js_composer'), 'value' => 1, 'description' => __('Enter active section number (Note: to have all sections closed on initial load enter non-existing number).', 'js_composer')), array('type' => 'dropdown', 'param_name' => 'pagination_style', 'value' => array(__('None', 'js_composer') => '', __('Square Dots', 'js_composer') => 'outline-square', __('Radio Dots', 'js_composer') => 'outline-round', __('Point Dots', 'js_composer') => 'flat-round', __('Fill Square Dots', 'js_composer') => 'flat-square', __('Rounded Fill Square Dots', 'js_composer') => 'flat-rounded'), 'heading' => __('Pagination style', 'js_composer'), 'description' => __('Select pagination style.', 'js_composer'), 'std' => 'outline-round'), array('type' => 'dropdown', 'param_name' => 'pagination_color', 'value' => getVcShared('colors-dashed'), 'heading' => __('Pagination color', 'js_composer'), 'description' => __('Select pagination color.', 'js_composer'), 'param_holder_class' => 'vc_colored-dropdown', 'std' => 'grey', 'dependency' => array('element' => 'pagination_style', 'not_empty' => true)), array('type' => 'dropdown', 'param_name' => 'tab_position', 'value' => array(__('Top', 'js_composer') => 'top', __('Bottom', 'js_composer') => 'bottom'), 'std' => 'bottom', 'heading' => __('Pagination position', 'js_composer'), 'description' => __('Select pageable navigation position.', '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')), array('type' => 'css_editor', 'heading' => __('CSS box', 'js_composer'), 'param_name' => 'css', 'group' => __('Design Options', 'js_composer'))), 'js_view' => 'VcBackendTtaPageableView', 'custom_markup' => '
<div class="vc_tta-container vc_tta-o-non-responsive" data-vc-action="collapse">
	<div class="vc_general vc_tta vc_tta-tabs vc_tta-pageable vc_tta-color-backend-tabs-white vc_tta-style-flat vc_tta-shape-rounded vc_tta-spacing-1 vc_tta-tabs-position-top vc_tta-controls-align-left">
		<div class="vc_tta-tabs-container">' . '<ul class="vc_tta-tabs-list">' . '<li class="vc_tta-tab" data-vc-tab data-vc-target-model-id="{{ model_id }}" data-element_type="vc_tta_section"><a href="javascript:;" data-vc-tabs data-vc-container=".vc_tta" data-vc-target="[data-model-id=\'{{ model_id }}\']" data-vc-target-model-id="{{ model_id }}"><span class="vc_tta-title-text">{{ section_title }}</span></a></li>' . '</ul>
		</div>
		<div class="vc_tta-panels vc_clearfix {{container-class}}">
		  {{ content }}
		</div>
	</div>
</div>', 'default_content' => '
[vc_tta_section title="' . sprintf("%s %d", __('Section', 'js_composer'), 1) . '"][/vc_tta_section]
[vc_tta_section title="' . sprintf("%s %d", __('Section', 'js_composer'), 2) . '"][/vc_tta_section]
	', 'admin_enqueue_js' => array(vc_asset_url('lib/vc_tabs/vc-tabs.js'))));
예제 #28
0
<?php

return array('name' => __('Pie Chart', 'js_composer'), 'base' => 'vc_pie', 'class' => '', 'icon' => 'icon-wpb-vc_pie', 'category' => __('Content', 'js_composer'), 'description' => __('Animated pie chart', 'js_composer'), 'params' => array(array('type' => 'textfield', 'heading' => __('Widget title', 'js_composer'), 'param_name' => 'title', 'description' => __('Enter text used as widget title (Note: located above content element).', 'js_composer'), 'admin_label' => true), array('type' => 'textfield', 'heading' => __('Value', 'js_composer'), 'param_name' => 'value', 'description' => __('Enter value for graph (Note: choose range from 0 to 100).', 'js_composer'), 'value' => '50', 'admin_label' => true), array('type' => 'textfield', 'heading' => __('Label value', 'js_composer'), 'param_name' => 'label_value', 'description' => __('Enter label for pie chart (Note: leaving empty will set value from "Value" field).', 'js_composer'), 'value' => ''), array('type' => 'textfield', 'heading' => __('Units', 'js_composer'), 'param_name' => 'units', 'description' => __('Enter measurement units (Example: %, px, points, etc. Note: graph value and units will be appended to graph title).', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Color', 'js_composer'), 'param_name' => 'color', 'value' => getVcShared('colors-dashed') + array(__('Custom', 'js_composer') => 'custom'), 'description' => __('Select pie chart color.', 'js_composer'), 'admin_label' => true, 'param_holder_class' => 'vc_colored-dropdown', 'std' => 'grey'), array('type' => 'colorpicker', 'heading' => __('Custom color', 'js_composer'), 'param_name' => 'custom_color', 'description' => __('Select custom color.', 'js_composer'), 'dependency' => array('element' => 'color', 'value' => array('custom'))), array('type' => 'textfield', 'heading' => __('Extra class name', 'js_composer'), 'param_name' => 'el_class', 'description' => __('Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer')), array('type' => 'css_editor', 'heading' => __('CSS box', 'js_composer'), 'param_name' => 'css', 'group' => __('Design Options', 'js_composer'))));
예제 #29
0
<?php

/* Message box 2
---------------------------------------------------------- */
$pixel_icons = vc_pixel_icons();
$custom_colors = array(__('Informational', 'js_composer') => 'info', __('Warning', 'js_composer') => 'warning', __('Success', 'js_composer') => 'success', __('Error', 'js_composer') => 'danger', __('Informational Classic', 'js_composer') => 'alert-info', __('Warning Classic', 'js_composer') => 'alert-warning', __('Success Classic', 'js_composer') => 'alert-success', __('Error Classic', 'js_composer') => 'alert-danger');
return array('name' => __('Message Box', 'js_composer'), 'base' => 'vc_message', 'icon' => 'icon-wpb-information-white', 'category' => __('Content', 'js_composer'), 'description' => __('Notification box', 'js_composer'), 'params' => array(array('type' => 'params_preset', 'heading' => __('Message Box Presets', 'js_composer'), 'param_name' => 'color', 'value' => '', 'options' => array(array('label' => __('Custom', 'js_composer'), 'value' => '', 'params' => array()), array('label' => __('Informational', 'js_composer'), 'value' => 'info', 'params' => array('message_box_color' => 'info', 'icon_type' => 'fontawesome', 'icon_fontawesome' => 'fa fa-info-circle')), array('label' => __('Warning', 'js_composer'), 'value' => 'warning', 'params' => array('message_box_color' => 'warning', 'icon_type' => 'fontawesome', 'icon_fontawesome' => 'fa fa-exclamation-triangle')), array('label' => __('Success', 'js_composer'), 'value' => 'success', 'params' => array('message_box_color' => 'success', 'icon_type' => 'fontawesome', 'icon_fontawesome' => 'fa fa-check')), array('label' => __('Error', 'js_composer'), 'value' => 'danger', 'params' => array('message_box_color' => 'danger', 'icon_type' => 'fontawesome', 'icon_fontawesome' => 'fa fa-times')), array('label' => __('Informational Classic', 'js_composer'), 'value' => 'alert-info', 'params' => array('message_box_color' => 'alert-info', 'icon_type' => 'pixelicons', 'icon_pixelicons' => 'vc_pixel_icon vc_pixel_icon-info')), array('label' => __('Warning Classic', 'js_composer'), 'value' => 'alert-warning', 'params' => array('message_box_color' => 'alert-warning', 'icon_type' => 'pixelicons', 'icon_pixelicons' => 'vc_pixel_icon vc_pixel_icon-alert')), array('label' => __('Success Classic', 'js_composer'), 'value' => 'alert-success', 'params' => array('message_box_color' => 'alert-success', 'icon_type' => 'pixelicons', 'icon_pixelicons' => 'vc_pixel_icon vc_pixel_icon-tick')), array('label' => __('Error Classic', 'js_composer'), 'value' => 'alert-danger', 'params' => array('message_box_color' => 'alert-danger', 'icon_type' => 'pixelicons', 'icon_pixelicons' => 'vc_pixel_icon vc_pixel_icon-explanation'))), 'description' => __('Select predefined message box design or choose "Custom" for custom styling.', 'js_composer'), 'param_holder_class' => 'vc_message-type vc_colored-dropdown'), array('type' => 'dropdown', 'heading' => __('Style', 'js_composer'), 'param_name' => 'message_box_style', 'value' => getVcShared('message_box_styles'), 'description' => __('Select message box design style.', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Shape', 'js_composer'), 'param_name' => 'style', 'std' => 'rounded', 'value' => array(__('Square', 'js_composer') => 'square', __('Rounded', 'js_composer') => 'rounded', __('Round', 'js_composer') => 'round'), 'description' => __('Select message box shape.', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Color', 'js_composer'), 'param_name' => 'message_box_color', 'value' => $custom_colors + getVcShared('colors'), 'description' => __('Select message box color.', 'js_composer'), 'param_holder_class' => 'vc_message-type vc_colored-dropdown'), array('type' => 'dropdown', 'heading' => __('Icon library', 'js_composer'), 'value' => array(__('Font Awesome', 'js_composer') => 'fontawesome', __('Open Iconic', 'js_composer') => 'openiconic', __('Typicons', 'js_composer') => 'typicons', __('Entypo', 'js_composer') => 'entypo', __('Linecons', 'js_composer') => 'linecons', __('Pixel', 'js_composer') => 'pixelicons', __('Mono Social', 'js_composer') => 'monosocial'), 'param_name' => 'icon_type', 'description' => __('Select icon library.', 'js_composer')), array('type' => 'iconpicker', 'heading' => __('Icon', 'js_composer'), 'param_name' => 'icon_fontawesome', 'value' => 'fa fa-info-circle', 'settings' => array('emptyIcon' => false, 'iconsPerPage' => 4000), 'dependency' => array('element' => 'icon_type', 'value' => 'fontawesome'), 'description' => __('Select icon from library.', 'js_composer')), array('type' => 'iconpicker', 'heading' => __('Icon', 'js_composer'), 'param_name' => 'icon_openiconic', 'settings' => array('emptyIcon' => false, 'type' => 'openiconic', 'iconsPerPage' => 4000), 'dependency' => array('element' => 'icon_type', 'value' => 'openiconic'), 'description' => __('Select icon from library.', 'js_composer')), array('type' => 'iconpicker', 'heading' => __('Icon', 'js_composer'), 'param_name' => 'icon_typicons', 'settings' => array('emptyIcon' => false, 'type' => 'typicons', 'iconsPerPage' => 4000), 'dependency' => array('element' => 'icon_type', 'value' => 'typicons'), 'description' => __('Select icon from library.', 'js_composer')), array('type' => 'iconpicker', 'heading' => __('Icon', 'js_composer'), 'param_name' => 'icon_entypo', 'settings' => array('emptyIcon' => false, 'type' => 'entypo', 'iconsPerPage' => 4000), 'dependency' => array('element' => 'icon_type', 'value' => 'entypo')), array('type' => 'iconpicker', 'heading' => __('Icon', 'js_composer'), 'param_name' => 'icon_linecons', 'settings' => array('emptyIcon' => false, 'type' => 'linecons', 'iconsPerPage' => 4000), 'dependency' => array('element' => 'icon_type', 'value' => 'linecons'), 'description' => __('Select icon from library.', 'js_composer')), array('type' => 'iconpicker', 'heading' => __('Icon', 'js_composer'), 'param_name' => 'icon_pixelicons', 'settings' => array('emptyIcon' => false, 'type' => 'pixelicons', 'source' => $pixel_icons), 'dependency' => array('element' => 'icon_type', 'value' => 'pixelicons'), 'description' => __('Select icon from library.', 'js_composer')), array('type' => 'iconpicker', 'heading' => __('Icon', 'js_composer'), 'param_name' => 'icon_monosocial', 'value' => 'vc-mono vc-mono-fivehundredpx', 'settings' => array('emptyIcon' => false, 'type' => 'monosocial', 'iconsPerPage' => 4000), 'dependency' => array('element' => 'icon_type', 'value' => 'monosocial'), 'description' => __('Select icon from library.', 'js_composer')), array('type' => 'textarea_html', 'holder' => 'div', 'class' => 'messagebox_text', 'heading' => __('Message text', 'js_composer'), 'param_name' => 'content', 'value' => __('<p>I am message box. Click edit button to change this text.</p>', 'js_composer')), vc_map_add_css_animation(false), array('type' => 'textfield', 'heading' => __('Extra class name', 'js_composer'), 'param_name' => 'el_class', 'description' => __('Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer')), array('type' => 'css_editor', 'heading' => __('CSS box', 'js_composer'), 'param_name' => 'css', 'group' => __('Design Options', 'js_composer'))), 'js_view' => 'VcMessageView_Backend');
예제 #30
0
                $img_url = wp_get_attachment_image_src($img_id, 'full');
                if (array($img_url)) {
                    $icon = sprintf('<img src="%s" class="img-responsive" alt="" />', $img_url['0']);
                }
                $divider_content = sprintf('<span class="%s">%s</span>', 'icon-image', $icon);
            }
            $styles_divider = 'style="' . esc_attr(implode(';', $styles_divider)) . '"';
            $divider = '<div class="' . implode(' ', $divider_class) . '" ' . $styles_divider . '>' . $divider_content . '</div>';
        }
        if ($custom_css) {
            $custom_css = '<div class="cruxstore_custom_css" data-css="' . esc_attr($custom_css) . '"></div>';
        }
        if ($spacer_position == 'bottom') {
            $output .= $title . $content . $divider;
        } elseif ($spacer_position == 'top') {
            $output .= $divider . $title . $content;
        } else {
            $output .= $title . $divider . $content;
        }
        $output .= $custom_css;
        if ($animation_delay) {
            $animation_delay = sprintf(' data-wow-delay="%sms"', $animation_delay);
        }
        $elementClass = preg_replace(array('/\\s+/', '/^\\s|\\s$/'), array(' ', ''), implode(' ', $elementClass));
        return '<div id="' . $rand . '"  class="' . esc_attr($elementClass) . '"' . $animation_delay . '>' . $output . '</div>';
    }
}
/* Custom Heading element
----------------------------------------------------------- */
vc_map(array('name' => esc_html__('KT: Heading', 'cruxstore'), 'base' => 'cruxstore_heading', "category" => esc_html__('by Kite-Themes', 'cruxstore'), 'params' => array(array("type" => "textfield", 'heading' => esc_html__('Title', 'js_composer'), 'param_name' => 'title', 'value' => esc_html__('Title', 'js_composer'), "admin_label" => true), array('type' => 'cruxstore_switch', 'heading' => esc_html__('First word color', 'cruxstore'), 'param_name' => 'word', 'value' => 'false', "description" => esc_html__("Show first word in special color", 'cruxstore')), array("type" => "textarea_html", "heading" => esc_html__("Content", 'cruxstore'), "param_name" => "content", "value" => '', "holder" => "div"), array('type' => 'dropdown', 'heading' => esc_html__('Alignment', 'js_composer'), 'param_name' => 'align', 'value' => array(esc_html__('Center', 'js_composer') => 'center', esc_html__('Left', 'js_composer') => 'left', esc_html__('Right', 'js_composer') => "right"), 'description' => esc_html__('Select separator alignment.', 'js_composer')), array("type" => "cruxstore_heading", "heading" => esc_html__("Seperator settings", 'cruxstore'), "param_name" => "spacer_settings"), array("type" => "dropdown", "class" => "", "heading" => __("Seperator", "cruxstore"), "param_name" => "spacer", "value" => array(__("No Seperator", "cruxstore") => "", __("Line", "cruxstore") => "line", __("Icon", "cruxstore") => "icon", __("Image", "cruxstore") => "image"), "description" => __("Horizontal line, icon or image to divide sections", "cruxstore"), "admin_label" => true), array("type" => "dropdown", "class" => "", "heading" => __("Seperator Position", "ultimate_vc"), "param_name" => "spacer_position", "value" => array(__("Between Heading & Content", "cruxstore") => "middle", __("Top", "cruxstore") => "top", __("Bottom", "cruxstore") => "bottom"), "dependency" => array("element" => "spacer", "value" => array("line", "icon", "imag")), 'description' => esc_html__('Select seperator position.', 'js_composer'), "admin_label" => true), array('type' => 'attach_image', 'heading' => esc_html__('Image Thumbnail', 'cruxstore'), 'param_name' => 'image', "dependency" => array("element" => "spacer", "value" => array("image")), 'description' => esc_html__('Select image from media library.', 'js_composer')), array("type" => "cruxstore_icons", 'heading' => esc_html__('Choose your icon', 'js_composer'), 'param_name' => 'icon', "value" => '', 'description' => esc_html__('Use existing font icon or upload a custom image.', 'cruxstore'), 'dependency' => array("element" => "spacer", "value" => array('icon'))), array('type' => 'dropdown', 'heading' => esc_html__('Icon color', 'js_composer'), 'param_name' => 'color', 'value' => array_merge(array(esc_html__('Default', 'js_composer') => 'default'), array(esc_html__('Accent color', 'cruxstore') => 'accent'), getVcShared('colors'), array(esc_html__('Custom color', 'js_composer') => 'custom')), 'description' => esc_html__('Select icon color.', 'js_composer'), 'param_holder_class' => 'vc_colored-dropdown', 'dependency' => array("element" => "spacer", "value" => array('icon')), "admin_label" => true, 'std' => 'grey'), array('type' => 'colorpicker', 'heading' => esc_html__('Custom Icon Color', 'js_composer'), 'param_name' => 'custom_color', 'description' => esc_html__('Select custom icon color.', 'js_composer'), 'dependency' => array('element' => 'color', 'value' => 'custom')), array('type' => 'dropdown', 'heading' => esc_html__('Size', 'js_composer'), 'param_name' => 'size', 'value' => array_merge(getVcShared('sizes'), array('Extra Large' => 'xl')), 'std' => 'md', 'description' => esc_html__('Icon size.', 'js_composer'), "admin_label" => true, 'dependency' => array("element" => "spacer", "value" => array('icon'))), array('type' => 'dropdown', 'heading' => __('Line Style', 'js_composer'), "param_name" => "line_style", 'value' => getVcShared('separator styles'), 'std' => '', 'description' => __('Separator display style.', 'js_composer'), "dependency" => array("element" => "spacer", "value" => array("line"))), array("type" => "cruxstore_number", "class" => "", "heading" => __("Line Width (optional)", "cruxstore"), "param_name" => "line_width", "suffix" => "px", "dependency" => array("element" => "spacer", "value" => array("line"))), array('type' => 'dropdown', 'heading' => __('Border width', 'js_composer'), 'param_name' => 'border_width', 'value' => getVcShared('separator border widths'), 'description' => __('Select border width (pixels).', 'js_composer'), "dependency" => array("element" => "spacer", "value" => array("line"))), array("type" => "colorpicker", "class" => "", "heading" => __("Line Color", "cruxstore"), "param_name" => "line_color", "value" => "#333333", "dependency" => array("element" => "spacer", "value" => array("line"))), array("type" => "cruxstore_heading", "heading" => esc_html__("Others settings", 'cruxstore'), "param_name" => "others_settings"), cruxstore_map_add_css_animation(), cruxstore_map_add_css_animation_delay(), array('type' => 'textfield', 'heading' => esc_html__('Extra class name', 'js_composer'), 'param_name' => 'el_class', 'description' => esc_html__('Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer')), array('type' => 'hidden', 'param_name' => 'link'), array("type" => "cruxstore_heading", "heading" => esc_html__("Typography heading", 'cruxstore'), "param_name" => "typography_heading", 'group' => esc_html__('Typography', 'cruxstore')), array('type' => 'cruxstore_responsive', 'param_name' => 'font_size', 'heading' => esc_html__('Font size', 'cruxstore'), 'group' => esc_html__('Typography', 'cruxstore'), 'unit' => esc_html__('px', 'cruxstore'), 'description' => esc_html__('Use font size for the title.', 'cruxstore')), array('type' => 'cruxstore_responsive', 'param_name' => 'line_height', 'heading' => esc_html__('Line Height', 'cruxstore'), 'group' => esc_html__('Typography', 'cruxstore'), 'unit' => esc_html__('px', 'cruxstore'), 'description' => esc_html__('Use line height for the title.', 'cruxstore')), array("type" => "cruxstore_number", "heading" => esc_html__("Letter spacing", 'cruxstore'), "param_name" => "letter_spacing", "min" => 0, "suffix" => "px", 'group' => esc_html__('Typography', 'cruxstore')), array('type' => 'font_container', 'param_name' => 'font_container', 'value' => '', 'settings' => array('fields' => array('tag' => 'h3', 'color', 'tag_description' => esc_html__('Select element tag.', 'js_composer'), 'text_align_description' => esc_html__('Select text alignment.', 'js_composer'), 'font_size_description' => esc_html__('Enter font size.', 'js_composer'), 'line_height_description' => esc_html__('Enter line height.', 'js_composer'), 'color_description' => esc_html__('Select heading color.', 'js_composer'))), 'group' => esc_html__('Typography', 'cruxstore')), array('type' => 'checkbox', 'heading' => esc_html__('Use theme default font family?', 'js_composer'), 'param_name' => 'use_theme_fonts', 'value' => array(esc_html__('Yes', 'js_composer') => 'yes'), 'description' => esc_html__('Use font family from the theme.', 'js_composer'), 'group' => esc_html__('Typography', 'cruxstore'), 'std' => 'yes'), array('type' => 'checkbox', 'heading' => __('Font Option', 'cruxstore'), 'param_name' => 'font_option', 'value' => array(__('Uppercase', 'cruxstore') => 'uppercase', __('Underline', 'cruxstore') => 'underline', __('Italic', 'cruxstore') => 'italic'), 'group' => esc_html__('Typography', 'cruxstore'), 'description' => esc_html__('Select special option for font.', 'cruxstore')), array('type' => 'google_fonts', 'param_name' => 'google_fonts', 'value' => '', 'settings' => array('fields' => array('font_family_description' => esc_html__('Select font family.', 'js_composer'), 'font_style_description' => esc_html__('Select font styling.', 'js_composer'))), 'group' => esc_html__('Typography', 'cruxstore'), 'dependency' => array('element' => 'use_theme_fonts', 'value_not_equal_to' => 'yes')), array('type' => 'css_editor', 'heading' => esc_html__('CSS box', 'js_composer'), 'param_name' => 'css', 'group' => esc_html__('Design Options', 'js_composer')))));