Пример #1
0
/**
 * Adds the shortcode to the Visual Composer
 *
 * @since 2.0.0
 */
function vcex_social_links_vc_map()
{
    // Define map array
    $array = array('name' => esc_html__('Social Links', 'total'), 'description' => esc_html__('Display social links using icon fonts', 'total'), 'base' => 'vcex_social_links', 'category' => wpex_get_theme_branding(), 'icon' => 'vcex-social-links vcex-icon fa fa-user-plus');
    // Create params for array
    $params = array(array('type' => 'textfield', 'heading' => esc_html__('Unique Id', 'total'), 'param_name' => 'unique_id'), array('type' => 'textfield', 'heading' => esc_html__('Classes', 'total'), 'param_name' => 'classes'), array('type' => 'dropdown', 'heading' => esc_html__('Style', 'total'), 'param_name' => 'style', 'value' => array_flip(wpex_social_button_styles())), array('type' => 'dropdown', 'heading' => esc_html__('Visibility', 'total'), 'param_name' => 'visibility', 'value' => array_flip(wpex_visibility())), array('type' => 'dropdown', 'heading' => esc_html__('Appear Animation', 'total'), 'param_name' => 'css_animation', 'value' => array_flip(wpex_css_animations())), array('type' => 'dropdown', 'heading' => esc_html__('Hover Animation', 'total'), 'param_name' => 'hover_animation', 'value' => array_flip(wpex_hover_css_animations())), array('type' => 'dropdown', 'heading' => esc_html__('Link Target', 'total'), 'param_name' => 'link_target', 'value' => array(__('Self', 'total') => '', __('Blank', 'total') => 'blank')));
    // Get array of social links to loop through
    $social_links = vcex_social_links_profiles();
    // Loop through social links and add to params
    foreach ($social_links as $key => $val) {
        $desc = 'email' == $key ? esc_html__('Format: mailto:email@site.com', 'total') : '';
        $params[] = array('type' => 'textfield', 'heading' => $val['label'], 'param_name' => $key, 'group' => esc_html__('Profiles', 'total'), 'description' => $desc);
    }
    // Add CSS option
    $params[] = array('type' => 'css_editor', 'heading' => esc_html__('CSS', 'total'), 'param_name' => 'css', 'group' => esc_html__('Design', 'total'));
    $params[] = array('type' => 'dropdown', 'heading' => esc_html__('Align', 'total'), 'param_name' => 'align', 'value' => array_flip(wpex_alignments()), 'group' => esc_html__('Design', 'total'));
    $params[] = array('type' => 'textfield', 'heading' => esc_html__('Font Size', 'total'), 'param_name' => 'size', 'group' => esc_html__('Design', 'total'));
    $params[] = array('type' => 'textfield', 'heading' => esc_html__('Width', 'total'), 'param_name' => 'width', 'group' => esc_html__('Design', 'total'));
    $params[] = array('type' => 'textfield', 'heading' => esc_html__('Height', 'total'), 'param_name' => 'height', 'group' => esc_html__('Design', 'total'));
    $params[] = array('type' => 'textfield', 'heading' => esc_html__('Border Radius', 'total'), 'param_name' => 'border_radius', 'group' => esc_html__('Design', 'total'));
    $params[] = array('type' => 'colorpicker', 'heading' => esc_html__('Color', 'total'), 'param_name' => 'color', 'group' => esc_html__('Design', 'total'));
    $params[] = array('type' => 'colorpicker', 'heading' => esc_html__('Hover Background', 'total'), 'param_name' => 'hover_bg', 'group' => esc_html__('Design', 'total'));
    $params[] = array('type' => 'colorpicker', 'heading' => esc_html__('Hover Color', 'total'), 'param_name' => 'hover_color', 'group' => esc_html__('Design', 'total'));
    // Add params to array
    $array['params'] = $params;
    // Return $array
    return $array;
}
/**
 * Adds the shortcode to the Visual Composer
 *
 * @since 1.4.1
 */
function vcex_navbar_vc_map()
{
    // Create an array of menu items
    $menus_array = array(__('None', 'wpex') => '');
    if (is_admin()) {
        $menus = get_terms('nav_menu', array('hide_empty' => true));
        foreach ($menus as $menu) {
            $menus_array[$menu->name] = $menu->term_id;
        }
    }
    // Map the shortcode
    vc_map(array('name' => __('Navigation Bar', 'wpex'), 'description' => __('Custom menu navigation bar', 'wpex'), 'base' => 'vcex_navbar', 'icon' => 'vcex-navbar vcex-icon fa fa-navicon', 'category' => WPEX_THEME_BRANDING, 'params' => array(array('type' => 'textfield', 'admin_label' => true, 'heading' => __('Unique Id', 'wpex'), 'param_name' => 'unique_id'), array('type' => 'textfield', 'admin_label' => true, 'heading' => __('Classes', 'wpex'), 'param_name' => 'classes'), array('type' => 'dropdown', 'admin_label' => true, 'heading' => __('Menu', 'wpex'), 'param_name' => 'menu', 'std' => '', 'value' => $menus_array, 'save_always' => true), array('type' => 'dropdown', 'heading' => __('Alignment', 'wpex'), 'param_name' => 'align', 'value' => array_flip(wpex_alignments())), array('type' => 'dropdown', 'heading' => __('Visibility', 'wpex'), 'param_name' => 'visibility', 'value' => array_flip(wpex_visibility())), array('type' => 'dropdown', 'heading' => __('Appear Animation', 'wpex'), 'param_name' => 'css_animation', 'value' => array_flip(wpex_css_animations())), array('type' => 'dropdown', 'heading' => __('Hover Animation', 'wpex'), 'param_name' => 'hover_animation', 'value' => array_flip(wpex_hover_css_animations()), 'std' => ''), array('type' => 'dropdown', 'heading' => __('Local Scroll menu', 'wpex'), 'param_name' => 'local_scroll', 'value' => array(__('No', 'wpex') => 'false', __('Yes', 'wpex') => 'true')), array('type' => 'dropdown', 'admin_label' => true, 'heading' => __('Style', 'wpex'), 'param_name' => 'style', 'std' => 'buttons', 'group' => __('Design', 'wpex'), 'value' => array(__('Buttons', 'wpex') => 'buttons', __('Simple', 'wpex') => 'simple')), array('type' => 'dropdown', 'heading' => __('Button Style', 'wpex'), 'param_name' => 'button_style', 'value' => array_flip(wpex_button_styles()), 'group' => __('Design', 'wpex'), 'std' => 'minimal-border', 'dependency' => array('element' => 'style', 'value' => 'buttons')), array('type' => 'dropdown', 'heading' => __('Button Color', 'wpex'), 'param_name' => 'button_color', 'std' => '', 'value' => array_flip(wpex_button_colors()), 'group' => __('Design', 'wpex'), 'dependency' => array('element' => 'style', 'value' => 'buttons')), array('type' => 'dropdown', 'heading' => __('Layout', 'wpex'), 'param_name' => 'button_layout', 'value' => array(__('Default', 'wpex') => '', __('Expanded', 'wpex') => 'expanded'), 'group' => __('Design', 'wpex'), 'dependency' => array('element' => 'style', 'value' => 'buttons')), array('type' => 'textfield', 'heading' => __('Font Size', 'wpex'), 'param_name' => 'font_size', 'group' => __('Design', 'wpex')), array('type' => 'dropdown', 'heading' => __('Color', 'wpex') . ' (' . _x('Legacy', 'Old VC Module Setting', 'wpex') . ')', 'param_name' => 'link_color', 'value' => array(__('Default', 'wpex') => '', __('Black', 'wpex') => 'black', __('White', 'wpex') => 'white'), 'group' => __('Design', 'wpex')), array('type' => 'colorpicker', 'heading' => __('Hover: Background', 'wpex'), 'param_name' => 'hover_bg', 'group' => __('Design', 'wpex')), array('type' => 'colorpicker', 'heading' => __('Hover: Color', 'wpex'), 'param_name' => 'hover_color', 'group' => __('Design', 'wpex')), array('type' => 'css_editor', 'heading' => __('CSS', 'wpex'), 'param_name' => 'css', 'group' => __('CSS', 'wpex')), array('type' => 'hidden', 'param_name' => 'border_radius'))));
}
Пример #3
0
/**
 * Adds the shortcode to the Visual Composer
 *
 * @since 1.4.1
 */
function vcex_portfolio_carousel_vc_map()
{
    return array('name' => esc_html__('Portfolio Carousel', 'total'), 'description' => esc_html__('Recent portfolio posts carousel', 'total'), 'base' => 'vcex_portfolio_carousel', 'category' => wpex_get_theme_branding(), 'icon' => 'vcex-portfolio-carousel vcex-icon fa fa-folder-open', 'params' => array(array('type' => 'textfield', 'heading' => esc_html__('Unique Id', 'total'), 'param_name' => 'unique_id'), array('type' => 'textfield', 'heading' => esc_html__('Custom Classes', 'total'), 'param_name' => 'classes'), array('type' => 'dropdown', 'heading' => esc_html__('Visibility', 'total'), 'param_name' => 'visibility', 'value' => array_flip(wpex_visibility())), array('type' => 'dropdown', 'heading' => esc_html__('Appear Animation', 'total'), 'param_name' => 'css_animation', 'value' => array_flip(wpex_css_animations())), array('type' => 'dropdown', 'heading' => esc_html__('Arrows?', 'total'), 'param_name' => 'arrows', 'value' => array(__('Yes', 'total') => 'true', __('No', 'total') => 'false')), array('type' => 'dropdown', 'heading' => esc_html__('Dots?', 'total'), 'param_name' => 'dots', 'value' => array(__('No', 'total') => 'false', __('Yes', 'total') => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Items To Display', 'total'), 'param_name' => 'items', 'value' => '4'), array('type' => 'textfield', 'heading' => esc_html__('Items To Scrollby', 'total'), 'param_name' => 'items_scroll', 'value' => '1'), array('type' => 'textfield', 'heading' => esc_html__('Margin Between Items', 'total'), 'param_name' => 'items_margin', 'value' => '15'), array('type' => 'dropdown', 'heading' => esc_html__('Auto Play', 'total'), 'param_name' => 'auto_play', 'value' => array(__('Yes', 'total') => 'true', __('No', 'total') => 'false')), array('type' => 'textfield', 'heading' => esc_html__('Timeout Duration in milliseconds', 'total'), 'param_name' => 'timeout_duration', 'value' => '5000', 'dependency' => array('element' => 'auto_play', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Infinite Loop', 'total'), 'param_name' => 'infinite_loop', 'value' => array(__('Yes', 'total') => 'true', __('No', 'total') => 'false')), array('type' => 'dropdown', 'heading' => esc_html__('Center Item', 'total'), 'param_name' => 'center', 'value' => array(__('No', 'total') => 'false', __('Yes', 'total') => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Animation Speed', 'total'), 'param_name' => 'animation_speed', 'value' => '150', 'description' => esc_html__('Default is 150 milliseconds. Enter 0.0 to disable.', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Post Count', 'total'), 'param_name' => 'count', 'value' => '8', 'group' => esc_html__('Query', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Offset', 'total'), 'param_name' => 'offset', 'group' => esc_html__('Query', 'total'), 'description' => esc_html__('Number of post to displace or pass over. Warning: Setting the offset parameter overrides/ignores the paged parameter and breaks pagination. The offset parameter is ignored when posts per page is set to -1.', 'total')), array('type' => 'autocomplete', 'heading' => esc_html__('Include Categories', 'total'), 'param_name' => 'include_categories', 'param_holder_class' => 'vc_not-for-custom', 'admin_label' => true, 'settings' => array('multiple' => true, 'min_length' => 1, 'groups' => true, 'unique_values' => true, 'display_inline' => true, 'delay' => 0, 'auto_focus' => true), 'group' => esc_html__('Query', 'total')), array('type' => 'autocomplete', 'heading' => esc_html__('Exclude Categories', 'total'), 'param_name' => 'exclude_categories', 'param_holder_class' => 'vc_not-for-custom', 'admin_label' => true, 'settings' => array('multiple' => true, 'min_length' => 1, 'groups' => true, 'unique_values' => true, 'display_inline' => true, 'delay' => 0, 'auto_focus' => true), 'group' => esc_html__('Query', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Order', 'total'), 'param_name' => 'order', 'group' => esc_html__('Query', 'total'), 'value' => array(__('Default', 'total') => '', __('DESC', 'total') => 'DESC', __('ASC', 'total') => 'ASC')), array('type' => 'dropdown', 'heading' => esc_html__('Order By', 'total'), 'param_name' => 'orderby', 'value' => vcex_orderby_array(), 'group' => esc_html__('Query', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Orderby: Meta Key', 'total'), 'param_name' => 'orderby_meta_key', 'group' => esc_html__('Query', 'total'), 'dependency' => array('element' => 'orderby', 'value' => array('meta_value_num', 'meta_value'))), array('type' => 'dropdown', 'heading' => esc_html__('Enable', 'total'), 'param_name' => 'media', 'value' => array(__('Yes', 'total') => 'true', __('No', 'total') => 'false'), 'group' => esc_html__('Image', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Image Links To', 'total'), 'param_name' => 'thumbnail_link', 'value' => array(__('Default', 'total') => '', __('Post', 'total') => 'post', __('Lightbox', 'total') => 'lightbox', __('None', 'total') => 'none'), 'group' => esc_html__('Image', 'total'), 'dependency' => array('element' => 'media', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Image Size', 'total'), 'param_name' => 'img_size', 'std' => 'wpex_custom', 'value' => vcex_image_sizes(), 'group' => esc_html__('Image', 'total'), 'dependency' => array('element' => 'media', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Image Crop Location', 'total'), 'param_name' => 'img_crop', 'std' => 'center-center', 'value' => array_flip(wpex_image_crop_locations()), 'dependency' => array('element' => 'img_size', 'value' => 'wpex_custom'), 'group' => esc_html__('Image', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Image Crop Width', 'total'), 'param_name' => 'img_width', 'dependency' => array('element' => 'img_size', 'value' => 'wpex_custom'), 'group' => esc_html__('Image', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Image Crop Height', 'total'), 'param_name' => 'img_height', 'dependency' => array('element' => 'img_size', 'value' => 'wpex_custom'), 'description' => esc_html__('Enter a height in pixels. Leave empty to disable vertical cropping and keep image proportions.', 'total'), 'group' => esc_html__('Image', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Overlay Style', 'total'), 'param_name' => 'overlay_style', 'value' => array_flip(wpex_overlay_styles_array()), 'group' => esc_html__('Image', 'total'), 'dependency' => array('element' => 'media', 'value' => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Overlay Button Text', 'total'), 'param_name' => 'overlay_button_text', 'group' => esc_html__('Image', 'total'), 'dependency' => array('element' => 'overlay_style', 'value' => 'hover-button')), array('type' => 'textfield', 'heading' => esc_html__('Overlay Excerpt Length', 'total'), 'param_name' => 'overlay_excerpt_length', 'value' => '15', 'group' => esc_html__('Image', 'total'), 'dependency' => array('element' => 'overlay_style', 'value' => 'title-excerpt-hover')), array('type' => 'dropdown', 'heading' => esc_html__('CSS3 Image Link Hover', 'total'), 'param_name' => 'img_hover_style', 'value' => array_flip(wpex_image_hovers()), 'group' => esc_html__('Image', 'total'), 'dependency' => array('element' => 'media', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Enable', 'total'), 'param_name' => 'title', 'value' => array(__('Yes', 'total') => 'true', __('No', 'total') => 'false'), 'group' => esc_html__('Title', 'total')), array('type' => 'colorpicker', 'heading' => esc_html__('Color', 'total'), 'param_name' => 'content_heading_color', 'group' => esc_html__('Title', 'total'), 'dependency' => array('element' => 'title', 'value' => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Font Size', 'total'), 'param_name' => 'content_heading_size', 'group' => esc_html__('Title', 'total'), 'dependency' => array('element' => 'title', 'value' => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Margin', 'total'), 'param_name' => 'content_heading_margin', 'description' => esc_html__('Please use the following format: top right bottom left.', 'total'), 'group' => esc_html__('Title', 'total'), 'dependency' => array('element' => 'title', 'value' => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Line Height', 'total'), 'param_name' => 'content_heading_line_height', 'group' => esc_html__('Title', 'total'), 'dependency' => array('element' => 'title', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Font Weight', 'total'), 'param_name' => 'content_heading_weight', 'std' => '', 'value' => array_flip(wpex_font_weights()), 'group' => esc_html__('Title', 'total'), 'dependency' => array('element' => 'title', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Text Transform', 'total'), 'param_name' => 'content_heading_transform', 'value' => array_flip(wpex_text_transforms()), 'group' => esc_html__('Title', 'total'), 'dependency' => array('element' => 'title', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Enable', 'total'), 'param_name' => 'excerpt', 'value' => array(__('Yes', 'total') => 'true', __('No', 'total') => 'false'), 'group' => esc_html__('Excerpt', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Length', 'total'), 'param_name' => 'excerpt_length', 'value' => '30', 'description' => esc_html__('Enter how many words to display for the excerpt. To display the full post content enter "9999".', 'total'), 'group' => esc_html__('Excerpt', 'total'), 'dependency' => array('element' => 'excerpt', 'value' => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Font Size', 'total'), 'param_name' => 'content_font_size', 'group' => esc_html__('Excerpt', 'total'), 'dependency' => array('element' => 'excerpt', 'value' => 'true')), array('type' => 'colorpicker', 'heading' => esc_html__('Color', 'total'), 'param_name' => 'content_color', 'group' => esc_html__('Excerpt', 'total'), 'dependency' => array('element' => 'excerpt', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Style', 'total'), 'param_name' => 'style', 'value' => array(__('Default', 'total') => 'default', __('No Margins', 'total') => 'no-margins'), 'group' => esc_html__('Design', 'total')), array('type' => 'colorpicker', 'heading' => esc_html__('Content Background', 'total'), 'param_name' => 'content_background', 'group' => esc_html__('Design', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Content Alignment', 'total'), 'param_name' => 'content_alignment', 'value' => array_flip(wpex_alignments()), 'group' => esc_html__('Design', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Content Margin', 'total'), 'param_name' => 'content_margin', 'description' => esc_html__('Please use the following format: top right bottom left.', 'total'), 'group' => esc_html__('Design', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Content Padding', 'total'), 'param_name' => 'content_padding', 'description' => esc_html__('Please use the following format: top right bottom left.', 'total'), 'group' => esc_html__('Design', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Content Opacity', 'total'), 'param_name' => 'content_opacity', 'description' => esc_html__('Enter a value between "0" and "1".', 'total'), 'group' => esc_html__('Design', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Content Border', 'total'), 'param_name' => 'content_border', 'description' => esc_html__('Please use the shorthand format: width style color. Enter 0px or "none" to disable border.', 'total'), 'group' => esc_html__('Design', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Tablet: Items To Display', 'total'), 'param_name' => 'tablet_items', 'value' => '3', 'group' => esc_html__('Mobile', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Mobile Landscape: Items To Display', 'total'), 'param_name' => 'mobile_landscape_items', 'value' => '2', 'group' => esc_html__('Mobile', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Mobile Portrait: Items To Display', 'total'), 'param_name' => 'mobile_portrait_items', 'value' => '1', 'group' => esc_html__('Mobile', 'total'))));
}
/**
 * Adds the shortcode to the Visual Composer
 *
 * @since 1.4.1
 */
function vcex_heading_vc_map()
{
    vc_map(array('name' => __('Heading', 'wpex'), 'description' => __('A better heading module', 'wpex'), 'base' => 'vcex_heading', 'category' => WPEX_THEME_BRANDING, 'icon' => 'vcex-heading vcex-icon fa fa-font', 'params' => array(array('type' => 'textfield', 'heading' => __('Custom Classes', 'wpex'), 'param_name' => 'el_class'), array('type' => 'dropdown', 'heading' => __('Visibility', 'wpex'), 'param_name' => 'visibility', 'value' => array_flip(wpex_visibility())), array('type' => 'dropdown', 'heading' => __('Style', 'wpex'), 'param_name' => 'style', 'value' => array(__('Plain', 'wpex') => 'plain', __('Bottom Border With Color', 'wpex') => 'bottom-border-w-color', __('Graphical', 'wpex') => 'graphical')), array('type' => 'colorpicker', 'heading' => __('Accent Border Color', 'wpex'), 'param_name' => 'inner_bottom_border_color', 'dependency' => array('element' => 'style', 'value' => 'bottom-border-w-color')), array('type' => 'colorpicker', 'heading' => __('Border Color', 'wpex'), 'param_name' => 'inner_bottom_border_color_main', 'dependency' => array('element' => 'style', 'value' => 'bottom-border-w-color')), array('type' => 'dropdown', 'heading' => __('Text Source', 'wpex'), 'param_name' => 'source', 'value' => array(__('Custom Text', 'wpex') => '', __('Post or Page Title', 'wpex') => 'post_title', __('Custom Field', 'wpex') => 'custom_field')), array('type' => 'vcex_textarea_html', 'heading' => __('Text', 'wpex'), 'param_name' => 'text', 'value' => __('Heading', 'wpex'), 'admin_label' => true, 'vcex_rows' => 2, 'description' => __('HTML Supported', 'wpex'), 'dependency' => array('element' => 'source', 'is_empty' => true)), array('type' => 'textfield', 'heading' => __('Custom Field', 'wpex'), 'param_name' => 'custom_field', 'dependency' => array('element' => 'source', 'value' => 'custom_field')), array('type' => 'dropdown', 'heading' => __('Font Family', 'wpex'), 'param_name' => 'font_family', 'std' => '', 'value' => vcex_fonts_array()), array('type' => 'dropdown', 'heading' => __('Tag', 'wpex'), 'param_name' => 'tag', 'value' => array(__('Default', 'wpex') => '', 'h1' => 'h1', 'h2' => 'h2', 'h3' => 'h3', 'h4' => 'h4', 'h5' => 'h5', 'div' => 'div', 'span' => 'span')), array('type' => 'textfield', 'heading' => __('Font Size', 'wpex'), 'param_name' => 'font_size'), array('type' => 'textfield', 'heading' => __('Line Height', 'wpex'), 'param_name' => 'line_height'), array('type' => 'textfield', 'heading' => __('Letter Spacing', 'wpex'), 'param_name' => 'letter_spacing'), array('type' => 'dropdown', 'heading' => __('Italic', 'wpex'), 'param_name' => 'italic', 'value' => array(__('False', 'wpex') => 'false', __('True', 'wpex') => 'true')), array('type' => 'dropdown', 'heading' => __('Font Weight', 'wpex'), 'param_name' => 'font_weight', 'value' => array_flip(wpex_font_weights()), 'std' => ''), array('type' => 'dropdown', 'heading' => __('Text Align', 'wpex'), 'param_name' => 'text_align', 'value' => array_flip(wpex_alignments()), 'std' => ''), array('type' => 'colorpicker', 'heading' => __('Color', 'wpex'), 'param_name' => 'color'), array('type' => 'vc_link', 'heading' => __('URL', 'wpex'), 'param_name' => 'link', 'group' => __('Link', 'wpex')), array('type' => 'dropdown', 'heading' => __('Link: Local Scroll', 'wpex'), 'param_name' => 'link_local_scroll', 'value' => array(__('No', 'wpex') => 'false', __('Yes', 'wpex') => 'true'), 'group' => __('Link', 'wpex')), array('type' => 'colorpicker', 'heading' => __('Color: Hover', 'wpex'), 'param_name' => 'color_hover'), array('type' => 'dropdown', 'heading' => __('Icon library', 'wpex'), 'param_name' => 'icon_type', 'description' => __('Select icon library.', 'wpex'), 'value' => array(__('Font Awesome', 'wpex') => 'fontawesome', __('Open Iconic', 'wpex') => 'openiconic', __('Typicons', 'wpex') => 'typicons', __('Entypo', 'wpex') => 'entypo', __('Linecons', 'wpex') => 'linecons'), 'group' => __('Icon', 'wpex')), array('type' => 'iconpicker', 'heading' => __('Icon', 'wpex'), 'param_name' => 'icon', 'value' => '', 'settings' => array('emptyIcon' => true, 'iconsPerPage' => 200), 'dependency' => array('element' => 'icon_type', 'value' => 'fontawesome'), 'group' => __('Icon', 'wpex')), array('type' => 'iconpicker', 'heading' => __('Icon', 'wpex'), 'param_name' => 'icon_openiconic', 'settings' => array('emptyIcon' => true, 'type' => 'openiconic', 'iconsPerPage' => 200), 'dependency' => array('element' => 'icon_type', 'value' => 'openiconic'), 'group' => __('Icon', 'wpex')), array('type' => 'iconpicker', 'heading' => __('Icon', 'wpex'), 'param_name' => 'icon_typicons', 'settings' => array('emptyIcon' => true, 'type' => 'typicons', 'iconsPerPage' => 200), 'dependency' => array('element' => 'icon_type', 'value' => 'typicons'), 'group' => __('Icon', 'wpex')), array('type' => 'iconpicker', 'heading' => __('Icon', 'wpex'), 'param_name' => 'icon_entypo', 'settings' => array('emptyIcon' => true, 'type' => 'entypo', 'iconsPerPage' => 300), 'dependency' => array('element' => 'icon_type', 'value' => 'entypo'), 'group' => __('Icon', 'wpex')), array('type' => 'iconpicker', 'heading' => __('Icon', 'wpex'), 'param_name' => 'icon_linecons', 'settings' => array('emptyIcon' => true, 'type' => 'linecons', 'iconsPerPage' => 200), 'dependency' => array('element' => 'icon_type', 'value' => 'linecons'), 'group' => __('Icon', 'wpex')), array('type' => 'dropdown', 'heading' => __('Position', 'wpex'), 'param_name' => 'icon_position', 'value' => array(__('Left', 'wpex') => 'left', __('Right', 'wpex') => 'right'), 'group' => __('Icon', 'wpex')), array('type' => 'colorpicker', 'heading' => __('Color', 'wpex'), 'param_name' => 'icon_color', 'group' => __('Icon', 'wpex')), array('type' => 'css_editor', 'heading' => __('Design', 'wpex'), 'param_name' => 'css', 'group' => __('CSS', 'wpex')), array('type' => 'colorpicker', 'heading' => __('Background: Hover', 'wpex'), 'param_name' => 'background_hover', 'group' => __('CSS', 'wpex'), 'dependency' => array('element' => 'style', 'value' => 'plain')), array('type' => 'dropdown', 'heading' => __('White Text On Hover', 'wpex'), 'param_name' => 'hover_white_text', 'value' => array(__('No', 'wpex') => 'false', __('Yes', 'wpex') => 'true'), 'group' => __('CSS', 'wpex'), 'dependency' => array('element' => 'style', 'value' => 'plain')))));
}
/**
 * Adds the shortcode to the Visual Composer
 *
 * @since 1.4.1
 */
function vcex_woocommerce_carousel_vc_map()
{
    vc_map(array('name' => __('WooCommerce Carousel', 'wpex'), 'description' => __('Recent woocommerce posts carousel', 'wpex'), 'base' => 'vcex_woocommerce_carousel', 'category' => WPEX_THEME_BRANDING, 'icon' => 'vcex-woocommerce-carousel vcex-icon fa fa-shopping-cart', 'params' => array(array('type' => 'textfield', 'heading' => __('Unique Id', 'wpex'), 'description' => __('Give your main element a unique ID.', 'wpex'), 'param_name' => 'unique_id'), array('type' => 'textfield', 'heading' => __('Custom Classes', 'wpex'), 'description' => __('Add additonal classes to the main element.', 'wpex'), 'param_name' => 'classes'), array('type' => 'dropdown', 'heading' => __('Visibility', 'wpex'), 'param_name' => 'visibility', 'value' => array_flip(wpex_visibility())), array('type' => 'dropdown', 'heading' => __('Appear Animation', 'wpex'), 'param_name' => 'css_animation', 'value' => array_flip(wpex_css_animations())), array('type' => 'dropdown', 'heading' => __('Arrows?', 'wpex'), 'param_name' => 'arrows', 'value' => array(__('True', 'wpex') => 'true', __('False', 'wpex') => 'false')), array('type' => 'dropdown', 'heading' => __('Dots?', 'wpex'), 'param_name' => 'dots', 'value' => array(__('False', 'wpex') => 'false', __('True', 'wpex') => 'true')), array('type' => 'textfield', 'heading' => __('Items To Display', 'wpex'), 'param_name' => 'items', 'value' => '4'), array('type' => 'textfield', 'heading' => __('Items To Scrollby', 'wpex'), 'param_name' => 'items_scroll', 'value' => '1'), array('type' => 'textfield', 'heading' => __('Margin Between Items', 'wpex'), 'param_name' => 'items_margin', 'value' => '15'), array('type' => 'dropdown', 'heading' => __('Auto Play', 'wpex'), 'param_name' => 'auto_play', 'value' => array(__('True', 'wpex') => 'true', __('False', 'wpex') => 'false')), array('type' => 'textfield', 'heading' => __('Timeout Duration in milliseconds', 'wpex'), 'param_name' => 'timeout_duration', 'value' => '5000', 'dependency' => array('element' => 'auto_play', 'value' => 'true')), array('type' => 'dropdown', 'heading' => __('Infinite Loop', 'wpex'), 'param_name' => 'infinite_loop', 'value' => array(__('True', 'wpex') => 'true', __('False', 'wpex') => 'false')), array('type' => 'dropdown', 'heading' => __('Center Item', 'wpex'), 'param_name' => 'center', 'value' => array(__('False', 'wpex') => 'false', __('True', 'wpex') => 'true')), array('type' => 'textfield', 'heading' => __('Animation Speed', 'wpex'), 'param_name' => 'animation_speed', 'value' => '150', 'description' => __('Default is 150 milliseconds. Enter 0.0 to disable.', 'wpex')), array('type' => 'textfield', 'heading' => __('Post Count', 'wpex'), 'param_name' => 'count', 'value' => '8', 'group' => __('Query', 'wpex')), array('type' => 'dropdown', 'heading' => __('Featured Products Only', 'wpex'), 'param_name' => 'featured_products_only', 'group' => __('Query', 'wpex'), 'value' => array(__('False', 'wpex') => '', __('True', 'wpex') => true)), array('type' => 'dropdown', 'heading' => __('Exclude Out of Stock Products', 'wpex'), 'param_name' => 'exclude_products_out_of_stock', 'group' => __('Query', 'wpex'), 'value' => array(__('False', 'wpex') => '', __('True', 'wpex') => true)), array('type' => 'autocomplete', 'heading' => __('Include Categories', 'wpex'), 'param_name' => 'include_categories', 'param_holder_class' => 'vc_not-for-custom', 'admin_label' => true, 'settings' => array('multiple' => true, 'min_length' => 1, 'groups' => true, 'unique_values' => true, 'display_inline' => true, 'delay' => 0, 'auto_focus' => true), 'group' => __('Query', 'wpex')), array('type' => 'autocomplete', 'heading' => __('Exclude Categories', 'wpex'), 'param_name' => 'exclude_categories', 'param_holder_class' => 'vc_not-for-custom', 'admin_label' => true, 'settings' => array('multiple' => true, 'min_length' => 1, 'groups' => true, 'unique_values' => true, 'display_inline' => true, 'delay' => 0, 'auto_focus' => true), 'group' => __('Query', 'wpex')), array('type' => 'dropdown', 'heading' => __('Order', 'wpex'), 'param_name' => 'order', 'group' => __('Query', 'wpex'), 'value' => array(__('Default', 'wpex') => '', __('DESC', 'wpex') => 'DESC', __('ASC', 'wpex') => 'ASC')), array('type' => 'dropdown', 'heading' => __('Order By', 'wpex'), 'param_name' => 'orderby', 'value' => vcex_orderby_array(), 'group' => __('Query', 'wpex')), array('type' => 'textfield', 'heading' => __('Orderby: Meta Key', 'wpex'), 'param_name' => 'orderby_meta_key', 'group' => __('Query', 'wpex'), 'dependency' => array('element' => 'orderby', 'value' => array('meta_value_num', 'meta_value'))), array('type' => 'dropdown', 'heading' => __('Image Links To', 'wpex'), 'param_name' => 'thumbnail_link', 'value' => array(__('Default', 'wpex') => '', __('Post', 'wpex') => 'post', __('Lightbox', 'wpex') => 'lightbox', __('None', 'wpex') => 'none'), 'group' => __('Image', 'wpex')), array('type' => 'dropdown', 'heading' => __('Image Size', 'wpex'), 'param_name' => 'img_size', 'std' => 'wpex_custom', 'value' => vcex_image_sizes(), 'group' => __('Image', 'wpex')), array('type' => 'dropdown', 'heading' => __('Image Crop Location', 'wpex'), 'param_name' => 'img_crop', 'std' => 'center-center', 'value' => array_flip(wpex_image_crop_locations()), 'group' => __('Image', 'wpex'), 'dependency' => array('element' => 'img_size', 'value' => 'wpex_custom')), array('type' => 'textfield', 'heading' => __('Image Crop Width', 'wpex'), 'param_name' => 'img_width', 'description' => __('Enter a width in pixels.', 'wpex'), 'group' => __('Image', 'wpex'), 'dependency' => array('element' => 'img_size', 'value' => 'wpex_custom')), array('type' => 'textfield', 'heading' => __('Image Crop Height', 'wpex'), 'param_name' => 'img_height', 'dependency' => array('element' => 'img_size', 'value' => 'wpex_custom'), 'description' => __('Enter a height in pixels. Leave empty to disable vertical cropping and keep image proportions.', 'wpex'), 'group' => __('Image', 'wpex')), array('type' => 'dropdown', 'heading' => __('Image Filter', 'wpex'), 'param_name' => 'img_filter', 'value' => array_flip(wpex_image_filters()), 'group' => __('Image', 'wpex')), array('type' => 'dropdown', 'heading' => __('CSS3 Image Hover', 'wpex'), 'param_name' => 'img_hover_style', 'value' => array_flip(wpex_image_hovers()), 'group' => __('Image', 'wpex')), array('type' => 'dropdown', 'heading' => __('Display Title', 'wpex'), 'param_name' => 'title', 'value' => array(__('Yes', 'wpex') => 'true', __('No', 'wpex') => 'false'), 'group' => __('Title', 'wpex')), array('type' => 'colorpicker', 'heading' => __('Color', 'wpex'), 'param_name' => 'content_heading_color', 'group' => __('Title', 'wpex')), array('type' => 'textfield', 'heading' => __('Font Size', 'wpex'), 'param_name' => 'content_heading_size', 'description' => __('You can use em or px values, but you must define them.', 'wpex'), 'group' => __('Title', 'wpex')), array('type' => 'textfield', 'heading' => __('Margin', 'wpex'), 'param_name' => 'content_heading_margin', 'description' => __('Please use the following format: top right bottom left.', 'wpex'), 'group' => __('Title', 'wpex')), array('type' => 'textfield', 'heading' => __('Line Height', 'wpex'), 'param_name' => 'content_heading_line_height', 'description' => __('Enter a numerical, pixel or percentage value.', 'wpex'), 'group' => __('Title', 'wpex')), array('type' => 'dropdown', 'heading' => __('Font Weight', 'wpex'), 'param_name' => 'content_heading_weight', 'description' => __('Note: Not all font families support every font weight.', 'wpex'), 'std' => '', 'value' => array_flip(wpex_font_weights()), 'group' => __('Title', 'wpex')), array('type' => 'dropdown', 'heading' => __('Text Transform', 'wpex'), 'param_name' => 'content_heading_transform', 'value' => array_flip(wpex_text_transforms()), 'group' => __('Title', 'wpex')), array('type' => 'dropdown', 'heading' => __('Display Price', 'wpex'), 'param_name' => 'price', 'value' => array(__('Yes', 'wpex') => 'true', __('No', 'wpex') => 'false'), 'group' => __('Price', 'wpex')), array('type' => 'colorpicker', 'heading' => __('Color', 'wpex'), 'param_name' => 'content_color', 'group' => __('Price', 'wpex')), array('type' => 'textfield', 'heading' => __('Font Size', 'wpex'), 'param_name' => 'content_font_size', 'group' => __('Price', 'wpex'), 'description' => __('You can use em or px values, but you must define them.', 'wpex')), array('type' => 'dropdown', 'heading' => __('Style', 'wpex'), 'param_name' => 'style', 'value' => array(__('Default', 'wpex') => 'default', __('No Margins', 'wpex') => 'no-margins'), 'group' => __('Design', 'wpex')), array('type' => 'colorpicker', 'heading' => __('Content Background', 'wpex'), 'param_name' => 'content_background', 'group' => __('Design', 'wpex')), array('type' => 'dropdown', 'heading' => __('Content Alignment', 'wpex'), 'param_name' => 'content_alignment', 'value' => array_flip(wpex_alignments()), 'group' => __('Design', 'wpex')), array('type' => 'textfield', 'heading' => __('Content Margin', 'wpex'), 'param_name' => 'content_margin', 'description' => __('Please use the following format: top right bottom left.', 'wpex'), 'group' => __('Design', 'wpex')), array('type' => 'textfield', 'heading' => __('Content Padding', 'wpex'), 'param_name' => 'content_padding', 'description' => __('Please use the following format: top right bottom left.', 'wpex'), 'group' => __('Design', 'wpex')), array('type' => 'textfield', 'heading' => __('Content Border', 'wpex'), 'param_name' => 'content_border', 'description' => __('Please use the shorthand format: width style color. Enter 0px or "none" to disable border.', 'wpex'), 'group' => __('Design', 'wpex')), array('type' => 'textfield', 'heading' => __('Tablet: Items To Display', 'wpex'), 'param_name' => 'tablet_items', 'value' => '3', 'group' => __('Mobile', 'wpex')), array('type' => 'textfield', 'heading' => __('Mobile Landscape: Items To Display', 'wpex'), 'param_name' => 'mobile_landscape_items', 'value' => '2', 'group' => __('Mobile', 'wpex')), array('type' => 'textfield', 'heading' => __('Mobile Portrait: Items To Display', 'wpex'), 'param_name' => 'mobile_portrait_items', 'value' => '1', 'group' => __('Mobile', 'wpex')), array('type' => 'hidden', 'param_name' => 'entry_output'))));
}
/**
 * Adds the shortcode to the Visual Composer
 *
 * @since 1.4.1
 */
function vcex_post_type_grid_vc_map()
{
    vc_map(array('name' => __('Post Types Grid', 'wpex'), 'description' => __('Multiple post types posts grid', 'wpex'), 'base' => 'vcex_post_type_grid', 'category' => WPEX_THEME_BRANDING, 'icon' => 'vcex-post-type-grid vcex-icon fa fa-files-o', 'params' => array(array('type' => 'textfield', 'heading' => __('Unique Id', 'wpex'), 'description' => __('Give your main element a unique ID.', 'wpex'), 'param_name' => 'unique_id'), array('type' => 'textfield', 'heading' => __('Custom Classes', 'wpex'), 'description' => __('Add additonal classes to the main element.', 'wpex'), 'param_name' => 'classes'), array('type' => 'dropdown', 'heading' => __('Visibility', 'wpex'), 'param_name' => 'visibility', 'value' => array_flip(wpex_visibility()), 'description' => __('Choose when this module should display.', 'wpex')), array('type' => 'dropdown', 'heading' => __('Appear Animation', 'wpex'), 'param_name' => 'css_animation', 'value' => array_flip(wpex_css_animations()), 'description' => __('If the "filter" is enabled animations will be disabled to prevent bugs.', 'wpex')), array('type' => 'dropdown', 'heading' => __('Grid Style', 'wpex'), 'param_name' => 'grid_style', 'value' => array(__('Fit Columns', 'wpex') => 'fit_columns', __('Masonry', 'wpex') => 'masonry', __('No Margins', 'wpex') => 'no_margins'), 'edit_field_class' => 'vc_col-sm-3 vc_column clear'), array('type' => 'dropdown', 'heading' => __('Columns', 'wpex'), 'param_name' => 'columns', 'value' => wpex_grid_columns(), 'std' => '3', 'edit_field_class' => 'vc_col-sm-3 vc_column'), array('type' => 'dropdown', 'heading' => __('Gap', 'wpex'), 'param_name' => 'columns_gap', 'value' => array_flip(wpex_column_gaps()), 'std' => '20', 'edit_field_class' => 'vc_col-sm-3 vc_column'), array('type' => 'dropdown', 'heading' => __('Responsive', 'wpex'), 'param_name' => 'columns_responsive', 'value' => array(__('Yes', 'wpex') => 'true', __('No', 'wpex') => 'false'), 'std' => '', 'edit_field_class' => 'vc_col-sm-3 vc_column'), array('type' => 'dropdown', 'heading' => __('1 Column Style', 'wpex'), 'param_name' => 'single_column_style', 'value' => array(__('Default', 'wpex') => '', __('Left Image & Right Content', 'wpex') => 'left_thumbs'), 'dependency' => array('element' => 'columns', 'value' => '1')), array('type' => 'dropdown', 'heading' => __('Equal Heights?', 'wpex'), 'param_name' => 'equal_heights_grid', 'value' => array(__('No', 'wpex') => 'false', __('Yes', 'wpex') => 'true'), 'dependency' => array('element' => 'grid_style', 'value' => 'fit_columns'), 'description' => __('Adds equal heights for the entry content so entries on the same row are the same height. You must have equal sized images for this to work efficiently. Disabled for masonry style layouts and filterable layouts.', 'wpex')), array('type' => 'dropdown', 'heading' => __('Post Link Target', 'wpex'), 'param_name' => 'url_target', 'value' => array(__('Self', 'wpex') => 'self', __('Blank', 'wpex') => '_blank')), array('type' => 'textfield', 'heading' => __('Posts Per Page', 'wpex'), 'param_name' => 'posts_per_page', 'value' => '12', 'description' => __('You can enter "-1" to display all posts.', 'wpex'), 'group' => __('Query', 'wpex')), array('type' => 'dropdown', 'heading' => __('Pagination', 'wpex'), 'param_name' => 'pagination', 'value' => array(__('False', 'wpex') => 'false', __('True', 'wpex') => 'true'), 'description' => __('Important: Pagination will not work on your homepage due to how WordPress Queries function.', 'wpex'), 'group' => __('Query', 'wpex')), array('type' => 'textfield', 'heading' => __('Offset', 'wpex'), 'param_name' => 'offset', 'group' => __('Query', 'wpex'), 'description' => __('Number of post to displace or pass over. Warning: Setting the offset parameter overrides/ignores the paged parameter and breaks pagination. The offset parameter is ignored when posts per page is set to -1.', 'wpex')), array('type' => 'posttypes', 'heading' => __('Post types', 'wpex'), 'param_name' => 'post_types', 'group' => __('Query', 'wpex')), array('type' => 'textfield', 'heading' => __('Limit By Post ID\'s', 'wpex'), 'param_name' => 'posts_in', 'group' => __('Query', 'wpex'), 'description' => __('Seperate by a comma.', 'wpex')), array('type' => 'autocomplete', 'heading' => __('Limit By Author', 'wpex'), 'param_name' => 'author_in', 'settings' => array('multiple' => true, 'min_length' => 1, 'groups' => false, 'unique_values' => true, 'display_inline' => true, 'delay' => 0, 'auto_focus' => true), 'group' => __('Query', 'wpex')), array('type' => 'dropdown', 'heading' => __('Query by Taxonomy', 'wpex'), 'param_name' => 'tax_query', 'value' => array(__('No', 'wpex') => 'false', __('Yes', 'wpex') => 'true'), 'group' => __('Query', 'wpex')), array('type' => 'autocomplete', 'heading' => __('Taxonomy Name', 'wpex'), 'param_name' => 'tax_query_taxonomy', 'dependency' => array('element' => 'tax_query', 'value' => 'true'), 'settings' => array('multiple' => false, 'min_length' => 1, 'groups' => false, 'display_inline' => true, 'delay' => 0, 'auto_focus' => true), 'group' => __('Query', 'wpex'), 'description' => __('If you do not see your taxonomy in the dropdown you can still enter the taxonomy name manually.', 'wpex')), array('type' => 'autocomplete', 'heading' => __('Terms', 'wpex'), 'param_name' => 'tax_query_terms', 'dependency' => array('element' => 'tax_query', 'value' => 'true'), 'settings' => array('multiple' => true, 'min_length' => 1, 'groups' => true, 'display_inline' => true, 'delay' => 0, 'auto_focus' => true), 'group' => __('Query', 'wpex'), 'description' => __('If you do not see your terms in the dropdown you can still enter the term slugs manually seperated by a space.', 'wpex')), array('type' => 'dropdown', 'heading' => __('Order', 'wpex'), 'param_name' => 'order', 'group' => __('Query', 'wpex'), 'value' => array(__('Default', 'wpex') => 'default', __('DESC', 'wpex') => 'DESC', __('ASC', 'wpex') => 'ASC')), array('type' => 'dropdown', 'heading' => __('Order By', 'wpex'), 'param_name' => 'orderby', 'value' => vcex_orderby_array(), 'group' => __('Query', 'wpex')), array('type' => 'textfield', 'heading' => __('Orderby: Meta Key', 'wpex'), 'param_name' => 'orderby_meta_key', 'group' => __('Query', 'wpex'), 'dependency' => array('element' => 'orderby', 'value' => array('meta_value_num', 'meta_value'))), array('type' => 'dropdown', 'heading' => __('Post With Thumbnails Only', 'wpex'), 'param_name' => 'thumbnail_query', 'value' => array(__('No', 'wpex') => 'false', __('Yes', 'wpex') => 'true'), 'group' => __('Query', 'wpex')), array('type' => 'dropdown', 'heading' => __('Enable', 'wpex'), 'param_name' => 'filter', 'value' => array(__('No', 'wpex') => 'false', __('Yes', 'wpex') => 'true'), 'description' => __('If more then one post type is selected it will display a post type filter, otherwise it will display the categories for the current post type.', 'wpex'), 'group' => __('Filter', 'wpex')), array('type' => 'dropdown', 'heading' => __('Button Style', 'wpex'), 'param_name' => 'filter_button_style', 'value' => array_flip(wpex_button_styles()), 'group' => __('Filter', 'wpex'), 'std' => 'minimal-border', 'dependency' => array('element' => 'filter', 'value' => 'true')), array('type' => 'dropdown', 'heading' => __('Button Color', 'wpex'), 'param_name' => 'filter_button_color', 'std' => '', 'value' => array_flip(wpex_button_colors()), 'group' => __('Filter', 'wpex'), 'dependency' => array('element' => 'filter', 'value' => 'true')), array('type' => 'dropdown', 'heading' => __('Filter What?', 'wpex'), 'param_name' => 'filter_type', 'value' => array(__('Post Types', 'wpex') => 'post_types', __('Custom Taxonomy', 'wpex') => 'taxonomy'), 'group' => __('Filter', 'wpex'), 'dependency' => array('element' => 'filter', 'value' => 'true')), array('type' => 'dropdown', 'heading' => __('Layout Mode', 'wpex'), 'param_name' => 'masonry_layout_mode', 'value' => array(__('Masonry', 'wpex') => 'masonry', __('Fit Rows', 'wpex') => 'fitRows'), 'group' => __('Filter', 'wpex'), 'dependency' => array('element' => 'filter', 'value' => 'true')), array('type' => 'autocomplete', 'heading' => __('Filter Taxonomy Name', 'wpex'), 'param_name' => 'filter_taxonomy', 'dependency' => array('element' => 'filter_type', 'value' => array('taxonomy')), 'settings' => array('multiple' => false, 'min_length' => 1, 'groups' => false, 'unique_values' => true, 'display_inline' => true, 'delay' => 0, 'auto_focus' => true), 'description' => __('Enter the taxonomy name for the filter links.', 'wpex'), 'group' => __('Filter', 'wpex')), array('type' => 'textfield', 'heading' => __('Custom Filter Speed', 'wpex'), 'param_name' => 'filter_speed', 'description' => __('Default is 0.4 seconds. Enter 0.0 to disable.', 'wpex'), 'group' => __('Filter', 'wpex'), 'dependency' => array('element' => 'filter', 'value' => 'true')), array('type' => 'dropdown', 'heading' => __('Center Filter Links', 'wpex'), 'param_name' => 'center_filter', 'value' => array(__('No', 'wpex') => 'no', __('Yes', 'wpex') => 'yes'), 'group' => __('Filter', 'wpex'), 'dependency' => array('element' => 'filter', 'value' => 'true')), array('type' => 'textfield', 'heading' => __('Custom Filter "All" Text', 'wpex'), 'param_name' => 'all_text', 'group' => __('Filter', 'wpex'), 'value' => _x('All', 'Grid Filter All Button', 'wpex'), 'dependency' => array('element' => 'filter', 'value' => 'true')), array('type' => 'dropdown', 'heading' => __('Enable', 'wpex'), 'param_name' => 'entry_media', 'value' => array(__('Yes', 'wpex') => 'true', __('No', 'wpex') => 'false'), 'group' => __('Media', 'wpex')), array('type' => 'dropdown', 'heading' => __('Display Featured Videos?', 'wpex'), 'param_name' => 'featured_video', 'value' => array(__('True', 'wpex') => 'true', __('False', 'wpex') => 'false'), 'group' => __('Media', 'wpex'), 'dependency' => array('element' => 'entry_media', 'value' => 'true')), array('type' => 'dropdown', 'heading' => __('Image Links To', 'wpex'), 'param_name' => 'thumb_link', 'value' => array(__('Post', 'wpex') => 'post', __('Lightbox', 'wpex') => 'lightbox', __('Nowhere', 'wpex') => 'nowhere'), 'group' => __('Media', 'wpex'), 'dependency' => array('element' => 'entry_media', 'value' => 'true')), array('type' => 'dropdown', 'heading' => __('Image Size', 'wpex'), 'param_name' => 'img_size', 'std' => 'wpex_custom', 'value' => vcex_image_sizes(), 'group' => __('Media', 'wpex'), 'dependency' => array('element' => 'entry_media', 'value' => 'true')), array('type' => 'dropdown', 'heading' => __('Image Crop Location', 'wpex'), 'param_name' => 'img_crop', 'std' => 'center-center', 'value' => array_flip(wpex_image_crop_locations()), 'dependency' => array('element' => 'img_size', 'value' => 'wpex_custom'), 'group' => __('Media', 'wpex')), array('type' => 'textfield', 'heading' => __('Image Crop Width', 'wpex'), 'param_name' => 'img_width', 'dependency' => array('element' => 'img_size', 'value' => 'wpex_custom'), 'description' => __('Enter a width in pixels.', 'wpex'), 'group' => __('Media', 'wpex')), array('type' => 'textfield', 'heading' => __('Image Crop Height', 'wpex'), 'param_name' => 'img_height', 'dependency' => array('element' => 'img_size', 'value' => 'wpex_custom'), 'description' => __('Enter a height in pixels. Leave empty to disable vertical cropping and keep image proportions.', 'wpex'), 'group' => __('Media', 'wpex')), array('type' => 'dropdown', 'heading' => __('Overlay Style', 'wpex'), 'param_name' => 'overlay_style', 'value' => array_flip(wpex_overlay_styles_array()), 'group' => __('Media', 'wpex'), 'dependency' => array('element' => 'entry_media', 'value' => 'true')), array('type' => 'textfield', 'heading' => __('Overlay Button Text', 'wpex'), 'param_name' => 'overlay_button_text', 'group' => __('Media', 'wpex'), 'dependency' => array('element' => 'overlay_style', 'value' => 'hover-button')), array('type' => 'textfield', 'heading' => __('Overlay Excerpt Length', 'wpex'), 'param_name' => 'overlay_excerpt_length', 'value' => '15', 'group' => __('Media', 'wpex'), 'dependency' => array('element' => 'overlay_style', 'value' => 'title-excerpt-hover')), array('type' => 'dropdown', 'heading' => __('CSS3 Image Link Hover', 'wpex'), 'param_name' => 'img_hover_style', 'value' => array_flip(wpex_image_hovers()), 'group' => __('Media', 'wpex'), 'dependency' => array('element' => 'entry_media', 'value' => 'true')), array('type' => 'dropdown', 'heading' => __('Image Filter', 'wpex'), 'param_name' => 'img_filter', 'value' => array_flip(wpex_image_filters()), 'group' => __('Media', 'wpex'), 'dependency' => array('element' => 'entry_media', 'value' => 'true')), array('type' => 'dropdown', 'heading' => __('Enable', 'wpex'), 'param_name' => 'title', 'value' => array(__('Yes', 'wpex') => 'true', __('No', 'wpex') => 'false'), 'group' => __('Title', 'wpex')), array('type' => 'dropdown', 'heading' => __('Tag', 'wpex'), 'param_name' => 'title_tag', 'group' => __('Title', 'wpex'), 'std' => 'h2', 'value' => array('h2' => 'h2', 'h3' => 'h3', 'h4' => 'h4', 'h5' => 'h5', 'h6' => 'h6', 'div' => 'div'), 'dependency' => array('element' => 'title', 'value' => 'true')), array('type' => 'colorpicker', 'heading' => __('Color', 'wpex'), 'param_name' => 'content_heading_color', 'group' => __('Title', 'wpex'), 'dependency' => array('element' => 'title', 'value' => 'true')), array('type' => 'textfield', 'heading' => __('Font Size', 'wpex'), 'param_name' => 'content_heading_size', 'group' => __('Title', 'wpex'), 'dependency' => array('element' => 'title', 'value' => 'true')), array('type' => 'textfield', 'heading' => __('Line Height', 'wpex'), 'param_name' => 'content_heading_line_height', 'group' => __('Title', 'wpex'), 'dependency' => array('element' => 'title', 'value' => 'true')), array('type' => 'textfield', 'heading' => __('Margin', 'wpex'), 'param_name' => 'content_heading_margin', 'group' => __('Title', 'wpex'), 'description' => __('Please use the following format: top right bottom left.', 'wpex'), 'dependency' => array('element' => 'title', 'value' => 'true')), array('type' => 'dropdown', 'heading' => __('Font Weight', 'wpex'), 'param_name' => 'content_heading_weight', 'group' => __('Title', 'wpex'), 'std' => '', 'value' => array_flip(wpex_font_weights()), 'dependency' => array('element' => 'title', 'value' => 'true')), array('type' => 'dropdown', 'heading' => __('Text Transform', 'wpex'), 'param_name' => 'content_heading_transform', 'group' => __('Title', 'wpex'), 'std' => '', 'value' => array_flip(wpex_text_transforms()), 'dependency' => array('element' => 'title', 'value' => 'true')), array('type' => 'dropdown', 'heading' => __('Enable', 'wpex'), 'param_name' => 'date', 'value' => array(__('Yes', 'wpex') => 'true', __('No', 'wpex') => 'false'), 'group' => __('Date', 'wpex')), array('type' => 'colorpicker', 'heading' => __('Color', 'wpex'), 'param_name' => 'date_color', 'group' => __('Date', 'wpex'), 'dependency' => array('element' => 'date', 'value' => 'true')), array('type' => 'textfield', 'heading' => __('Font Size', 'wpex'), 'param_name' => 'date_font_size', 'group' => __('Date', 'wpex'), 'dependency' => array('element' => 'date', 'value' => 'true')), array('type' => 'dropdown', 'heading' => __('Enable', 'wpex'), 'param_name' => 'excerpt', 'value' => array(__('Yes', 'wpex') => 'true', __('No', 'wpex') => 'false'), 'group' => __('Excerpt', 'wpex')), array('type' => 'textfield', 'heading' => __('Length', 'wpex'), 'param_name' => 'excerpt_length', 'group' => __('Excerpt', 'wpex'), 'value' => '20', 'description' => __('Enter how many words to display for the excerpt. To display the full post content enter "-1". To display the full post content up to the "more" tag enter "9999".', 'wpex'), 'dependency' => array('element' => 'excerpt', 'value' => 'true')), array('type' => 'textfield', 'heading' => __('Font Size', 'wpex'), 'param_name' => 'content_font_size', 'group' => __('Excerpt', 'wpex'), 'dependency' => array('element' => 'excerpt', 'value' => 'true')), array('type' => 'colorpicker', 'heading' => __('Color', 'wpex'), 'param_name' => 'content_color', 'group' => __('Excerpt', 'wpex'), 'dependency' => array('element' => 'excerpt', 'value' => 'true')), array('type' => 'dropdown', 'heading' => __('Enable', 'wpex'), 'param_name' => 'read_more', 'value' => array(__('Yes', 'wpex') => 'true', __('No', 'wpex') => 'false'), 'group' => __('Button', 'wpex')), array('type' => 'textfield', 'heading' => __('Text', 'wpex'), 'param_name' => 'read_more_text', 'group' => __('Button', 'wpex'), 'dependency' => array('element' => 'read_more', 'value' => 'true')), array('type' => 'dropdown', 'heading' => __('Style', 'wpex'), 'param_name' => 'readmore_style', 'std' => '', 'value' => array_flip(wpex_button_styles()), 'group' => __('Button', 'wpex'), 'dependency' => array('element' => 'read_more', 'value' => 'true')), array('type' => 'dropdown', 'heading' => __('Color', 'wpex'), 'param_name' => 'readmore_style_color', 'std' => '', 'value' => array_flip(wpex_button_colors()), 'group' => __('Button', 'wpex'), 'dependency' => array('element' => 'read_more', 'value' => 'true')), array('type' => 'dropdown', 'heading' => __('Arrow', 'wpex'), 'param_name' => 'readmore_rarr', 'value' => array(__('No', 'wpex') => 'false', __('Yes', 'wpex') => 'true'), 'group' => __('Button', 'wpex'), 'dependency' => array('element' => 'read_more', 'value' => 'true')), array('type' => 'textfield', 'heading' => __('Font Size', 'wpex'), 'param_name' => 'readmore_size', 'group' => __('Button', 'wpex'), 'dependency' => array('element' => 'read_more', 'value' => 'true')), array('type' => 'textfield', 'heading' => __('Border Radius', 'wpex'), 'param_name' => 'readmore_border_radius', 'group' => __('Button', 'wpex'), 'dependency' => array('element' => 'read_more', 'value' => 'true')), array('type' => 'textfield', 'heading' => __('Padding', 'wpex'), 'param_name' => 'readmore_padding', 'description' => __('Please use the following format: top right bottom left.', 'wpex'), 'group' => __('Button', 'wpex'), 'dependency' => array('element' => 'read_more', 'value' => 'true')), array('type' => 'textfield', 'heading' => __('Margin', 'wpex'), 'param_name' => 'readmore_margin', 'description' => __('Please use the following format: top right bottom left.', 'wpex'), 'group' => __('Button', 'wpex'), 'dependency' => array('element' => 'read_more', 'value' => 'true')), array('type' => 'colorpicker', 'heading' => __('Background', 'wpex'), 'param_name' => 'readmore_background', 'group' => __('Button', 'wpex'), 'dependency' => array('element' => 'read_more', 'value' => 'true')), array('type' => 'colorpicker', 'heading' => __('Color', 'wpex'), 'param_name' => 'readmore_color', 'group' => __('Button', 'wpex'), 'dependency' => array('element' => 'read_more', 'value' => 'true')), array('type' => 'colorpicker', 'heading' => __('Background: Hover', 'wpex'), 'param_name' => 'readmore_hover_background', 'group' => __('Button', 'wpex'), 'dependency' => array('element' => 'read_more', 'value' => 'true')), array('type' => 'colorpicker', 'heading' => __('Color: Hover', 'wpex'), 'param_name' => 'readmore_hover_color', 'group' => __('Button', 'wpex'), 'dependency' => array('element' => 'read_more', 'value' => 'true')), array('type' => 'colorpicker', 'heading' => __('Content Background', 'wpex'), 'param_name' => 'content_background', 'group' => __('Design', 'wpex')), array('type' => 'dropdown', 'heading' => __('Content Alignment', 'wpex'), 'param_name' => 'content_alignment', 'value' => array_flip(wpex_alignments()), 'group' => __('Design', 'wpex')), array('type' => 'textfield', 'heading' => __('Content Margin', 'wpex'), 'param_name' => 'content_margin', 'description' => __('Please use the following format: top right bottom left.', 'wpex'), 'group' => __('Design', 'wpex')), array('type' => 'textfield', 'heading' => __('Content Padding', 'wpex'), 'param_name' => 'content_padding', 'description' => __('Please use the following format: top right bottom left.', 'wpex'), 'group' => __('Design', 'wpex')), array('type' => 'textfield', 'heading' => __('Content Border', 'wpex'), 'param_name' => 'content_border', 'description' => __('Please use the shorthand format: width style color. Enter 0px or "none" to disable border.', 'wpex'), 'group' => __('Design', 'wpex')), array('type' => 'textfield', 'heading' => __('Content Opacity', 'wpex'), 'param_name' => 'content_opacity', 'description' => __('Enter a value between "0" and "1".', 'wpex'), 'group' => __('Design', 'wpex')))));
}
/**
 * Adds the shortcode to the Visual Composer
 *
 * @since 1.4.1
 */
function vcex_button_vc_map()
{
    vc_map(array('name' => __('Total Button', 'wpex'), 'description' => __('Eye catching button', 'wpex'), 'base' => 'vcex_button', 'category' => WPEX_THEME_BRANDING, 'icon' => 'vcex-total-button vcex-icon fa fa-external-link-square', 'params' => array(array('type' => 'textfield', 'admin_label' => true, 'heading' => __('Unique Id', 'wpex'), 'param_name' => 'unique_id'), array('type' => 'textfield', 'admin_label' => true, 'heading' => __('Classes', 'wpex'), 'param_name' => 'classes'), array('type' => 'dropdown', 'heading' => __('Visibility', 'wpex'), 'param_name' => 'visibility', 'value' => array_flip(wpex_visibility())), array('type' => 'dropdown', 'heading' => __('Appear Animation', 'wpex'), 'param_name' => 'css_animation', 'value' => array_flip(wpex_css_animations())), array('type' => 'dropdown', 'heading' => __('Hover Animation', 'wpex'), 'param_name' => 'hover_animation', 'value' => array_flip(wpex_hover_css_animations())), array('type' => 'textfield', 'heading' => __('URL', 'wpex'), 'param_name' => 'url', 'value' => 'http://www.google.com/'), array('type' => 'textfield', 'heading' => __('Text', 'wpex'), 'param_name' => 'content', 'admin_label' => true, 'std' => 'Button Text'), array('type' => 'textfield', 'heading' => __('Link Title', 'wpex'), 'param_name' => 'title', 'value' => 'Visit Site'), array('type' => 'dropdown', 'heading' => __('Link Target', 'wpex'), 'param_name' => 'target', 'value' => array(__('Self', 'wpex') => '', __('Blank', 'wpex') => 'blank', __('Local', 'wpex') => 'local')), array('type' => 'dropdown', 'heading' => __('Link Rel', 'wpex'), 'param_name' => 'rel', 'value' => array(__('None', 'wpex') => '', __('Nofollow', 'wpex') => 'nofollow')), array('type' => 'dropdown', 'heading' => __('Style', 'wpex'), 'param_name' => 'style', 'std' => '', 'value' => array_flip(wpex_button_styles()), 'group' => __('Design', 'wpex')), array('type' => 'dropdown', 'heading' => __('Layout', 'wpex'), 'param_name' => 'layout', 'value' => array(__('Inline', 'wpex') => '', __('Block', 'wpex') => 'block', __('Expanded (fit container)', 'wpex') => 'expanded'), 'group' => __('Design', 'wpex')), array('type' => 'dropdown', 'heading' => __('Align', 'wpex'), 'param_name' => 'align', 'value' => array_flip(wpex_alignments()), 'group' => __('Design', 'wpex')), array('type' => 'dropdown', 'heading' => __('Size', 'wpex'), 'param_name' => 'size', 'std' => '', 'value' => array(__('Default', 'wpex') => '', __('Small', 'wpex') => 'small', __('Medium', 'wpex') => 'medium', __('Large', 'wpex') => 'large'), 'group' => __('Design', 'wpex')), array('type' => 'dropdown', 'heading' => __('Font Family', 'wpex'), 'param_name' => 'font_family', 'std' => '', 'value' => vcex_fonts_array(), 'group' => __('Design', 'wpex')), array('type' => 'dropdown', 'heading' => __('Color', 'wpex'), 'param_name' => 'color', 'std' => '', 'value' => array_flip(wpex_button_colors()), 'group' => __('Design', 'wpex')), array('type' => 'colorpicker', 'heading' => __('Background', 'wpex'), 'param_name' => 'custom_background', 'group' => __('Design', 'wpex')), array('type' => 'colorpicker', 'heading' => __('Background: Hover', 'wpex'), 'param_name' => 'custom_hover_background', 'group' => __('Design', 'wpex')), array('type' => 'colorpicker', 'heading' => __('Color', 'wpex'), 'param_name' => 'custom_color', 'group' => __('Design', 'wpex')), array('type' => 'colorpicker', 'heading' => __('Color: Hover', 'wpex'), 'param_name' => 'custom_hover_color', 'group' => __('Design', 'wpex')), array('type' => 'textfield', 'heading' => __('Font Size', 'wpex'), 'param_name' => 'font_size', 'group' => __('Design', 'wpex')), array('type' => 'textfield', 'heading' => __('Letter Spacing', 'wpex'), 'param_name' => 'letter_spacing', 'group' => __('Design', 'wpex')), array('type' => 'dropdown', 'heading' => __('Text Transform', 'wpex'), 'param_name' => 'text_transform', 'group' => __('Design', 'wpex'), 'value' => array_flip(wpex_text_transforms()), 'std' => ''), array('type' => 'dropdown', 'heading' => __('Font Weight', 'wpex'), 'param_name' => 'font_weight', 'value' => array_flip(wpex_font_weights()), 'std' => '', 'group' => __('Design', 'wpex')), array('type' => 'textfield', 'heading' => __('Custom Width', 'wpex'), 'param_name' => 'width', 'description' => __('Please use a pixel or percentage value.', 'wpex'), 'group' => __('Design', 'wpex')), array('type' => 'textfield', 'heading' => __('Border Radius', 'wpex'), 'param_name' => 'border_radius', 'description' => __('Please enter a px value.', 'wpex'), 'group' => __('Design', 'wpex')), array('type' => 'textfield', 'heading' => __('Padding', 'wpex'), 'param_name' => 'font_padding', 'description' => __('Please use the following format: top right bottom left.', 'wpex'), 'group' => __('Design', 'wpex')), array('type' => 'textfield', 'heading' => __('Margin', 'wpex'), 'param_name' => 'margin', 'description' => __('Please use the following format: top right bottom left.', 'wpex'), 'group' => __('Design', 'wpex')), array('type' => 'dropdown', 'heading' => __('Lightbox', 'wpex'), 'param_name' => 'lightbox', 'value' => array(__('No', 'wpex') => '', __('Yes', 'wpex') => 'true'), 'group' => __('Lightbox', 'wpex')), array('type' => 'dropdown', 'heading' => __('Type', 'wpex'), 'param_name' => 'lightbox_type', 'value' => array(__('Auto Detect - slow', 'wpex') => '', __('iFrame', 'wpex') => 'iframe', __('Image', 'wpex') => 'image', __('Video', 'wpex') => 'video_embed', __('HTML5', 'wpex') => 'html5', __('Quicktime', 'wpex') => 'quicktime'), 'description' => __('Auto detect depends on the iLightbox API, so by choosing your type it speeds things up and you also allows for HTTPS support.', 'wpex'), 'group' => __('Lightbox', 'wpex'), 'dependency' => array('element' => 'lightbox', 'value' => 'true')), array('type' => 'attach_image', 'heading' => __('Lightbox Image', 'wpex'), 'param_name' => 'lightbox_image', 'dependency' => array('element' => 'lightbox_type', 'value' => 'image'), 'group' => __('Lightbox', 'wpex')), array('type' => 'textfield', 'heading' => __('HTML5 Webm URL', 'wpex'), 'param_name' => 'lightbox_video_html5_webm', 'description' => __('Enter the URL to a video, SWF file, flash file or a website URL to open in lightbox.', 'wpex'), 'group' => __('Lightbox', 'wpex'), 'dependency' => array('element' => 'lightbox_type', 'value' => 'html5')), array('type' => 'attach_image', 'heading' => __('Lightbox HTML5 Poster Image', 'wpex'), 'param_name' => 'lightbox_poster_image', 'dependency' => array('element' => 'lightbox_type', 'value' => 'html5'), 'group' => __('Lightbox', 'wpex')), array('type' => 'textfield', 'heading' => __('Lightbox Dimensions', 'wpex'), 'param_name' => 'lightbox_dimensions', 'description' => __('Enter a custom width and height for your lightbox pop-up window. Use format widthxheight. Example: 900x600.', 'wpex'), 'group' => __('Lightbox', 'wpex'), 'dependency' => array('element' => 'lightbox', 'value' => 'true')), array('type' => 'dropdown', 'heading' => __('Icon library', 'wpex'), 'param_name' => 'icon_type', 'description' => __('Select icon library.', 'wpex'), 'std' => 'fontawesome', 'value' => array(__('Font Awesome', 'wpex') => 'fontawesome', __('Open Iconic', 'wpex') => 'openiconic', __('Typicons', 'wpex') => 'typicons', __('Entypo', 'wpex') => 'entypo', __('Linecons', 'wpex') => 'linecons', __('Pixel', 'wpex') => 'pixelicons'), 'group' => __('Icons', 'wpex')), array('type' => 'iconpicker', 'heading' => __('Icon Left', 'wpex'), 'param_name' => 'icon_left', 'admin_label' => true, 'settings' => array('emptyIcon' => true, 'iconsPerPage' => 200), 'dependency' => array('element' => 'icon_type', 'value' => 'fontawesome'), 'group' => __('Icons', 'wpex')), array('type' => 'iconpicker', 'heading' => __('Icon Left', 'wpex'), 'param_name' => 'icon_left_openiconic', 'settings' => array('emptyIcon' => true, 'type' => 'openiconic', 'iconsPerPage' => 200), 'dependency' => array('element' => 'icon_type', 'value' => 'openiconic'), 'group' => __('Icons', 'wpex')), array('type' => 'iconpicker', 'heading' => __('Icon Left', 'wpex'), 'param_name' => 'icon_left_typicons', 'settings' => array('emptyIcon' => true, 'type' => 'typicons', 'iconsPerPage' => 200), 'dependency' => array('element' => 'icon_type', 'value' => 'typicons'), 'group' => __('Icons', 'wpex')), array('type' => 'iconpicker', 'heading' => __('Icon Left', 'wpex'), 'param_name' => 'icon_left_entypo', 'settings' => array('emptyIcon' => true, 'type' => 'entypo', 'iconsPerPage' => 300), 'dependency' => array('element' => 'icon_type', 'value' => 'entypo'), 'group' => __('Icons', 'wpex')), array('type' => 'iconpicker', 'heading' => __('Icon Left', 'wpex'), 'param_name' => 'icon_left_linecons', 'settings' => array('emptyIcon' => true, 'type' => 'linecons', 'iconsPerPage' => 200), 'dependency' => array('element' => 'icon_type', 'value' => 'linecons'), 'group' => __('Icons', 'wpex')), array('type' => 'iconpicker', 'heading' => __('Icon Left', 'wpex'), 'param_name' => 'icon_left_pixelicons', 'settings' => array('emptyIcon' => true, 'type' => 'pixelicons', 'source' => vcex_pixel_icons()), 'dependency' => array('element' => 'icon_type', 'value' => 'pixelicons'), 'group' => __('Icons', 'wpex')), array('type' => 'iconpicker', 'heading' => __('Icon Right', 'wpex'), 'param_name' => 'icon_right', 'admin_label' => true, 'settings' => array('emptyIcon' => true, 'iconsPerPage' => 200), 'dependency' => array('element' => 'icon_type', 'value' => 'fontawesome'), 'group' => __('Icons', 'wpex')), array('type' => 'iconpicker', 'heading' => __('Icon Right', 'wpex'), 'param_name' => 'icon_right_openiconic', 'settings' => array('emptyIcon' => true, 'type' => 'openiconic', 'iconsPerPage' => 200), 'dependency' => array('element' => 'icon_type', 'value' => 'openiconic'), 'group' => __('Icons', 'wpex')), array('type' => 'iconpicker', 'heading' => __('Icon Right', 'wpex'), 'param_name' => 'icon_right_typicons', 'settings' => array('emptyIcon' => true, 'type' => 'typicons', 'iconsPerPage' => 200), 'dependency' => array('element' => 'icon_type', 'value' => 'typicons'), 'group' => __('Icons', 'wpex')), array('type' => 'iconpicker', 'heading' => __('Icon Right', 'wpex'), 'param_name' => 'icon_right_entypo', 'settings' => array('emptyIcon' => true, 'type' => 'entypo', 'iconsPerPage' => 300), 'dependency' => array('element' => 'icon_type', 'value' => 'entypo'), 'group' => __('Icons', 'wpex')), array('type' => 'iconpicker', 'heading' => __('Icon Right', 'wpex'), 'param_name' => 'icon_right_linecons', 'settings' => array('emptyIcon' => true, 'type' => 'linecons', 'iconsPerPage' => 200), 'dependency' => array('element' => 'icon_type', 'value' => 'linecons'), 'group' => __('Icons', 'wpex')), array('type' => 'iconpicker', 'heading' => __('Icon Right', 'wpex'), 'param_name' => 'icon_right_pixelicons', 'settings' => array('emptyIcon' => true, 'type' => 'pixelicons', 'source' => vcex_pixel_icons()), 'dependency' => array('element' => 'icon_type', 'value' => 'pixelicons'), 'group' => __('Icons', 'wpex')), array('type' => 'textfield', 'heading' => __('Left Icon: Right Padding', 'wpex'), 'param_name' => 'icon_left_padding', 'group' => __('Icons', 'wpex')), array('type' => 'textfield', 'heading' => __('Right Icon: Left Padding', 'wpex'), 'param_name' => 'icon_right_padding', 'group' => __('Icons', 'wpex')), array('type' => 'css_editor', 'heading' => __('CSS', 'wpex'), 'param_name' => 'css_wrap', 'group' => __('CSS', 'wpex')))));
}
Пример #8
0
/**
 * Adds the shortcode to the Visual Composer
 *
 * @since Total 1.4.1
 */
function vcex_icon_vc_map()
{
    return array('name' => esc_html__('Font Icon', 'total'), 'description' => esc_html__('Font Icon from various libraries', 'total'), 'base' => 'vcex_icon', 'icon' => 'vcex-font-icon vcex-icon fa fa-bolt', 'category' => wpex_get_theme_branding(), 'params' => array(array('type' => 'textfield', 'heading' => esc_html__('Unique Id', 'total'), 'param_name' => 'unique_id'), array('type' => 'textfield', 'heading' => esc_html__('Classes', 'total'), 'param_name' => 'el_class'), array('type' => 'dropdown', 'heading' => esc_html__('Appear Animation', 'total'), 'param_name' => 'css_animation', 'value' => array_flip(wpex_css_animations())), array('type' => 'dropdown', 'heading' => esc_html__('Hover Animation', 'total'), 'param_name' => 'hover_animation', 'value' => array_flip(wpex_hover_css_animations())), array('type' => 'dropdown', 'heading' => esc_html__('Icon library', 'total'), 'param_name' => 'icon_type', 'description' => esc_html__('Select icon library.', 'total'), 'value' => array(__('Font Awesome', 'total') => 'fontawesome', __('Open Iconic', 'total') => 'openiconic', __('Typicons', 'total') => 'typicons', __('Entypo', 'total') => 'entypo', __('Linecons', 'total') => 'linecons', __('Pixel', 'total') => 'pixelicons')), array('type' => 'iconpicker', 'heading' => esc_html__('Icon', 'total'), 'param_name' => 'icon', 'admin_label' => true, 'value' => 'fa fa-info-circle', 'settings' => array('emptyIcon' => true, 'iconsPerPage' => 200), 'dependency' => array('element' => 'icon_type', 'value' => 'fontawesome')), array('type' => 'iconpicker', 'heading' => esc_html__('Icon', 'total'), 'param_name' => 'icon_openiconic', 'std' => '', 'settings' => array('emptyIcon' => true, 'type' => 'openiconic', 'iconsPerPage' => 200), 'dependency' => array('element' => 'icon_type', 'value' => 'openiconic')), array('type' => 'iconpicker', 'heading' => esc_html__('Icon', 'total'), 'param_name' => 'icon_typicons', 'std' => '', 'settings' => array('emptyIcon' => true, 'type' => 'typicons', 'iconsPerPage' => 200), 'dependency' => array('element' => 'icon_type', 'value' => 'typicons')), array('type' => 'iconpicker', 'heading' => esc_html__('Icon', 'total'), 'param_name' => 'icon_entypo', 'std' => '', 'settings' => array('emptyIcon' => true, 'type' => 'entypo', 'iconsPerPage' => 300), 'dependency' => array('element' => 'icon_type', 'value' => 'entypo')), array('type' => 'iconpicker', 'heading' => esc_html__('Icon', 'total'), 'param_name' => 'icon_linecons', 'std' => '', 'settings' => array('emptyIcon' => true, 'type' => 'linecons', 'iconsPerPage' => 200), 'dependency' => array('element' => 'icon_type', 'value' => 'linecons')), array('type' => 'iconpicker', 'heading' => esc_html__('Icon', 'total'), 'param_name' => 'icon_pixelicons', 'std' => '', 'settings' => array('emptyIcon' => true, 'type' => 'pixelicons', 'source' => vcex_pixel_icons()), 'dependency' => array('element' => 'icon_type', 'value' => 'pixelicons')), array('type' => 'colorpicker', 'heading' => esc_html__('Color', 'total'), 'param_name' => 'color', 'group' => esc_html__('Design', 'total')), array('type' => 'colorpicker', 'heading' => esc_html__('Color: Hover', 'total'), 'param_name' => 'color_hover', 'group' => esc_html__('Design', 'total')), array('type' => 'colorpicker', 'heading' => esc_html__('Background', 'total'), 'param_name' => 'background', 'group' => esc_html__('Design', 'total')), array('type' => 'colorpicker', 'heading' => esc_html__('Background: Hover', 'total'), 'param_name' => 'background_hover', 'group' => esc_html__('Design', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Size', 'total'), 'param_name' => 'size', 'std' => 'normal', 'value' => array(__('Inherit', 'total') => 'inherit', __('Extra Large', 'total') => 'xlarge', __('Large', 'total') => 'large', __('Normal', 'total') => 'normal', __('Small', 'total') => 'small', __('Tiny', 'total') => 'tiny'), 'group' => esc_html__('Design', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Position', 'total'), 'param_name' => 'float', 'value' => array_flip(wpex_alignments()), 'group' => esc_html__('Design', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Custom Size', 'total'), 'param_name' => 'custom_size', 'group' => esc_html__('Design', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Border Radius', 'total'), 'param_name' => 'border_radius', 'group' => esc_html__('Design', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Border', 'total'), 'param_name' => 'border', 'description' => esc_html__('Please use the shorthand format: width style color. Enter 0px or "none" to disable border.', 'total'), 'group' => esc_html__('Design', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Width', 'total'), 'param_name' => 'width', 'group' => esc_html__('Design', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Height', 'total'), 'param_name' => 'height', 'group' => esc_html__('Design', 'total')), array('type' => 'vc_link', 'heading' => esc_html__('Link', 'total'), 'param_name' => 'link_url', 'group' => esc_html__('Link', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Link: Local Scroll', 'total'), 'param_name' => 'link_local_scroll', 'value' => array(__('False', 'total') => 'false', __('True', 'total') => 'true'), 'group' => esc_html__('Link', 'total'))));
}
Пример #9
0
/**
 * Adds the shortcode to the Visual Composer
 *
 * @since 1.4.1
 */
function vcex_list_item_vc_map()
{
    return array('name' => esc_html__('List Item', 'total'), 'description' => esc_html__('Font Icon list item', 'total'), 'base' => 'vcex_list_item', 'icon' => 'vcex-list-item vcex-icon fa fa-list', 'category' => wpex_get_theme_branding(), 'params' => array(array('type' => 'textfield', 'heading' => esc_html__('Unique Id', 'total'), 'param_name' => 'unique_id'), array('type' => 'textfield', 'heading' => esc_html__('Custom Classes', 'total'), 'param_name' => 'classes'), array('type' => 'dropdown', 'heading' => esc_html__('Visibility', 'total'), 'param_name' => 'visibility', 'value' => array_flip(wpex_visibility())), array('type' => 'dropdown', 'heading' => esc_html__('Appear Animation', 'total'), 'param_name' => 'css_animation', 'value' => array_flip(wpex_css_animations())), array('type' => 'textfield', 'heading' => esc_html__('Content', 'total'), 'param_name' => 'content', 'admin_label' => true, 'value' => esc_html__('This is a pretty list item', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Font Family', 'total'), 'param_name' => 'font_family', 'std' => '', 'value' => vcex_fonts_array()), array('type' => 'textfield', 'heading' => esc_html__('Font Size', 'total'), 'param_name' => 'font_size'), array('type' => 'dropdown', 'heading' => esc_html__('Text Align', 'total'), 'param_name' => 'text_align', 'value' => array_flip(wpex_alignments())), array('type' => 'colorpicker', 'heading' => esc_html__('Color', 'total'), 'param_name' => 'font_color'), array('type' => 'dropdown', 'heading' => esc_html__('Icon library', 'total'), 'param_name' => 'icon_type', 'description' => esc_html__('Select icon library.', 'total'), 'value' => array(__('Font Awesome', 'total') => 'fontawesome', __('Open Iconic', 'total') => 'openiconic', __('Typicons', 'total') => 'typicons', __('Entypo', 'total') => 'entypo', __('Linecons', 'total') => 'linecons', __('Pixel', 'total') => 'pixelicons'), 'group' => esc_html__('Icon', 'total')), array('type' => 'iconpicker', 'heading' => esc_html__('Icon', 'total'), 'param_name' => 'icon', 'value' => 'fa fa-info-circle', 'settings' => array('emptyIcon' => true, 'iconsPerPage' => 200), 'dependency' => array('element' => 'icon_type', 'value' => 'fontawesome'), 'group' => esc_html__('Icon', 'total')), array('type' => 'iconpicker', 'heading' => esc_html__('Icon', 'total'), 'param_name' => 'icon_openiconic', 'settings' => array('emptyIcon' => true, 'type' => 'openiconic', 'iconsPerPage' => 200), 'dependency' => array('element' => 'icon_type', 'value' => 'openiconic'), 'group' => esc_html__('Icon', 'total')), array('type' => 'iconpicker', 'heading' => esc_html__('Icon', 'total'), 'param_name' => 'icon_typicons', 'settings' => array('emptyIcon' => true, 'type' => 'typicons', 'iconsPerPage' => 200), 'dependency' => array('element' => 'icon_type', 'value' => 'typicons'), 'group' => esc_html__('Icon', 'total')), array('type' => 'iconpicker', 'heading' => esc_html__('Icon', 'total'), 'param_name' => 'icon_entypo', 'settings' => array('emptyIcon' => true, 'type' => 'entypo', 'iconsPerPage' => 300), 'dependency' => array('element' => 'icon_type', 'value' => 'entypo'), 'group' => esc_html__('Icon', 'total')), array('type' => 'iconpicker', 'heading' => esc_html__('Icon', 'total'), 'param_name' => 'icon_linecons', 'settings' => array('emptyIcon' => true, 'type' => 'linecons', 'iconsPerPage' => 200), 'dependency' => array('element' => 'icon_type', 'value' => 'linecons'), 'group' => esc_html__('Icon', 'total')), array('type' => 'iconpicker', 'heading' => esc_html__('Icon', 'total'), 'param_name' => 'icon_pixelicons', 'settings' => array('emptyIcon' => true, 'type' => 'pixelicons', 'source' => vcex_pixel_icons()), 'dependency' => array('element' => 'icon_type', 'value' => 'pixelicons'), 'group' => esc_html__('Icon', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Right Margin', 'total'), 'param_name' => 'margin_right', 'group' => esc_html__('Icon', 'total')), array('type' => 'colorpicker', 'heading' => esc_html__('Color', 'total'), 'param_name' => 'color', 'group' => esc_html__('Icon', 'total')), array('type' => 'colorpicker', 'heading' => esc_html__('Background', 'total'), 'param_name' => 'icon_background', 'group' => esc_html__('Icon', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Size', 'total'), 'param_name' => 'icon_size', 'group' => esc_html__('Icon', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Border Radius', 'total'), 'param_name' => 'icon_border_radius', 'group' => esc_html__('Icon', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Width', 'total'), 'param_name' => 'icon_width', 'group' => esc_html__('Icon', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Height', 'total'), 'param_name' => 'icon_height', 'group' => esc_html__('Icon', 'total')), array('type' => 'vc_link', 'heading' => esc_html__('Link', 'total'), 'param_name' => 'link', 'group' => esc_html__('Link', 'total')), array('type' => 'css_editor', 'heading' => esc_html__('CSS', 'total'), 'param_name' => 'css', 'description' => esc_html__('If any of these are defined it will add a new wrapper around your icon box with the custom CSS applied to it.', 'total'), 'group' => esc_html__('Design', 'total'))));
}
/**
 * Adds the shortcode to the Visual Composer
 *
 * @since Total 1.4.1
 */
function vcex_blog_grid_vc_map()
{
    vc_map(array('name' => __('Blog Grid', 'wpex'), 'description' => __('Recent blog posts grid', 'wpex'), 'base' => 'vcex_blog_grid', 'icon' => 'vcex-blog-grid vcex-icon fa fa-pencil', 'category' => WPEX_THEME_BRANDING, 'params' => array(array('type' => 'textfield', 'heading' => __('Unique Id', 'wpex'), 'param_name' => 'unique_id'), array('type' => 'textfield', 'heading' => __('Custom Classes', 'wpex'), 'param_name' => 'classes'), array('type' => 'dropdown', 'heading' => __('Visibility', 'wpex'), 'param_name' => 'visibility', 'value' => array_flip(wpex_visibility())), array('type' => 'dropdown', 'heading' => __('Appear Animation', 'wpex'), 'param_name' => 'css_animation', 'value' => array_flip(wpex_css_animations()), 'dependency' => array('element' => 'filter', 'value' => 'false')), array('type' => 'dropdown', 'heading' => __('Grid Style', 'wpex'), 'param_name' => 'grid_style', 'edit_field_class' => 'vc_col-sm-3 vc_column clear', 'value' => array(__('Default', 'wpex') => 'default', __('Fit Columns', 'wpex') => 'fit_columns', __('Masonry', 'wpex') => 'masonry')), array('type' => 'dropdown', 'heading' => __('Columns', 'wpex'), 'param_name' => 'columns', 'value' => array_flip(wpex_grid_columns()), 'std' => '4', 'edit_field_class' => 'vc_col-sm-3 vc_column'), array('type' => 'dropdown', 'heading' => __('Gap', 'wpex'), 'param_name' => 'columns_gap', 'value' => array_flip(wpex_column_gaps()), 'std' => '', 'edit_field_class' => 'vc_col-sm-3 vc_column'), array('type' => 'dropdown', 'heading' => __('Responsive', 'wpex'), 'param_name' => 'columns_responsive', 'value' => array(__('Yes', 'wpex') => '', __('No', 'wpex') => 'false'), 'std' => '', 'edit_field_class' => 'vc_col-sm-3 vc_column'), array('type' => 'dropdown', 'heading' => __('1 Column Style', 'wpex'), 'param_name' => 'single_column_style', 'value' => array(__('Default', 'wpex') => '', __('Left Image & Right Content', 'wpex') => 'left_thumbs'), 'dependency' => array('element' => 'columns', 'value' => '1')), array('type' => 'dropdown', 'heading' => __('Equal Heights?', 'wpex'), 'param_name' => 'equal_heights_grid', 'value' => array(__('No', 'wpex') => 'false', __('Yes', 'wpex') => 'true'), 'description' => __('Adds equal heights for the entry content so entries on the same row are the same height. You must have equal sized images for this to work efficiently. Disabled for masonry style layouts and filterable layouts.', 'wpex')), array('type' => 'dropdown', 'heading' => __('Link Target', 'wpex'), 'param_name' => 'url_target', 'value' => array(__('Self', 'wpex') => 'self', __('Blank', 'wpex') => '_blank'), 'description' => __('This will apply to the image, title and readmore button', 'wpex')), array('type' => 'textfield', 'heading' => __('Posts Per Page', 'wpex'), 'param_name' => 'posts_per_page', 'value' => '4', 'description' => __('You can enter "-1" to display all posts.', 'wpex'), 'group' => __('Query', 'wpex')), array('type' => 'dropdown', 'heading' => __('Pagination', 'wpex'), 'param_name' => 'pagination', 'value' => array(__('No', 'wpex') => '', __('Yes', 'wpex') => 'true'), 'description' => __('Important: Pagination will not work on your homepage due to how WordPress Queries function.', 'wpex'), 'group' => __('Query', 'wpex')), array('type' => 'textfield', 'heading' => __('Offset', 'wpex'), 'param_name' => 'offset', 'group' => __('Query', 'wpex'), 'description' => __('Number of post to displace or pass over. Warning: Setting the offset parameter overrides/ignores the paged parameter and breaks pagination. The offset parameter is ignored when posts per page is set to -1.', 'wpex')), array('type' => 'autocomplete', 'heading' => __('Include Categories', 'wpex'), 'param_name' => 'include_categories', 'param_holder_class' => 'vc_not-for-custom', 'admin_label' => true, 'settings' => array('multiple' => true, 'min_length' => 1, 'groups' => false, 'unique_values' => true, 'display_inline' => true, 'delay' => 0, 'auto_focus' => true), 'group' => __('Query', 'wpex')), array('type' => 'autocomplete', 'heading' => __('Exclude Categories', 'wpex'), 'param_name' => 'exclude_categories', 'param_holder_class' => 'vc_not-for-custom', 'admin_label' => true, 'settings' => array('multiple' => true, 'min_length' => 1, 'groups' => false, 'unique_values' => true, 'display_inline' => true, 'delay' => 0, 'auto_focus' => true), 'group' => __('Query', 'wpex')), array('type' => 'autocomplete', 'heading' => __('Limit By Author', 'wpex'), 'param_name' => 'author_in', 'settings' => array('multiple' => true, 'min_length' => 1, 'groups' => false, 'unique_values' => true, 'display_inline' => true, 'delay' => 0, 'auto_focus' => true), 'group' => __('Query', 'wpex')), array('type' => 'dropdown', 'heading' => __('Order', 'wpex'), 'param_name' => 'order', 'group' => __('Query', 'wpex'), 'value' => array(__('Default', 'wpex') => '', __('DESC', 'wpex') => 'DESC', __('ASC', 'wpex') => 'ASC')), array('type' => 'dropdown', 'heading' => __('Order By', 'wpex'), 'param_name' => 'orderby', 'value' => vcex_orderby_array(), 'group' => __('Query', 'wpex')), array('type' => 'dropdown', 'heading' => __('Ignore Sticky Posts', 'wpex'), 'param_name' => 'ignore_sticky_posts', 'value' => array(__('No', 'wpex') => '', __('Yes', 'wpex') => 'true'), 'group' => __('Query', 'wpex')), array('type' => 'textfield', 'heading' => __('Orderby: Meta Key', 'wpex'), 'param_name' => 'orderby_meta_key', 'group' => __('Query', 'wpex'), 'dependency' => array('element' => 'orderby', 'value' => array('meta_value_num', 'meta_value'))), array('type' => 'dropdown', 'heading' => __('Category Filter', 'wpex'), 'param_name' => 'filter', 'value' => array(__('No', 'wpex') => 'false', __('Yes', 'wpex') => 'true'), 'description' => __('Enables a category filter to show and hide posts based on their categories. This does not load posts via AJAX, but rather filters items currently on the page.', 'wpex'), 'group' => __('Filter', 'wpex')), array('type' => 'autocomplete', 'heading' => __('Default Active Category', 'wpex'), 'param_name' => 'filter_active_category', 'param_holder_class' => 'vc_not-for-custom', 'admin_label' => true, 'settings' => array('multiple' => false, 'min_length' => 1, 'groups' => false, 'unique_values' => true, 'display_inline' => true, 'delay' => 0, 'auto_focus' => true), 'group' => __('Filter', 'wpex'), 'dependency' => array('element' => 'filter', 'value' => 'true')), array('type' => 'dropdown', 'heading' => __('Display All Link?', 'wpex'), 'param_name' => 'filter_all_link', 'value' => array(__('Yes', 'wpex') => 'true', __('No', 'wpex') => 'false'), 'group' => __('Filter', 'wpex'), 'dependency' => array('element' => 'filter', 'value' => 'true')), array('type' => 'textfield', 'heading' => __('Custom Filter "All" Text', 'wpex'), 'param_name' => 'all_text', 'group' => __('Filter', 'wpex'), 'dependency' => array('element' => 'filter_all_link', 'value' => 'true')), array('type' => 'dropdown', 'heading' => __('Button Style', 'wpex'), 'param_name' => 'filter_button_style', 'value' => array_flip(wpex_button_styles()), 'group' => __('Filter', 'wpex'), 'std' => 'minimal-border', 'dependency' => array('element' => 'filter', 'value' => 'true')), array('type' => 'dropdown', 'heading' => __('Button Color', 'wpex'), 'param_name' => 'filter_button_color', 'std' => '', 'value' => array_flip(wpex_button_colors()), 'group' => __('Filter', 'wpex'), 'dependency' => array('element' => 'filter', 'value' => 'true')), array('type' => 'dropdown', 'heading' => __('Filter Layout', 'wpex'), 'param_name' => 'masonry_layout_mode', 'value' => array(__('Masonry', 'wpex') => '', __('Fit Rows', 'wpex') => 'fitRows'), 'dependency' => array('element' => 'filter', 'value' => 'true'), 'group' => __('Filter', 'wpex')), array('type' => 'textfield', 'heading' => __('Custom Filter Speed', 'wpex'), 'param_name' => 'filter_speed', 'description' => __('Default is "0.4" seconds. Enter "0.0" to disable.', 'wpex'), 'dependency' => array('element' => 'filter', 'value' => 'true'), 'group' => __('Filter', 'wpex')), array('type' => 'dropdown', 'heading' => __('Center Filter Links', 'wpex'), 'param_name' => 'center_filter', 'value' => array(__('No', 'wpex') => '', __('Yes', 'wpex') => 'yes'), 'dependency' => array('element' => 'filter', 'value' => 'true'), 'group' => __('Filter', 'wpex')), array('type' => 'textfield', 'heading' => __('Font Size', 'wpex'), 'param_name' => 'filter_font_size', 'group' => __('Filter', 'wpex'), 'dependency' => array('element' => 'filter', 'value' => 'true')), array('type' => 'dropdown', 'heading' => __('Enable', 'wpex'), 'param_name' => 'entry_media', 'value' => array(__('Yes', 'wpex') => 'true', __('No', 'wpex') => 'false'), 'group' => __('Media', 'wpex')), array('type' => 'dropdown', 'heading' => __('Display Featured Videos?', 'wpex'), 'param_name' => 'featured_video', 'value' => array(__('Yes', 'wpex') => 'true', __('No', 'wpex') => 'false'), 'group' => __('Media', 'wpex'), 'dependency' => array('element' => 'entry_media', 'value' => 'true')), array('type' => 'dropdown', 'heading' => __('Image Links To', 'wpex'), 'param_name' => 'thumb_link', 'value' => array(__('Default', 'wpex') => '', __('Post', 'wpex') => 'post', __('Lightbox', 'wpex') => 'lightbox', __('Nowhere', 'wpex') => 'nowhere'), 'group' => __('Media', 'wpex'), 'dependency' => array('element' => 'entry_media', 'value' => 'true')), array('type' => 'dropdown', 'heading' => __('Image Size', 'wpex'), 'param_name' => 'img_size', 'std' => 'wpex_custom', 'value' => vcex_image_sizes(), 'group' => __('Media', 'wpex'), 'dependency' => array('element' => 'entry_media', 'value' => 'true')), array('type' => 'dropdown', 'heading' => __('Image Crop Location', 'wpex'), 'param_name' => 'img_crop', 'std' => 'center-center', 'value' => array_flip(wpex_image_crop_locations()), 'dependency' => array('element' => 'img_size', 'value' => 'wpex_custom'), 'group' => __('Media', 'wpex')), array('type' => 'textfield', 'heading' => __('Image Crop Width', 'wpex'), 'param_name' => 'img_width', 'dependency' => array('element' => 'img_size', 'value' => 'wpex_custom'), 'description' => __('Enter a width in pixels.', 'wpex'), 'group' => __('Media', 'wpex')), array('type' => 'textfield', 'heading' => __('Image Crop Height', 'wpex'), 'param_name' => 'img_height', 'dependency' => array('element' => 'img_size', 'value' => 'wpex_custom'), 'description' => __('Enter a height in pixels. Leave empty to disable vertical cropping and keep image proportions.', 'wpex'), 'group' => __('Media', 'wpex')), array('type' => 'dropdown', 'heading' => __('Overlay Style', 'wpex'), 'param_name' => 'overlay_style', 'value' => array_flip(wpex_overlay_styles_array()), 'group' => __('Media', 'wpex'), 'dependency' => array('element' => 'entry_media', 'value' => 'true')), array('type' => 'textfield', 'heading' => __('Overlay Button Text', 'wpex'), 'param_name' => 'overlay_button_text', 'group' => __('Media', 'wpex'), 'dependency' => array('element' => 'overlay_style', 'value' => 'hover-button')), array('type' => 'textfield', 'heading' => __('Overlay Excerpt Length', 'wpex'), 'param_name' => 'overlay_excerpt_length', 'value' => '15', 'group' => __('Media', 'wpex'), 'dependency' => array('element' => 'overlay_style', 'value' => 'title-excerpt-hover')), array('type' => 'dropdown', 'heading' => __('CSS3 Image Link Hover', 'wpex'), 'param_name' => 'img_hover_style', 'value' => array_flip(wpex_image_hovers()), 'group' => __('Media', 'wpex'), 'dependency' => array('element' => 'entry_media', 'value' => 'true')), array('type' => 'dropdown', 'heading' => __('Image Filter', 'wpex'), 'param_name' => 'img_filter', 'value' => array_flip(wpex_image_filters()), 'group' => __('Media', 'wpex'), 'dependency' => array('element' => 'entry_media', 'value' => 'true')), array('type' => 'dropdown', 'heading' => __('Title', 'wpex'), 'param_name' => 'title', 'value' => array(__('Yes', 'wpex') => 'true', __('No', 'wpex') => 'false'), 'group' => __('Title', 'wpex')), array('type' => 'colorpicker', 'heading' => __('Color', 'wpex'), 'param_name' => 'content_heading_color', 'group' => __('Title', 'wpex'), 'dependency' => array('element' => 'title', 'value' => 'true')), array('type' => 'textfield', 'heading' => __('Font Size', 'wpex'), 'param_name' => 'content_heading_size', 'group' => __('Title', 'wpex'), 'dependency' => array('element' => 'title', 'value' => 'true')), array('type' => 'textfield', 'heading' => __('Line Height', 'wpex'), 'param_name' => 'content_heading_line_height', 'group' => __('Title', 'wpex'), 'dependency' => array('element' => 'title', 'value' => 'true')), array('type' => 'textfield', 'heading' => __('Margin', 'wpex'), 'param_name' => 'content_heading_margin', 'group' => __('Title', 'wpex'), 'description' => __('Please use the following format: top right bottom left.', 'wpex'), 'dependency' => array('element' => 'title', 'value' => 'true')), array('type' => 'dropdown', 'heading' => __('Font Weight', 'wpex'), 'param_name' => 'content_heading_weight', 'group' => __('Title', 'wpex'), 'std' => '', 'value' => array_flip(wpex_font_weights()), 'dependency' => array('element' => 'title', 'value' => 'true')), array('type' => 'dropdown', 'heading' => __('Text Transform', 'wpex'), 'param_name' => 'content_heading_transform', 'group' => __('Title', 'wpex'), 'std' => '', 'value' => array_flip(wpex_text_transforms()), 'dependency' => array('element' => 'title', 'value' => 'true')), array('type' => 'dropdown', 'heading' => __('Enable', 'wpex'), 'param_name' => 'date', 'value' => array(__('Yes', 'wpex') => 'true', __('No', 'wpex') => 'false'), 'group' => __('Date', 'wpex')), array('type' => 'colorpicker', 'heading' => __('Color', 'wpex'), 'param_name' => 'date_color', 'group' => __('Date', 'wpex'), 'dependency' => array('element' => 'date', 'value' => 'true')), array('type' => 'textfield', 'heading' => __('Font Size', 'wpex'), 'param_name' => 'date_font_size', 'group' => __('Date', 'wpex'), 'dependency' => array('element' => 'date', 'value' => 'true')), array('type' => 'dropdown', 'heading' => __('Enable', 'wpex'), 'param_name' => 'excerpt', 'value' => array(__('Yes', 'wpex') => 'true', __('No', 'wpex') => 'false'), 'group' => __('Excerpt', 'wpex')), array('type' => 'textfield', 'heading' => __('Length', 'wpex'), 'param_name' => 'excerpt_length', 'std' => '15', 'group' => __('Excerpt', 'wpex'), 'description' => __('Enter how many words to display for the excerpt. To display the full post content enter "-1". To display the full post content up to the "more" tag enter "9999".', 'wpex'), 'dependency' => array('element' => 'excerpt', 'value' => 'true')), array('type' => 'textfield', 'heading' => __('Font Size', 'wpex'), 'param_name' => 'content_font_size', 'group' => __('Excerpt', 'wpex'), 'dependency' => array('element' => 'excerpt', 'value' => 'true')), array('type' => 'colorpicker', 'heading' => __('Color', 'wpex'), 'param_name' => 'content_color', 'group' => __('Excerpt', 'wpex'), 'dependency' => array('element' => 'excerpt', 'value' => 'true')), array('type' => 'dropdown', 'heading' => __('Enable', 'wpex'), 'param_name' => 'read_more', 'value' => array(__('Yes', 'wpex') => 'true', __('No', 'wpex') => 'false'), 'group' => __('Button', 'wpex')), array('type' => 'textfield', 'heading' => __('Text', 'wpex'), 'param_name' => 'read_more_text', 'group' => __('Button', 'wpex'), 'dependency' => array('element' => 'read_more', 'value' => 'true')), array('type' => 'dropdown', 'heading' => __('Style', 'wpex'), 'param_name' => 'readmore_style', 'std' => '', 'value' => array_flip(wpex_button_styles()), 'group' => __('Button', 'wpex'), 'dependency' => array('element' => 'read_more', 'value' => 'true')), array('type' => 'dropdown', 'heading' => __('Color', 'wpex'), 'param_name' => 'readmore_style_color', 'std' => '', 'value' => array_flip(wpex_button_colors()), 'group' => __('Button', 'wpex'), 'dependency' => array('element' => 'read_more', 'value' => 'true')), array('type' => 'dropdown', 'heading' => __('Arrow', 'wpex'), 'param_name' => 'readmore_rarr', 'value' => array(__('No', 'wpex') => 'false', __('Yes', 'wpex') => 'true'), 'group' => __('Button', 'wpex'), 'dependency' => array('element' => 'read_more', 'value' => 'true')), array('type' => 'textfield', 'heading' => __('Font Size', 'wpex'), 'param_name' => 'readmore_size', 'group' => __('Button', 'wpex'), 'dependency' => array('element' => 'read_more', 'value' => 'true')), array('type' => 'textfield', 'heading' => __('Border Radius', 'wpex'), 'param_name' => 'readmore_border_radius', 'description' => __('Please enter a px value.', 'wpex'), 'group' => __('Button', 'wpex'), 'dependency' => array('element' => 'read_more', 'value' => 'true')), array('type' => 'textfield', 'heading' => __('Padding', 'wpex'), 'param_name' => 'readmore_padding', 'description' => __('Please use the following format: top right bottom left.', 'wpex'), 'group' => __('Button', 'wpex'), 'dependency' => array('element' => 'read_more', 'value' => 'true')), array('type' => 'textfield', 'heading' => __('Margin', 'wpex'), 'param_name' => 'readmore_margin', 'description' => __('Please use the following format: top right bottom left.', 'wpex'), 'group' => __('Button', 'wpex'), 'dependency' => array('element' => 'read_more', 'value' => 'true')), array('type' => 'colorpicker', 'heading' => __('Background', 'wpex'), 'param_name' => 'readmore_background', 'group' => __('Button', 'wpex'), 'dependency' => array('element' => 'read_more', 'value' => 'true')), array('type' => 'colorpicker', 'heading' => __('Color', 'wpex'), 'param_name' => 'readmore_color', 'group' => __('Button', 'wpex'), 'dependency' => array('element' => 'read_more', 'value' => 'true')), array('type' => 'colorpicker', 'heading' => __('Background: Hover', 'wpex'), 'param_name' => 'readmore_hover_background', 'group' => __('Button', 'wpex'), 'dependency' => array('element' => 'read_more', 'value' => 'true')), array('type' => 'colorpicker', 'heading' => __('Color: Hover', 'wpex'), 'param_name' => 'readmore_hover_color', 'group' => __('Button', 'wpex'), 'dependency' => array('element' => 'read_more', 'value' => 'true')), array('type' => 'colorpicker', 'heading' => __('Content Background', 'wpex'), 'param_name' => 'content_background', 'group' => __('Design', 'wpex')), array('type' => 'dropdown', 'heading' => __('Content Alignment', 'wpex'), 'param_name' => 'content_alignment', 'value' => array_flip(wpex_alignments()), 'group' => __('Design', 'wpex')), array('type' => 'textfield', 'heading' => __('Content Margin', 'wpex'), 'param_name' => 'content_margin', 'description' => __('Please use the following format: top right bottom left.', 'wpex'), 'group' => __('Design', 'wpex')), array('type' => 'textfield', 'heading' => __('Content Padding', 'wpex'), 'param_name' => 'content_padding', 'description' => __('Please use the following format: top right bottom left.', 'wpex'), 'group' => __('Design', 'wpex')), array('type' => 'textfield', 'heading' => __('Content Border', 'wpex'), 'param_name' => 'content_border', 'description' => __('Please use the shorthand format: width style color. Enter 0px or "none" to disable border.', 'wpex'), 'group' => __('Design', 'wpex')), array('type' => 'textfield', 'heading' => __('Content Opacity', 'wpex'), 'param_name' => 'content_opacity', 'description' => __('Enter a value between "0" and "1".', 'wpex'), 'group' => __('Design', 'wpex')))));
}