예제 #1
0
파일: portfolio.php 프로젝트: quyip8818/wps
 function kleo_portfolio_filter($parent_category = "", $exclude_categories = array())
 {
     $filter_output = $tax_terms = "";
     if ($parent_category == "" || $parent_category == "all") {
         $tax_terms = kleo_get_category_list('portfolio-category', 1);
     } else {
         $tax_terms = kleo_get_category_list('portfolio-category', 1, $parent_category);
     }
     $filter_output .= '<div class="filter-wrap row clearfix">' . "\n";
     $filter_output .= '<ul class="portfolio-filter-tabs bar-styling filtering col-sm-12 clearfix">' . "\n";
     $filter_output .= '<li class="all selected"><a data-filter="*" href="#"><span class="item-name">' . __("All", "kleo_framework") . '</span></a></li>' . "\n";
     foreach ($tax_terms as $tax_term) {
         $term = get_term_by('name', $tax_term, 'portfolio-category');
         if ($term && !in_array($term->term_id, $exclude_categories)) {
             $filter_output .= '<li><a href="#" data-filter=".' . $term->slug . '"><span class="item-name">' . $term->name . '</span></a></li>' . "\n";
         }
     }
     $filter_output .= '</ul></div>' . "\n";
     return $filter_output;
 }
예제 #2
0
function kleo_vc_manipulate_shortcodes()
{
    global $kleo_config;
    $animation = array("type" => "dropdown", "class" => "hide hidden", "holder" => 'div', "heading" => __("Animation"), "admin_label" => true, "param_name" => "animation", "value" => array("None" => "", "Animate when visible" => "animate-when-visible", "Animate when almost visible" => "animate-when-almost-visible"), "description" => "");
    $css_animation = array("type" => "dropdown", "class" => "hide hidden", "holder" => 'div', "heading" => __("Animation type"), "admin_label" => true, "param_name" => "css_animation", "value" => array("Right to Left" => "right-to-left", "Left to Right" => "left-to-right", "Bottom to Top" => "bottom-to-top", "Top to Bottom" => "top-to-bottom", "Scale" => "el-appear", "Fade" => "el-fade", "Pulsate" => "pulsate"), "dependency" => array("element" => "animation", "not_empty" => true), "description" => "");
    $icon = array('type' => 'iconpicker', 'heading' => __('Icon', 'js_composer'), 'param_name' => 'icon', "admin_label" => true, 'value' => '', 'settings' => array('emptyIcon' => false, 'type' => 'fontello', 'iconsPerPage' => 4000), 'description' => __('Select icon from library.', 'js_composer'));
    $icon_size = array("type" => "dropdown", "class" => "hide hidden", "holder" => 'div', "heading" => __("Icon size"), "admin_label" => true, "param_name" => "icon_size", "value" => array("Regular" => "", "2x" => "2x", "3x" => "3x", "4x" => "4x"));
    $el_class = array("type" => "textfield", "holder" => 'div', 'class' => 'hide hidden', "heading" => __("Extra class name"), "param_name" => "el_class", "value" => "", "description" => __("If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.", "js_composer"));
    $tooltip = array("type" => "dropdown", "holder" => 'div', 'class' => 'hide hidden', "heading" => __("Show Tooltip/Popover"), "param_name" => "tooltip", "value" => array('No' => '', "Tooltip" => "tooltip", "Popover" => "popover"), "description" => __("Display a tooltip or popover with descriptive text."));
    $tooltip_position = array("type" => "dropdown", "holder" => 'div', 'class' => 'hide hidden', "heading" => __("Tip position"), "param_name" => "tooltip_position", "value" => array("Left" => "left", "Right" => "right", "Top" => "top", "Bottom" => "bottom"), "dependency" => array("element" => "tooltip", "not_empty" => true), "description" => __("In which position to show the tooltip/popover"));
    $tooltip_title = array("type" => "textfield", "holder" => 'div', 'class' => 'hide hidden', "heading" => __("Tip/Popover Title"), "param_name" => "tooltip_title", "value" => "", "dependency" => array("element" => "tooltip", "not_empty" => true));
    $tooltip_text = array("type" => "textfield", "holder" => 'div', 'class' => 'hide hidden', "heading" => __("Popover text"), "param_name" => "tooltip_text", "value" => "", "dependency" => array("element" => "tooltip", "value" => "popover"));
    $tooltip_action = array("type" => "dropdown", "holder" => 'div', 'class' => 'hide hidden', "heading" => __("Tip/Popover action"), "param_name" => "tooltip_action", "value" => array("Hover" => "hover", "Click" => "click"), "dependency" => array("element" => "tooltip", "not_empty" => true), "description" => __("When to trigger the popover"));
    $button_args = array(array("param_name" => "title", "type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Title"), "value" => __('Text on the button', "kleo_framework"), "description" => __("Button text.")), array("param_name" => "href", "type" => "textfield", "holder" => "div", "class" => "", "heading" => __("URL(Link)"), "value" => '', "description" => ""), array("type" => "dropdown", "holder" => "div", "class" => "hide hidden", "heading" => __("Target"), "param_name" => "target", "value" => array('Same window' => '_self', 'New window' => '_blank'), "description" => ""), array("param_name" => "style", "type" => "dropdown", "holder" => "div", "class" => "hide hidden", "heading" => __("Style"), "value" => array('Default' => 'default', 'Primary' => 'primary', 'See through' => 'see-through', 'Highlight' => 'highlight', 'Highlight style 2' => 'highlight style2', 'Link' => 'link', 'Custom' => 'custom'), "description" => "Choose the button style"), array('type' => 'colorpicker', 'heading' => __('Background', '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 vc_column'), array('type' => 'colorpicker', 'heading' => __('Text', '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 vc_column'), array("param_name" => "size", "type" => "dropdown", "holder" => "div", "class" => "hide hidden", "heading" => __("Size"), "value" => array('Default' => '', 'Extra small' => 'xs', 'Small' => 'sm', 'Large' => 'lg'), "description" => "Choose how you want them to appear"), array("param_name" => "type", "type" => "dropdown", "holder" => "div", "class" => "hide hidden", "heading" => __("Type"), "value" => array('Regular' => '', 'Animated' => 'text-animated', 'Subtext' => 'subtext', 'App button' => 'app'), "description" => "Choose between several button types."), array("param_name" => "title_alt", "type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Second title"), "value" => '', "dependency" => array("element" => "type", "value" => array('text-animated', 'subtext', 'app')), "description" => ""), array("param_name" => "special", "type" => "dropdown", "holder" => "div", "class" => "hide hidden", "heading" => __("Extra rounded(special)"), "value" => array('No' => '', 'Yes' => 'yes', 'No-border' => 'no_border'), "description" => "Make the button extra rounded"), $icon, $tooltip, $tooltip_position, $tooltip_title, $tooltip_text, $tooltip_action);
    /* ROW */
    vc_remove_param('vc_row', 'full_width');
    vc_remove_param('vc_row', 'bg_color');
    vc_remove_param('vc_row', 'font_color');
    vc_remove_param('vc_row', 'bg_image');
    vc_remove_param('vc_row', 'bg_image_repeat');
    vc_remove_param('vc_row', 'padding');
    vc_remove_param('vc_row', 'margin_bottom');
    vc_remove_param('vc_row', 'el_class');
    vc_remove_param('vc_row', 'css');
    vc_remove_param('vc_row', 'parallax');
    vc_remove_param('vc_row', 'parallax_image');
    vc_add_param('vc_row', array('param_name' => 'front_status', 'heading' => __('Status', 'kleo_framework'), 'description' => __('Select front-end visibility status. If set to Draft it will not show on your page.', 'kleo_framework'), 'type' => 'dropdown', 'holder' => 'div', 'class' => 'hide hidden', "value" => array('Enabled' => '', 'Draft' => 'draft')));
    vc_add_param('vc_row', array('param_name' => 'inner_container', 'heading' => __('Inner Container', 'kleo_framework'), 'description' => __('Select whether to insert a container to the section. This will keep the content from going full with.', 'kleo_framework'), 'type' => 'dropdown', 'holder' => 'div', 'class' => 'hide hidden', "admin_label" => true, "value" => array('Yes' => 'yes', 'No' => 'no')));
    vc_add_param('vc_row', array('param_name' => 'text_align', 'heading' => __('Text align', 'kleo_framework'), 'description' => __('Align whole row content.', 'kleo_framework'), 'type' => 'dropdown', 'holder' => 'div', 'class' => 'hide hidden', "value" => array('Left' => '', 'Right' => 'right', 'Center' => 'center')));
    vc_add_param("vc_row", array("type" => "colorpicker", "class" => "", "holder" => 'div', 'class' => 'hide hidden', "heading" => __("Text color"), "param_name" => "text_color", "value" => "", "description" => __("")));
    vc_add_param("vc_row", array("type" => "dropdown", "holder" => 'div', 'class' => 'hide hidden', "heading" => __("Section style"), "admin_label" => true, "param_name" => "section_type", "value" => array("Main style" => "main", "Alternate style" => "alternate", "Header style" => "header", "Footer style" => "footer", "Socket style" => "socket"), "description" => __("These styles are set under Theme options.")));
    vc_add_param("vc_row", array("type" => "dropdown", "holder" => 'div', 'class' => 'hide hidden', "heading" => __("Background style"), "admin_label" => true, "param_name" => "type", "value" => array("Default" => '', "Color" => "color", "Image" => "image", "Video" => "video"), "description" => ""));
    vc_add_param("vc_row", array("type" => "colorpicker", "holder" => 'div', 'class' => 'hide hidden', "heading" => __("Background color"), "param_name" => "bg_color", "value" => "", "description" => __(""), "dependency" => array("element" => "type", "value" => "color")));
    vc_add_param("vc_row", array("type" => "attach_image", "holder" => 'div', 'class' => 'hide hidden', "heading" => __("Background image"), "param_name" => "bg_image", "description" => "", "dependency" => array("element" => "type", "value" => "image")));
    vc_add_param("vc_row", array("type" => "dropdown", "holder" => 'div', 'class' => 'hide hidden', "heading" => __("Background vertical position"), "param_name" => "bg_position", "value" => array("Top" => "top", "Middle" => "center", "Bottom" => "bottom"), "description" => __(""), "dependency" => array("element" => "type", "value" => "image")));
    vc_add_param("vc_row", array("type" => "dropdown", "holder" => 'div', 'class' => 'hide hidden', "heading" => __("Background horizontal position"), "param_name" => "bg_position_horizontal", "value" => array("Left" => "left", "Middle" => "center", "Right" => "right"), "description" => __(""), "dependency" => array("element" => "type", "value" => "image")));
    vc_add_param("vc_row", array("type" => "dropdown", "holder" => 'div', 'class' => 'hide hidden', "heading" => __("Background repeat"), "param_name" => "bg_repeat", "value" => array("No repeat" => "no-repeat", "Repeat (horizontally & vertically)" => "repeat", "Repeat horizontally" => "repeat-x", "Repeat vertically" => "repeat-y"), "description" => __(""), "dependency" => array("element" => "type", "value" => "image")));
    vc_add_param("vc_row", array("type" => "dropdown", "holder" => 'div', 'class' => 'hide hidden', "heading" => __("Full-width background"), "param_name" => "bg_cover", "value" => array("Enabled" => "true", "Disabled" => "false"), "description" => "", "dependency" => array("element" => "type", "value" => "image")));
    vc_add_param("vc_row", array("type" => "dropdown", "holder" => 'div', 'class' => 'hide hidden', "heading" => __("Fixed background"), "param_name" => "bg_attachment", "value" => array("Disabled" => "false", "Enabled" => "true"), "description" => __(""), "dependency" => array("element" => "type", "value" => "image")));
    // parallax enable
    vc_add_param("vc_row", array("type" => "checkbox", "holder" => 'div', 'class' => 'hide hidden', "heading" => __("Enable parallax"), "param_name" => "enable_parallax", "value" => array("" => "false"), "dependency" => array("element" => "type", "value" => "image")));
    vc_add_param("vc_row", array("type" => "textfield", "holder" => 'div', 'class' => 'hide hidden', "heading" => __("Parallax speed"), "param_name" => "parallax_speed", "value" => "0.1", "dependency" => array("element" => "enable_parallax", "not_empty" => true)));
    // video background
    vc_add_param("vc_row", array("type" => "textfield", "holder" => 'div', 'class' => 'hide hidden', "heading" => __("Video background (mp4)"), "param_name" => "bg_video_src_mp4", "value" => "", "dependency" => array("element" => "type", "value" => "video")));
    vc_add_param("vc_row", array("type" => "textfield", "holder" => 'div', 'class' => 'hide hidden', "heading" => __("Video background (ogv)"), "param_name" => "bg_video_src_ogv", "value" => "", "dependency" => array("element" => "type", "value" => "video")));
    vc_add_param("vc_row", array("type" => "textfield", "holder" => 'div', 'class' => 'hide hidden', "heading" => __("Video background (webm)"), "param_name" => "bg_video_src_webm", "value" => "", "dependency" => array("element" => "type", "value" => "video")));
    vc_add_param("vc_row", array("type" => "attach_image", "holder" => 'div', 'class' => 'hide hidden', "heading" => __("Image cover"), "param_name" => "bg_video_cover", "description" => "It will show before video load and on some mobile devices where video can't be played.", "dependency" => array("element" => "type", "value" => "video")));
    vc_add_param("vc_row", array("type" => "dropdown", "holder" => 'div', 'class' => 'hide hidden', "heading" => __("Vertical Aligned Content"), "param_name" => "vertical_align", "value" => array("No" => '', "Yes" => "yes"), "description" => "If you set Yes then the content in the row columns will have middle vertical alignment"));
    vc_add_param("vc_row", array("type" => "dropdown", "holder" => 'div', 'class' => 'hide hidden', "heading" => __("Between Columns Gap"), "param_name" => "column_gap", "value" => array("Yes" => '', "No" => "no"), "description" => "Set to No only if you want the inner columns not to have gaps between them."));
    vc_add_param("vc_row", array("type" => "textfield", "holder" => 'div', 'class' => 'hide hidden', "heading" => __("Top padding"), "param_name" => "padding_top", "value" => "40", "description" => __("Allowed measures: px,em,%,pt,cm.")));
    vc_add_param("vc_row", array("type" => "textfield", "holder" => 'div', 'class' => 'hide hidden', "heading" => __("Bottom padding"), "param_name" => "padding_bottom", "value" => "40", "description" => __("Allowed measures: px,em,%,pt,cm.")));
    vc_add_param("vc_row", array("type" => "textfield", "holder" => 'div', 'class' => 'hide hidden', "heading" => __("Left padding"), "param_name" => "padding_left", "value" => "", "description" => __("Allowed measures: px,em,%,pt,cm.")));
    vc_add_param("vc_row", array("type" => "textfield", "holder" => 'div', 'class' => 'hide hidden', "heading" => __("Right padding"), "param_name" => "padding_right", "value" => "", "description" => __("Allowed measures: px,em,%,pt,cm.")));
    vc_add_param("vc_row", array("type" => "textfield", "holder" => 'div', 'class' => 'hide hidden', "heading" => __("Top margin"), "param_name" => "margin_top", "value" => "", "description" => __("Allowed measures: px,em,%,pt,cm.")));
    vc_add_param("vc_row", array("type" => "textfield", "holder" => 'div', 'class' => 'hide hidden', "heading" => __("Bottom margin"), "param_name" => "margin_bottom", "value" => "", "description" => __("Allowed measures: px,em,%,pt,cm.")));
    vc_add_param("vc_row", array("type" => "textfield", "holder" => 'div', 'class' => 'hide hidden', "heading" => __("Minim height"), "param_name" => "min_height", "value" => "0", "description" => __("Allowed measures: px,em,%,pt,cm.")));
    vc_add_param('vc_row', array('param_name' => 'border', 'heading' => __('Border', 'kleo_framework'), 'description' => __('Select whether or not to display a border on this section.', 'kleo_framework'), 'type' => 'dropdown', "holder" => 'div', 'class' => 'hide hidden', 'value' => array('Bottom' => 'bottom', 'Top' => 'top', 'Left' => 'left', 'Right' => 'right', 'Horizontal' => 'horizontal', 'Vertical' => 'vertical', 'All' => 'all', 'None' => 'none')));
    // overflow hidden
    vc_add_param("vc_row", array("type" => "checkbox", "holder" => 'div', 'class' => 'hide hidden', "heading" => __("Overflow hidden"), "param_name" => "overflow", 'description' => __('Check if you want to hide section overflow', 'kleo_framework'), "value" => array("" => "false")));
    vc_add_param("vc_row", $animation);
    vc_add_param("vc_row", $css_animation);
    vc_add_param("vc_row", array('param_name' => 'visibility', 'heading' => __('Responsive Visibility', 'kleo_framework'), 'description' => __('Hide/Show content by screen size.', 'kleo_framework'), 'type' => 'checkbox', 'holder' => 'div', 'value' => array('Hidden Phones (max 768px)' => 'hidden-xs', 'Hidden Tablets (768px - 991px)' => 'hidden-sm', 'Hidden Desktops (992px - 1199px)' => 'hidden-md', 'Hidden Large Desktops (min 1200px)' => 'hidden-lg', 'Visible Phones (max 767px)' => 'visible-xs', 'Visible Tablets (768px - 991px)' => 'visible-sm', 'Visible Desktops (992px - 1199px)' => 'visible-md', 'Visible Large Desktops (min 1200px)' => 'visible-lg')));
    vc_add_param("vc_row", array("type" => "textfield", "holder" => 'div', 'class' => 'hide hidden', "heading" => __("Custom inline style"), "param_name" => "inline_style", "value" => ""));
    vc_add_param("vc_row", $el_class);
    vc_add_param("vc_row", array("type" => "textfield", "holder" => 'div', 'class' => 'hide hidden', "heading" => __("Element ID"), "param_name" => "el_id", "value" => "", "description" => "Set an ID for this section(without #). Can be used for One page links"));
    /* Inner column */
    vc_map_update("vc_column_inner", array("allowed_container_element" => true));
    /* Alert */
    global $pixel_icons;
    $pixel_icons = array(array('vc_pixel_icon vc_pixel_icon-alert' => __('Alert', 'js_composer')), array('vc_pixel_icon vc_pixel_icon-info' => __('Info', 'js_composer')), array('vc_pixel_icon vc_pixel_icon-tick' => __('Tick', 'js_composer')), array('vc_pixel_icon vc_pixel_icon-explanation' => __('Explanation', 'js_composer')), array('vc_pixel_icon vc_pixel_icon-address_book' => __('Address book', 'js_composer')), array('vc_pixel_icon vc_pixel_icon-alarm_clock' => __('Alarm clock', 'js_composer')), array('vc_pixel_icon vc_pixel_icon-anchor' => __('Anchor', 'js_composer')), array('vc_pixel_icon vc_pixel_icon-application_image' => __('Application Image', 'js_composer')), array('vc_pixel_icon vc_pixel_icon-arrow' => __('Arrow', 'js_composer')), array('vc_pixel_icon vc_pixel_icon-asterisk' => __('Asterisk', 'js_composer')), array('vc_pixel_icon vc_pixel_icon-hammer' => __('Hammer', 'js_composer')), array('vc_pixel_icon vc_pixel_icon-balloon' => __('Balloon', 'js_composer')), array('vc_pixel_icon vc_pixel_icon-balloon_buzz' => __('Balloon Buzz', 'js_composer')), array('vc_pixel_icon vc_pixel_icon-balloon_facebook' => __('Balloon Facebook', 'js_composer')), array('vc_pixel_icon vc_pixel_icon-balloon_twitter' => __('Balloon Twitter', 'js_composer')), array('vc_pixel_icon vc_pixel_icon-battery' => __('Battery', 'js_composer')), array('vc_pixel_icon vc_pixel_icon-binocular' => __('Binocular', 'js_composer')), array('vc_pixel_icon vc_pixel_icon-document_excel' => __('Document Excel', 'js_composer')), array('vc_pixel_icon vc_pixel_icon-document_image' => __('Document Image', 'js_composer')), array('vc_pixel_icon vc_pixel_icon-document_music' => __('Document Music', 'js_composer')), array('vc_pixel_icon vc_pixel_icon-document_office' => __('Document Office', 'js_composer')), array('vc_pixel_icon vc_pixel_icon-document_pdf' => __('Document PDF', 'js_composer')), array('vc_pixel_icon vc_pixel_icon-document_powerpoint' => __('Document Powerpoint', 'js_composer')), array('vc_pixel_icon vc_pixel_icon-document_word' => __('Document Word', 'js_composer')), array('vc_pixel_icon vc_pixel_icon-bookmark' => __('Bookmark', 'js_composer')), array('vc_pixel_icon vc_pixel_icon-camcorder' => __('Camcorder', 'js_composer')), array('vc_pixel_icon vc_pixel_icon-camera' => __('Camera', 'js_composer')), array('vc_pixel_icon vc_pixel_icon-chart' => __('Chart', 'js_composer')), array('vc_pixel_icon vc_pixel_icon-chart_pie' => __('Chart pie', 'js_composer')), array('vc_pixel_icon vc_pixel_icon-clock' => __('Clock', 'js_composer')), array('vc_pixel_icon vc_pixel_icon-fire' => __('Fire', 'js_composer')), array('vc_pixel_icon vc_pixel_icon-heart' => __('Heart', 'js_composer')), array('vc_pixel_icon vc_pixel_icon-mail' => __('Mail', 'js_composer')), array('vc_pixel_icon vc_pixel_icon-play' => __('Play', 'js_composer')), array('vc_pixel_icon vc_pixel_icon-shield' => __('Shield', 'js_composer')), array('vc_pixel_icon vc_pixel_icon-video' => __('Video', 'js_composer')));
    vc_remove_param('vc_message', 'icon_type');
    vc_remove_param('vc_message', 'icon_fontawesome');
    vc_remove_param('vc_message', 'icon_openiconic');
    vc_remove_param('vc_message', 'icon_typicons');
    vc_remove_param('vc_message', 'icon_entypo');
    vc_remove_param('vc_message', 'icon_linecons');
    vc_remove_param('vc_message', 'icon_pixelicons');
    vc_add_param("vc_message", array('type' => 'dropdown', 'heading' => __('Icon library', 'js_composer'), 'value' => array(__('Fontello(theme default)', 'js_composer') => 'fontello', __('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'), 'param_name' => 'icon_type', 'description' => __('Select icon library.', 'js_composer')));
    vc_add_param("vc_message", array('type' => 'iconpicker', 'heading' => __('Icon', 'js_composer'), 'param_name' => 'icon_fontello', 'value' => 'icon-info-circled', 'settings' => array('emptyIcon' => false, 'type' => 'fontello', 'iconsPerPage' => 4000), 'dependency' => array('element' => 'icon_type', 'value' => 'fontello'), 'description' => __('Select icon from library.', 'js_composer')));
    vc_add_param("vc_message", array('type' => 'iconpicker', 'heading' => __('Icon', 'js_composer'), 'param_name' => 'icon_fontawesome', 'value' => 'fa fa-info-circle', 'settings' => array('emptyIcon' => false, 'iconsPerPage' => 200), 'dependency' => array('element' => 'icon_type', 'value' => 'fontawesome'), 'description' => __('Select icon from library.', 'js_composer')));
    vc_add_param("vc_message", array('type' => 'iconpicker', 'heading' => __('Icon', 'js_composer'), 'param_name' => 'icon_openiconic', 'settings' => array('emptyIcon' => false, 'type' => 'openiconic', 'iconsPerPage' => 200), 'dependency' => array('element' => 'icon_type', 'value' => 'openiconic'), 'description' => __('Select icon from library.', 'js_composer')));
    vc_add_param("vc_message", array('type' => 'iconpicker', 'heading' => __('Icon', 'js_composer'), 'param_name' => 'icon_typicons', 'settings' => array('emptyIcon' => false, 'type' => 'typicons', 'iconsPerPage' => 200), 'dependency' => array('element' => 'icon_type', 'value' => 'typicons'), 'description' => __('Select icon from library.', 'js_composer')));
    vc_add_param("vc_message", array('type' => 'iconpicker', 'heading' => __('Icon', 'js_composer'), 'param_name' => 'icon_entypo', 'settings' => array('emptyIcon' => false, 'type' => 'entypo', 'iconsPerPage' => 300), 'dependency' => array('element' => 'icon_type', 'value' => 'entypo')));
    vc_add_param("vc_message", array('type' => 'iconpicker', 'heading' => __('Icon', 'js_composer'), 'param_name' => 'icon_linecons', 'settings' => array('emptyIcon' => false, 'type' => 'linecons', 'iconsPerPage' => 200), 'dependency' => array('element' => 'icon_type', 'value' => 'linecons'), 'description' => __('Select icon from library.', 'js_composer')));
    vc_add_param("vc_message", 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')));
    vc_remove_param('vc_message', 'css_animation');
    vc_add_param("vc_message", $animation);
    vc_add_param("vc_message", $css_animation);
    /* Text column */
    vc_remove_param('vc_column_text', 'css_animation');
    vc_map_update('vc_column_text', array('weight' => '990'));
    vc_add_param("vc_column_text", array("type" => "dropdown", "class" => "hide hidden", "holder" => 'div', "heading" => __("Lead Content"), "admin_label" => true, "param_name" => "lead", "value" => array("No" => "", "Yes" => "yes"), "description" => ""));
    vc_add_param("vc_column_text", array("type" => "textfield", "class" => "hide hidden", "holder" => 'div', "heading" => __("Font size"), "admin_label" => true, "param_name" => "font_size", "value" => "", "description" => "Set a custom Font size in pixels. Example: writing 16 in the text box will make a 16px font size"));
    vc_add_param("vc_column_text", array("type" => "dropdown", "class" => "hide hidden", "holder" => 'div', "heading" => __("Font weight"), "admin_label" => true, "param_name" => "font_weight", "value" => array("Normal" => "", "Bold" => "bold"), "description" => "Set a custom Font Weight for this text"));
    vc_add_param("vc_column_text", $animation);
    vc_add_param("vc_column_text", $css_animation);
    /* Toggle */
    vc_map_update('vc_toggle', array('name' => 'Toggle', 'description' => 'Add a Toggle element', 'weight' => 6));
    vc_remove_param('vc_toggle', 'color');
    vc_remove_param('vc_toggle', 'css_animation');
    vc_remove_param('vc_toggle', 'el_class');
    vc_add_param("vc_toggle", array('type' => 'iconpicker', 'heading' => __('Icon when toggle is opened'), 'param_name' => 'icon', 'value' => '', 'settings' => array('emptyIcon' => false, 'type' => 'fontello', 'iconsPerPage' => 4000), 'description' => __('Select icon from library.', 'js_composer')));
    vc_add_param("vc_toggle", array('type' => 'iconpicker', 'heading' => __('Icon when toggle is closed'), 'param_name' => 'icon_closed', 'value' => '', 'settings' => array('emptyIcon' => false, 'type' => 'fontello', 'iconsPerPage' => 4000), 'description' => __('Select icon from library.', 'js_composer')));
    vc_add_param("vc_toggle", array("type" => "dropdown", "class" => "hide hidden", "holder" => 'div', "heading" => __("Icon position"), "admin_label" => true, "param_name" => "icon_position", "value" => array("Left" => "to-left", "Right" => "to-right"), "description" => ""));
    vc_add_param("vc_toggle", $tooltip);
    vc_add_param("vc_toggle", $tooltip_position);
    vc_add_param("vc_toggle", $tooltip_title);
    vc_add_param("vc_toggle", $tooltip_text);
    vc_add_param("vc_toggle", $tooltip_action);
    vc_add_param("vc_toggle", $animation);
    vc_add_param("vc_toggle", $css_animation);
    vc_add_param("vc_toggle", $el_class);
    //add the class field
    /* Single Image */
    vc_remove_param('vc_single_image', 'css_animation');
    vc_remove_param('vc_single_image', 'el_class');
    vc_add_param('vc_single_image', array("type" => "dropdown", "holder" => 'div', 'class' => 'hide hidden', "heading" => __("Full width image"), "param_name" => "full_width", "value" => array('No' => '', 'Yes' => 'yes'), 'description' => 'If enabled then the image will stretch to the width of the container'));
    vc_add_param("vc_single_image", $animation);
    vc_add_param("vc_single_image", $css_animation);
    vc_add_param("vc_single_image", $el_class);
    //add the class field
    /* Gallery */
    vc_map_update('vc_gallery', array('description' => ''));
    vc_remove_param('vc_gallery', 'interval');
    vc_remove_param('vc_gallery', 'el_class');
    vc_add_param('vc_gallery', array("type" => "dropdown", "holder" => 'div', 'class' => 'hide hidden', "heading" => __("Type"), "param_name" => "type", "value" => array('Big image + thumbs' => 'thumbs', 'Grid' => 'grid')));
    vc_add_param('vc_gallery', array("type" => "dropdown", "holder" => 'div', 'class' => 'hide hidden', "heading" => __("Number of items per row"), "param_name" => "grid_number", "value" => array('6' => '6', '5' => '5', '4' => '4', '3' => '3', '2' => '2'), "dependency" => array("element" => "type", "value" => "grid")));
    vc_add_param('vc_gallery', array("type" => "dropdown", "holder" => 'div', 'class' => 'hide hidden', "heading" => __("Gap"), "param_name" => "gap", "value" => array('None' => '', 'Small' => 'small', 'Large' => 'large'), "dependency" => array("element" => "type", "value" => "grid")));
    vc_add_param('vc_gallery', $el_class);
    /* Block Grid */
    vc_map(array('base' => 'kleo_grid', 'name' => __('Feature Items Grid', 'kleo_framework'), 'weight' => 6, 'class' => '', 'icon' => 'block-grid', 'category' => "Content", 'description' => __('Easily include elements into a Grid container', 'kleo_framework'), 'as_parent' => array('only' => 'kleo_feature_item'), 'content_element' => true, 'js_view' => 'VcColumnView', 'params' => array(array('param_name' => 'type', 'heading' => __('Type', 'kleo_framework'), 'description' => __('Select how many items you want per row.', 'kleo_framework'), 'type' => 'dropdown', 'holder' => "div", 'class' => 'hide hidden', 'value' => array('One' => '1', 'Two' => '2', 'Three' => '3', 'Four' => '4')), array('param_name' => 'animation', 'heading' => __('Animation', 'kleo_framework'), 'description' => __('Animate elements inside the grid one by one', 'kleo_framework'), 'type' => 'dropdown', 'holder' => "div", 'class' => 'hide hidden', 'value' => array('No' => '', 'Yes' => 'yes')), array('param_name' => 'colored_icons', 'heading' => __('Colored icons', 'kleo_framework'), 'description' => __('Show colored icons. Color will be taken from the Highlight color from Theme options', 'kleo_framework'), 'type' => 'dropdown', 'holder' => "div", 'class' => 'hide hidden', 'value' => array('No' => '', 'Yes' => 'yes')), array('param_name' => 'bordered_icons', 'heading' => __('Bordered icons', 'kleo_framework'), 'description' => __('Show bordered icons', 'kleo_framework'), 'type' => 'dropdown', 'holder' => "div", 'class' => 'hide hidden', 'value' => array('No' => '', 'Yes' => 'yes')), array('param_name' => 'style', 'heading' => __('Style', 'kleo_framework'), 'description' => __('Choose a different style', 'kleo_framework'), 'type' => 'dropdown', 'holder' => "div", 'class' => 'hide hidden', 'value' => array('Default' => '', 'Box' => 'box')), $el_class)));
    /* Feature item */
    vc_map(array('base' => 'kleo_feature_item', 'name' => __('Feature Item', 'kleo_framework'), 'weight' => 880, 'class' => '', 'icon' => '', 'category' => "Content", 'description' => __('Include a feature item in your block grid', 'kleo_framework'), 'as_child' => array('only' => 'kleo_grid'), 'content_element' => true, 'params' => array(array('param_name' => 'title', 'heading' => 'Title', 'description' => "Enter your title here", 'type' => 'textfield', 'holder' => "div", 'value' => ""), array('param_name' => 'content', 'heading' => 'Text', 'description' => "Enter your text here", 'type' => 'textarea_html', 'holder' => "div", 'value' => ""), $icon, array("type" => "dropdown", "holder" => "div", "class" => "hide hidden", "heading" => __("Icon size"), "param_name" => "icon_size", "value" => array('Default' => 'default', 'Big' => 'big'), "description" => ""), array("type" => "dropdown", "holder" => "div", "class" => "hide hidden", "heading" => __("Icon position"), "param_name" => "icon_position", "value" => array('Left' => '', 'Center' => 'center'), "description" => ""))));
    /* List */
    vc_map(array('base' => 'kleo_list', 'name' => __('Fancy List', 'kleo_framework'), 'weight' => 6, 'class' => '', 'icon' => 'block-list', 'category' => "Content", 'description' => '', 'as_parent' => array('only' => 'kleo_list_item'), 'content_element' => true, 'js_view' => 'VcColumnView', 'params' => array(array('param_name' => 'type', 'heading' => __('Type', 'kleo_framework'), 'description' => __('Select the list type.', 'kleo_framework'), 'type' => 'dropdown', 'holder' => "div", 'class' => 'hide hidden', 'value' => array('Standard' => 'standard', 'With Icons' => 'icons', 'Ordered' => 'ordered', 'Ordered Roman' => 'ordered-roman', 'Unstyled' => 'unstyled')), array('param_name' => 'icon_color', 'heading' => __('Icon color', 'kleo_framework'), 'description' => "", 'type' => 'dropdown', 'holder' => "div", 'class' => 'hide hidden', 'value' => array('Normal' => '', 'Colored' => 'yes'), "dependency" => array("element" => "type", "value" => array("standard", "icons", "ordered", "ordered-roman"))), array('param_name' => 'icon_shadow', 'heading' => __('Icon shadow', 'kleo_framework'), 'description' => "", 'type' => 'dropdown', 'holder' => "div", 'class' => 'hide hidden', 'value' => array('Normal' => '', 'Shadow' => 'yes'), "dependency" => array("element" => "type", "value" => "icons")), array('param_name' => 'icon_large', 'heading' => __('Large icon', 'kleo_framework'), 'description' => "", 'type' => 'dropdown', 'holder' => "div", 'class' => 'hide hidden', 'value' => array('Normal' => '', 'Large' => 'yes'), "dependency" => array("element" => "type", "value" => "icons")), array('param_name' => 'inline', 'heading' => __('Inline', 'kleo_framework'), 'description' => "", 'type' => 'dropdown', 'holder' => "div", 'class' => 'hide hidden', 'value' => array('No' => '', 'Yes' => 'yes'), "dependency" => array("element" => "type", "value" => "icons")), array('param_name' => 'divider', 'heading' => __('Divider', 'kleo_framework'), 'description' => "", 'type' => 'dropdown', 'holder' => "div", 'class' => 'hide hidden', 'value' => array('No' => '', 'Solid' => 'yes', 'Dashed' => 'dashed')), array('param_name' => 'align', 'heading' => __('Align', 'kleo_framework'), 'description' => __('Align the list', 'kleo_framework'), 'type' => 'dropdown', 'holder' => "div", 'class' => 'hide hidden', 'value' => array('None' => '', 'Left' => 'left', 'Right' => 'right', 'Center' => 'center')), $el_class)));
    /* List item */
    vc_map(array('base' => 'kleo_list_item', 'name' => __('List Item', 'kleo_framework'), 'weight' => 880, 'category' => "Content", 'description' => '', 'as_child' => array('only' => 'kleo_list'), 'content_element' => true, 'params' => array($icon, array('param_name' => 'content', 'heading' => 'Text', 'description' => "Enter your text here", 'type' => 'textarea_html', 'holder' => "div", 'value' => ""))));
    /* TABS */
    vc_remove_param('vc_tabs', 'interval');
    vc_remove_param('vc_tabs', 'title');
    vc_remove_param('vc_tabs', 'el_class');
    vc_map_update("vc_tabs", array('weight' => 6));
    vc_add_param('vc_tabs', array("type" => "dropdown", "holder" => "div", "class" => "hide hidden", "heading" => __("Type"), "param_name" => "type", "value" => array('Tabs' => 'tabs', 'Pills' => 'pills'), "description" => "Choose how you want them to appear"));
    vc_add_param('vc_tabs', array("type" => "dropdown", "holder" => "div", "class" => "hide hidden", "heading" => __("Style"), "param_name" => "style", "value" => array('Default' => 'default', 'Square' => 'square', 'Line' => 'line'), "dependency" => array("element" => "type", "value" => "tabs"), "description" => ""));
    vc_add_param('vc_tabs', array("type" => "dropdown", "holder" => "div", "class" => "hide hidden", "heading" => __("Style"), "param_name" => "style_pills", "value" => array('Square' => 'square', 'Ghost' => 'ghost'), "dependency" => array("element" => "type", "value" => "pills"), "description" => ""));
    vc_add_param('vc_tabs', array('param_name' => 'active_tab', 'heading' => 'Active tab', 'description' => "Enter tab number to be active on load(Example: 1)", 'type' => 'textfield', 'holder' => "div", 'class' => "hide hidden", 'value' => ""));
    vc_add_param('vc_tabs', array("type" => "dropdown", "holder" => "div", "class" => "hide hidden", "heading" => __("Align"), "param_name" => "align", "value" => array('Left' => '', 'Centered' => 'centered'), "description" => ""));
    vc_add_param('vc_tabs', array('param_name' => 'margin_top', 'heading' => 'Top Margin', 'description' => "Enter the value in pixels. Eq. 50. Field accepts negative values.", 'type' => 'textfield', 'holder' => "div", 'class' => "hide hidden", 'value' => ""));
    vc_add_param('vc_tabs', $el_class);
    vc_map_update("vc_tab", array("allowed_container_element" => true));
    vc_add_param('vc_tab', $icon);
    /* Tours */
    vc_remove_param('vc_tour', 'el_class');
    vc_add_param('vc_tour', array("type" => "dropdown", "holder" => "div", "class" => "hide hidden", "heading" => __("Tabs Position"), "param_name" => "position", "value" => array('Left' => '', 'Right' => 'right'), "description" => "Choose how you want them to appear"));
    vc_add_param('vc_tour', $el_class);
    /* Accordion */
    vc_remove_param('vc_accordion', 'interval');
    vc_remove_param('vc_accordion', 'title');
    vc_remove_param('vc_accordion', 'el_class');
    vc_map_update("vc_accordion", array('weight' => 6, 'description' => ''));
    vc_add_param("vc_accordion", array("type" => "dropdown", "class" => "hide hidden", "holder" => 'div', "heading" => __("Icons position"), "admin_label" => true, "param_name" => "icons_position", "value" => array("Left" => "to-left", "Right" => "to-right"), "description" => ""));
    vc_add_param('vc_accordion', $el_class);
    vc_map_update("vc_accordion_tab", array("allowed_container_element" => true));
    vc_add_param("vc_accordion_tab", array('type' => 'iconpicker', 'heading' => __('Icon when accordion item is opened'), 'param_name' => 'icon', 'value' => '', 'settings' => array('emptyIcon' => false, 'type' => 'fontello', 'iconsPerPage' => 4000), 'description' => __('Select icon from library.', 'js_composer')));
    vc_add_param("vc_accordion_tab", array('type' => 'iconpicker', 'heading' => __('Icon when accordion item is closed'), 'param_name' => 'icon_closed', 'value' => '', 'settings' => array('emptyIcon' => false, 'type' => 'fontello', 'iconsPerPage' => 4000), 'description' => __('Select icon from library.', 'js_composer')));
    vc_add_param("vc_accordion_tab", $tooltip);
    vc_add_param("vc_accordion_tab", $tooltip_position);
    vc_add_param("vc_accordion_tab", $tooltip_title);
    vc_add_param("vc_accordion_tab", $tooltip_text);
    vc_add_param("vc_accordion_tab", $tooltip_action);
    /* Icon */
    vc_map(array('base' => 'kleo_icon', 'name' => 'Kleo Icon', 'weight' => 5, 'class' => '', 'icon' => 'icon-wpb-ui-icon', 'category' => __("Content", 'js_composer'), 'description' => __('Insert an icon into your content', 'kleo_framework'), 'params' => array($icon, $icon_size, $tooltip, $tooltip_position, $tooltip_title, $tooltip_text, $tooltip_action, array('param_name' => 'href', 'heading' => __('Add a link', 'kleo_framework'), 'description' => __('Type a http:// address', 'kleo_framework'), 'type' => 'textfield', 'class' => 'hide hidden', 'holder' => 'div', 'value' => ''), array('param_name' => 'target', 'heading' => __('Target window', 'kleo_framework'), 'description' => '', 'type' => 'dropdown', 'class' => 'hide hidden', 'holder' => 'div', "dependency" => array("element" => "href", "not_empty" => true), 'value' => array('Same window' => '_self', 'New window' => '_blank')), $el_class)));
    /* Clients */
    $client_tags = array();
    $defined_tags = get_terms('clients-tag');
    if (is_array($defined_tags) && !empty($defined_tags)) {
        //var_dump($defined_tags);
        foreach ($defined_tags as $tag) {
            $client_tags[$tag->name] = $tag->term_id;
        }
    }
    vc_map(array('base' => 'kleo_clients', 'name' => 'Clients', 'weight' => 5, 'class' => '', 'icon' => 'kleo_clients', 'category' => __("Content", 'js_composer'), 'description' => __('Showcase clients logos', 'kleo_framework'), 'params' => array(array('param_name' => 'animated', 'heading' => __('Animated', 'kleo_framework'), 'description' => __('Animate the icons when you first view them', 'kleo_framework'), 'type' => 'dropdown', 'class' => 'hide hidden', 'holder' => 'div', 'value' => array('Yes' => 'yes', 'No' => '')), array('param_name' => 'animation', 'heading' => __('Animation', 'kleo_framework'), 'description' => "", 'type' => 'dropdown', 'class' => 'hide hidden', 'holder' => 'div', 'value' => array('Fade' => 'fade', 'Appear' => 'appear'), "dependency" => array("element" => "animated", "value" => "yes")), array('param_name' => 'number', 'heading' => 'Number of logos', 'description' => "How many images to show", 'type' => 'textfield', 'class' => 'hide hidden', 'holder' => "div", 'value' => "5"), array('param_name' => 'target', 'heading' => __('Open links in new window', 'kleo_framework'), 'description' => "", 'type' => 'dropdown', 'class' => 'hide hidden', 'holder' => 'div', 'value' => array('No' => '', 'Yes' => '_blank')), array('param_name' => 'tags', 'heading' => __('Filter by Tags', 'kleo_framework'), 'description' => "", 'type' => 'checkbox', 'class' => 'hide hidden', 'holder' => 'div', 'value' => $client_tags), $el_class)));
    /* Testimonials */
    $testimonial_tags = array();
    $defined_tags = get_terms('testimonials-tag');
    if (is_array($defined_tags) && !empty($defined_tags)) {
        //var_dump($defined_tags);
        foreach ($defined_tags as $tag) {
            $testimonial_tags[$tag->name] = $tag->term_id;
        }
    }
    vc_map(array('base' => 'kleo_testimonials', 'name' => 'Testimonials', 'weight' => 5, 'class' => '', 'icon' => 'kleo_testimonials', 'category' => __("Content", 'js_composer'), 'description' => __('Showcase client testimonials', 'kleo_framework'), 'params' => array(array('param_name' => 'type', 'heading' => __('Type', 'kleo_framework'), 'description' => "", 'type' => 'dropdown', 'class' => 'hide hidden', 'holder' => 'div', 'value' => array('Simple' => 'simple', 'Carousel' => 'carousel')), array('param_name' => 'specific_id', 'heading' => __('By IDs', 'kleo_framework'), 'description' => "", 'type' => 'dropdown', 'class' => 'hide hidden', 'holder' => 'div', 'value' => array('Yes' => 'yes', 'No' => 'no')), array('param_name' => 'ids', 'heading' => 'Testimonials IDs to show.', 'description' => "Comma separated list of ids to display. ", "dependency" => array("element" => "specific_id", "value" => "yes"), 'type' => 'textfield', 'class' => 'hide hidden', 'holder' => "div", 'value' => ""), array('param_name' => 'number', 'heading' => 'Number of testimonials', 'description' => "How many testimonials to show. Default is 3", "dependency" => array("element" => "specific_id", "value" => "no"), 'type' => 'textfield', 'class' => 'hide hidden', 'holder' => "div", 'value' => ""), array('param_name' => 'offset', 'heading' => 'Testimonials offset', 'description' => "Display testimonials starting from the number you enter. Eq: if you enter 3, it will show testimonials from the 4th one ", "dependency" => array("element" => "specific_id", "value" => "no"), 'type' => 'textfield', 'class' => 'hide hidden', 'holder' => "div", 'value' => ""), array('param_name' => 'tags', 'heading' => __('Filter by Tags', 'kleo_framework'), 'description' => "", "dependency" => array("element" => "specific_id", "value" => "no"), 'type' => 'checkbox', 'class' => 'hide hidden', 'holder' => 'div', 'value' => $testimonial_tags), array("type" => "textfield", "holder" => 'div', 'class' => 'hide hidden', "heading" => __("Minimum items to show"), "param_name" => "min_items", "value" => "", "description" => "Default 1", "dependency" => array("element" => "specific_id", "value" => "no"), "dependency" => array("element" => "type", "value" => "carousel")), array("type" => "textfield", "holder" => 'div', 'class' => 'hide hidden', "heading" => __("Maximum items to show"), "param_name" => "max_items", "value" => "", "description" => "Default 1", "dependency" => array("element" => "type", "value" => "carousel")), array("type" => "textfield", "holder" => 'div', 'class' => 'hide hidden', "heading" => __("Speed between slides"), "param_name" => "speed", "value" => "", "description" => "In miliseconds. Default is 5000 miliseconds, meaning 5 seconds", "dependency" => array("element" => "type", "value" => "carousel")), array("type" => "textfield", "holder" => 'div', 'class' => 'hide hidden', "heading" => __("Elements height"), "param_name" => "height", "value" => "", "description" => "Force a height on all elements. Expressed in pixels, eq: 300 will represent 300px"), $el_class)));
    /* PIN */
    vc_map(array('base' => 'kleo_pin', 'name' => 'Pin', 'weight' => 5, 'class' => '', 'icon' => 'icon-wpb-ui-icon', 'category' => __("Content", 'js_composer'), 'description' => __('Add pins with info', 'kleo_framework'), 'params' => array(array('param_name' => 'type', 'heading' => __('Type', 'kleo_framework'), 'description' => __('Type of pin', 'kleo_framework'), 'type' => 'dropdown', 'holder' => 'div', 'value' => array('Icon' => 'icon', 'Circle' => 'circle', 'POI' => 'poi')), array('type' => 'iconpicker', 'heading' => __('Icon when toggle is closed'), 'param_name' => 'icon', "class" => "hide hidden", 'value' => '', 'settings' => array('emptyIcon' => false, 'type' => 'fontello', 'iconsPerPage' => 4000), 'description' => __('Choose the icon to display'), "dependency" => array("element" => "type", "value" => "icon")), array('param_name' => 'top', 'heading' => 'Top position', 'description' => "Please enter only pixels and percentage, eq. 50px or 15%", 'type' => 'textfield', 'holder' => "div", 'value' => ""), array('param_name' => 'left', 'heading' => 'Left position', 'description' => "Please enter only pixels and percentage, eq. 50px or 15%", 'type' => 'textfield', 'holder' => "div", 'value' => ""), array('param_name' => 'right', 'heading' => 'Right position', 'description' => "Please enter only pixels and percentage, eq. 50px or 15%", 'type' => 'textfield', 'holder' => "div", 'value' => ""), array('param_name' => 'bottom', 'heading' => 'Bottom position', 'description' => "Please enter only pixels and percentage, eq. 50px or 15%", 'type' => 'textfield', 'holder' => "div", 'value' => ""), $tooltip, $tooltip_position, $tooltip_title, $tooltip_text, $tooltip_action, $animation, $css_animation, $el_class)));
    /* Button */
    vc_map(array('base' => 'kleo_button', 'name' => 'Kleo Button', 'weight' => 970, 'class' => '', 'icon' => 'icon-wpb-ui-button', 'category' => __("Content", 'js_composer'), 'description' => __('Insert a button in your content', 'kleo_framework'), 'params' => $button_args));
    vc_add_param('kleo_button', $el_class);
    /* Animated numbers */
    vc_map(array('base' => 'kleo_animate_numbers', 'name' => 'Animated numbers', 'weight' => 970, 'content_element' => true, 'class' => '', 'icon' => 'animated-numbers', 'category' => __("Content", 'js_composer'), 'description' => __('Insert an animated number', 'kleo_framework'), 'params' => array($animation, array('param_name' => 'content', 'heading' => 'Number', 'description' => "Enter the number to animate", 'type' => 'textfield', 'holder' => "div", 'value' => ""), array('param_name' => 'timer', 'heading' => 'Timer', 'description' => "The time in miliseconds to complete the animation, eq 3000 for 3 seconds of animation", 'type' => 'textfield', 'holder' => "div", 'class' => "hide hidden", 'value' => ""), $el_class)));
    vc_add_param('kleo_animate_numbers', $el_class);
    /* Responsive visibility */
    vc_map(array('base' => 'kleo_visibility', 'name' => __('Visibility', 'kleo_framework'), 'weight' => 6, 'class' => '', 'icon' => 'visibility', 'category' => "Content", 'description' => __('Alter content based on screen size', 'kleo_framework'), 'as_parent' => array('except' => 'vc_row, vc_column'), 'content_element' => true, 'js_view' => 'VcColumnView', 'params' => array(array('param_name' => 'type', 'heading' => __('Visibility Type', 'kleo_framework'), 'description' => __('Hide/Show content by screen size.', 'kleo_framework'), 'type' => 'checkbox', 'holder' => 'div', 'value' => array('Hidden Phones (max 768px)' => 'hidden-xs', 'Hidden Tablets (768px - 991px)' => 'hidden-sm', 'Hidden Desktops (992px - 1199px)' => 'hidden-md', 'Hidden Large Desktops (min 1200px)' => 'hidden-lg', 'Visible Phones (max 767px)' => 'visible-xs', 'Visible Tablets (768px - 991px)' => 'visible-sm', 'Visible Desktops (992px - 1199px)' => 'visible-md', 'Visible Large Desktops (min 1200px)' => 'visible-lg')), $el_class)));
    /* Content restrict by user type */
    vc_map(array('base' => 'kleo_restrict', 'name' => __('Content by user type', 'kleo_framework'), 'weight' => 6, 'class' => '', 'icon' => 'kleo_restrict', 'category' => "Content", 'description' => __('Restrict content based on user type', 'kleo_framework'), 'as_parent' => array('except' => 'vc_row, vc_column'), 'content_element' => true, "admin_label" => true, 'js_view' => 'VcColumnView', 'params' => array(array('param_name' => 'type', 'heading' => __('User Type', 'kleo_framework'), 'description' => __('Show content for user type.', 'kleo_framework'), 'type' => 'dropdown', 'holder' => 'div', 'class' => 'hide hidden', "admin_label" => true, 'value' => array('Logged in user' => 'user', 'Guest user' => 'guest')), $el_class)));
    /* GAP */
    vc_map(array('base' => 'kleo_gap', 'name' => 'Gap', 'weight' => 6, 'class' => 'kleo-icon', 'icon' => 'gap', 'category' => __("Content", 'js_composer'), 'description' => __('Insert a vertical gap in your content', 'kleo_framework'), 'params' => array(array('param_name' => 'size', 'heading' => __('Size', 'kleo_framework'), 'description' => __('Enter in the size of your gap. Pixels, ems, and percentages are all valid units of measurement.', 'kleo_framework'), 'type' => 'textfield', 'holder' => "div", 'value' => '10px'), array("param_name" => "class", "type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Class"), "value" => '', "description" => __("A class to add to the element for CSS referrences.")), array('param_name' => "id", 'heading' => "Id", 'description' => __('Unique id to add to the element for CSS referrences', 'kleo_framework'), 'type' => "textfield", 'holder' => "div"), array("param_name" => "style", "type" => "textfield", "class" => "", "holder" => 'div', "heading" => __("Custom inline style"), "value" => ""))));
    /* Divider */
    vc_map(array('base' => 'kleo_divider', 'name' => 'Divider with icon', 'weight' => 6, 'class' => 'kleo-icon', 'icon' => 'icon-wpb-ui-separator-label', 'category' => __("Content", 'js_composer'), 'description' => __('Insert a vertical divider in your content', 'kleo_framework'), 'params' => array(array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Type"), "param_name" => "type", "value" => array('Full' => 'full', 'Long' => 'long', 'Short' => 'short', 'Double' => 'double'), "description" => __("The type of the divider.")), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Double border"), "param_name" => "double", "value" => array('No' => '', 'Yes' => 'Yes'), "description" => __("Have the divider double lined.")), array("type" => "dropdown", "holder" => "div", "class" => "hide hidden", "heading" => __("Position"), "param_name" => "position", "value" => array('Center' => 'center', 'Left' => 'left', 'Right' => 'right'), "description" => ""), $icon, array("type" => "dropdown", "holder" => "div", "class" => "hide hidden", "heading" => __("Icon size"), "param_name" => "icon_size", "value" => array('Normal' => '', 'Large' => 'large'), "description" => ""), array("param_name" => "text", "type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Text"), "value" => '', "description" => __("This text wil show inside the divider")), array('param_name' => "id", 'heading' => "Id", 'description' => __('Unique id to add to the element for CSS referrences', 'kleo_framework'), 'type' => "textfield", 'holder' => "div"), array("param_name" => "class", "type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Class"), "value" => '', "description" => __("A class to add to the element for CSS referrences.")), array("param_name" => "style", "type" => "textfield", "class" => "", "holder" => 'div', "heading" => __("Custom inline style"), "value" => ""))));
    /* Posts grid */
    vc_map_update("vc_posts_grid", array("name" => "Kleo Posts", 'category' => __("Content", 'js_composer'), "deprecated" => null, "content_element" => true));
    vc_remove_param('vc_posts_grid', 'title');
    vc_remove_param('vc_posts_grid', 'grid_columns_count');
    vc_remove_param('vc_posts_grid', 'grid_layout');
    vc_remove_param('vc_posts_grid', 'grid_link_target');
    vc_remove_param('vc_posts_grid', 'filter');
    vc_remove_param('vc_posts_grid', 'grid_layout_mode');
    vc_remove_param('vc_posts_grid', 'grid_thumb_size');
    vc_remove_param('vc_posts_grid', 'el_class');
    vc_add_param("vc_posts_grid", array("type" => "dropdown", "holder" => "div", "class" => "hide hidden", "heading" => __("Layout"), "param_name" => "post_layout", "value" => array('Grid' => 'grid', 'Small Left Thumb' => 'small', 'Standard' => 'standard'), "description" => ""));
    vc_add_param("vc_posts_grid", array("param_name" => "columns", "type" => "textfield", "holder" => "div", "class" => "hide hidden", "heading" => __('Number of items per row', 'kleo_framework'), "value" => '4', "description" => 'A number between 2 and 6', "dependency" => array("element" => "post_layout", "value" => "grid")));
    if (isset($kleo_config['blog_layouts'])) {
        vc_add_param("vc_posts_grid", array("type" => "dropdown", "holder" => "div", "class" => "hide hidden", "heading" => __("Show Layout Switcher"), "param_name" => "show_switcher", "value" => array('No' => 'no', 'Yes' => 'yes'), "description" => "This allows the visitor to change posts layout."));
        vc_add_param("vc_posts_grid", array("type" => "checkbox", "holder" => "div", "class" => "hide hidden", "heading" => __("Switcher Layouts"), "param_name" => "switcher_layouts", "value" => array_flip($kleo_config['blog_layouts']), 'std' => join(",", array_values(array_flip($kleo_config['blog_layouts']))), "description" => "What layouts are available for the user to switch.", "dependency" => array("element" => "show_switcher", "value" => "yes")));
    }
    vc_add_param("vc_posts_grid", array("type" => "dropdown", "holder" => "div", "class" => "hide hidden", "heading" => __("Show Thumbnail image"), "param_name" => "show_thumb", "value" => array('Yes' => 'yes', 'Just for the first post' => 'just_1', 'Just for first two posts' => 'just_2', 'Just for first three posts' => 'just_3', 'No' => 'no'), "description" => "", "dependency" => array("element" => "post_layout", "value" => "standard")));
    vc_add_param("vc_posts_grid", array("type" => "dropdown", "holder" => "div", "class" => "hide hidden", "heading" => __("Show post meta"), "param_name" => "show_meta", "value" => array('Yes' => 'yes', 'No' => 'no'), "description" => ""));
    vc_add_param("vc_posts_grid", array("type" => "dropdown", "holder" => "div", "class" => "hide hidden", "heading" => __("Inline post meta"), "param_name" => "inline_meta", "value" => array('No' => 'no', 'Yes' => 'yes'), "description" => "Applies to Standard Layout only. Shows the post meta elements in one line if enabled.", "dependency" => array("element" => "show_meta", "value" => "yes")));
    vc_add_param("vc_posts_grid", array("type" => "dropdown", "holder" => "div", "class" => "hide hidden", "heading" => __("Show post excerpt"), "param_name" => "show_excerpt", "value" => array('Yes' => 'yes', 'No' => 'no'), "description" => ""));
    vc_add_param("vc_posts_grid", array("type" => "dropdown", "holder" => "div", "class" => "hide hidden", "heading" => __("Show post footer"), "param_name" => "show_footer", "value" => array('Yes' => 'yes', 'No' => 'no'), "description" => "Show read more button and post likes"));
    vc_add_param('vc_posts_grid', $el_class);
    /* Posts carousel */
    vc_map_update("vc_carousel", array("name" => "Kleo Posts Carousel", "deprecated" => null, "content_element" => true));
    vc_remove_param('vc_carousel', 'title');
    vc_remove_param('vc_carousel', 'layout');
    vc_remove_param('vc_carousel', 'link_target');
    vc_remove_param('vc_carousel', 'thumb_size');
    vc_remove_param('vc_carousel', 'mode');
    vc_remove_param('vc_carousel', 'slides_per_view');
    vc_remove_param('vc_carousel', 'partial_view');
    vc_remove_param('vc_carousel', 'wrap');
    vc_remove_param('vc_carousel', 'el_class');
    vc_remove_param('vc_carousel', 'hide_pagination_control');
    vc_remove_param('vc_carousel', 'hide_prev_next_buttons');
    vc_add_param("vc_carousel", array("type" => "dropdown", "holder" => "div", "class" => "hide hidden", "heading" => __("Layout"), "param_name" => "layout", "value" => array('Default' => 'default', 'Overlay' => 'overlay'), "description" => "Select the carousel layout"));
    vc_add_param("vc_carousel", array("type" => "textfield", "holder" => 'div', 'class' => 'hide hidden', "heading" => __("Minimum items to show"), "param_name" => "min_items", "value" => "", "description" => ""));
    vc_add_param("vc_carousel", array("type" => "textfield", "holder" => 'div', 'class' => 'hide hidden', "heading" => __("Maximum items to show"), "param_name" => "max_items", "value" => "", "description" => ""));
    vc_add_param("vc_carousel", array("type" => "textfield", "holder" => 'div', 'class' => 'hide hidden', "heading" => __("Elements height"), "param_name" => "height", "value" => "", "description" => "Force a height on all elements. Expressed in pixels, eq: 300 will represent 300px"));
    vc_add_param('vc_carousel', $el_class);
    /* Image carousel */
    vc_remove_param('vc_images_carousel', 'title');
    vc_remove_param('vc_images_carousel', 'mode');
    vc_remove_param('vc_images_carousel', 'slides_per_view');
    vc_remove_param('vc_images_carousel', 'partial_view');
    vc_remove_param('vc_images_carousel', 'wrap');
    vc_remove_param('vc_images_carousel', 'el_class');
    //vc_remove_param('vc_images_carousel','hide_prev_next_buttons');
    vc_add_param("vc_images_carousel", array("type" => "dropdown", "holder" => "div", "class" => "hide hidden", "heading" => __("Scroll effect"), "param_name" => "scroll_fx", "value" => array('Scroll' => 'scroll', 'CrossFade' => 'crossfade'), "description" => ""));
    vc_add_param("vc_images_carousel", $animation);
    vc_add_param("vc_images_carousel", array('param_name' => 'css_animation', 'heading' => __('Animation type', 'kleo_framework'), 'description' => "", 'type' => 'dropdown', 'class' => 'hide hidden', 'holder' => 'div', 'value' => array('Fade' => 'fade', 'Appear' => 'appear'), "dependency" => array("element" => "animation", "not_empty" => true)));
    vc_add_param("vc_images_carousel", array("type" => "textfield", "holder" => 'div', 'class' => 'hide hidden', "heading" => __("Minimum items to show"), "param_name" => "min_items", "value" => "", "description" => ""));
    vc_add_param("vc_images_carousel", array("type" => "textfield", "holder" => 'div', 'class' => 'hide hidden', "heading" => __("Maximum items to show"), "param_name" => "max_items", "value" => "", "description" => ""));
    vc_add_param('vc_images_carousel', $el_class);
    /* Tagcloud */
    vc_map_update('vc_wp_tagcloud', array('description' => 'Your most used tags or single post tags in cloud format'));
    vc_add_param('vc_wp_tagcloud', array("type" => "dropdown", "heading" => __("Context"), "param_name" => "context", "value" => array('All Posts' => 'all_posts', 'Current Post' => 'single_post'), "dependency" => array("element" => "taxonomy", "value" => "post_tag")));
    vc_remove_param('vc_wp_tagcloud', 'el_class');
    vc_add_param('vc_wp_tagcloud', $el_class);
    /* Portfolio */
    if (defined('KLEO_THEME_VERSION') && version_compare(KLEO_THEME_VERSION, '2.0') >= 0) {
        $exclude_cats = kleo_get_category_list_key_array(apply_filters('kleo_portfolio_cat_slug', 'portfolio-category'), 'term_id');
        unset($exclude_cats['all']);
        $exclude_cats = array_flip($exclude_cats);
        vc_map(array('base' => 'kleo_portfolio', 'name' => 'Portfolio', 'weight' => 6, 'class' => 'kleo-icon', 'icon' => 'portfolio', 'category' => __("Content", 'js_composer'), 'description' => __('Insert portfolio items', 'kleo_framework'), 'params' => array(array("type" => "dropdown", "holder" => "div", "class" => "hide hidden", "heading" => __("Display type"), "param_name" => "display_type", "value" => array('Default' => 'default', 'Overlay' => 'overlay'), "description" => ''), array("type" => "dropdown", "holder" => "div", "class" => "hide hidden", "heading" => __("Title style"), "param_name" => "title_style", "dependency" => array("element" => "display_type", "value" => "overlay"), "value" => array('Normal' => 'normal', 'Shown only on item hover' => 'hover'), "description" => ''), array("param_name" => "columns", "type" => "textfield", "holder" => "div", "class" => "hide hidden", "heading" => __('Number of items per row', 'kleo_framework'), "value" => '4', "description" => 'A number between 2 and 6'), array("param_name" => "item_count", "type" => "textfield", "holder" => "div", "class" => "hide hidden", "heading" => __('Items to show', 'kleo_framework'), "value" => '', "description" => 'Leave blank for default value as in Settings - Reading'), array("param_name" => "pagination", "type" => "dropdown", "holder" => "div", "class" => "hide hidden", "heading" => __("Display pagination. Only if is the case it will be showed"), "value" => array('No' => 'no', 'Yes' => 'yes'), "description" => ''), array("param_name" => "filter", "type" => "dropdown", "holder" => "div", "class" => "hide hidden", "heading" => __("Show filter on top with categories"), "value" => array('Yes' => 'yes', 'No' => 'no'), "description" => ''), array("param_name" => "excerpt", "type" => "dropdown", "holder" => "div", "class" => "hide hidden", "heading" => __("Display Subtitle for each item"), "value" => array('Yes' => 'yes', 'No' => 'no'), "description" => ''), array("param_name" => "image_size", "type" => "textfield", "holder" => "div", "class" => "hide hidden", "heading" => __('Images size', 'kleo_framework'), "value" => '', "description" => 'Leave blank to use default value 480x270. Expressed in pixels. Insert like: 400x400'), array("param_name" => "category", "type" => "dropdown", "holder" => "div", "class" => "hide hidden", "heading" => __("Show from Category"), "value" => kleo_get_category_list(apply_filters('kleo_portfolio_cat_slug', 'portfolio-category'), 1), "description" => ''), array("param_name" => "exclude_categories", "type" => "checkbox", "holder" => "div", "class" => "hide hidden", "heading" => __("Exclude categories"), "value" => $exclude_cats, "description" => ''), $el_class)));
    }
    /* Search form */
    $kleo_post_types = array();
    if (function_exists('bp_is_active')) {
        $kleo_post_types['Members'] = 'members';
        $kleo_post_types['Groups'] = 'groups';
    }
    $kleo_post_types['Posts'] = 'post';
    $kleo_post_types['Pages'] = 'page';
    $args = array('public' => true, '_builtin' => false);
    $types_return = 'objects';
    // names or objects, note names is the default
    $post_types = get_post_types($args, $types_return);
    $except_post_types = array('kleo_clients', 'kleo-testimonials', 'topic', 'reply');
    foreach ($post_types as $post_type) {
        if (in_array($post_type->name, $except_post_types)) {
            continue;
        }
        $kleo_post_types[$post_type->labels->name] = $post_type->name;
    }
    vc_map(array('base' => 'kleo_search_form', 'name' => 'Search Form', 'weight' => 6, 'class' => 'kleo-search', 'icon' => 'kleo-search', 'category' => __("Content", 'js_composer'), 'description' => __('Insert search form', 'kleo_framework'), 'params' => array(array("param_name" => "form_style", "type" => "dropdown", "holder" => "div", "class" => "hide hidden", "heading" => __("Form Style"), "value" => array('Default' => 'default', 'Transparent' => 'transparent'), "description" => 'This affects the look of the form. Default has a border and works for white backgrounds.'), array("param_name" => "type", "type" => "dropdown", "holder" => "div", "class" => "hide hidden", "heading" => __("Form Type"), "value" => array('Form submit + AJAX results' => 'both', 'Just Form Submit' => 'form_submit', 'Just AJAX results' => 'ajax'), "description" => 'Here you can disable Form Submit or AJAX results.'), array("param_name" => "context", "type" => "checkbox", "holder" => "div", "class" => "hide hidden", "heading" => __("Search context"), "value" => $kleo_post_types, "std" => "", "description" => 'Leave unchecked to search in all content. What content do you want to search for. For example if you select just Members then the form submit will go to members directory. Same applies for Forums and Products.'), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Placeholder"), "param_name" => "placeholder", "value" => '', "description" => __("Placeholder to show when the input is empty")), $el_class)));
    /* bbPress Search form */
    vc_map(array("name" => __("bbPress Header Search"), "base" => "kleo_bbp_header_search", "class" => "", "category" => __('bbPress'), "icon" => "kleo-bpp-icon", "params" => array(array("type" => "textfield", "holder" => "div", "class" => "hide hidden", "heading" => __("Forum ID"), "param_name" => "forum_id", "value" => '', "description" => __("Enter a Forum ID to search just in that forum. Leave blank to search in all forums ")), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Placeholder"), "param_name" => "placeholder", "value" => '', "description" => __("Placeholder to show when the input is empty")), array("type" => "colorpicker", "holder" => "div", "class" => "hide hidden", "heading" => __("Button text color"), "param_name" => "text_color", "value" => '#ffffff', "description" => ''), array("type" => "colorpicker", "holder" => "div", "class" => "hide hidden", "heading" => __("Button background color"), "param_name" => "bg_color", "value" => '#e74c3c', "description" => ''), $el_class)));
    /* Posts count */
    vc_map(array("name" => __("Count Posts"), "base" => "kleo_post_count", "class" => "", "category" => __('Content'), "icon" => "kleo-post-icon", "params" => array(array("type" => "textfield", "holder" => "div", "class" => "hide hidden", "heading" => __("Post type"), "param_name" => "type", "value" => '', "description" => __("Enter a post type to count for. This should be something like: post, page or portfolio ")))));
    /* Let it Snow */
    vc_map(array("name" => __("Let it Snow"), "base" => "kleo_snow", "class" => "", "category" => __('Content'), "icon" => "kleo-snow-icon", "params" => array(array("type" => "dropdown", "holder" => "div", "class" => "hide hidden", "heading" => __("Where the snowing effect should happen"), "param_name" => "scope", "value" => array('Parent Column' => 'column', 'Whole window' => 'window'), "description" => __("Add beautiful snow effect. Let it snow only in the container column element or activate it for the whole site. ")))));
    /* Pricing table */
    vc_map(array('base' => 'kleo_pricing_table', 'name' => __('Pricing Table', 'kleo_framework'), 'weight' => 6, 'class' => '', 'icon' => 'kleo-pricing-table', 'category' => "Content", 'description' => __('Easy to add pricing tables', 'kleo_framework'), 'as_parent' => array('only' => 'kleo_pricing_table_item'), 'content_element' => true, 'js_view' => 'VcColumnView', 'params' => array(array("type" => "dropdown", "holder" => "div", 'class' => 'hide hidden', "admin_label" => true, "heading" => __("Columns"), "param_name" => "columns", "value" => array('2' => '2', '3' => '3', '4' => '4', '6' => '6'), "description" => __("Number of pricing table columns.")), array("type" => "dropdown", "holder" => "div", "class" => "hide hidden", "heading" => __("Style"), "param_name" => "style", "value" => array('Default' => '', 'Condensed' => '2'), "description" => __("Choose a different style.")), array("type" => "colorpicker", "class" => "hide hidden", "holder" => 'div', 'class' => 'hide hidden', "heading" => __("Custom Heading background"), "param_name" => "heading_bg", "value" => ""), array("type" => "colorpicker", "class" => "hide hidden", "holder" => 'div', 'class' => 'hide hidden', "heading" => __("Custom Price background"), "param_name" => "price_bg", "value" => ""), array("type" => "colorpicker", "class" => "hide hidden", "holder" => 'div', 'class' => 'hide hidden', "heading" => __("Custom Text color"), "param_name" => "text_color", "value" => ""), $el_class)));
    /* Pricing table item */
    vc_map(array("name" => __("Pricing table item"), "base" => "kleo_pricing_table_item", "class" => "kleo-pricing-table-item", "category" => __('Content'), 'as_child' => array('only' => 'kleo_pricing_table'), 'content_element' => true, "icon" => "kleo-pricing-table-item", "params" => array(array("type" => "textfield", "holder" => "div", "class" => "hide hidden", "admin_label" => true, "heading" => __("Title"), "param_name" => "title", "value" => "Column title"), array("type" => "textfield", "holder" => "div", "admin_label" => true, "class" => "hide hidden", "heading" => __("Price"), "param_name" => "price", "value" => "\$10"), array("type" => "dropdown", "holder" => "div", "class" => "hide hidden", "admin_label" => true, "heading" => __("Popular column?"), "param_name" => "popular", "value" => array('No' => '', 'Yes' => 'yes'), "description" => __("Shows this column with a different style")), array('param_name' => 'content', 'heading' => 'Description', 'description' => "Enter description column here", 'type' => 'textarea_html', 'holder' => "div", "class" => "hide hidden", 'value' => ""), array("type" => "exploded_textarea", "holder" => "div", "class" => "hide hidden", "heading" => __("Features list"), "param_name" => "features", "description" => __("")), array("type" => "textfield", "holder" => "div", "class" => "hide hidden", "heading" => __("Button label"), "param_name" => "button_label", "value" => "Select"), array('type' => 'vc_link', 'heading' => __('URL (Link)', 'js_composer'), 'param_name' => 'link', 'description' => __('Add link to button', 'js_composer')))));
    /* Kleo Particles */
    vc_map(array("name" => __("Galaxy Particles"), "base" => "kleo_particles", "class" => "", "category" => __('Content'), "icon" => "kleo-particles", "description" => __("Add nice background connected particles"), "params" => array(array("type" => "textfield", "holder" => "div", "class" => "hide hidden", "admin_label" => true, "heading" => __("Particles number"), "param_name" => "number", "value" => "80"), array("type" => "textfield", "holder" => "div", "class" => "hide hidden", "admin_label" => true, "heading" => __("Particles size"), "param_name" => "size", "value" => "4"), array("type" => "colorpicker", "holder" => "div", "class" => "hide hidden", "admin_label" => true, "heading" => __("Particles color"), "param_name" => "color", "value" => "#ffffff"))));
    /* Kleo News Focus */
    vc_map(array("name" => __("NEWS Focus"), "base" => "kleo_news_focus", "class" => "", "category" => __('Content'), "icon" => "kleo-news-focus", "description" => __("News Posts with big left image"), "params" => array(array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Section name"), "param_name" => "name", "value" => "", "description" => __("Enter a section name.")), array("type" => "textfield", "holder" => "div", "class" => "hide hidden", "heading" => __("Featured posts on left side"), "param_name" => "featured", "value" => "1", "description" => __("Enter the number of post to highlight and show big on the left column.")), array('type' => 'loop', 'heading' => __('Build your query', 'js_composer'), 'param_name' => 'posts_query', 'settings' => array('size' => array('hidden' => false, 'value' => 10), 'order_by' => array('value' => 'date')), 'description' => __('If you refine your posts by category then they will show as tabbed content in the shortcode', 'js_composer')), $el_class)));
    /* Kleo News Highlight */
    vc_map(array("name" => __("NEWS Highlight"), "base" => "kleo_news_highlight", "class" => "", "category" => __('Content'), "icon" => "kleo-news-highlight", "description" => __("News Posts with first post big image"), "params" => array(array("type" => "textfield", "holder" => "div", "class" => "hide hidden", "heading" => __("Featured posts to show big"), "param_name" => "featured", "value" => "1", "description" => __("Enter the number of post to highlight and show with bigger thumb.")), array('type' => 'loop', 'heading' => __('Build your query', 'js_composer'), 'param_name' => 'posts_query', 'settings' => array('size' => array('hidden' => false, 'value' => 10), 'order_by' => array('value' => 'date')), 'description' => __('If you refine your posts by category then the first category will show as a label on first post image', 'js_composer')), $el_class)));
    /* Kleo News Ticker */
    vc_map(array("name" => __("NEWS Ticker"), "base" => "kleo_news_ticker", "class" => "", "category" => __('Content'), "icon" => "kleo-news-ticker", "description" => __("Auto Scrolling posts"), "params" => array(array('type' => 'loop', 'heading' => __('Build your query', 'js_composer'), 'param_name' => 'posts_query', 'settings' => array('size' => array('hidden' => false, 'value' => 10), 'order_by' => array('value' => 'date')), 'description' => __('Refine your posts by specific filters', 'js_composer')), $el_class)));
    /* Buddypress members count */
    vc_map(array("name" => __("Members Count"), "base" => "kleo_total_members", "class" => "", "category" => __('BuddyPress'), "icon" => "kleo-bp-icon", "description" => __("Show the total member count."), "show_settings_on_create" => false, "params" => array()));
    /* Buddypress members statistics */
    vc_map(array("name" => __("Members Statistics"), "base" => "kleo_bp_member_stats", "class" => "", "category" => __('BuddyPress'), "icon" => "kleo-bp-icon", "params" => array(array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Field Name"), "param_name" => "field", "value" => "", "description" => __("Profile field name.")), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Field Value"), "param_name" => "value", "value" => "", "description" => __("Profile field value.")), array("type" => "checkbox", "holder" => "div", "class" => "", "heading" => __("Online?"), "param_name" => "online", "value" => array("" => "false"), "description" => __("Only include online members."))), "description" => __("Show the member count by profile field value.")));
    // Buddypress Members Carousel
    vc_map(array("name" => __("Members Carousel"), "base" => "kleo_bp_members_carousel", "class" => "", "category" => __('BuddyPress'), "icon" => "kleo-bp-icon", "params" => array(array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Type"), "param_name" => "type", "value" => array('Active' => 'active', 'Newest' => 'newest', 'Popular' => 'popular', 'Online' => 'online', 'Alphabetical' => 'alphabetical', 'Random' => 'random'), "description" => __("The type of members to display.")), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Number of members"), "param_name" => "number", "value" => 12, "description" => __("How many members to get.")), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Minimum Items"), "param_name" => "min_items", "value" => 1, "description" => __("Minimum number of items to show on the screen")), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Maximum Items"), "param_name" => "max_items", "value" => 6, "description" => __("Maximum number of items to show on the screen")), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Image Type"), "param_name" => "image_size", "value" => array('Full' => 'full', 'Thumbnail' => 'thumb'), "description" => __("The size to get from buddypress")), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Avatar type"), "param_name" => "rounded", "value" => array('Rounded' => 'rounded', 'Square' => 'square'), "description" => __("Rounded or square avatar")), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Image Width"), "param_name" => "item_width", "value" => 150, "description" => __("The size of the member image")), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Auto play"), "param_name" => "autoplay", "value" => array('No' => '', 'Yes' => 'yes'), "description" => __("If the carousel should play automatically")), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Online status"), "param_name" => "online", "value" => array('Show' => 'show', 'Hide' => 'noshow'), "description" => __("Show online status")), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Class"), "param_name" => "class", "value" => '', "description" => __("A class to add to the element for CSS referrences.")))));
    // Buddypress Members Masonry
    vc_map(array("name" => __("Members Masonry"), "base" => "kleo_bp_members_masonry", "class" => "", "category" => __('BuddyPress'), "icon" => "kleo-bp-icon", "params" => array(array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Type"), "param_name" => "type", "value" => array('Active' => 'active', 'Newest' => 'newest', 'Popular' => 'popular', 'Online' => 'online', 'Alphabetical' => 'alphabetical', 'Random' => 'random'), "description" => __("The type of members to display.")), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Number of members"), "param_name" => "number", "value" => 12, "description" => __("How many members to get.")), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Avatar type"), "param_name" => "rounded", "value" => array('Rounded' => 'rounded', 'Square' => 'square'), "description" => __("Rounded or square avatar")), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Online status"), "param_name" => "online", "value" => array('Show' => 'show', 'Hide' => 'noshow'), "description" => __("Show online status")), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Class"), "param_name" => "class", "value" => '', "description" => __("A class to add to the element for CSS referrences.")))));
    /* Members grid */
    vc_map(array("name" => __("Members Grid"), "base" => "kleo_bp_members_grid", "class" => "", "category" => __('BuddyPress'), "icon" => "bp-icon", "params" => array(array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Type"), "param_name" => "type", "value" => array('Active' => 'active', 'Newest' => 'newest', 'Popular' => 'popular', 'Online' => 'online', 'Alphabetical' => 'alphabetical', 'Random' => 'random'), "description" => __("The type of members to display.")), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Maximum members"), "param_name" => "number", "value" => 12, "description" => __("How many members you want to display.")), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Members per line"), "param_name" => "perline", "value" => array('1' => 'one', '2' => 'two', '3' => 'three', '4' => 'four', '5' => 'five', '6' => 'six', '7' => 'seven', '8' => 'eight', '9' => 'nine', '10' => 'ten', '11' => 'eleven', '12' => 'twelve'), "description" => __("How many members to show per line")), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Avatar type"), "param_name" => "rounded", "value" => array('Square' => 'square', 'Rounded' => 'rounded'), "description" => __("Rounded or square avatar")), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Animation"), "param_name" => "animation", "value" => array('None' => '', 'Fade' => 'fade', 'Appear' => 'appear'), "description" => __("Elements will appear animated")), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Class"), "param_name" => "class", "value" => '', "description" => __("A class to add to the element for CSS referrences.")))));
    // Buddypress Groups Carousel
    vc_map(array("name" => __("Groups Carousel"), "base" => "kleo_bp_groups_carousel", "class" => "", "category" => __('BuddyPress'), "icon" => "bp-icon", "params" => array(array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Type"), "param_name" => "type", "value" => array('Active' => 'active', 'Newest' => 'newest', 'Popular' => 'popular', 'Alphabetical' => 'alphabetical', 'Most Forum Topics' => 'most-forum-topics', 'Most Forum Posts' => 'most-forum-posts', 'Random' => 'random'), "description" => __("The type of groups to display.")), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Number of groups"), "param_name" => "number", "value" => 12, "description" => __("How many groups to get.")), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Minimum Items"), "param_name" => "min_items", "value" => 1, "description" => __("Minimum number of items to show on the screen")), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Maximum Items"), "param_name" => "max_items", "value" => 6, "description" => __("Maximum number of items to show on the screen")), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Image Type"), "param_name" => "image_size", "value" => array('Full' => 'full', 'Thumbnail' => 'thumb'), "description" => __("The size to get from buddypress")), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Auto play"), "param_name" => "autoplay", "value" => array('No' => '', 'Yes' => 'yes'), "description" => __("If the carousel should play automatically")), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Avatar type"), "param_name" => "rounded", "value" => array('Rounded' => 'rounded', 'Square' => 'square'), "description" => __("Rounded or square avatar")), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Image Width"), "param_name" => "item_width", "value" => 150, "description" => __("The size of the group image")), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Class"), "param_name" => "class", "value" => '', "description" => __("A class to add to the element for CSS referrences.")))));
    // Buddypress Groups Masonry
    vc_map(array("name" => __("Groups Masonry"), "base" => "kleo_bp_groups_masonry", "class" => "", "category" => __('BuddyPress'), "icon" => "bp-icon", "params" => array(array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Type"), "param_name" => "type", "value" => array('Active' => 'active', 'Newest' => 'newest', 'Popular' => 'popular', 'Alphabetical' => 'alphabetical', 'Most Forum Topics' => 'most-forum-topics', 'Most Forum Posts' => 'most-forum-posts', 'Random' => 'random'), "description" => __("The type of groups to display.")), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Number of groups"), "param_name" => "number", "value" => 12, "description" => __("How many groups to get.")), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Avatar type"), "param_name" => "rounded", "value" => array('Rounded' => 'rounded', 'Square' => 'square'), "description" => __("Rounded or square avatar")), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Class"), "param_name" => "class", "value" => '', "description" => __("A class to add to the element for CSS referrences.")))));
    /* Groups grid */
    vc_map(array("name" => __("Groups Grid"), "base" => "kleo_bp_groups_grid", "class" => "", "category" => __('BuddyPress'), "icon" => "bp-icon", "params" => array(array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Type"), "param_name" => "type", "value" => array('Active' => 'active', 'Newest' => 'newest', 'Popular' => 'popular', 'Alphabetical' => 'alphabetical', 'Most Forum Topics' => 'most-forum-topics', 'Most Forum Posts' => 'most-forum-posts', 'Random' => 'random'), "description" => __("The type of groups to display.")), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Maximum members"), "param_name" => "number", "value" => 12, "description" => __("How many groups you want to display.")), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Groups per line"), "param_name" => "perline", "value" => array('1' => 'one', '2' => 'two', '3' => 'three', '4' => 'four', '5' => 'five', '6' => 'six', '7' => 'seven', '8' => 'eight', '9' => 'nine', '10' => 'ten', '11' => 'eleven', '12' => 'twelve'), "description" => __("How many groups to show per line")), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Avatar type"), "param_name" => "rounded", "value" => array('Square' => 'square', 'Rounded' => 'rounded'), "description" => __("Rounded or square avatar")), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Animatione"), "param_name" => "animation", "value" => array('None' => '', 'Fade' => 'fade', 'Appear' => 'appear'), "description" => __("Elements will appear animated")), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Class"), "param_name" => "class", "value" => '', "description" => __("A class to add to the element for CSS referrences.")))));
    //Activity Stream
    vc_map(array("name" => __("Activity Stream"), "base" => "kleo_bp_activity_stream", "class" => "", "category" => __('BuddyPress'), "icon" => "kleo-bp-icon", "params" => array(array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Display"), "param_name" => "show", "value" => array('All' => false, 'Blogs' => 'blogs', 'Groups' => 'groups', 'Friends' => 'friends', 'Profile' => 'profile', 'Status' => 'status'), "description" => __("The type of activity to show")), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Number"), "param_name" => "number", "value" => '6', "description" => __("How many activity streams to show")), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Show post update form"), "param_name" => "post_form", "value" => array('No' => 'no', 'Yes' => 'yes'), "description" => __("Shows the form to post a new update")), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => __("Bottom button"), "param_name" => "show_button", "value" => array('Yes' => 'yes', 'No' => 'no'), "description" => __("Show a button with link to the activity page")), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Activity Button Label"), "param_name" => "button_label", "value" => 'View All Activity', "dependency" => array("element" => "show_button", "value" => "yes"), "description" => __("Button text")), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => __("Activity Button Link"), "param_name" => "button_link", "value" => '/activity', "dependency" => array("element" => "show_button", "value" => "yes"), "description" => __("Put here the link to your activity page")))));
    //Activity Page
    vc_map(array("name" => __("Activity Page"), "base" => "kleo_bp_activity_page", "class" => "", "category" => __('BuddyPress'), "icon" => "kleo-bp-icon", "show_settings_on_create" => false));
}