Example #1
0
 function vcex_list_item_shortcode_vc_map()
 {
     vc_map(array("name" => __("List Item", 'wpex'), "description" => __("Font Icon list item", 'wpex'), "base" => "vcex_list_item", 'admin_enqueue_css' => wpex_font_awesome_css_url(), 'front_enqueue_css' => wpex_font_awesome_css_url(), "icon" => "vcex-list-item", 'category' => WPEX_THEME_BRANDING, "params" => array(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' => "textfield", 'heading' => __('Classes', 'wpex'), 'param_name' => 'classes', 'value' => ''), array('type' => "textfield", 'heading' => __('Content', 'wpex'), 'param_name' => 'content', 'value' => __('This is a pretty list item', 'wpex')), array('type' => "colorpicker", 'heading' => __("Font Color", 'wpex'), 'param_name' => "font_color", 'value' => ''), array('type' => "textfield", 'heading' => __("Custom Font Size", 'wpex'), 'param_name' => "font_size", 'value' => ''), array('type' => "dropdown", 'heading' => __("Text Align", 'wpex'), 'param_name' => "text_align", 'value' => array(__('Default', 'wpex') => '', __('Left', 'wpex') => 'textleft', __('Center', 'wpex') => 'textcenter', __('Right', 'wpex') => 'textright')), array('type' => "vcex_icon", 'heading' => __("Icon", 'wpex'), 'param_name' => "icon", "admin_label" => true, 'value' => '', 'group' => __("Icon", 'wpex')), array('type' => "textfield", 'heading' => __("Icon Right Margin", 'wpex'), 'param_name' => "margin_right", 'value' => '', 'group' => __("Icon", 'wpex')), array('type' => "colorpicker", 'heading' => __("Icon Color", 'wpex'), 'param_name' => "color", 'value' => '', 'group' => __("Icon", 'wpex')), array('type' => 'colorpicker', 'heading' => __("Icon Background", 'wpex'), 'param_name' => "icon_background", 'group' => __('Icon', 'wpex')), array('type' => 'textfield', 'heading' => __("Icon Border Radius", 'wpex'), 'param_name' => "icon_border_radius", 'group' => __('Icon', 'wpex')), array('type' => 'textfield', 'heading' => __("Icon Size In Pixels", 'wpex'), 'param_name' => "icon_size", 'value' => '', 'group' => __('Icon', 'wpex')), array('type' => 'textfield', 'heading' => __("Icon Width", 'wpex'), 'param_name' => "icon_width", 'value' => '', 'group' => __('Icon', 'wpex')), array('type' => 'textfield', 'heading' => __("Icon Height", 'wpex'), 'param_name' => "icon_height", 'value' => '', 'group' => __('Icon', 'wpex')), array('type' => "textfield", 'heading' => __("Link", 'wpex'), 'param_name' => "url", 'value' => '', 'group' => __("Link", 'wpex')), array('type' => "dropdown", 'heading' => __("Link Target", 'wpex'), 'param_name' => "url_target", 'value' => array(__("Self", 'wpex') => "self", __("Blank", 'wpex') => "blank"), 'group' => __("Link", 'wpex')))));
 }
Example #2
0
 function vcex_icon_box_shortcode_vc_map()
 {
     vc_map(array("name" => __("Icon Box", 'wpex'), "base" => "vcex_icon_box", 'category' => WPEX_THEME_BRANDING, "icon" => "vcex-icon-box", "description" => __('Content box with icon', 'wpex'), 'admin_enqueue_css' => wpex_font_awesome_css_url(), 'front_enqueue_css' => wpex_font_awesome_css_url(), "params" => array(array('type' => 'textfield', 'heading' => __('Extra class name', 'wpex'), 'param_name' => 'el_class', 'description' => __('If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.', 'wpex')), array('type' => 'vcex_icon', 'heading' => __("Icon", 'wpex'), 'param_name' => 'icon', 'value' => wpex_get_awesome_icons(), 'group' => __('Icon', 'wpex'), 'std' => 'star'), array('type' => "textfield", 'heading' => __("Icon Font Alternative Classes", "wpex"), 'param_name' => "icon_alternative_classes", 'group' => __('Icon', 'wpex')), array('type' => "attach_image", 'heading' => __("Icon Image Alternative", "wpex"), 'param_name' => "image", 'group' => __('Icon', 'wpex')), array('type' => "textfield", 'heading' => __("Icon Image Alternative Width", "wpex"), 'param_name' => "image_width", 'group' => __('Icon', 'wpex'), 'dependency' => array('element' => "image", 'not_empty' => true)), array('type' => 'colorpicker', 'heading' => __("Icon Color", 'wpex'), 'param_name' => "icon_color", 'value' => "", 'group' => __('Icon', 'wpex')), array('type' => 'colorpicker', 'heading' => __("Icon Background", 'wpex'), 'param_name' => "icon_background", 'group' => __('Icon', 'wpex')), array('type' => 'textfield', 'heading' => __("Icon Border Radius", 'wpex'), 'param_name' => "icon_border_radius", 'group' => __('Icon', 'wpex')), array('type' => 'textfield', 'heading' => __("Icon Size In Pixels", 'wpex'), 'param_name' => "icon_size", 'value' => "", 'group' => __('Icon', 'wpex')), array('type' => 'textfield', 'heading' => __("Fixed Icon Width", 'wpex'), 'param_name' => "icon_width", 'value' => "", 'group' => __('Icon', 'wpex')), array('type' => 'textfield', 'heading' => __("Fixed Icon Height", 'wpex'), 'param_name' => "icon_height", 'value' => "", 'group' => __('Icon', 'wpex')), 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' => __("Icon Box Style", 'wpex'), 'param_name' => "style", 'value' => array(__("Left Icon", "wpex") => "one", __("Right Icon", "wpex") => "seven", __("Top Icon", "wpex") => "two", __("Top Icon Style 2 (legacy)", "wpex") => "three", __("Outlined & Top Icon", "wpex") => "four", __("Boxed & Top Icon", "wpex") => "five", __("Boxed & Top Icon Style 2", "wpex") => "six")), array('type' => 'dropdown', 'heading' => __('Alignment', 'wpex'), 'param_name' => "alignment", 'dependency' => array('element' => "style", 'value' => array('two')), 'value' => array(__("Default", "wpex") => "", __("Center", "wpex") => "center", __("Left", "wpex") => "left", __("Right", "wpex") => "right")), array('type' => 'textfield', 'heading' => __("Icon Bottom Margin", 'wpex'), 'param_name' => "icon_bottom_margin", 'dependency' => array('element' => "style", 'value' => array('two', 'three', 'four', 'five', 'six'))), array('type' => 'textfield', 'heading' => __("Container Left Padding", 'wpex'), 'param_name' => "container_left_padding", 'dependency' => array('element' => "style", 'value' => array('one'))), array('type' => 'textfield', 'heading' => __("Container Right Padding", 'wpex'), 'param_name' => "container_right_padding", 'dependency' => array('element' => "style", 'value' => array('seven'))), array('type' => 'colorpicker', 'heading' => __("Background Color", 'wpex'), 'param_name' => "background", 'dependency' => array('element' => 'style', 'value' => array('four', 'five', 'six'))), array('type' => "attach_image", 'heading' => __('Background Image', 'wpex'), 'param_name' => "background_image", 'value' => "", 'description' => __('Select image from media library.', 'wpex'), 'dependency' => array('element' => 'style', 'value' => array('four', 'five', 'six'))), array('type' => 'dropdown', 'heading' => __('Background Image Style', 'wpex'), 'param_name' => "background_image_style", 'value' => array(__('Default', 'wpex') => '', __('Stretched', 'wpex') => 'stretch', __('Fixed', 'wpex') => "fixed", __('Repeat', 'wpex') => "repeat"), 'dependency' => array('element' => 'style', 'value' => array('four', 'five', 'six'))), array('type' => 'colorpicker', 'heading' => __("Border Color", 'wpex'), 'param_name' => "border_color", 'dependency' => array('element' => 'style', 'value' => array('four'))), array('type' => 'textfield', 'heading' => __("Padding", 'wpex'), 'param_name' => "padding", 'dependency' => array('element' => "style", 'value' => array('four', 'five', 'six'))), array('type' => 'textfield', 'heading' => __("Border Radius", 'wpex'), 'param_name' => "border_radius", 'dependency' => array('element' => "style", 'value' => array('four', 'five', 'six'))), array('type' => 'textfield', 'heading' => __("Heading", 'wpex'), 'param_name' => 'heading', 'value' => "Sample Heading", 'group' => __('Heading', 'wpex')), array('type' => 'dropdown', 'heading' => __("Heading Type", 'wpex'), 'param_name' => "heading_type", 'value' => array("h2" => "h2", "h3" => "h3", "h4" => "h4", "h5" => "h5", "div" => "div", "span" => "span"), 'group' => __('Heading', 'wpex')), array('type' => 'colorpicker', 'heading' => __("Heading Font Color", 'wpex'), 'param_name' => "heading_color", 'group' => __('Heading', 'wpex')), array('type' => 'textfield', 'heading' => __("Heading Font Size", 'wpex'), 'param_name' => "heading_size", 'group' => __('Heading', 'wpex')), array('type' => 'textfield', 'heading' => __("Heading Font Weight", 'wpex'), 'param_name' => "heading_weight", 'group' => __('Heading', 'wpex'), "value" => ''), array('type' => 'textfield', 'heading' => __("Heading Letter Spacing", 'wpex'), 'param_name' => "heading_letter_spacing", 'group' => __('Heading', 'wpex')), array('type' => 'dropdown', 'heading' => __("Heading Text Transform", 'wpex'), 'param_name' => "heading_transform", 'group' => __('Heading', 'wpex'), 'value' => array(__('Default', 'wpex') => '', __('None', 'wpex') => 'none', __('Capitalize', 'wpex') => 'capitalize', __('Uppercase', 'wpex') => 'uppercase', __('Lowercase', 'wpex') => 'lowercase')), array('type' => 'textfield', 'heading' => __("Heading Bottom Margin", 'wpex'), 'param_name' => "heading_bottom_margin", 'group' => __('Heading', 'wpex')), array('type' => 'textarea_html', 'holder' => 'div', 'heading' => __('Content', 'wpex'), 'param_name' => 'content', 'value' => __('Don\'t forget to change this dummy text in your page editor for this lovely icon box.', 'wpex'), 'group' => __('Content', 'wpex')), array('type' => 'textfield', 'heading' => __("Content Font Size", 'wpex'), 'param_name' => "font_size", 'group' => __('Content', 'wpex')), array('type' => 'colorpicker', 'heading' => __("Content Font Color", 'wpex'), 'param_name' => "font_color", 'group' => __('Content', 'wpex')), array('type' => 'textfield', 'heading' => __("URL", 'wpex'), 'param_name' => "url", 'group' => __('URL', 'wpex')), array('type' => 'dropdown', 'heading' => __("URL Target", 'wpex'), 'param_name' => "url_target", 'value' => array(__("Self", "wpex") => "", __("Blank", "wpex") => "_blank", __("Local", 'wpex') => "local"), 'group' => __('URL', 'wpex')), array('type' => 'dropdown', 'heading' => __("URL Rel", 'wpex'), 'param_name' => "url_rel", 'value' => array(__("None", "wpex") => '', __("Nofollow", "wpex") => "nofollow"), 'group' => __('URL', 'wpex')), array('type' => 'textfield', 'heading' => __("Bottom Margin", 'wpex'), 'param_name' => "margin_bottom", 'group' => __('Margin', 'wpex')))));
 }
Example #3
0
 function vcex_button_shortcode_vc_map()
 {
     $font_awesome_css = wpex_font_awesome_css_url();
     vc_map(array("name" => __("Total Button", 'wpex'), "description" => __("Eye catching button", 'wpex'), "base" => "vcex_button", 'category' => WPEX_THEME_BRANDING, "icon" => "vcex-total-button", 'admin_enqueue_css' => $font_awesome_css, 'front_enqueue_css' => $font_awesome_css, "params" => array(array('type' => 'textfield', 'admin_label' => true, 'heading' => __('Unique ID', 'wpex'), 'param_name' => 'unique_id', 'value' => ''), array('type' => 'textfield', 'admin_label' => true, 'heading' => __('Classes', 'wpex'), 'param_name' => 'classes', 'value' => ''), array("type" => "textfield", "heading" => __("URL", 'wpex'), "param_name" => "url", "value" => "http://www.google.com/"), array("type" => "textfield", "heading" => __("Button Text", 'wpex'), "param_name" => "content", "admin_label" => true, "value" => "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") => "none", __("Nofollow", "wpex") => "nofollow")), 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"), 'group' => __('Design', 'wpex')), array("type" => "dropdown", "heading" => __("Button Style", 'wpex'), "param_name" => "style", "value" => array(__("Flat", "wpex") => "flat", __("Graphical", "wpex") => "graphical", __("Clean", "wpex") => "clean", __("3D", "wpex") => "three-d", __("Outline", "wpex") => "outline"), '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" => __("Button Align", 'wpex'), "param_name" => "align", "value" => array(__("Left", "wpex") => "left", __("Right", "wpex") => "right", __("Center", "wpex") => "center"), 'group' => __('Design', 'wpex')), array("type" => "dropdown", "heading" => __("Button Background", 'wpex'), "param_name" => "color", "value" => array(__("Black", "wpex") => "black", __("Blue", "wpex") => "blue", __("Brown", "wpex") => "brown", __("Grey", "wpex") => "grey", __("Green", "wpex") => "green", __("Gold", "wpex") => "gold", __("Orange", "wpex") => "orange", __("Pink", "wpex") => "pink", __("Purple", "wpex") => "purple", __("Red", "wpex") => "red", __("Rosy", "wpex") => "rosy", __("Teal", "wpex") => "teal", __("White", "wpex") => "white"), 'group' => __('Design', 'wpex')), array("type" => "colorpicker", "heading" => __("Button Custom Background", 'wpex'), "param_name" => "custom_background", 'group' => __('Design', 'wpex'), 'dependency' => array('element' => "style", 'value' => array('flat', 'graphical', 'three-d'))), array("type" => "colorpicker", "heading" => __("Button Custom Color", 'wpex'), "param_name" => "custom_color", 'group' => __('Design', 'wpex'), 'dependency' => array('element' => "style", 'value' => array('flat', 'graphical', 'three-d', 'clean', 'outline'))), array("type" => "colorpicker", "heading" => __("Button Custom Hover Background", 'wpex'), "param_name" => "custom_hover_background", 'group' => __('Design', 'wpex'), 'dependency' => array('element' => "style", 'value' => array('flat', 'graphical', 'three-d'))), array("type" => "colorpicker", "heading" => __("Button Custom Hover Color", 'wpex'), "param_name" => "custom_hover_color", 'group' => __('Design', 'wpex'), 'dependency' => array('element' => "style", 'value' => array('flat'))), array("type" => "dropdown", "heading" => __("Button Size", 'wpex'), "param_name" => "size", "value" => array(__("Small", "wpex") => "small", __("Medium", "wpex") => "medium", __("Large", "wpex") => "large"), 'group' => __('Design', 'wpex')), array("type" => "textfield", "heading" => __("Custom Font Size", 'wpex'), "param_name" => "font_size", 'group' => __('Design', 'wpex')), array('type' => 'dropdown', 'heading' => __("Text Transform", 'wpex'), 'param_name' => "text_transform", 'group' => __('Design', 'wpex'), 'value' => array(__('Default', 'wpex') => '', __('None', 'wpex') => 'none', __('Capitalize', 'wpex') => 'capitalize', __('Uppercase', 'wpex') => 'uppercase', __('Lowercase', 'wpex') => 'lowercase')), array("type" => "textfield", "heading" => __("Padding", 'wpex'), "param_name" => "font_padding", 'group' => __('Design', 'wpex')), array("type" => "textfield", "heading" => __("Font Weight", 'wpex'), "param_name" => "font_weight", 'group' => __('Design', 'wpex')), array("type" => "textfield", "heading" => __("Letter Spacing", 'wpex'), "param_name" => "letter_spacing", 'group' => __('Design', 'wpex')), array("type" => "textfield", "heading" => __("Border Radius", 'wpex'), "param_name" => "border_radius", 'group' => __('Design', 'wpex')), array('type' => "dropdown", 'heading' => __('Open Link In Lightbox', 'wpex'), 'param_name' => "lightbox", 'value' => array(__('No', 'wpex') => '', __('Yes', 'wpex') => 'true'), 'group' => __('Lightbox', 'wpex')), array('type' => 'dropdown', 'heading' => __('Lightbox Type', 'wpex'), 'param_name' => "lightbox_type", 'value' => array(__('Auto Detect (slow)', 'wpex') => '', __('Image', 'wpex') => 'image', __('Video/Youtube Embed Code', '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' => "textfield", 'heading' => __('HTML5 Webm URL', 'wpex'), 'param_name' => "lightbox_video_html5_webm", 'value' => "", '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" => "vcex_icon", "heading" => __("Left Icon", 'wpex'), "param_name" => "icon_left", "value" => '', 'group' => __('Icons', 'wpex')), array("type" => "textfield", "heading" => __("Left Icon: Right Padding", 'wpex'), "param_name" => "icon_left_padding", "value" => '', 'group' => __('Icons', 'wpex')), array("type" => "vcex_icon", "heading" => __("Right Icon", 'wpex'), "param_name" => "icon_right", "value" => '', 'group' => __('Icons', 'wpex')), array("type" => "textfield", "heading" => __("Right Icon: Left Padding", 'wpex'), "param_name" => "icon_right_padding", "value" => '', 'group' => __('Icons', 'wpex')))));
 }
Example #4
0
 function vcex_icon_shortcode_vc_map()
 {
     vc_map(array('name' => __("Font Icon", 'wpex'), 'description' => __("Font Awesome icon", 'wpex'), 'base' => 'vcex_icon', 'icon' => 'vcex-font-icon', 'category' => WPEX_THEME_BRANDING, 'admin_enqueue_css' => wpex_font_awesome_css_url(), 'front_enqueue_css' => wpex_font_awesome_css_url(), 'params' => array(array('type' => 'textfield', 'heading' => __('Extra class name', 'wpex'), 'param_name' => 'el_class', 'description' => __('If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.', 'wpex')), array('type' => "vcex_icon", 'heading' => __("Icon", 'wpex'), 'param_name' => "icon", "admin_label" => true, 'value' => 'flag'), array('type' => 'dropdown', 'heading' => __("CSS Animation", 'wpex'), 'param_name' => "css_animation", "admin_label" => true, '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' => __("Icon Size", 'wpex'), 'param_name' => "size", 'value' => array(__('Inherit', 'wpex') => '', __("Extra Large", 'wpex') => "xlarge", __("Large", 'wpex') => "large", __("Normal", 'wpex') => "normal", __("Small", 'wpex') => "small", __("Tiny", 'wpex') => "tiny")), array('type' => 'textfield', 'heading' => __("Custom Icon Size", 'wpex'), 'param_name' => "custom_size"), array('type' => 'dropdown', 'heading' => __("Position", 'wpex'), 'param_name' => "float", 'value' => array(__("Default", 'wpex') => '', __("Center", 'wpex') => "center", __("Left", 'wpex') => "left", __("Right", 'wpex') => "right")), array('type' => 'colorpicker', 'heading' => __('Icon Color', 'wpex'), 'param_name' => 'color', 'value' => '#000000'), array('type' => 'colorpicker', 'heading' => __('Background Color', 'wpex'), 'param_name' => 'background'), array('type' => 'textfield', 'heading' => __('Container Height', 'wpex'), 'param_name' => 'height'), array('type' => 'textfield', 'heading' => __('Container Width', 'wpex'), 'param_name' => 'width'), array('type' => 'textfield', 'heading' => __("Container Padding", 'wpex'), 'param_name' => "padding"), array('type' => 'textfield', 'heading' => __('Container Border Radius', 'wpex'), 'param_name' => 'border_radius'), array('type' => 'textfield', 'heading' => __('Link URL', 'wpex'), 'param_name' => 'link_url', 'group' => __('Link', 'wpex')), array('type' => 'textfield', 'heading' => __('Link Title', 'wpex'), 'param_name' => 'link_title', 'group' => __('Link', 'wpex')), array('type' => 'dropdown', 'heading' => __('Link Target', 'wpex'), 'param_name' => "link_target", 'value' => array(__('Self', 'wpex') => '', __('Blank', 'wpex') => 'blank', __('Local', 'wpex') => 'local'), 'group' => __('Link', 'wpex')), array('type' => 'dropdown', 'heading' => __("Link Rel", 'wpex'), 'param_name' => "link_rel", 'value' => array(__('None', 'wpex') => 'none', __('Nofollow', 'wpex') => 'nofollow'), 'group' => __('Link', 'wpex')))));
 }
Example #5
0
 function vcex_skillbar_shortcode_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", 'admin_enqueue_css' => wpex_font_awesome_css_url(), 'front_enqueue_css' => wpex_font_awesome_css_url(), "params" => array(array("type" => "textfield", "heading" => __("Title", 'wpex'), "param_name" => "title", "admin_label" => true, "value" => "Web Design"), 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" => "textfield", "heading" => __("Percentage", 'wpex'), "param_name" => "percentage", "value" => "70"), array("type" => "colorpicker", "heading" => __("Container Background", 'wpex'), "param_name" => "background", "value" => ""), array("type" => "dropdown", "heading" => __("Container Inset Shadow", 'wpex'), "param_name" => "box_shadow", "value" => array(__("True", "wpex") => "", __("False", "wpex") => "false")), array("type" => "colorpicker", "heading" => __("Skill Bar Color", 'wpex'), "param_name" => "color", "value" => "#65C25C"), array("type" => "dropdown", "heading" => __("Display % Number", 'wpex'), "param_name" => "show_percent", "value" => array(__("True", "wpex") => "true", __("False", "wpex") => "false")), array("type" => "vcex_icon", "class" => "", "heading" => __("Icon", 'wpex'), "param_name" => "icon", "admin_label" => true, "value" => 'flag'))));
 }
Example #6
0
 function vcex_divider_shortcode_vc_map()
 {
     vc_map(array("name" => __("Divider", 'wpex'), "description" => __("Line seperator", 'wpex'), "base" => "vcex_divider", "icon" => "vcex-divider", 'category' => WPEX_THEME_BRANDING, 'admin_enqueue_css' => wpex_font_awesome_css_url(), 'front_enqueue_css' => wpex_font_awesome_css_url(), "params" => array(array('type' => "dropdown", 'admin_label' => true, 'heading' => __("Style", 'wpex'), 'param_name' => "style", "value" => array(__("Solid", "wpex") => "solid", __("Dashed", "wpex") => "dashed", __("Dotted", "wpex") => "dotted", __("Double", "wpex") => "double")), array('type' => 'textfield', 'heading' => __("Width", 'wpex'), 'param_name' => "width", "value" => "100%"), array('type' => 'textfield', 'heading' => __("Height", 'wpex'), 'param_name' => "height", "value" => "1px", "dependency" => array('element' => "style", 'value' => array('solid'))), array('type' => 'colorpicker', 'heading' => __("Color", 'wpex'), 'param_name' => "color", "value" => "", "dependency" => array('element' => "style", 'value' => array('solid'))), array('type' => 'textfield', 'heading' => __("Margin Top", 'wpex'), 'param_name' => "margin_top", 'default' => '20px'), array('type' => 'textfield', 'heading' => __("Margin Bottom", 'wpex'), 'param_name' => "margin_bottom", 'default' => '20px'), array('type' => "vcex_icon", 'heading' => __("Icon", 'wpex'), 'param_name' => "icon", 'admin_label' => true, 'group' => __('Icon', 'wpex')), array('type' => 'colorpicker', 'heading' => __("Icon Color", 'wpex'), 'param_name' => "icon_color", "value" => "#000", 'group' => __('Icon', 'wpex')), array('type' => 'colorpicker', 'heading' => __("Icon Background", 'wpex'), 'param_name' => "icon_bg", 'group' => __('Icon', 'wpex')), array('type' => 'textfield', 'heading' => __("Icon Size", 'wpex'), 'param_name' => "icon_size", "value" => "14px", 'group' => __('Icon', 'wpex')), array('type' => 'textfield', 'heading' => __("Icon Padding", 'wpex'), 'param_name' => "icon_padding", 'group' => __('Icon', 'wpex')), array('type' => 'textfield', 'heading' => __("Icon Border Radius", 'wpex'), 'param_name' => "icon_border_radius", 'group' => __('Icon', 'wpex')))));
 }
Example #7
0
 function vcex_button_shortcode_vc_map()
 {
     $font_awesome_css = wpex_font_awesome_css_url();
     vc_map(array('name' => __('Total Button', 'wpex'), 'description' => __('Eye catching button', 'wpex'), 'base' => 'vcex_button', 'category' => WPEX_THEME_BRANDING, 'icon' => 'vcex-total-button', 'admin_enqueue_css' => $font_awesome_css, 'front_enqueue_css' => $font_awesome_css, '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' => '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') => 'none', __('Nofollow', 'wpex') => 'nofollow')), 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'), 'group' => __('Design', 'wpex')), array('type' => 'dropdown', 'heading' => __('Style', 'wpex'), 'param_name' => 'style', 'value' => array(__('Flat', 'wpex') => 'flat', __('Graphical', 'wpex') => 'graphical', __('Clean', 'wpex') => 'clean', __('3D', 'wpex') => 'three-d', __('Outline', 'wpex') => 'outline'), '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(__('Left', 'wpex') => 'left', __('Right', 'wpex') => 'right', __('Center', 'wpex') => 'center'), 'group' => __('Design', 'wpex')), array('type' => 'dropdown', 'heading' => __('Background', 'wpex'), 'param_name' => 'color', 'value' => array(__('Black', 'wpex') => 'black', __('Blue', 'wpex') => 'blue', __('Brown', 'wpex') => 'brown', __('Grey', 'wpex') => 'grey', __('Green', 'wpex') => 'green', __('Gold', 'wpex') => 'gold', __('Orange', 'wpex') => 'orange', __('Pink', 'wpex') => 'pink', __('Purple', 'wpex') => 'purple', __('Red', 'wpex') => 'red', __('Rosy', 'wpex') => 'rosy', __('Teal', 'wpex') => 'teal', __('White', 'wpex') => 'white'), 'group' => __('Design', 'wpex')), array('type' => 'colorpicker', 'heading' => __('Background', 'wpex'), 'param_name' => 'custom_background', 'group' => __('Design', 'wpex'), 'dependency' => array('element' => 'style', 'value' => array('flat', 'graphical', 'three-d'))), array('type' => 'colorpicker', 'heading' => __('Background: Hover', 'wpex'), 'param_name' => 'custom_hover_background', 'group' => __('Design', 'wpex'), 'dependency' => array('element' => 'style', 'value' => array('flat', 'graphical', 'three-d'))), array('type' => 'colorpicker', 'heading' => __('Color', 'wpex'), 'param_name' => 'custom_color', 'group' => __('Design', 'wpex'), 'dependency' => array('element' => 'style', 'value' => array('flat', 'graphical', 'three-d', 'clean', 'outline'))), array('type' => 'colorpicker', 'heading' => __('Color: Hover', 'wpex'), 'param_name' => 'custom_hover_color', 'group' => __('Design', 'wpex'), 'dependency' => array('element' => 'style', 'value' => array('flat'))), array('type' => 'dropdown', 'heading' => __('Size', 'wpex'), 'param_name' => 'size', 'value' => array(__('Small', 'wpex') => 'small', __('Medium', 'wpex') => 'medium', __('Large', 'wpex') => 'large'), 'group' => __('Design', 'wpex')), array('type' => 'textfield', 'heading' => __('Font Size', 'wpex'), 'param_name' => 'font_size', 'group' => __('Design', 'wpex')), array('type' => 'dropdown', 'heading' => __('Text Transform', 'wpex'), 'param_name' => 'text_transform', 'group' => __('Design', 'wpex'), 'value' => array(__('Default', 'wpex') => '', __('None', 'wpex') => 'none', __('Capitalize', 'wpex') => 'capitalize', __('Uppercase', 'wpex') => 'uppercase', __('Lowercase', 'wpex') => 'lowercase')), array('type' => 'textfield', 'heading' => __('Padding', 'wpex'), 'param_name' => 'font_padding', 'group' => __('Design', 'wpex')), array('type' => 'textfield', 'heading' => __('Font Weight', 'wpex'), 'param_name' => 'font_weight', 'group' => __('Design', 'wpex')), array('type' => 'textfield', 'heading' => __('Letter Spacing', 'wpex'), 'param_name' => 'letter_spacing', 'group' => __('Design', 'wpex')), array('type' => 'textfield', 'heading' => __('Border Radius', 'wpex'), 'param_name' => 'border_radius', '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') => '', __('Image', 'wpex') => 'image', __('Video/Youtube Embed Code', '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' => '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' => 'vcex_icon', 'heading' => __('Left Icon', 'wpex'), 'param_name' => 'icon_left', 'group' => __('Icons', 'wpex')), array('type' => 'textfield', 'heading' => __('Left Icon: Right Padding', 'wpex'), 'param_name' => 'icon_left_padding', 'group' => __('Icons', 'wpex')), array('type' => 'vcex_icon', 'heading' => __('Right Icon', 'wpex'), 'param_name' => 'icon_right', 'group' => __('Icons', 'wpex')), array('type' => 'textfield', 'heading' => __('Right Icon: Left Padding', 'wpex'), 'param_name' => 'icon_right_padding', 'group' => __('Icons', 'wpex')))));
 }
Example #8
0
 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", 'admin_enqueue_css' => wpex_font_awesome_css_url(), 'front_enqueue_css' => wpex_font_awesome_css_url(), "params" => array(array('type' => "textarea_html", 'heading' => __("Features", 'wpex'), 'param_name' => "content", 'value' => "<ul>\n\t\t\t\t\t\t\t\t\t\t\t<li>30GB Storage</li>\n\t\t\t\t\t\t\t\t\t\t\t<li>512MB Ram</li>\n\t\t\t\t\t\t\t\t\t\t\t<li>10 databases</li>\n\t\t\t\t\t\t\t\t\t\t\t<li>1,000 Emails</li>\n\t\t\t\t\t\t\t\t\t\t\t<li>25GB Bandwidth</li>\n\t\t\t\t\t\t\t\t\t\t</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' => 'textfield', 'heading' => __("Features Padding", 'wpex'), 'param_name' => "features_padding", 'group' => __('Features', 'wpex')), array('type' => 'textfield', 'heading' => __("Features Font Size", 'wpex'), 'param_name' => "font_size", 'value' => '', 'group' => __('Features', 'wpex')), array('type' => "colorpicker", 'heading' => __("Features Font Color", 'wpex'), 'param_name' => "font_color", 'value' => '', 'group' => __('Features', 'wpex')), 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", 'value' => "", 'group' => __('Plan', 'wpex'), 'default' => __('Basic', 'wpex')), array('type' => "colorpicker", 'heading' => __("Plan Background Color", 'wpex'), 'param_name' => "plan_background", 'group' => __('Plan', 'wpex'), 'dependency' => array('element' => 'plan', 'not_empty' => true)), array('type' => 'textfield', 'heading' => __("Plan Padding", 'wpex'), 'param_name' => "plan_padding", 'group' => __('Plan', 'wpex'), 'dependency' => array('element' => 'plan', 'not_empty' => true)), array('type' => "colorpicker", 'heading' => __("Plan Font Color", 'wpex'), 'param_name' => "plan_color", 'group' => __('Plan', 'wpex'), 'dependency' => array('element' => 'plan', 'not_empty' => true)), array('type' => 'textfield', 'heading' => __("Plan Font Size", 'wpex'), 'param_name' => "plan_size", 'group' => __('Plan', 'wpex'), 'dependency' => array('element' => 'plan', 'not_empty' => true)), array('type' => 'textfield', 'heading' => __("Plan Font Weight", 'wpex'), 'param_name' => "plan_weight", 'group' => __('Plan', 'wpex'), 'dependency' => array('element' => 'plan', 'not_empty' => true)), array('type' => 'textfield', 'heading' => __("Plan Letter Spacing", 'wpex'), 'param_name' => "plan_letter_spacing", 'group' => __('Plan', 'wpex'), 'dependency' => array('element' => 'plan', 'not_empty' => true)), array('type' => 'textfield', 'heading' => __("Plan Margin", 'wpex'), 'param_name' => "plan_margin", 'group' => __('Plan', 'wpex'), 'dependency' => array('element' => 'plan', 'not_empty' => true)), array('type' => 'textfield', 'heading' => __("Plan Border", 'wpex'), 'param_name' => "plan_border", 'group' => __('Plan', 'wpex'), 'dependency' => array('element' => 'plan', 'not_empty' => true)), array('type' => 'textfield', 'heading' => __("Cost", 'wpex'), 'param_name' => "cost", 'value' => "", 'group' => __('Cost', 'wpex'), 'default' => '$20'), array('type' => "colorpicker", 'heading' => __("Cost Background Color", 'wpex'), 'param_name' => "cost_background", 'group' => __('Cost', 'wpex'), 'dependency' => array('element' => 'cost', 'not_empty' => true)), array('type' => "colorpicker", 'heading' => __("Cost Font Color", 'wpex'), 'param_name' => "cost_color", 'group' => __('Cost', 'wpex'), 'dependency' => array('element' => 'cost', 'not_empty' => true)), array('type' => 'textfield', 'heading' => __("Cost Padding", 'wpex'), 'param_name' => "cost_padding", 'group' => __('Cost', 'wpex'), 'dependency' => array('element' => 'cost', 'not_empty' => true)), array('type' => 'textfield', 'heading' => __("Cost Font Size", 'wpex'), 'param_name' => "cost_size", 'group' => __('Cost', 'wpex'), 'dependency' => array('element' => 'cost', 'not_empty' => true)), array('type' => 'textfield', 'heading' => __("Cost Font Weight", 'wpex'), 'param_name' => "cost_weight", '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' => __("Per 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' => __("Per Font Color", 'wpex'), 'param_name' => "per_color", 'group' => __('Per', 'wpex'), 'dependency' => array('element' => 'per', 'not_empty' => true)), array('type' => 'textfield', 'heading' => __("Per Font Size", 'wpex'), 'param_name' => "per_size", 'group' => __('Per', 'wpex'), 'dependency' => array('element' => 'per', 'not_empty' => true)), array('type' => 'textfield', 'heading' => __("Per Font Weight", 'wpex'), 'param_name' => "per_weight", 'group' => __('Per', 'wpex'), 'dependency' => array('element' => 'per', 'not_empty' => true)), array('type' => 'dropdown', 'heading' => __("Per Text Transform", 'wpex'), 'param_name' => "per_transform", 'group' => __('Per', 'wpex'), 'value' => array(__('Default', 'wpex') => '', __('None', 'wpex') => 'none', __('Capitalize', 'wpex') => 'capitalize', __('Uppercase', 'wpex') => 'uppercase', __('Lowercase', 'wpex') => 'lowercase'), 'dependency' => array('element' => 'per', 'not_empty' => true)), array('type' => 'textfield', 'heading' => __("Button Area Padding", 'wpex'), 'param_name' => "button_wrap_padding", 'group' => __('Button', 'wpex')), array('type' => 'textfield', 'heading' => __("Button URL", 'wpex'), 'param_name' => "button_url", 'group' => __('Button', 'wpex')), array('type' => "colorpicker", 'heading' => __("Button Background Color", 'wpex'), 'param_name' => "button_bg_color", 'group' => __('Button', 'wpex'), 'dependency' => array('element' => 'button_url', 'not_empty' => true)), array('type' => "colorpicker", 'heading' => __("Button Background Hover Color", 'wpex'), 'param_name' => "button_hover_bg_color", 'group' => __('Button', 'wpex'), 'dependency' => array('element' => 'button_url', 'not_empty' => true)), array('type' => 'textfield', 'heading' => __("Button Border Radius", 'wpex'), 'param_name' => "button_border_radius", 'group' => __('Button', 'wpex'), 'dependency' => array('element' => 'button_url', 'not_empty' => true)), array('type' => 'textfield', 'heading' => __("Button Text", 'wpex'), 'param_name' => "button_text", 'group' => __('Button', 'wpex'), 'default' => __('Button Text', 'wpex'), 'dependency' => array('element' => 'button_url', 'not_empty' => true)), array('type' => "colorpicker", 'heading' => __("Button Font Color", 'wpex'), 'param_name' => "button_color", 'group' => __('Button', 'wpex'), 'dependency' => array('element' => 'button_url', 'not_empty' => true)), array('type' => "colorpicker", 'heading' => __("Button Font Hover Color", 'wpex'), 'param_name' => "button_hover_color", 'group' => __('Button', 'wpex'), 'dependency' => array('element' => 'button_url', 'not_empty' => true)), array('type' => 'textfield', 'heading' => __("Button Font Size", 'wpex'), 'param_name' => "button_size", 'group' => __('Button', 'wpex'), 'dependency' => array('element' => 'button_url', 'not_empty' => true)), array('type' => 'textfield', 'heading' => __("Button Padding", 'wpex'), 'param_name' => "button_padding", 'group' => __('Button', 'wpex'), 'dependency' => array('element' => 'button_url', 'not_empty' => true)), array('type' => 'textfield', 'heading' => __("Button Font Weight", 'wpex'), 'param_name' => "button_weight", 'group' => __('Button', 'wpex'), 'dependency' => array('element' => 'button_url', 'not_empty' => true)), array('type' => 'textfield', 'heading' => __("Button Letter Spacing", 'wpex'), 'param_name' => "button_letter_spacing", 'group' => __('Button', 'wpex'), 'dependency' => array('element' => 'button_url', 'not_empty' => true)), array('type' => 'dropdown', 'heading' => __("Button Text Transform", 'wpex'), 'param_name' => "button_transform", 'group' => __('Button', 'wpex'), 'value' => array(__('Default', 'wpex') => '', __('None', 'wpex') => 'none', __('Capitalize', 'wpex') => 'capitalize', __('Uppercase', 'wpex') => 'uppercase', __('Lowercase', 'wpex') => 'lowercase'), 'dependency' => array('element' => 'button_url', 'not_empty' => true)), array('type' => 'dropdown', 'heading' => __("Button Link Target", 'wpex'), 'param_name' => "button_target", 'value' => array(__("Self", "wpex") => "self", __("Blank", "wpex") => "blank"), 'group' => __('Button', 'wpex'), 'dependency' => array('element' => 'button_url', 'not_empty' => true)), array('type' => 'dropdown', 'heading' => __("Button Rel", 'wpex'), 'param_name' => "button_rel", 'value' => array(__("None", "wpex") => "none", __("Nofollow", "wpex") => "nofollow"), 'group' => __('Button', 'wpex'), 'dependency' => array('element' => 'button_url', 'not_empty' => true)), array('type' => "textarea_raw_html", 'heading' => __("Custom Button HTML", 'wpex'), 'param_name' => "custom_button", 'value' => '', "description" => __("Enter your custom button HTML, such as your paypal button code.", 'wpex'), 'group' => __('Button', 'wpex'), 'dependency' => array('element' => 'button_url', 'value' => '')), array('type' => "vcex_icon", "class" => "", 'heading' => __("Button Icon Left", 'wpex'), 'param_name' => "button_icon_left", 'value' => '', 'group' => __('Icons', 'wpex')), array('type' => "vcex_icon", "class" => "", 'heading' => __("Button Icon Right", 'wpex'), 'param_name' => "button_icon_right", 'value' => '', 'group' => __('Icons', 'wpex')))));
 }