Example #1
0
 function vcex_portfolio_carousel_shortcode_vc_map()
 {
     vc_map(array('name' => __('Portfolio Carousel', 'wpex'), 'description' => __('Recent portfolio posts carousel.', 'wpex'), 'base' => 'vcex_portfolio_carousel', 'category' => WPEX_THEME_BRANDING, 'icon' => 'vcex-portfolio-carousel', 'params' => array(array('type' => 'textfield', 'heading' => __('Unique Id', 'wpex'), 'param_name' => 'unique_id'), array('type' => 'textfield', 'heading' => __('Custom Classes', 'wpex'), 'param_name' => 'classes', 'value' => ''), array('type' => 'textfield', 'heading' => __('Items To Display', 'wpex'), 'param_name' => 'items', 'value' => '4'), array('type' => 'textfield', 'heading' => __('Items To Scrollby', 'wpex'), 'param_name' => 'items_scroll', 'value' => '1'), array('type' => 'textfield', 'heading' => __('Margin Between Items', 'wpex'), 'param_name' => 'items_margin', 'value' => '15'), array('type' => 'dropdown', 'heading' => __('Auto Play', 'wpex'), 'param_name' => 'auto_play', 'value' => array(__('True', 'wpex') => 'true', __('False', 'wpex') => 'false')), array('type' => 'dropdown', 'heading' => __('Infinite Loop', 'wpex'), 'param_name' => 'infinite_loop', 'value' => array(__('True', 'wpex') => 'true', __('False', 'wpex') => 'false')), array('type' => 'dropdown', 'heading' => __('Center Item', 'wpex'), 'param_name' => 'center', 'value' => array(__('False', 'wpex') => 'false', __('True', 'wpex') => 'true')), array('type' => 'textfield', 'heading' => __('Timeout Duration (in milliseconds)', 'wpex'), 'param_name' => 'timeout_duration', 'value' => '5000', 'dependency' => array('element' => 'auto_play', 'value' => 'true')), array('type' => 'textfield', 'heading' => __('Include Categories', 'wpex'), 'param_name' => 'include_categories', 'admin_label' => true, 'description' => __('Enter the slugs of a categories (comma seperated) to pull posts from or enter "all" to pull recent posts from all categories. Example: category-1, category-2.', 'wpex'), 'group' => __('Query', 'wpex')), array('type' => 'textfield', 'heading' => __('Exclude Categories', 'wpex'), 'param_name' => 'exclude_categories', 'admin_label' => true, 'description' => __('Enter the slugs of a categories (comma seperated) to exclude. Example: category-1, category-2.', 'wpex'), 'group' => __('Query', 'wpex')), array('type' => 'textfield', 'heading' => __('Post Count', 'wpex'), 'param_name' => 'count', 'value' => '8', 'group' => __('Query', 'wpex')), array('type' => 'dropdown', 'heading' => __('Order', 'wpex'), 'param_name' => 'order', 'value' => array(__('DESC', 'wpex') => 'DESC', __('ASC', 'wpex') => 'ASC'), 'group' => __('Query', 'wpex')), array('type' => 'dropdown', 'heading' => __('Order By', 'wpex'), 'param_name' => 'orderby', 'value' => array(__('Date', 'wpex') => 'date', __('Name', 'wpex') => 'name', __('Modified', 'wpex') => 'modified', __('Author', 'wpex') => 'author', __('Random', 'wpex') => 'rand', __('Comment Count', 'wpex') => 'comment_count', __('Meta Key Value', 'wpex') => 'meta_value', __('Meta Key Value Num', 'wpex') => 'meta_value_num'), 'group' => __('Query', 'wpex')), array('type' => 'textfield', 'heading' => __('Orderby: Meta Key', 'wpex'), 'param_name' => 'orderby_meta_key', 'group' => __('Query', 'wpex'), 'dependency' => array('element' => 'orderby', 'value' => array('meta_value_num', 'meta_value'))), array('type' => 'dropdown', 'heading' => __('Style', 'wpex'), 'param_name' => 'style', 'value' => array(__('Default', 'wpex') => 'default', __('No Margins', 'wpex') => 'no-margins'), 'group' => __('Design', 'wpex')), array('type' => 'dropdown', 'heading' => __('Display Arrows?', 'wpex'), 'param_name' => 'arrows', 'value' => array(__('True', 'wpex') => 'true', __('False', 'wpex') => 'false'), 'group' => __('Design', 'wpex')), array('type' => 'textfield', 'heading' => __('Title Font size', 'wpex'), 'param_name' => 'content_heading_size', 'group' => __('Design', 'wpex')), array('type' => 'textfield', 'heading' => __('Title Margin', 'wpex'), 'param_name' => 'content_heading_margin', 'group' => __('Design', 'wpex')), array('type' => 'textfield', 'heading' => __('Title Font Weight', 'wpex'), 'param_name' => 'content_heading_weight', 'group' => __('Design', 'wpex')), array('type' => 'dropdown', 'heading' => __('Title Text Transform', 'wpex'), 'param_name' => 'content_heading_transform', 'value' => array(__('Default', 'wpex') => '', __('None', 'wpex') => 'none', __('Capitalize', 'wpex') => 'capitalize', __('Uppercase', 'wpex') => 'uppercase', __('Lowercase', 'wpex') => 'lowercase'), 'group' => __('Design', 'wpex')), array('type' => 'colorpicker', 'heading' => __('Title Text Color', 'wpex'), 'param_name' => 'content_heading_color', 'group' => __('Design', 'wpex')), array('type' => 'colorpicker', 'heading' => __('Content Background', 'wpex'), 'param_name' => 'content_background', 'group' => __('Design', 'wpex')), array('type' => 'colorpicker', 'heading' => __('Content Text Color', 'wpex'), 'param_name' => 'content_color', 'group' => __('Design', 'wpex')), array('type' => 'dropdown', 'heading' => __('Content Alignment', 'wpex'), 'param_name' => 'content_alignment', 'value' => array(__('Default', 'wpex') => '', __('Left', 'wpex') => 'left', __('Right', 'wpex') => 'right', __('Center', 'wpex') => 'center'), 'group' => __('Design', 'wpex')), array('type' => 'textfield', 'heading' => __('Content Font Size', 'wpex'), 'param_name' => 'content_font_size', 'group' => __('Design', 'wpex')), array('type' => 'textfield', 'heading' => __('Content Margin', 'wpex'), 'param_name' => 'content_margin', 'group' => __('Design', 'wpex')), array('type' => 'textfield', 'heading' => __('Content Padding', 'wpex'), 'param_name' => 'content_padding', 'group' => __('Design', 'wpex')), array('type' => 'textfield', 'heading' => __('Content Opacity', 'wpex'), 'param_name' => 'content_opacity', 'group' => __('Design', 'wpex')), array('type' => 'textfield', 'heading' => __('Content Border', 'wpex'), 'param_name' => 'content_border', 'group' => __('Design', 'wpex')), array('type' => 'dropdown', 'heading' => __('Image Links To', 'wpex'), 'param_name' => 'thumbnail_link', 'value' => array(__('Default', 'wpex') => '', __('Post', 'wpex') => 'post', __('Lightbox', 'wpex') => 'lightbox', __('None', 'wpex') => 'none'), 'group' => __('Image', 'wpex')), array('type' => 'textfield', 'heading' => __('Image Width', 'wpex'), 'param_name' => 'img_width', 'value' => '9999', 'group' => __('Image', 'wpex')), array('type' => 'textfield', 'heading' => __('Image Height', 'wpex'), 'param_name' => 'img_height', 'value' => '9999', 'description' => __('Enter a height in pixels. Set to "9999" to disable vertical cropping and keep image proportions.', 'wpex'), 'group' => __('Image', 'wpex')), vcex_overlays_array(), array('type' => 'dropdown', 'heading' => __('CSS3 Image Hover', 'wpex'), 'param_name' => 'img_hover_style', 'value' => vcex_image_hovers(), 'description' => __('Select your preferred image hover effect. Please note this will only work if the image links to a URL or a large version of itself. Please note these effects may not work in all browsers.', 'wpex'), 'group' => __('Image', 'wpex')), array('type' => 'dropdown', 'heading' => __('Image Rendering', 'wpex'), 'param_name' => 'img_rendering', 'value' => vcex_image_rendering(), 'description' => sprintf(__('Image-rendering CSS property provides a hint to the user agent about how to handle its image rendering. For example when scaling down images they tend to look a bit fuzzy in Firefox, setting image-rendering to crisp-edges can help make the images look better. <a href="%s">Learn more</a>.', 'wpex'), 'https://developer.mozilla.org/en-US/docs/Web/CSS/image-rendering'), 'group' => __('Image', 'wpex')), array('type' => 'dropdown', 'heading' => __('Display Title', 'wpex'), 'param_name' => 'title', 'value' => array(__('Yes', 'wpex') => 'true', __('No', 'wpex') => 'false'), 'group' => __('Content', 'wpex')), array('type' => 'dropdown', 'heading' => __('Display Excerpt', 'wpex'), 'param_name' => 'excerpt', 'value' => array(__('Yes', 'wpex') => 'true', __('No', 'wpex') => 'false'), 'group' => __('Content', 'wpex')), array('type' => 'textfield', 'heading' => __('Excerpt Length', 'wpex'), 'param_name' => 'excerpt_length', 'value' => '30', 'dependency' => array('element' => 'excerpt', 'value' => 'true'), 'group' => __('Content', 'wpex')), array('type' => 'dropdown', 'heading' => __('Trim Custom Excerpts', 'wpex'), 'param_name' => 'custom_excerpt_trim', 'value' => array(__('Yes', 'wpex') => 'true', __('No', 'wpex') => 'false'), 'group' => __('Content', 'wpex'), 'dependency' => array('element' => 'excerpt', 'value' => array('true'))), array('type' => 'textfield', 'heading' => __('Tablet (768px-659px): Items To Display', 'wpex'), 'param_name' => 'tablet_items', 'value' => '3', 'group' => __('Responsive', 'wpex')), array('type' => 'textfield', 'heading' => __('Mobile Landscape (480px-767px): Items To Display', 'wpex'), 'param_name' => 'mobile_landscape_items', 'value' => '2', 'group' => __('Responsive', 'wpex')), array('type' => 'textfield', 'heading' => __('Mobile Portrait (0-479px): Items To Display', 'wpex'), 'param_name' => 'mobile_portrait_items', 'value' => '1', 'group' => __('Responsive', 'wpex')))));
 }
Example #2
0
 function vcex_image_grid_shortcode_vc_map()
 {
     $vc_img_rendering_url = 'https://developer.mozilla.org/en-US/docs/Web/CSS/image-rendering';
     vc_map(array("name" => __("Image Grid", 'wpex'), "description" => __("Responsive image gallery", 'wpex'), "base" => "vcex_image_grid", "icon" => "vcex-image-grid", 'category' => WPEX_THEME_BRANDING, "params" => array(array('type' => 'textfield', 'heading' => __("Unique Id", 'wpex'), 'param_name' => "unique_id", 'value' => ''), array('type' => "attach_images", "admin_label" => true, 'heading' => __("Attach Images", 'wpex'), 'param_name' => "image_ids"), array('type' => 'dropdown', 'heading' => __("Grid Style", 'wpex'), 'param_name' => "grid_style", 'value' => array(__('Fit Rows', 'wpex') => 'default', __('Masonry', 'wpex') => 'masonry', __('No Margins', 'wpex') => 'no-margins'), 'group' => __('Design', 'wpex')), array('type' => 'dropdown', 'heading' => __("Columns", 'wpex'), 'param_name' => "columns", 'std' => '4', 'value' => array(__('Six', 'wpex') => '6', __('Five', 'wpex') => '5', __('Four', 'wpex') => '4', __('Three', 'wpex') => '3', __('Two', 'wpex') => '2', __('One', 'wpex') => '1'), 'group' => __('Design', 'wpex')), array('type' => 'dropdown', 'heading' => __("Display Title", 'wpex'), 'param_name' => "title", 'value' => array(__('No', 'wpex') => '', __('Yes', 'wpex') => 'yes'), "description" => __("Note: The title will only display on some grid styles. For example the grid without margins will not display the title.", 'wpex'), 'group' => __('Design', 'wpex')), array('type' => 'dropdown', 'heading' => __("Title Based On Image", 'wpex'), 'param_name' => "title_type", 'value' => array(__('Title', 'wpex') => 'title', __('Alt', 'wpex') => 'alt', __('Caption', 'wpex') => 'caption', __('Description', 'wpex') => 'description'), "description" => __("Note: The title will only display on some grid styles. For example the grid without margins will not display the title.", 'wpex'), 'group' => __('Design', 'wpex'), "dependency" => array('element' => 'title', 'value' => array('yes'))), array('type' => 'dropdown', 'heading' => __("Image Link", 'wpex'), 'param_name' => "thumbnail_link", 'value' => array(__("None", "wpex") => "none", __("Lightbox", "wpex") => "lightbox", __("Custom Links", "wpex") => "custom_link"), 'group' => __('Links', 'wpex')), array('type' => 'dropdown', 'heading' => __("Lightbox Title", 'wpex'), 'param_name' => "lightbox_title", 'value' => array(__("Alt", "wpex") => "", __("Title", "wpex") => "title", __("None", "wpex") => "false"), 'group' => __('Links', 'wpex'), "dependency" => array('element' => 'thumbnail_link', 'value' => 'lightbox')), array('type' => 'dropdown', 'heading' => __("Lightbox Caption", 'wpex'), 'param_name' => "lightbox_caption", 'value' => array(__("Enable", "wpex") => "true", __("Disable", "wpex") => "false"), 'group' => __('Links', 'wpex'), "dependency" => array('element' => 'thumbnail_link', 'value' => 'lightbox')), array('type' => "exploded_textarea", 'heading' => __("Custom links", 'wpex'), 'param_name' => "custom_links", "description" => __('Enter links for each slide here. Divide links with linebreaks (Enter). For images without a link enter a # symbol. And don\'t forget to include the http:// at the front.', 'wpex'), "dependency" => array('element' => "thumbnail_link", 'value' => array('custom_link')), 'group' => __('Links', 'wpex')), array('type' => 'dropdown', 'heading' => __("Custom link target", 'wpex'), 'param_name' => "custom_links_target", "dependency" => array('element' => "thumbnail_link", 'value' => array('custom_link')), 'value' => array(__("Same window", 'wpex') => "_self", __("New window", 'wpex') => "_blank"), 'group' => __('Links', 'wpex')), array('type' => 'textfield', 'heading' => __("Image Crop Width", 'wpex'), 'param_name' => "img_width", 'value' => "9999", 'group' => __('Image Settings', 'wpex')), array('type' => 'textfield', 'heading' => __("Image Crop Height", 'wpex'), 'param_name' => "img_height", 'value' => "9999", "description" => __('Enter a height in pixels. Set to "9999" to disable vertical cropping and keep image proportions.', 'wpex'), 'group' => __('Image Settings', 'wpex')), array('type' => 'dropdown', 'heading' => __("Rounded Image?", 'wpex'), 'param_name' => "rounded_image", 'value' => array(__('No', 'wpex') => '', __('Yes', 'wpex') => 'yes'), 'group' => __('Image Settings', 'wpex')), array('type' => 'dropdown', 'heading' => __("Image Filter", 'wpex'), 'param_name' => "img_filter", 'value' => vcex_image_filters(), 'group' => __('Image Settings', 'wpex')), array('type' => 'dropdown', 'heading' => __("Image Rendering", 'wpex'), 'param_name' => "img_rendering", 'value' => vcex_image_rendering(), "description" => sprintf(__('Image-rendering CSS property provides a hint to the user agent about how to handle its image rendering. For example when scaling down images they tend to look a bit fuzzy in Firefox, setting image-rendering to crisp-edges can help make the images look better. <a href="%s">Learn more</a>.', 'wpex'), esc_url($vc_img_rendering_url)), 'group' => __('Image Settings', 'wpex')), array('type' => 'dropdown', 'heading' => __("CSS3 Image Hover", 'wpex'), 'param_name' => "img_hover_style", 'value' => vcex_image_hovers(), "description" => __("Select your preferred image hover effect. Please note this will only work if the image links to a URL or a large version of itself. Please note these effects may not work in all browsers.", 'wpex'), 'group' => __('Image Settings', 'wpex')))));
 }
Example #3
0
 function vcex_portfolio_grid_shortcode_vc_map()
 {
     $vc_img_rendering_url = 'https://developer.mozilla.org/en-US/docs/Web/CSS/image-rendering';
     vc_map(array("name" => __("Portfolio Grid", 'wpex'), 'description' => __("Recent portfolio posts grid.", 'wpex'), "base" => "vcex_portfolio_grid", 'category' => WPEX_THEME_BRANDING, "icon" => "vcex-portfolio-grid", "params" => array(array('type' => 'textfield', 'heading' => __("Unique Id", 'wpex'), 'param_name' => "unique_id"), array("type" => 'dropdown', 'heading' => __("Columns", 'wpex'), "param_name" => "columns", "value" => array(__('Six', 'wpex') => '6', __('Five', 'wpex') => '5', __('Four', 'wpex') => '4', __('Three', 'wpex') => '3', __('Two', 'wpex') => '2', __('One', 'wpex') => '1'), "std" => '4'), array("type" => 'dropdown', 'heading' => __("1 Column Style", 'wpex'), "param_name" => "single_column_style", "value" => array(__("Default", "wpex") => '', __("Left/Right", "wpex") => 'left_thumbs'), 'dependency' => array('element' => 'columns', 'value' => '1')), array('type' => 'dropdown', 'heading' => __("Grid Style", 'wpex'), 'param_name' => "grid_style", 'value' => array(__('Fit Columns', 'wpex') => 'fit_columns', __('Masonry', 'wpex') => 'masonry', __("No Margins", "wpex") => 'no_margins')), array('type' => 'dropdown', 'heading' => __("Equal Heights?", 'wpex'), 'param_name' => "equal_heights_grid", 'value' => array(__("No", "wpex") => '', __("Yes", "wpex") => "true"), 'dependency' => array('element' => 'grid_style', 'value' => 'fit_columns'), 'description' => __('Adds equal heights for the entry content so "boxes" on the same row are the same height. You must have equal sized images for this to work efficiently.', 'wpex')), array('type' => 'textfield', 'heading' => __("Include Categories", 'wpex'), 'param_name' => "include_categories", "admin_label" => true, 'description' => __('Enter the slugs of a categories (comma seperated) to pull posts from or enter "all" to pull recent posts from all categories. Example: category-1, category-2.', 'wpex'), 'group' => __('Query', 'wpex')), array('type' => 'textfield', 'heading' => __("Exclude Categories", 'wpex'), 'param_name' => "exclude_categories", "admin_label" => true, 'description' => __('Enter the slugs of a categories (comma seperated) to exclude. Example: category-1, category-2.', 'wpex'), 'group' => __('Query', 'wpex')), array('type' => 'dropdown', 'heading' => __("Order", 'wpex'), 'param_name' => "order", 'value' => array(__("DESC", "wpex") => "DESC", __("ASC", "wpex") => "ASC"), 'group' => __('Query', 'wpex')), array('type' => 'dropdown', 'heading' => __('Order By', 'wpex'), 'param_name' => 'orderby', 'value' => array(__('Date', 'wpex') => 'date', __('Name', 'wpex') => 'name', __('Modified', 'wpex') => 'modified', __('Author', 'wpex') => 'author', __('Random', 'wpex') => 'rand', __('Comment Count', 'wpex') => 'comment_count', __('Meta Key Value', 'wpex') => 'meta_value', __('Meta Key Value Num', 'wpex') => 'meta_value_num'), 'group' => __('Query', 'wpex')), array('type' => 'textfield', 'heading' => __("Orderby: Meta Key", 'wpex'), 'param_name' => "orderby_meta_key", 'group' => __('Query', 'wpex'), 'dependency' => array('element' => 'orderby', 'value' => array('meta_value_num', 'meta_value'))), array('type' => 'textfield', 'heading' => __("Posts Per Page", 'wpex'), 'param_name' => "posts_per_page", 'value' => "8", 'group' => __('Query', 'wpex')), array('type' => 'dropdown', 'heading' => __("Pagination", 'wpex'), 'param_name' => "pagination", 'value' => array(__("No", "wpex") => '', __("Yes", "wpex") => "true"), 'group' => __('Query', 'wpex')), array('type' => 'dropdown', 'heading' => __("Category Filter", 'wpex'), 'param_name' => 'filter', 'value' => array(__('No', 'wpex') => '', __('Yes', 'wpex') => 'true'), 'group' => __('Filter', 'wpex')), array('type' => 'dropdown', 'heading' => __('Layout Mode', 'wpex'), 'param_name' => 'masonry_layout_mode', 'value' => array(__('Masonry', 'wpex') => 'masonry', __('Fit Rows', 'wpex') => 'fitRows'), 'group' => __('Filter', 'wpex')), array('type' => 'textfield', 'heading' => __('Custom Filter Speed', 'wpex'), 'param_name' => "filter_speed", 'description' => __('Default is "0.4" seconds', 'wpex'), 'group' => __('Filter', 'wpex')), array('type' => 'dropdown', 'heading' => __("Center Filter Links", 'wpex'), 'param_name' => "center_filter", 'value' => array(__('No', 'wpex') => '', __('Yes', 'wpex') => 'yes'), 'group' => __('Filter', 'wpex')), array('type' => 'textfield', 'heading' => __('Custom Category Filter "All" Text', 'wpex'), 'param_name' => "all_text", 'group' => __('Filter', 'wpex')), array('type' => 'dropdown', 'heading' => __("Entry Media?", 'wpex'), 'param_name' => "entry_media", 'value' => array(__('Yes', 'wpex') => '', __('No', 'wpex') => "false"), 'group' => __('Image', 'wpex')), vcex_overlays_array(), array('type' => 'textfield', 'heading' => __("Image Crop Width", 'wpex'), 'param_name' => "img_width", 'value' => "9999", 'group' => __('Image', 'wpex')), array('type' => 'textfield', 'heading' => __("Image Crop Height", 'wpex'), 'param_name' => "img_height", 'value' => "9999", 'description' => __("Custom image cropping height. Enter 9999 for no cropping (just resizing).", 'wpex'), 'group' => __('Image', 'wpex')), array('type' => 'dropdown', 'heading' => __("Image Filter", 'wpex'), 'param_name' => "img_filter", 'value' => vcex_image_filters(), 'group' => __('Image', 'wpex')), array('type' => 'dropdown', 'heading' => __("Image Rendering", 'wpex'), 'param_name' => "img_rendering", 'value' => vcex_image_rendering(), 'description' => sprintf(__('Image-rendering CSS property provides a hint to the user agent about how to handle its image rendering. For example when scaling down images they tend to look a bit fuzzy in Firefox, setting image-rendering to crisp-edges can help make the images look better. <a href="%s">Learn more</a>.', 'wpex'), esc_url($vc_img_rendering_url)), 'group' => __('Image', 'wpex')), array('type' => 'dropdown', 'heading' => __("CSS3 Image Hover", 'wpex'), 'param_name' => "img_hover_style", 'value' => vcex_image_hovers(), 'description' => __("Select your preferred image hover effect. Please note this will only work if the image links to a URL or a large version of itself. Please note these effects may not work in all browsers.", "wpex"), 'group' => __('Image', 'wpex')), array('type' => 'dropdown', 'heading' => __("Image Links To", 'wpex'), 'param_name' => "thumb_link", 'value' => array(__("Post", "wpex") => '', __("Lightbox", "wpex") => "lightbox", __("Nowhere", "wpex") => "nowhere"), 'group' => __('Image', 'wpex')), array('type' => 'dropdown', 'heading' => __("Display Lightbox Gallery", 'wpex'), 'param_name' => "thumb_lightbox_gallery", 'value' => array(__("No", "wpex") => '', __("Yes", "wpex") => "true"), 'group' => __('Image', 'wpex'), 'dependency' => array('element' => 'thumb_link', 'value' => 'lightbox')), array('type' => 'dropdown', 'heading' => __("Display Title In Lightbox", 'wpex'), 'param_name' => "thumb_lightbox_title", 'value' => array(__("No", "wpex") => '', __("Yes", "wpex") => "true"), 'group' => __('Image', 'wpex'), 'dependency' => array('element' => 'thumb_link', 'value' => 'lightbox')), array('type' => 'dropdown', 'heading' => __("Title", 'wpex'), 'param_name' => "title", 'value' => array(__("Yes", "wpex") => '', __("No", "wpex") => "false"), 'group' => __('Content', 'wpex')), array('type' => 'dropdown', 'heading' => __("Title Links To", 'wpex'), 'param_name' => "title_link", 'value' => array(__("Post", "wpex") => '', __("Lightbox", "wpex") => "lightbox", __("Nowhere", "wpex") => "nowhere"), 'group' => __('Content', 'wpex')), array('type' => 'dropdown', 'heading' => __("Excerpt", 'wpex'), 'param_name' => "excerpt", 'value' => array(__("Yes", "wpex") => '', __("No", "wpex") => "false"), 'group' => __('Content', 'wpex')), array('type' => 'textfield', 'heading' => __('Custom Excerpt Length', 'wpex'), 'param_name' => 'excerpt_length', 'group' => __('Content', 'wpex'), 'std' => '30'), array("type" => 'dropdown', 'heading' => __("Trim Custom Excerpts", 'wpex'), "param_name" => "custom_excerpt_trim", "value" => array(__('Yes', 'wpex') => '', __('No', 'wpex') => 'false'), 'group' => __('Content', 'wpex')), array('type' => 'dropdown', 'heading' => __("Read More", 'wpex'), 'param_name' => "read_more", 'std' => 'false', 'value' => array(__("No", "wpex") => "false", __("Yes", "wpex") => ''), 'group' => __('Content', 'wpex')), array('type' => 'textfield', 'heading' => __("Read More Text", 'wpex'), 'param_name' => "read_more_text", 'group' => __('Content', 'wpex')), array('type' => "colorpicker", 'heading' => __("Title Text Color", 'wpex'), 'param_name' => "content_heading_color", 'group' => __('Design', 'wpex')), array('type' => 'textfield', 'heading' => __("Title Font size", 'wpex'), 'param_name' => "content_heading_size", 'group' => __('Design', 'wpex')), array('type' => 'textfield', 'heading' => __("Title Margin", 'wpex'), 'param_name' => "content_heading_margin", 'group' => __('Design', 'wpex')), array('type' => "colorpicker", 'heading' => __("Content Background", 'wpex'), 'param_name' => "content_background", 'group' => __('Design', 'wpex')), array('type' => "colorpicker", 'heading' => __("Content Text Color", 'wpex'), 'param_name' => "content_color", 'group' => __('Design', 'wpex')), array('type' => 'dropdown', 'heading' => __('Content Alignment', 'wpex'), 'param_name' => "content_alignment", 'value' => array(__("Default", "wpex") => '', __("Left", "wpex") => "left", __("Right", "wpex") => "right", __("Center", "wpex") => "center"), 'group' => __('Design', 'wpex')), array('type' => 'textfield', 'heading' => __("Content Font Size", 'wpex'), 'param_name' => "content_font_size", 'group' => __('Design', 'wpex')), array('type' => 'textfield', 'heading' => __("Content Margin", 'wpex'), 'param_name' => "content_margin", 'group' => __('Design', 'wpex')), array('type' => 'textfield', 'heading' => __("Content Padding", 'wpex'), 'param_name' => "content_padding", 'group' => __('Design', 'wpex')), array('type' => 'textfield', 'heading' => __("Content Opacity", 'wpex'), 'param_name' => "content_opacity", 'group' => __('Design', 'wpex')), array('type' => 'textfield', 'heading' => __("Content Border", 'wpex'), 'param_name' => "content_border", 'group' => __('Design', 'wpex')), array('type' => "colorpicker", 'heading' => __("Content Read More Background", 'wpex'), 'param_name' => "readmore_background", 'group' => __('Design', 'wpex')), array('type' => "colorpicker", 'heading' => __("Content Read More Color", 'wpex'), 'param_name' => "readmore_color", 'group' => __('Design', 'wpex')))));
 }
Example #4
0
 function vcex_feature_box_shortcode_vc_map()
 {
     $vc_img_rendering_url = 'https://developer.mozilla.org/en-US/docs/Web/CSS/image-rendering';
     vc_map(array("name" => __("Feature Box", 'wpex'), "description" => __("A feature content box (left/right).", 'wpex'), "base" => "vcex_feature_box", 'category' => WPEX_THEME_BRANDING, "icon" => "vcex-feature-box", "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" => __("Style", "wpex"), "param_name" => "style", "value" => array(__("Left Image - Right Content", "wpex") => "left-image-right-content", __("Left Content - Right Image", "wpex") => "left-content-right-image")), 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" => __("Alignment", "wpex"), "param_name" => "text_align", "value" => array(__("Default", "wpex") => "", __("Center", "wpex") => "center", __("Left", "wpex") => "left", __("Right", "wpex") => "right")), array("type" => 'textfield', "heading" => __("Padding", "wpex"), "param_name" => "padding"), array("type" => 'colorpicker', "heading" => __("Background", "wpex"), "param_name" => "background"), array("type" => 'textfield', "heading" => __("Border", "wpex"), "param_name" => "border"), array("type" => "textfield", "heading" => __("Content Width", "wpex"), "param_name" => "content_width", "value" => '50%', 'group' => __('Widths', 'wpex')), array("type" => "textfield", "heading" => __("Image Width", "wpex"), "param_name" => "media_width", "value" => '50%', 'group' => __('Widths', 'wpex')), array("type" => 'dropdown', "heading" => __("Tablet Widths", "wpex"), "param_name" => "tablet_widths", "value" => array(__("Inherit", "wpex") => "", __("Full-Width", "wpex") => "fullwidth"), 'group' => __('Widths', 'wpex')), array("type" => 'dropdown', "heading" => __("Phone Widths", "wpex"), "param_name" => "phone_widths", "value" => array(__("Inherit", "wpex") => "", __("Full-Width", "wpex") => "fullwidth"), 'group' => __('Widths', 'wpex')), 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", "wpex") => "h2", __("h3", "wpex") => "h3", __("h4", "wpex") => "h4", __("h5", "wpex") => "h5", __("div", "wpex") => "div"), 'group' => __('Heading', 'wpex')), array("type" => "vc_link", "heading" => __("Heading URL", 'wpex'), "param_name" => "heading_url", "value" => "", 'group' => __('Heading', 'wpex')), array('type' => "colorpicker", "heading" => __("Heading 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 Margin", 'wpex'), 'param_name' => "heading_margin", 'group' => __('Heading', 'wpex')), array('type' => 'textfield', 'heading' => __("Heading Font Weight", 'wpex'), 'param_name' => "heading_weight", 'group' => __('Heading', 'wpex')), 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" => "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 feature box.', 'wpex'), 'group' => __('Content', 'wpex')), array('type' => 'textfield', 'heading' => __("Content Padding", 'wpex'), 'param_name' => "content_padding", 'group' => __('Content', 'wpex')), array('type' => 'textfield', 'heading' => __("Content Font Size", 'wpex'), 'param_name' => "content_font_size", 'group' => __('Content', 'wpex')), array('type' => 'textfield', 'heading' => __("Content Font Weight", 'wpex'), 'param_name' => "content_font_weight", 'group' => __('Content', 'wpex')), array('type' => 'colorpicker', 'heading' => __("Content Font Color", 'wpex'), 'param_name' => "content_color", 'group' => __('Content', 'wpex')), array('type' => 'colorpicker', 'heading' => __("Content Background", 'wpex'), 'param_name' => "content_background", 'group' => __('Content', 'wpex')), array("type" => "attach_image", "heading" => __("Image", "wpex"), "param_name" => "image", "value" => "", 'group' => __('Image', 'wpex')), array('type' => 'dropdown', "heading" => __("Equal Heights?", 'wpex'), 'param_name' => "equal_heights", 'value' => array(__("No", "wpex") => "", __("Yes", "wpex") => "true"), 'description' => __('Keeps the image column the same height as your content.', 'wpex'), 'group' => __('Image', 'wpex'), 'dependency' => array('element' => 'image', 'not_empty' => true)), array("type" => "vc_link", "heading" => __("Image URL", 'wpex'), "param_name" => "image_url", "value" => "", 'group' => __('Image', 'wpex'), 'dependency' => array('element' => 'image', 'not_empty' => true)), array('type' => 'dropdown', 'heading' => __('Lightbox Type', 'wpex'), 'param_name' => "image_lightbox", 'value' => array(__('None', 'wpex') => '', __('Self (Image)', 'wpex') => 'image', __('URL', 'wpex') => 'url', __('Auto Detect', 'wpex') => 'auto-detect', __('Video/Youtube Embed Code', 'wpex') => "video_embed", __('HTML5', 'wpex') => "html5", __('Quicktime', 'wpex') => "quicktime"), 'group' => __('Image', 'wpex'), 'dependency' => array('element' => 'image', 'not_empty' => true)), array("type" => "textfield", "heading" => __("Image Width", 'wpex'), "param_name" => "img_width", "value" => "9999", 'group' => __('Image', 'wpex'), 'dependency' => array('element' => 'image', 'not_empty' => true)), array("type" => "textfield", "heading" => __("Image Height", 'wpex'), "param_name" => "img_height", "value" => "9999", "description" => __("Custom image cropping height. Enter 9999 for no cropping.", 'wpex'), 'group' => __('Image', 'wpex'), 'dependency' => array('element' => 'image', 'not_empty' => true)), array("type" => "textfield", "heading" => __("Border Radius", 'wpex'), "param_name" => "img_border_radius", "value" => "", 'group' => __('Image', 'wpex'), 'dependency' => array('element' => 'image', 'not_empty' => true)), array("type" => 'dropdown', "heading" => __("Image Filter", 'wpex'), "param_name" => "img_filter", "value" => vcex_image_filters(), 'group' => __('Image', 'wpex'), 'dependency' => array('element' => 'image', 'not_empty' => true)), array("type" => 'dropdown', "heading" => __("CSS3 Image Hover", 'wpex'), "param_name" => "img_hover_style", "value" => vcex_image_hovers(), "description" => __("Select your preferred image hover effect. Please note this will only work if the image links to a URL or a large version of itself. Please note these effects may not work in all browsers.", "wpex"), 'group' => __('Image', 'wpex'), 'dependency' => array('element' => 'image', 'not_empty' => true), 'dependency' => array('element' => 'equal_heights', 'value' => '')), array("type" => 'dropdown', "heading" => __("Image Rendering", 'wpex'), "param_name" => "img_rendering", "value" => vcex_image_rendering(), "description" => sprintf(__('Image-rendering CSS property provides a hint to the user agent about how to handle its image rendering. For example when scaling down images they tend to look a bit fuzzy in Firefox, setting image-rendering to crisp-edges can help make the images look better. <a href="%s">Learn more</a>.', 'wpex'), esc_url($vc_img_rendering_url)), 'group' => __('Image', 'wpex'), 'dependency' => array('element' => 'image', 'not_empty' => true)), array("type" => "textfield", "heading" => __("Video link", "wpex"), "param_name" => "video", "description" => sprintf(__('Enter a video link for a video based feature box. More about supported formats at %s.', "wpex"), '<a href="http://codex.wordpress.org/Embeds#Okay.2C_So_What_Sites_Can_I_Embed_From.3F" target="_blank">WordPress codex page</a>'), 'group' => __('Video', 'wpex')))));
 }
Example #5
0
 function vcex_teaser_shortcode_vc_map()
 {
     $vc_img_rendering_url = 'https://developer.mozilla.org/en-US/docs/Web/CSS/image-rendering';
     vc_map(array("name" => __("Teaser Box", 'wpex'), "description" => __("A teaser content box", 'wpex'), "base" => "vcex_teaser", 'category' => WPEX_THEME_BRANDING, "icon" => "vcex-teaser", "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" => "dropdown", "heading" => __("Style", "wpex"), "param_name" => "style", "value" => array(__("Plain", "wpex") => "one", __("Boxed 1", "wpex") => "two", __("Boxed 2", "wpex") => "three", __("Outline", "wpex") => "four")), 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" => __("Alignment", "wpex"), "param_name" => "text_align", "value" => array(__("Default", "wpex") => "", __("Center", "wpex") => "center", __("Left", "wpex") => "left", __("Right", "wpex") => "right")), array('type' => 'textfield', 'heading' => __("Padding", 'wpex'), 'param_name' => "padding", 'dependency' => array('element' => 'style', 'value' => array('two'))), array('type' => 'colorpicker', 'heading' => __("Background Color", 'wpex'), 'param_name' => "background", 'dependency' => array('element' => 'style', 'value' => array('two', 'three'))), array('type' => 'colorpicker', 'heading' => __("Border Color", 'wpex'), 'param_name' => "border_color", 'dependency' => array('element' => 'style', 'value' => array('two', 'three', 'four'))), array('type' => 'textfield', 'heading' => __("Border Radius", 'wpex'), 'param_name' => "border_radius", 'dependency' => array('element' => 'style', 'value' => array('two', 'three', 'four'))), array("type" => "textarea_html", "class" => "", "holder" => "div", "heading" => __("Content", 'wpex'), "param_name" => "content", 'value' => __('Don\'t forget to change this dummy text in your page editor for this lovely teaser box.', 'wpex'), 'group' => __('Content', 'wpex')), array('type' => 'textfield', 'heading' => __("Content Margin", 'wpex'), 'param_name' => "content_margin", 'group' => __('Content', 'wpex')), array('type' => 'textfield', 'heading' => __("Content Padding", 'wpex'), 'param_name' => "content_padding", 'group' => __('Content', 'wpex')), array('type' => 'textfield', 'heading' => __("Content Font Size", 'wpex'), 'param_name' => "content_font_size", 'group' => __('Content', 'wpex')), array('type' => 'textfield', 'heading' => __("Content Font Weight", 'wpex'), 'param_name' => "content_font_weight", 'group' => __('Content', 'wpex'), "value" => ''), array('type' => 'colorpicker', 'heading' => __("Content Font Color", 'wpex'), 'param_name' => "content_color", 'group' => __('Content', 'wpex')), array('type' => 'colorpicker', 'heading' => __("Content Background", 'wpex'), 'param_name' => "content_background", 'group' => __('Content', 'wpex')), array("type" => "textfield", "class" => "", "heading" => __("Heading", 'wpex'), "param_name" => "heading", "value" => "Sample Heading", 'group' => __('Heading', 'wpex')), array("type" => "dropdown", "class" => "", "heading" => __("Heading Type", 'wpex'), "param_name" => "heading_type", "value" => array(__("h2", "wpex") => "h2", __("h3", "wpex") => "h3", __("h4", "wpex") => "h4", __("h5", "wpex") => "h5"), 'group' => __('Heading', 'wpex')), array('type' => "colorpicker", "heading" => __("Heading 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 Margin", 'wpex'), 'param_name' => "heading_margin", '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", "class" => "", "heading" => __("URL", 'wpex'), "param_name" => "url", "value" => "", 'group' => __('URL', 'wpex')), array("type" => "dropdown", "class" => "", "heading" => __("URL Target", 'wpex'), "param_name" => "url_target", "value" => array(__("Self", "wpex") => "", __("Blank", "wpex") => "_blank", __("Local", 'wpex') => "local"), 'group' => __('URL', 'wpex')), array("type" => "dropdown", "class" => "", "heading" => __("URL Rel", 'wpex'), "param_name" => "url_rel", "value" => array(__("None", "wpex") => "", __("Nofollow", "wpex") => "nofollow"), 'group' => __('URL', 'wpex')), array("type" => "attach_image", "heading" => __("Image", "wpex"), "param_name" => "image", "value" => "", 'group' => __('Media', 'wpex')), array("type" => "textfield", "heading" => __("Video link", "wpex"), "param_name" => "video", "description" => sprintf(__('Enter a video link for a video based teaser box. More about supported formats at %s.', "wpex"), '<a href="http://codex.wordpress.org/Embeds#Okay.2C_So_What_Sites_Can_I_Embed_From.3F" target="_blank">WordPress codex page</a>'), 'group' => __('Media', 'wpex')), array("type" => "dropdown", "heading" => __("Image Style", 'wpex'), "param_name" => "img_style", "value" => array(__("Default", "wpex") => "", __("Stretch", "wpex") => "stretch"), 'group' => __('Media', 'wpex'), 'dependency' => array('element' => 'image', 'not_empty' => true)), array("type" => "textfield", "heading" => __("Image Width", 'wpex'), "param_name" => "img_width", "value" => "9999", 'group' => __('Media', 'wpex'), 'dependency' => array('element' => 'image', 'not_empty' => true)), array("type" => "textfield", "heading" => __("Image Height", 'wpex'), "param_name" => "img_height", "value" => "9999", "description" => __("Custom image cropping height. Enter 9999 for no cropping.", 'wpex'), 'group' => __('Media', 'wpex'), 'dependency' => array('element' => 'image', 'not_empty' => true)), array("type" => "dropdown", "heading" => __("Image Filter", 'wpex'), "param_name" => "img_filter", "value" => vcex_image_filters(), 'group' => __('Media', 'wpex'), 'dependency' => array('element' => 'image', 'not_empty' => true)), array("type" => "dropdown", "heading" => __("CSS3 Image Hover", 'wpex'), "param_name" => "img_hover_style", "value" => vcex_image_hovers(), "description" => __("Select your preferred image hover effect. Please note this will only work if the image links to a URL or a large version of itself. Please note these effects may not work in all browsers.", "wpex"), 'group' => __('Media', 'wpex'), 'dependency' => array('element' => 'image', 'not_empty' => true)), array("type" => "dropdown", "heading" => __("Image Rendering", 'wpex'), "param_name" => "img_rendering", "value" => vcex_image_rendering(), "description" => sprintf(__('Image-rendering CSS property provides a hint to the user agent about how to handle its image rendering. For example when scaling down images they tend to look a bit fuzzy in Firefox, setting image-rendering to crisp-edges can help make the images look better. <a href="%s">Learn more</a>.', 'wpex'), esc_url($vc_img_rendering_url)), 'group' => __('Media', 'wpex'), 'dependency' => array('element' => 'image', 'not_empty' => true)))));
 }
Example #6
0
 function vcex_image_carousel_shortcode_vc_map()
 {
     $vc_img_rendering_url = 'https://developer.mozilla.org/en-US/docs/Web/CSS/image-rendering';
     vc_map(array("name" => __("Image Carousel", 'wpex'), 'description' => __("Image based jQuery carousel.", 'wpex'), "base" => "vcex_image_carousel", 'category' => WPEX_THEME_BRANDING, "icon" => "vcex-image-carousel", "params" => array(array('type' => "attach_images", "admin_label" => true, 'heading' => __("Attach Images", 'wpex'), 'param_name' => "image_ids", 'group' => __('Gallery', 'wpex')), array('type' => 'textfield', 'heading' => __("Unique Id", 'wpex'), 'param_name' => "unique_id", 'value' => ''), array('type' => 'textfield', 'heading' => __("Custom Classes", 'wpex'), 'param_name' => "classes", 'value' => ''), array('type' => 'textfield', 'heading' => __("Items To Display", 'wpex'), 'param_name' => "items", 'value' => "4"), array('type' => 'textfield', 'heading' => __("Items To Scrollby", 'wpex'), 'param_name' => 'items_scroll', 'value' => ''), array('type' => 'textfield', 'heading' => __("Margin Between Items", 'wpex'), 'param_name' => 'items_margin', 'value' => '15'), array('type' => 'dropdown', 'heading' => __("Auto Play", 'wpex'), 'param_name' => "auto_play", 'value' => array(__('True', 'wpex') => 'true', __('False', 'wpex') => 'false')), array('type' => 'dropdown', 'heading' => __("Infinite Loop", 'wpex'), 'param_name' => "infinite_loop", 'value' => array(__('True', 'wpex') => 'true', __('False', 'wpex') => 'false')), array('type' => 'dropdown', 'heading' => __("Center Item", 'wpex'), 'param_name' => "center", 'value' => array(__('False', 'wpex') => 'false', __('True', 'wpex') => 'true')), array('type' => 'textfield', 'heading' => __('Timeout Duration (in milliseconds)', 'wpex'), 'param_name' => "timeout_duration", 'value' => "5000", 'dependency' => array('element' => "auto_play", 'value' => 'true')), array('type' => 'dropdown', 'heading' => __("Style", 'wpex'), 'param_name' => "style", 'value' => array(__("Default", 'wpex') => "", __("No Margins", 'wpex') => "no-margins"), 'group' => __('Design', 'wpex')), array('type' => 'dropdown', 'heading' => __("Display Arrows?", 'wpex'), 'param_name' => "arrows", 'value' => array(__('True', 'wpex') => 'true', __('False', 'wpex') => 'false'), 'group' => __('Design', 'wpex')), array('type' => 'dropdown', 'heading' => __('Display Title?', 'wpex'), 'param_name' => "title", 'value' => array(__('True', 'wpex') => 'yes', __('False', 'wpex') => 'false'), 'group' => __('Design', 'wpex')), array('type' => 'dropdown', 'heading' => __("Title Based On Image", 'wpex'), 'param_name' => "title_type", 'value' => array(__('Title', 'wpex') => 'title', __('Alt', 'wpex') => 'alt'), 'group' => __('Design', 'wpex'), "dependency" => array('element' => 'title', 'value' => array('yes'))), array('type' => 'dropdown', 'heading' => __('Display Caption', 'wpex'), 'param_name' => 'caption', 'value' => array(__('True', 'wpex') => 'yes', __('False', 'wpex') => 'false'), 'group' => __('Design', 'wpex')), array('type' => 'textfield', "heading" => __("Title Font size", 'wpex'), 'param_name' => "content_heading_size", 'group' => __('Design', 'wpex')), array('type' => 'textfield', "heading" => __("Title Margin", 'wpex'), 'param_name' => "content_heading_margin", 'group' => __('Design', 'wpex')), array('type' => 'textfield', "heading" => __("Title Font Weight", 'wpex'), 'param_name' => "content_heading_weight", 'group' => __('Design', 'wpex')), array('type' => 'dropdown', 'heading' => __("Title Text Transform", 'wpex'), 'param_name' => "content_heading_transform", 'value' => array(__('Default', 'wpex') => '', __('None', 'wpex') => 'none', __('Capitalize', 'wpex') => 'capitalize', __('Uppercase', 'wpex') => 'uppercase', __('Lowercase', 'wpex') => 'lowercase'), 'group' => __('Design', 'wpex')), array('type' => "colorpicker", "heading" => __("Title Text Color", 'wpex'), 'param_name' => "content_heading_color", 'group' => __('Design', 'wpex')), array('type' => "colorpicker", "heading" => __("Content Background", 'wpex'), 'param_name' => "content_background", 'group' => __('Design', 'wpex')), array('type' => "colorpicker", "heading" => __("Content Text Color", 'wpex'), 'param_name' => "content_color", 'group' => __('Design', 'wpex')), array('type' => 'dropdown', 'heading' => __('Content Alignment', 'wpex'), 'param_name' => "content_alignment", 'value' => array(__("Default", "wpex") => '', __("Left", "wpex") => "left", __("Right", "wpex") => "right", __("Center", "wpex") => "center"), 'group' => __('Design', 'wpex')), array('type' => 'textfield', "heading" => __("Content Font Size", 'wpex'), 'param_name' => "content_font_size", 'group' => __('Design', 'wpex')), array('type' => 'textfield', "heading" => __("Content Margin", 'wpex'), 'param_name' => "content_margin", 'group' => __('Design', 'wpex')), array('type' => 'textfield', "heading" => __("Content Padding", 'wpex'), 'param_name' => "content_padding", 'group' => __('Design', 'wpex')), array('type' => 'textfield', "heading" => __("Content Opacity", 'wpex'), 'param_name' => "content_opacity", 'group' => __('Design', 'wpex')), array('type' => 'textfield', "heading" => __("Content Border", 'wpex'), 'param_name' => "content_border", 'group' => __('Design', 'wpex')), array('type' => 'dropdown', 'heading' => __("Image Link", 'wpex'), 'param_name' => "thumbnail_link", 'value' => array(__("None", 'wpex') => "none", __("Lightbox", 'wpex') => "lightbox", __("Custom Links", 'wpex') => "custom_link"), 'group' => __('Links', 'wpex')), array('type' => 'exploded_textarea', 'heading' => __('Custom links', 'wpex'), 'param_name' => 'custom_links', 'description' => __('Enter links for each slide here. Divide links with linebreaks (Enter). For images without a link enter a # symbol. And don\'t forget to include the http:// at the front.', 'wpex'), 'dependency' => array('element' => "thumbnail_link", 'value' => array('custom_link')), 'group' => __('Links', 'wpex')), array('type' => 'dropdown', 'heading' => __('Custom link target', 'wpex'), 'param_name' => "custom_links_target", 'description' => __('Select where to open custom links.', 'wpex'), 'dependency' => array('element' => "thumbnail_link", 'value' => 'custom_link'), 'value' => array(__("Same window", 'wpex') => "_self", __("New window", 'wpex') => "_blank"), 'group' => __('Links', 'wpex')), array('type' => 'textfield', 'heading' => __("Image Crop Width", 'wpex'), 'param_name' => "img_width", 'value' => "500", 'group' => __('Image Settings', 'wpex')), array('type' => 'textfield', 'heading' => __("Image Crop Height", 'wpex'), 'param_name' => "img_height", 'value' => "500", 'description' => __('Enter a height in pixels. Set to "9999" to disable vertical cropping and keep image proportions.', 'wpex'), 'group' => __('Image Settings', 'wpex')), array('type' => 'checkbox', 'heading' => __("Rounded Image?", 'wpex'), 'param_name' => 'rounded_image', 'value' => array(__("Yes please.", 'wpex') => 'yes'), 'group' => __('Image Settings', 'wpex')), array('type' => 'dropdown', 'heading' => __("Image Rendering", 'wpex'), 'param_name' => "img_rendering", 'value' => vcex_image_rendering(), 'group' => __('Image Settings', 'wpex')), array('type' => 'dropdown', 'heading' => __("Image Filter", 'wpex'), 'param_name' => "img_filter", 'value' => vcex_image_filters(), 'group' => __('Image Settings', 'wpex')), array('type' => 'dropdown', 'heading' => __("CSS3 Image Hover", 'wpex'), 'param_name' => "img_hover_style", 'value' => vcex_image_hovers(), 'group' => __('Image Settings', 'wpex')), array('type' => 'textfield', 'heading' => __("Tablet (768px-659px): Items To Display", 'wpex'), 'param_name' => "tablet_items", 'value' => "3", 'group' => __('Responsive', 'wpex')), array('type' => 'textfield', 'heading' => __("Mobile Landscape (480px-767px): Items To Display", 'wpex'), 'param_name' => "mobile_landscape_items", 'value' => "2", 'group' => __('Responsive', 'wpex')), array('type' => 'textfield', 'heading' => __("Mobile Portrait (0-479px): Items To Display", 'wpex'), 'param_name' => "mobile_portrait_items", 'value' => "1", 'group' => __('Responsive', 'wpex')))));
 }
Example #7
0
 function vcex_image_flexslider_shortcode_vc_map()
 {
     $vc_img_rendering_url = 'https://developer.mozilla.org/en-US/docs/Web/CSS/image-rendering';
     vc_map(array('name' => __('Image FlexSlider', 'wpex'), 'description' => __('Custom image slider.', 'wpex'), 'base' => 'vcex_image_flexslider', 'category' => WPEX_THEME_BRANDING, 'icon' => 'vcex-image-flexslider', 'params' => array(array('type' => 'textfield', 'class' => '', 'heading' => __('Unique Id', 'wpex'), 'param_name' => 'unique_id', 'value' => '', 'description' => __('You can enter a unique ID here for styling purposes.', 'wpex')), array('type' => 'attach_images', 'admin_label' => true, 'class' => '', 'heading' => __('Attach Images', 'wpex'), 'param_name' => 'image_ids', 'group' => __('Gallery', 'wpex')), array('type' => 'dropdown', 'class' => '', 'heading' => __('Image Link', 'wpex'), 'param_name' => 'thumbnail_link', 'value' => array(__('None', 'wpex') => 'none', __('Lightbox', 'wpex') => 'lightbox', __('Custom Links', 'wpex') => 'custom_link'), 'group' => __('Links', 'wpex')), array('type' => 'exploded_textarea', 'heading' => __('Custom links', 'wpex'), 'param_name' => 'custom_links', 'description' => __('Enter links for each slide here. Divide links with linebreaks (Enter). For images without a link enter a # symbol.', 'wpex'), 'dependency' => array('element' => 'thumbnail_link', 'value' => array('custom_link')), 'group' => __('Links', 'wpex')), array('type' => 'dropdown', 'heading' => __('Custom link target', 'wpex'), 'param_name' => 'custom_links_target', 'dependency' => array('element' => 'thumbnail_link', 'value' => array('custom_link')), 'value' => array(__('Same window', 'wpex') => '_self', __('New window', 'wpex') => '_blank'), 'group' => __('Links', 'wpex')), array('type' => 'textfield', 'class' => '', 'heading' => __('Image Crop Width', 'wpex'), 'param_name' => 'img_width', 'value' => '9999', 'group' => __('Image Settings', 'wpex')), array('type' => 'textfield', 'class' => '', 'heading' => __('Image Crop Height', 'wpex'), 'param_name' => 'img_height', 'value' => '9999', 'description' => __('Enter a height in pixels. Set to "9999" to disable vertical cropping and keep image proportions.', 'wpex'), 'group' => __('Image Settings', 'wpex')), array('type' => 'dropdown', 'heading' => __('Image Rendering', 'wpex'), 'param_name' => 'img_rendering', 'value' => vcex_image_rendering(), 'description' => sprintf(__('Image-rendering CSS property provides a hint to the user agent about how to handle its image rendering. For example when scaling down images they tend to look a bit fuzzy in Firefox, setting image-rendering to crisp-edges can help make the images look better. <a href="%s">Learn more</a>.', 'wpex'), esc_url($vc_img_rendering_url)), 'group' => __('Image Settings', 'wpex')), array('type' => 'dropdown', 'class' => '', 'heading' => __('Display Caption', 'wpex'), 'param_name' => 'caption', 'value' => array(__('True', 'wpex') => 'true', __('False', 'wpex') => 'false'), 'group' => __('Caption', 'wpex')), array('type' => 'dropdown', 'class' => '', 'heading' => __('Animation', 'wpex'), 'param_name' => 'animation', 'value' => array(__('Slide', 'wpex') => 'slide', __('Fade', 'wpex') => 'fade')), array('type' => 'dropdown', 'class' => '', 'heading' => __('Slideshow', 'wpex'), 'param_name' => 'slideshow', 'value' => array(__('True', 'wpex') => 'true', __('False', 'wpex') => 'false'), 'description' => __('Enable automatic slideshow? Disabled in front-end composer to prevent page "jumping".', 'wpex')), array('type' => 'dropdown', 'class' => '', 'heading' => __('Randomize', 'wpex'), 'param_name' => 'randomize', 'value' => array(__('False', 'wpex') => 'false', __('True', 'wpex') => 'true'), 'description' => __('Randomize image order display on page load?', 'wpex')), array('type' => 'dropdown', 'class' => '', 'heading' => __('Control Nav', 'wpex'), 'param_name' => 'control_nav', 'value' => array(__('True', 'wpex') => 'true', __('False', 'wpex') => 'false'), 'description' => __('Display the control navigation? These are the white "dots" at the top of the slider.', 'wpex')), array('type' => 'dropdown', 'admin_label' => true, 'class' => '', 'heading' => __('Navigation Thumbnails', 'wpex'), 'param_name' => 'control_thumbs', 'description' => __('Enable Thumbnail Navigation?', 'wpex'), 'value' => array(__('No', 'wpex') => 'false', __('Yes', 'wpex') => 'true')), array('type' => 'dropdown', 'class' => '', 'heading' => __('Direction Nav', 'wpex'), 'param_name' => 'direction_nav', 'value' => array(__('True', 'wpex') => 'true', __('False', 'wpex') => 'false'), 'description' => __('Display the next and previous arrows?', 'wpex')), array('type' => 'dropdown', 'class' => '', 'heading' => __('Smooth Height', 'wpex'), 'param_name' => 'smooth_height', 'value' => array(__('True', 'wpex') => 'true', __('False', 'wpex') => 'false'), 'description' => __('Smooth animation for slides of different heights. A bit buggy with the fade animation but works great with the slide animation.', 'wpex')), array('type' => 'textfield', 'class' => '', 'heading' => __('Slideshow Speed', 'wpex'), 'param_name' => 'slideshow_speed', 'value' => '7000', 'description' => __('Enter your desired slideshow speed in milliseconds. Default is 7000.', 'wpex')), array('type' => 'textfield', 'class' => '', 'heading' => __('Animation Speed', 'wpex'), 'param_name' => 'animation_speed', 'value' => '600', 'description' => __('Enter your desired animation speed in milliseconds. Default is 600.', 'wpex')))));
 }
Example #8
0
 function vcex_image_swap_shortcode_vc_map()
 {
     $vc_img_rendering_url = 'https://developer.mozilla.org/en-US/docs/Web/CSS/image-rendering';
     vc_map(array('name' => __('Image Swap', 'wpex'), 'description' => __('Double Image Hover Effect', 'wpex'), 'base' => 'vcex_image_swap', 'icon' => 'vcex-image-swap', 'category' => WPEX_THEME_BRANDING, 'params' => array(array('type' => 'textfield', 'heading' => __('Unique Id', 'wpex'), 'param_name' => 'unique_id', 'value' => ''), array('type' => 'attach_image', 'heading' => __('Primary Image', 'wpex'), 'param_name' => 'primary_image'), array('type' => 'attach_image', 'heading' => __('Secondary Image', 'wpex'), 'param_name' => 'secondary_image'), array('type' => 'textfield', 'heading' => __('Image Crop Width', 'wpex'), 'param_name' => 'img_width', 'value' => '9999', 'group' => __('Image Settings', 'wpex')), array('type' => 'textfield', 'heading' => __('Image Crop Height', 'wpex'), 'param_name' => 'img_height', 'value' => '9999', 'description' => __('Enter a height in pixels.Images must be the same size for the swap to work correctly.', 'wpex'), 'group' => __('Image Settings', 'wpex')), array('type' => 'textfield', 'heading' => __('Border Radius', 'wpex'), 'param_name' => 'border_radius', 'value' => '4px', 'group' => __('Image Settings', 'wpex')), array('type' => 'dropdown', 'heading' => __('Image Rendering', 'wpex'), 'param_name' => 'img_rendering', 'value' => vcex_image_rendering(), 'description' => sprintf(__('Image-rendering CSS property provides a hint to the user agent about how to handle its image rendering. For example when scaling down images they tend to look a bit fuzzy in Firefox, setting image-rendering to crisp-edges can help make the images look better. <a href="%s">Learn more</a>.', 'wpex'), esc_url($vc_img_rendering_url)), 'group' => __('Image Settings', 'wpex')), array('type' => 'textfield', 'heading' => __('Link', 'wpex'), 'param_name' => 'link', '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(__('Same window', 'wpex') => '_self', __('New window', 'wpex') => '_blank'), 'group' => __('Link', 'wpex')), array('type' => 'dropdown', 'heading' => __('Enable Tooltip?', 'wpex'), 'param_name' => 'link_tooltip', 'value' => array(__('No', 'wpex') => 'no', __('Yes', 'wpex') => 'yes'), 'group' => __('Link', 'wpex')))));
 }
Example #9
0
 function vcex_image_galleryslider_shortcode_vc_map()
 {
     $vc_img_rendering_url = 'https://developer.mozilla.org/en-US/docs/Web/CSS/image-rendering';
     vc_map(array('name' => __('Gallery Slider', 'wpex'), 'description' => __('Image slider with thumbnail navigation', 'wpex'), 'base' => 'vcex_image_galleryslider', 'category' => WPEX_THEME_BRANDING, 'icon' => 'vcex-image-gallery-slider', 'params' => array(array('type' => 'textfield', 'heading' => __('Unique Id', 'wpex'), 'param_name' => 'unique_id', 'value' => '', 'description' => __('You can enter a unique ID here for styling purposes.', 'wpex')), array('type' => 'attach_images', 'admin_label' => true, 'heading' => __('Attach Images', 'wpex'), 'param_name' => 'image_ids', 'group' => __('Gallery', 'wpex')), array('type' => 'dropdown', 'heading' => __('Image Link', 'wpex'), 'param_name' => 'thumbnail_link', 'value' => array(__('None', 'wpex') => 'none', __('Lightbox', 'wpex') => 'lightbox', __('Custom Links', 'wpex') => 'custom_link'), 'group' => __('Links', 'wpex')), array('type' => 'exploded_textarea', 'heading' => __('Custom links', 'wpex'), 'param_name' => 'custom_links', 'description' => __('Enter links for each slide here. Divide links with linebreaks (Enter). For images without a link enter a # symbol.', 'wpex'), 'dependency' => array('element' => 'thumbnail_link', 'value' => array('custom_link')), 'group' => __('Links', 'wpex')), array('type' => 'dropdown', 'heading' => __('Custom link target', 'wpex'), 'param_name' => 'custom_links_target', 'dependency' => array('element' => 'thumbnail_link', 'value' => array('custom_link')), 'value' => array(__('Same window', 'wpex') => '_self', __('New window', 'wpex') => '_blank'), 'group' => __('Links', 'wpex')), array('type' => 'textfield', 'heading' => __('Main Image Crop Width', 'wpex'), 'param_name' => 'img_width', 'value' => '9999', 'group' => __('Image Settings', 'wpex')), array('type' => 'textfield', 'heading' => __('Main Image Crop Height', 'wpex'), 'param_name' => 'img_height', 'value' => '9999', 'description' => __('Enter a height in pixels. Set to "9999" to disable vertical cropping and keep image proportions. Do not leave this setting blank, if you do and your images are not proportional the slider will not function perfectly', 'wpex'), 'group' => __('Image Settings', 'wpex')), array('type' => 'textfield', 'heading' => __('Thumbnail Image Crop Width', 'wpex'), 'param_name' => 'img_thumb_width', 'value' => '200', 'description' => __('Enter a width in pixels for your thumbnail image width. This won\'t increase the grid, its only used so you can alter the cropping to your preferred proportions.', 'wpex'), 'group' => __('Image Settings', 'wpex')), array('type' => 'textfield', 'heading' => __('Thumbnail Image Crop Height', 'wpex'), 'param_name' => 'img_thumb_height', 'value' => '200', 'description' => __('Enter a width in pixels for your thumbnail image height.', 'wpex'), 'group' => __('Image Settings', 'wpex')), array('type' => 'dropdown', 'heading' => __('Image Rendering', 'wpex'), 'param_name' => 'img_rendering', 'value' => vcex_image_rendering(), 'description' => sprintf(__('Image-rendering CSS property provides a hint to the user agent about how to handle its image rendering. For example when scaling down images they tend to look a bit fuzzy in Firefox, setting image-rendering to crisp-edges can help make the images look better. <a href="%s">Learn more</a>.', 'wpex'), esc_url($vc_img_rendering_url)), 'group' => __('Image Settings', 'wpex')), array('type' => 'dropdown', 'heading' => __('Display Caption', 'wpex'), 'param_name' => 'caption', 'value' => array(__('True', 'wpex') => 'true', __('False', 'wpex') => 'false'), 'description' => __('Display your image captions in the slider?', 'wpex'), 'group' => __('Design', 'wpex')), array('type' => 'dropdown', 'heading' => __('Animation', 'wpex'), 'param_name' => 'animation', 'value' => array(__('Slide', 'wpex') => 'slide', __('Fade', 'wpex') => 'fade_anim'), 'description' => __('Select your animation style. Fade animation may be a bit buggy on this slider style.', 'wpex')), array('type' => 'dropdown', 'heading' => __('Slideshow', 'wpex'), 'param_name' => 'slideshow', 'value' => array(__('True', 'wpex') => 'true', __('False', 'wpex') => 'false'), 'description' => __('Enable automatic slideshow?', 'wpex')), array('type' => 'dropdown', 'heading' => __('Randomize', 'wpex'), 'param_name' => 'randomize', 'value' => array(__('False', 'wpex') => 'false', __('True', 'wpex') => 'true'), 'description' => __('Randomize image order display on page load?', 'wpex')), array('type' => 'dropdown', 'class' => '', 'heading' => __('Smooth Height', 'wpex'), 'param_name' => 'smooth_height', 'value' => array(__('True', 'wpex') => 'true', __('False', 'wpex') => 'false'), 'description' => __('Smooth animation for slides of different heights. A bit buggy with the fade animation but works great with the slide animation.', 'wpex')), array('type' => 'textfield', 'heading' => __('Slideshow Speed', 'wpex'), 'param_name' => 'slideshow_speed', 'value' => '7000', 'description' => __('Enter your desired slideshow speed in milliseconds. Default is 7000.', 'wpex')), array('type' => 'textfield', 'heading' => __('Animation Speed', 'wpex'), 'param_name' => 'animation_speed', 'value' => '600', 'description' => __('Enter your desired animation speed in milliseconds. Default is 600.', 'wpex')))));
 }