/**
  * Adds new params for the VC Rows
  *
  * @since 2.0.0
  */
 public function add_params()
 {
     /*-----------------------------------------------------------------------------------*/
     /*  - Columns
     			/*-----------------------------------------------------------------------------------*/
     vc_add_param('vc_column', array('type' => 'hidden', 'param_name' => 'style'));
     vc_add_param('vc_column', array('type' => 'dropdown', 'heading' => __('Visibility', 'wpex'), 'param_name' => 'visibility', 'std' => '', 'value' => array_flip(wpex_visibility())));
     vc_add_param('vc_column', array('type' => 'dropdown', 'heading' => __('Animation', 'wpex'), 'param_name' => 'css_animation', 'value' => array_flip(wpex_css_animations())));
     vc_add_param('vc_column', array('type' => 'dropdown', 'heading' => __('Typography Style', 'wpex'), 'param_name' => 'typography_style', 'value' => array_flip(wpex_typography_styles())));
     vc_add_param('vc_column', array('type' => 'textfield', 'heading' => __('Minimum Height', 'wpex'), 'param_name' => 'min_height', 'description' => __('You can enter a minimum height for this row.', 'wpex')));
     // Hidden fields = Deprecated params, these should be removed on save
     $deprecated = array('id', 'typo_style', 'bg_color', 'bg_image', 'bg_style', 'border_style', 'border_color', 'border_width', 'margin_top', 'margin_bottom', 'margin_left', 'padding_top', 'padding_bottom', 'padding_left', 'padding_right', 'drop_shadow');
     foreach ($deprecated as $key => $val) {
         vc_add_param('vc_column', array('type' => 'hidden', 'param_name' => $val));
     }
     /*-----------------------------------------------------------------------------------*/
     /*  - Inner Columns
     			/*-----------------------------------------------------------------------------------*/
     vc_add_param('vc_column_inner', array('type' => 'hidden', 'param_name' => 'style'));
     // Hidden fields = Deprecated params, these should be removed on save
     $deprecated = array('id', 'typo_style', 'bg_color', 'bg_image', 'bg_style', 'border_style', 'border_color', 'border_width', 'margin_top', 'margin_bottom', 'margin_left', 'padding_top', 'padding_bottom', 'padding_left', 'padding_right');
     foreach ($deprecated as $key => $val) {
         vc_add_param('vc_column_inner', array('type' => 'hidden', 'param_name' => $val));
     }
 }
Exemplo n.º 2
0
 function webnus_setup_vc_posts_grid()
 {
     vc_remove_param('vc_posts_grid', 'grid_layout');
     $vc_layout_sub_controls = array(array('link_post', __("Link to post", "js_composer")), array("no_link", __("No link", "js_composer")), array("link_image", __("Link to bigger image", "js_composer")));
     $attributes = array("type" => "sorted_list", "heading" => __("Teaser layout", "js_composer"), "param_name" => "grid_layout", "description" => __("Control teasers look. Enable blocks and place them in desired order. Note: This setting can be overrriden on post to post basis.", "js_composer"), "value" => "title,image,text", "options" => array(array('image', __('Thumbnail', "js_composer"), $vc_layout_sub_controls), array('title', __('Title', "js_composer"), $vc_layout_sub_controls), array('text', __('Text', "js_composer"), array(array('excerpt', __('Teaser/Excerpt', "js_composer")), array('text', __('Full content', "js_composer")))), array('meta_author', __('Metadata Author', "js_composer")), array('meta_category', __('Metadata Category', "js_composer")), array('meta_date', __('Metadata Date', "js_composer")), array('meta_comments', __('Metadata Comments', "js_composer"))));
     vc_add_param('vc_posts_grid', $attributes);
 }
Exemplo n.º 3
0
function add_media_center_vc_params()
{
    // Apply updtes to default VC elements using add param function
    // ===============================================================
    if (function_exists('vc_add_param')) {
        // Add custom row options
        // ===============================================================
        // Add parameters to 'vc_row'
        $base = 'vc_row';
        $extraParams = array(array('type' => 'checkbox', 'param_name' => 'has_container', 'value' => array(__('Has Container ?', 'media_center') => 'true'), 'description' => __('Wrap the row element with container.', 'media_center')), array('type' => 'dropdown', 'heading' => __('Container Class', 'media_center'), 'param_name' => 'container_class', 'value' => array(__('Container', 'media_center') => 'container', __('Container Fluid', 'media_center') => 'container-fluid'), 'description' => __('Specify the class for the container. Will be applied only if has container is set to true.', 'media_center')), array('type' => 'dropdown', 'heading' => __('CSS3 Animation', 'media_center'), 'param_name' => 'row_animation', 'value' => array(__('No Animation', 'media_center') => 'none', __('BounceIn', 'media_center') => 'bounceIn', __('BounceInDown', 'media_center') => 'bounceInDown', __('BounceInLeft', 'media_center') => 'bounceInLeft', __('BounceInRight', 'media_center') => 'bounceInRight', __('BounceInUp', 'media_center') => 'bounceInUp', __('FadeIn', 'media_center') => 'fadeIn', __('FadeInDown', 'media_center') => 'fadeInDown', __('FadeInDown Big', 'media_center') => 'fadeInDownBig', __('FadeInLeft', 'media_center') => 'fadeInLeft', __('FadeInLeft Big', 'media_center') => 'fadeInLeftBig', __('FadeInRight', 'media_center') => 'fadeInRight', __('FadeInRight Big', 'media_center') => 'fadeInRightBig', __('FadeInUp', 'media_center') => 'fadeInUp', __('FadeInUp Big', 'media_center') => 'fadeInUpBig', __('FlipInX', 'media_center') => 'flipInX', __('FlipInY', 'media_center') => 'flipInY', __('Light SpeedIn', 'media_center') => 'lightSpeedIn', __('RotateIn', 'media_center') => 'rotateIn', __('RotateInDown Left', 'media_center') => 'rotateInDownLeft', __('RotateInDown Right', 'media_center') => 'rotateInDownRight', __('RotateInUp Left', 'media_center') => 'rotateInUpLeft', __('RotateInUp Right', 'media_center') => 'rotateInUpRight', __('RoleIn', 'media_center') => 'roleIn', __('ZoomIn', 'media_center') => 'zoomIn', __('ZoomInDown', 'media_center') => 'zoomInDown', __('ZoomInLeft', 'media_center') => 'zoomInLeft', __('ZoomInRight', 'media_center') => 'zoomInRight', __('ZoomInUp', 'media_center') => 'zoomInUp'), 'description' => __('Choose the animation effect on the row when scrolled into view.', 'media_center')));
        foreach ($extraParams as $params) {
            vc_add_param($base, $params);
        }
        // Update 'vc_row' to include custom shortcode template and re-map shortcode
        vc_map_update('vc_row');
        //Add parameters to vc_accordion
        $base = 'vc_accordion';
        $extraParams = array(array('type' => 'dropdown', 'param_name' => 'accordion_style', 'value' => array(__('Style 1', 'media_center') => 'style-1', __('Style 2', 'media_center') => 'style-2')));
        foreach ($extraParams as $params) {
            vc_add_param($base, $params);
        }
        // Update 'vc_row' to include custom shortcode template and re-map shortcode
        vc_map_update('vc_accordion');
    }
}
function lab_vc_custom_column_params()
{
    $laborator_vc_dependency_reveal = array('element' => 'reveal_effect', 'not_empty' => true);
    $params = array('reveal_effect' => array('type' => 'dropdown', 'heading' => __('Reveal Effect', 'lab_composer'), 'param_name' => 'reveal_effect', 'std' => 'none', 'weight' => 3, 'value' => array(__('None', 'lab_composer') => '', __('Fade In', 'lab_composer') => 'fadeIn', __('Slide and Fade', 'lab_composer') => 'fadeInLab', '---------------' => '', __("bounce", 'lab_composer') => 'bounce', __("flash", 'lab_composer') => 'flash', __("pulse", 'lab_composer') => 'pulse', __("rubberBand", 'lab_composer') => 'rubberBand', __("shake", 'lab_composer') => 'shake', __("swing", 'lab_composer') => 'swing', __("tada", 'lab_composer') => 'tada', __("wobble", 'lab_composer') => 'wobble', __("bounceIn", 'lab_composer') => 'bounceIn', __("bounceInDown", 'lab_composer') => 'bounceInDown', __("bounceInLeft", 'lab_composer') => 'bounceInLeft', __("bounceInRight", 'lab_composer') => 'bounceInRight', __("bounceInUp", 'lab_composer') => 'bounceInUp', __("fadeInDown", 'lab_composer') => 'fadeInDown', __("fadeInDownBig", 'lab_composer') => 'fadeInDownBig', __("fadeInLeft", 'lab_composer') => 'fadeInLeft', __("fadeInLeftBig", 'lab_composer') => 'fadeInLeftBig', __("fadeInRight", 'lab_composer') => 'fadeInRight', __("fadeInRightBig", 'lab_composer') => 'fadeInRightBig', __("fadeInUp", 'lab_composer') => 'fadeInUp', __("fadeInUpBig", 'lab_composer') => 'fadeInUpBig', __("flip", 'lab_composer') => 'flip', __("flipInX", 'lab_composer') => 'flipInX', __("flipInY", 'lab_composer') => 'flipInY', __("lightSpeedIn", 'lab_composer') => 'lightSpeedIn', __("rotateIn", 'lab_composer') => 'rotateIn', __("rotateInDownLeft", 'lab_composer') => 'rotateInDownLeft', __("rotateInDownRight", 'lab_composer') => 'rotateInDownRight', __("rotateInUpLeft", 'lab_composer') => 'rotateInUpLeft', __("rotateInUpRight", 'lab_composer') => 'rotateInUpRight', __("hinge", 'lab_composer') => 'hinge', __("rollIn", 'lab_composer') => 'rollIn', __("zoomIn", 'lab_composer') => 'zoomIn', __("zoomInDown", 'lab_composer') => 'zoomInDown', __("zoomInLeft", 'lab_composer') => 'zoomInLeft', __("zoomInRight", 'lab_composer') => 'zoomInRight', __("zoomInUp", 'lab_composer') => 'zoomInUp'), 'description' => __('Set reveal effect for this element. To preview the animations <a href="http://daneden.github.io/animate.css/" target="_blank">click here</a>.', 'lab_composer')), 'reveal_duration' => array('type' => 'textfield', 'heading' => __('Reveal Duration', 'lab_composer'), 'param_name' => 'reveal_duration', 'weight' => 2, 'description' => __('Set number of seconds for the animation duration. (Optional)', 'lab_composer'), 'dependency' => $laborator_vc_dependency_reveal), 'reveal_delay' => array('type' => 'textfield', 'heading' => __('Reveal Delay', 'lab_composer'), 'param_name' => 'reveal_delay', 'weight' => 1, 'description' => __('Set reveal effect delay before showing in seconds, otherwise leave empty.', 'lab_composer'), 'dependency' => $laborator_vc_dependency_reveal));
    vc_add_param('vc_column', $params['reveal_effect']);
    vc_add_param('vc_column', $params['reveal_duration']);
    vc_add_param('vc_column', $params['reveal_delay']);
}
Exemplo n.º 5
0
function something()
{
    $icons = array('type' => 'dropdown', 'heading' => 'Icon library', 'value' => array('Font Awesome' => 'fontawesome', 'Open Iconic' => 'openiconic', 'Typicons' => 'typicons', 'Entypo' => 'entypo', 'Linecons' => 'linecons', 'Pixel' => 'pixelicons', 'Ion icons' => 'ionicons'), 'param_name' => 'i_type', 'description' => 'Select icon library.', 'dependency' => array('element' => 'add_icon', 'value' => 'true'), 'integrated_shortcode' => 'vc_icon', 'integrated_shortcode_field' => 'i_');
    $ionicons = array('type' => 'iconpicker', 'heading' => __('Icon', 'js_composer'), 'param_name' => 'i_icon_ionicons', 'settings' => array('emptyIcon' => false, 'type' => 'ionicons', 'source' => require_once 'ionicons.php'), 'dependency' => array('element' => 'i_type', 'value' => 'ionicons'), 'description' => __('Select icon from library.', 'js_composer'));
    vc_remove_param('vc_btn', 'i_type');
    vc_add_param('vc_btn', $icons);
    vc_add_param('vc_btn', $ionicons);
}
Exemplo n.º 6
0
function _adap_sc_add_column_full_width_option()
{
    if (function_exists('wpb_add_param')) {
        wpb_add_param('vc_column', AdapAutoVCShortcode::bool_param('full_width', 'Full Width', 'Make Full Width', 'Don\'t Make Full Width', false));
        wpb_add_param('vc_column', array('type' => 'dropdown', 'heading' => 'Align', 'param_name' => 'align', 'sch_default' => 'align-none', 'value' => array('None' => 'align-none', 'Align Left' => 'align-left', 'Align Center' => 'align-center', 'Align Right' => 'align-right'), 'description' => 'The content alignment of the column'));
        vc_add_param('rev_slider_vc', array('type' => 'dropdown', 'heading' => 'Arrow Style', 'param_name' => 'arrow_style', 'sch_default' => 'small', 'value' => array('Small' => 'small', 'Big' => 'big'), 'description' => 'The arrow styling'));
    }
}
Exemplo n.º 7
0
 public function javo_vb_shortcodes_callback()
 {
     // javo-banner
     vc_map(array('base' => 'javo_banner', 'name' => __('Javo Banner', 'javo_fr'), 'icon' => 'javo_carousel_news', 'category' => __('Javo', 'javo_fr'), 'description' => __('Create your own banner.', 'javo_fr'), 'params' => array(array('type' => 'attach_image', 'heading' => __('Select an Image', 'javo_fr'), 'holder' => 'div', 'class' => '', 'param_name' => 'attachment_id', 'value' => ''), array('type' => 'textfield', 'heading' => __('Link', 'javo_fr'), 'holder' => 'div', 'class' => '', 'param_name' => 'link', 'value' => '#'), array('type' => 'textfield', 'heading' => __('Width', 'javo_fr'), 'holder' => 'div', 'class' => '', 'param_name' => 'width', 'value' => '500'), array('type' => 'textfield', 'heading' => __('Height', 'javo_fr'), 'holder' => 'div', 'class' => '', 'param_name' => 'height', 'value' => '400'), array('type' => 'textfield', 'heading' => __('Border - Weight', 'javo_fr'), 'holder' => 'div', 'class' => '', 'param_name' => 'bdweight', 'value' => '1'), array('type' => 'colorpicker', 'heading' => __('Border - color', 'javo_fr'), 'holder' => 'div', 'class' => '', 'param_name' => 'bdcolor', 'value' => '#efefef'))));
     // javo_events
     vc_map(array('base' => 'javo_events', 'name' => __('Javo Events', 'javo_fr'), 'icon' => 'javo_carousel_news', 'category' => __('Javo', 'javo_fr'), 'description' => __('Display events by categories.', 'javo_fr'), 'params' => array(array('type' => 'textfield', 'heading' => __('Title', 'javo_fr'), 'holder' => 'div', 'class' => '', 'param_name' => 'title', 'value' => ''), array('type' => 'textfield', 'heading' => __('Sub Title', 'javo_fr'), 'holder' => 'div', 'class' => '', 'param_name' => 'sub_title', 'value' => ''), array('type' => 'colorpicker', 'heading' => __('Title Text Color', 'javo_fr'), 'holder' => 'div', 'param_name' => 'title_text_color', 'value' => '#000'), array('type' => 'colorpicker', 'heading' => __('Sub Title Text Color', 'javo_fr'), 'holder' => 'div', 'param_name' => 'sub_title_text_color', 'value' => '#000'), array('type' => 'colorpicker', 'heading' => __('Header Linear Color', 'javo_fr'), 'holder' => 'div', 'param_name' => 'line_color', 'value' => '#fff'), array('type' => 'dropdown', 'heading' => __('Listing Style', 'javo_fr'), 'holder' => 'div', 'class' => '', 'param_name' => 'type', 'value' => array(__('Single Slide', 'javo_fr') => 'single', __('2 Cols Slide', 'javo_fr') => 'two-cols', __('3 Cols Slide', 'javo_fr') => 'three-cols', __('4 Cols Slide', 'javo_fr') => 'four-cols')), array('type' => 'dropdown', 'heading' => __('Category', 'javo_fr'), 'holder' => 'div', 'class' => '', 'param_name' => 'category', 'value' => $this->__cate('jv_events_category')), array('type' => 'textfield', 'heading' => __('Show Lists count', 'javo_fr'), 'holder' => 'div', 'class' => '', 'param_name' => 'page', 'value' => ''), array('type' => 'dropdown', 'heading' => __('Order by', 'javo_fr'), 'holder' => 'div', 'class' => '', 'param_name' => 'order', 'value' => array(__('DESC', 'javo_fr') => 'DESC', __('ASC', 'javo_fr') => 'ASC')))));
     // Javo Search Form
     vc_map(array('base' => 'javo_search_form', 'name' => __('Javo Item Search Form (Full-Width)', 'javo_fr'), 'icon' => 'javo_carousel_news', 'category' => __('Javo', 'javo_fr'), 'description' => __('For archives in horizontal view, full-width layout', 'javo_fr'), 'params' => array(array('type' => 'dropdown', 'heading' => __('Please select search result page', 'javo_fr'), 'holder' => 'div', 'class' => '', 'param_name' => 'action', 'description' => __('You can setup a map page ( Theme Setting > Item Pages > Search Result ). if there is no map pages, it goes to default searching page.', 'javo_fr'), 'value' => array(__("Default Search Page", 'javo_fr') => '', __("Javo Map (Box Style)", 'javo_fr') => 'map')), array('type' => 'checkbox', 'heading' => __('Hide Search Fields : Check to Disable', 'javo_fr'), 'holder' => 'div', 'class' => '', 'param_name' => 'hide_field', 'value' => array(__('Category', 'javo_fr') => 'category', __('Location', 'javo_fr') => 'location', __('Keyword', 'javo_fr') => 'keyword')))));
     // Javo Slide Search
     vc_map(array('base' => 'javo_slide_search', 'name' => __('Javo Slide with search bar (Full-width)', 'javo_fr'), 'icon' => 'javo_carousel_news', 'category' => __('Javo', 'javo_fr'), 'description' => __('Use with Item Slide and Search bar.', 'javo_fr'), 'params' => array(array('type' => 'textfield', 'heading' => __('Subject', 'javo_fr'), 'holder' => 'div', 'class' => '', 'param_name' => 'title', 'value' => __('Title', 'javo_fr')), array('type' => 'dropdown', 'heading' => __('Search Type', 'javo_fr'), 'holder' => 'div', 'class' => '', 'param_name' => 'search_type', 'value' => array(__('Vertical', 'javo_fr') => 'vertical', __('Horizontal', 'javo_fr') => 'horizontal')), array('type' => 'dropdown', 'heading' => __('Background Size', 'javo_fr'), 'holder' => 'div', 'class' => '', 'param_name' => 'background_size', 'value' => array(__('Normal', 'javo_fr') => 'auto', __('Cover', 'javo_fr') => 'cover')), array('type' => 'dropdown', 'heading' => __('Background Position Horizontal', 'javo_fr'), 'holder' => 'div', 'class' => '', 'param_name' => 'background_position_x', 'value' => array(__('Left', 'javo_fr') => 'left', __('Center', 'javo_fr') => 'center', __('Right', 'javo_fr') => 'right')), array('type' => 'dropdown', 'heading' => __('Background Position Vertical', 'javo_fr'), 'holder' => 'div', 'class' => '', 'param_name' => 'background_position_y', 'value' => array(__('Top', 'javo_fr') => 'top', __('Center', 'javo_fr') => 'center', __('Bottom', 'javo_fr') => 'bottom')), array('type' => 'dropdown', 'heading' => __('Background Repeat', 'javo_fr'), 'holder' => 'div', 'class' => '', 'param_name' => 'background_repeat', 'value' => array(__('No Repeat', 'javo_fr') => 'no-repeat', __('Repeat-x', 'javo_fr') => 'repeat-x', __('Repeat-y', 'javo_fr') => 'repeat-y', __('Repeat', 'javo_fr') => 'repeat')), array('type' => 'textfield', 'heading' => __('Height', 'javo_fr'), 'holder' => 'div', 'class' => '', 'param_name' => 'height', 'value' => '300'), array('type' => 'checkbox', 'heading' => __('Hide Search Form', 'javo_fr'), 'holder' => 'div', 'class' => '', 'param_name' => 'hidden_form', 'value' => array(__('Hide Search Form', 'javo_fr') => 'hidden')), array('type' => 'checkbox', 'heading' => __('Hide options', 'javo_fr'), 'holder' => 'div', 'class' => '', 'param_name' => 'hidden_elements', 'value' => array(__('Keyword Textfield', 'javo_fr') => 'txt_keyword', __('Category Drop-Down Box', 'javo_fr') => 'sel_category', __('Location Drop-Down Box', 'javo_fr') => 'sel_location', __('Rating Circle', 'javo_fr') => 'cle_rating', __('Category CIrcle', 'javo_fr') => 'cle_category', __('Event Tag Circle', 'javo_fr') => 'cle_event')), array('type' => 'textfield', 'heading' => __('Title Size', 'javo_fr'), 'holder' => 'div', 'class' => '', 'param_name' => 'title_size', 'value' => '25'), array('type' => 'textfield', 'heading' => __('Category & Location Font Size', 'javo_fr'), 'holder' => 'div', 'class' => '', 'param_name' => 'cat_loc_size', 'value' => '20'))));
     // Javo item_price
     vc_map(array('base' => 'javo_item_price', 'name' => __('Item Price Table', 'javo_fr'), 'icon' => 'javo_carousel_news', 'category' => __('Javo', 'javo_fr'), 'group' => __('Javo', 'javo_fr'), 'description' => __('Must first be set-up in Theme Settings > Price Plan.', 'javo_fr'), 'params' => array(array('type' => 'textfield', 'heading' => __('Title', 'javo_fr'), 'holder' => 'div', 'class' => '', 'param_name' => 'title', 'value' => ''), array('type' => 'textfield', 'heading' => __('Sub Title', 'javo_fr'), 'holder' => 'div', 'class' => '', 'param_name' => 'sub_title', 'value' => ''), array('type' => 'colorpicker', 'heading' => __('Title Text Color', 'javo_fr'), 'holder' => 'div', 'param_name' => 'title_text_color', 'value' => '#000'), array('type' => 'colorpicker', 'heading' => __('Sub Title Text Color', 'javo_fr'), 'holder' => 'div', 'param_name' => 'sub_title_text_color', 'value' => '#000'), array('type' => 'colorpicker', 'heading' => __('Header Linear Color', 'javo_fr'), 'holder' => 'div', 'param_name' => 'line_color', 'value' => '#fff'))));
     // Javo Event Masonry
     vc_map(array('base' => 'javo_events_masonry', 'name' => __('Javo Events Masonry (Full-width)', 'javo_fr'), 'category' => __('Javo', 'javo_fr'), 'icon' => 'javo_carousel_news', 'description' => __('Display your events in grid style. (Full-width layout only)', 'javo_fr'), 'params' => array(array('type' => 'textfield', 'heading' => __('Title', 'javo_fr'), 'holder' => 'div', 'class' => '', 'param_name' => 'title', 'value' => ''), array('type' => 'textfield', 'heading' => __('Sub Title', 'javo_fr'), 'holder' => 'div', 'class' => '', 'param_name' => 'sub_title', 'value' => ''), array('type' => 'colorpicker', 'heading' => __('Title Text Color', 'javo_fr'), 'holder' => 'div', 'param_name' => 'title_text_color', 'value' => '#000'), array('type' => 'colorpicker', 'heading' => __('Sub Title Text Color', 'javo_fr'), 'holder' => 'div', 'param_name' => 'sub_title_text_color', 'value' => '#000'), array('type' => 'colorpicker', 'heading' => __('Header Linear Color', 'javo_fr'), 'holder' => 'div', 'param_name' => 'line_color', 'value' => '#fff'))));
     // Javo FaQs
     vc_map(array('base' => 'javo_faq', 'name' => __('Javo FAQ Accordion Tabs', 'javo_fr'), 'category' => __('Javo', 'javo_fr'), 'icon' => 'javo_carousel_news', 'description' => __('Displays FAQ posts from Dashboard > FAQs.', 'javo_fr'), 'params' => array(array('type' => 'textfield', 'heading' => __('Title', 'javo_fr'), 'holder' => 'div', 'class' => '', 'param_name' => 'title', 'value' => ''), array('type' => 'textfield', 'heading' => __('Sub Title', 'javo_fr'), 'holder' => 'div', 'class' => '', 'param_name' => 'sub_title', 'value' => ''), array('type' => 'colorpicker', 'heading' => __('Title Text Color', 'javo_fr'), 'holder' => 'div', 'param_name' => 'title_text_color', 'value' => '#000'), array('type' => 'colorpicker', 'heading' => __('Sub Title Text Color', 'javo_fr'), 'holder' => 'div', 'param_name' => 'sub_title_text_color', 'value' => '#000'), array('type' => 'colorpicker', 'heading' => __('Content Text Color', 'javo_fr'), 'holder' => 'div', 'param_name' => 'text_color', 'value' => '#000'), array('type' => 'colorpicker', 'heading' => __('Header Linear Color', 'javo_fr'), 'holder' => 'div', 'param_name' => 'line_color', 'value' => '#fff'))));
     // Javo grid open
     vc_map(array('base' => 'javo_grid_open', 'name' => __('Javo Item Grid - Open (Full-width)', 'javo_fr'), 'category' => __('Javo', 'javo_fr'), 'icon' => 'javo_carousel_news', 'description' => __('Display items in an open grid layout. (Full-width only)', 'javo_fr'), 'params' => array(array('type' => 'textfield', 'heading' => __('Title', 'javo_fr'), 'holder' => 'div', 'class' => '', 'param_name' => 'title', 'value' => ''), array('type' => 'textfield', 'heading' => __('Sub Title', 'javo_fr'), 'holder' => 'div', 'class' => '', 'param_name' => 'sub_title', 'value' => ''), array('type' => 'colorpicker', 'heading' => __('Title Text Color', 'javo_fr'), 'holder' => 'div', 'param_name' => 'title_text_color', 'value' => '#000'), array('type' => 'colorpicker', 'heading' => __('Sub Title Text Color', 'javo_fr'), 'holder' => 'div', 'param_name' => 'sub_title_text_color', 'value' => '#000'), array('type' => 'colorpicker', 'heading' => __('Header Linear Color', 'javo_fr'), 'holder' => 'div', 'param_name' => 'line_color', 'value' => '#fff'), array('type' => 'textfield', 'heading' => __('Display item count', 'javo_fr'), 'holder' => 'div', 'param_name' => 'count', 'value' => '7'))));
     // Javo categories
     vc_map(array('base' => 'javo_categories', 'name' => __('Javo Large Blocks', 'javo_fr'), 'category' => __('Javo', 'javo_fr'), 'icon' => 'javo_carousel_news', 'description' => __('Displays items in a larger block style.', 'javo_fr'), 'params' => array(array('type' => 'textfield', 'heading' => __('Title', 'javo_fr'), 'holder' => 'div', 'class' => '', 'param_name' => 'title', 'value' => ''), array('type' => 'textfield', 'heading' => __('Sub Title', 'javo_fr'), 'holder' => 'div', 'class' => '', 'param_name' => 'sub_title', 'value' => ''), array('type' => 'colorpicker', 'heading' => __('Title Text Color', 'javo_fr'), 'holder' => 'div', 'param_name' => 'title_text_color', 'value' => '#000'), array('type' => 'colorpicker', 'heading' => __('Sub Title Text Color', 'javo_fr'), 'holder' => 'div', 'param_name' => 'sub_title_text_color', 'value' => '#000'), array('type' => 'colorpicker', 'heading' => __('Header Linear Color', 'javo_fr'), 'holder' => 'div', 'param_name' => 'line_color', 'value' => '#fff'), array('type' => 'dropdown', 'heading' => __('Display Category Type', 'javo_fr'), 'holder' => 'div', 'class' => '', 'param_name' => 'display_type', 'value' => array(__('Parent Only', 'javo_fr') => 'parent', __('Parent + Child', 'javo_fr') => 'child')), array('type' => 'dropdown', 'heading' => __('Hover Option to Display', 'javo_fr'), 'holder' => 'div', 'class' => '', 'param_name' => 'display_item_count', 'value' => array(__('Show the amount of items on the categories', 'javo_fr') => '', __('Do not display', 'javo_fr') => 'hide')), array('type' => 'textfield', 'heading' => __('Category Font Size', 'javo_fr'), 'holder' => 'div', 'class' => '', 'param_name' => 'category_size', 'value' => '18'))));
     // Javo Archive Categories
     vc_map(array('base' => 'javo_archive_categories', 'name' => __('Javo Archive Categories', 'javo_fr'), 'category' => __('Javo', 'javo_fr'), 'icon' => 'javo_carousel_news', 'description' => __('Displays items in a long horizontal block fashion.', 'javo_fr'), 'params' => array(array('type' => 'textfield', 'heading' => __('Title', 'javo_fr'), 'holder' => 'div', 'class' => '', 'param_name' => 'title', 'value' => ''), array('type' => 'textfield', 'heading' => __('Sub Title', 'javo_fr'), 'holder' => 'div', 'class' => '', 'param_name' => 'sub_title', 'value' => ''), array('type' => 'colorpicker', 'heading' => __('Title Text Color', 'javo_fr'), 'holder' => 'div', 'param_name' => 'title_text_color', 'value' => '#000'), array('type' => 'colorpicker', 'heading' => __('Sub Title Text Color', 'javo_fr'), 'holder' => 'div', 'param_name' => 'sub_title_text_color', 'value' => '#000'), array('type' => 'colorpicker', 'heading' => __('Header Linear Color', 'javo_fr'), 'holder' => 'div', 'param_name' => 'line_color', 'value' => '#fff'), array('type' => 'dropdown', 'heading' => __('Amount Column in One Row', 'javo_fr'), 'holder' => 'div', 'class' => '', 'param_name' => 'one_row_item', 'value' => array('3 ' . __('Columns', 'javo_fr') => 3, '4 ' . __('Columns', 'javo_fr') => 4)), array('type' => 'checkbox', 'heading' => __('Parents', 'javo_fr'), 'holder' => 'div', 'class' => '', 'param_name' => 'have_terms', 'description' => __('Default : All Parents', 'javo_fr'), 'value' => apply_filters('javo_get_categories_value', 'item_category')), array('type' => 'textfield', 'heading' => __('One Block per Amount Category', 'javo_fr'), 'holder' => 'div', 'class' => '', 'param_name' => 'category_max_count', 'value' => 5), array('type' => 'textfield', 'heading' => __('Container Radius Size (Only Pixcel Number)', 'javo_fr'), 'holder' => 'div', 'class' => '', 'param_name' => 'cbx_border_radius', 'value' => 5), array('type' => 'colorpicker', 'heading' => __('Container Border', 'javo_fr'), 'holder' => 'div', 'param_name' => 'cbx_border', 'value' => '#428bca'), array('type' => 'colorpicker', 'heading' => __('Container Background', 'javo_fr'), 'holder' => 'div', 'param_name' => 'cbx_background', 'value' => '#fff'), array('type' => 'colorpicker', 'heading' => __('Linear Color', 'javo_fr'), 'holder' => 'div', 'param_name' => 'cbx_hr', 'value' => '#428bca'), array('type' => 'colorpicker', 'heading' => __('Font Color', 'javo_fr'), 'holder' => 'div', 'param_name' => 'cbx_font', 'value' => '#000'))));
     // Javo Rating list
     vc_map(array('base' => 'javo_rating_list', 'name' => __('Javo Overall Rating Blocks', 'javo_fr'), 'category' => __('Javo', 'javo_fr'), 'icon' => 'javo_carousel_news', 'description' => __('Displays items a horizontal block layout with a focus on overall ratings.', 'javo_fr'), 'params' => array(array('type' => 'textfield', 'heading' => __('Title', 'javo_fr'), 'holder' => 'div', 'class' => '', 'param_name' => 'title', 'value' => ''), array('type' => 'textfield', 'heading' => __('Sub Title', 'javo_fr'), 'holder' => 'div', 'class' => '', 'param_name' => 'sub_title', 'value' => ''), array('type' => 'textfield', 'heading' => __('Display Rating count', 'javo_fr'), 'holder' => 'div', 'class' => '', 'param_name' => 'count', 'value' => ''), array('type' => 'colorpicker', 'heading' => __('Title Text Color', 'javo_fr'), 'holder' => 'div', 'param_name' => 'title_text_color', 'value' => '#000'), array('type' => 'colorpicker', 'heading' => __('Sub Title Text Color', 'javo_fr'), 'holder' => 'div', 'param_name' => 'sub_title_text_color', 'value' => '#000'), array('type' => 'colorpicker', 'heading' => __('Header Linear Color', 'javo_fr'), 'holder' => 'div', 'param_name' => 'line_color', 'value' => '#fff'))));
     // Javo Rating list
     vc_map(array('base' => 'javo_recent_ratings', 'name' => __('Javo Recent Rating Blocks', 'javo_fr'), 'category' => __('Javo', 'javo_fr'), 'icon' => 'javo_carousel_news', 'description' => __('Displays items a horizontal block layout with a focus on recent ratings.', 'javo_fr'), 'params' => array(array('type' => 'textfield', 'heading' => __('Title', 'javo_fr'), 'holder' => 'div', 'class' => '', 'param_name' => 'title', 'value' => ''), array('type' => 'textfield', 'heading' => __('Sub Title', 'javo_fr'), 'holder' => 'div', 'class' => '', 'param_name' => 'sub_title', 'value' => ''), array('type' => 'colorpicker', 'heading' => __('Title Text Color', 'javo_fr'), 'holder' => 'div', 'param_name' => 'title_text_color', 'value' => '#000'), array('type' => 'colorpicker', 'heading' => __('Sub Title Text Color', 'javo_fr'), 'holder' => 'div', 'param_name' => 'sub_title_text_color', 'value' => '#000'), array('type' => 'colorpicker', 'heading' => __('Header Linear Color', 'javo_fr'), 'holder' => 'div', 'param_name' => 'line_color', 'value' => '#fff'), array('type' => 'textfield', 'heading' => __('Display Rating count', 'javo_fr'), 'holder' => 'div', 'class' => '', 'param_name' => 'items', 'value' => ''))));
     // Javo fancy title
     vc_map(array('base' => 'javo_fancy_titles', 'name' => __('Javo Fancy Title', 'javo_fr'), 'category' => __('Javo', 'javo_fr'), 'icon' => 'javo_carousel_news', 'description' => __('Make an impression with a fancy title.', 'javo_fr'), 'params' => array(array('type' => 'textfield', 'heading' => __('Display Title', 'javo_fr'), 'holder' => 'div', 'class' => '', 'param_name' => 'title', 'value' => __('Title', 'javo_fr')), array('type' => 'dropdown', 'heading' => __('Header Type', 'javo_fr'), 'holder' => 'div', 'class' => '', 'param_name' => 'type', 'value' => array(__('Red Line (Defalut)', 'javo_fr') => '', __('Gray Circle Line', 'javo_fr') => 'gray_circle')), array('type' => 'colorpicker', 'heading' => __('Text Color', 'javo_fr'), 'holder' => 'div', 'class' => '', 'param_name' => 'text_color', 'value' => __('#000000', 'javo_fr')), array('type' => 'textfield', 'heading' => __('Line Spacing', 'javo_fr'), 'holder' => 'div', 'class' => '', 'param_name' => 'line_spacing', 'value' => __('20', 'javo_fr')), array('type' => 'textfield', 'heading' => __('Font Size', 'javo_fr'), 'holder' => 'div', 'class' => '', 'param_name' => 'font_size', 'value' => __('12', 'javo_fr')), array('type' => 'textfield', 'heading' => __('Description', 'javo_fr'), 'holder' => 'div', 'class' => '', 'param_name' => 'description', 'value' => ''), array('type' => 'colorpicker', 'heading' => __('Description Text Color', 'javo_fr'), 'holder' => 'div', 'class' => '', 'param_name' => 'description_color', 'value' => __('#000000', 'javo_fr')))));
     // Member Register & Login
     vc_map(array('base' => 'javo_register_login', 'name' => __('Javo Tab Registration/Login', 'javo_fr'), 'category' => __('Javo', 'javo_fr'), 'icon' => 'javo_carousel_news', 'description' => __('Registration, Login, Find password and contact info (seen before logging in) ', 'javo_fr'), 'params' => array(array('type' => 'textfield', 'heading' => __('Title', 'javo_fr'), 'holder' => 'div', 'class' => '', 'param_name' => 'title', 'value' => ''), array('type' => 'textfield', 'heading' => __('Sub Title', 'javo_fr'), 'holder' => 'div', 'class' => '', 'param_name' => 'sub_title', 'value' => ''), array('type' => 'colorpicker', 'heading' => __('Title Text Color', 'javo_fr'), 'holder' => 'div', 'param_name' => 'title_text_color', 'value' => '#000'), array('type' => 'colorpicker', 'heading' => __('Sub Title Text Color', 'javo_fr'), 'holder' => 'div', 'param_name' => 'sub_title_text_color', 'value' => '#000'), array('type' => 'colorpicker', 'heading' => __('Header Linear Color', 'javo_fr'), 'holder' => 'div', 'param_name' => 'line_color', 'value' => '#fff'), array('type' => 'textfield', 'heading' => __('Login information Box Title', 'javo_fr'), 'holder' => 'div', 'param_name' => 'login_info_box_title', 'value' => ' '), array('type' => 'textarea', 'heading' => __('Login information Box Content', 'javo_fr'), 'holder' => 'div', 'param_name' => 'login_info_box', 'value' => ' '), array('type' => 'textfield', 'heading' => __('Register information Box Title', 'javo_fr'), 'holder' => 'div', 'param_name' => 'register_info_box_title', 'value' => ' '), array('type' => 'textarea', 'heading' => __('Register information Box', 'javo_fr'), 'holder' => 'div', 'param_name' => 'register_info_box', 'value' => ' '), array('type' => 'textfield', 'heading' => __('Forget Password information Box Title', 'javo_fr'), 'holder' => 'div', 'param_name' => 'forget_info_box_title', 'value' => ' '), array('type' => 'textarea', 'heading' => __('Forget Password information Box', 'javo_fr'), 'holder' => 'div', 'param_name' => 'forget_info_box', 'value' => ' '))));
     // Javo Gallery
     vc_map(array('base' => 'javo_gallery', 'name' => __('Javo Grid', 'javo_fr'), 'category' => __('Javo', 'javo_fr'), 'icon' => 'javo_carousel_news', 'description' => __('Dispalys items in a grid, highlighting location and ratings.', 'javo_fr'), 'params' => array(array('type' => 'textfield', 'heading' => __('Title', 'javo_fr'), 'holder' => 'div', 'class' => '', 'param_name' => 'title', 'value' => ''), array('type' => 'textfield', 'heading' => __('Sub Title', 'javo_fr'), 'holder' => 'div', 'class' => '', 'param_name' => 'sub_title', 'value' => ''), array('type' => 'colorpicker', 'heading' => __('Title Text Color', 'javo_fr'), 'holder' => 'div', 'param_name' => 'title_text_color', 'value' => '#000'), array('type' => 'colorpicker', 'heading' => __('Sub Title Text Color', 'javo_fr'), 'holder' => 'div', 'param_name' => 'sub_title_text_color', 'value' => '#000'), array('type' => 'colorpicker', 'heading' => __('Header Linear Color', 'javo_fr'), 'holder' => 'div', 'param_name' => 'line_color', 'value' => '#fff'), array('type' => 'dropdown', 'heading' => __('Display Category Type', 'javo_fr'), 'holder' => 'div', 'class' => '', 'param_name' => 'display_type', 'value' => array(__('Parent Only', 'javo_fr') => 'parent', __('Parent + Child', 'javo_fr') => 'child')), array('type' => 'checkbox', 'heading' => __('Parents', 'javo_fr'), 'holder' => 'div', 'class' => '', 'param_name' => 'have_terms', 'description' => __('Default : All Parents', 'javo_fr'), 'value' => apply_filters('javo_get_categories_value', 'item_category')), array('type' => 'textfield', 'heading' => __('Max display amount on all category ( 0 = All Items)', 'javo_fr'), 'holder' => 'div', 'class' => '', 'param_name' => 'max_amount', 'description' => __('(Only Number)', 'javo_fr'), 'value' => (int) 0), array('type' => 'checkbox', 'heading' => __('Random Order', 'javo_fr'), 'holder' => 'div', 'class' => '', 'param_name' => 'rand_order', 'value' => array(__('Enabled', 'javo_fr') => 'use')))));
     // Javo Events Gallery
     vc_map(array('base' => 'javo_event_gallery', 'name' => __('Javo Events Gallery', 'javo_fr'), 'category' => __('Javo', 'javo_fr'), 'icon' => 'javo_carousel_news', 'description' => __('Show your items in a smaller grid with an emphasis on events.', 'javo_fr'), 'params' => array(array('type' => 'textfield', 'heading' => __('Title', 'javo_fr'), 'holder' => 'div', 'class' => '', 'param_name' => 'title', 'value' => ''), array('type' => 'textfield', 'heading' => __('Sub Title', 'javo_fr'), 'holder' => 'div', 'class' => '', 'param_name' => 'sub_title', 'value' => ''), array('type' => 'colorpicker', 'heading' => __('Title Text Color', 'javo_fr'), 'holder' => 'div', 'param_name' => 'title_text_color', 'value' => '#000'), array('type' => 'colorpicker', 'heading' => __('Sub Title Text Color', 'javo_fr'), 'holder' => 'div', 'param_name' => 'sub_title_text_color', 'value' => '#000'), array('type' => 'colorpicker', 'heading' => __('Header Linear Color', 'javo_fr'), 'holder' => 'div', 'param_name' => 'line_color', 'value' => '#fff'), array('type' => 'dropdown', 'heading' => __('Display Category Type', 'javo_fr'), 'holder' => 'div', 'class' => '', 'param_name' => 'display_type', 'value' => array(__('Parent Only', 'javo_fr') => 'parent', __('Parent + Child', 'javo_fr') => 'child')))));
     //Javo team-slider
     vc_map(array('base' => 'team_slider', 'name' => __('Javo Team Slider', 'javo_fr'), 'category' => __('Javo', 'javo_fr'), 'icon' => 'javo_carousel_news', 'description' => __('Description', 'javo_fr'), 'params' => array(array('type' => 'textfield', 'heading' => __('Title', 'javo_fr'), 'holder' => 'div', 'class' => '', 'param_name' => 'title', 'value' => ''), array('type' => 'textfield', 'heading' => __('Sub Title', 'javo_fr'), 'holder' => 'div', 'class' => '', 'param_name' => 'sub_title', 'value' => ''), array('type' => 'colorpicker', 'heading' => __('Title Text Color', 'javo_fr'), 'holder' => 'div', 'param_name' => 'title_text_color', 'value' => '#000'), array('type' => 'colorpicker', 'heading' => __('Sub Title Text Color', 'javo_fr'), 'holder' => 'div', 'param_name' => 'sub_title_text_color', 'value' => '#000'), array('type' => 'colorpicker', 'heading' => __('Header Linear Color', 'javo_fr'), 'holder' => 'div', 'param_name' => 'line_color', 'value' => '#fff'), array('type' => 'dropdown', 'heading' => __('column count', 'javo_fr'), 'holder' => 'div', 'class' => '', 'param_name' => 'column', 'value' => array(2 => 2, 3 => 3, 4 => 4)))));
     //Javo testimonial
     vc_map(array('base' => 'javo_testimonial', 'name' => __('Javo Testimonial', 'javo_fr'), 'category' => __('Javo', 'javo_fr'), 'icon' => 'javo_carousel_news', 'description' => __('Description', 'javo_fr'), 'params' => array(array('type' => 'textfield', 'heading' => __('Title', 'javo_fr'), 'holder' => 'div', 'class' => '', 'param_name' => 'title', 'value' => ''), array('type' => 'textfield', 'heading' => __('Sub Title', 'javo_fr'), 'holder' => 'div', 'class' => '', 'param_name' => 'sub_title', 'value' => ''), array('type' => 'colorpicker', 'heading' => __('Title Text Color', 'javo_fr'), 'holder' => 'div', 'param_name' => 'title_text_color', 'value' => '#000'), array('type' => 'colorpicker', 'heading' => __('Sub Title Text Color', 'javo_fr'), 'holder' => 'div', 'param_name' => 'sub_title_text_color', 'value' => '#000'), array('type' => 'colorpicker', 'heading' => __('Content Text Color', 'javo_fr'), 'holder' => 'div', 'param_name' => 'text_color', 'value' => '#000'), array('type' => 'colorpicker', 'heading' => __('Header Linear Color', 'javo_fr'), 'holder' => 'div', 'param_name' => 'line_color', 'value' => '#fff'), array('type' => 'textfield', 'heading' => __('Count( 0 = ALL )', 'javo_fr'), 'holder' => 'div', 'class' => '', 'param_name' => 'count', 'value' => 0))));
     //Javo partner-slider
     vc_map(array('base' => 'javo_partner_slider', 'name' => __('Javo Partner Slider', 'javo_fr'), 'category' => __('Javo', 'javo_fr'), 'icon' => 'javo_carousel_news', 'description' => __('Description', 'javo_fr'), 'params' => array(array('type' => 'textfield', 'heading' => __('Title', 'javo_fr'), 'holder' => 'div', 'class' => '', 'param_name' => 'title', 'value' => ''), array('type' => 'textfield', 'heading' => __('Sub Title', 'javo_fr'), 'holder' => 'div', 'class' => '', 'param_name' => 'sub_title', 'value' => ''), array('type' => 'colorpicker', 'heading' => __('Title Text Color', 'javo_fr'), 'holder' => 'div', 'param_name' => 'title_text_color', 'value' => '#000'), array('type' => 'colorpicker', 'heading' => __('Sub Title Text Color', 'javo_fr'), 'holder' => 'div', 'param_name' => 'sub_title_text_color', 'value' => '#000'), array('type' => 'colorpicker', 'heading' => __('Header Linear Color', 'javo_fr'), 'holder' => 'div', 'param_name' => 'line_color', 'value' => '#fff'), array('type' => 'textfield', 'heading' => __('column count', 'javo_fr'), 'holder' => 'div', 'class' => '', 'param_name' => 'column', 'value' => ''))));
     // Javo Featured Items
     vc_map(array('base' => 'javo_featured_items', 'name' => __('Javo Featured Items', 'javo_fr'), 'category' => __('Javo', 'javo_fr'), 'icon' => 'javo_carousel_news', 'description' => __('Broadcast your featured items in a bold manner.', 'javo_fr'), 'params' => array(array('type' => 'textfield', 'heading' => __('Title', 'javo_fr'), 'holder' => 'div', 'class' => '', 'param_name' => 'title', 'value' => ''), array('type' => 'textfield', 'heading' => __('Sub Title', 'javo_fr'), 'holder' => 'div', 'class' => '', 'param_name' => 'sub_title', 'value' => ''), array('type' => 'colorpicker', 'heading' => __('Title Text Color', 'javo_fr'), 'holder' => 'div', 'param_name' => 'title_text_color', 'value' => '#000'), array('type' => 'colorpicker', 'heading' => __('Sub Title Text Color', 'javo_fr'), 'holder' => 'div', 'param_name' => 'sub_title_text_color', 'value' => '#000'), array('type' => 'colorpicker', 'heading' => __('Header Linear Color', 'javo_fr'), 'holder' => 'div', 'param_name' => 'line_color', 'value' => '#fff'), array('type' => 'checkbox', 'heading' => __('Random Ordering ', 'javo_fr'), 'holder' => 'div', 'param_name' => 'random', 'value' => array(__('Able to order randomly', 'javo_fr') => 'rand')))));
     // fullwidth
     vc_add_param("vc_row", array("type" => "checkbox", "class" => "javo-full-width", "heading" => __("Content FULL-WIDTH Layout", 'javo_fr'), "param_name" => "javo_full_width", "value" => array("" => "1")));
     // ! Adding animation to columns
     vc_add_param("vc_column", array("type" => "dropdown", "class" => "", "heading" => __("Animation", 'javo_fr'), "admin_label" => true, "param_name" => "animation", "value" => array(__("None", "javo_fr") => "", __("Left", "javo_fr") => "right-to-left", __("Right", "javo_fr") => "left-to-right", __("Top", "javo_fr") => "bottom-to-top", __("Bottom", "javo_fr") => "top-to-bottom", __("Scale", "javo_fr") => "scale-up", __("Fade", "javo_fr") => "fade-in")));
     // Javo VC-Row Append Attributes.
     vc_add_param("vc_row", array("type" => "attach_image", "heading" => __("Background Image (Full Width)", 'javo_fr'), "group" => __('Javo', 'javo_fr'), "param_name" => "bg_src", "value" => ''));
     vc_add_param("vc_row", array("type" => "colorpicker", "heading" => __("Background Color (Full Width)", 'javo_fr'), "group" => __('Javo', 'javo_fr'), "param_name" => "background_color", "value" => ''));
     vc_add_param("vc_row", array("type" => "checkbox", "heading" => __("Enable Section Shadow (Full Width)", 'javo_fr'), "group" => __('Javo', 'javo_fr'), "param_name" => "box_shadow", "value" => array('' => 'use')));
     vc_add_param("vc_row", array("type" => "colorpicker", "heading" => __("Section Shadow Color (Full Width)", 'javo_fr'), "group" => __('Javo', 'javo_fr'), "param_name" => "box_shadow_color", "value" => '#000'));
     vc_add_param("vc_row", array("type" => "dropdown", "heading" => __("Background Type (Full Width)", 'javo_fr'), "group" => __('Javo', 'javo_fr'), "param_name" => "background_type", "value" => array(__('Default', 'javo_fr') => "", __('Video( Coming Soon )', 'javo_fr') => "video", __('Parallax', 'javo_fr') => "parallax")));
     vc_add_param("vc_row", array("type" => "textfield", "heading" => __("Parallax Delay (Only Number)(Full Width)", 'javo_fr'), "group" => __('Javo', 'javo_fr'), "param_name" => "parallax_delay", "value" => '0.1'));
 }
Exemplo n.º 8
0
function stm_update_existing_shortcodes()
{
    if (function_exists('vc_add_param')) {
        $attributes = array(array('type' => 'css_editor', 'heading' => __('Css', STM_DOMAIN), 'param_name' => 'css', 'group' => __('Design options', STM_DOMAIN)), array('type' => 'dropdown', 'heading' => __('Type', STM_DOMAIN), 'param_name' => 'type', 'value' => array(__('Type 1', STM_DOMAIN) => 'type_1', __('Type 2', STM_DOMAIN) => 'type_2', __('Type 3', STM_DOMAIN) => 'type_3', __('Type 4', STM_DOMAIN) => 'type_4')), array('type' => 'colorpicker', 'heading' => __('Text Color', STM_DOMAIN), 'param_name' => 'text_color'), array('type' => 'vc_link', 'class' => '', 'heading' => __('Link', STM_DOMAIN), 'param_name' => 'link'), array('type' => 'textfield', 'heading' => __('Text Font size (px)', STM_DOMAIN), 'param_name' => 'text_font_size', 'value' => ''));
        vc_add_params('vc_text_separator', $attributes);
        $attributes = array(array('type' => 'css_editor', 'heading' => __('Css', STM_DOMAIN), 'param_name' => 'css', 'group' => __('Design options', STM_DOMAIN)), array('type' => 'textfield', 'heading' => __('Text Font size (px)', STM_DOMAIN), 'param_name' => 'text_font_size', 'group' => __('Design options', STM_DOMAIN), 'value' => 16), array('type' => 'colorpicker', 'heading' => __('Text Color', STM_DOMAIN), 'param_name' => 'text_color', 'group' => __('Design options', STM_DOMAIN)), array('type' => 'textfield', 'heading' => __('Text Margin`s (px)', STM_DOMAIN), 'param_name' => 'text_margins', 'group' => __('Design options', STM_DOMAIN), 'value' => '0px 0px 0px 0px'));
        vc_add_params('vc_cta_button', $attributes);
        $attributes = array('type' => 'css_editor', 'heading' => __('Css', STM_DOMAIN), 'param_name' => 'css', 'group' => __('Design options', STM_DOMAIN));
        vc_add_param('vc_progress_bar', $attributes);
    }
}
Exemplo n.º 9
0
function ts_integrateWithVC()
{
    if (!function_exists('vc_map')) {
        return;
    }
    /*----------------------------------------------------------------------------*
     * Service
     *----------------------------------------------------------------------------*/
    vc_map(array('name' => __('Service', 'kreativa'), 'base' => 'icon', 'class' => '', 'category' => __('Content', 'kreativa'), 'admin_enqueue_js' => '', 'admin_enqueue_css' => '', "params" => array(array("type" => "textfield", "heading" => "Heading Text", "param_name" => "heading", "admin_label" => true, "value" => "", 'description' => 'The heading text that will be displayed at box top.'), array("type" => "dropdown", "heading" => "Heading Tag", "param_name" => "heading_tag", "value" => array("Default" => "", "h2" => "h2", "h3" => "h3", "h4" => "h4", "h5" => "h5", "h6" => "h6"), "description" => "The heading tag that will be used in the heading text."), array("type" => "dropdown", "class" => "", "heading" => __("Icon Family", 'kreativa'), "param_name" => "ico_family", "value" => array('Font Awesome' => '', 'Elegant Icons' => 'el el-', 'Custom' => 'custom'), "description" => __("Select the icon family.", 'kreativa')), array("type" => "textfield", "heading" => __("Custom Icon Class", 'kreativa'), "param_name" => "ico_custom", "description" => __("Type a custom icon class to be used in the icon.", 'kreativa'), 'dependency' => array('element' => 'ico_family', 'value' => 'custom')), array("type" => "textfield", "heading" => __("Icon Name", 'kreativa'), "param_name" => "ico", "description" => __("Type icon name without prefixes, e.g. cogs or eye.", 'kreativa')), array("type" => "textarea_html", "heading" => "Content", "param_name" => "content", "value" => "<li>Web Development</li><li>Security Research</li><li>Advanced Topics</li>", "description" => "The list that will be showed as the box content."), array("type" => "textfield", "heading" => __("Extra class name", 'kreativa'), "param_name" => "el_class", "description" => __("If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.", 'kreativa')), array('type' => 'dropdown', 'heading' => __('Template', 'kreativa'), 'param_name' => 'template', 'admin_label' => true, 'value' => array(__('Default', 'kreativa') => 'style1', 'style1' => 'style1', 'style2' => 'style2', 'style3' => 'style3', 'style4' => 'style4', 'style5' => 'style5', 'style6' => 'style6', 'style7' => 'style7', 'style8' => 'style8'), 'description' => __('Select a default template to start and maybe customize it. Usually the templates are added by themes.', 'kreativa')))));
    /*----------------------------------------------------------------------------*
     * Title
     *----------------------------------------------------------------------------*/
    vc_map(array('name' => __('Title', 'kreativa'), 'base' => 'title', 'class' => '', 'category' => __('Kreativa', 'kreativa'), 'admin_enqueue_js' => '', 'admin_enqueue_css' => '', "params" => array(array("type" => "textfield", "heading" => "Heading Text", "param_name" => "heading", "admin_label" => true, "value" => "", 'description' => 'The text that will be used as heading.'), array("type" => "dropdown", "heading" => "Heading Tag", "param_name" => "heading_tag", "value" => array("Default" => "", "h2" => "h2", "h3" => "h3", "h4" => "h4", "h5" => "h5", "h6" => "h6"), "description" => "The heading tag that will be used in the heading text."), array('type' => 'dropdown', 'heading' => __('Align', 'kreativa'), 'param_name' => 'align', 'admin_label' => true, 'value' => array(__('Left', 'kreativa') => 'left', 'Right' => 'right', 'Center' => 'Center'), 'description' => __('Select a default template to start and maybe customize it. Usually the templates are added by themes.', 'kreativa')))));
    /*----------------------------------------------------------------------------*
     * Divider
     *----------------------------------------------------------------------------*/
    vc_map(array('name' => __('Divider', 'kreativa'), 'base' => 'divider', 'class' => '', 'category' => __('Kreativa', 'kreativa'), 'admin_enqueue_js' => '', 'admin_enqueue_css' => '', "params" => array(array("type" => "dropdown", "heading" => "Divider Style", "param_name" => "style", "value" => array("Normal" => "", "Dashed" => "br-dashed", "Dotted" => "br-dotted", "Unique" => "unique"), "description" => "The style of the divider."))));
    /*----------------------------------------------------------------------------*
     * Message
     *----------------------------------------------------------------------------*/
    vc_remove_param("vc_message", "el_class");
    vc_remove_param("vc_message", "css_animation");
    vc_remove_param("vc_message", "style");
    vc_add_param('vc_message', array("type" => "dropdown", "class" => "", "heading" => __("Message Box Type", 'kreativa'), "param_name" => "color", "value" => array("Notification" => 'notification', "Success" => 'success', "Danger" => 'danger', "Alert" => 'alert', "Custom" => 'custom'), "description" => __("Select the way message box will be displayed", 'kreativa')));
    vc_add_param('vc_message', array("type" => "textfield", "class" => "", "heading" => __("Font Awesome Icon", 'kreativa'), "param_name" => "icon", "value" => 'lightbulb-o', 'description' => 'Enter a font awesome icon class just name without fa-'));
    vc_add_param('vc_message', array("type" => "dropdown", "class" => "", "heading" => __("Message Box Type", 'kreativa'), "param_name" => "box_bg", "value" => array("White" => 'bg-white', "Black" => 'bg-black', "Blue" => 'bg-blue', "Dark Blue" => 'bg-dark-blue', "Light Blue" => 'bg-light-blue', "Turquoise Blue" => 'bg-turquoise-blue', "Gray" => 'bg-gray', "Dark Gray" => 'bg-dark-gray', "Periwinkle Gray" => 'bg-periwinkle-gray', "Botticelli Gray" => 'bg-botticelli-gray', "Light Gray" => 'bg-light-gray', "Silver" => 'bg-silver', "Orange" => 'bg-orange', "Dark Orange" => 'bg-dark-orange', "Bittersweet" => 'bg-bittersweet', "Green" => 'bg-green', "Dark Green" => 'bg-dark-green', "Turquoise" => 'bg-turquoise', "Purple" => 'bg-purple', "Dark Purple" => 'bg-dark-purple', "Pink" => 'bg-pink', "Cranberry" => 'bg-cranberry', "Yellow" => 'bg-yellow', "Red" => 'bg-red'), "description" => __("Select the way message box will be displayed", 'kreativa'), "dependency" => array('element' => 'color', 'value' => array('custom'))));
    vc_add_param('vc_message', array("type" => "dropdown", "class" => "", "heading" => __("Message Box Color", 'kreativa'), "param_name" => "box_color", "value" => array("White" => 'color-white', "Black" => 'color-black', "Blue" => 'color-blue', "Dark Blue" => 'color-dark-blue', "Light Blue" => 'color-light-blue', "Turquoise Blue" => 'color-turquoise-blue', "Gray" => 'color-gray', "Dark Gray" => 'color-dark-gray', "Periwinkle Gray" => 'color-periwinkle-gray', "Botticelli Gray" => 'color-botticelli-gray', "Light Gray" => 'color-light-gray', "Silver" => 'color-silver', "Orange" => 'color-orange', "Dark Orange" => 'color-dark-orange', "Bittersweet" => 'color-bittersweet', "Green" => 'color-green', "Dark Green" => 'color-dark-green', "Turquoise" => 'color-turquoise', "Purple" => 'color-purple', "Dark Purple" => 'color-dark-purple', "Pink" => 'color-pink', "Cranberry" => 'color-cranberry', "Yellow" => 'color-yellow', "Red" => 'color-red'), "description" => __("Select the way message box will be displayed", 'kreativa'), "dependency" => array('element' => 'color', 'value' => array('custom'))));
    vc_add_param('vc_message', array("type" => "dropdown", "class" => "", "heading" => __("Message Box Border Color", 'kreativa'), "param_name" => "box_br_color", "value" => array("White" => 'br-color-white', "Black" => 'br-color-black', "Blue" => 'br-color-blue', "Dark Blue" => 'br-color-dark-blue', "Light Blue" => 'br-color-light-blue', "Turquoise Blue" => 'br-color-turquoise-blue', "Gray" => 'br-color-gray', "Dark Gray" => 'br-color-dark-gray', "Periwinkle Gray" => 'br-color-periwinkle-gray', "Botticelli Gray" => 'br-color-botticelli-gray', "Light Gray" => 'br-color-light-gray', "Silver" => 'br-color-silver', "Orange" => 'br-color-orange', "Dark Orange" => 'br-color-dark-orange', "Bittersweet" => 'br-color-bittersweet', "Green" => 'br-color-green', "Dark Green" => 'br-color-dark-green', "Turquoise" => 'br-color-turquoise', "Purple" => 'br-color-purple', "Dark Purple" => 'br-color-dark-purple', "Pink" => 'br-color-pink', "Cranberry" => 'br-color-cranberry', "Yellow" => 'br-color-yellow', "Red" => 'br-color-red'), "description" => __("Select the way message box will be displayed", 'kreativa'), "dependency" => array('element' => 'color', 'value' => array('custom'))));
    vc_add_param('vc_message', array("type" => "dropdown", "class" => "", "heading" => __("Message Box Border Thickness", 'kreativa'), "param_name" => "box_br_thickness", "value" => array("Light" => 'br-light', "Semi Light" => 'br-semi-light', "Medium" => 'br-medium', "Semi Thick" => 'br-semi-thick', "Thick" => 'br-thick'), "description" => __("Select the way message box will be displayed", 'kreativa'), "dependency" => array('element' => 'color', 'value' => array('custom'))));
    vc_add_param('vc_message', array("type" => "dropdown", "class" => "", "heading" => __("Message Box Border Style", 'kreativa'), "param_name" => "box_br_style", "value" => array("Solid" => 'br-solid', "Dashed" => 'br-dashed', "Dotted" => 'br-dotted', "Double" => 'br-double'), "description" => __("Select the way message box will be displayed", 'kreativa'), "dependency" => array('element' => 'color', 'value' => array('custom'))));
    /*----------------------------------------------------------------------------*
     * Button
     *----------------------------------------------------------------------------*/
    vc_remove_param("vc_button", "el_class");
    vc_add_param('vc_button', array("type" => "dropdown", "class" => "", "heading" => __("Background", 'kreativa'), "param_name" => "color", "value" => array("Default" => "bg-blue", "White" => 'bg-white', "Black" => 'bg-black', "Blue" => 'bg-blue', "Dark Blue" => 'bg-dark-blue', "Light Blue" => 'bg-light-blue', "Turquoise Blue" => 'bg-turquoise-blue', "Gray" => 'bg-gray', "Dark Gray" => 'bg-dark-gray', "Periwinkle Gray" => 'bg-periwinkle-gray', "Botticelli Gray" => 'bg-botticelli-gray', "Light Gray" => 'bg-light-gray', "Silver" => 'bg-silver', "Orange" => 'bg-orange', "Dark Orange" => 'bg-dark-orange', "Bittersweet" => 'bg-bittersweet', "Green" => 'bg-green', "Dark Green" => 'bg-dark-green', "Turquoise" => 'bg-turquoise', "Purple" => 'bg-purple', "Dark Purple" => 'bg-dark-purple', "Pink" => 'bg-pink', "Cranberry" => 'bg-cranberry', "Yellow" => 'bg-yellow', "Red" => 'bg-red'), "description" => __("Background color of the button", 'kreativa')));
    vc_add_param('vc_button', array("type" => "dropdown", "class" => "", "heading" => __("Font", 'kreativa'), "param_name" => "text_color", "value" => array("White" => 'color-white', "Black" => 'color-black', "Blue" => 'color-blue', "Dark Blue" => 'color-dark-blue', "Light Blue" => 'color-light-blue', "Turquoise Blue" => 'color-turquoise-blue', "Gray" => 'color-gray', "Dark Gray" => 'color-dark-gray', "Periwinkle Gray" => 'color-periwinkle-gray', "Botticelli Gray" => 'color-botticelli-gray', "Light Gray" => 'color-light-gray', "Silver" => 'color-silver', "Orange" => 'color-orange', "Dark Orange" => 'color-dark-orange', "Bittersweet" => 'color-bittersweet', "Green" => 'color-green', "Dark Green" => 'color-dark-green', "Turquoise" => 'color-turquoise', "Purple" => 'color-purple', "Dark Purple" => 'color-dark-purple', "Pink" => 'color-pink', "Cranberry" => 'color-cranberry', "Yellow" => 'color-yellow', "Red" => 'color-red'), "description" => __("Font color of the button", 'kreativa')));
    vc_add_param('vc_button', array("type" => "textfield", "class" => "", "heading" => __("Font Awesome Icon", 'kreativa'), "param_name" => "icon", "value" => 'lightbulb-o', 'description' => 'Enter a font awesome icon class just name without fa-'));
    vc_add_param('vc_button', array("type" => "dropdown", "class" => "", "heading" => __("Icon Size", 'kreativa'), "param_name" => "size", "value" => array("Normal" => '', "Small" => 'small', "Big" => 'Big'), "description" => __("The size of the button", 'kreativa')));
    vc_add_param('vc_button', array("type" => "dropdown", "class" => "", "heading" => __("Icon Position", 'kreativa'), "param_name" => "position", "value" => array("Default" => '', "Left" => 'left', "Center" => 'center', "Right" => 'right'), "description" => __("The position of the button", 'kreativa')));
    vc_add_param('vc_button', array("type" => "dropdown", "class" => "", "heading" => __("Icon Style", 'kreativa'), "param_name" => "style", "value" => array("Default" => 'normal', "Flat" => 'flat', "Shaped" => 'shaped', "3D" => 'b3d', "Unfilled" => 'unfilled'), "description" => __("The style of the button", 'kreativa')));
    vc_add_param('vc_button', array("type" => "dropdown", "class" => "", "heading" => __("Border Thickness", 'kreativa'), "param_name" => "br_thickness", "value" => array("Light" => 'br-light', "Semi Light" => 'br-semi-light', "Medium" => 'br-medium', "Semi Thick" => 'br-semi-thick', "Thick" => 'br-thick'), "description" => __("The border Thickness of the button", 'kreativa'), "dependency" => array('element' => 'style', 'value' => array('unfilled'))));
    vc_add_param('vc_button', array("type" => "dropdown", "class" => "", "heading" => __("Border Color", 'kreativa'), "param_name" => "br_color", "value" => array("White" => 'br-color-white', "Black" => 'br-color-black', "Blue" => 'br-color-blue', "Dark Blue" => 'br-color-dark-blue', "Light Blue" => 'br-color-light-blue', "Turquoise Blue" => 'br-color-turquoise-blue', "Gray" => 'br-color-gray', "Dark Gray" => 'br-color-dark-gray', "Periwinkle Gray" => 'br-color-periwinkle-gray', "Botticelli Gray" => 'br-color-botticelli-gray', "Light Gray" => 'br-color-light-gray', "Silver" => 'br-color-silver', "Orange" => 'br-color-orange', "Dark Orange" => 'br-color-dark-orange', "Bittersweet" => 'br-color-bittersweet', "Green" => 'br-color-green', "Dark Green" => 'br-color-dark-green', "Turquoise" => 'br-color-turquoise', "Purple" => 'br-color-purple', "Dark Purple" => 'br-color-dark-purple', "Pink" => 'br-color-pink', "Cranberry" => 'br-color-cranberry', "Yellow" => 'br-color-yellow', "Red" => 'br-color-red'), "description" => __("The border color of the button", 'kreativa'), "dependency" => array('element' => 'style', 'value' => array('unfilled'))));
    /*----------------------------------------------------------------------------*
     * Tabs
     *----------------------------------------------------------------------------*/
    vc_remove_param("vc_tabs", "el_class");
    vc_remove_param("vc_tabs", "interval");
    vc_remove_param("vc_tabs", "title");
    vc_add_param('vc_tabs', array('type' => 'checkbox', 'heading' => __('Side Tabs?', 'js_composer'), 'param_name' => 'sidetabs', 'description' => __('Do you want to show tabs at side?', 'kreativa'), 'value' => array(__('Yes, please', 'kreativa') => 'yes')));
    /*----------------------------------------------------------------------------*
     * Row
     *----------------------------------------------------------------------------*/
    vc_add_param('vc_row', array("type" => "dropdown", "class" => "", "heading" => __("Background Size", 'kreativa'), "param_name" => "bg_size", "value" => array('Cover' => "", 'Contain' => "contain", 'Default' => "auto"), "description" => __("Select the way background image will be sized.", 'kreativa'), "dependency" => array('element' => 'bg_type', 'value' => array('image'))));
}
Exemplo n.º 10
0
 function init()
 {
     vc_add_param("vc_column_text", array("type" => "ivan_customizer", "class" => "", "heading" => __("H1 Customization", 'iv_js_composer'), "param_name" => "h1_css", "customize" => $this->selectors['h1_css'], "value" => "", "group" => __('H1', 'iv_js_composer')));
     vc_add_param("vc_column_text", array("type" => "ivan_customizer", "class" => "", "heading" => __("H2 Customization", 'iv_js_composer'), "param_name" => "h2_css", "customize" => $this->selectors['h2_css'], "value" => "", "group" => __('H2', 'iv_js_composer')));
     vc_add_param("vc_column_text", array("type" => "ivan_customizer", "class" => "", "heading" => __("H3 Customization", 'iv_js_composer'), "param_name" => "h3_css", "customize" => $this->selectors['h3_css'], "value" => "", "group" => __('H3', 'iv_js_composer')));
     vc_add_param("vc_column_text", array("type" => "ivan_customizer", "class" => "", "heading" => __("H4 Customization", 'iv_js_composer'), "param_name" => "h4_css", "customize" => $this->selectors['h4_css'], "value" => "", "group" => __('H4', 'iv_js_composer')));
     vc_add_param("vc_column_text", array("type" => "ivan_customizer", "class" => "", "heading" => __("H5 Customization", 'iv_js_composer'), "param_name" => "h5_css", "customize" => $this->selectors['h5_css'], "value" => "", "group" => __('H5', 'iv_js_composer')));
     vc_add_param("vc_column_text", array("type" => "ivan_customizer", "class" => "", "heading" => __("H6 Customization", 'iv_js_composer'), "param_name" => "h6_css", "customize" => $this->selectors['h6_css'], "value" => "", "group" => __('H6', 'iv_js_composer')));
     vc_add_param("vc_column_text", array("type" => "ivan_customizer", "class" => "", "heading" => __("Paragraph Customization", 'iv_js_composer'), "param_name" => "p_css", "customize" => $this->selectors['p_css'], "value" => "", "group" => __('Paragraph', 'iv_js_composer')));
     vc_add_param("vc_column_text", array("type" => "ivan_customizer", "class" => "", "heading" => __("Link Customization", 'iv_js_composer'), "param_name" => "link_css", "customize" => $this->selectors['link_css'], "value" => "", "group" => __('Link', 'iv_js_composer')));
     vc_add_param("vc_column_text", array("type" => "ivan_customizer", "class" => "", "heading" => __("List Customization", 'iv_js_composer'), "param_name" => "list_css", "customize" => $this->selectors['list_css'], "value" => "", "group" => __('List', 'iv_js_composer')));
 }
Exemplo n.º 11
0
 public function add_vc_params()
 {
     foreach (WPBMap::getAllShortCodes() as $base => $element) {
         if (!in_array($base, array_merge($this->settings['support'], array_keys(WPKit::get_shortcodes())))) {
             WPBMap::dropShortcode($base);
         }
     }
     foreach ($this->settings['params'] as $param) {
         foreach ($param['shortcodes'] as $shortcode) {
             vc_add_param($shortcode, $param);
         }
     }
 }
 /**
  * Adds new params for the VC Rows
  *
  * @since 3.0.0
  * @access public
  */
 public function add_params()
 {
     // Get global object
     global $vcex_global;
     vc_add_param('vc_text_separator', array('type' => 'dropdown', 'heading' => __('Element Type', 'wpex'), 'param_name' => 'element_type', 'value' => array('div' => 'div', 'h1' => 'h1', 'h2' => 'h2', 'h3' => 'h3', 'h4' => 'h4', 'h5' => 'h5', 'h6' => 'h6')));
     vc_add_param('vc_text_separator', array('type' => 'dropdown', 'heading' => __('Style', 'wpex'), 'param_name' => 'style', 'value' => array(__('Bottom Border', 'wpex') => 'one', __('Bottom Border With Color', 'wpex') => 'two', __('Line Through', 'wpex') => 'three', __('Double Line Through', 'wpex') => 'four', __('Dotted', 'wpex') => 'five', __('Dashed', 'wpex') => 'six', __('Top & Bottom Borders', 'wpex') => 'seven', __('Graphical', 'wpex') => 'eight', __('Outlined', 'wpex') => 'nine')));
     vc_add_param('vc_text_separator', array('type' => 'colorpicker', 'heading' => __('Border Color', 'wpex'), 'param_name' => 'border_color', 'description' => __('Select a custom color for your colored border under the title.', 'wpex'), 'dependency' => array('element' => 'style', 'value' => array('two'))));
     vc_add_param('vc_text_separator', array('type' => 'textfield', 'heading' => __('Font Size', 'wpex'), 'param_name' => 'font_size', 'description' => __('You can use "em" or "px" values, but you must define them.', 'wpex')));
     vc_add_param('vc_text_separator', array('type' => 'dropdown', 'heading' => __('Font Weight', 'wpex'), 'std' => '', 'param_name' => 'font_weight', 'description' => __('Note: Not all font families support every font weight.', 'wpex'), 'value' => array_flip(wpex_font_weights())));
     vc_add_param('vc_text_separator', array('type' => 'textfield', 'heading' => __('Bottom Margin', 'wpex'), 'param_name' => 'margin_bottom', 'description' => __('Please enter a px value.', 'wpex')));
     vc_add_param('vc_text_separator', array('type' => 'colorpicker', 'heading' => __('Background Color', 'wpex'), 'param_name' => 'span_background', 'dependency' => array('element' => 'style', 'value' => array('three', 'four', 'five', 'six'))));
     vc_add_param('vc_text_separator', array('type' => 'colorpicker', 'heading' => __('Font Color', 'wpex'), 'param_name' => 'span_color'));
 }
Exemplo n.º 13
0
function web_vc_add_attr()
{
    /**
     * Add background atrributes to VC Rows
     */
    $attributes = array('type' => 'dropdown', 'heading' => "Background Style", 'param_name' => 'background_style', 'value' => array_flip(array('' => 'Standard Settings', 'full' => 'Fullwidth Section', 'light-wrapper' => 'Light Background', 'dark-wrapper' => 'Dark Background', 'bg-primary' => 'Primary Highlight Colour Background', 'bg-secondary-1' => 'Secondary Highlight Colour Background', 'bg-secondary-2 ' => 'Secondary Highlight 2 Colour Background', 'image' => 'Parallax Background Image (Full Width)', 'image-left' => 'Image Left, Content on Right', 'image-right' => 'Image Right, Content on Left')), 'description' => "Choose Background Style For This Row");
    vc_add_param('vc_row', $attributes);
    /**
     * Add smooth scroll
     */
    $attributes = array('type' => 'textfield', 'heading' => "Single Page Scroll ID", 'param_name' => 'single_link', 'value' => '', 'description' => "Enter a lowercase scroll id to link the menu to, no spaces or special characters.");
    vc_add_param('vc_row', $attributes);
}
Exemplo n.º 14
0
 /**
  * Adds new params for the VC Single_Images
  *
  * @since 2.0.0
  */
 public static function add_params()
 {
     vc_add_param('vc_single_image', array('type' => 'dropdown', 'heading' => esc_html__('Image alignment', 'total'), 'param_name' => 'alignment', 'value' => array(esc_html__('Default', 'total') => '', esc_html__('Left', 'total') => 'left', esc_html__('Right', 'total') => 'right', esc_html__('Center', 'total') => 'center'), 'description' => esc_html__('Select image alignment.', 'total')));
     vc_add_param('vc_single_image', array('type' => 'dropdown', 'heading' => esc_html__('Image Filter', 'total'), 'param_name' => 'img_filter', 'value' => array_flip(wpex_image_filters()), 'description' => esc_html__('Select an image filter style.', 'total')));
     vc_add_param('vc_single_image', array('type' => 'textfield', 'heading' => esc_html__('Over Image Caption', 'total'), 'param_name' => 'img_caption', 'description' => esc_html__('Use this field to add a caption to any single image with a link.', 'total')));
     vc_add_param('vc_single_image', array('type' => 'dropdown', 'heading' => esc_html__('CSS3 Image Link Hover', 'total'), 'param_name' => 'img_hover', 'std' => '', 'value' => array_flip(wpex_image_hovers()), 'description' => esc_html__('Select your preferred image hover effect. Please note this will only work if the image links to a URL or a large version of itself. Please note these effects may not work in all browsers.', 'total')));
     vc_add_param('vc_single_image', array('type' => 'textfield', 'heading' => esc_html__('Video, SWF, Flash, URL Lightbox', 'total'), 'param_name' => 'lightbox_video', 'description' => esc_html__('Enter the URL to a video, SWF file, flash file or a website URL to open in lightbox.', 'total'), 'group' => esc_html__('Custom Lightbox', 'total')));
     vc_add_param('vc_single_image', array('type' => 'dropdown', 'heading' => esc_html__('Lightbox Type', 'total'), 'param_name' => 'lightbox_iframe_type', 'value' => array(esc_html__('Auto Detect', 'total') => '', esc_html__('URL', 'total') => 'url', esc_html__('Youtube, Vimeo, Embed or Iframe', 'total') => 'video_embed', esc_html__('HTML5', 'total') => 'html5', esc_html__('Quicktime', 'total') => 'quicktime'), 'description' => esc_html__('Auto detect depends on the iLightbox API, so by choosing your type it speeds things up and you also allows for HTTPS support.', 'total'), 'group' => esc_html__('Custom Lightbox', 'total'), 'dependency' => array('element' => 'lightbox_video', 'not_empty' => true)));
     vc_add_param('vc_single_image', array('type' => 'textfield', 'heading' => esc_html__('HTML5 Webm URL', 'total'), 'param_name' => 'lightbox_video_html5_webm', 'description' => esc_html__('Enter the URL to a video, SWF file, flash file or a website URL to open in lightbox.', 'total'), 'group' => esc_html__('Custom Lightbox', 'total'), 'dependency' => array('element' => 'lightbox_iframe_type', 'value' => 'html5')));
     vc_add_param('vc_single_image', array('type' => 'textfield', 'heading' => esc_html__('Lightbox Dimensions', 'total'), 'param_name' => 'lightbox_dimensions', 'description' => esc_html__('Enter a custom width and height for your lightbox pop-up window. Use format widthxheight. Example: 900x600.', 'total'), 'group' => esc_html__('Custom Lightbox', 'total')));
     vc_add_param('vc_single_image', array('type' => 'attach_image', 'admin_label' => false, 'heading' => esc_html__('Custom Image Lightbox', 'total'), 'param_name' => 'lightbox_custom_img', 'description' => esc_html__('Select a custom image to open in lightbox format', 'total'), 'group' => esc_html__('Custom Lightbox', 'total')));
     vc_add_param('vc_single_image', array('type' => 'attach_images', 'admin_label' => false, 'heading' => esc_html__('Gallery Lightbox', 'total'), 'param_name' => 'lightbox_gallery', 'description' => esc_html__('Select images to create a lightbox Gallery.', 'total'), 'group' => esc_html__('Custom Lightbox', 'total')));
     // Hidden fields for parsing
     vc_add_param('vc_single_image', array('type' => 'hidden', 'param_name' => 'rounded_image'));
 }
Exemplo n.º 15
0
 function ebor_vc_add_attr()
 {
     $attributes = array('type' => 'dropdown', 'heading' => "Section Layout", 'param_name' => 'layout', 'value' => array_flip(array('standard' => 'Standard Row', 'full' => 'Fullwidth Row')), 'description' => "Choose Layout For This Row");
     vc_add_param('vc_row', $attributes);
     /**
      * Add portfolio category selectors
      */
     $portfolio_args = array('orderby' => 'name', 'hide_empty' => 0, 'hierarchical' => 1, 'taxonomy' => 'portfolio_category');
     $portfolio_cats = get_categories($portfolio_args);
     $final_portfolio_cats = array('Show all categories' => 'all');
     foreach ($portfolio_cats as $cat) {
         $final_portfolio_cats[$cat->name] = $cat->term_id;
     }
     $attributes = array('type' => 'dropdown', 'heading' => "Show Specific Portfolio Category?", 'param_name' => 'filter', 'value' => $final_portfolio_cats);
     vc_add_param('huntington_portfolio', $attributes);
 }
Exemplo n.º 16
0
/**
 * Add shared Mm parameters/atts to all VC components.
 *
 * @since  1.0.0
 */
function mm_vc_custom_component_atts()
{
    // Get all available VC components.
    $components = WPBMap::getShortCodes();
    // Create custom group title.
    $custom_group = __('Mm Custom Settings', 'mm-components');
    // Text color.
    $atts[] = array('type' => 'dropdown', 'heading' => __('Text Color Scheme', 'mm-components'), 'param_name' => 'mm_class_text_color', 'group' => $custom_group, 'value' => array(__('Default', 'mm-components ') => '', __('Dark', 'mm-components ') => 'dark', __('Light', 'mm-components ') => 'light', __('Medium', 'mm-components ') => 'medium'));
    // Text alignment.
    $atts[] = array('type' => 'dropdown', 'heading' => __('Text Alignment', 'mm-components'), 'param_name' => 'mm_class_text_align', 'group' => $custom_group, 'value' => array(__('Default', 'mm-components ') => '', __('Left', 'mm-components ') => 'left', __('Center', 'mm-components ') => 'center', __('Right', 'mm-components ') => 'right'));
    // Custom Class.
    $atts[] = array('type' => 'textfield', 'heading' => __('Custom Class', 'mm-components'), 'param_name' => 'mm_custom_class', 'group' => $custom_group);
    // Add each param to each VC component.
    foreach ($atts as $att) {
        foreach ($components as $component) {
            vc_add_param($component['base'], $att);
        }
    }
}
function lab_vc_custom_icon_fonts()
{
    # Add Extra Icon Fonts
    $param = WPBMap::getParam('vc_icon', 'type');
    if (!is_array($param)) {
        return false;
    }
    $param['weight'] = 2;
    $param['value'] = array('Linea' => 'linea') + $param['value'];
    vc_update_shortcode_param('vc_icon', $param);
    # Add Param Type
    $attributes = array('type' => 'iconpicker', 'heading' => __('Icon', 'lab_composer'), 'param_name' => 'icon_linea', 'value' => 'icon-basic-accelerator', 'weight' => 1, 'settings' => array('emptyIcon' => false, 'type' => 'linea', 'iconsPerPage' => -1), 'dependency' => array('element' => 'type', 'value' => 'linea'), 'description' => __('Select icon from library.', 'lab_composer'));
    vc_add_param('vc_icon', $attributes);
    # Set Default Color to Black
    $param = WPBMap::getParam('vc_icon', 'color');
    $param['std'] = 'black';
    vc_update_shortcode_param('vc_icon', $param);
    # Custom Icon
    add_action('admin_print_styles', 'lab_vc_custom_icon_css');
}
Exemplo n.º 18
0
 function iron_register_js_composer()
 {
     global $wpdb;
     $css_animations = array('None' => '', 'Left to Right Effect' => 'wpb_animate_when_almost_visible wpb_left-to-right', 'Right to Left Effect' => 'wpb_animate_when_almost_visible wpb_right-to-left', 'Top to Bottom Effect' => 'wpb_animate_when_almost_visible wpb_top-to-bottom', 'Bottom to Top Effect' => 'wpb_animate_when_almost_visible wpb_bottom-to-top', 'Appear From Center' => 'wpb_animate_when_almost_visible wpb_appear');
     $row_params = array(array("type" => "dropdown", "heading" => __('Type', 'js_composer'), "param_name" => "iron_row_type", "description" => __("You can specify whether the row is displayed fullwidth or in container.", "js_composer"), "value" => array(__("In Container", 'js_composer') => 'in_container', __("Fullwidth", 'js_composer') => 'full_width'), 'save_always' => true), array("type" => "dropdown", "heading" => __('Remove Padding On Medium & Small Screens (1024px)', 'js_composer'), "param_name" => "iron_remove_padding_medium", "value" => array(__("No", 'js_composer') => '', __("Yes", 'js_composer') => 'tabletnopadding'), 'save_always' => true), array("type" => "dropdown", "heading" => __('Remove Padding On Small Screens Only (700px)', 'js_composer'), "param_name" => "iron_remove_padding_small", "value" => array(__("No", 'js_composer') => '', __("Yes", 'js_composer') => 'mobilenopadding'), 'save_always' => true), array("type" => "textfield", "heading" => __("ID Name for Navigation", "js_composer"), "param_name" => "iron_id", "description" => __('If this row wraps the content of one of your sections, set an ID. You can then use it for navigation.<br>Ex: if you enter "work" then you can add a custom link to the menu as follow: "#work". Once this link is clicked, the page will be scrolled to that specific section.', "js_composer")), array("type" => "colorpicker", "heading" => __('Overlay Color', 'js_composer'), "param_name" => "iron_overlay_color", "description" => __("You can set a color over the background image. You can make it more or less opaque, by using the next setting. Default: white ", "js_composer")), array("type" => "dropdown", "heading" => __('Overlay Pattern', 'js_composer'), "param_name" => "iron_overlay_pattern", "description" => __("You can set an overlay pattern over the background image", "js_composer"), "value" => array(__("", 'js_composer') => '', __("Brick", 'js_composer') => 'brick', __("Dot", 'js_composer') => 'dot', __("Zig Zag", 'js_composer') => 'zigzag', __("45 Degrees Dash", 'js_composer') => '45_degree_dash', __("45 Degrees Grid", 'js_composer') => '45_degree_grid', __("45 Degrees Line Small", 'js_composer') => '45_degree_line_small', __("45 Degrees Line Medium", 'js_composer') => '45_degree_line_medium', __("45 Degrees Line Large", 'js_composer') => '45_degree_line_large'), 'save_always' => true), array("type" => "dropdown", "heading" => __('Activate Parallax', 'js_composer'), "param_name" => "iron_parallax", "description" => __("You will need to add a background image within the design tab.", "js_composer"), "value" => array(__("No", 'js_composer') => '', __("Yes", 'js_composer') => 'parallax'), 'save_always' => true), array("type" => "dropdown", "heading" => __('Activate Background Video', 'js_composer'), "param_name" => "iron_bg_video", "value" => array(__("No", 'js_composer') => '', __("Yes", 'js_composer') => 'bg_video'), 'save_always' => true), array("type" => "textfield", "heading" => __('Video Url (Self Hosted MP4)', 'js_composer'), "param_name" => "iron_bg_video_mp4", "value" => ''), array("type" => "textfield", "heading" => __('Video Url (Self Hosted WebM)', 'js_composer'), "param_name" => "iron_bg_video_webm", "value" => ''), array("type" => "attach_image", "heading" => __('Video Image Fallback', 'js_composer'), "description" => __("This image will replace video if its not supported by device.", "js_composer"), "param_name" => "iron_bg_video_poster", "value" => ''));
     foreach ($row_params as $param) {
         vc_add_param('vc_row', $param);
     }
     vc_remove_param('vc_row', 'font_color');
     vc_remove_param('vc_row', 'full_width');
     vc_remove_param('vc_row', 'parallax');
     vc_remove_param('vc_row', 'parallax_image');
     vc_remove_param('vc_row', 'el_id');
     vc_remove_param('vc_row', 'full_height');
     vc_remove_param('vc_row', 'content_placement');
     vc_remove_param('vc_row', 'video_bg');
     vc_remove_param('vc_row', 'video_bg_url');
     vc_remove_param('vc_row', 'video_bg_parallax');
     vc_map(array("name" => _x("Audio Player", 'VC', IRON_TEXT_DOMAIN), "base" => "iron_audioplayer", "class" => "", "icon" => "iron_vc_icon_audio_player", "category" => _x('IRON Widgets', 'VC', IRON_TEXT_DOMAIN), "params" => array(array("type" => "textfield", "holder" => "div", "class" => "", "heading" => _x("Title", 'VC', IRON_TEXT_DOMAIN), "param_name" => "title", "value" => "", "description" => ''), array("type" => "post_multiselect", "post_type" => "album", "holder" => "div", "class" => "", "heading" => _x("Albums", 'VC', IRON_TEXT_DOMAIN), "param_name" => "albums", "value" => '', "description" => ''), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => _x("Auto Play", 'VC', IRON_TEXT_DOMAIN), "param_name" => "autoplay", "value" => array(_x("No", 'VC', IRON_TEXT_DOMAIN) => 0, _x("Yes", 'VC', IRON_TEXT_DOMAIN) => 1), "description" => '', 'save_always' => true), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => _x("Show Playlist", 'VC', IRON_TEXT_DOMAIN), "param_name" => "show_playlist", "value" => array(_x("No", 'VC', IRON_TEXT_DOMAIN) => 0, _x("Yes", 'VC', IRON_TEXT_DOMAIN) => 1), "description" => '', 'save_always' => true), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => _x("Call To Action Title", 'VC', IRON_TEXT_DOMAIN), "param_name" => "action_title", "value" => '', "description" => ''), array("type" => "post_select", "post_type" => "page", "holder" => "div", "class" => "", "heading" => _x("Call To Action Page", 'VC', IRON_TEXT_DOMAIN), "param_name" => "action_obj_id", "value" => '', "description" => ''), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => _x("Call To Action External Link", 'VC', IRON_TEXT_DOMAIN), "param_name" => "action_ext_link", "value" => '', "description" => ''), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => _x("CSS Animation", 'VC', IRON_TEXT_DOMAIN), "param_name" => "css_animation", "value" => $css_animations, "description" => '', 'save_always' => true))));
     vc_map(array("name" => _x("Discography - List", 'VC', IRON_TEXT_DOMAIN), "base" => "iron_discography", "class" => "", "icon" => "iron_vc_icon_discography", "category" => _x('IRON Widgets', 'VC', IRON_TEXT_DOMAIN), "params" => array(array("type" => "textfield", "holder" => "div", "class" => "", "heading" => _x("Title", 'VC', IRON_TEXT_DOMAIN), "param_name" => "title", "value" => "", "description" => ''), array("type" => "post_multiselect", "post_type" => "album", "holder" => "div", "class" => "", "heading" => _x("Albums", 'VC', IRON_TEXT_DOMAIN), "param_name" => "albums", "value" => '', "description" => ''), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => _x("Call To Action Title", 'VC', IRON_TEXT_DOMAIN), "param_name" => "action_title", "value" => '', "description" => ''), array("type" => "post_select", "post_type" => "page", "holder" => "div", "class" => "", "heading" => _x("Call To Action Page", 'VC', IRON_TEXT_DOMAIN), "param_name" => "action_obj_id", "value" => '', "description" => ''), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => _x("Call To Action External Link", 'VC', IRON_TEXT_DOMAIN), "param_name" => "action_ext_link", "value" => '', "description" => ''), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => _x("CSS Animation", 'VC', IRON_TEXT_DOMAIN), "param_name" => "css_animation", "value" => $css_animations, "description" => '', 'save_always' => true))));
     vc_map(array("name" => _x("News - List", 'VC', IRON_TEXT_DOMAIN), "base" => "iron_posts", "class" => "", "icon" => "iron_vc_icon_news", "category" => _x('IRON Widgets', 'VC', IRON_TEXT_DOMAIN), "params" => array(array("type" => "textfield", "holder" => "div", "class" => "", "heading" => _x("Title", 'VC', IRON_TEXT_DOMAIN), "param_name" => "title", "value" => "", "description" => ''), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => _x("Number of posts to show", 'VC', IRON_TEXT_DOMAIN), "param_name" => "number", "value" => '', "description" => ''), array("type" => "taxonomy_multiselect", "taxonomy" => "category", "holder" => "div", "class" => "", "heading" => _x("Category", 'VC', IRON_TEXT_DOMAIN), "param_name" => "category", "description" => ''), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => _x("View As", 'VC', IRON_TEXT_DOMAIN), "param_name" => "view", "value" => array(_x("Grid", 'VC', IRON_TEXT_DOMAIN) => 'post_grid', _x("List", 'VC', IRON_TEXT_DOMAIN) => 'post'), "description" => '', 'save_always' => true), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => _x("Show Excerpts", 'VC', IRON_TEXT_DOMAIN), "param_name" => "enable_excerpts", "value" => array(_x("No", 'VC', IRON_TEXT_DOMAIN) => 0, _x("Yes", 'VC', IRON_TEXT_DOMAIN) => 1), "description" => '', 'save_always' => true), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => _x("Show Date", 'VC', IRON_TEXT_DOMAIN), "param_name" => "show_date", "value" => array(_x("Yes", 'VC', IRON_TEXT_DOMAIN) => 1, _x("No", 'VC', IRON_TEXT_DOMAIN) => 0), "description" => '', 'save_always' => true), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => _x("Call To Action Title", 'VC', IRON_TEXT_DOMAIN), "param_name" => "action_title", "value" => '', "description" => ''), array("type" => "post_select", "post_type" => "page", "holder" => "div", "class" => "", "heading" => _x("Call To Action Page", 'VC', IRON_TEXT_DOMAIN), "param_name" => "action_obj_id", "value" => '', "description" => ''), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => _x("Call To Action External Link", 'VC', IRON_TEXT_DOMAIN), "param_name" => "action_ext_link", "value" => '', "description" => ''), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => _x("CSS Animation", 'VC', IRON_TEXT_DOMAIN), "param_name" => "css_animation", "value" => $css_animations, "description" => '', 'save_always' => true))));
     vc_map(array("name" => _x("Video - List", 'VC', IRON_TEXT_DOMAIN), "base" => "iron_recentvideos", "class" => "", "icon" => "iron_vc_icon_videos", "category" => _x('IRON Widgets', 'VC', IRON_TEXT_DOMAIN), "params" => array(array("type" => "textfield", "holder" => "div", "class" => "", "heading" => _x("Title", 'VC', IRON_TEXT_DOMAIN), "param_name" => "title", "value" => "", "description" => ''), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => _x("Number of videos to show", 'VC', IRON_TEXT_DOMAIN), "param_name" => "number", "value" => '', "description" => ''), array("type" => "taxonomy_multiselect", "taxonomy" => "video-category", "holder" => "div", "class" => "", "heading" => _x("Category", 'VC', IRON_TEXT_DOMAIN), "param_name" => "category", "description" => ''), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => _x("View As", 'VC', IRON_TEXT_DOMAIN), "param_name" => "view", "value" => array(_x("Grid", 'VC', IRON_TEXT_DOMAIN) => 'video_grid', _x("List", 'VC', IRON_TEXT_DOMAIN) => 'video_list'), "description" => '', 'save_always' => true), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => _x("Call To Action Title", 'VC', IRON_TEXT_DOMAIN), "param_name" => "action_title", "value" => '', "description" => ''), array("type" => "post_select", "post_type" => "page", "holder" => "div", "class" => "", "heading" => _x("Call To Action Page", 'VC', IRON_TEXT_DOMAIN), "param_name" => "action_obj_id", "value" => '', "description" => ''), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => _x("Call To Action External Link", 'VC', IRON_TEXT_DOMAIN), "param_name" => "action_ext_link", "value" => '', "description" => ''), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => _x("CSS Animation", 'VC', IRON_TEXT_DOMAIN), "param_name" => "css_animation", "value" => $css_animations, "description" => '', 'save_always' => true))));
     vc_map(array("name" => _x("Photo Gallery", 'VC', IRON_TEXT_DOMAIN), "base" => "iron_featuredphotos", "class" => "", "icon" => "iron_vc_icon_photos", "category" => _x('IRON Widgets', 'VC', IRON_TEXT_DOMAIN), "params" => array(array("type" => "textfield", "holder" => "div", "class" => "", "heading" => _x("Title", 'VC', IRON_TEXT_DOMAIN), "param_name" => "title", "value" => "", "description" => ''), array("type" => "post_multiselect", "post_type" => "photo-album", "holder" => "div", "class" => "", "heading" => _x("Albums", 'VC', IRON_TEXT_DOMAIN), "param_name" => "albums", "value" => '', "description" => ''), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => _x("Gallery Layout", 'VC', IRON_TEXT_DOMAIN), "param_name" => "gallery_layout", "value" => array(_x("Fit photos within window height (Gallery bottom will be flat, some photos might be hidden)", 'VC', IRON_TEXT_DOMAIN) => 'window_height', _x("Fit photos within custom height (Gallery bottom will be flat, manually adjust gallery height)", 'VC', IRON_TEXT_DOMAIN) => 'custom_height', _x("Show all photos (Gallery bottom might not be flat)", 'VC', IRON_TEXT_DOMAIN) => 'show_all'), "description" => '', 'save_always' => true), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => _x("Gallery Height", 'VC', IRON_TEXT_DOMAIN), "param_name" => "gallery_height", "value" => '', "description" => 'Height in pixels. Leave empty to use window height', 'dependency' => array('element' => 'gallery_layout', 'value' => 'custom_height')), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => _x("Call To Action Title", 'VC', IRON_TEXT_DOMAIN), "param_name" => "action_title", "value" => '', "description" => ''), array("type" => "post_select", "post_type" => "page", "holder" => "div", "class" => "", "heading" => _x("Call To Action Page", 'VC', IRON_TEXT_DOMAIN), "param_name" => "action_obj_id", "value" => '', "description" => ''), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => _x("Call To Action External Link", 'VC', IRON_TEXT_DOMAIN), "param_name" => "action_ext_link", "value" => '', "description" => ''), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => _x("CSS Animation", 'VC', IRON_TEXT_DOMAIN), "param_name" => "css_animation", "value" => $css_animations, "description" => '', 'save_always' => true))));
     vc_map(array("name" => _x("Event - List", 'VC', IRON_TEXT_DOMAIN), "base" => "iron_events", "class" => "", "icon" => "iron_vc_icon_events", "category" => _x('IRON Widgets', 'VC', IRON_TEXT_DOMAIN), "params" => array(array("type" => "textfield", "holder" => "div", "class" => "", "heading" => _x("Title", 'VC', IRON_TEXT_DOMAIN), "param_name" => "title", "value" => ""), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => _x("Number of events to show", 'VC', IRON_TEXT_DOMAIN), "param_name" => "number", "value" => '', "description" => ''), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => _x("Filter by", 'VC', IRON_TEXT_DOMAIN), "param_name" => "filter", "value" => array(_x("Upcoming Events", 'VC', IRON_TEXT_DOMAIN) => 'upcoming', _x("Past Events", 'VC', IRON_TEXT_DOMAIN) => 'past'), "description" => '', 'save_always' => true), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => _x("Call To Action Title", 'VC', IRON_TEXT_DOMAIN), "param_name" => "action_title", "value" => '', "description" => ''), array("type" => "post_select", "post_type" => "page", "holder" => "div", "class" => "", "heading" => _x("Call To Action Page", 'VC', IRON_TEXT_DOMAIN), "param_name" => "action_obj_id", "value" => '', "description" => ''), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => _x("Call To Action External Link", 'VC', IRON_TEXT_DOMAIN), "param_name" => "action_ext_link", "value" => '', "description" => ''), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => _x("CSS Animation", 'VC', IRON_TEXT_DOMAIN), "param_name" => "css_animation", "value" => $css_animations, "description" => '', 'save_always' => true))));
     vc_map(array("name" => _x("Event - Single", 'VC', IRON_TEXT_DOMAIN), "base" => "iron_event", "class" => "", "icon" => "iron_vc_icon_event", "category" => _x('IRON Widgets', 'VC', IRON_TEXT_DOMAIN), "params" => array(array("type" => "textfield", "holder" => "div", "class" => "", "heading" => _x("Title", 'VC', IRON_TEXT_DOMAIN), "param_name" => "title", "value" => ""), array("type" => "post_select", "post_type" => "event", "holder" => "div", "class" => "", "heading" => _x("Select an event", 'VC', IRON_TEXT_DOMAIN), "param_name" => "event", "value" => '', "description" => ''), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => _x("Call To Action Title", 'VC', IRON_TEXT_DOMAIN), "param_name" => "action_title", "value" => '', "description" => ''), array("type" => "post_select", "post_type" => "page", "holder" => "div", "class" => "", "heading" => _x("Call To Action Page", 'VC', IRON_TEXT_DOMAIN), "param_name" => "action_obj_id", "value" => '', "description" => ''), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => _x("Call To Action External Link", 'VC', IRON_TEXT_DOMAIN), "param_name" => "action_ext_link", "value" => '', "description" => ''), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => _x("CSS Animation", 'VC', IRON_TEXT_DOMAIN), "param_name" => "css_animation", "value" => $css_animations, "description" => '', 'save_always' => true))));
     vc_map(array("name" => _x("Twitter", 'VC', IRON_TEXT_DOMAIN), "base" => "iron_twitter", "class" => "", "icon" => "iron_vc_icon_twitter", "category" => _x('IRON Widgets', 'VC', IRON_TEXT_DOMAIN), "params" => array(array("type" => "textfield", "holder" => "div", "class" => "", "heading" => _x("Title", 'VC', IRON_TEXT_DOMAIN), "param_name" => "title", "value" => "", "description" => ''), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => _x('Screen Name (ex: @IronTemplates)', 'VC', IRON_TEXT_DOMAIN), "param_name" => "screen_name", "value" => '', "description" => ''), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => _x("Call To Action Title", 'VC', IRON_TEXT_DOMAIN), "param_name" => "action_title", "value" => '', "description" => ''), array("type" => "post_select", "post_type" => "page", "holder" => "div", "class" => "", "heading" => _x("Call To Action Page", 'VC', IRON_TEXT_DOMAIN), "param_name" => "action_obj_id", "value" => '', "description" => ''), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => _x("Call To Action External Link", 'VC', IRON_TEXT_DOMAIN), "param_name" => "action_ext_link", "value" => '', "description" => ''), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => _x("CSS Animation", 'VC', IRON_TEXT_DOMAIN), "param_name" => "css_animation", "value" => $css_animations, "description" => '', 'save_always' => true))));
     vc_map(array("name" => _x("Title Divider", 'VC', IRON_TEXT_DOMAIN), "base" => "iron_divider", "class" => "", "icon" => "iron_vc_icon_title_divider", "category" => _x('IRON Widgets', 'VC', IRON_TEXT_DOMAIN), "params" => array(array("type" => "textfield", "holder" => "div", "class" => "", "heading" => _x("Title", 'VC', IRON_TEXT_DOMAIN), "param_name" => "title", "value" => "", "description" => ''), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => _x("Heading Size", 'VC', IRON_TEXT_DOMAIN), "param_name" => "heading", "value" => array(_x("Small", 'VC', IRON_TEXT_DOMAIN) => '3', _x("Big", 'VC', IRON_TEXT_DOMAIN) => '1'), "description" => '', 'save_always' => true), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => _x("CSS Animation", 'VC', IRON_TEXT_DOMAIN), "param_name" => "css_animation", "value" => $css_animations, "description" => '', 'save_always' => true))));
     vc_map(array('name' => __('Button', 'js_composer'), 'base' => 'iron_button', 'icon' => 'iron_vc_icon_iosslider', 'category' => _x('IRON Widgets', 'VC', IRON_TEXT_DOMAIN), 'params' => array(array("type" => "textfield", "holder" => "div", "class" => "", "heading" => _x("Text", 'VC', IRON_TEXT_DOMAIN), "param_name" => "text", "value" => '', "description" => ''), array("param_name" => "text_align", "type" => "dropdown", "heading" => _x('Text Align', 'VC', IRON_TEXT_DOMAIN), "value" => array(_x('Left', 'VC', IRON_TEXT_DOMAIN) => 'left', _x('Center', 'VC', IRON_TEXT_DOMAIN) => 'center', _x('Right', 'VC', IRON_TEXT_DOMAIN) => 'right'), 'save_always' => true), array("type" => "post_select", "post_type" => "page", "holder" => "div", "class" => "", "heading" => _x("Link Page", 'VC', IRON_TEXT_DOMAIN), "param_name" => "link_page", "value" => '', "description" => ''), array("type" => "post_select", "post_type" => "product", "holder" => "div", "class" => "", "heading" => _x("Link Product", 'VC', IRON_TEXT_DOMAIN), "param_name" => "link_product", "value" => '', "description" => ''), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => _x("Link External", 'VC', IRON_TEXT_DOMAIN), "param_name" => "link_external", "value" => '', "description" => ''), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => _x("Border Width (px)", 'VC', IRON_TEXT_DOMAIN), "param_name" => "border_width", "value" => '', "description" => ''), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => _x("Border Radius (px)", 'VC', IRON_TEXT_DOMAIN), "param_name" => "border_radius", "value" => '', "description" => ''), array("type" => "colorpicker", "heading" => _x("Border Color", 'VC', IRON_TEXT_DOMAIN), "param_name" => "border_color", "description" => ''), array("type" => "colorpicker", "heading" => _x("Background Color", 'VC', IRON_TEXT_DOMAIN), "param_name" => "background_color", "description" => ''), array("type" => "colorpicker", "heading" => _x("Text Color", 'VC', IRON_TEXT_DOMAIN), "param_name" => "text_color", "description" => ''), array("type" => "colorpicker", "heading" => _x("Hover Border Color", 'VC', IRON_TEXT_DOMAIN), "param_name" => "hover_border_color", "description" => ''), array("type" => "colorpicker", "heading" => _x("Hover Background Color", 'VC', IRON_TEXT_DOMAIN), "param_name" => "hover_bg_color", "description" => ''), array("type" => "colorpicker", "heading" => _x("Hover Text Color", 'VC', IRON_TEXT_DOMAIN), "param_name" => "hover_text_color", "description" => ''))));
     if (function_exists('is_plugin_active') && is_plugin_active('nmedia-mailchimp-widget/nm_mailchimp.php')) {
         $results = $wpdb->get_results('SELECT form_id, form_name FROM ' . $wpdb->prefix . 'nm_mc_forms ORDER BY form_name');
         $newsletters = array();
         foreach ($results as $result) {
             $name = !empty($result->form_name) ? $result->form_name : $result->form_id;
             $id = $result->form_id;
             $newsletters[$name] = $id;
         }
         vc_map(array("name" => _x("Newsletter", 'VC', IRON_TEXT_DOMAIN), "base" => "iron_newsletter", "class" => "", "icon" => "iron_vc_icon_newsletter", "category" => _x('IRON Widgets', 'VC', IRON_TEXT_DOMAIN), "params" => array(array("type" => "textfield", "holder" => "div", "class" => "", "heading" => _x("Title", 'VC', IRON_TEXT_DOMAIN), "param_name" => "title", "value" => _x("Newsletter", 'VC', IRON_TEXT_DOMAIN), "description" => ''), array("type" => "textarea", "holder" => "div", "class" => "", "heading" => _x("Description", 'VC', IRON_TEXT_DOMAIN), "param_name" => "description", "value" => _x("Get monthly fresh updates in your mailbox", 'VC', IRON_TEXT_DOMAIN), "description" => ''), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => _x("Newsletters", 'VC', IRON_TEXT_DOMAIN), "param_name" => "fid", "value" => $newsletters, "description" => '', 'save_always' => true), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => _x("CSS Animation", 'VC', IRON_TEXT_DOMAIN), "param_name" => "css_animation", "value" => $css_animations, "description" => '', 'save_always' => true))));
     }
 }
Exemplo n.º 19
0
function wpb_add_param($shortcode, $attributes)
{
    vc_add_param($shortcode, $attributes);
}
Exemplo n.º 20
0
 function parallax_init()
 {
     $group_name = 'Background';
     $group_effects = 'Effect';
     if (function_exists('vc_remove_param')) {
         //vc_remove_param('vc_row','bg_image');
         vc_remove_param('vc_row', 'bg_image_repeat');
     }
     $pluginname = dirname(dirname(plugin_basename(__FILE__)));
     $patterns_path = realpath(dirname(plugin_dir_path(__FILE__)) . '/assets/images/patterns');
     $patterns_list = glob($patterns_path . '/*.*');
     $patterns = array();
     foreach ($patterns_list as $pattern) {
         $patterns[basename($pattern)] = plugins_url() . '/' . $pluginname . '/assets/images/patterns/' . basename($pattern);
     }
     /*	
     			$separator_path = realpath(dirname(plugin_dir_path(__FILE__)).'/assets/images/separator');
     			$separator_list = glob($separator_path.'/*.*');
     			$separator_imgs = array();
     			
     			foreach($separator_list as $separator)
     				$separator_imgs[basename($separator)] = plugins_url().'/'.$pluginname.'/assets/images/separator/'.basename($separator);*/
     if (function_exists('vc_add_param')) {
         vc_add_param('vc_row', array("type" => "dropdown", "class" => "", "admin_label" => true, "heading" => __("Background Style", "ultimate_vc"), "param_name" => "bg_type", "value" => array(__("Default", "ultimate_vc") => "", __("Single Color", "ultimate_vc") => "bg_color", __("Gradient Color", "ultimate_vc") => "grad", __("Image / Parallax", "ultimate_vc") => "image", __("YouTube Video", "ultimate_vc") => "u_iframe", __("Hosted Video", "ultimate_vc") => "video"), "description" => __("Select the kind of background would you like to set for this row.", "ultimate_vc") . " " . __("Not sure?", "ultimate_vc") . " " . __("See Narrated", "ultimate_vc") . " <a href='https://www.youtube.com/watch?v=Qxs8R-uaMWk&list=PL1kzJGWGPrW981u5caHy6Kc9I1bG1POOx' target='_blank'>" . __("Video Tutorials", "ultimate_vc") . "</a>", "group" => $group_name));
         vc_add_param('vc_row', array("type" => "gradient", "class" => "", "heading" => __("Gradient Type", "ultimate_vc"), "param_name" => "bg_grad", "description" => __('At least two color points should be selected.', 'ultimate_vc') . ' <a href="https://www.youtube.com/watch?v=yE1M4AKwS44" target="_blank">' . __('Video Tutorial', 'ultimate_vc') . '</a>', "dependency" => array("element" => "bg_type", "value" => array("grad")), "group" => $group_name));
         vc_add_param('vc_row', array("type" => "colorpicker", "class" => "", "heading" => __("Background Color", "ultimate_vc"), "param_name" => "bg_color_value", "dependency" => array("element" => "bg_type", "value" => array("bg_color")), "group" => $group_name));
         vc_add_param("vc_row", array("type" => "dropdown", "class" => "", "heading" => __("Parallax Style", "ultimate_vc"), "param_name" => "parallax_style", "value" => array(__("No Parallax", "ultimate_vc") => "", __("Simple Background Image", "ultimate_vc") => "vcpb-default", __("Auto Moving Background", "ultimate_vc") => "vcpb-animated", __("Vertical Parallax On Scroll", "ultimate_vc") => "vcpb-vz-jquery", __("Horizontal Parallax On Scroll", "ultimate_vc") => "vcpb-hz-jquery", __("Interactive Parallax On Mouse Hover", "ultimate_vc") => "vcpb-fs-jquery", __("Multilayer Vertical Parallax", "ultimate_vc") => "vcpb-mlvp-jquery"), "description" => __("Select the kind of style you like for the background.", "ultimate_vc"), "dependency" => array("element" => "bg_type", "value" => array("image")), "group" => $group_name));
         vc_add_param('vc_row', array("type" => "ult_img_single", "class" => "", "heading" => __("Background Image", "ultimate_vc"), "param_name" => "bg_image_new", "value" => "", "description" => __("Upload or select background image from media gallery.", "ultimate_vc"), "dependency" => array("element" => "parallax_style", "value" => array("vcpb-default", "vcpb-animated", "vcpb-vz-jquery", "vcpb-hz-jquery")), "group" => $group_name));
         vc_add_param('vc_row', array("type" => "attach_images", "class" => "", "heading" => __("Layer Images", "ultimate_vc"), "param_name" => "layer_image", "value" => "", "description" => __("Upload or select background images from media gallery.", "ultimate_vc"), "dependency" => array("element" => "parallax_style", "value" => array("vcpb-fs-jquery", "vcpb-mlvp-jquery")), "group" => $group_name));
         vc_add_param('vc_row', array("type" => "dropdown", "class" => "", "heading" => __("Background Image Repeat", "ultimate_vc"), "param_name" => "bg_image_repeat", "value" => array(__("Repeat", "ultimate_vc") => "", __("Repeat X", "ultimate_vc") => "repeat-x", __("Repeat Y", "ultimate_vc") => "repeat-y", __("No Repeat", "ultimate_vc") => "no-repeat"), "description" => __("Options to control repeatation of the background image.", "ultimate_vc") . " " . __("Learn on", "ultimate_vc") . " <a href='http://www.w3schools.com/cssref/playit.asp?filename=playcss_background-repeat' target='_blank'>" . __("W3School", "ultimate_vc") . "</a>", "dependency" => array("element" => "parallax_style", "value" => array("vcpb-default", "vcpb-fix", "vcpb-vz-jquery", "vcpb-hz-jquery")), "group" => $group_name));
         vc_add_param('vc_row', array("type" => "dropdown", "class" => "", "heading" => __("Background Image Size", "ultimate_vc"), "param_name" => "bg_image_size", "value" => array(__("Cover - Image to be as large as possible", "ultimate_vc") => "", __("Contain - Image will try to fit inside the container area", "ultimate_vc") => "contain", __("Initial", "ultimate_vc") => "initial"), "description" => __("Options to control repeatation of the background image.", "ultimate_vc") . " " . __("Learn on", "ultimate_vc") . " <a href='http://www.w3schools.com/cssref/playit.asp?filename=playcss_background-size&preval=50%25' target='_blank'>" . __("W3School", "ultimate_vc") . "</a>", "dependency" => array("element" => "parallax_style", "value" => array("vcpb-default", "vcpb-animated", "vcpb-fix", "vcpb-vz-jquery", "vcpb-hz-jquery")), "group" => $group_name));
         vc_add_param('vc_row', array("type" => "textfield", "class" => "", "heading" => __("Custom Background Image Size", "ultimate_vc"), "param_name" => "bg_cstm_size", "value" => "", "description" => __("You can use initial, inherit or any number with px, em, %, etc. Example- 100px 100px", "ultimate_vc"), "dependency" => array("element" => "bg_image_size", "value" => array("cstm")), "group" => $group_name));
         vc_add_param('vc_row', array("type" => "dropdown", "class" => "", "heading" => __("Scroll Effect", "ultimate_vc"), "param_name" => "bg_img_attach", "value" => array(__("Move with the content", "ultimate_vc") => "", __("Fixed at its position", "ultimate_vc") => "fixed"), "description" => __("Options to set whether a background image is fixed or scroll with the rest of the page.", "ultimate_vc"), "dependency" => array("element" => "parallax_style", "value" => array("vcpb-default", "vcpb-animated", "vcpb-hz-jquery", "vcpb-vz-jquery")), "group" => $group_name));
         vc_add_param('vc_row', array("type" => "number", "class" => "", "heading" => __("Parallax Speed", "ultimate_vc"), "param_name" => "parallax_sense", "value" => "", "max" => "100", "description" => __("Control speed of parallax. Enter value between 1 to 100 (Default 30)", "ultimate_vc"), "dependency" => array("element" => "parallax_style", "value" => array("vcpb-vz-jquery", "vcpb-animated", "vcpb-hz-jquery", "vcpb-vs-jquery", "vcpb-hs-jquery", "vcpb-fs-jquery", "vcpb-mlvp-jquery")), "group" => $group_name));
         vc_add_param('vc_row', array("type" => "textfield", "class" => "", "heading" => __("Background Image Posiiton", "ultimate_vc"), "param_name" => "bg_image_posiiton", "value" => "", "description" => __("You can use any number with px, em, %, etc. Example- 100px 100px.", "ultimate_vc"), "dependency" => array("element" => "parallax_style", "value" => array("vcpb-default", "vcpb-fix")), "group" => $group_name));
         vc_add_param('vc_row', array("type" => "dropdown", "class" => "", "heading" => __("Animation Direction", "ultimate_vc"), "param_name" => "animation_direction", "value" => array(__("Left to Right", "ultimate_vc") => "", __("Right to Left", "ultimate_vc") => "right-animation", __("Top to Bottom", "ultimate_vc") => "top-animation", __("Bottom to Top", "ultimate_vc") => "bottom-animation"), "dependency" => array("element" => "parallax_style", "value" => array("vcpb-animated")), "group" => $group_name));
         vc_add_param('vc_row', array("type" => "dropdown", "class" => "", "heading" => __("Background Repeat", "ultimate_vc"), "param_name" => "animation_repeat", "value" => array(__("Repeat", "ultimate_vc") => "", __("Repeat X", "ultimate_vc") => "repeat-x", __("Repeat Y", "ultimate_vc") => "repeat-y"), "dependency" => array("element" => "parallax_style", "value" => array("vcpb-animated")), "group" => $group_name));
         vc_add_param('vc_row', array("type" => "textfield", "class" => "", "heading" => __("Link to the video in MP4 Format", "ultimate_vc"), "param_name" => "video_url", "value" => "", "dependency" => array("element" => "bg_type", "value" => array("video")), "group" => $group_name));
         vc_add_param('vc_row', array("type" => "textfield", "class" => "", "heading" => __("Link to the video in WebM / Ogg Format", "ultimate_vc"), "param_name" => "video_url_2", "value" => "", "description" => __("IE, Chrome & Safari", "ultimate_vc") . " <a href='http://www.w3schools.com/html/html5_video.asp' target='_blank'>" . __("support", "ultimate_vc") . "</a> " . __("MP4 format, while Firefox & Opera prefer WebM / Ogg formats.", "ultimate_vc") . " " . __("You can upload the video through", "ultimate_vc") . " <a href='" . home_url() . "/wp-admin/media-new.php' target='_blank'>" . __("WordPress Media Library", "ultimate_vc") . "</a>.", "dependency" => array("element" => "bg_type", "value" => array("video")), "group" => $group_name));
         vc_add_param('vc_row', array("type" => "textfield", "class" => "", "heading" => __("Enter YouTube URL of the Video", "ultimate_vc"), "param_name" => "u_video_url", "value" => "", "description" => __("Enter YouTube url. Example - YouTube (https://www.youtube.com/watch?v=tSqJIIcxKZM) ", "ultimate_vc"), "dependency" => array("element" => "bg_type", "value" => array("u_iframe")), "group" => $group_name));
         vc_add_param('vc_row', array("type" => "checkbox", "class" => "", "heading" => __("Extra Options", "ultimate_vc"), "param_name" => "video_opts", "value" => array(__("Loop", "ultimate_vc") => "loop", __("Muted", "ultimate_vc") => "muted"), "dependency" => array("element" => "bg_type", "value" => array("video", "u_iframe")), "group" => $group_name));
         vc_add_param('vc_row', array("type" => "ult_img_single", "class" => "", "heading" => __("Placeholder Image", "ultimate_vc"), "param_name" => "video_poster", "value" => "", "description" => __("Placeholder image is displayed in case background videos are restricted (Ex - on iOS devices).", "ultimate_vc"), "dependency" => array("element" => "bg_type", "value" => array("video", "u_iframe")), "group" => $group_name));
         vc_add_param('vc_row', array("type" => "number", "class" => "", "heading" => __("Start Time", "ultimate_vc"), "param_name" => "u_start_time", "value" => "", "suffix" => "seconds", "dependency" => array("element" => "bg_type", "value" => array("u_iframe")), "group" => $group_name));
         vc_add_param('vc_row', array("type" => "number", "class" => "", "heading" => __("Stop Time", "ultimate_vc"), "param_name" => "u_stop_time", "value" => "", "suffix" => "seconds", "description" => __("You may start / stop the video at any point you would like.", "ultimate_vc"), "dependency" => array("element" => "bg_type", "value" => array("u_iframe")), "group" => $group_name));
         vc_add_param('vc_row', array("type" => "ult_switch", "class" => "", "heading" => __("Play video only when in viewport", "ultimate_vc"), "param_name" => "viewport_vdo", "value" => "", "options" => array("viewport_play" => array("label" => "", "on" => __("Yes", "ultimate_vc"), "off" => __("No", "ultimate_vc"))), "description" => __("Video will be played only when user is on the particular screen position. Once user scroll away, the video will pause.", "ultimate_vc"), "dependency" => array("element" => "bg_type", "value" => array("video", "u_iframe")), "group" => $group_name));
         vc_add_param('vc_row', array("type" => "ult_switch", "class" => "", "heading" => __("Display Controls", "ultimate_vc"), "param_name" => "enable_controls", "value" => "", "options" => array("display_control" => array("label" => "", "on" => __("Yes", "ultimate_vc"), "off" => __("No", "ultimate_vc"))), "description" => __("Display play / pause controls for the video on bottom right position.", "ultimate_vc"), "dependency" => array("element" => "bg_type", "value" => array("video")), "group" => $group_name));
         vc_add_param('vc_row', array("type" => "colorpicker", "class" => "", "heading" => __("Color of Controls Icon", "ultimate_vc"), "param_name" => "controls_color", "dependency" => array("element" => "enable_controls", "value" => array("display_control")), "group" => $group_name));
         vc_add_param('vc_row', array("type" => "dropdown", "class" => "", "heading" => __("Background Override (Read Description)", "ultimate_vc"), "param_name" => "bg_override", "value" => array(__("Default Width", "ultimate_vc") => "", __("Apply 1st parent element's width", "ultimate_vc") => "1", __("Apply 2nd parent element's width", "ultimate_vc") => "2", __("Apply 3rd parent element's width", "ultimate_vc") => "3", __("Apply 4th parent element's width", "ultimate_vc") => "4", __("Apply 5th parent element's width", "ultimate_vc") => "5", __("Apply 6th parent element's width", "ultimate_vc") => "6", __("Apply 7th parent element's width", "ultimate_vc") => "7", __("Apply 8th parent element's width", "ultimate_vc") => "8", __("Apply 9th parent element's width", "ultimate_vc") => "9", __("Full Width", "ultimate_vc") => "full", __("Maximum Full Width", "ultimate_vc") => "ex-full", __("Browser Full Dimension", "ultimate_vc") => "browser_size"), "description" => __("By default, the background will be given to the Visual Composer row. However, in some cases depending on your theme's CSS - it may not fit well to the container you are wishing it would. In that case you will have to select the appropriate value here that gets you desired output..", "ultimate_vc"), "dependency" => array("element" => "bg_type", "value" => array("u_iframe", "image", "video", "grad", "bg_color", "animated")), "group" => $group_name));
         vc_add_param('vc_row', array("type" => "ult_switch", "class" => "", "heading" => __("Activate on Mobile", "ultimate_vc"), "param_name" => "disable_on_mobile_img_parallax", "value" => "", "options" => array("disable_on_mobile_img_parallax_value" => array("label" => "", "on" => __("Yes", "ultimate_vc"), "off" => __("No", "ultimate_vc"))), "group" => $group_name, "dependency" => array("element" => "parallax_style", "value" => array("vcpb-animated", "vcpb-vz-jquery", "vcpb-hz-jquery", "vcpb-fs-jquery", "vcpb-mlvp-jquery"))));
         vc_add_param('vc_row', array("type" => "ult_switch", "class" => "", "heading" => __("Easy Parallax", "ultimate_vc"), "param_name" => "parallax_content", "value" => "", "options" => array("parallax_content_value" => array("label" => "", "on" => __("Yes", "ultimate_vc"), "off" => __("No", "ultimate_vc"))), "group" => $group_effects, 'edit_field_class' => 'uvc-divider last-uvc-divider vc_column vc_col-sm-12', "description" => __("If enabled, the elements inside row - will move slowly as user scrolls.", "ultimate_vc")));
         vc_add_param('vc_row', array("type" => "textfield", "class" => "", "heading" => __("Parallax Speed", "ultimate_vc"), "param_name" => "parallax_content_sense", "value" => "", "group" => $group_effects, "description" => __("Enter value between 0 to 100 (Default 30)", "ultimate_vc"), "dependency" => array("element" => "parallax_content", "value" => array("parallax_content_value"))));
         vc_add_param('vc_row', array("type" => "ult_switch", "class" => "", "heading" => __("Fade Effect on Scroll", "ultimate_vc"), "param_name" => "fadeout_row", "value" => "", "options" => array("fadeout_row_value" => array("label" => "", "on" => __("Yes", "ultimate_vc"), "off" => __("No", "ultimate_vc"))), "group" => $group_effects, 'edit_field_class' => 'uvc-divider last-uvc-divider vc_column vc_col-sm-12', "description" => __("If enabled, the the content inside row will fade out slowly as user scrolls down.", "ultimate_vc")));
         vc_add_param('vc_row', array("type" => "number", "class" => "", "heading" => __("Viewport Position", "ultimate_vc"), "param_name" => "fadeout_start_effect", "suffix" => "%", "value" => "", "group" => $group_effects, "description" => __("The area of screen from top where fade out effect will take effect once the row is completely inside that area. (Default 30)", "ultimate_vc"), "dependency" => array("element" => "fadeout_row", "value" => array("fadeout_row_value"))));
         /*vc_add_param('vc_row',array(
         				"type" => "ult_switch",
         				"class" => "",
         				"heading" => __("Activate Parallax on Mobile", "upb_parallax"),
         				"param_name" => "disable_on_mobile",
         				//"admin_label" => true,
         				"value" => "",
         				"options" => array(
         						"enable_on_mobile_value" => array(
         							"label" => "",
         							"on" => "Yes",
         							"off" => "No",
         						)
         					),
         				"group" => $group_effects,
         				
         			)
         		);*/
         vc_add_param('vc_row', array('type' => 'ult_switch', 'heading' => __('Enable Overlay', 'ultimate_vc'), 'param_name' => 'enable_overlay', 'value' => '', 'options' => array('enable_overlay_value' => array('label' => '', 'on' => __('Yes', 'ultimate_vc'), 'off' => __('No', 'ultimate_vc'))), 'edit_field_class' => 'uvc-divider last-uvc-divider vc_column vc_col-sm-12', 'group' => $group_effects));
         vc_add_param('vc_row', array('type' => 'colorpicker', 'heading' => __('Color', 'ultimate_vc'), 'param_name' => 'overlay_color', 'value' => '', 'group' => $group_effects, 'dependency' => array('element' => 'enable_overlay', 'value' => array('enable_overlay_value')), 'description' => __('Select RGBA values or opacity will be set to 20% by default.', 'ultimate_vc')));
         vc_add_param('vc_row', array('type' => 'radio_image_box', 'heading' => __('Pattern', 'ultimate_vc'), 'param_name' => 'overlay_pattern', 'value' => '', 'options' => $patterns, 'css' => array('width' => '40px', 'height' => '35px', 'background-repeat' => 'repeat', 'background-size' => 'cover'), 'group' => $group_effects, 'dependency' => array('element' => 'enable_overlay', 'value' => array('enable_overlay_value'))));
         vc_add_param('vc_row', array('type' => 'number', 'heading' => __('Pattern Opacity', 'ultimate_vc'), 'param_name' => 'overlay_pattern_opacity', 'value' => '', 'max' => '100', 'suffix' => '%', 'group' => $group_effects, 'dependency' => array('element' => 'enable_overlay', 'value' => array('enable_overlay_value')), 'description' => __('Enter value between 0 to 100 (0 is maximum transparency, while 100 is minimum & default is 80)', 'ultimate_vc'), 'edit_field_class' => 'vc_column vc_col-sm-4'));
         vc_add_param('vc_row', array('type' => 'number', 'heading' => __('Pattern Size', 'ultimate_vc'), 'param_name' => 'overlay_pattern_size', 'value' => '', 'suffix' => 'px', 'group' => $group_effects, 'dependency' => array('element' => 'enable_overlay', 'value' => array('enable_overlay_value')), 'description' => __('This is optional; sets the size of the pattern image manually.', 'ultimate_vc'), 'edit_field_class' => 'vc_column vc_col-sm-4'));
         vc_add_param('vc_row', array('type' => 'dropdown', 'heading' => __('Pattern Scroll Effect', 'ultimate_vc'), 'param_name' => 'overlay_pattern_attachment', 'value' => array(__('Move with the Content', 'ultimate_vc') => '', __('Fixed at its position', 'ultimate_vc') => 'fixed'), 'group' => $group_effects, 'dependency' => array('element' => 'enable_overlay', 'value' => array('enable_overlay_value')), 'edit_field_class' => 'vc_column vc_col-sm-4'));
         vc_add_param('vc_row', array('type' => 'checkbox', 'heading' => __('Fancy Multi Color Overlay', 'ultimate_vc'), 'param_name' => 'multi_color_overlay', 'value' => array(__('Enable', 'ultimate_vc') => 'uvc-multi-color-bg'), 'group' => $group_effects, 'dependency' => array('element' => 'enable_overlay', 'value' => array('enable_overlay_value')), 'edit_field_class' => 'vc_column vc_col-sm-4 clear'));
         vc_add_param('vc_row', array('type' => 'number', 'heading' => __('Multi Color Overlay Opacity', 'ultimate_vc'), 'param_name' => 'multi_color_overlay_opacity', 'value' => '', 'suffix' => '%', 'group' => $group_effects, 'dependency' => array('element' => 'multi_color_overlay', 'value' => array('uvc-multi-color-bg')), 'edit_field_class' => 'vc_column vc_col-sm-8', 'description' => __('Default 60', 'ultimate_vc')));
         vc_add_param('vc_row', array('type' => 'ult_switch', 'heading' => __('Seperator ', 'ultimate_vc'), 'param_name' => 'seperator_enable', 'value' => '', 'options' => array('seperator_enable_value' => array('on' => __('Yes', 'ultimate_vc'), 'off' => __('No', 'ultimate_vc'))), 'edit_field_class' => 'uvc-divider last-uvc-divider vc_column vc_col-sm-12', 'group' => $group_effects));
         vc_add_param('vc_row', array('type' => 'dropdown', 'heading' => __('Type', 'ultimate_vc'), 'param_name' => 'seperator_type', 'value' => array(__('None', 'ultimate_vc') => '', __('Triangle', 'ultimate_vc') => 'triangle_svg_seperator', __('Big Triangle', 'ultimate_vc') => 'xlarge_triangle_seperator', __('Big Triangle Left', 'ultimate_vc') => 'xlarge_triangle_left_seperator', __('Big Triangle Right', 'ultimate_vc') => 'xlarge_triangle_right_seperator', __('Half Circle', 'ultimate_vc') => 'circle_svg_seperator', __('Curve Center', 'ultimate_vc') => 'xlarge_circle_seperator', __('Curve Left', 'ultimate_vc') => 'curve_up_seperator', __('Curve Right', 'ultimate_vc') => 'curve_down_seperator', __('Tilt Left', 'ultimate_vc') => 'tilt_left_seperator', __('Tilt Right', 'ultimate_vc') => 'tilt_right_seperator', __('Round Split', 'ultimate_vc') => 'round_split_seperator', __('Waves', 'ultimate_vc') => 'waves_seperator', __('Clouds', 'ultimate_vc') => 'clouds_seperator'), 'group' => $group_effects, 'dependency' => array('element' => 'seperator_enable', 'value' => array('seperator_enable_value')), 'edit_field_class' => 'uvc-divider-content-first vc_column vc_col-sm-12'));
         vc_add_param('vc_row', array('type' => 'dropdown', 'heading' => __('Position', 'ultimate_vc'), 'param_name' => 'seperator_position', 'value' => array(__('Top', 'ultimate_vc') => '', __('Bottom', 'ultimate_vc') => 'bottom_seperator', __('Top & Bottom', 'ultimate_vc') => 'top_bottom_seperator'), 'group' => $group_effects, 'dependency' => array('element' => 'seperator_enable', 'value' => array('seperator_enable_value')), 'edit_field_class' => 'uvc-divider-content-first vc_column vc_col-sm-12'));
         vc_add_param('vc_row', array('type' => 'number', 'heading' => __('Size', 'ultimate_vc'), 'param_name' => 'seperator_shape_size', 'value' => '', 'suffix' => 'px', 'group' => $group_effects, 'dependency' => array('element' => 'seperator_type', 'value' => array('triangle_seperator', 'circle_seperator', 'round_split_seperator')), 'description' => __('Default 40', 'ultimate_vc')));
         vc_add_param('vc_row', array('type' => 'number', 'heading' => __('Height', 'ultimate_vc'), 'param_name' => 'seperator_svg_height', 'value' => '', 'suffix' => 'px', 'group' => $group_effects, 'dependency' => array('element' => 'seperator_type', 'value' => array('xlarge_triangle_seperator', 'curve_up_seperator', 'curve_down_seperator', 'waves_seperator', 'clouds_seperator', 'xlarge_circle_seperator', 'triangle_svg_seperator', 'circle_svg_seperator', 'xlarge_triangle_left_seperator', 'xlarge_triangle_right_seperator', 'tilt_left_seperator', 'tilt_right_seperator')), 'description' => __('Default 60', 'ultimate_vc')));
         vc_add_param('vc_row', array('type' => 'colorpicker', 'heading' => __('Background', 'ultimate_vc'), 'param_name' => 'seperator_shape_background', 'value' => '', 'group' => $group_effects, 'dependency' => array('element' => 'seperator_type', 'value' => array('xlarge_triangle_seperator', 'triangle_seperator', 'circle_seperator', 'curve_up_seperator', 'curve_down_seperator', 'round_split_seperator', 'waves_seperator', 'clouds_seperator', 'xlarge_circle_seperator', 'triangle_svg_seperator', 'circle_svg_seperator', 'xlarge_triangle_left_seperator', 'xlarge_triangle_right_seperator', 'tilt_left_seperator', 'tilt_right_seperator')), 'description' => __('Mostly, this should be background color of your adjacent row section. (Default - White)', 'ultimate_vc')));
         vc_add_param('vc_row', array('type' => 'dropdown', 'heading' => __('Border', 'ultimate_vc'), 'param_name' => 'seperator_shape_border', 'value' => array(__('None', 'ultimate_vc') => '', __('Solid', 'ultimate_vc') => 'solid', __('Dotted', 'ultimate_vc') => 'dotted', __('Dashed', 'ultimate_vc') => 'dashed'), 'group' => $group_effects, 'dependency' => array('element' => 'seperator_type', 'value' => array('triangle_seperator', 'circle_seperator', 'round_split_seperator'))));
         vc_add_param('vc_row', array('type' => 'colorpicker', 'heading' => __('Border Color', 'ultimate_vc'), 'param_name' => 'seperator_shape_border_color', 'value' => '', 'group' => $group_effects, 'dependency' => array('element' => 'seperator_type', 'value' => array('triangle_seperator', 'circle_seperator', 'round_split_seperator'))));
         vc_add_param('vc_row', array('type' => 'number', 'heading' => __('Border Width', 'ultimate_vc'), 'param_name' => 'seperator_shape_border_width', 'value' => '', 'suffix' => 'px', 'group' => $group_effects, 'dependency' => array('element' => 'seperator_type', 'value' => array('triangle_seperator', 'circle_seperator', 'round_split_seperator')), 'edit_field_class' => 'uvc-divider-content-last vc_column vc_col-sm-12', 'description' => __('Default 1px', 'ultimate_vc')));
         vc_add_param('vc_row', array("type" => "dropdown", "class" => "", "heading" => __("Icon to display:", "ultimate_vc"), "param_name" => "icon_type", "value" => array(__("None", "ultimate_vc") => "", __("Font Icon Manager", "ultimate_vc") => "selector", __("Custom Image Icon", "ultimate_vc") => "custom"), 'group' => $group_effects, "description" => __("Use an existing font icon or upload a custom image.", "ultimate_vc"), 'dependency' => array('element' => 'seperator_enable', 'value' => array('seperator_enable_value'))));
         vc_add_param('vc_row', array("type" => "icon_manager", "class" => "", "heading" => __("Select Icon ", "ultimate_vc"), "param_name" => "icon", "value" => "", 'group' => $group_effects, "description" => __("Click and select icon of your choice. If you can't find the one that suits for your purpose", "ultimate_vc") . ", " . __("you can", "ultimate_vc") . " <a href='admin.php?page=font-icon-Manager' target='_blank'>" . __("add new here", "ultimate_vc") . "</a>.", "dependency" => array("element" => "icon_type", "value" => array("selector"))));
         vc_add_param('vc_row', array("type" => "number", "class" => "", "heading" => __("Size of Icon", "ultimate_vc"), "param_name" => "icon_size", "value" => '', "max" => 72, "suffix" => "px", 'group' => $group_effects, "description" => __("How big would you like it? (Default 32)", "ultimate_vc"), "dependency" => array("element" => "icon_type", "value" => array("selector"))));
         vc_add_param('vc_row', array("type" => "colorpicker", "class" => "", "heading" => __("Color", "ultimate_vc"), "param_name" => "icon_color", "value" => "", 'group' => $group_effects, "description" => __("Give it a nice paint!", "ultimate_vc"), "dependency" => array("element" => "icon_type", "value" => array("selector"))));
         vc_add_param('vc_row', array("type" => "dropdown", "class" => "", "heading" => __("Icon Style", "ultimate_vc"), "param_name" => "icon_style", "value" => array(__("Simple", "ultimate_vc") => "", __("Circle Background", "ultimate_vc") => "circle", __("Square Background", "ultimate_vc") => "square", __("Design your own", "ultimate_vc") => "advanced"), 'group' => $group_effects, "description" => __("We have given three quick preset if you are in a hurry. Otherwise, create your own with various options.", "ultimate_vc"), "dependency" => array("element" => "icon_type", "value" => array("selector"))));
         vc_add_param('vc_row', array("type" => "colorpicker", "class" => "", "heading" => __("Background Color", "ultimate_vc"), "param_name" => "icon_color_bg", "value" => "", 'group' => $group_effects, "description" => __("Select background color for icon.", "ultimate_vc"), "dependency" => array("element" => "icon_style", "value" => array("circle", "square", "advanced"))));
         vc_add_param('vc_row', array("type" => "dropdown", "class" => "", "heading" => __("Icon Border Style", "ultimate_vc"), "param_name" => "icon_border_style", "value" => array(__("None", "ultimate_vc") => "", __("Solid", "ultimate_vc") => "solid", __("Dashed", "ultimate_vc") => "dashed", __("Dotted", "ultimate_vc") => "dotted", __("Double", "ultimate_vc") => "double", __("Inset", "ultimate_vc") => "inset", __("Outset", "ultimate_vc") => "outset"), 'group' => $group_effects, "description" => __("Select the border style for icon.", "ultimate_vc"), "dependency" => array("element" => "icon_style", "value" => array("advanced"))));
         vc_add_param('vc_row', array("type" => "colorpicker", "class" => "", "heading" => __("Border Color", "ultimate_vc"), "param_name" => "icon_color_border", "value" => "", 'group' => $group_effects, "description" => __("Select border color for icon. (Default - #333333)", "ultimate_vc"), "dependency" => array("element" => "icon_border_style", "not_empty" => true)));
         vc_add_param('vc_row', array("type" => "number", "class" => "", "heading" => __("Border Width", "ultimate_vc"), "param_name" => "icon_border_size", "value" => '', "max" => 10, "suffix" => "px", 'group' => $group_effects, "description" => __("Thickness of the border. (Default - 1px)", "ultimate_vc"), "dependency" => array("element" => "icon_border_style", "not_empty" => true)));
         vc_add_param('vc_row', array("type" => "number", "class" => "", "heading" => __("Border Radius", "ultimate_vc"), "param_name" => "icon_border_radius", "value" => '', "max" => 500, "suffix" => "px", 'group' => $group_effects, "description" => __("0 pixel value will create a square border. As you increase the value, the shape convert in circle slowly. (Default 500).", "ultimate_vc"), "dependency" => array("element" => "icon_border_style", "not_empty" => true)));
         vc_add_param('vc_row', array("type" => "number", "class" => "", "heading" => __("Background Size", "ultimate_vc"), "param_name" => "icon_border_spacing", "value" => '', "max" => 500, "suffix" => "px", 'group' => $group_effects, "description" => __("Spacing from center of the icon till the boundary of border / background (Default - 50)", "ultimate_vc"), "dependency" => array("element" => "icon_style", "value" => array("advanced"))));
         vc_add_param('vc_row', array("type" => "ult_img_single", "class" => "", "heading" => __("Upload Image Icon:", "ultimate_vc"), "param_name" => "icon_img", "value" => "", 'group' => $group_effects, "description" => __("Upload the custom image icon.", "ultimate_vc"), "dependency" => array("element" => "icon_type", "value" => array("custom"))));
         vc_add_param('vc_row', array("type" => "number", "class" => "", "heading" => __("Image Width", "ultimate_vc"), "param_name" => "img_width", "value" => '', "max" => 512, "suffix" => "px", 'group' => $group_effects, "description" => __("Provide image width (Default - 48)", "ultimate_vc"), "dependency" => array("element" => "icon_type", "value" => array("custom"))));
         vc_add_param('vc_row', array('type' => 'ult_switch', 'heading' => __('Hide Row', 'ultimate_vc'), 'param_name' => 'ult_hide_row', 'value' => '', 'options' => array('ult_hide_row_value' => array('on' => __('Yes', 'ultimate_vc'), 'off' => __('No', 'ultimate_vc'))), 'edit_field_class' => 'uvc-divider last-uvc-divider vc_column vc_col-sm-12', 'group' => $group_effects));
         vc_add_param('vc_row', array('type' => 'ult_switch', 'heading' => '<i class="dashicons dashicons-welcome-view-site"></i> ' . __('Large Screen', 'ultimate_vc'), 'param_name' => 'ult_hide_row_large_screen', 'value' => '', 'options' => array('large_screen' => array('on' => __('Yes', 'ultimate_vc'), 'off' => __('No', 'ultimate_vc'))), 'group' => $group_effects, "dependency" => array("element" => "ult_hide_row", "value" => array("ult_hide_row_value")), 'edit_field_class' => 'vc_column vc_col-sm-4'));
         vc_add_param('vc_row', array('type' => 'ult_switch', 'heading' => '<i class="dashicons dashicons-desktop"></i> ' . __('Desktop', 'ultimate_vc'), 'param_name' => 'ult_hide_row_desktop', 'value' => '', 'options' => array('desktop' => array('on' => __('Yes', 'ultimate_vc'), 'off' => __('No', 'ultimate_vc'))), 'group' => $group_effects, "dependency" => array("element" => "ult_hide_row", "value" => array("ult_hide_row_value")), 'edit_field_class' => 'vc_column vc_col-sm-4'));
         vc_add_param('vc_row', array('type' => 'ult_switch', 'heading' => '<i class="dashicons dashicons-tablet" style="transform: rotate(90deg);"></i> ' . __('Tablet', 'ultimate_vc'), 'param_name' => 'ult_hide_row_tablet', 'value' => '', 'options' => array('tablet' => array('on' => __('Yes', 'ultimate_vc'), 'off' => __('No', 'ultimate_vc'))), 'group' => $group_effects, "dependency" => array("element" => "ult_hide_row", "value" => array("ult_hide_row_value")), 'edit_field_class' => 'vc_column vc_col-sm-4'));
         vc_add_param('vc_row', array('type' => 'ult_switch', 'heading' => '<i class="dashicons dashicons-tablet"></i> ' . __('Tablet Portrait', 'ultimate_vc'), 'param_name' => 'ult_hide_row_tablet_small', 'value' => '', 'options' => array('xs_tablet' => array('on' => __('Yes', 'ultimate_vc'), 'off' => __('No', 'ultimate_vc'))), 'group' => $group_effects, "dependency" => array("element" => "ult_hide_row", "value" => array("ult_hide_row_value")), 'edit_field_class' => 'vc_column vc_col-sm-4'));
         vc_add_param('vc_row', array('type' => 'ult_switch', 'heading' => '<i class="dashicons dashicons-smartphone"></i> ' . __('Mobile', 'ultimate_vc'), 'param_name' => 'ult_hide_row_mobile', 'value' => '', 'options' => array('mobile' => array('on' => __('Yes', 'ultimate_vc'), 'off' => __('No', 'ultimate_vc'))), 'group' => $group_effects, "dependency" => array("element" => "ult_hide_row", "value" => array("ult_hide_row_value")), 'edit_field_class' => 'vc_column vc_col-sm-4'));
         vc_add_param('vc_row', array('type' => 'ult_switch', 'heading' => '<i class="dashicons dashicons-smartphone" style="transform: rotate(90deg);"></i> ' . __('Mobile Landscape', 'ultimate_vc'), 'param_name' => 'ult_hide_row_mobile_large', 'value' => '', 'options' => array('xl_mobile' => array('on' => __('Yes', 'ultimate_vc'), 'off' => __('No', 'ultimate_vc'))), 'group' => $group_effects, "dependency" => array("element" => "ult_hide_row", "value" => array("ult_hide_row_value")), 'edit_field_class' => 'vc_column vc_col-sm-4'));
         vc_add_param('vc_row', array('type' => 'ult_param_heading', 'text' => __('In order for Effects below to work, you must select something except "default" in background tab.', 'ultimate_vc') . ' ' . __('May be single color.') . ' <br> ' . __('Screenshot', 'ultimate_vc') . ' - <a href="https://cloudup.com/cc1J8ZlcdZW" target="_blank">https://cloudup.com/cc1J8ZlcdZW</a>', 'param_name' => 'notification', 'edit_field_class' => 'ult-param-important-wrapper ult-dashicon vc_column vc_col-sm-12', 'group' => $group_effects));
     }
 }
Exemplo n.º 21
0
function porto_load_shortcodes()
{
    if (function_exists('vc_map')) {
        /* ---------------------------- */
        /* Customize Tabs, Tab
           /* ---------------------------- */
        vc_remove_param('vc_tabs', 'interval');
        vc_add_param('vc_tabs', array('type' => 'dropdown', 'heading' => __('Position', 'porto'), 'param_name' => 'position', 'value' => porto_vc_commons('tabs'), 'description' => __('Select the position of the tab header.', 'porto'), 'admin_label' => true));
        vc_add_param('vc_tab', array('type' => 'textfield', 'heading' => __('Font Awesome Icon or Icon Class', 'porto'), 'param_name' => 'icon', 'description' => __('Input font awesome icon or icon class. You can see <a target="_blank" href="http://fortawesome.github.io/Font-Awesome/icons/">Font Awesome Icons in here</a>.', 'porto')));
        /* ---------------------------- */
        /* Customize Tour
           /* ---------------------------- */
        vc_remove_param('vc_tour', 'interval');
        vc_add_param('vc_tour', array('type' => 'dropdown', 'heading' => __('Position', 'porto'), 'param_name' => 'position', 'value' => porto_vc_commons('tour'), 'description' => __('Select the position of the tab header.', 'porto'), 'admin_label' => true));
        /* ---------------------------- */
        /* Customize Separator
           /* ---------------------------- */
        vc_add_param('vc_separator', array('type' => 'checkbox', 'heading' => __('Show Gradient', 'porto'), 'param_name' => 'gradient', 'std' => 'yes', 'value' => array(__('Yes, please', 'js_composer') => 'yes')));
        vc_add_param('vc_separator', array('type' => 'dropdown', 'heading' => __('Gap Size', 'porto'), 'param_name' => 'gap', 'value' => porto_vc_commons('separator')));
        /* ---------------------------- */
        /* Customize Text Separator
           /* ---------------------------- */
        vc_add_param('vc_text_separator', array('type' => 'checkbox', 'heading' => __('Show Gradient', 'porto'), 'param_name' => 'gradient', 'std' => 'yes', 'value' => array(__('Yes, please', 'js_composer') => 'yes')));
        /* ---------------------------- */
        /* Customize Accordion
           /* ---------------------------- */
        vc_remove_param('vc_accordion', 'disable_keyboard');
        vc_add_param('vc_accordion', array('type' => 'dropdown', 'heading' => __('Type', 'porto'), 'param_name' => 'type', 'value' => porto_vc_commons('accordion')));
        vc_add_param('vc_accordion_tab', array('type' => 'textfield', 'heading' => __('Font Awesome Icon or Icon Class', 'porto'), 'param_name' => 'icon', 'description' => __('Input font awesome icon or icon class. You can see <a target="_blank" href="http://fortawesome.github.io/Font-Awesome/icons/">Font Awesome Icons in here</a>.', 'porto')));
        /* ---------------------------- */
        /* Customize Toggle
           /* ---------------------------- */
        vc_remove_param('vc_toggle', 'style');
        vc_remove_param('vc_toggle', 'color');
        vc_remove_param('vc_toggle', 'size');
        vc_add_param('vc_toggle', array('type' => 'checkbox', 'heading' => __('Hide Toggle Icon', 'porto'), 'param_name' => 'hide_toggle', 'value' => array(__('Hide toggle icon.', 'porto') => 'true'), 'description' => ''));
        vc_add_param('vc_toggle', array('type' => 'checkbox', 'heading' => __('View Option', 'porto'), 'param_name' => 'one_toggle', 'value' => array(__('Hide this toggle when open another toggle.', 'porto') => 'true'), 'description' => ''));
        vc_add_param('vc_toggle', array('type' => 'textfield', 'heading' => __('Font Awesome Icon or Icon Class', 'porto'), 'param_name' => 'icon', 'description' => __('Input font awesome icon or icon class. You can see <a target="_blank" href="http://fortawesome.github.io/Font-Awesome/icons/">Font Awesome Icons in here</a>.', 'porto')));
        /* ---------------------------- */
        /* Customize Buttons
           /* ---------------------------- */
        vc_add_param('vc_button', array('type' => 'checkbox', 'heading' => __('Disable', 'porto'), 'param_name' => 'disabled', 'value' => array(__('Disable button.', 'porto') => true)));
        vc_add_param('vc_button', array('type' => 'checkbox', 'heading' => __('Show as Label', 'porto'), 'param_name' => 'label', 'value' => array(__('Yes, please', 'js_composer') => 'yes')));
        /* ---------------------------- */
        /* Add Single Image Parameters
           /* ---------------------------- */
        vc_add_param('vc_single_image', array('type' => 'checkbox', 'heading' => __('LightBox', 'porto'), 'param_name' => 'lightbox', 'value' => array(__('Yes, please', 'js_composer') => true), 'dependency' => array('element' => 'img_link_large', 'not_empty' => true), 'description' => __('Check it if you want to link to the lightbox with the large image.', 'porto')));
        vc_add_param('vc_single_image', array('type' => 'checkbox', 'heading' => __('Show Zoom Icon', 'porto'), 'param_name' => 'zoom_icon', 'value' => array(__('Yes, please', 'js_composer') => true), 'dependency' => array('element' => 'img_link_large', 'not_empty' => true)));
        /* ---------------------------- */
        /* Customize Pie Chart
           /* ---------------------------- */
        vc_remove_param('vc_pie', 'color');
        // Used in 'Button', 'Call __( 'Blue', 'js_composer' )to Action', 'Pie chart' blocks
        $colors_arr = array(__('Grey', 'js_composer') => 'wpb_button', __('Blue', 'js_composer') => 'btn-primary', __('Turquoise', 'js_composer') => 'btn-info', __('Green', 'js_composer') => 'btn-success', __('Orange', 'js_composer') => 'btn-warning', __('Red', 'js_composer') => 'btn-danger', __('Black', 'js_composer') => 'btn-inverse');
        vc_add_param('vc_pie', array('type' => 'dropdown', 'heading' => __('Type', 'porto'), 'param_name' => 'type', 'value' => array(__('Custom', 'porto') => 'custom', __('Default', 'porto') => 'default'), 'description' => __('Select pie chart type.', 'porto'), 'admin_label' => true));
        vc_add_param('vc_pie', array('type' => 'dropdown', 'heading' => __('Bar color (default)', 'porto'), 'param_name' => 'color', 'value' => $colors_arr, 'description' => __('Select pie chart color.', 'js_composer'), 'admin_label' => true, 'dependency' => array('element' => 'type', 'value' => array('default')), 'param_holder_class' => 'vc_colored-dropdown'));
        vc_add_param('vc_pie', array('type' => 'textfield', 'heading' => __('Size', 'porto'), 'param_name' => 'size', 'std' => 175, 'dependency' => array('element' => 'type', 'value' => array('custom')), 'description' => __('Enter the size of the chart in px.', 'porto')));
        vc_add_param('vc_pie', array('type' => 'colorpicker', 'heading' => __('Track Color', 'porto'), 'param_name' => 'trackcolor', 'dependency' => array('element' => 'type', 'value' => array('custom')), 'description' => __('Choose the color of the track. Please clear this if you want to use the default color.', 'porto')));
        vc_add_param('vc_pie', array('type' => 'colorpicker', 'heading' => __('Bar color (custom)', 'porto'), 'param_name' => 'barcolor', 'dependency' => array('element' => 'type', 'value' => array('custom')), 'description' => __('Select pie chart color. Please clear this if you want to use the default color.', 'porto'), 'admin_label' => true));
        vc_add_param('vc_pie', array('type' => 'textfield', 'heading' => __('Animation Speed', 'porto'), 'param_name' => 'speed', 'std' => 2500, 'dependency' => array('element' => 'type', 'value' => array('custom')), 'description' => __('Enter the animation speed in milliseconds.', 'porto')));
        vc_add_param('vc_pie', array('type' => 'textfield', 'heading' => __('Line Width', 'porto'), 'param_name' => 'line', 'std' => 14, 'dependency' => array('element' => 'type', 'value' => array('custom')), 'description' => __('Enter the width of the line bar in px.', 'porto')));
        vc_add_param('vc_pie', array('type' => 'dropdown', 'heading' => __('Line Cap', 'porto'), 'param_name' => 'linecap', 'value' => array(__('Round', 'porto') => 'round', __('Square', 'porto') => 'square'), 'dependency' => array('element' => 'type', 'value' => array('custom')), 'description' => __('Choose how the ending of the bar line looks like.', 'porto')));
    }
}
Exemplo n.º 22
0
 /**
  * Tab Item
  */
 private function elementTabItem()
 {
     vc_add_param('vc_tab', array("type" => "textfield", "heading" => $this->l("Icon"), "param_name" => "tabicon", "value" => ''));
 }
Exemplo n.º 23
0
 public function add_params()
 {
     vc_add_param("vc_row", array("type" => "dropdown", "group" => __('Row Type', 'sitesao'), "class" => "", "heading" => "Type", 'std' => 'full_width', "param_name" => "wrap_type", "value" => array(__("Full Width", 'sitesao') => "full_width", __("In Container", 'sitesao') => "in_container")));
     vc_add_param("vc_row_inner", array("type" => "dropdown", "group" => __('Row Type', 'sitesao'), "class" => "", "heading" => "Type", "param_name" => "wrap_type", 'std' => 'full_width', "value" => array(__("Full Width", 'sitesao') => "full_width", __("In Container", 'sitesao') => "in_container")));
     $params = array('dh_instagram' => array(array('param_name' => 'username', 'heading' => __('Instagram Username', 'sitesao'), 'description' => '', 'type' => 'textfield', 'admin_label' => true), array('param_name' => 'images_number', 'heading' => __('Number of Images to Show', 'sitesao'), 'type' => 'textfield', 'value' => '12'), array('param_name' => 'refresh_hour', 'heading' => __('Check for new images on every (hours)', 'sitesao'), 'type' => 'textfield', 'value' => '5')), 'dh_button' => array(array('type' => 'textfield', 'heading' => __('Text', 'sitesao'), 'holder' => 'button', 'class' => 'wpb_button', 'admin_label' => true, 'param_name' => 'title', 'value' => __('Button', 'sitesao'), 'description' => __('Text on the button.', 'sitesao')), array('type' => 'href', 'heading' => __('URL (Link)', 'sitesao'), 'param_name' => 'href', 'description' => __('Button link.', 'sitesao')), array('type' => 'dropdown', 'heading' => __('Target', 'sitesao'), 'param_name' => 'target', 'std' => '_self', 'value' => array(__('Same window', 'sitesao') => '_self', __('New window', 'sitesao') => "_blank"), 'dependency' => array('element' => 'href', 'not_empty' => true, 'callback' => 'vc_button_param_target_callback')), array('type' => 'dropdown', 'heading' => __('Style', 'sitesao'), "param_holder_class" => 'dh-btn-style-select', 'param_name' => 'style', 'value' => self::$button_styles, 'description' => __('Button style.', 'sitesao')), array('type' => 'dropdown', 'heading' => __('Size', 'sitesao'), 'param_name' => 'size', 'std' => '', 'value' => array(__('Default', 'sitesao') => '', __('Large', 'sitesao') => 'lg', __('Small', 'sitesao') => 'sm', __('Extra small', 'sitesao') => 'xs', __('Custom size', 'sitesao') => 'custom'), 'description' => __('Button size.', 'sitesao')), array('param_name' => 'font_size', 'heading' => __('Font Size (px)', 'sitesao'), 'type' => 'ui_slider', 'value' => '14', 'data_min' => '0', 'dependency' => array('element' => "size", 'value' => array('custom')), 'data_max' => '50'), array('param_name' => 'border_width', 'heading' => __('Border Width (px)', 'sitesao'), 'type' => 'ui_slider', 'value' => '1', 'data_min' => '0', 'dependency' => array('element' => "size", 'value' => array('custom')), 'data_max' => '20'), array('param_name' => 'padding_top', 'heading' => __('Padding Top (px)', 'sitesao'), 'type' => 'ui_slider', 'value' => '6', 'data_min' => '0', 'dependency' => array('element' => "size", 'value' => array('custom')), 'data_max' => '100'), array('param_name' => 'padding_right', 'heading' => __('Padding Right (px)', 'sitesao'), 'type' => 'ui_slider', 'value' => '30', 'data_min' => '0', 'dependency' => array('element' => "size", 'value' => array('custom')), 'data_max' => '100'), array('param_name' => 'padding_bottom', 'heading' => __('Padding Bottom (px)', 'sitesao'), 'type' => 'ui_slider', 'value' => '6', 'data_min' => '0', 'dependency' => array('element' => "size", 'value' => array('custom')), 'data_max' => '100'), array('param_name' => 'padding_left', 'heading' => __('Padding Right (px)', 'sitesao'), 'type' => 'ui_slider', 'value' => '30', 'data_min' => '0', 'dependency' => array('element' => "size", 'value' => array('custom')), 'data_max' => '100'), array('type' => 'dropdown', 'heading' => __('Color', 'sitesao'), 'param_name' => 'color', 'std' => 'default', 'value' => array(__('Default', 'sitesao') => 'default', __('Primary', 'sitesao') => 'primary', __('Success', 'sitesao') => 'success', __('Info', 'sitesao') => 'info', __('Warning', 'sitesao') => 'warning', __('Danger', 'sitesao') => 'danger', __('White', 'sitesao') => 'white', __('Black', 'sitesao') => 'black', __('Custom', 'sitesao') => 'custom'), 'description' => __('Button color.', 'sitesao')), array('type' => 'colorpicker', 'heading' => __('Background Color', 'sitesao'), 'param_name' => 'background_color', 'dependency' => array('element' => "color", 'value' => array('custom')), 'description' => __('Select background color for button.', 'sitesao')), array('type' => 'colorpicker', 'heading' => __('Border Color', 'sitesao'), 'param_name' => 'border_color', 'dependency' => array('element' => "color", 'value' => array('custom')), 'description' => __('Select border color for button.', 'sitesao')), array('type' => 'colorpicker', 'heading' => __('Text Color', 'sitesao'), 'param_name' => 'text_color', 'dependency' => array('element' => "color", 'value' => array('custom')), 'description' => __('Select text color for button.', 'sitesao')), array('type' => 'colorpicker', 'heading' => __('Hover Background Color', 'sitesao'), 'param_name' => 'hover_background_color', 'dependency' => array('element' => "color", 'value' => array('custom')), 'description' => __('Select background color for button when hover.', 'sitesao')), array('type' => 'colorpicker', 'heading' => __('Hover Border Color', 'sitesao'), 'param_name' => 'hover_border_color', 'dependency' => array('element' => "color", 'value' => array('custom')), 'description' => __('Select border color for button when hover.', 'sitesao')), array('type' => 'colorpicker', 'heading' => __('Hover Text Color', 'sitesao'), 'param_name' => 'hover_text_color', 'dependency' => array('element' => "color", 'value' => array('custom')), 'description' => __('Select text color for button when hover.', 'sitesao')), array('type' => 'checkbox', 'heading' => __('Button Full Width', 'sitesao'), 'param_name' => 'block_button', 'value' => array(__('Yes, please', 'sitesao') => 'yes'), 'description' => __('Button full width of a parent', 'sitesao')), array('type' => 'dropdown', 'heading' => __('Alignment', 'sitesao'), 'param_name' => 'alignment', 'std' => 'left', 'value' => array(__('Left', 'sitesao') => 'left', __('Center', 'sitesao') => 'center', __('Right', 'sitesao') => 'right'), 'description' => __('Button alignment (Not use for Button full width)', 'sitesao')), array('type' => 'dropdown', 'heading' => __('Show Tooltip/Popover', 'sitesao'), 'param_name' => 'tooltip', 'value' => array(__('No', 'sitesao') => '', __('Tooltip', 'sitesao') => 'tooltip', __('Popover', 'sitesao') => 'popover'), 'description' => __('Display a tooltip or popover with descriptive text.', 'sitesao')), array('type' => 'dropdown', 'heading' => __('Tip position', 'sitesao'), 'param_name' => 'tooltip_position', 'std' => 'top', 'value' => array(__('Top', 'sitesao') => 'top', __('Bottom', 'sitesao') => 'bottom', __('Left', 'sitesao') => 'left', __('Right', 'sitesao') => 'right'), 'dependency' => array('element' => "tooltip", 'value' => array('tooltip', 'popover')), 'description' => __('Choose the display position.', 'sitesao')), array('type' => 'textfield', 'heading' => __('Popover Title', 'sitesao'), 'param_name' => 'tooltip_title', 'dependency' => array('element' => "tooltip", 'value' => array('popover'))), array('type' => 'textarea', 'heading' => __('Tip/Popover Content', 'sitesao'), 'param_name' => 'tooltip_content', 'dependency' => array('element' => "tooltip", 'value' => array('tooltip', 'popover'))), array('type' => 'dropdown', 'heading' => __('Tip/Popover trigger', 'sitesao'), 'param_name' => 'tooltip_trigger', 'std' => 'hover', 'value' => array(__('Hover', 'sitesao') => 'hover', __('Click', 'sitesao') => 'click'), 'dependency' => array('element' => "tooltip", 'value' => array('tooltip', 'popover')), 'description' => __('Choose action to trigger the tooltip.', 'sitesao'))), 'dh_menu_anchor' => array(array('param_name' => 'name', 'heading' => __('Name Of Menu Anchor', 'sitesao'), 'type' => 'textfield', 'admin_label' => true, "description" => __("This name will be the id you will have to use in your one page menu.", 'sitesao'))), 'dh_video' => array(array('param_name' => 'type', 'heading' => __('Video Type', 'sitesao'), 'type' => 'dropdown', 'admin_label' => true, 'std' => 'inline', 'value' => array(__('Iniline', 'sitesao') => 'inline', __('Popup', 'sitesao') => 'popup')), array('type' => 'attach_image', 'heading' => __('Background', 'sitesao'), 'param_name' => 'background', 'dependency' => array('element' => "type", 'value' => array('popup')), 'description' => __('Video Background.', 'sitesao')), array('param_name' => 'video_embed', 'heading' => __('Embedded Code', 'sitesao'), 'type' => 'textfield', 'value' => '', 'description' => __('Used when you select Video format. Enter a Youtube, Vimeo, Soundcloud, etc URL. See supported services at <a href="http://codex.wordpress.org/Embeds" target="_blank">http://codex.wordpress.org/Embeds</a>.', 'sitesao'))), 'dh_post' => array(array('type' => 'dropdown', 'heading' => __('Layout', 'sitesao'), 'param_name' => 'layout', 'std' => 'default', 'admin_label' => true, 'value' => array(__('Default', 'sitesao') => 'default', __('Masonry', 'sitesao') => 'masonry', __('Center', 'sitesao') => 'center'), 'std' => 'default', 'description' => __('Select the layout for the blog shortcode.', 'sitesao')), array('type' => 'dropdown', 'heading' => __('Columns', 'sitesao'), 'param_name' => 'columns', 'std' => 2, 'value' => array(__('2', 'sitesao') => '2', __('3', 'sitesao') => '3', __('4', 'sitesao') => '4'), 'dependency' => array('element' => "layout", 'value' => array('grid', 'masonry')), 'description' => __('Select whether to display the layout in 2, 3 or 4 column.', 'sitesao')), array('type' => 'textfield', 'heading' => __('Posts Per Page', 'sitesao'), 'param_name' => 'posts_per_page', 'value' => 5, 'description' => __('Select number of posts per page.Set "-1" to display all', 'sitesao')), array('type' => 'dropdown', 'heading' => __('Order by', 'sitesao'), 'param_name' => 'orderby', 'std' => 'latest', 'value' => array(__('Recent First', 'sitesao') => 'latest', __('Older First', 'sitesao') => 'oldest', __('Title Alphabet', 'sitesao') => 'alphabet', __('Title Reversed Alphabet', 'sitesao') => 'ralphabet')), array('type' => 'post_category', 'heading' => __('Categories', 'sitesao'), 'param_name' => 'categories', 'admin_label' => true, 'description' => __('Select a category or leave blank for all', 'sitesao')), array('type' => 'post_category', 'heading' => __('Exclude Categories', 'sitesao'), 'param_name' => 'exclude_categories', 'description' => __('Select a category to exclude', 'sitesao')), array('type' => 'checkbox', 'heading' => __('Hide Post Title', 'sitesao'), 'param_name' => 'hide_post_title', 'value' => array(__('Yes,please', 'sitesao') => 'yes'), 'description' => __('Hide the post title below the featured', 'sitesao')), array('type' => 'dropdown', 'heading' => __('Link Title To Post', 'sitesao'), 'param_name' => 'link_post_title', 'std' => 'yes', 'value' => array(__('Yes,please', 'sitesao') => 'yes', __('No', 'sitesao') => 'no'), 'description' => __('Choose if the title should be a link to the single post page.', 'sitesao')), array('type' => 'checkbox', 'heading' => __('Hide Thumbnail', 'sitesao'), 'param_name' => 'hide_thumbnail', 'value' => array(__('Yes,please', 'sitesao') => 'yes'), 'description' => __('Hide the post featured', 'sitesao')), array('type' => 'checkbox', 'heading' => __('Hide Excerpt', 'sitesao'), 'param_name' => 'hide_excerpt', 'value' => array(__('Yes,please', 'sitesao') => 'yes'), 'dependency' => array('element' => "layout", 'value' => array('default', 'medium', 'grid', 'masonry', 'zigzag', 'center')), 'description' => __('Hide excerpt', 'sitesao')), array('type' => 'textfield', 'heading' => __('Number of words in Excerpt', 'sitesao'), 'param_name' => 'excerpt_length', 'value' => 30, 'dependency' => array('element' => 'hide_excerpt', 'is_empty' => true), 'description' => __('The number of words', 'sitesao')), array('type' => 'checkbox', 'heading' => __('Hide Date', 'sitesao'), 'param_name' => 'hide_date', 'value' => array(__('Yes,please', 'sitesao') => 'yes'), 'description' => __('Hide date in post meta info', 'sitesao')), array('type' => 'checkbox', 'heading' => __('Hide Timeline Month', 'sitesao'), 'param_name' => 'hide_month', 'value' => array(__('Yes,please', 'sitesao') => 'yes'), 'dependency' => array('element' => "layout", 'value' => array('timeline')), 'description' => __('Hide timeline month', 'sitesao')), array('type' => 'checkbox', 'heading' => __('Hide Comment', 'sitesao'), 'param_name' => 'hide_comment', 'value' => array(__('Yes,please', 'sitesao') => 'yes'), 'description' => __('Hide comment in post meta info', 'sitesao')), array('type' => 'checkbox', 'heading' => __('Hide Category', 'sitesao'), 'param_name' => 'hide_category', 'value' => array(__('Yes,please', 'sitesao') => 'yes'), 'description' => __('Hide category in post meta info', 'sitesao')), array('type' => 'checkbox', 'heading' => __('Hide Author', 'sitesao'), 'param_name' => 'hide_author', 'value' => array(__('Yes,please', 'sitesao') => 'yes'), 'dependency' => array('element' => "layout", 'value' => array('default', 'medium', 'grid', 'masonry', 'zigzag', 'center')), 'description' => __('Hide author in post meta info', 'sitesao')), array('type' => 'checkbox', 'heading' => __('Hide Read More Link', 'sitesao'), 'param_name' => 'hide_readmore', 'value' => array(__('Yes,please', 'sitesao') => 'yes'), 'dependency' => array('element' => "layout", 'value' => array('default', 'medium', 'grid', 'masonry', 'zigzag', 'center')), 'description' => __('Choose to hide the link', 'sitesao')), array('type' => 'dropdown', 'heading' => __('Show Tags', 'sitesao'), 'param_name' => 'show_tag', 'std' => 'no', 'value' => array(__('No', 'sitesao') => 'no', __('Yes', 'sitesao') => 'yes'), 'dependency' => array('element' => "layout", 'value' => array('default', 'medium', 'grid', 'masonry', 'zigzag', 'center')), 'description' => __('Choose to show the tags', 'sitesao')), array('type' => 'dropdown', 'std' => 'page_num', 'heading' => __('Pagination', 'sitesao'), 'param_name' => 'pagination', 'value' => array(__('Page Number', 'sitesao') => 'page_num', __('Load More Button', 'sitesao') => 'loadmore', __('Infinite Scrolling', 'sitesao') => 'infinite_scroll', __('No', 'sitesao') => 'no'), 'description' => __('Choose pagination type.', 'sitesao')), array('type' => 'textfield', 'heading' => __('Load More Button Text', 'sitesao'), 'param_name' => 'loadmore_text', 'dependency' => array('element' => "pagination", 'value' => array('loadmore')), 'value' => __('Load More', 'sitesao'))), 'dh_post_grid' => array(array('type' => 'dropdown', 'heading' => __('Layout Style', 'sitesao'), 'param_name' => 'layout_style', 'std' => 'list', 'value' => array(__('List', 'sitesao') => 'list', __('Grid', 'sitesao') => 'grid'), 'description' => __('Select style to display the latest posts.', 'sitesao')), array('type' => 'dropdown', 'heading' => __('Columns', 'sitesao'), 'param_name' => 'columns', 'std' => 2, 'value' => array(__('2', 'sitesao') => '2', __('3', 'sitesao') => '3', __('4', 'sitesao') => '4'), 'dependency' => array('element' => "layout_style", 'value' => array('grid')), 'description' => __('Select whether to display the layout in 1, 2, 3 or 4 column.', 'sitesao')), array('type' => 'textfield', 'heading' => __('Posts Per Page', 'sitesao'), 'param_name' => 'posts_per_page', 'value' => 12, 'description' => __('Select number of posts per page.Set "-1" to display all', 'sitesao')), array('type' => 'dropdown', 'heading' => __('Order by', 'sitesao'), 'param_name' => 'orderby', 'value' => array(__('Recent First', 'sitesao') => 'latest', __('Older First', 'sitesao') => 'oldest', __('Title Alphabet', 'sitesao') => 'alphabet', __('Title Reversed Alphabet', 'sitesao') => 'ralphabet')), array('type' => 'checkbox', 'heading' => __('Hide Pagination', 'sitesao'), 'param_name' => 'hide_pagination', 'value' => array(__('Yes,please', 'sitesao') => 'yes'), 'description' => __('Hide pagination of slider', 'sitesao')), array('type' => 'checkbox', 'heading' => __('Hide Date', 'sitesao'), 'param_name' => 'hide_date', 'value' => array(__('Yes,please', 'sitesao') => 'yes'), 'description' => __('Hide date in post meta info', 'sitesao')), array('type' => 'checkbox', 'heading' => __('Hide Author', 'sitesao'), 'param_name' => 'hide_author', 'value' => array(__('Yes,please', 'sitesao') => 'yes'), 'description' => __('Hide author in post meta info', 'sitesao')), array('type' => 'checkbox', 'heading' => __('Hide Comment', 'sitesao'), 'param_name' => 'hide_comment', 'value' => array(__('Yes,please', 'sitesao') => 'yes'), 'description' => __('Hide comment in post meta info', 'sitesao')), array('type' => 'checkbox', 'heading' => __('Hide Category', 'sitesao'), 'param_name' => 'hide_category', 'value' => array(__('Yes,please', 'sitesao') => 'yes'), 'description' => __('Hide Category in post meta info', 'sitesao')), array('type' => 'checkbox', 'heading' => __('Hide Excerpt', 'sitesao'), 'param_name' => 'hide_excerpt', 'value' => array(__('Yes,please', 'sitesao') => 'yes'), 'description' => __('Hide excerpt', 'sitesao')), array('type' => 'textfield', 'heading' => __('Number of words in Excerpt', 'sitesao'), 'param_name' => 'excerpt_length', 'value' => 30, 'dependency' => array('element' => 'hide_excerpt', 'is_empty' => true), 'description' => __('The number of words', 'sitesao')), array('type' => 'post_category', 'heading' => __('Categories', 'sitesao'), 'param_name' => 'categories', 'admin_label' => true, 'description' => __('Select a category or leave blank for all', 'sitesao'))), 'dh_mailchimp' => array(array('type' => 'textfield', 'heading' => __('Title', 'sitesao'), 'param_name' => 'title', 'description' => __('Enter text which will be used as widget title. Leave blank if no title is needed.', 'sitesao'))), 'dh_slider' => array(), 'dh_carousel' => array(array('type' => 'textfield', 'heading' => __('Carousel Title', 'sitesao'), 'param_name' => 'title', 'description' => __('Enter text which will be used as widget title. Leave blank if no title is needed.', 'sitesao')), array('type' => 'dropdown', 'heading' => __('Transition', 'sitesao'), 'param_name' => 'fx', 'std' => 'scroll', 'value' => array('Scroll' => 'scroll', 'Directscroll' => 'directscroll', 'Fade' => 'fade', 'Cross fade' => 'crossfade', 'Cover' => 'cover', 'Cover fade' => 'cover-fade', 'Uncover' => 'cover-fade', 'Uncover fade' => 'uncover-fade'), 'description' => __('Indicates which effect to use for the transition.', 'sitesao')), array('param_name' => 'visible', 'heading' => __('The number of visible items', 'sitesao'), 'type' => 'ui_slider', 'value' => '1', 'data_min' => '1', 'data_max' => '6'), array('param_name' => 'scroll_speed', 'heading' => __('Transition Scroll Speed (ms)', 'sitesao'), 'type' => 'ui_slider', 'value' => '700', 'data_min' => '100', 'data_step' => '100', 'data_max' => '3000'), array("type" => "dropdown", "heading" => __("Easing", 'sitesao'), "param_name" => "easing", 'std' => 'linear', "value" => array('linear' => 'linear', 'swing' => 'swing', 'easeInQuad' => 'easeInQuad', 'easeOutQuad' => 'easeOutQuad', 'easeInOutQuad' => 'easeInOutQuad', 'easeInCubic' => 'easeInCubic', 'easeOutCubic' => 'easeOutCubic', 'easeInOutCubic' => 'easeInOutCubic', 'easeInQuart' => 'easeInQuart', 'easeOutQuart' => 'easeOutQuart', 'easeInOutQuart' => 'easeInOutQuart', 'easeInQuint' => 'easeInQuint', 'easeOutQuint' => 'easeOutQuint', 'easeInOutQuint' => 'easeInOutQuint', 'easeInExpo' => 'easeInExpo', 'easeOutExpo' => 'easeOutExpo', 'easeInOutExpo' => 'easeInOutExpo', 'easeInSine' => 'easeInSine', 'easeOutSine' => 'easeOutSine', 'easeInOutSine' => 'easeInOutSine', 'easeInCirc' => 'easeInCirc', 'easeOutCirc' => 'easeOutCirc', 'easeInOutCirc' => 'easeInOutCirc', 'easeInElastic' => 'easeInElastic', 'easeOutElastic' => 'easeOutElastic', 'easeInOutElastic' => 'easeInOutElastic', 'easeInBack' => 'easeInBack', 'easeOutBack' => 'easeOutBack', 'easeInOutBack' => 'easeInOutBack', 'easeInBounce' => 'easeInBounce', 'easeOutBounce' => 'easeOutBounce', 'easeInOutBounce' => 'easeInOutBounce'), "description" => __("Select the animation easing you would like for slide transitions <a href=\"http://jqueryui.com/resources/demos/effect/easing.html\" target=\"_blank\"> Click here </a> to see examples of these.", 'sitesao')), array('type' => 'checkbox', 'heading' => __('Item no Padding ?', 'sitesao'), 'param_name' => 'no_padding', 'description' => __('Item No Padding', 'sitesao'), 'value' => array(__('Yes,please', 'sitesao') => 'yes')), array('type' => 'checkbox', 'heading' => __('Autoplay ?', 'sitesao'), 'param_name' => 'auto_play', 'value' => array(__('Yes,please', 'sitesao') => 'yes')), array('type' => 'checkbox', 'heading' => __('Hide Slide Pagination ?', 'sitesao'), 'param_name' => 'hide_pagination', 'value' => array(__('Yes,please', 'sitesao') => 'yes')), array('type' => 'checkbox', 'heading' => __('Hide Previous/Next Control ?', 'sitesao'), 'param_name' => 'hide_control', 'value' => array(__('Yes,please', 'sitesao') => 'yes'))), 'dh_wc_special_product' => array(), 'dh_carousel_item' => array(array('type' => 'textfield', 'heading' => __('Title', 'sitesao'), 'param_name' => 'title', 'description' => __('Item title.', 'sitesao'))), 'dh_testimonial' => array(array('type' => 'checkbox', 'heading' => __('Background Transparent?', 'sitesao'), 'param_name' => 'background_transparent', 'value' => array(__('Yes,please', 'sitesao') => 'yes')), array('type' => 'colorpicker', 'heading' => __('Color', 'sitesao'), 'param_name' => 'color', 'description' => __('Custom color.', 'sitesao')), array('type' => 'dropdown', 'heading' => __('Columns', 'sitesao'), 'param_name' => 'columns', 'std' => '1', 'value' => array(__('1 Column', 'sitesao') => '1', __('2 Columns', 'sitesao') => '2')), array('type' => 'dropdown', 'heading' => __('Style', 'sitesao'), 'param_name' => 'style', 'std' => 'style-1', 'value' => array(__('Style 1', 'sitesao') => 'style-1', __('Style 2', 'sitesao') => 'style-2')), array('type' => 'dropdown', 'heading' => __('Transition', 'sitesao'), 'param_name' => 'fx', 'std' => 'scroll', 'value' => array('Scroll' => 'scroll', 'Directscroll' => 'directscroll', 'Fade' => 'fade', 'Cross fade' => 'crossfade', 'Cover' => 'cover', 'Cover fade' => 'cover-fade', 'Uncover' => 'cover-fade', 'Uncover fade' => 'uncover-fade'), 'description' => __('Indicates which effect to use for the transition.', 'sitesao'))), 'dh_testimonial_item' => array(array('type' => 'textfield', 'heading' => __('Title', 'sitesao'), 'param_name' => 'title', 'description' => __('Item title.', 'sitesao')), array('type' => 'textarea_safe', 'holder' => 'div', 'heading' => __('Text', 'sitesao'), 'param_name' => 'text', 'value' => __('I am testimonial. 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.', 'sitesao')), array('type' => 'textfield', 'heading' => __('Author', 'sitesao'), 'param_name' => 'author', 'description' => __('Testimonial author.', 'sitesao')), array('type' => 'textfield', 'heading' => __('Company', 'sitesao'), 'param_name' => 'company', 'description' => __('Author company.', 'sitesao')), array('type' => 'attach_image', 'heading' => __('Avatar', 'sitesao'), 'param_name' => 'avatar', 'description' => __('Avatar author.', 'sitesao'))), 'dh_counter' => array(array('param_name' => 'speed', 'heading' => __('Counter Speed', 'sitesao'), 'type' => 'textfield', 'value' => '2000'), array('type' => 'textfield', 'heading' => __('Number', 'sitesao'), 'param_name' => 'number', 'description' => __('Enter the number.', 'sitesao')), array('type' => 'checkbox', 'heading' => __('Format number displayed ?', 'sitesao'), 'dependency' => array('element' => "number", 'not_empty' => true), 'param_name' => 'format', 'value' => array(__('Yes,please', 'sitesao') => 'yes')), array('type' => 'textfield', 'heading' => __('Thousand Separator', 'sitesao'), 'param_name' => 'thousand_sep', 'dependency' => array('element' => "format", 'not_empty' => true), 'value' => ',', 'description' => __('This sets the thousand separator of displayed number.', 'sitesao')), array('type' => 'textfield', 'heading' => __('Decimal Separator', 'sitesao'), 'param_name' => 'decimal_sep', 'dependency' => array('element' => "format", 'not_empty' => true), 'value' => '.', 'description' => __('This sets the decimal separator of displayed number.', 'sitesao')), array('type' => 'textfield', 'heading' => __('Number of Decimals', 'sitesao'), 'param_name' => 'num_decimals', 'dependency' => array('element' => "format", 'not_empty' => true), 'value' => 0, 'description' => __('This sets the number of decimal points shown in displayed number.', 'sitesao')), array('type' => 'colorpicker', 'heading' => __('Custom Number Color', 'sitesao'), 'param_name' => 'number_color', 'dependency' => array('element' => "number", 'not_empty' => true), 'description' => __('Select color for number.', 'sitesao')), array('param_name' => 'number_font_size', 'heading' => __('Custom Number Font Size (px)', 'sitesao'), 'type' => 'ui_slider', 'value' => '40', 'data_min' => '10', 'dependency' => array('element' => "number", 'not_empty' => true), 'data_max' => '120'), array('type' => 'textfield', 'heading' => __('Units', 'sitesao'), 'param_name' => 'units', 'description' => __('Enter measurement units (if needed) Eg. %, px, points, etc. Graph value and unit will be appended to the graph title.', 'sitesao')), array('type' => 'colorpicker', 'heading' => __('Custom Units Color', 'sitesao'), 'param_name' => 'units_color', 'dependency' => array('element' => "units", 'not_empty' => true), 'description' => __('Select color for number.', 'sitesao')), array('param_name' => 'units_font_size', 'heading' => __('Custom Units Font Size (px)', 'sitesao'), 'type' => 'ui_slider', 'value' => '30', 'data_min' => '10', 'dependency' => array('element' => "units", 'not_empty' => true), 'data_max' => '120'), array('type' => 'dropdown', 'heading' => __('Icon', 'sitesao'), 'param_name' => 'icon', "param_holder_class" => 'dh-font-awesome-select', "value" => dh_font_awesome_options(), 'description' => __('Button icon.', 'sitesao')), array('type' => 'colorpicker', 'heading' => __('Custom Icon Color', 'sitesao'), 'param_name' => 'icon_color', 'dependency' => array('element' => "icon", 'not_empty' => true), 'description' => __('Select color for icon.', 'sitesao')), array('param_name' => 'icon_font_size', 'heading' => __('Custom Icon Size (px)', 'sitesao'), 'type' => 'ui_slider', 'value' => '40', 'data_min' => '10', 'dependency' => array('element' => "icon", 'not_empty' => true), 'data_max' => '120'), array('type' => 'dropdown', 'std' => 'top', 'heading' => __('Icon Postiton', 'sitesao'), 'param_name' => 'icon_position', 'dependency' => array('element' => "icon", 'not_empty' => true), 'value' => array(__('Top', 'sitesao') => 'top', __('Left', 'sitesao') => 'left')), array('type' => 'textfield', 'heading' => __('Title', 'sitesao'), 'param_name' => 'text', 'admin_label' => true), array('type' => 'colorpicker', 'heading' => __('Custom Title Color', 'sitesao'), 'param_name' => 'text_color', 'dependency' => array('element' => "text", 'not_empty' => true), 'description' => __('Select color for title.', 'sitesao')), array('param_name' => 'text_font_size', 'heading' => __('Custom Title Font Size (px)', 'sitesao'), 'type' => 'ui_slider', 'value' => '18', 'data_min' => '10', 'dependency' => array('element' => "text", 'not_empty' => true), 'data_max' => '120')), 'dh_countdown' => array(array('type' => 'dropdown', 'heading' => __('Style', 'sitesao'), 'param_name' => 'style', 'admin_label' => true, 'value' => array(__('White', 'sitesao') => 'white', __('Black', 'sitesao') => 'black'), 'description' => __('Select style.', 'sitesao')), array('type' => 'ui_datepicker', 'heading' => __('Countdown end', 'sitesao'), 'param_name' => 'end', 'description' => __('Please select day to end.', 'sitesao'), 'value' => '')), 'dh_box_feature' => array(array('type' => 'dropdown', 'heading' => __('Style', 'sitesao'), 'param_name' => 'style', 'std' => '1', 'value' => array(__('Style 1', 'sitesao') => '1', __('Style 2', 'sitesao') => "2", __('Style 3', 'sitesao') => "3", __('Style 4', 'sitesao') => "4", __('Style 5', 'sitesao') => "5")), array('type' => 'dropdown', 'heading' => __('Content Position', 'sitesao'), 'param_name' => 'content_position', 'std' => 'default', 'dependency' => array('element' => 'style', 'value' => array('4')), 'value' => array(__('Default', 'sitesao') => 'default', __('Top', 'sitesao') => "top", __('Bottom', 'sitesao') => "bottom", __('Left', 'sitesao') => "left", __('Right', 'sitesao') => "right", __('Full Box', 'sitesao') => "full-box")), array('type' => 'checkbox', 'heading' => __('Full Box with Primary Soild Background ?', 'sitesao'), 'param_name' => 'primary_background', 'dependency' => array('element' => 'content_position', 'value' => array('full-box')), 'value' => array(__('Yes,please', 'sitesao') => 'yes')), array('type' => 'dropdown', 'heading' => __('Text color', 'sitesao'), 'param_name' => 'text_color', 'dependency' => array('element' => 'style', 'value' => array('5')), 'std' => 'white', 'value' => array(__('White', 'sitesao') => "white", __('Black', 'sitesao') => "black")), array('type' => 'attach_image', 'heading' => __('Image Background', 'sitesao'), 'param_name' => 'bg', 'description' => __('Image Background.', 'sitesao')), array('type' => 'href', 'heading' => __('Image URL (Link)', 'sitesao'), 'param_name' => 'href', 'description' => __('Image Link.', 'sitesao')), array('type' => 'dropdown', 'heading' => __('Target', 'sitesao'), 'param_name' => 'target', 'std' => '_self', 'value' => array(__('Same window', 'sitesao') => '_self', __('New window', 'sitesao') => "_blank"), 'dependency' => array('element' => 'href', 'not_empty' => true)), array('param_name' => 'link_title', 'heading' => __('Button Text', 'sitesao'), 'type' => 'textfield', 'value' => '', 'dependency' => array('element' => 'style', 'value' => array('4')), 'description' => __('Button link text', 'sitesao')), array('param_name' => 'title', 'heading' => __('Title', 'sitesao'), 'admin_label' => true, 'type' => 'textfield', 'value' => '', 'description' => __('Box Title', 'sitesao')), array('param_name' => 'sub_title', 'heading' => __('Sub Title', 'sitesao'), 'type' => 'textfield', 'value' => '', 'description' => __('Box Sub Title', 'sitesao'))), 'dh_client' => array(array('type' => 'attach_images', 'heading' => __('Images', 'sitesao'), 'param_name' => 'images', 'value' => '', 'description' => __('Select images from media library.', 'sitesao')), array('type' => 'exploded_textarea', 'heading' => __('Custom links', 'sitesao'), 'param_name' => 'custom_links', 'description' => __('Enter links for each image here. Divide links with linebreaks (Enter) . ', 'sitesao')), array('type' => 'dropdown', 'heading' => __('Display type', 'sitesao'), 'param_name' => 'display', 'value' => array(__('Slider', 'sitesao') => 'slider', __('Image grid', 'sitesao') => 'grid'), 'description' => __('Select display type.', 'sitesao')), array('type' => 'checkbox', 'heading' => __('Hide Slide Pagination ?', 'sitesao'), 'param_name' => 'hide_pagination', 'dependency' => array('element' => 'display', 'value' => array('slider')), 'value' => array(__('Yes,please', 'sitesao') => 'yes')), array('param_name' => 'visible', 'heading' => __('The number of visible items on a slide or on a grid row', 'sitesao'), 'type' => 'dropdown', 'value' => array(2, 3, 4, 5, 6)), array('type' => 'dropdown', 'heading' => __('Image style', 'sitesao'), 'param_name' => 'style', 'value' => array(__('Normal', 'sitesao') => 'normal', __('Grayscale and Color on hover', 'sitesao') => 'grayscale'), 'description' => __('Select image style.', 'sitesao'))));
     $shortcode_optional_param = array('dh_wc_special_product', 'dh_button', 'dh_animation', 'dh_post', 'dh_post_grid', 'dh_instagram', 'dh_slider', 'dh_carousel', 'dh_testimonial', 'dh_client', 'dh_counter', 'dh_countdown');
     foreach ($params as $shortcode => $param) {
         foreach ($param as $attr) {
             vc_add_param($shortcode, $attr);
         }
         if (in_array($shortcode, $shortcode_optional_param)) {
             foreach ((array) $this->_get_optional_param() as $optional_param) {
                 vc_add_param($shortcode, $optional_param);
             }
         }
     }
     return;
 }
Exemplo n.º 24
0
<?php

global $VISUAL_COMPOSER_EXTENSIONS;
if (function_exists('vc_add_param')) {
    // Column Setting Parameters
    vc_add_param("vc_column", array("type" => "seperator", "heading" => __("", "ts_visual_composer_extend"), "param_name" => "seperator_1", "value" => "", "seperator" => "Viewport Animation", "description" => __("", "ts_visual_composer_extend"), "group" => __("VC Extensions", "ts_visual_composer_extend")));
    vc_add_param("vc_column", array("type" => "css3animations", "class" => "", "heading" => __("Viewport Animation", "ts_visual_composer_extend"), "param_name" => "animation_view", "standard" => "false", "prefix" => "", "connector" => "css3animations_in", "noneselect" => "true", "default" => "", "value" => "", "admin_label" => false, "description" => __("Select a Viewport Animation for this Column.", "ts_visual_composer_extend"), "group" => __("VC Extensions", "ts_visual_composer_extend")));
    vc_add_param("vc_column", array("type" => "hidden_input", "heading" => __("Animation Type", "ts_visual_composer_extend"), "param_name" => "css3animations_in", "value" => "", "admin_label" => true, "description" => __("", "ts_visual_composer_extend"), "group" => __("VC Extensions", "ts_visual_composer_extend")));
    vc_add_param("vc_column", array("type" => "switch_button", "heading" => __("Repeat Effect", "ts_visual_composer_extend"), "param_name" => "animation_scroll", "value" => "false", "on" => __('Yes', "ts_visual_composer_extend"), "off" => __('No', "ts_visual_composer_extend"), "style" => "select", "design" => "toggle-light", "description" => __("Switch the toggle to repeat the viewport effect when element has come out of view and comes back into viewport.", "ts_visual_composer_extend"), "dependency" => array("element" => "animation_view", "not_empty" => true), "group" => __("VC Extensions", "ts_visual_composer_extend")));
    vc_add_param("vc_column", array("type" => "nouislider", "heading" => __("Animation Speed", "ts_visual_composer_extend"), "param_name" => "animation_speed", "value" => "2000", "min" => "1000", "max" => "5000", "step" => "100", "unit" => 'ms', "description" => __("Define the Length of the Viewport Animation in ms.", "ts_visual_composer_extend"), "dependency" => array("element" => "animation_view", "not_empty" => true), "group" => __("VC Extensions", "ts_visual_composer_extend")));
    vc_add_param("vc_column", array("type" => "load_file", "class" => "", "heading" => __("", "ts_visual_composer_extend"), "param_name" => "el_file1", "value" => "", "file_type" => "js", "file_path" => "js/ts-visual-composer-extend-element.min.js", "description" => __("", "ts_visual_composer_extend"), "group" => __("VC Extensions", "ts_visual_composer_extend")));
    vc_add_param("vc_column", array("type" => "load_file", "class" => "", "heading" => __("", "ts_visual_composer_extend"), "param_name" => "el_file2", "value" => "", "file_type" => "css", "file_id" => "ts-extend-animations", "file_path" => "css/ts-visual-composer-extend-animations.min.css", "description" => __("", "ts_visual_composer_extend")));
}
add_filter('TS_VCSC_ComposerColumnAdditions_Filter', 'TS_VCSC_ComposerColumnAdditions', 10, 2);
function TS_VCSC_ComposerColumnAdditions($output, $atts, $content = '')
{
    global $VISUAL_COMPOSER_EXTENSIONS;
    ob_start();
    extract(shortcode_atts(array('animation_factor' => '0.33', 'animation_scroll' => 'false', 'animation_view' => '', 'animation_speed' => 2000), $atts));
    if ($VISUAL_COMPOSER_EXTENSIONS->TS_VCSC_LoadFrontEndWaypoints == "true" && $animation_view != "") {
        if (wp_script_is('waypoints', $list = 'registered')) {
            wp_enqueue_script('waypoints');
        } else {
            wp_enqueue_script('ts-extend-waypoints');
        }
    }
    if ($VISUAL_COMPOSER_EXTENSIONS->TS_VCSC_LoadFrontEndForcable == "false" && $animation_view != "") {
        wp_enqueue_style('ts-extend-animations');
        wp_enqueue_style('ts-visual-composer-extend-front');
        wp_enqueue_script('ts-visual-composer-extend-front');
    }
Exemplo n.º 25
0
<?php

/**
 * Add tabs params
 * 
 * @author ZoTheme
 * @since 1.0.0
 */
if (shortcode_exists('vc_accordion_tab')) {
    vc_add_param("vc_accordion_tab", array("type" => "colorpicker", "class" => "", "heading" => __("Accordion Background Color", THEMENAME), "param_name" => "zo_accordion_bg_color", "value" => ""));
    vc_add_param("vc_accordion_tab", array("type" => "colorpicker", "class" => "", "heading" => __("Accordion Border Color", THEMENAME), "param_name" => "zo_accordion_border_color", "value" => ""));
    vc_add_param("vc_accordion_tab", array("type" => "textfield", "heading" => __("Accordion Icon", THEMENAME), "param_name" => "zo_accordion_icon", "description" => __("Select icon website(http://fortawesome.github.io/Font-Awesome/icons;https://icomoon.io/app/)", THEMENAME)));
}
Exemplo n.º 26
0
    }
    return $class_string;
}
// Filter to Replace default css class for vc_row shortcode and vc_column
add_filter('vc_shortcodes_css_class', 'folio_css_classes_for_vc_row_and_vc_raw_html', 10, 2);
//Text Block End
/*###################################################################################
/##				KraftiveComments: Extend Tabs							   		   ##/										
#####################################################################################*/
$toggle_setting = array('allowed_container_element' => 'vc_tabs');
if (function_exists('vc_map_update')) {
    vc_map_update('vc_tab', $toggle_setting);
}
$tab_icon = array('type' => 'dropdown', 'heading' => __('Icon', 'kraftives'), 'param_name' => 'tab_icon', 'value' => folio_icons(), 'description' => __('Tab Icon.', 'kraftives'), 'param_holder_class' => 'vc-colored-dropdown');
if (function_exists('vc_add_param')) {
    vc_add_param('vc_tab', $tab_icon);
}
//Vc_tab end
/*###################################################################################
/##				KraftiveComments: Extend Toggle							   		   ##/										
#####################################################################################*/
$toggle_setting = array('name' => __('Folio Toggle', 'kraftives'), 'category' => __('Folio Zee Modules', 'kraftives'));
if (function_exists('vc_map_update')) {
    vc_map_update('vc_toggle', $toggle_setting);
}
if (function_exists('vc_remove_param')) {
    vc_remove_param("vc_toggle", "css_animation");
}
//Vc_toggle end
/*###################################################################################
/##				KraftiveComments: Custom Params							   		   ##/										
Exemplo n.º 27
0
 * @since Twenty Fourteen 1.0
 */
/* REDUX OPTIONS FRAMEWORK
  ================================================== */
define('MASCOT_TEMPLATE_DIR', get_template_directory());
define('MASCOT_TEMPLATE_URI', get_template_directory_uri());
define('MASCOT_FRAMEWORK_DIR', MASCOT_TEMPLATE_DIR);
if (!class_exists('ReduxFramework') && file_exists(MASCOT_FRAMEWORK_DIR . '/redux-framework/ReduxCore/framework.php')) {
    require_once MASCOT_FRAMEWORK_DIR . '/redux-framework/ReduxCore/framework.php';
}
if (file_exists(MASCOT_FRAMEWORK_DIR . '/redux-framework/config.php')) {
    require_once MASCOT_FRAMEWORK_DIR . '/redux-framework/config.php';
}
global $redux_demo;
// This is your opt_name.
vc_add_param("vc_row", array("type" => "dropdown", "heading" => __("Container Width", "js_composer"), "param_name" => "container_width", "value" => array("Fixed Width" => 'fixed', "Full Width" => 'full'), "description" => __("Container Width", "js_composer")));
if (!isset($content_width)) {
    $content_width = 474;
}
/**
 * Twenty Fourteen only works in WordPress 3.6 or later.
 */
if (version_compare($GLOBALS['wp_version'], '3.6', '<')) {
    require get_template_directory() . '/inc/back-compat.php';
}
if (!function_exists('twentyfourteen_setup')) {
    /**
     * Twenty Fourteen setup.
     *
     * Set up theme defaults and registers support for various WordPress features.
     *
Exemplo n.º 28
0
    function etheme_VC_setup()
    {
        if (!class_exists('WPBakeryVisualComposerAbstract')) {
            return;
        }
        global $vc_params_list;
        $vc_params_list[] = 'icon';
        vc_remove_element("vc_carousel");
        vc_remove_element("vc_images_carousel");
        vc_remove_element("vc_tour");
        $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 animation type if you want this element to be animated when it enters into the browsers viewport. Note: Works only in modern browsers.", "js_composer"));
        // **********************************************************************//
        // ! Row (add anchor field)
        // **********************************************************************//
        vc_add_param('vc_row', array('type' => 'textfield', 'heading' => __('Anchor for one page navigation', 'js_composer'), 'param_name' => 'anchor'));
        // **********************************************************************//
        // ! Separator
        // **********************************************************************//
        $setting_vc_separator = array("show_settings_on_create" => true, 'params' => array(array("type" => "dropdown", "heading" => __("Type", "js_composer"), "param_name" => "type", "value" => array("", __("Default", ETHEME_DOMAIN) => "", __("Double", ETHEME_DOMAIN) => "double", __("Dashed", ETHEME_DOMAIN) => "dashed", __("Dotted", ETHEME_DOMAIN) => "dotted", __("Double Dotted", ETHEME_DOMAIN) => "double dotted", __("Double Dashed", ETHEME_DOMAIN) => "double dashed", __("Horizontal break", ETHEME_DOMAIN) => "horizontal-break", __("Space", ETHEME_DOMAIN) => "space")), array("type" => "textfield", "heading" => __("Height", "js_composer"), "param_name" => "height", "dependency" => array('element' => "type", 'value' => array('space'))), array("type" => "textfield", "heading" => __("Extra class", "js_composer"), "param_name" => "class")));
        vc_map_update('vc_separator', $setting_vc_separator);
        function vc_theme_vc_separator($atts, $content = null)
        {
            $output = $color = $el_class = $css_animation = '';
            extract(shortcode_atts(array('type' => '', 'class' => '', 'height' => ''), $atts));
            $output .= do_shortcode('[hr class="' . $type . ' ' . $class . '" height="' . $height . '"]');
            return $output;
        }
        // **********************************************************************//
        // ! Alert boxes
        // **********************************************************************//
        function vc_theme_vc_message($atts, $content = null)
        {
            $output = $color = $el_class = $css_animation = '';
            extract(shortcode_atts(array('color' => 'alert-info', 'el_class' => '', 'css_animation' => ''), $atts));
            $color = $color != '' ? ' ' . $color : '';
            $css_class = $color . $el_class;
            $css_class .= getCSSAnimation($css_animation);
            $output .= '<div class="' . $css_class . '">' . wpb_js_remove_wpautop($content) . '<span class="close-parent"></span></div>';
            return $output;
        }
        // **********************************************************************//
        // ! FAQ toggle elements
        // **********************************************************************//
        $toggle_params = array("name" => __("FAQ", "js_composer"), "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")), array("type" => "dropdown", "heading" => __("Style", "js_composer"), "param_name" => "style", "value" => array(__("Default", "js_composer") => "default", __("Bordered", "js_composer") => "bordered")), $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');
        vc_map_update('vc_toggle', $toggle_params);
        function vc_theme_vc_toggle($atts, $content = null)
        {
            $output = $title = $css_class = $el_class = $open = $css_animation = '';
            extract(shortcode_atts(array('title' => __("Click to toggle", "js_composer"), 'el_class' => '', 'style' => 'default', 'open' => 'false', 'css_animation' => ''), $atts));
            $open = $open == 'true' ? 1 : 0;
            $css_class .= getCSSAnimation($css_animation);
            $css_class .= ' ' . $el_class;
            $output .= '<div class="toggle-block ' . $css_class . ' ' . $style . '">' . do_shortcode('[toggle title="' . $title . '" class="' . $css_class . '" active="' . $open . '"]' . wpb_js_remove_wpautop($content) . '[/toggle]') . '</div>';
            return $output;
        }
        // **********************************************************************//
        // ! Sliders
        // **********************************************************************//
        $setting_vc_gallery = array("name" => __("Image Gallery", "js_composer"), "icon" => "icon-wpb-images-stack", "category" => __('Content', '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 if no title is needed.", "js_composer")), array("type" => "dropdown", "heading" => __("Gallery type", "js_composer"), "param_name" => "type", "value" => array(__("OWL slider", "js_composer") => "owl", __("Nivo slider", "js_composer") => "nivo", __("Carousel", "js_composer") => "carousel", __("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" => __("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" => "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('vc_gallery', $setting_vc_gallery);
        function vc_theme_vc_gallery($atts, $content = null)
        {
            $output = $title = $type = $onclick = $custom_links = $img_size = $custom_links_target = $images = $el_class = $interval = '';
            extract(shortcode_atts(array('title' => '', 'type' => 'flexslider', 'onclick' => 'link_image', 'custom_links' => '', 'custom_links_target' => '', 'img_size' => 'thumbnail', 'images' => '', 'el_class' => '', 'interval' => '5'), $atts));
            $gal_images = '';
            $link_start = '';
            $link_end = '';
            $el_start = '';
            $el_end = '';
            $slides_wrap_start = '';
            $slides_wrap_end = '';
            $rand = rand(1000, 9999);
            $el_class = ' ' . $el_class . ' ';
            if ($type == 'nivo') {
                $type = ' wpb_slider_nivo theme-default';
                wp_enqueue_script('nivo-slider');
                wp_enqueue_style('nivo-slider-css');
                wp_enqueue_style('nivo-slider-theme');
                $slides_wrap_start = '<div class="nivoSlider">';
                $slides_wrap_end = '</div>';
            } else {
                if ($type == 'flexslider' || $type == 'flexslider_fade' || $type == 'flexslider_slide' || $type == 'fading') {
                    $el_start = '<li>';
                    $el_end = '</li>';
                    $slides_wrap_start = '<ul class="slides">';
                    $slides_wrap_end = '</ul>';
                } else {
                    if ($type == 'image_grid') {
                        $el_start = '<li class="gallery-item">';
                        $el_end = '</li>';
                        $slides_wrap_start = '<ul class="wpb_images_grid_ul">';
                        $slides_wrap_end = '</ul>';
                    } else {
                        if ($type == 'carousel') {
                            $el_start = '<li class="">';
                            $el_end = '</li>';
                            $slides_wrap_start = '<ul class="images-carousel carousel-' . $rand . '">';
                            $slides_wrap_end = '</ul>';
                        }
                    }
                }
            }
            $flex_fx = '';
            $flex = false;
            $owl = false;
            if ($type == 'flexslider' || $type == 'flexslider_fade' || $type == 'fading') {
                $flex = true;
                $type = ' wpb_flexslider' . $rand . ' flexslider_fade flexslider';
                $flex_fx = ' data-flex_fx="fade"';
            } else {
                if ($type == 'flexslider_slide') {
                    $flex = true;
                    $type = ' wpb_flexslider' . $rand . ' flexslider_slide flexslider';
                    $flex_fx = ' data-flex_fx="slide"';
                } else {
                    if ($type == 'image_grid') {
                        $type = ' wpb_image_grid';
                    } else {
                        if ($type == 'owl') {
                            $type = ' owl_slider' . $rand . ' owl_slider';
                            $owl = true;
                        }
                    }
                }
            }
            /*
            	       else if ( $type == 'fading' ) {
            	          $type = ' wpb_slider_fading';
            	          $el_start = '<li>';
            	          $el_end = '</li>';
            	          $slides_wrap_start = '<ul class="slides">';
            	          $slides_wrap_end = '</ul>';
            	          wp_enqueue_script( 'cycle' );
            	      }*/
            //if ( $images == '' ) return null;
            if ($images == '') {
                $images = '-1,-2,-3';
            }
            $pretty_rel_random = 'rel-' . rand();
            if ($onclick == 'custom_link') {
                $custom_links = explode(',', $custom_links);
            }
            $images = explode(',', $images);
            $i = -1;
            foreach ($images as $attach_id) {
                $i++;
                if ($attach_id > 0) {
                    $post_thumbnail = wpb_getImageBySize(array('attach_id' => $attach_id, 'thumb_size' => $img_size));
                } else {
                    $different_kitten = 400 + $i;
                    $post_thumbnail = array();
                    $post_thumbnail['thumbnail'] = '<img src="http://placekitten.com/g/' . $different_kitten . '/300" />';
                    $post_thumbnail['p_img_large'][0] = 'http://placekitten.com/g/1024/768';
                }
                $thumbnail = $post_thumbnail['thumbnail'];
                $p_img_large = $post_thumbnail['p_img_large'];
                $link_start = $link_end = '';
                if ($onclick == 'link_image') {
                    $link_start = '<a rel="lightboxGall" href="' . $p_img_large[0] . '">';
                    $link_end = '</a>';
                } else {
                    if ($onclick == 'custom_link' && isset($custom_links[$i]) && $custom_links[$i] != '') {
                        $link_start = '<a href="' . $custom_links[$i] . '"' . (!empty($custom_links_target) ? ' target="' . $custom_links_target . '"' : '') . '>';
                        $link_end = '</a>';
                    }
                }
                $gal_images .= $el_start . $link_start . $thumbnail . $link_end . $el_end;
            }
            $css_class = apply_filters(VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, 'wpb_gallery wpb_content_element' . $el_class . ' clearfix');
            $output .= "\n\t" . '<div class="' . $css_class . '">';
            $output .= "\n\t\t" . '<div class="wpb_wrapper">';
            $output .= wpb_widget_title(array('title' => $title, 'extraclass' => 'wpb_gallery_heading'));
            $output .= '<div class="wpb_gallery_slides' . $type . '" data-interval="' . $interval . '"' . $flex_fx . '>' . $slides_wrap_start . $gal_images . $slides_wrap_end . '</div>';
            $output .= "\n\t\t" . '</div> ';
            $output .= "\n\t" . '</div> ';
            if ($owl) {
                $items = '[[0, 1], [479, 1], [619, 1], [768, 1],  [1200, 1], [1600, 1]]';
                $output .= '<script type="text/javascript">';
                //$output .=  '     jQuery(".images-carousel").etFullWidth();';
                $output .= '     jQuery(".owl_slider' . $rand . '").owlCarousel({';
                $output .= '         items:4, ';
                $output .= '         navigation: true,';
                $output .= '         navigationText:false,';
                $output .= '         rewindNav: false,';
                $output .= '         itemsCustom: ' . $items . '';
                $output .= '    });';
                $output .= ' </script>';
            }
            if ($type == 'carousel') {
                $items = '[[0, 1], [479,2], [619,2], [768,4],  [1200, 4], [1600, 4]]';
                $output .= '<script type="text/javascript">';
                //$output .=  '     jQuery(".images-carousel").etFullWidth();';
                $output .= '     jQuery(".carousel-' . $rand . '").owlCarousel({';
                $output .= '         items:4, ';
                $output .= '         navigation: true,';
                $output .= '         navigationText:false,';
                $output .= '         rewindNav: false,';
                $output .= '         itemsCustom: ' . $items . '';
                $output .= '    });';
                $output .= ' </script>';
            }
            return $output;
        }
        // **********************************************************************//
        // ! Single Image
        // **********************************************************************//
        $setting_vc_single_image = array("params" => array(array("type" => "textfield", "heading" => __("Widget title", "js_composer"), "param_name" => "title", "description" => __("What text use as a 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" => 'checkbox', "heading" => __("Link to large image?", "js_composer"), "param_name" => "img_link_large", "description" => __("If selected, image will be linked to the bigger image.", "js_composer"), "value" => array(__("Yes, please", "js_composer") => 'yes')), array('type' => 'href', 'heading' => __('Image link', 'js_composer'), 'param_name' => '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' => '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"))));
        vc_map_update('vc_single_image', $setting_vc_single_image);
        function vc_theme_vc_single_image($atts, $content = null)
        {
            $output = $a_class = $el_class = $image = $img_size = $img_link = $img_link_target = $img_link_large = $title = $css_animation = '';
            extract(shortcode_atts(array('title' => '', 'image' => '', 'img_src' => '', 'img_size' => 'thumbnail', 'img_link_large' => false, 'link' => '', 'img_link_target' => '_self', 'el_class' => '', 'css_animation' => ''), $atts));
            $img_id = preg_replace('/[^\\d]/', '', $image);
            $img = wpb_getImageBySize(array('attach_id' => $img_id, 'thumb_size' => $img_size));
            $link_to = '';
            if ($img_link_large == true) {
                $link_to = wp_get_attachment_image_src($img_id, 'large');
                $link_to = $link_to[0];
            } else {
                if (!empty($link)) {
                    $link_to = $link;
                }
            }
            if ($img == NULL) {
                if ($img_link_large == true) {
                    $link_to = $img_src;
                }
                $img = array('thumbnail' => '<img src="' . $img_src . '">');
            }
            $el_class = ' ' . $el_class . ' ';
            if ($img_link_large == true) {
                $a_class = ' rel="lightbox"';
            }
            $image_string = !empty($link_to) ? '<a' . $a_class . ' href="' . $link_to . '"' . ($img_link_target != '_self' ? ' target="' . $img_link_target . '"' : '') . '>' . $img['thumbnail'] . '</a>' : $img['thumbnail'];
            $css_class = apply_filters(VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, 'wpb_single_image wpb_content_element' . $el_class);
            $css_class .= getCSSAnimation($css_animation);
            $output .= "\n\t" . '<div class="' . $css_class . '">';
            $output .= "\n\t\t" . '<div class="wpb_wrapper">';
            $output .= "\n\t\t\t" . wpb_widget_title(array('title' => $title, 'extraclass' => 'wpb_singleimage_heading'));
            $output .= "\n\t\t\t" . $image_string;
            $output .= "\n\t\t" . '</div> ';
            $output .= "\n\t" . '</div> ';
            return $output;
        }
        // **********************************************************************//
        // ! Accordion
        // **********************************************************************//
        function vc_theme_vc_accordion($atts, $content = null)
        {
            wp_enqueue_script('jquery-ui-accordion');
            $output = $title = $interval = $el_class = $collapsible = $active_tab = '';
            //
            extract(shortcode_atts(array('title' => '', 'interval' => 0, 'el_class' => '', 'collapsible' => 'no', 'active_tab' => '1'), $atts));
            $el_class = ' ' . $el_class . ' ';
            $css_class = apply_filters(VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, 'wpb_accordion wpb_content_element ' . $el_class . ' not-column-inherit');
            $output .= wpb_widget_title(array('title' => $title, 'extraclass' => 'wpb_accordion_heading'));
            $output .= "\n\t" . '<div class=" tabs accordion" data-active="' . $active_tab . '">';
            $output .= "\n\t\t\t" . wpb_js_remove_wpautop($content);
            $output .= "\n\t" . '</div> ';
            return $output;
        }
        function vc_theme_vc_accordion_tab($atts, $content = null)
        {
            global $tab_count;
            $output = $title = '';
            extract(shortcode_atts(array('title' => __("Section", "js_composer")), $atts));
            $tab_count++;
            $output .= "\n\t\t\t\t" . '<a href="#tab_' . $tab_count . '" id="tab_' . $tab_count . '" class="tab-title">' . $title . '</a>';
            $output .= "\n\t\t\t\t" . '<div id="content_tab_' . $tab_count . '" class="tab-content"><div class="tab-content-inner">';
            $output .= $content == '' || $content == ' ' ? __("Empty section. Edit page to add content here.", "js_composer") : "\n\t\t\t\t" . wpb_js_remove_wpautop($content);
            $output .= "\n\t\t\t\t" . '</div></div>';
            return $output;
        }
        // **********************************************************************//
        // ! Tabs
        // **********************************************************************//
        $tab_id_1 = time() . '-1-' . rand(0, 100);
        $tab_id_2 = time() . '-2-' . rand(0, 100);
        $setting_vc_tabs = array("name" => __("Tabs", "js_composer"), "show_settings_on_create" => true, "is_container" => true, "icon" => "icon-wpb-ui-tab-content", "category" => __('Content', '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 if no title is needed.", "js_composer")), array("type" => "dropdown", "heading" => __("Tabs type", "js_composer"), "param_name" => "type", "value" => array(__("Default", "js_composer") => '', __("Products Tabs", "js_composer") => 'products-tabs', __("Accordion", "js_composer") => 'accordion', __("Left bar", "js_composer") => 'left-bar', __("Right bar", "js_composer") => 'right-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"))), "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]
	      ');
        vc_map_update('vc_tabs', $setting_vc_tabs);
        // **********************************************************************//
        // ! Posts Slider
        // **********************************************************************//
        $setting_vc_posts_slider = array('params' => array(array("type" => "textfield", "heading" => __("Widget title", "js_composer"), "param_name" => "title", "description" => __("What text use as a widget title. Leave blank if no title is needed.", "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" => "posttypes", "heading" => __("Post types", "js_composer"), "param_name" => "posttypes", "description" => __("Select post types to populate posts from.", "js_composer")), array("type" => "dropdown", "heading" => __("Layout", "js_composer"), "param_name" => "layout", "value" => array(__("Horizontal", "js_composer") => "horizontal", __("Vertical", "js_composer") => "vertical")), array("type" => "textfield", "heading" => __("Number of items on desktop", ETHEME_DOMAIN), "param_name" => "desktop"), array("type" => "textfield", "heading" => __("Number of items on notebook", ETHEME_DOMAIN), "param_name" => "notebook"), array("type" => "textfield", "heading" => __("Number of items on tablet", ETHEME_DOMAIN), "param_name" => "tablet"), array("type" => "textfield", "heading" => __("Number of items on phones", ETHEME_DOMAIN), "param_name" => "phones"), array("type" => 'checkbox', "heading" => __("Output post date?", "js_composer"), "param_name" => "slides_date", "description" => __("If selected, date will be printed before the teaser text.", "js_composer"), "value" => array(__("Yes, please", "js_composer") => true)), 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: 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"))));
        vc_map_update('vc_posts_slider', $setting_vc_posts_slider);
        function vc_theme_vc_posts_slider($atts, $content = null)
        {
            $output = $title = $type = $count = $interval = $slides_content = $link = '';
            $custom_links = $thumb_size = $posttypes = $posts_in = $categories = '';
            $orderby = $order = $el_class = $link_image_start = '';
            extract(shortcode_atts(array('title' => '', 'type' => 'flexslider_fade', 'count' => 10, 'interval' => 3, 'layout' => 'vertical', 'slides_content' => '', 'slides_title' => '', 'link' => 'link_post', 'more_link' => 1, 'custom_links' => site_url() . '/', 'thumb_size' => '300x200', 'posttypes' => '', 'posts_in' => '', 'slides_date' => false, 'categories' => '', 'orderby' => NULL, 'order' => 'DESC', 'el_class' => '', 'desktop' => 3, 'notebook' => 3, 'tablet' => 2, 'phones' => 1), $atts));
            $gal_images = '';
            $link_start = '';
            $link_end = '';
            $el_start = '';
            $el_end = '';
            $slides_wrap_start = '';
            $slides_wrap_end = '';
            $el_class = ' ' . $el_class . ' ';
            $query_args = array();
            //exclude current post/page from query
            if ($posts_in == '') {
                global $post;
                $query_args['post__not_in'] = array($post->ID);
            } else {
                if ($posts_in != '') {
                    $query_args['post__in'] = explode(",", $posts_in);
                }
            }
            // Post teasers count
            if ($count != '' && !is_numeric($count)) {
                $count = -1;
            }
            if ($count != '' && is_numeric($count)) {
                $query_args['posts_per_page'] = $count;
            }
            // Post types
            $pt = array();
            if ($posttypes != '') {
                $posttypes = explode(",", $posttypes);
                foreach ($posttypes as $post_type) {
                    array_push($pt, $post_type);
                }
                $query_args['post_type'] = $pt;
            }
            // Narrow by categories
            if ($categories != '') {
                $categories = explode(",", $categories);
                $gc = array();
                foreach ($categories as $grid_cat) {
                    array_push($gc, $grid_cat);
                }
                $gc = implode(",", $gc);
                ////http://snipplr.com/view/17434/wordpress-get-category-slug/
                $query_args['category_name'] = $gc;
                $taxonomies = get_taxonomies('', 'object');
                $query_args['tax_query'] = array('relation' => 'OR');
                foreach ($taxonomies as $t) {
                    if (in_array($t->object_type[0], $pt)) {
                        $query_args['tax_query'][] = array('taxonomy' => $t->name, 'terms' => $categories, 'field' => 'slug');
                    }
                }
            }
            // Order posts
            if ($orderby != NULL) {
                $query_args['orderby'] = $orderby;
            }
            $query_args['order'] = $order;
            $thumb_size = explode('x', $thumb_size);
            $width = $thumb_size[0];
            $height = $thumb_size[1];
            $crop = true;
            $customItems = array('desktop' => $desktop, 'notebook' => $notebook, 'tablet' => $tablet, 'phones' => $phones);
            ob_start();
            etheme_create_posts_slider($query_args, $title, $more_link, $slides_date, $slides_content, $width, $height, $crop, $layout, $customItems, $el_class);
            $output = ob_get_contents();
            ob_end_clean();
            return $output;
        }
        // **********************************************************************//
        // ! Button
        // **********************************************************************//
        $setting_vc_button = array("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" => __("Type", "js_composer"), "param_name" => "type", "value" => array('bordered', 'filled'), "description" => __("Button type.", "js_composer")), array('type' => 'icon', "heading" => __("Icon", ETHEME_DOMAIN), "param_name" => "icon"), array("type" => "dropdown", "heading" => __("Size", "js_composer"), "param_name" => "size", "value" => array('small', 'medium', 'big'), "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"))));
        vc_map_update('vc_button', $setting_vc_button);
        function vc_theme_vc_button($atts, $content = null)
        {
            return etheme_btn_shortcode($atts, $content);
        }
        // **********************************************************************//
        // ! Call To Action
        // **********************************************************************//
        $setting_cta_button = array("params" => array(array("type" => "textarea_html", "heading" => __("Text", "js_composer"), "param_name" => "content", "value" => __("Click edit button to change this text.", "js_composer"), "description" => __("Enter your content.", "js_composer")), array("type" => "dropdown", "heading" => __("Block Style", "js_composer"), "param_name" => "style", "value" => array("" => "", __("Default", "js_composer") => "default", __("Full width", "js_composer") => "fullwidth", __("Filled", "js_composer") => "filled", __("Without Border", "js_composer") => "without-border", __("Dark", "js_composer") => "dark")), array("type" => "textfield", "heading" => __("Text on the button", "js_composer"), "param_name" => "title", "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" => __("Button position", "js_composer"), "param_name" => "position", "value" => array(__("Align right", "js_composer") => "right", __("Align left", "js_composer") => "left"), "description" => __("Select button alignment.", "js_composer"))));
        vc_map_update('vc_cta_button', $setting_cta_button);
        function vc_theme_vc_cta_button($atts, $content = null)
        {
            $output = $call_title = $href = $title = $call_text = $el_class = '';
            extract(shortcode_atts(array('href' => '', 'style' => '', 'title' => '', 'position' => 'right'), $atts));
            return do_shortcode('[callto btn_position="' . $position . '" btn="' . $title . '" style="' . $style . '" link="' . $href . '"]' . $content . '[/callto]');
        }
        // **********************************************************************//
        // ! Teaser grid
        // **********************************************************************//
        $setting_vc_posts_grid = array("params" => array(array("type" => "textfield", "heading" => __("Widget title", "js_composer"), "param_name" => "title", "description" => __("What text use as a 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" => __("Pagination", "js_composer"), "param_name" => "pagination", "value" => array(__("Show Pagination", "js_composer") => "show", __("Hide", "js_composer") => "hide")), 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" => __("'Posted by' block", "js_composer"), "param_name" => "posted_block", "value" => array(__("Show", "js_composer") => "show", __("Hide", "js_composer") => "hide")), array("type" => "dropdown", "heading" => __("Hover mask", "js_composer"), "param_name" => "hover_mask", "value" => array(__("Show", "js_composer") => "show", __("Hide", "js_composer") => "hide")), 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" => __("Teaser grid layout", "js_composer"), "param_name" => "grid_template", "value" => array(__("Grid", "js_composer") => "grid", __("Grid with filter", "js_composer") => "filtered_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"))));
        vc_map_update('vc_posts_grid', $setting_vc_posts_grid);
        function vc_theme_vc_posts_grid($atts, $content = null)
        {
            return etheme_teaser($atts, $content = null);
        }
        // **********************************************************************//
        // ! Progress bar
        // **********************************************************************//
        $setting_progress_bar = array("params" => array(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")));
        vc_map_update('vc_progress_bar', $setting_progress_bar);
        function vc_theme_vc_progress_bar($atts, $content = null)
        {
            $output = $title = '';
            extract(shortcode_atts(array('title' => '', 'values' => ''), $atts));
            $graph_lines = explode(",", $values);
            $output .= '<div class="progress-bars">';
            foreach ($graph_lines as $line) {
                $single_val = explode("|", $line);
                $output .= do_shortcode('[progress title="' . $single_val[1] . '" complete="' . $single_val[0] . '"]');
            }
            $output .= '</div>';
            return $output;
        }
        // **********************************************************************//
        // ! Video player
        // **********************************************************************//
        $setting_video = array("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" => "dropdown", "heading" => __("Open in popup", "js_composer"), "param_name" => "popup", "value" => array("", __("Yes", "js_composer") => "yes", __("No", "js_composer") => "no")), array('type' => 'attach_image', "heading" => __("Image placeholder", ETHEME_DOMAIN), "dependency" => array('element' => "popup", 'value' => array('yes')), "param_name" => "img"), array("type" => "textfield", "heading" => __("Image size", "js_composer"), "param_name" => "img_size", "dependency" => array('element' => "popup", 'value' => array('yes')), "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" => "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'))));
        vc_map_update('vc_video', $setting_video);
        function vc_theme_vc_video($atts)
        {
            $output = $title = $link = $size = $el_class = $img_src = '';
            extract(shortcode_atts(array('title' => '', 'link' => 'http://vimeo.com/23237102', 'size' => isset($content_width) ? $content_width : 500, 'popup' => 'no', 'img' => '', 'img_size' => '300x200', 'el_class' => '', 'css' => ''), $atts));
            if ($link == '') {
                return null;
            }
            $src = '';
            if ($popup == 'yes') {
                $img_size = explode('x', $img_size);
                $width = $img_size[0];
                $height = $img_size[1];
                if ($img != '') {
                    $src = etheme_get_image($img, $width, $height);
                } elseif ($img_src != '') {
                    $src = do_shortcode($img_src);
                }
                $text = __('Show video', ETHEME_DOMAIN);
                if ($src != '') {
                    $text = '<img src="' . $src . '">';
                }
            }
            $video_w = isset($content_width) ? $content_width : 500;
            $video_h = $video_w / 1.61;
            //1.61 golden ratio
            global $wp_embed;
            $embed = $wp_embed->run_shortcode('[embed width="' . $video_w . '"' . $video_h . ']' . $link . '[/embed]');
            $css_class = apply_filters(VC_SHORTCODE_CUSTOM_CSS_FILTER_TAG, 'wpb_video_widget wpb_content_element' . $el_class . $el_class . vc_shortcode_custom_css_class($css, ' '), 'vc_video');
            $rand = rand(1000, 9999);
            $css_class .= ' video-' . $rand;
            $output .= "\n\t" . '<div class="' . $css_class . '">';
            $output .= "\n\t\t" . '<div class="wpb_wrapper">';
            $output .= wpb_widget_title(array('title' => $title, 'extraclass' => 'wpb_video_heading'));
            if ($popup == 'yes') {
                $output .= '<a href="#" class="open-video-popup">' . $text . '</a>';
                $output .= "\n\t" . '<script type="text/javascript">';
                $output .= "\n\t\t" . 'jQuery(document).ready(function() {
						    jQuery(".video-' . $rand . ' .open-video-popup").magnificPopup({
							    items: [
							      {
							        src: "' . $link . '",
							        type: "iframe" 
							      },
							    ],
						    });
					    });';
                $output .= "\n\t" . '</script> ';
            } else {
                $output .= '<div class="wpb_video_wrapper">' . $embed . '</div>';
            }
            $output .= "\n\t\t" . '</div> ';
            $output .= "\n\t" . '</div> ';
            return $output;
        }
        // **********************************************************************//
        // ! Register New Element: Product categories
        // **********************************************************************//
        $brands_params = array('name' => 'Product categories', 'base' => 'etheme_product_categories', 'icon' => 'icon-wpb-etheme', 'category' => 'Eight Theme', 'params' => array(array("type" => "textfield", "heading" => __("Title", ETHEME_DOMAIN), "param_name" => "title"), array("type" => "textfield", "heading" => __("Number of categories", ETHEME_DOMAIN), "param_name" => "number"), array("type" => "textfield", "heading" => __("Parent ID", ETHEME_DOMAIN), "param_name" => "parent", "description" => __('Get direct children of this term (only terms whose explicit parent is this value). If 0 is passed, only top-level terms are returned. Default is an empty string.', ETHEME_DOMAIN)), array("type" => "dropdown", "heading" => __("Display type", ETHEME_DOMAIN), "param_name" => "display_type", "value" => array(__("Grid", ETHEME_DOMAIN) => 'grid', __("Slider", ETHEME_DOMAIN) => 'slider', __("Menu", ETHEME_DOMAIN) => 'menu')), array("type" => "textfield", "heading" => __("Extra Class", ETHEME_DOMAIN), "param_name" => "class")));
        vc_map($brands_params);
        // **********************************************************************//
        // ! Register New Element: Brands
        // **********************************************************************//
        $brands_params = array('name' => 'Brands', 'base' => 'brands', 'icon' => 'icon-wpb-etheme', 'category' => 'Eight Theme', 'params' => array(array("type" => "textfield", "heading" => __("Title", ETHEME_DOMAIN), "param_name" => "title"), array("type" => "dropdown", "heading" => __("Display type", ETHEME_DOMAIN), "param_name" => "display_type", "value" => array(__("Slider", ETHEME_DOMAIN) => 'slider', __("Grid", ETHEME_DOMAIN) => 'grid')), array("type" => "dropdown", "heading" => __("Number of columns", ETHEME_DOMAIN), "param_name" => "columns", "dependency" => array('element' => "display_type", 'value' => array('grid')), "value" => array('2' => 2, '3' => 3, '4' => 4, '5' => 5, '6' => 6)), array("type" => "textfield", "heading" => __("Number of brands", ETHEME_DOMAIN), "param_name" => "number"), array("type" => "dropdown", "heading" => __("Order by", "js_composer"), "param_name" => "orderby", "value" => array("", __("ID", "js_composer") => "id", __("Count", "js_composer") => "count", __("Name", "js_composer") => "name", __("Slug", "js_composer") => "slug")), 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" => __("Parent ID", ETHEME_DOMAIN), "param_name" => "parent", "description" => __('Get direct children of this term (only terms whose explicit parent is this value). If 0 is passed, only top-level terms are returned. Default is an empty string.', ETHEME_DOMAIN)), array("type" => "textfield", "heading" => __("Extra Class", ETHEME_DOMAIN), "param_name" => "class")));
        vc_map($brands_params);
        // **********************************************************************//
        // ! Register New Element: Search Form
        // **********************************************************************//
        $search_params = array('name' => 'Mega Search Form', 'base' => 'etheme_search', 'icon' => 'icon-wpb-etheme', 'category' => 'Eight Theme', 'params' => array(array("type" => "dropdown", "heading" => __("Search for products", "js_composer"), "param_name" => "products", "value" => array("", __("Yes", ETHEME_DOMAIN) => 1, __("No", ETHEME_DOMAIN) => 0)), array("type" => "dropdown", "heading" => __("Display images for products", ETHEME_DOMAIN), "param_name" => "images", "value" => array("", __("Yes", ETHEME_DOMAIN) => 1, __("No", ETHEME_DOMAIN) => 0)), array("type" => "dropdown", "heading" => __("Search for posts", "js_composer"), "param_name" => "posts", "value" => array("", __("Yes", ETHEME_DOMAIN) => 1, __("No", ETHEME_DOMAIN) => 0)), array("type" => "dropdown", "heading" => __("Search in portfolio", "js_composer"), "param_name" => "portfolio", "value" => array("", __("Yes", ETHEME_DOMAIN) => 1, __("No", ETHEME_DOMAIN) => 0)), array("type" => "dropdown", "heading" => __("Search for pages", "js_composer"), "param_name" => "pages", "value" => array("", __("Yes", ETHEME_DOMAIN) => 1, __("No", ETHEME_DOMAIN) => 0)), array("type" => "textfield", "heading" => __("Number of items from each section", ETHEME_DOMAIN), "param_name" => "count"), array("type" => "textfield", "heading" => __("Extra Class", ETHEME_DOMAIN), "param_name" => "class")));
        vc_map($search_params);
        // **********************************************************************//
        // ! Register New Element: Twitter Slider
        // **********************************************************************//
        $twitter_params = array('name' => 'Twitter Slider', 'base' => 'twitter_slider', 'icon' => 'icon-wpb-etheme', 'category' => 'Eight Theme', 'params' => array(array("type" => "textfield", "heading" => __("Title", ETHEME_DOMAIN), "param_name" => "title"), array("type" => "textfield", "heading" => __("User account name", ETHEME_DOMAIN), "param_name" => "user"), array("type" => "textfield", "heading" => __("Consumer Key", ETHEME_DOMAIN), "param_name" => "consumer_key"), array("type" => "textfield", "heading" => __("Consumer Secret", ETHEME_DOMAIN), "param_name" => "consumer_secret"), array("type" => "textfield", "heading" => __("User Token", ETHEME_DOMAIN), "param_name" => "user_token"), array("type" => "textfield", "heading" => __("User Secret", ETHEME_DOMAIN), "param_name" => "user_secret"), array("type" => "textfield", "heading" => __("Limit", ETHEME_DOMAIN), "param_name" => "limit"), array("type" => "textfield", "heading" => __("Extra Class", ETHEME_DOMAIN), "param_name" => "class")));
        vc_map($twitter_params);
        // **********************************************************************//
        // ! Register New Element: Testimonials Widget
        // **********************************************************************//
        $testimonials_params = array('name' => 'Testimonials widget', 'base' => 'testimonials', 'icon' => 'icon-wpb-etheme', 'category' => 'Eight Theme', 'params' => array(array("type" => "textfield", "heading" => __("Limit", ETHEME_DOMAIN), "param_name" => "limit", "description" => __('How many testimonials to show? Enter number.', ETHEME_DOMAIN)), array("type" => "dropdown", "heading" => __("Display type", "js_composer"), "param_name" => "type", "value" => array("", __("Slider", ETHEME_DOMAIN) => 'slider', __("Grid", ETHEME_DOMAIN) => 'grid')), array("type" => "textfield", "heading" => __("Interval", ETHEME_DOMAIN), "param_name" => "interval", "description" => __('Interval between slides. In milliseconds. Default: 10000', ETHEME_DOMAIN), "dependency" => array('element' => "type", 'value' => array('slider'))), array("type" => "dropdown", "heading" => __("Show Control Navigation", "js_composer"), "param_name" => "navigation", "dependency" => array('element' => "type", 'value' => array('slider')), "value" => array("", __("Hide", ETHEME_DOMAIN) => false, __("Show", ETHEME_DOMAIN) => true)), array("type" => "textfield", "heading" => __("Category", ETHEME_DOMAIN), "param_name" => "category", "description" => __('Display testimonials from category.', ETHEME_DOMAIN))));
        vc_map($testimonials_params);
        // **********************************************************************//
        // ! Register New Element: Recent Comments Widget
        // **********************************************************************//
        $recent_comments_params = array('name' => 'Recent comments widget', 'base' => 'et_recent_comments', 'icon' => 'icon-wpb-etheme', 'category' => 'Eight Theme', 'params' => array(array('type' => 'textfield', "heading" => __("Widget title", ETHEME_DOMAIN), "param_name" => "title", "description" => __("What text use as a widget title. Leave blank if no title is needed.", ETHEME_DOMAIN)), array("type" => "textfield", "heading" => __("Limit", ETHEME_DOMAIN), "param_name" => "number", "description" => __('How many testimonials to show? Enter number.', ETHEME_DOMAIN))));
        vc_map($recent_comments_params);
        // **********************************************************************//
        // ! Register New Element: Recent Posts Widget
        // **********************************************************************//
        $recent_posts_params = array('name' => 'Recent posts widget', 'base' => 'et_recent_posts_widget', 'icon' => 'icon-wpb-etheme', 'category' => 'Eight Theme', 'params' => array(array('type' => 'textfield', "heading" => __("Widget title", ETHEME_DOMAIN), "param_name" => "title", "description" => __("What text use as a widget title. Leave blank if no title is needed.", ETHEME_DOMAIN)), array("type" => "dropdown", "heading" => __("Enable slider", "js_composer"), "param_name" => "slider", "value" => array("", __("Enable", ETHEME_DOMAIN) => 1, __("Disable", ETHEME_DOMAIN) => 0)), array("type" => "textfield", "heading" => __("Limit", ETHEME_DOMAIN), "param_name" => "number", "description" => __('How many testimonials to show? Enter number.', ETHEME_DOMAIN))));
        vc_map($recent_posts_params);
        // **********************************************************************//
        // ! Register New Element: Team Member
        // **********************************************************************//
        $team_member_params = array('name' => 'Team member', 'base' => 'team_member', 'icon' => 'icon-wpb-etheme', 'category' => 'Eight Theme', 'params' => array(array('type' => 'textfield', "heading" => __("Member name", ETHEME_DOMAIN), "param_name" => "name"), array('type' => 'textfield', "heading" => __("Member email", ETHEME_DOMAIN), "param_name" => "email"), array('type' => 'textfield', "heading" => __("Position", ETHEME_DOMAIN), "param_name" => "position"), array('type' => 'attach_image', "heading" => __("Avatar", ETHEME_DOMAIN), "param_name" => "img"), array("type" => "textfield", "heading" => __("Image size", "js_composer"), "param_name" => "img_size", "description" => __("Enter image size. Example in pixels: 200x100 (Width x Height).", "js_composer")), array("type" => "textarea_html", "holder" => "div", "heading" => __("Member information", "js_composer"), "param_name" => "content", "value" => __("Member description", "js_composer")), array("type" => "dropdown", "heading" => __("Display Type", "js_composer"), "param_name" => "type", "value" => array("", __("Vertical", ETHEME_DOMAIN) => 1, __("Horizontal", ETHEME_DOMAIN) => 2)), array('type' => 'textfield', "heading" => __("Twitter link", ETHEME_DOMAIN), "param_name" => "twitter"), array('type' => 'textfield', "heading" => __("Facebook link", ETHEME_DOMAIN), "param_name" => "facebook"), array('type' => 'textfield', "heading" => __("Linkedin", ETHEME_DOMAIN), "param_name" => "linkedin"), array('type' => 'textfield', "heading" => __("Skype name", ETHEME_DOMAIN), "param_name" => "skype"), array('type' => 'textfield', "heading" => __("Instagram", ETHEME_DOMAIN), "param_name" => "instagram"), array("type" => "textfield", "heading" => __("Extra Class", ETHEME_DOMAIN), "param_name" => "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.', ETHEME_DOMAIN))));
        vc_map($team_member_params);
        // **********************************************************************//
        // ! Register New Element: Icon
        // **********************************************************************//
        $icon_params = array('name' => 'Awesome Icon', 'base' => 'icon', 'icon' => 'icon-wpb-etheme', 'category' => 'Eight Theme', 'params' => array(array('type' => 'icon', "heading" => __("Icon", ETHEME_DOMAIN), "param_name" => "name"), array('type' => 'textfield', "heading" => __("Size", ETHEME_DOMAIN), "param_name" => "size", "description" => __('For example: 64', ETHEME_DOMAIN)), array('type' => 'colorpicker', "heading" => __("Color", ETHEME_DOMAIN), "param_name" => "color"), array("type" => "textfield", "heading" => __("Extra Class", ETHEME_DOMAIN), "param_name" => "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.', ETHEME_DOMAIN))));
        //vc_map($icon_params);
        // **********************************************************************//
        // ! Register New Element: Icon Box
        // **********************************************************************//
        $icon_box_params = array('name' => 'Icon Box', 'base' => 'icon_box', 'icon' => 'icon-wpb-etheme', 'category' => 'Eight Theme', 'params' => array(array('type' => 'textfield', "heading" => __("Box title", ETHEME_DOMAIN), "param_name" => "title"), array('type' => 'icon', "heading" => __("Icon", ETHEME_DOMAIN), "param_name" => "icon"), array('type' => 'colorpicker', "heading" => __("Icon Color", ETHEME_DOMAIN), "param_name" => "color"), array('type' => 'colorpicker', "heading" => __("Background Color", ETHEME_DOMAIN), "param_name" => "bg_color"), array('type' => 'colorpicker', "heading" => __("Icon Color [HOVER]", ETHEME_DOMAIN), "param_name" => "color_hover"), array('type' => 'colorpicker', "heading" => __("Background Color [HOVER]", ETHEME_DOMAIN), "param_name" => "bg_color_hover"), array("type" => "textarea_html", 'admin_label' => true, "heading" => __("Text", "js_composer"), "param_name" => "content", "value" => __("Click edit button to change this text.", "js_composer"), "description" => __("Enter your content.", "js_composer")), array("type" => "dropdown", "heading" => __("Icon Position", "js_composer"), "param_name" => "icon_position", "value" => array("", __("Top", ETHEME_DOMAIN) => 'top', __("Left", ETHEME_DOMAIN) => 'left')), array("type" => "dropdown", "heading" => __("Icon Style", "js_composer"), "param_name" => "icon_style", "value" => array(__("Encircled", ETHEME_DOMAIN) => 'encircled', __("Small", ETHEME_DOMAIN) => 'small', __("Large", ETHEME_DOMAIN) => 'large')), array("type" => "textfield", "heading" => __("Extra Class", ETHEME_DOMAIN), "param_name" => "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.', ETHEME_DOMAIN))));
        //vc_map($icon_box_params);
        // **********************************************************************//
        // ! Register New Element: Banner with mask
        // **********************************************************************//
        $banner_params = array('name' => 'Banner', 'base' => 'banner', 'icon' => 'icon-wpb-etheme', 'category' => 'Eight Theme', 'params' => array(array('type' => 'attach_image', "heading" => __("Banner Image", ETHEME_DOMAIN), "param_name" => "img"), array("type" => "textfield", "heading" => __("Banner size", "js_composer"), "param_name" => "img_size", "description" => __("Enter image size. Example in pixels: 200x100 (Width x Height).", "js_composer")), array("type" => "textfield", "heading" => __("Link", "js_composer"), "param_name" => "link"), array("type" => "textarea_html", "holder" => "div", "heading" => "Banner Mask Text", "param_name" => "content", "value" => "Some promo text"), array("type" => "dropdown", "heading" => __("Horizontal align", ETHEME_DOMAIN), "param_name" => "align", "value" => array("", __("Left", ETHEME_DOMAIN) => "left", __("Center", ETHEME_DOMAIN) => "center", __("Right", ETHEME_DOMAIN) => "right")), array("type" => "dropdown", "heading" => __("Vertical align", ETHEME_DOMAIN), "param_name" => "valign", "value" => array(__("Top", ETHEME_DOMAIN) => "top", __("Middle", ETHEME_DOMAIN) => "middle", __("Bottom", ETHEME_DOMAIN) => "bottom")), array("type" => "dropdown", "heading" => __("Hover effect", ETHEME_DOMAIN), "param_name" => "hover", "value" => array("", __("zoom", ETHEME_DOMAIN) => "zoom", __("fade", ETHEME_DOMAIN) => "fade")), array("type" => 'checkbox', "heading" => __("Responsive fonts", ETHEME_DOMAIN), "param_name" => "responsive_zoom", "value" => array(__("Yes, please", "js_composer") => 'yes')), array("type" => "textfield", "heading" => __("Extra Class", ETHEME_DOMAIN), "param_name" => "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.', ETHEME_DOMAIN))));
        vc_map($banner_params);
        // **********************************************************************//
        // ! Register New Element:Pricing Table
        // **********************************************************************//
        $demoTable = "\n\t" . '<ul>';
        $demoTable .= "\n\t\t" . '<li class="row-title">Free</li>';
        $demoTable .= "\n\t\t" . '<li class="row-price"><sup class="currency">$</sup>19<sup>00</sup><sub>per month</sub></li>';
        $demoTable .= "\n\t\t" . '<li>512 mb</li>';
        $demoTable .= "\n\t\t" . '<li>0.6 GHz</li>';
        $demoTable .= "\n\t\t" . '<li>Lorem ipsum dolor sit amet, consectetur adipisicing elit.</li>';
        $demoTable .= "\n\t\t" . '<li><a href="#" class="button">Add to Cart</a></li>';
        $demoTable .= "\n\t" . '</ul>';
        $ptable_params = array('name' => 'Pricing Table', 'base' => 'ptable', 'icon' => 'icon-wpb-etheme', 'category' => 'Eight Theme', 'params' => array(array("type" => "textarea_html", "holder" => "div", "heading" => "Table", "param_name" => "content", "value" => $demoTable), array("type" => "dropdown", "heading" => __("Style", ETHEME_DOMAIN), "param_name" => "style", "value" => array("", __("default", ETHEME_DOMAIN) => "default", __("Style 2", ETHEME_DOMAIN) => "style2")), array("type" => "textfield", "heading" => __("Extra Class", ETHEME_DOMAIN), "param_name" => "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.', ETHEME_DOMAIN))));
        vc_map($ptable_params);
        // **********************************************************************//
        // ! Register New Element: Single post
        // **********************************************************************//
        $fpost_params = array('name' => 'Single blog post', 'base' => 'single_post', 'icon' => 'icon-wpb-etheme', 'category' => 'Eight Theme', 'params' => array(array("type" => "textfield", "heading" => __("Title", ETHEME_DOMAIN), "param_name" => "title"), array("type" => "textfield", "heading" => __("Post ID", ETHEME_DOMAIN), "param_name" => "id"), array("type" => "dropdown", "heading" => __("Show more posts link", ETHEME_DOMAIN), "param_name" => "more_posts", "value" => array("", __("Show", ETHEME_DOMAIN) => 1, __("Hide", ETHEME_DOMAIN) => 0)), array("type" => "textfield", "heading" => __("Extra Class", ETHEME_DOMAIN), "param_name" => "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.', ETHEME_DOMAIN))));
        //vc_map($fpost_params);
        // **********************************************************************//
        // ! Register New Element: Teaser Box
        // **********************************************************************//
        $teaser_box_params = array('name' => 'Teaser Box', 'base' => 'teaser_box', 'icon' => 'icon-wpb-etheme', 'category' => 'Eight Theme', 'params' => array(array("type" => "textfield", "heading" => __("Title", ETHEME_DOMAIN), "param_name" => "title"), array('type' => 'attach_image', "heading" => __("Image", ETHEME_DOMAIN), "param_name" => "img"), array("type" => "textfield", "heading" => __("Image size", "js_composer"), "param_name" => "img_size", "description" => __("Enter image size. Example in pixels: 200x100 (Width x Height).", "js_composer")), array("type" => "textarea_html", 'admin_label' => true, "heading" => __("Text", "js_composer"), "param_name" => "content", "value" => __("Click edit button to change this text.", "js_composer"), "description" => __("Enter your content.", "js_composer")), array("type" => "dropdown", "heading" => __("Style", ETHEME_DOMAIN), "param_name" => "style", "value" => array(__("Default", ETHEME_DOMAIN) => 'default', __("Bordered", ETHEME_DOMAIN) => 'bordered')), array("type" => "textfield", "heading" => __("Extra Class", ETHEME_DOMAIN), "param_name" => "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.', ETHEME_DOMAIN))));
        vc_map($teaser_box_params);
        // **********************************************************************//
        // ! Register New Element: Products
        // **********************************************************************//
        $static_blocks = array('--choose--' => '');
        foreach (et_get_static_blocks() as $value) {
            $static_blocks[$value['label']] = $value['value'];
        }
        $fpost_params = array('name' => 'Products', 'base' => 'etheme_products', 'icon' => 'icon-wpb-etheme', 'category' => 'Eight Theme', 'params' => array(array("type" => "textfield", "heading" => __("Title", ETHEME_DOMAIN), "param_name" => "title"), array("type" => "textfield", "heading" => __("IDs", ETHEME_DOMAIN), "param_name" => "ids"), array("type" => "textfield", "heading" => __("SKUs", ETHEME_DOMAIN), "param_name" => "skus"), array("type" => "dropdown", "heading" => __("Hover effect", ETHEME_DOMAIN), "param_name" => "product_img_hover", "value" => array(__("", ETHEME_DOMAIN) => '', __("Disable", ETHEME_DOMAIN) => 'disable', __("Swap", ETHEME_DOMAIN) => 'swap', __("Images Slider", ETHEME_DOMAIN) => 'slider', __("Mask with information", ETHEME_DOMAIN) => 'mask')), array("type" => "dropdown", "heading" => __("Display Type", ETHEME_DOMAIN), "param_name" => "type", "value" => array(__("Slider", ETHEME_DOMAIN) => 'slider', __("Slider full width (LOOK BOOK)", ETHEME_DOMAIN) => 'full-width', __("Grid", ETHEME_DOMAIN) => 'grid', __("List", ETHEME_DOMAIN) => 'list')), array("type" => "dropdown", "dependency" => array('element' => "type", 'value' => array('full-width')), "heading" => __("Static block for the first slide of the LOOK BOOK", ETHEME_DOMAIN), "param_name" => "block_id", "value" => $static_blocks), array("type" => "textfield", "heading" => __("Columns", ETHEME_DOMAIN), "param_name" => "columns", "dependency" => array('element' => "type", 'value' => array('grid'))), array("type" => "dropdown", "heading" => __("Product view", ETHEME_DOMAIN), "param_name" => "style", "dependency" => array('element' => "type", 'value' => array('slider')), "value" => array(__("Default", ETHEME_DOMAIN) => 'default', __("Advanced", ETHEME_DOMAIN) => 'advanced')), array("type" => "textfield", "heading" => __("Number of items on desktop", ETHEME_DOMAIN), "param_name" => "desktop", "dependency" => array('element' => "type", 'value' => array('slider'))), array("type" => "textfield", "heading" => __("Number of items on notebook", ETHEME_DOMAIN), "param_name" => "notebook", "dependency" => array('element' => "type", 'value' => array('slider'))), array("type" => "textfield", "heading" => __("Number of items on tablet", ETHEME_DOMAIN), "param_name" => "tablet", "dependency" => array('element' => "type", 'value' => array('slider'))), array("type" => "textfield", "heading" => __("Number of items on phones", ETHEME_DOMAIN), "param_name" => "phones", "dependency" => array('element' => "type", 'value' => array('slider'))), array("type" => "dropdown", "heading" => __("Products type", ETHEME_DOMAIN), "param_name" => "products", "value" => array(__("All", ETHEME_DOMAIN) => '', __("Featured", ETHEME_DOMAIN) => 'featured', __("New", ETHEME_DOMAIN) => 'new', __("Sale", ETHEME_DOMAIN) => 'sale', __("Recently viewed", ETHEME_DOMAIN) => 'recently_viewed', __("Bestsellings", ETHEME_DOMAIN) => 'bestsellings')), array("type" => "textfield", "heading" => __("Limit", ETHEME_DOMAIN), "param_name" => "limit"), array("type" => "textfield", "heading" => __("Categories IDs", ETHEME_DOMAIN), "param_name" => "categories")));
        vc_map($fpost_params);
    }
Exemplo n.º 29
0
    // wp_enqueue_style( 'berg-wp-style', THEME_DIR_URI .'/admin/includes/css/admin.css' );
}
/*
** visual composer remove elements and chcange params
*/
if (defined('WPB_VC_VERSION')) {
    vc_remove_param("vc_button", "color");
    vc_add_param("vc_button", array('type' => 'dropdown', 'heading' => __('Color', THEME_NAME), 'param_name' => 'color', 'value' => array('Outline 1' => 'btn-default', 'Outline 2' => 'btn-white', 'Highlight color' => 'btn-color', 'Background color' => 'btn-dark'), 'description' => __('Button color.', THEME_NAME), 'param_holder_class' => 'vc_colored-dropdown'));
    vc_remove_param("vc_button", "size");
    vc_add_param("vc_button", array('type' => 'dropdown', 'heading' => __('Size', THEME_NAME), 'param_name' => 'size', 'value' => array('Regular size' => '', 'Large' => 'btn-lg', 'Small' => 'btn-sm', 'Mini' => 'btn-xs'), 'description' => __('Button size.', THEME_NAME)));
    vc_remove_param("vc_button", "icon");
    vc_remove_param("vc_cta_button", "icon");
    vc_remove_param("vc_cta_button", "color");
    vc_add_param("vc_cta_button", array('type' => 'dropdown', 'heading' => __('Color', THEME_NAME), 'param_name' => 'color', 'value' => array('Outline 1' => 'btn-default', 'Outline 2' => 'btn-white', 'Highlight color' => 'btn-color', 'Background color' => 'btn-dark'), 'description' => __('Button color.', THEME_NAME), 'param_holder_class' => 'vc_colored-dropdown'));
    vc_remove_param("vc_cta_button", "size");
    vc_add_param("vc_cta_button", array('type' => 'dropdown', 'heading' => __('Size', THEME_NAME), 'param_name' => 'size', 'value' => array('Regular size' => '', 'Large' => 'btn-lg', 'Small' => 'btn-sm', 'Mini' => 'btn-xs'), 'description' => __('Button size.', THEME_NAME)));
    // vc_remove_element("vc_gallery");
    vc_remove_element("vc_button2");
    vc_remove_element("vc_cta_button2");
    vc_remove_element("vc_posts_slider");
    vc_remove_element("vc_carousel");
}
function removeElements()
{
    if (defined('WPB_VC_VERSION')) {
        vc_remove_element("vc_facebook");
        vc_remove_element("vc_tweetmeme");
        vc_remove_element("vc_googleplus");
        vc_remove_element("vc_pinterest");
        vc_remove_element("vc_images_carousel");
        vc_remove_element("vc_tabs");
Exemplo n.º 30
0
vc_add_param("vc_column_inner", array("type" => "dropdown", "class" => "", "heading" => "Animation", "admin_label" => true, "param_name" => "animation", "value" => array("None" => "", "Left" => "animation right-to-left", "Right" => "animation left-to-right", "Top" => "animation bottom-to-top", "Bottom" => "animation top-to-bottom", "Scale" => "animation scale", "Fade" => "animation fade-in"), "description" => ""));
// Add parameters to rows
vc_add_param("vc_row", array("type" => "textfield", "class" => "", "heading" => "ID", "param_name" => "row_id", "value" => "", "description" => "The ID of this row. Remember, you should always use a unique ID for each row. This is used for One Page Navigation."));
vc_add_param("vc_row", array("type" => "dropdown", "class" => "", "heading" => "Type", "param_name" => "type", "value" => array("In Container" => "in_container", "Full Width Background" => "full_width_background", "Full Width Content" => "full_width_content")));
vc_add_param("vc_row", array("type" => "checkbox", "class" => "", "heading" => "Disable Column Padding", "param_name" => "column_padding", "value" => array("" => "false"), "description" => "You can have columns without spaces using this option"));
vc_add_param("vc_row", array("type" => "checkbox", "class" => "", "heading" => "Equal-height Columns", "param_name" => "equal_height", "value" => array("" => "true"), "description" => "You can have columns with same height using this option"));
vc_add_param("vc_row", array("type" => "checkbox", "class" => "", "heading" => "Full Height Row", "param_name" => "full_height", "value" => array("" => "true"), "description" => "If enabled, this will cause this row to always fill the height of the window."));
vc_add_param("vc_row_inner", array("type" => "checkbox", "class" => "", "heading" => "Disable Column Padding", "param_name" => "column_padding", "value" => array("" => "false"), "description" => "You can have columns without spaces using this option"));
vc_add_param("vc_row_inner", array("type" => "checkbox", "class" => "", "heading" => "Equal-height Columns", "param_name" => "equal_height", "value" => array("" => "true"), "description" => "You can have columns with same height using this option"));
vc_add_param("vc_row", array("type" => "checkbox", "class" => "", "heading" => "Enable parallax", "param_name" => "enable_parallax", "value" => array("" => "false")));
vc_add_param("vc_row", array("type" => "textfield", "class" => "", "heading" => "Parallax Speed", "param_name" => "parallax_speed", "value" => "1", "dependency" => array("element" => "enable_parallax", "not_empty" => true), "description" => "A value between 1 and 10 is recommended. Larger values are slower."));
vc_add_param("vc_row", array("type" => "dropdown", "class" => "", "heading" => "Parallax Direction", "param_name" => "parallax_direction", "value" => array("Up" => "up", "Down" => "down"), "dependency" => array("element" => "enable_parallax", "not_empty" => true), "description" => "Do you want the image to move up or down?"));
vc_add_param("vc_row", array("type" => "textfield", "class" => "", "heading" => "Video background (mp4)", "param_name" => "bg_video_src_mp4", "value" => "", "description" => "You must include the ogv & the mp4 format to render your video with cross browser compatibility. OGV is optional. Video must be in a 16:9 aspect ratio. The row background image will be used in mobile devices."));
vc_add_param("vc_row", array("type" => "textfield", "class" => "", "heading" => "Video background (ogv)", "param_name" => "bg_video_src_ogv", "value" => ""));
vc_add_param("vc_row", array("type" => "textfield", "class" => "", "heading" => "Video background (webm)", "param_name" => "bg_video_src_webm", "value" => ""));
vc_add_param("vc_row", array("type" => "colorpicker", "class" => "", "heading" => "Video Overlay Color", "param_name" => "bg_video_overlay_color", "value" => "", "description" => "If you want, you can select an overlay color."));
// Add / Remove parameters
vc_remove_param("vc_row", "full_width");
vc_remove_param("vc_row", "parallax");
vc_remove_param("vc_tta_tabs", "style");
vc_remove_param("vc_tta_tabs", "shape");
vc_remove_param("vc_tta_tabs", "color");
vc_remove_param("vc_tta_tabs", "no_fill_content_area");
vc_remove_param("vc_tta_tabs", "spacing");
vc_remove_param("vc_tta_tabs", "gap");
vc_remove_param("vc_tta_tabs", "alignment");
vc_remove_param("vc_tta_tabs", "pagination_color");
vc_remove_param("vc_tta_tabs", "pagination_style");
// Banner shortcode
vc_map(array("name" => __("Banner", THB_THEME_NAME), "base" => "thb_banner", "icon" => "thb_vc_ico_banner", "class" => "thb_vc_sc_banner", "category" => "by Fuel Themes", "params" => array(array("type" => "attach_image", "class" => "", "heading" => "Select Background Image", "param_name" => "banner_bg", "description" => ""), array("type" => "textfield", "heading" => "Banner Height", "param_name" => "banner_height", "description" => "Enter height of the banner in px."), array("type" => "dropdown", "class" => "", "heading" => "Banner Effect", "param_name" => "type", "value" => array("Lily" => "effect-lily", "Sadie" => "effect-sadie", "Honey" => "effect-honey", "layla" => "effect-layla", "Marley" => "effect-marley", "Ruby" => "effect-ruby", "Roxy" => "effect-roxy", "Bubba" => "effect-bubba", "Romeo" => "effect-romeo", "Dexter" => "effect-dexter", "Sarah" => "effect-sarah", "Chico" => "effect-chico", "Milo" => "effect-milo"), "description" => "You can see the effects here: http://themes.fuelthemes.net/skillful/banners/"), array("type" => "textfield", "heading" => "Title", "param_name" => "title", "admin_label" => true), array("type" => "textfield", "heading" => "Sub Title", "param_name" => "subtitle"), array("type" => "textfield", "heading" => "Link", "param_name" => "overlay_link")), "description" => "Display different banner styles"));
// Button shortcode