/**
 * Adds the shortcode to the Visual Composer
 *
 * @since Total 1.4.1
 */
function vcex_pricing_shortcode_vc_map()
{
    vc_map(array('name' => __('Pricing Table', 'wpex'), 'description' => __('Insert a pricing column', 'wpex'), 'base' => 'vcex_pricing', 'category' => WPEX_THEME_BRANDING, 'icon' => 'vcex-pricing vcex-icon fa fa-usd', 'params' => array(array('type' => 'textfield', 'heading' => __('Unique Id', 'wpex'), 'param_name' => 'unique_id'), array('type' => 'textfield', 'heading' => __('Classes', 'wpex'), 'param_name' => 'el_class'), 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' => 'dropdown', 'heading' => __('Featured', 'wpex'), 'param_name' => 'featured', 'value' => array(__('No', 'wpex') => 'no', __('Yes', 'wpex') => 'yes'), 'group' => __('Plan', 'wpex')), array('type' => 'textfield', 'heading' => __('Plan', 'wpex'), 'param_name' => 'plan', 'group' => __('Plan', 'wpex'), 'std' => __('Basic', 'wpex')), array('type' => 'colorpicker', 'heading' => __('Background', 'wpex'), 'param_name' => 'plan_background', 'group' => __('Plan', 'wpex'), 'dependency' => array('element' => 'plan', 'not_empty' => true)), array('type' => 'colorpicker', 'heading' => __('Color', 'wpex'), 'param_name' => 'plan_color', 'group' => __('Plan', 'wpex'), 'dependency' => array('element' => 'plan', 'not_empty' => true)), array('type' => 'dropdown', 'heading' => __('Font Weight', 'wpex'), 'param_name' => 'plan_weight', 'std' => '', 'value' => array_flip(wpex_font_weights()), 'group' => __('Plan', 'wpex'), 'dependency' => array('element' => 'plan', 'not_empty' => true)), array('type' => 'dropdown', 'heading' => __('Text Transform', 'wpex'), 'param_name' => 'plan_text_transform', 'std' => '', 'value' => array_flip(wpex_text_transforms()), 'group' => __('Plan', 'wpex'), 'dependency' => array('element' => 'plan', 'not_empty' => true)), array('type' => 'textfield', 'heading' => __('Font Size', 'wpex'), 'param_name' => 'plan_size', 'group' => __('Plan', 'wpex'), 'dependency' => array('element' => 'plan', 'not_empty' => true)), array('type' => 'textfield', 'heading' => __('Letter Spacing', 'wpex'), 'param_name' => 'plan_letter_spacing', 'group' => __('Plan', 'wpex'), 'dependency' => array('element' => 'plan', 'not_empty' => true), 'description' => __('Please enter a px value.', 'wpex')), array('type' => 'textfield', 'heading' => __('Padding', 'wpex'), 'param_name' => 'plan_padding', 'description' => __('Please use the following format: top right bottom left.', 'wpex'), 'group' => __('Plan', 'wpex'), 'dependency' => array('element' => 'plan', 'not_empty' => true)), array('type' => 'textfield', 'heading' => __('Margin', 'wpex'), 'param_name' => 'plan_margin', 'description' => __('Please use the following format: top right bottom left.', 'wpex'), 'group' => __('Plan', 'wpex'), 'dependency' => array('element' => 'plan', 'not_empty' => true)), array('type' => 'textfield', 'heading' => __('Border', 'wpex'), 'param_name' => 'plan_border', 'description' => __('Please use the shorthand format: width style color. Enter 0px or "none" to disable border.', 'wpex'), 'group' => __('Plan', 'wpex'), 'dependency' => array('element' => 'plan', 'not_empty' => true)), array('type' => 'textfield', 'heading' => __('Cost', 'wpex'), 'param_name' => 'cost', 'group' => __('Cost', 'wpex'), 'std' => '$20'), array('type' => 'colorpicker', 'heading' => __('Background', 'wpex'), 'param_name' => 'cost_background', 'group' => __('Cost', 'wpex'), 'dependency' => array('element' => 'cost', 'not_empty' => true)), array('type' => 'colorpicker', 'heading' => __('Color', 'wpex'), 'param_name' => 'cost_color', 'group' => __('Cost', 'wpex'), 'dependency' => array('element' => 'cost', 'not_empty' => true)), array('type' => 'dropdown', 'heading' => __('Font Weight', 'wpex'), 'param_name' => 'cost_weight', 'std' => '', 'value' => array_flip(wpex_font_weights()), 'group' => __('Cost', 'wpex'), 'dependency' => array('element' => 'cost', 'not_empty' => true)), array('type' => 'textfield', 'heading' => __('Font Size', 'wpex'), 'param_name' => 'cost_size', 'group' => __('Cost', 'wpex'), 'dependency' => array('element' => 'cost', 'not_empty' => true)), array('type' => 'textfield', 'heading' => __('Padding', 'wpex'), 'param_name' => 'cost_padding', 'description' => __('Please use the following format: top right bottom left.', 'wpex'), 'group' => __('Cost', 'wpex'), 'dependency' => array('element' => 'cost', 'not_empty' => true)), array('type' => 'textfield', 'heading' => __('Border', 'wpex'), 'param_name' => 'cost_border', 'description' => __('Please use the shorthand format: width style color. Enter 0px or "none" to disable border.', 'wpex'), 'group' => __('Cost', 'wpex'), 'dependency' => array('element' => 'cost', 'not_empty' => true)), array('type' => 'textfield', 'heading' => __('Per', 'wpex'), 'param_name' => 'per', 'group' => __('Per', 'wpex')), array('type' => 'dropdown', 'heading' => __('Display', 'wpex'), 'param_name' => 'per_display', 'value' => array(__('Default', 'wpex') => '', __('Inline', 'wpex') => 'inline', __('Block', 'wpex') => 'block', __('Inline-Block', 'wpex') => 'inline-block'), 'group' => __('Per', 'wpex'), 'dependency' => array('element' => 'per', 'not_empty' => true)), array('type' => 'colorpicker', 'heading' => __('Color', 'wpex'), 'param_name' => 'per_color', 'group' => __('Per', 'wpex'), 'dependency' => array('element' => 'per', 'not_empty' => true)), array('type' => 'dropdown', 'heading' => __('Font Weight', 'wpex'), 'param_name' => 'per_weight', 'std' => '', 'value' => array_flip(wpex_font_weights()), 'group' => __('Per', 'wpex'), 'dependency' => array('element' => 'per', 'not_empty' => true)), array('type' => 'dropdown', 'heading' => __('Text Transform', 'wpex'), 'param_name' => 'per_transform', 'group' => __('Per', 'wpex'), 'value' => array_flip(wpex_text_transforms()), 'dependency' => array('element' => 'per', 'not_empty' => true)), array('type' => 'textfield', 'heading' => __('Font Size', 'wpex'), 'param_name' => 'per_size', 'group' => __('Per', 'wpex'), 'dependency' => array('element' => 'per', 'not_empty' => true)), array('type' => 'textarea_html', 'heading' => __('Features', 'wpex'), 'param_name' => 'content', 'value' => '<ul>
										<li>30GB Storage</li>
										<li>512MB Ram</li>
										<li>10 databases</li>
										<li>1,000 Emails</li>
										<li>25GB Bandwidth</li>
									</ul>', 'description' => __('Enter your pricing content. You can use a UL list as shown by default but anything would really work!', 'wpex'), 'group' => __('Features', 'wpex')), array('type' => 'colorpicker', 'heading' => __('Color', 'wpex'), 'param_name' => 'font_color', 'group' => __('Features', 'wpex')), array('type' => 'colorpicker', 'heading' => __('Background', 'wpex'), 'param_name' => 'features_bg', 'group' => __('Features', 'wpex')), array('type' => 'textfield', 'heading' => __('Font Size', 'wpex'), 'param_name' => 'font_size', 'group' => __('Features', 'wpex')), array('type' => 'textfield', 'heading' => __('Padding', 'wpex'), 'param_name' => 'features_padding', 'description' => __('Please use the following format: top right bottom left.', 'wpex'), 'group' => __('Features', 'wpex')), array('type' => 'textfield', 'heading' => __('Border', 'wpex'), 'param_name' => 'features_border', 'description' => __('Please use the shorthand format: width style color. Enter 0px or "none" to disable border.', 'wpex'), 'group' => __('Features', 'wpex')), array('type' => 'textarea_raw_html', 'heading' => __('Custom Button HTML', 'wpex'), 'param_name' => 'custom_button', 'description' => __('Enter your custom button HTML, such as your paypal button code.', 'wpex'), 'group' => __('Button', 'wpex')), array('type' => 'vc_link', 'heading' => __('URL', 'wpex'), 'param_name' => 'button_url', 'group' => __('Button', 'wpex'), 'dependency' => array('element' => 'custom_button', 'is_empty' => true)), array('type' => 'dropdown', 'heading' => __('Local Scroll?', 'wpex'), 'param_name' => 'button_local_scroll', 'group' => __('Button', 'wpex'), 'value' => array(__('No', 'wpex') => 'false', __('Yes', 'wpex') => 'true'), 'dependency' => array('element' => 'custom_button', 'is_empty' => true)), array('type' => 'textfield', 'heading' => __('Text', 'wpex'), 'param_name' => 'button_text', 'value' => __('Text', 'wpex'), 'group' => __('Button', 'wpex'), 'dependency' => array('element' => 'custom_button', 'is_empty' => true)), array('type' => 'colorpicker', 'heading' => _x('Area Background', 'Pricing Button Area Setting', 'wpex'), 'param_name' => 'button_wrap_bg', 'group' => __('Button', 'wpex')), array('type' => 'textfield', 'heading' => _x('Area Padding', 'Pricing Button Area Setting', 'wpex'), 'param_name' => 'button_wrap_padding', 'description' => __('Please use the following format: top right bottom left.', 'wpex'), 'group' => __('Button', 'wpex')), array('type' => 'textfield', 'heading' => _x('Area Border', 'Pricing Button Area Setting', 'wpex'), 'param_name' => 'button_wrap_border', 'description' => __('Please use the shorthand format: width style color. Enter 0px or "none" to disable border.', 'wpex'), 'group' => __('Button', 'wpex')), array('type' => 'dropdown', 'heading' => __('Style', 'wpex'), 'param_name' => 'button_style', 'value' => array_flip(wpex_button_styles()), 'group' => __('Button', 'wpex'), 'dependency' => array('element' => 'custom_button', 'is_empty' => true)), array('type' => 'dropdown', 'heading' => __('Color', 'wpex'), 'param_name' => 'button_style_color', 'value' => array_flip(wpex_button_colors()), 'group' => __('Button', 'wpex'), 'dependency' => array('element' => 'custom_button', 'is_empty' => true)), array('type' => 'colorpicker', 'heading' => __('Background', 'wpex'), 'param_name' => 'button_bg_color', 'group' => __('Button', 'wpex'), 'dependency' => array('element' => 'custom_button', 'is_empty' => true)), array('type' => 'colorpicker', 'heading' => __('Background: Hover', 'wpex'), 'param_name' => 'button_hover_bg_color', 'group' => __('Button', 'wpex'), 'dependency' => array('element' => 'custom_button', 'is_empty' => true)), array('type' => 'colorpicker', 'heading' => __('Color', 'wpex'), 'param_name' => 'button_color', 'group' => __('Button', 'wpex'), 'dependency' => array('element' => 'custom_button', 'is_empty' => true)), array('type' => 'colorpicker', 'heading' => __('Color: Hover', 'wpex'), 'param_name' => 'button_hover_color', 'group' => __('Button', 'wpex'), 'dependency' => array('element' => 'custom_button', 'is_empty' => true)), array('type' => 'textfield', 'heading' => __('Font Size', 'wpex'), 'param_name' => 'button_size', 'group' => __('Button', 'wpex'), 'dependency' => array('element' => 'custom_button', 'is_empty' => true)), array('type' => 'textfield', 'heading' => __('Border Radius', 'wpex'), 'param_name' => 'button_border_radius', 'group' => __('Button', 'wpex'), 'dependency' => array('element' => 'custom_button', 'is_empty' => true)), array('type' => 'textfield', 'heading' => __('Letter Spacing', 'wpex'), 'param_name' => 'button_letter_spacing', 'group' => __('Button', 'wpex'), 'dependency' => array('element' => 'custom_button', 'is_empty' => true)), array('type' => 'textfield', 'heading' => __('Padding', 'wpex'), 'param_name' => 'button_padding', 'description' => __('Please use the following format: top right bottom left.', 'wpex'), 'group' => __('Button', 'wpex'), 'dependency' => array('element' => 'custom_button', 'is_empty' => true)), array('type' => 'dropdown', 'heading' => __('Font Weight', 'wpex'), 'param_name' => 'button_weight', 'std' => '', 'value' => array_flip(wpex_font_weights()), 'group' => __('Button', 'wpex'), 'dependency' => array('element' => 'custom_button', 'is_empty' => true)), array('type' => 'dropdown', 'heading' => __('Text Transform', 'wpex'), 'param_name' => 'button_transform', 'group' => __('Button', 'wpex'), 'value' => array_flip(wpex_text_transforms()), 'dependency' => array('element' => 'custom_button', 'is_empty' => 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' => __('Button Icons', 'wpex'), 'dependency' => array('element' => 'custom_button', 'is_empty' => true)), array('type' => 'iconpicker', 'heading' => __('Icon Left', 'wpex'), 'param_name' => 'button_icon_left', 'admin_label' => true, 'settings' => array('emptyIcon' => true, 'iconsPerPage' => 200), 'dependency' => array('element' => 'icon_type', 'value' => 'fontawesome'), 'group' => __('Button Icons', 'wpex')), array('type' => 'iconpicker', 'heading' => __('Icon Left', 'wpex'), 'param_name' => 'button_icon_left_openiconic', 'settings' => array('emptyIcon' => true, 'type' => 'openiconic', 'iconsPerPage' => 200), 'dependency' => array('element' => 'icon_type', 'value' => 'openiconic'), 'group' => __('Button Icons', 'wpex')), array('type' => 'iconpicker', 'heading' => __('Icon Left', 'wpex'), 'param_name' => 'button_icon_left_typicons', 'settings' => array('emptyIcon' => true, 'type' => 'typicons', 'iconsPerPage' => 200), 'dependency' => array('element' => 'icon_type', 'value' => 'typicons'), 'group' => __('Button Icons', 'wpex')), array('type' => 'iconpicker', 'heading' => __('Icon Left', 'wpex'), 'param_name' => 'button_icon_left_entypo', 'settings' => array('emptyIcon' => true, 'type' => 'entypo', 'iconsPerPage' => 300), 'dependency' => array('element' => 'icon_type', 'value' => 'entypo'), 'group' => __('Button Icons', 'wpex')), array('type' => 'iconpicker', 'heading' => __('Icon Left', 'wpex'), 'param_name' => 'button_icon_left_linecons', 'settings' => array('emptyIcon' => true, 'type' => 'linecons', 'iconsPerPage' => 200), 'dependency' => array('element' => 'icon_type', 'value' => 'linecons'), 'group' => __('Button Icons', 'wpex')), array('type' => 'iconpicker', 'heading' => __('Icon Left', 'wpex'), 'param_name' => 'button_icon_left_pixelicons', 'settings' => array('emptyIcon' => false, 'type' => 'pixelicons', 'source' => vcex_pixel_icons()), 'dependency' => array('element' => 'icon_type', 'value' => 'pixelicons'), 'group' => __('Button Icons', 'wpex')), array('type' => 'iconpicker', 'heading' => __('Icon Right', 'wpex'), 'param_name' => 'button_icon_right', 'admin_label' => true, 'settings' => array('emptyIcon' => true, 'iconsPerPage' => 200), 'dependency' => array('element' => 'icon_type', 'value' => 'fontawesome'), 'group' => __('Button Icons', 'wpex')), array('type' => 'iconpicker', 'heading' => __('Icon Right', 'wpex'), 'param_name' => 'button_icon_right_openiconic', 'settings' => array('emptyIcon' => true, 'type' => 'openiconic', 'iconsPerPage' => 200), 'dependency' => array('element' => 'icon_type', 'value' => 'openiconic'), 'group' => __('Button Icons', 'wpex')), array('type' => 'iconpicker', 'heading' => __('Icon Right', 'wpex'), 'param_name' => 'button_icon_right_typicons', 'settings' => array('emptyIcon' => true, 'type' => 'typicons', 'iconsPerPage' => 200), 'dependency' => array('element' => 'icon_type', 'value' => 'typicons'), 'group' => __('Button Icons', 'wpex')), array('type' => 'iconpicker', 'heading' => __('Icon Right', 'wpex'), 'param_name' => 'button_icon_right_entypo', 'settings' => array('emptyIcon' => true, 'type' => 'entypo', 'iconsPerPage' => 300), 'dependency' => array('element' => 'icon_type', 'value' => 'entypo'), 'group' => __('Button Icons', 'wpex')), array('type' => 'iconpicker', 'heading' => __('Icon Right', 'wpex'), 'param_name' => 'button_icon_right_linecons', 'settings' => array('emptyIcon' => true, 'type' => 'linecons', 'iconsPerPage' => 200), 'dependency' => array('element' => 'icon_type', 'value' => 'linecons'), 'group' => __('Button Icons', 'wpex')), array('type' => 'iconpicker', 'heading' => __('Icon Right', 'wpex'), 'param_name' => 'button_icon_right_pixelicons', 'settings' => array('emptyIcon' => false, 'type' => 'pixelicons', 'source' => vcex_pixel_icons()), 'dependency' => array('element' => 'icon_type', 'value' => 'pixelicons'), 'group' => __('Button Icons', 'wpex')))));
}
Exemple #2
0
/**
 * Adds the shortcode to the Visual Composer
 *
 * @since 1.4.1
 */
function vcex_divider_shortcode_vc_map()
{
    return array('name' => esc_html__('Divider', 'total'), 'description' => esc_html__('Line Separator', 'total'), 'base' => 'vcex_divider', 'icon' => 'vcex-divider vcex-icon fa fa-ellipsis-h', 'category' => wpex_get_theme_branding(), 'params' => array(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(__('No', 'total') => '', __('Top to bottom', 'total') => 'top-to-bottom', __('Bottom to top', 'total') => 'bottom-to-top', __('Left to right', 'total') => 'left-to-right', __('Right to left', 'total') => 'right-to-left', __('Appear from center', 'total') => 'appear')), array('type' => 'dropdown', 'heading' => esc_html__('Visibility', 'total'), 'param_name' => 'visibility', 'value' => array_flip(wpex_visibility())), array('type' => 'dropdown', 'admin_label' => true, 'heading' => esc_html__('Style', 'total'), 'param_name' => 'style', 'value' => array(__('Solid', 'total') => 'solid', __('Dashed', 'total') => 'dashed', __('Double', 'total') => 'double', __('Dotted Line', 'total') => 'dotted-line', __('Dotted', 'total') => 'dotted')), array('type' => 'textfield', 'heading' => esc_html__('Width', 'total'), 'param_name' => 'width', 'description' => esc_html__('Enter a pixel or percentage value.', 'total'), 'group' => esc_html__('Design', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Align', 'total'), 'param_name' => 'align', 'group' => esc_html__('Design', 'total'), 'value' => array(__('Center', 'total') => 'center', __('Right', 'total') => 'right', __('Left', 'total') => 'left'), 'dependency' => array('element' => 'width', 'not_empty' => true)), array('type' => 'textfield', 'heading' => esc_html__('Height', 'total'), 'param_name' => 'height', 'dependency' => array('element' => 'style', 'value' => array('solid', 'dashed', 'double', 'dotted-line')), 'group' => esc_html__('Design', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Height', 'total'), 'param_name' => 'dotted_height', 'dependency' => array('element' => 'style', 'value' => 'dotted'), 'group' => esc_html__('Design', 'total')), array('type' => 'colorpicker', 'heading' => esc_html__('Color', 'total'), 'param_name' => 'color', 'value' => '', 'dependency' => array('element' => 'style', 'value' => array('solid', 'dashed', 'double', 'dotted-line')), 'group' => esc_html__('Design', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Margin Top', 'total'), 'param_name' => 'margin_top', 'description' => esc_html__('Please enter a px value.', 'total'), 'group' => esc_html__('Design', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Margin Bottom', 'total'), 'description' => esc_html__('Please enter a px value.', 'total'), 'param_name' => 'margin_bottom', 'group' => esc_html__('Design', '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', 'std' => '', 'settings' => array('emptyIcon' => true, 'type' => 'fontawesome', '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' => 'colorpicker', 'heading' => esc_html__('Icon Color', 'total'), 'param_name' => 'icon_color', 'group' => esc_html__('Icon', 'total')), array('type' => 'colorpicker', 'heading' => esc_html__('Icon Background', 'total'), 'param_name' => 'icon_bg', 'group' => esc_html__('Icon', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Icon Size', 'total'), 'param_name' => 'icon_size', 'description' => esc_html__('You can use em or px values, but you must define them.', 'total'), 'group' => esc_html__('Icon', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Icon Height', 'total'), 'param_name' => 'icon_height', 'group' => esc_html__('Icon', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Icon Width', 'total'), 'param_name' => 'icon_width', 'group' => esc_html__('Icon', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Icon Border Radius', 'total'), 'param_name' => 'icon_border_radius', 'group' => esc_html__('Icon', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Icon Padding', 'total'), 'param_name' => 'icon_padding', 'description' => esc_html__('Please use the following format: top right bottom left.', 'total'), 'group' => esc_html__('Icon', 'total'))));
}
/**
 * Adds the shortcode to the Visual Composer
 *
 * @since 1.4.1
 */
function vcex_skillbar_vc_map()
{
    vc_map(array('name' => __('Skill Bar', 'wpex'), 'description' => __('Animated skill bar', 'wpex'), 'base' => 'vcex_skillbar', 'category' => WPEX_THEME_BRANDING, 'icon' => 'vcex-skill-bar vcex-icon fa fa-server', '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' => __('CSS Animation', 'wpex'), 'param_name' => 'css_animation', 'value' => array(__('No', 'wpex') => '', __('Top to bottom', 'wpex') => 'top-to-bottom', __('Bottom to top', 'wpex') => 'bottom-to-top', __('Left to right', 'wpex') => 'left-to-right', __('Right to left', 'wpex') => 'right-to-left', __('Appear from center', 'wpex') => 'appear')), array('type' => 'dropdown', 'heading' => __('Visibility', 'wpex'), 'param_name' => 'visibility', 'value' => array_flip(wpex_visibility())), array('type' => 'textfield', 'heading' => __('Title', 'wpex'), 'param_name' => 'title', 'admin_label' => true, 'value' => 'Web Design'), array('type' => 'textfield', 'heading' => __('Percentage', 'wpex'), 'param_name' => 'percentage', 'value' => 70), array('type' => 'dropdown', 'heading' => __('Display % Number', 'wpex'), 'param_name' => 'show_percent', 'value' => array(__('Yes', 'wpex') => 'true', __('No', 'wpex') => 'false')), array('type' => 'dropdown', 'heading' => __('Display Icon', 'wpex'), 'param_name' => 'show_icon', 'value' => array(__('No', 'wpex') => 'false', __('Yes', 'wpex') => 'true'), 'group' => __('Icon', 'wpex')), array('type' => 'dropdown', 'heading' => __('Icon library', 'wpex'), 'param_name' => 'icon_type', 'value' => array(__('Font Awesome', 'wpex') => 'fontawesome', __('Open Iconic', 'wpex') => 'openiconic', __('Typicons', 'wpex') => 'typicons', __('Entypo', 'wpex') => 'entypo', __('Linecons', 'wpex') => 'linecons', __('Pixel', 'wpex') => 'pixelicons'), 'group' => __('Icon', 'wpex'), 'dependency' => array('element' => 'show_icon', 'value' => 'true')), array('type' => 'iconpicker', 'heading' => __('Icon', 'wpex'), 'param_name' => 'icon', '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, 'iconsPerPage' => 200, 'type' => 'openiconic'), 'dependency' => array('element' => 'icon_type', 'value' => 'openiconic'), 'group' => __('Icon', 'wpex')), array('type' => 'iconpicker', 'heading' => __('Icon', 'wpex'), 'param_name' => 'icon_typicons', 'settings' => array('emptyIcon' => true, 'iconsPerPage' => 200, 'type' => 'typicons'), 'dependency' => array('element' => 'icon_type', 'value' => 'typicons'), 'group' => __('Icon', 'wpex')), array('type' => 'iconpicker', 'heading' => __('Icon', 'wpex'), 'param_name' => 'icon_entypo', 'settings' => array('emptyIcon' => false, '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, 'iconsPerPage' => 200, 'type' => 'linecons'), 'dependency' => array('element' => 'icon_type', 'value' => 'linecons'), 'group' => __('Icon', 'wpex')), array('type' => 'iconpicker', 'heading' => __('Icon', 'wpex'), 'param_name' => 'icon_pixelicons', 'settings' => array('emptyIcon' => true, 'iconsPerPage' => 200, 'type' => 'pixelicons', 'source' => vcex_pixel_icons()), 'dependency' => array('element' => 'icon_type', 'value' => 'pixelicons'), 'group' => __('Icon', 'wpex')), array('type' => 'colorpicker', 'heading' => __('Container Background', 'wpex'), 'param_name' => 'background', 'group' => __('Design', 'wpex')), array('type' => 'dropdown', 'heading' => __('Container Inset Shadow', 'wpex'), 'param_name' => 'box_shadow', 'value' => array(__('Yes', 'wpex') => 'true', __('No', 'wpex') => 'false'), 'group' => __('Design', 'wpex')), array('type' => 'colorpicker', 'heading' => __('Skill Bar Color', 'wpex'), 'param_name' => 'color', 'group' => __('Design', 'wpex')), array('type' => 'textfield', 'heading' => __('Container Height', 'wpex'), 'param_name' => 'container_height', 'group' => __('Design', 'wpex')), array('type' => 'textfield', 'heading' => __('Container Left Padding', 'wpex'), 'param_name' => 'container_padding_left', 'group' => __('Design', 'wpex')), array('type' => 'textfield', 'heading' => __('Font Size', 'wpex'), 'param_name' => 'font_size', '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')))));
}
Exemple #5
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'))));
}
Exemple #6
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'))));
}
Exemple #7
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'))));
}