/**
 * 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')))));
}
/**
 * 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')))));
}
Beispiel #3
0
/**
 * Adds the shortcode to the Visual Composer
 *
 * @since 1.4.1
 */
function vcex_feature_box_vc_map()
{
    return array('name' => esc_html__('Feature Box', 'total'), 'description' => esc_html__('A feature content box', 'total'), 'base' => 'vcex_feature_box', 'category' => wpex_get_theme_branding(), 'icon' => 'vcex-feature-box vcex-icon fa fa-trophy', '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__('Style', 'total'), 'param_name' => 'style', 'value' => array(__('Left Content - Right Image', 'total') => 'left-content-right-image', __('Left Image - Right Content', 'total') => 'left-image-right-content')), array('type' => 'dropdown', 'heading' => esc_html__('Alignment', 'total'), 'param_name' => 'text_align', 'value' => array(__('Default', 'total') => '', __('Center', 'total') => 'center', __('Left', 'total') => 'left', __('Right', 'total') => 'right')), array('type' => 'textfield', 'heading' => esc_html__('Padding', 'total'), 'param_name' => 'padding', 'description' => esc_html__('Please use the following format: top right bottom left.', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Border', 'total'), 'description' => esc_html__('Please use the shorthand format: width style color. Enter 0px or "none" to disable border.', 'total'), 'param_name' => 'border'), array('type' => 'colorpicker', 'heading' => esc_html__('Background', 'total'), 'param_name' => 'background'), array('type' => 'textfield', 'heading' => esc_html__('Heading', 'total'), 'param_name' => 'heading', 'value' => 'Sample Heading', 'group' => esc_html__('Heading', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('HTML Tag', 'total'), 'param_name' => 'heading_type', 'group' => esc_html__('Heading', 'total'), 'value' => array('h2' => 'h2', 'h3' => 'h3', 'h4' => 'h4', __('h5', 'total') => 'h5', 'div' => 'div'), 'dependency' => array('element' => 'heading', 'not_empty' => true)), array('type' => 'vc_link', 'heading' => esc_html__('Link', 'total'), 'param_name' => 'heading_url', 'group' => esc_html__('Heading', 'total'), 'dependency' => array('element' => 'heading', 'not_empty' => true)), array('type' => 'dropdown', 'heading' => esc_html__('Font Family', 'total'), 'param_name' => 'heading_font_family', 'std' => '', 'value' => vcex_fonts_array(), 'group' => esc_html__('Heading', 'total')), array('type' => 'colorpicker', 'heading' => esc_html__('Heading Color', 'total'), 'param_name' => 'heading_color', 'group' => esc_html__('Heading', 'total'), 'dependency' => array('element' => 'heading', 'not_empty' => true)), array('type' => 'dropdown', 'heading' => esc_html__('Font Weight', 'total'), 'param_name' => 'heading_weight', 'std' => '', 'value' => array_flip(wpex_font_weights()), 'group' => esc_html__('Heading', 'total'), 'dependency' => array('element' => 'heading', 'not_empty' => true)), array('type' => 'dropdown', 'heading' => esc_html__('Heading Text Transform', 'total'), 'param_name' => 'heading_transform', 'group' => esc_html__('Heading', 'total'), 'value' => array_flip(wpex_text_transforms()), 'dependency' => array('element' => 'heading', 'not_empty' => true)), array('type' => 'textfield', 'heading' => esc_html__('Font Size', 'total'), 'param_name' => 'heading_size', 'group' => esc_html__('Heading', 'total'), 'dependency' => array('element' => 'heading', 'not_empty' => true)), array('type' => 'textfield', 'heading' => esc_html__('Letter Spacing', 'total'), 'param_name' => 'heading_letter_spacing', 'group' => esc_html__('Heading', 'total'), 'dependency' => array('element' => 'heading', 'not_empty' => true)), array('type' => 'textfield', 'heading' => esc_html__('Margin', 'total'), 'param_name' => 'heading_margin', 'description' => esc_html__('Please use the following format: top right bottom left.', 'total'), 'group' => esc_html__('Heading', 'total'), 'dependency' => array('element' => 'heading', 'not_empty' => true)), array('type' => 'textarea_html', 'holder' => 'div', 'heading' => esc_html__('Content', 'total'), 'param_name' => 'content', 'value' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.', 'group' => esc_html__('Content', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Padding', 'total'), 'param_name' => 'content_padding', 'description' => esc_html__('Please use the following format: top right bottom left.', 'total'), 'group' => esc_html__('Content', 'total'), 'dependency' => array('element' => 'content', 'not_empty' => true)), array('type' => 'textfield', 'heading' => esc_html__('Font Size', 'total'), 'param_name' => 'content_font_size', 'group' => esc_html__('Content', 'total'), 'dependency' => array('element' => 'content', 'not_empty' => true)), array('type' => 'dropdown', 'heading' => esc_html__('Font Weight', 'total'), 'param_name' => 'content_font_weight', 'std' => '', 'value' => array_flip(wpex_font_weights()), 'group' => esc_html__('Content', 'total'), 'dependency' => array('element' => 'content', 'not_empty' => true)), array('type' => 'colorpicker', 'heading' => esc_html__('Background', 'total'), 'param_name' => 'content_background', 'group' => esc_html__('Content', 'total'), 'dependency' => array('element' => 'content', 'not_empty' => true)), array('type' => 'colorpicker', 'heading' => esc_html__('Color', 'total'), 'param_name' => 'content_color', 'group' => esc_html__('Content', 'total'), 'dependency' => array('element' => 'content', 'not_empty' => true)), array('type' => 'attach_image', 'heading' => esc_html__('Image', 'total'), 'param_name' => 'image', 'group' => esc_html__('Image', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Equal Heights?', 'total'), 'param_name' => 'equal_heights', 'value' => array(__('No', 'total') => 'false', __('Yes', 'total') => 'true'), 'description' => esc_html__('Keeps the image column the same height as your content.', 'total'), 'group' => esc_html__('Image', 'total')), array('type' => 'vc_link', 'heading' => esc_html__('Image URL', 'total'), 'param_name' => 'image_url', 'group' => esc_html__('Image', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Lightbox Type', 'total'), 'param_name' => 'image_lightbox', 'group' => esc_html__('Image', 'total'), 'value' => array(__('None', 'total') => '', __('Self', 'total') => 'image', __('URL', 'total') => 'url', __('Auto Detect - slow', 'total') => 'auto-detect', __('Video', 'total') => 'video_embed', __('HTML5', 'total') => 'html5', __('Quicktime', 'total') => 'quicktime')), 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')), array('type' => 'dropdown', 'heading' => esc_html__('Image Crop Location', 'total'), 'param_name' => 'img_crop', 'std' => 'center-center', 'value' => array_flip(wpex_image_crop_locations()), 'group' => esc_html__('Image', 'total'), 'dependency' => array('element' => 'img_size', 'value' => 'wpex_custom')), array('type' => 'textfield', 'heading' => esc_html__('Image Width', 'total'), 'param_name' => 'img_width', 'description' => esc_html__('Enter a width in pixels.', 'total'), 'group' => esc_html__('Image', 'total'), 'dependency' => array('element' => 'img_size', 'value' => 'wpex_custom')), array('type' => 'textfield', 'heading' => esc_html__('Image Height', 'total'), 'param_name' => 'img_height', 'description' => esc_html__('Enter a height in pixels. Leave empty to disable vertical cropping and keep image proportions.', 'total'), 'group' => esc_html__('Image', 'total'), 'dependency' => array('element' => 'img_size', 'value' => 'wpex_custom')), array('type' => 'textfield', 'heading' => esc_html__('Border Radius', 'total'), 'param_name' => 'img_border_radius', 'description' => esc_html__('Please enter a px value.', 'total'), 'group' => esc_html__('Image', 'total'), 'dependency' => array('element' => 'image', 'not_empty' => true)), array('type' => 'dropdown', 'heading' => esc_html__('CSS3 Image Hover', 'total'), 'param_name' => 'img_hover_style', 'value' => array_flip(wpex_image_hovers()), 'group' => esc_html__('Image', 'total'), 'dependency' => array('element' => 'image', 'not_empty' => true)), array('type' => 'dropdown', 'heading' => esc_html__('Image Filter', 'total'), 'param_name' => 'img_filter', 'value' => array_flip(wpex_image_filters()), 'group' => esc_html__('Image', 'total'), 'dependency' => array('element' => 'image', 'not_empty' => true)), array('type' => 'textfield', 'heading' => esc_html__('Video link', 'total'), 'param_name' => 'video', 'description' => esc_html__('Enter a URL that is compatible with WP\'s built-in oEmbed feature. ', 'total'), 'group' => esc_html__('Video', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Content Width', 'total'), 'param_name' => 'content_width', 'value' => '50%', 'group' => esc_html__('Widths', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Image Width', 'total'), 'param_name' => 'media_width', 'value' => '50%', 'group' => esc_html__('Widths', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Tablet Widths', 'total'), 'param_name' => 'tablet_widths', 'group' => esc_html__('Widths', 'total'), 'value' => array(__('Inherit', 'total') => '', __('Full-Width', 'total') => 'fullwidth')), array('type' => 'dropdown', 'heading' => esc_html__('Phone Widths', 'total'), 'param_name' => 'phone_widths', 'group' => esc_html__('Widths', 'total'), 'value' => array(__('Inherit', 'total') => '', __('Full-Width', 'total') => 'fullwidth'))));
}
Beispiel #4
0
/**
 * Register the shortcode for use with the Visual Composer
 *
 * @since 1.4.1
 */
function vcex_icon_box_vc_map()
{
    return array('name' => esc_html__('Icon Box', 'total'), 'base' => 'vcex_icon_box', 'category' => wpex_get_theme_branding(), 'icon' => 'vcex-icon-box vcex-icon fa fa-star', 'description' => esc_html__('Content box with icon', 'total'), '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__('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()), 'std' => ''), array('type' => 'dropdown', 'heading' => esc_html__('Style', 'total'), 'param_name' => 'style', 'value' => vcex_icon_box_styles(), 'description' => esc_html__('For greater control select left, right or top icon styles then go to the "Design" tab to modify the icon box design.', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Alignment', 'total'), 'param_name' => 'alignment', 'dependency' => array('element' => 'style', 'value' => array('two')), 'value' => array(__('Default', 'total') => '', __('Center', 'total') => 'center', __('Left', 'total') => 'left', __('Right', 'total') => 'right')), array('type' => 'textfield', 'heading' => esc_html__('Icon Bottom Margin', 'total'), 'param_name' => 'icon_bottom_margin', 'dependency' => array('element' => 'style', 'value' => array('two', 'three', 'four', 'five', 'six'))), array('type' => 'textfield', 'heading' => esc_html__('Container Left Padding', 'total'), 'param_name' => 'container_left_padding', 'dependency' => array('element' => 'style', 'value' => array('one'))), array('type' => 'textfield', 'heading' => esc_html__('Container Right Padding', 'total'), 'param_name' => 'container_right_padding', 'description' => esc_html__('Please enter a px value.', 'total'), 'dependency' => array('element' => 'style', 'value' => array('seven'))), array('type' => 'textarea_html', 'holder' => 'div', 'heading' => esc_html__('Content', 'total'), 'param_name' => 'content', 'value' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.', 'group' => esc_html__('Content', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Font Size', 'total'), 'param_name' => 'font_size', 'group' => esc_html__('Content', 'total')), array('type' => 'colorpicker', 'heading' => esc_html__('Color', 'total'), 'param_name' => 'font_color', 'group' => esc_html__('Content', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Heading', 'total'), 'param_name' => 'heading', 'std' => 'Sample Heading', 'group' => esc_html__('Heading', 'total')), array('type' => 'colorpicker', 'heading' => esc_html__('Color', 'total'), 'param_name' => 'heading_color', 'group' => esc_html__('Heading', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Type', 'total'), 'param_name' => 'heading_type', 'value' => array(__('Default', 'total') => '', 'h2' => 'h2', 'h3' => 'h3', 'h4' => 'h4', 'h5' => 'h5', 'div' => 'div', 'span' => 'span'), 'group' => esc_html__('Heading', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Font Family', 'total'), 'param_name' => 'heading_font_family', 'std' => '', 'value' => vcex_fonts_array(), 'group' => esc_html__('Heading', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Font Weight', 'total'), 'param_name' => 'heading_weight', 'value' => array_flip(wpex_font_weights()), 'std' => '', 'group' => esc_html__('Heading', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Text Transform', 'total'), 'param_name' => 'heading_transform', 'std' => '', 'group' => esc_html__('Heading', 'total'), 'value' => array_flip(wpex_text_transforms())), array('type' => 'textfield', 'heading' => esc_html__('Font Size', 'total'), 'param_name' => 'heading_size', 'group' => esc_html__('Heading', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Letter Spacing', 'total'), 'param_name' => 'heading_letter_spacing', 'group' => esc_html__('Heading', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Bottom Margin', 'total'), 'param_name' => 'heading_bottom_margin', 'group' => esc_html__('Heading', 'total')), 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__('Icon Font Alternative Classes', 'total'), 'param_name' => 'icon_alternative_classes', 'group' => esc_html__('Icon', 'total')), array('type' => 'colorpicker', 'heading' => esc_html__('Color', 'total'), 'param_name' => 'icon_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__('Font 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', 'description' => esc_html__('For a circle enter 50%.', 'total'), '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' => 'attach_image', 'heading' => esc_html__('Icon Image Alternative', 'total'), 'param_name' => 'image', 'group' => esc_html__('Image', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Width', 'total'), 'param_name' => 'image_width', 'group' => esc_html__('Image', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Height', 'total'), 'param_name' => 'image_height', 'group' => esc_html__('Image', 'total')), array('type' => 'textfield', 'heading' => esc_html__('URL', 'total'), 'param_name' => 'url', 'group' => esc_html__('URL', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('URL Target', 'total'), 'param_name' => 'url_target', 'value' => array(__('Self', 'total') => 'self', __('Blank', 'total') => '_blank', __('Local', 'total') => 'local'), 'group' => esc_html__('URL', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('URL Rel', 'total'), 'param_name' => 'url_rel', 'value' => array(__('None', 'total') => '', __('Nofollow', 'total') => 'nofollow'), 'group' => esc_html__('URL', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Link Container Wrap', 'total'), 'param_name' => 'url_wrap', 'value' => array(__('Default', 'total') => '', __('Yes', 'total') => 'true', __('No', 'total') => 'false'), 'group' => esc_html__('URL', 'total'), 'description' => esc_html__('Apply the link to the entire wrapper?', '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__('CSS', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Border Radius', 'total'), 'param_name' => 'border_radius', 'group' => esc_html__('CSS', 'total')), array('type' => 'colorpicker', 'heading' => esc_html__('Background: Hover', 'total'), 'param_name' => 'hover_background', 'description' => esc_html__('Will add a hover background color to your entire icon box or replace the current hover color for specific icon box styles.', 'total'), 'group' => esc_html__('CSS', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('White Text On Hover', 'total'), 'param_name' => 'hover_white_text', 'value' => array(__('No', 'total') => 'false', __('Yes', 'total') => 'true'), 'group' => esc_html__('CSS', 'total'))));
}
Beispiel #5
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'))));
}
Beispiel #6
0
/**
 * Adds the shortcode to the Visual Composer
 *
 * @since 1.4.1
 */
function vcex_teaser_vc_map()
{
    return array('name' => esc_html__('Teaser Box', 'total'), 'description' => esc_html__('A teaser content box', 'total'), 'base' => 'vcex_teaser', 'category' => wpex_get_theme_branding(), 'icon' => 'vcex-teaser vcex-icon fa fa-file-text-o', '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__('Hover Animation', 'total'), 'param_name' => 'hover_animation', 'value' => array_flip(wpex_hover_css_animations()), 'std' => ''), array('type' => 'dropdown', 'heading' => esc_html__('Text Align', 'total'), 'param_name' => 'text_align', 'value' => array(__('Default', 'total') => '', __('Center', 'total') => 'center', __('Left', 'total') => 'left', __('Right', 'total') => 'right')), array('type' => 'dropdown', 'heading' => esc_html__('Style', 'total'), 'param_name' => 'style', 'value' => array(__('Default', 'total') => '', __('Plain', 'total') => 'one', __('Boxed 1 - Legacy', 'total') => 'two', __('Boxed 2 - Legacy', 'total') => 'three', __('Outline - Legacy', 'total') => 'four')), array('type' => 'textfield', 'heading' => esc_html__('Padding', 'total'), 'param_name' => 'padding', 'description' => esc_html__('Please use the following format: top right bottom left.', 'total'), 'dependency' => array('element' => 'style', 'value' => 'two')), array('type' => 'colorpicker', 'heading' => esc_html__('Background Color', 'total'), 'param_name' => 'background', 'dependency' => array('element' => 'style', 'value' => array('two', 'three'))), array('type' => 'colorpicker', 'heading' => esc_html__('Border Color', 'total'), 'param_name' => 'border_color', 'dependency' => array('element' => 'style', 'value' => array('two', 'three', 'four'))), array('type' => 'textfield', 'heading' => esc_html__('Border Radius', 'total'), 'param_name' => 'border_radius', 'dependency' => array('element' => 'style', 'value' => array('two', 'three', 'four'))), array('type' => 'textfield', 'heading' => esc_html__('Heading', 'total'), 'param_name' => 'heading', 'value' => 'Sample Heading', 'group' => esc_html__('Heading', 'total')), array('type' => 'colorpicker', 'heading' => esc_html__('Heading Color', 'total'), 'param_name' => 'heading_color', 'group' => esc_html__('Heading', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Heading Type', 'total'), 'param_name' => 'heading_type', 'group' => esc_html__('Heading', 'total'), 'value' => array('h2' => 'h2', 'h3' => 'h3', 'h4' => 'h4', 'h5' => 'h5', 'div' => 'div')), array('type' => 'dropdown', 'heading' => esc_html__('Font Family', 'total'), 'param_name' => 'heading_font_family', 'std' => '', 'value' => vcex_fonts_array(), 'group' => esc_html__('Heading', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Heading Font Weight', 'total'), 'param_name' => 'heading_weight', 'std' => '', 'value' => array_flip(wpex_font_weights()), 'group' => esc_html__('Heading', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Heading Text Transform', 'total'), 'param_name' => 'heading_transform', 'group' => esc_html__('Heading', 'total'), 'value' => array_flip(wpex_text_transforms())), array('type' => 'textfield', 'heading' => esc_html__('Heading Font Size', 'total'), 'param_name' => 'heading_size', 'group' => esc_html__('Heading', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Heading Margin', 'total'), 'param_name' => 'heading_margin', 'description' => esc_html__('Please use the following format: top right bottom left.', 'total'), 'group' => esc_html__('Heading', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Heading Letter Spacing', 'total'), 'param_name' => 'heading_letter_spacing', 'group' => esc_html__('Heading', 'total')), array('type' => 'textarea_html', 'holder' => 'div', 'heading' => esc_html__('Content', 'total'), 'param_name' => 'content', 'value' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed faucibus feugiat convallis. Integer nec eros et risus condimentum tristique vel vitae arcu.', 'group' => esc_html__('Content', '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__('Content', '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__('Content', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Content Font Size', 'total'), 'param_name' => 'content_font_size', 'group' => esc_html__('Content', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Content Font Weight', 'total'), 'param_name' => 'content_font_weight', 'std' => '', 'value' => array_flip(wpex_font_weights()), 'group' => esc_html__('Content', 'total')), array('type' => 'colorpicker', 'heading' => esc_html__('Content Font Color', 'total'), 'param_name' => 'content_color', 'group' => esc_html__('Content', 'total')), array('type' => 'colorpicker', 'heading' => esc_html__('Content Background', 'total'), 'param_name' => 'content_background', 'group' => esc_html__('Content', 'total')), array('type' => 'attach_image', 'heading' => esc_html__('Image', 'total'), 'param_name' => 'image', 'group' => esc_html__('Media', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Video link', 'total'), 'param_name' => 'video', 'description' => esc_html__('Enter in a video URL that is compatible with WordPress\'s built-in oEmbed feature.', 'total'), 'group' => esc_html__('Media', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Image Style', 'total'), 'param_name' => 'img_style', 'value' => array(__('Default', 'total') => '', __('Stretch', 'total') => 'stretch'), 'group' => esc_html__('Media', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Image Crop Width', 'total'), 'param_name' => 'img_width', 'group' => esc_html__('Media', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Image Crop Height', 'total'), 'param_name' => 'img_height', 'description' => esc_html__('Enter a height in pixels. Leave empty to disable vertical cropping and keep image proportions.', 'total'), 'group' => esc_html__('Media', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Image Filter', 'total'), 'param_name' => 'img_filter', 'value' => array_flip(wpex_image_filters()), 'group' => esc_html__('Media', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('CSS3 Image Hover', 'total'), 'param_name' => 'img_hover_style', 'value' => array_flip(wpex_image_hovers()), 'group' => esc_html__('Media', 'total')), array('type' => 'vc_link', 'heading' => esc_html__('URL', 'total'), 'param_name' => 'url', 'group' => esc_html__('Link', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Link: Local Scroll', 'total'), 'param_name' => 'url_local_scroll', 'group' => esc_html__('Link', 'total'), 'value' => array(__('False', 'total') => '', __('True', 'total') => 'true')), array('type' => 'css_editor', 'heading' => esc_html__('Design', 'total'), 'param_name' => 'css', 'group' => esc_html__('Design', 'total'))));
}
Beispiel #7
0
/**
 * Adds the shortcode to the Visual Composer
 *
 * @since Total 1.4.1
 */
function vcex_milestone_vc_map()
{
    return array('name' => esc_html__('Milestone', 'total'), 'description' => esc_html__('Animated counter', 'total'), 'base' => 'vcex_milestone', 'icon' => 'vcex-milestone vcex-icon fa fa-medium', 'category' => wpex_get_theme_branding(), 'params' => array(array('type' => 'textfield', 'admin_label' => true, 'heading' => esc_html__('Unique Id', 'total'), 'param_name' => 'unique_id'), array('type' => 'textfield', 'admin_label' => true, 'heading' => esc_html__('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__('Hover Animation', 'total'), 'param_name' => 'hover_animation', 'value' => array_flip(wpex_hover_css_animations())), array('type' => 'dropdown', 'heading' => esc_html__('Animated', 'total'), 'param_name' => 'animated', 'std' => 'true', 'value' => array(__('Yes', 'total') => 'true', __('No', 'total') => 'false')), array('type' => 'textfield', 'heading' => esc_html__('Speed', 'total'), 'param_name' => 'speed', 'value' => '2500', 'description' => esc_html__('The number of milliseconds it should take to finish counting.', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Refresh Interval', 'total'), 'param_name' => 'interval', 'value' => '50', 'description' => esc_html__('The number of milliseconds to wait between refreshing the counter.', 'total')), array('type' => 'textfield', 'admin_label' => true, 'heading' => esc_html__('Number', 'total'), 'param_name' => 'number', 'std' => '45', 'group' => esc_html__('Number', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Before', 'total'), 'param_name' => 'before', 'group' => esc_html__('Number', 'total')), array('type' => 'textfield', 'heading' => esc_html__('After', 'total'), 'param_name' => 'after', 'default' => '%', 'group' => esc_html__('Number', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Font Family', 'total'), 'param_name' => 'number_font_family', 'std' => '', 'value' => vcex_fonts_array(), 'group' => esc_html__('Number', 'total')), array('type' => 'colorpicker', 'heading' => esc_html__('Color', 'total'), 'param_name' => 'number_color', 'group' => esc_html__('Number', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Font Size', 'total'), 'param_name' => 'number_size', 'group' => esc_html__('Number', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Font Weight', 'total'), 'param_name' => 'number_weight', 'value' => array_flip(wpex_font_weights()), 'std' => '', 'group' => esc_html__('Number', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Bottom Margin', 'total'), 'param_name' => 'number_bottom_margin', 'group' => esc_html__('Number', 'total')), array('type' => 'textfield', 'class' => 'vcex-animated-counter-caption', 'heading' => esc_html__('Caption', 'total'), 'param_name' => 'caption', 'value' => 'Awards Won', 'admin_label' => true, 'group' => esc_html__('Caption', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Font Family', 'total'), 'param_name' => 'caption_font_family', 'std' => '', 'value' => vcex_fonts_array(), 'group' => esc_html__('Caption', 'total')), array('type' => 'colorpicker', 'heading' => esc_html__('Color', 'total'), 'param_name' => 'caption_color', 'group' => esc_html__('Caption', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Font Size', 'total'), 'param_name' => 'caption_size', 'group' => esc_html__('Caption', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Font Weight', 'total'), 'param_name' => 'caption_font', 'value' => array_flip(wpex_font_weights()), 'std' => '', 'group' => esc_html__('Caption', 'total')), array('type' => 'textfield', 'heading' => esc_html__('URL', 'total'), 'param_name' => 'url', 'group' => esc_html__('Link', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('URL Target', 'total'), 'param_name' => 'url_target', 'value' => array(__('Self', 'total') => 'self', __('Blank', 'total') => 'blank'), 'group' => esc_html__('Link', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('URl Rel', 'total'), 'param_name' => 'url_rel', 'value' => array(__('None', 'total') => '', __('Nofollow', 'total') => 'nofollow'), 'group' => esc_html__('Link', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Link Container Wrap', 'total'), 'param_name' => 'url_wrap', 'value' => array(__('Default', 'total') => '', __('No', 'total') => 'false', __('Yes', 'total') => 'true'), 'group' => esc_html__('Link', 'total'), 'description' => esc_html__('Apply the link to the entire wrapper?', 'total')), array('type' => 'css_editor', 'heading' => esc_html__('Design', 'total'), 'param_name' => 'css', 'group' => esc_html__('Design options', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Width', 'total'), 'param_name' => 'width', 'group' => esc_html__('Design options', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Border Radius', 'total'), 'param_name' => 'border_radius', 'group' => esc_html__('Design options', 'total'))));
}