/**
 * Adds the shortcode to the Visual Composer
 *
 * @since 2.1.0
 */
function vcex_terms_grid_vc_map()
{
    vc_map(array('name' => __('Categories Grid', 'wpex'), 'description' => __('Displays a grid of terms', 'wpex'), 'base' => 'vcex_terms_grid', 'category' => WPEX_THEME_BRANDING, 'icon' => 'vcex-terms-grid vcex-icon fa fa-th-large', 'params' => array(array('type' => 'autocomplete', 'heading' => __('Taxonomy', 'wpex'), 'param_name' => 'taxonomy', 'std' => 'category', 'settings' => array('multiple' => false, 'min_length' => 1, 'groups' => false, 'unique_values' => true, 'display_inline' => true, 'delay' => 0, 'auto_focus' => true)), array('type' => 'dropdown', 'heading' => __('Parent Terms Only', 'wpex'), 'param_name' => 'parent_terms', 'value' => array(__('No', 'wpex') => false, __('Yes', 'wpex') => true)), array('type' => 'textfield', 'heading' => __('Unique Id', 'wpex'), 'param_name' => 'unique_id'), array('type' => 'textfield', 'heading' => __('Custom Classes', 'wpex'), 'param_name' => 'classes'), array('type' => 'dropdown', 'heading' => __('CSS Animation', 'wpex'), 'param_name' => 'css_animation', 'value' => array_flip(wpex_css_animations())), array('type' => 'dropdown', 'heading' => __('Visibility', 'wpex'), 'param_name' => 'visibility', 'value' => array_flip(wpex_visibility())), array('type' => 'dropdown', 'heading' => __('Columns', 'wpex'), 'param_name' => 'columns', 'value' => array_flip(wpex_grid_columns()), 'std' => '3', 'edit_field_class' => 'vc_col-sm-4 vc_column clear'), array('type' => 'dropdown', 'heading' => __('Gap', 'wpex'), 'param_name' => 'columns_gap', 'value' => array_flip(wpex_column_gaps()), 'edit_field_class' => 'vc_col-sm-4 vc_column'), array('type' => 'dropdown', 'heading' => __('Responsive', 'wpex'), 'param_name' => 'columns_responsive', 'value' => array(__('Yes', 'wpex') => '', __('No', 'wpex') => 'false'), 'std' => '', 'edit_field_class' => 'vc_col-sm-4 vc_column'), array('type' => 'dropdown', 'heading' => __('Image Size', 'wpex'), 'param_name' => 'img_size', 'std' => 'full', 'value' => vcex_image_sizes(), 'group' => __('Image', 'wpex')), array('type' => 'dropdown', 'heading' => __('Image Crop Location', 'wpex'), 'param_name' => 'img_crop', 'std' => 'center-center', 'value' => array_flip(wpex_image_crop_locations()), 'dependency' => array('element' => 'img_size', 'value' => 'wpex_custom'), 'group' => __('Image', 'wpex')), array('type' => 'textfield', 'heading' => __('Image Crop Width', 'wpex'), 'param_name' => 'img_width', 'dependency' => array('element' => 'img_size', 'value' => 'wpex_custom'), 'description' => __('Enter a width in pixels.', 'wpex'), 'group' => __('Image', 'wpex')), array('type' => 'textfield', 'heading' => __('Image Crop Height', 'wpex'), 'param_name' => 'img_height', 'description' => __('Enter a height in pixels. Leave empty to disable vertical cropping and keep image proportions.', 'wpex'), 'group' => __('Image', 'wpex'), 'dependency' => array('element' => 'img_size', 'value' => 'wpex_custom')), array('type' => 'dropdown', 'heading' => __('CSS3 Image Link Hover', 'wpex'), 'param_name' => 'img_hover_style', 'value' => array_flip(wpex_image_hovers()), 'group' => __('Image', 'wpex')), array('type' => 'dropdown', 'heading' => __('Image Filter', 'wpex'), 'param_name' => 'img_filter', 'value' => array_flip(wpex_image_filters()), 'group' => __('Image', 'wpex')), array('type' => 'dropdown', 'heading' => __('Enable', 'wpex'), 'param_name' => 'title', 'std' => 'true', 'value' => array(__('Yes', 'wpex') => 'true', __('No', 'wpex') => 'false'), 'group' => __('Title', 'wpex')), array('type' => 'font_container', 'param_name' => 'title_typo', 'group' => __('Title', 'wpex'), 'settings' => array('fields' => array('tag' => 'span', 'font_size', 'line_height', 'color', 'font_style_italic', 'font_style_bold', 'font_family')), 'dependency' => array('element' => 'title', 'value' => 'true')), array('type' => 'dropdown', 'heading' => __('Enable', 'wpex'), 'param_name' => 'description', 'std' => 'true', 'value' => array(__('Yes', 'wpex') => 'true', __('No', 'wpex') => 'false'), 'group' => __('Description', 'wpex')), array('type' => 'font_container', 'param_name' => 'description_typo', 'group' => __('Description', 'wpex'), 'settings' => array('fields' => array('font_size', 'line_height', 'color', 'font_style_italic', 'font_style_bold', 'font_family')), 'dependency' => array('element' => 'description', 'value' => 'true')), array('type' => 'css_editor', 'heading' => __('CSS', 'wpex'), 'param_name' => 'entry_css', 'group' => __('Entry CSS', 'wpex')))));
}
<?php

/**
 * Staff Customizer Options
 *
 * @package Total WordPress Theme
 * @subpackage Customizer
 */
// Exit if accessed directly
if (!defined('ABSPATH')) {
    exit;
}
// Single blocks
$blocks = apply_filters('wpex_staff_single_blocks', array('title' => __('Post Title', 'wpex'), 'media' => __('Media', 'wpex'), 'content' => __('Content', 'wpex'), 'share' => __('Social Share', 'wpex'), 'comments' => __('Comments', 'wpex'), 'related' => __('Related Posts', 'wpex')));
// General
$this->sections['wpex_staff_general'] = array('title' => __('General', 'wpex'), 'panel' => 'wpex_staff', 'settings' => array(array('id' => 'staff_page', 'default' => '', 'control' => array('label' => __('Main Page', 'wpex'), 'type' => 'wpex-dropdown-pages', 'desc' => __('Used for breadcrumbs.', 'wpex'))), array('id' => 'staff_custom_sidebar', 'default' => true, 'control' => array('label' => __('Custom Post Type Sidebar', 'wpex'), 'type' => 'checkbox')), array('id' => 'staff_search', 'default' => true, 'control' => array('label' => __('Include In Search', 'wpex'), 'type' => 'checkbox'))));
// Archives
$this->sections['wpex_staff_archives'] = array('title' => __('Archives', 'wpex'), 'panel' => 'wpex_staff', 'desc' => __('The following options are for the post type category and tag archives.', 'wpex'), 'settings' => array(array('id' => 'staff_archive_layout', 'default' => 'full-width', 'control' => array('label' => __('Layout', 'wpex'), 'type' => 'select', 'choices' => array('right-sidebar' => __('Right Sidebar', 'wpex'), 'left-sidebar' => __('Left Sidebar', 'wpex'), 'full-width' => __('No Sidebar', 'wpex')))), array('id' => 'staff_archive_grid_style', 'default' => 'fit-rows', 'control' => array('label' => __('Grid Style', 'wpex'), 'type' => 'select', 'choices' => array('fit-rows' => __('Fit Rows', 'wpex'), 'masonry' => __('Masonry', 'wpex'), 'no-margins' => __('No Margins', 'wpex')))), array('id' => 'staff_archive_grid_equal_heights', 'default' => '', 'control' => array('label' => __('Equal Heights', 'wpex'), 'type' => 'checkbox', 'desc' => __('Displays the content containers (with the title and excerpt) in equal heights. Will NOT work with the "Masonry" layouts.', 'wpex'))), array('id' => 'staff_entry_columns', 'default' => '3', 'control' => array('label' => __('Columns', 'wpex'), 'type' => 'select', 'choices' => wpex_grid_columns())), array('id' => 'staff_archive_posts_per_page', 'default' => '12', 'control' => array('label' => __('Posts Per Page', 'wpex'), 'type' => 'text')), array('id' => 'staff_entry_overlay_style', 'default' => 'none', 'control' => array('label' => __('Archives Entry: Overlay Style', 'wpex'), 'type' => 'select', 'choices' => wpex_overlay_styles_array())), array('id' => 'staff_entry_details', 'default' => true, 'control' => array('label' => __('Archives Entry: Details', 'wpex'), 'type' => 'checkbox')), array('id' => 'staff_entry_position', 'default' => true, 'control' => array('label' => __('Archives Entry: Position', 'wpex'), 'type' => 'checkbox')), array('id' => 'staff_entry_excerpt_length', 'default' => '20', 'control' => array('label' => __('Archives Entry: Excerpt Length', 'wpex'), 'type' => 'text', 'desc' => __('Enter 0 or leave blank to disable', 'wpex'))), array('id' => 'staff_entry_social', 'default' => true, 'control' => array('label' => __('Archives Entry: Social Links', 'wpex'), 'type' => 'checkbox'))));
// Single
$this->sections['wpex_staff_single'] = array('title' => __('Single', 'wpex'), 'panel' => 'wpex_staff', 'settings' => array(array('id' => 'staff_single_layout', 'default' => 'right-sidebar', 'control' => array('label' => __('Layout', 'wpex'), 'type' => 'select', 'choices' => array('right-sidebar' => __('Right Sidebar', 'wpex'), 'left-sidebar' => __('Left Sidebar', 'wpex'), 'full-width' => __('No Sidebar', 'wpex')))), array('id' => 'staff_next_prev', 'default' => true, 'control' => array('label' => __('Next & Previous Links', 'wpex'), 'type' => 'checkbox')), array('id' => 'staff_related_title', 'default' => '', 'control' => array('label' => __('Related Posts Title', 'wpex'), 'type' => 'text')), array('id' => 'staff_related_count', 'default' => '3', 'control' => array('label' => __('Related Posts Count', 'wpex'), 'type' => 'text')), array('id' => 'staff_related_columns', 'default' => '3', 'control' => array('label' => __('Related Posts Columns', 'wpex'), 'type' => 'select', 'choices' => wpex_grid_columns())), array('id' => 'staff_related_excerpts', 'default' => true, 'control' => array('label' => __('Related Posts Content', 'wpex'), 'type' => 'checkbox')), array('id' => 'staff_post_composer', 'default' => 'content,related', 'control' => array('label' => __('Post Layout Elements', 'wpex'), 'type' => 'wpex-sortable', 'choices' => $blocks, 'desc' => __('Click and drag and drop elements to re-order them. Click the "x" to disable any element. You can not disable all elements, if you do so it will display them all', 'wpex')))));
/**
 * Adds the shortcode to the Visual Composer
 *
 * @since 1.4.1
 */
function vcex_post_type_grid_vc_map()
{
    vc_map(array('name' => __('Post Types Grid', 'wpex'), 'description' => __('Multiple post types posts grid', 'wpex'), 'base' => 'vcex_post_type_grid', 'category' => WPEX_THEME_BRANDING, 'icon' => 'vcex-post-type-grid vcex-icon fa fa-files-o', 'params' => array(array('type' => 'textfield', 'heading' => __('Unique Id', 'wpex'), 'description' => __('Give your main element a unique ID.', 'wpex'), 'param_name' => 'unique_id'), array('type' => 'textfield', 'heading' => __('Custom Classes', 'wpex'), 'description' => __('Add additonal classes to the main element.', 'wpex'), 'param_name' => 'classes'), array('type' => 'dropdown', 'heading' => __('Visibility', 'wpex'), 'param_name' => 'visibility', 'value' => array_flip(wpex_visibility()), 'description' => __('Choose when this module should display.', 'wpex')), array('type' => 'dropdown', 'heading' => __('Appear Animation', 'wpex'), 'param_name' => 'css_animation', 'value' => array_flip(wpex_css_animations()), 'description' => __('If the "filter" is enabled animations will be disabled to prevent bugs.', 'wpex')), array('type' => 'dropdown', 'heading' => __('Grid Style', 'wpex'), 'param_name' => 'grid_style', 'value' => array(__('Fit Columns', 'wpex') => 'fit_columns', __('Masonry', 'wpex') => 'masonry', __('No Margins', 'wpex') => 'no_margins'), 'edit_field_class' => 'vc_col-sm-3 vc_column clear'), array('type' => 'dropdown', 'heading' => __('Columns', 'wpex'), 'param_name' => 'columns', 'value' => wpex_grid_columns(), 'std' => '3', 'edit_field_class' => 'vc_col-sm-3 vc_column'), array('type' => 'dropdown', 'heading' => __('Gap', 'wpex'), 'param_name' => 'columns_gap', 'value' => array_flip(wpex_column_gaps()), 'std' => '20', 'edit_field_class' => 'vc_col-sm-3 vc_column'), array('type' => 'dropdown', 'heading' => __('Responsive', 'wpex'), 'param_name' => 'columns_responsive', 'value' => array(__('Yes', 'wpex') => 'true', __('No', 'wpex') => 'false'), 'std' => '', 'edit_field_class' => 'vc_col-sm-3 vc_column'), array('type' => 'dropdown', 'heading' => __('1 Column Style', 'wpex'), 'param_name' => 'single_column_style', 'value' => array(__('Default', 'wpex') => '', __('Left Image & Right Content', 'wpex') => 'left_thumbs'), 'dependency' => array('element' => 'columns', 'value' => '1')), array('type' => 'dropdown', 'heading' => __('Equal Heights?', 'wpex'), 'param_name' => 'equal_heights_grid', 'value' => array(__('No', 'wpex') => 'false', __('Yes', 'wpex') => 'true'), 'dependency' => array('element' => 'grid_style', 'value' => 'fit_columns'), 'description' => __('Adds equal heights for the entry content so entries on the same row are the same height. You must have equal sized images for this to work efficiently. Disabled for masonry style layouts and filterable layouts.', 'wpex')), array('type' => 'dropdown', 'heading' => __('Post Link Target', 'wpex'), 'param_name' => 'url_target', 'value' => array(__('Self', 'wpex') => 'self', __('Blank', 'wpex') => '_blank')), array('type' => 'textfield', 'heading' => __('Posts Per Page', 'wpex'), 'param_name' => 'posts_per_page', 'value' => '12', 'description' => __('You can enter "-1" to display all posts.', 'wpex'), 'group' => __('Query', 'wpex')), array('type' => 'dropdown', 'heading' => __('Pagination', 'wpex'), 'param_name' => 'pagination', 'value' => array(__('False', 'wpex') => 'false', __('True', 'wpex') => 'true'), 'description' => __('Important: Pagination will not work on your homepage due to how WordPress Queries function.', 'wpex'), 'group' => __('Query', 'wpex')), array('type' => 'textfield', 'heading' => __('Offset', 'wpex'), 'param_name' => 'offset', 'group' => __('Query', 'wpex'), 'description' => __('Number of post to displace or pass over. Warning: Setting the offset parameter overrides/ignores the paged parameter and breaks pagination. The offset parameter is ignored when posts per page is set to -1.', 'wpex')), array('type' => 'posttypes', 'heading' => __('Post types', 'wpex'), 'param_name' => 'post_types', 'group' => __('Query', 'wpex')), array('type' => 'textfield', 'heading' => __('Limit By Post ID\'s', 'wpex'), 'param_name' => 'posts_in', 'group' => __('Query', 'wpex'), 'description' => __('Seperate by a comma.', 'wpex')), array('type' => 'autocomplete', 'heading' => __('Limit By Author', 'wpex'), 'param_name' => 'author_in', 'settings' => array('multiple' => true, 'min_length' => 1, 'groups' => false, 'unique_values' => true, 'display_inline' => true, 'delay' => 0, 'auto_focus' => true), 'group' => __('Query', 'wpex')), array('type' => 'dropdown', 'heading' => __('Query by Taxonomy', 'wpex'), 'param_name' => 'tax_query', 'value' => array(__('No', 'wpex') => 'false', __('Yes', 'wpex') => 'true'), 'group' => __('Query', 'wpex')), array('type' => 'autocomplete', 'heading' => __('Taxonomy Name', 'wpex'), 'param_name' => 'tax_query_taxonomy', 'dependency' => array('element' => 'tax_query', 'value' => 'true'), 'settings' => array('multiple' => false, 'min_length' => 1, 'groups' => false, 'display_inline' => true, 'delay' => 0, 'auto_focus' => true), 'group' => __('Query', 'wpex'), 'description' => __('If you do not see your taxonomy in the dropdown you can still enter the taxonomy name manually.', 'wpex')), array('type' => 'autocomplete', 'heading' => __('Terms', 'wpex'), 'param_name' => 'tax_query_terms', 'dependency' => array('element' => 'tax_query', 'value' => 'true'), 'settings' => array('multiple' => true, 'min_length' => 1, 'groups' => true, 'display_inline' => true, 'delay' => 0, 'auto_focus' => true), 'group' => __('Query', 'wpex'), 'description' => __('If you do not see your terms in the dropdown you can still enter the term slugs manually seperated by a space.', 'wpex')), array('type' => 'dropdown', 'heading' => __('Order', 'wpex'), 'param_name' => 'order', 'group' => __('Query', 'wpex'), 'value' => array(__('Default', 'wpex') => 'default', __('DESC', 'wpex') => 'DESC', __('ASC', 'wpex') => 'ASC')), array('type' => 'dropdown', 'heading' => __('Order By', 'wpex'), 'param_name' => 'orderby', 'value' => vcex_orderby_array(), 'group' => __('Query', 'wpex')), array('type' => 'textfield', 'heading' => __('Orderby: Meta Key', 'wpex'), 'param_name' => 'orderby_meta_key', 'group' => __('Query', 'wpex'), 'dependency' => array('element' => 'orderby', 'value' => array('meta_value_num', 'meta_value'))), array('type' => 'dropdown', 'heading' => __('Post With Thumbnails Only', 'wpex'), 'param_name' => 'thumbnail_query', 'value' => array(__('No', 'wpex') => 'false', __('Yes', 'wpex') => 'true'), 'group' => __('Query', 'wpex')), array('type' => 'dropdown', 'heading' => __('Enable', 'wpex'), 'param_name' => 'filter', 'value' => array(__('No', 'wpex') => 'false', __('Yes', 'wpex') => 'true'), 'description' => __('If more then one post type is selected it will display a post type filter, otherwise it will display the categories for the current post type.', 'wpex'), 'group' => __('Filter', 'wpex')), array('type' => 'dropdown', 'heading' => __('Button Style', 'wpex'), 'param_name' => 'filter_button_style', 'value' => array_flip(wpex_button_styles()), 'group' => __('Filter', 'wpex'), 'std' => 'minimal-border', 'dependency' => array('element' => 'filter', 'value' => 'true')), array('type' => 'dropdown', 'heading' => __('Button Color', 'wpex'), 'param_name' => 'filter_button_color', 'std' => '', 'value' => array_flip(wpex_button_colors()), 'group' => __('Filter', 'wpex'), 'dependency' => array('element' => 'filter', 'value' => 'true')), array('type' => 'dropdown', 'heading' => __('Filter What?', 'wpex'), 'param_name' => 'filter_type', 'value' => array(__('Post Types', 'wpex') => 'post_types', __('Custom Taxonomy', 'wpex') => 'taxonomy'), 'group' => __('Filter', 'wpex'), 'dependency' => array('element' => 'filter', 'value' => 'true')), array('type' => 'dropdown', 'heading' => __('Layout Mode', 'wpex'), 'param_name' => 'masonry_layout_mode', 'value' => array(__('Masonry', 'wpex') => 'masonry', __('Fit Rows', 'wpex') => 'fitRows'), 'group' => __('Filter', 'wpex'), 'dependency' => array('element' => 'filter', 'value' => 'true')), array('type' => 'autocomplete', 'heading' => __('Filter Taxonomy Name', 'wpex'), 'param_name' => 'filter_taxonomy', 'dependency' => array('element' => 'filter_type', 'value' => array('taxonomy')), 'settings' => array('multiple' => false, 'min_length' => 1, 'groups' => false, 'unique_values' => true, 'display_inline' => true, 'delay' => 0, 'auto_focus' => true), 'description' => __('Enter the taxonomy name for the filter links.', 'wpex'), 'group' => __('Filter', 'wpex')), array('type' => 'textfield', 'heading' => __('Custom Filter Speed', 'wpex'), 'param_name' => 'filter_speed', 'description' => __('Default is 0.4 seconds. Enter 0.0 to disable.', 'wpex'), 'group' => __('Filter', 'wpex'), 'dependency' => array('element' => 'filter', 'value' => 'true')), array('type' => 'dropdown', 'heading' => __('Center Filter Links', 'wpex'), 'param_name' => 'center_filter', 'value' => array(__('No', 'wpex') => 'no', __('Yes', 'wpex') => 'yes'), 'group' => __('Filter', 'wpex'), 'dependency' => array('element' => 'filter', 'value' => 'true')), array('type' => 'textfield', 'heading' => __('Custom Filter "All" Text', 'wpex'), 'param_name' => 'all_text', 'group' => __('Filter', 'wpex'), 'value' => _x('All', 'Grid Filter All Button', 'wpex'), 'dependency' => array('element' => 'filter', 'value' => 'true')), array('type' => 'dropdown', 'heading' => __('Enable', 'wpex'), 'param_name' => 'entry_media', 'value' => array(__('Yes', 'wpex') => 'true', __('No', 'wpex') => 'false'), 'group' => __('Media', 'wpex')), array('type' => 'dropdown', 'heading' => __('Display Featured Videos?', 'wpex'), 'param_name' => 'featured_video', 'value' => array(__('True', 'wpex') => 'true', __('False', 'wpex') => 'false'), 'group' => __('Media', 'wpex'), 'dependency' => array('element' => 'entry_media', 'value' => 'true')), array('type' => 'dropdown', 'heading' => __('Image Links To', 'wpex'), 'param_name' => 'thumb_link', 'value' => array(__('Post', 'wpex') => 'post', __('Lightbox', 'wpex') => 'lightbox', __('Nowhere', 'wpex') => 'nowhere'), 'group' => __('Media', 'wpex'), 'dependency' => array('element' => 'entry_media', 'value' => 'true')), array('type' => 'dropdown', 'heading' => __('Image Size', 'wpex'), 'param_name' => 'img_size', 'std' => 'wpex_custom', 'value' => vcex_image_sizes(), 'group' => __('Media', 'wpex'), 'dependency' => array('element' => 'entry_media', 'value' => 'true')), array('type' => 'dropdown', 'heading' => __('Image Crop Location', 'wpex'), 'param_name' => 'img_crop', 'std' => 'center-center', 'value' => array_flip(wpex_image_crop_locations()), 'dependency' => array('element' => 'img_size', 'value' => 'wpex_custom'), 'group' => __('Media', 'wpex')), array('type' => 'textfield', 'heading' => __('Image Crop Width', 'wpex'), 'param_name' => 'img_width', 'dependency' => array('element' => 'img_size', 'value' => 'wpex_custom'), 'description' => __('Enter a width in pixels.', 'wpex'), 'group' => __('Media', 'wpex')), array('type' => 'textfield', 'heading' => __('Image Crop Height', 'wpex'), 'param_name' => 'img_height', 'dependency' => array('element' => 'img_size', 'value' => 'wpex_custom'), 'description' => __('Enter a height in pixels. Leave empty to disable vertical cropping and keep image proportions.', 'wpex'), 'group' => __('Media', 'wpex')), array('type' => 'dropdown', 'heading' => __('Overlay Style', 'wpex'), 'param_name' => 'overlay_style', 'value' => array_flip(wpex_overlay_styles_array()), 'group' => __('Media', 'wpex'), 'dependency' => array('element' => 'entry_media', 'value' => 'true')), array('type' => 'textfield', 'heading' => __('Overlay Button Text', 'wpex'), 'param_name' => 'overlay_button_text', 'group' => __('Media', 'wpex'), 'dependency' => array('element' => 'overlay_style', 'value' => 'hover-button')), array('type' => 'textfield', 'heading' => __('Overlay Excerpt Length', 'wpex'), 'param_name' => 'overlay_excerpt_length', 'value' => '15', 'group' => __('Media', 'wpex'), 'dependency' => array('element' => 'overlay_style', 'value' => 'title-excerpt-hover')), array('type' => 'dropdown', 'heading' => __('CSS3 Image Link Hover', 'wpex'), 'param_name' => 'img_hover_style', 'value' => array_flip(wpex_image_hovers()), 'group' => __('Media', 'wpex'), 'dependency' => array('element' => 'entry_media', 'value' => 'true')), array('type' => 'dropdown', 'heading' => __('Image Filter', 'wpex'), 'param_name' => 'img_filter', 'value' => array_flip(wpex_image_filters()), 'group' => __('Media', 'wpex'), 'dependency' => array('element' => 'entry_media', 'value' => 'true')), array('type' => 'dropdown', 'heading' => __('Enable', 'wpex'), 'param_name' => 'title', 'value' => array(__('Yes', 'wpex') => 'true', __('No', 'wpex') => 'false'), 'group' => __('Title', 'wpex')), array('type' => 'dropdown', 'heading' => __('Tag', 'wpex'), 'param_name' => 'title_tag', 'group' => __('Title', 'wpex'), 'std' => 'h2', 'value' => array('h2' => 'h2', 'h3' => 'h3', 'h4' => 'h4', 'h5' => 'h5', 'h6' => 'h6', 'div' => 'div'), 'dependency' => array('element' => 'title', 'value' => 'true')), array('type' => 'colorpicker', 'heading' => __('Color', 'wpex'), 'param_name' => 'content_heading_color', 'group' => __('Title', 'wpex'), 'dependency' => array('element' => 'title', 'value' => 'true')), array('type' => 'textfield', 'heading' => __('Font Size', 'wpex'), 'param_name' => 'content_heading_size', 'group' => __('Title', 'wpex'), 'dependency' => array('element' => 'title', 'value' => 'true')), array('type' => 'textfield', 'heading' => __('Line Height', 'wpex'), 'param_name' => 'content_heading_line_height', 'group' => __('Title', 'wpex'), 'dependency' => array('element' => 'title', 'value' => 'true')), array('type' => 'textfield', 'heading' => __('Margin', 'wpex'), 'param_name' => 'content_heading_margin', 'group' => __('Title', 'wpex'), 'description' => __('Please use the following format: top right bottom left.', 'wpex'), 'dependency' => array('element' => 'title', 'value' => 'true')), array('type' => 'dropdown', 'heading' => __('Font Weight', 'wpex'), 'param_name' => 'content_heading_weight', 'group' => __('Title', 'wpex'), 'std' => '', 'value' => array_flip(wpex_font_weights()), 'dependency' => array('element' => 'title', 'value' => 'true')), array('type' => 'dropdown', 'heading' => __('Text Transform', 'wpex'), 'param_name' => 'content_heading_transform', 'group' => __('Title', 'wpex'), 'std' => '', 'value' => array_flip(wpex_text_transforms()), 'dependency' => array('element' => 'title', 'value' => 'true')), array('type' => 'dropdown', 'heading' => __('Enable', 'wpex'), 'param_name' => 'date', 'value' => array(__('Yes', 'wpex') => 'true', __('No', 'wpex') => 'false'), 'group' => __('Date', 'wpex')), array('type' => 'colorpicker', 'heading' => __('Color', 'wpex'), 'param_name' => 'date_color', 'group' => __('Date', 'wpex'), 'dependency' => array('element' => 'date', 'value' => 'true')), array('type' => 'textfield', 'heading' => __('Font Size', 'wpex'), 'param_name' => 'date_font_size', 'group' => __('Date', 'wpex'), 'dependency' => array('element' => 'date', 'value' => 'true')), array('type' => 'dropdown', 'heading' => __('Enable', 'wpex'), 'param_name' => 'excerpt', 'value' => array(__('Yes', 'wpex') => 'true', __('No', 'wpex') => 'false'), 'group' => __('Excerpt', 'wpex')), array('type' => 'textfield', 'heading' => __('Length', 'wpex'), 'param_name' => 'excerpt_length', 'group' => __('Excerpt', 'wpex'), 'value' => '20', 'description' => __('Enter how many words to display for the excerpt. To display the full post content enter "-1". To display the full post content up to the "more" tag enter "9999".', 'wpex'), 'dependency' => array('element' => 'excerpt', 'value' => 'true')), array('type' => 'textfield', 'heading' => __('Font Size', 'wpex'), 'param_name' => 'content_font_size', 'group' => __('Excerpt', 'wpex'), 'dependency' => array('element' => 'excerpt', 'value' => 'true')), array('type' => 'colorpicker', 'heading' => __('Color', 'wpex'), 'param_name' => 'content_color', 'group' => __('Excerpt', 'wpex'), 'dependency' => array('element' => 'excerpt', 'value' => 'true')), array('type' => 'dropdown', 'heading' => __('Enable', 'wpex'), 'param_name' => 'read_more', 'value' => array(__('Yes', 'wpex') => 'true', __('No', 'wpex') => 'false'), 'group' => __('Button', 'wpex')), array('type' => 'textfield', 'heading' => __('Text', 'wpex'), 'param_name' => 'read_more_text', 'group' => __('Button', 'wpex'), 'dependency' => array('element' => 'read_more', 'value' => 'true')), array('type' => 'dropdown', 'heading' => __('Style', 'wpex'), 'param_name' => 'readmore_style', 'std' => '', 'value' => array_flip(wpex_button_styles()), 'group' => __('Button', 'wpex'), 'dependency' => array('element' => 'read_more', 'value' => 'true')), array('type' => 'dropdown', 'heading' => __('Color', 'wpex'), 'param_name' => 'readmore_style_color', 'std' => '', 'value' => array_flip(wpex_button_colors()), 'group' => __('Button', 'wpex'), 'dependency' => array('element' => 'read_more', 'value' => 'true')), array('type' => 'dropdown', 'heading' => __('Arrow', 'wpex'), 'param_name' => 'readmore_rarr', 'value' => array(__('No', 'wpex') => 'false', __('Yes', 'wpex') => 'true'), 'group' => __('Button', 'wpex'), 'dependency' => array('element' => 'read_more', 'value' => 'true')), array('type' => 'textfield', 'heading' => __('Font Size', 'wpex'), 'param_name' => 'readmore_size', 'group' => __('Button', 'wpex'), 'dependency' => array('element' => 'read_more', 'value' => 'true')), array('type' => 'textfield', 'heading' => __('Border Radius', 'wpex'), 'param_name' => 'readmore_border_radius', 'group' => __('Button', 'wpex'), 'dependency' => array('element' => 'read_more', 'value' => 'true')), array('type' => 'textfield', 'heading' => __('Padding', 'wpex'), 'param_name' => 'readmore_padding', 'description' => __('Please use the following format: top right bottom left.', 'wpex'), 'group' => __('Button', 'wpex'), 'dependency' => array('element' => 'read_more', 'value' => 'true')), array('type' => 'textfield', 'heading' => __('Margin', 'wpex'), 'param_name' => 'readmore_margin', 'description' => __('Please use the following format: top right bottom left.', 'wpex'), 'group' => __('Button', 'wpex'), 'dependency' => array('element' => 'read_more', 'value' => 'true')), array('type' => 'colorpicker', 'heading' => __('Background', 'wpex'), 'param_name' => 'readmore_background', 'group' => __('Button', 'wpex'), 'dependency' => array('element' => 'read_more', 'value' => 'true')), array('type' => 'colorpicker', 'heading' => __('Color', 'wpex'), 'param_name' => 'readmore_color', 'group' => __('Button', 'wpex'), 'dependency' => array('element' => 'read_more', 'value' => 'true')), array('type' => 'colorpicker', 'heading' => __('Background: Hover', 'wpex'), 'param_name' => 'readmore_hover_background', 'group' => __('Button', 'wpex'), 'dependency' => array('element' => 'read_more', 'value' => 'true')), array('type' => 'colorpicker', 'heading' => __('Color: Hover', 'wpex'), 'param_name' => 'readmore_hover_color', 'group' => __('Button', 'wpex'), 'dependency' => array('element' => 'read_more', 'value' => 'true')), array('type' => 'colorpicker', 'heading' => __('Content Background', 'wpex'), 'param_name' => 'content_background', 'group' => __('Design', 'wpex')), array('type' => 'dropdown', 'heading' => __('Content Alignment', 'wpex'), 'param_name' => 'content_alignment', 'value' => array_flip(wpex_alignments()), 'group' => __('Design', 'wpex')), array('type' => 'textfield', 'heading' => __('Content Margin', 'wpex'), 'param_name' => 'content_margin', 'description' => __('Please use the following format: top right bottom left.', 'wpex'), 'group' => __('Design', 'wpex')), array('type' => 'textfield', 'heading' => __('Content Padding', 'wpex'), 'param_name' => 'content_padding', 'description' => __('Please use the following format: top right bottom left.', 'wpex'), 'group' => __('Design', 'wpex')), array('type' => 'textfield', 'heading' => __('Content Border', 'wpex'), 'param_name' => 'content_border', 'description' => __('Please use the shorthand format: width style color. Enter 0px or "none" to disable border.', 'wpex'), 'group' => __('Design', 'wpex')), array('type' => 'textfield', 'heading' => __('Content Opacity', 'wpex'), 'param_name' => 'content_opacity', 'description' => __('Enter a value between "0" and "1".', 'wpex'), 'group' => __('Design', 'wpex')))));
}
Example #4
0
/**
 * Adds the staff grid shortcode to the Visual Composer
 *
 * @since 1.4.1
 */
function vcex_staff_grid_vc_map()
{
    return array('name' => esc_html__('Staff Grid', 'total'), 'description' => esc_html__('Recent staff posts grid', 'total'), 'base' => 'vcex_staff_grid', 'category' => wpex_get_theme_branding(), 'icon' => 'vcex-staff-grid vcex-icon fa fa-users', 'params' => array(array('type' => 'textfield', 'heading' => esc_html__('Unique Id', 'total'), 'param_name' => 'unique_id'), array('type' => 'textfield', 'heading' => esc_html__('Custom Classes', 'total'), 'param_name' => 'classes'), array('type' => 'dropdown', 'heading' => esc_html__('Visibility', 'total'), 'param_name' => 'visibility', 'value' => array_flip(wpex_visibility())), array('type' => 'dropdown', 'heading' => esc_html__('Appear Animation', 'total'), 'param_name' => 'css_animation', 'value' => array_flip(wpex_css_animations()), 'dependency' => array('element' => 'filter', 'value' => 'false')), array('type' => 'dropdown', 'heading' => esc_html__('Grid Style', 'total'), 'param_name' => 'grid_style', 'value' => array(__('Fit Columns', 'total') => 'fit_columns', __('Masonry', 'total') => 'masonry', __('No Margins', 'total') => 'no_margins'), 'edit_field_class' => 'vc_col-sm-3 vc_column clear'), array('type' => 'dropdown', 'heading' => esc_html__('Columns', 'total'), 'param_name' => 'columns', 'value' => array_flip(wpex_grid_columns()), 'std' => '3', 'edit_field_class' => 'vc_col-sm-3 vc_column'), array('type' => 'dropdown', 'heading' => esc_html__('Gap', 'total'), 'param_name' => 'columns_gap', 'value' => array_flip(wpex_column_gaps()), 'edit_field_class' => 'vc_col-sm-3 vc_column'), array('type' => 'dropdown', 'heading' => esc_html__('Responsive', 'total'), 'param_name' => 'columns_responsive', 'value' => array(__('Yes', 'total') => 'true', __('No', 'total') => 'false'), 'edit_field_class' => 'vc_col-sm-3 vc_column'), array('type' => 'dropdown', 'heading' => esc_html__('1 Column Style', 'total'), 'param_name' => 'single_column_style', 'value' => array(__('Default', 'total') => '', __('Left Image & Right Content', 'total') => 'left_thumbs'), 'dependency' => array('element' => 'columns', 'value' => '1')), array('type' => 'dropdown', 'heading' => esc_html__('Equal Heights?', 'total'), 'param_name' => 'equal_heights_grid', 'value' => array(__('No', 'total') => 'false', __('Yes', 'total') => 'true'), 'dependency' => array('element' => 'grid_style', 'value' => 'fit_columns'), 'description' => esc_html__('Adds equal heights for the entry content so entries on the same row are the same height. You must have equal sized images for this to work efficiently. Disabled for masonry style layouts and filterable layouts.', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Link Target', 'total'), 'param_name' => 'link_target', 'value' => array(__('Default', 'total') => '', __('Blank', 'total') => 'blank')), array('type' => 'textfield', 'heading' => esc_html__('Posts Per Page', 'total'), 'param_name' => 'posts_per_page', 'value' => '9', 'description' => esc_html__('When pagination is disabled this is also used for the post count.', 'total'), 'group' => esc_html__('Query', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Pagination', 'total'), 'param_name' => 'pagination', 'value' => array(__('No', 'total') => 'false', __('Yes', 'total') => 'true'), 'description' => esc_html__('Important: Pagination will not work on your homepage due to how WordPress Queries function.', 'total'), 'group' => esc_html__('Query', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Offset', 'total'), 'param_name' => 'offset', 'group' => esc_html__('Query', 'total'), 'description' => esc_html__('Number of post to displace or pass over. Warning: Setting the offset parameter overrides/ignores the paged parameter and breaks pagination. The offset parameter is ignored when posts per page is set to -1.', 'total')), array('type' => 'autocomplete', 'heading' => esc_html__('Include Categories', 'total'), 'param_name' => 'include_categories', 'param_holder_class' => 'vc_not-for-custom', 'admin_label' => true, 'settings' => array('multiple' => true, 'min_length' => 1, 'groups' => false, 'unique_values' => true, 'display_inline' => true, 'delay' => 0, 'auto_focus' => true), 'group' => esc_html__('Query', 'total')), array('type' => 'autocomplete', 'heading' => esc_html__('Exclude Categories', 'total'), 'param_name' => 'exclude_categories', 'param_holder_class' => 'vc_not-for-custom', 'admin_label' => true, 'settings' => array('multiple' => true, 'min_length' => 1, 'groups' => false, 'unique_values' => true, 'display_inline' => true, 'delay' => 0, 'auto_focus' => true), 'group' => esc_html__('Query', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Order', 'total'), 'param_name' => 'order', 'group' => esc_html__('Query', 'total'), 'value' => array(__('Default', 'total') => '', __('DESC', 'total') => 'DESC', __('ASC', 'total') => 'ASC')), array('type' => 'dropdown', 'heading' => esc_html__('Order By', 'total'), 'param_name' => 'orderby', 'value' => vcex_orderby_array(), 'group' => esc_html__('Query', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Orderby: Meta Key', 'total'), 'param_name' => 'orderby_meta_key', 'group' => esc_html__('Query', 'total'), 'dependency' => array('element' => 'orderby', 'value' => array('meta_value_num', 'meta_value'))), array('type' => 'dropdown', 'heading' => esc_html__('Enable', 'total'), 'param_name' => 'filter', 'value' => array(__('No', 'total') => 'false', __('Yes', 'total') => 'true'), 'description' => esc_html__('Enables a category filter to show and hide posts based on their categories. This does not load posts via AJAX, but rather filters items currently on the page.', 'total'), 'group' => esc_html__('Filter', 'total')), array('type' => 'autocomplete', 'heading' => esc_html__('Default Active Category', 'total'), 'param_name' => 'filter_active_category', 'param_holder_class' => 'vc_not-for-custom', 'admin_label' => true, 'settings' => array('multiple' => false, 'min_length' => 1, 'groups' => false, 'unique_values' => true, 'display_inline' => true, 'delay' => 0, 'auto_focus' => true), 'group' => esc_html__('Filter', 'total'), 'dependency' => array('element' => 'filter', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Display All Link?', 'total'), 'param_name' => 'filter_all_link', 'value' => array(__('Yes', 'total') => 'true', __('No', 'total') => 'false'), 'group' => esc_html__('Filter', 'total'), 'dependency' => array('element' => 'filter', 'value' => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Custom Filter "All" Text', 'total'), 'param_name' => 'all_text', 'group' => esc_html__('Filter', 'total'), 'dependency' => array('element' => 'filter_all_link', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Button Style', 'total'), 'param_name' => 'filter_button_style', 'value' => array_flip(wpex_button_styles()), 'group' => esc_html__('Filter', 'total'), 'std' => 'minimal-border', 'dependency' => array('element' => 'filter', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Button Color', 'total'), 'param_name' => 'filter_button_color', 'std' => '', 'value' => array_flip(wpex_button_colors()), 'group' => esc_html__('Filter', 'total'), 'dependency' => array('element' => 'filter', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Layout Mode', 'total'), 'param_name' => 'masonry_layout_mode', 'value' => array(__('Masonry', 'total') => 'masonry', __('Fit Rows', 'total') => 'fitRows'), 'group' => esc_html__('Filter', 'total'), 'dependency' => array('element' => 'filter', 'value' => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Custom Filter Speed', 'total'), 'param_name' => 'filter_speed', 'description' => esc_html__('Default is 0.4 seconds. Enter 0.0 to disable.', 'total'), 'group' => esc_html__('Filter', 'total'), 'dependency' => array('element' => 'filter', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Center Filter Links', 'total'), 'param_name' => 'center_filter', 'value' => array(__('No', 'total') => 'no', __('Yes', 'total') => 'yes'), 'group' => esc_html__('Filter', 'total'), 'dependency' => array('element' => 'filter', 'value' => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Font Size', 'total'), 'param_name' => 'filter_font_size', 'group' => esc_html__('Filter', 'total'), 'dependency' => array('element' => 'filter', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Enable', 'total'), 'param_name' => 'entry_media', 'value' => array(__('Yes', 'total') => 'true', __('No', 'total') => 'false'), 'group' => esc_html__('Image', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Image Links To', 'total'), 'param_name' => 'thumb_link', 'value' => array(__('Post', 'total') => 'post', __('Lightbox', 'total') => 'lightbox', __('Nowhere', 'total') => 'nowhere'), 'group' => esc_html__('Image', 'total'), 'dependency' => array('element' => 'entry_media', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Image Size', 'total'), 'param_name' => 'img_size', 'std' => 'wpex_custom', 'value' => vcex_image_sizes(), 'group' => esc_html__('Image', 'total'), 'dependency' => array('element' => 'entry_media', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Image Crop Location', 'total'), 'param_name' => 'img_crop', 'std' => 'center-center', 'value' => array_flip(wpex_image_crop_locations()), 'dependency' => array('element' => 'img_size', 'value' => 'wpex_custom'), 'group' => esc_html__('Image', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Image Crop Width', 'total'), 'param_name' => 'img_width', 'dependency' => array('element' => 'img_size', 'value' => 'wpex_custom'), 'group' => esc_html__('Image', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Image Crop Height', 'total'), 'param_name' => 'img_height', 'dependency' => array('element' => 'img_size', 'value' => 'wpex_custom'), 'description' => esc_html__('Enter a height in pixels. Leave empty to disable vertical cropping and keep image proportions.', 'total'), 'group' => esc_html__('Image', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Overlay Style', 'total'), 'param_name' => 'overlay_style', 'value' => array_flip(wpex_overlay_styles_array()), 'group' => esc_html__('Image', 'total'), 'dependency' => array('element' => 'entry_media', 'value' => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Overlay Button Text', 'total'), 'param_name' => 'overlay_button_text', 'group' => esc_html__('Image', 'total'), 'dependency' => array('element' => 'overlay_style', 'value' => 'hover-button')), array('type' => 'textfield', 'heading' => esc_html__('Overlay Excerpt Length', 'total'), 'param_name' => 'overlay_excerpt_length', 'value' => '15', 'group' => esc_html__('Image', 'total'), 'dependency' => array('element' => 'overlay_style', 'value' => 'title-excerpt-hover')), array('type' => 'dropdown', 'heading' => esc_html__('CSS3 Image Link Hover', 'total'), 'param_name' => 'img_hover_style', 'value' => array_flip(wpex_image_hovers()), 'group' => esc_html__('Image', 'total'), 'dependency' => array('element' => 'entry_media', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Image Filter', 'total'), 'param_name' => 'img_filter', 'value' => array_flip(wpex_image_filters()), 'group' => esc_html__('Image', 'total'), 'dependency' => array('element' => 'entry_media', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Lightbox Skin', 'total'), 'param_name' => 'lightbox_skin', 'value' => vcex_ilightbox_skins(), 'group' => esc_html__('Image', 'total'), 'dependency' => array('element' => 'thumb_link', 'value' => 'lightbox')), array('type' => 'dropdown', 'heading' => esc_html__('Lightbox Gallery', 'total'), 'param_name' => 'thumb_lightbox_gallery', 'value' => array(__('No', 'total') => 'false', __('Yes', 'total') => 'true'), 'group' => esc_html__('Image', 'total'), 'dependency' => array('element' => 'thumb_link', 'value' => 'lightbox')), array('type' => 'dropdown', 'heading' => esc_html__('Lightbox Title', 'total'), 'param_name' => 'thumb_lightbox_title', 'value' => array(__('No', 'total') => 'false', __('Yes', 'total') => 'true'), 'group' => esc_html__('Image', 'total'), 'dependency' => array('element' => 'thumb_link', 'value' => 'lightbox')), array('type' => 'dropdown', 'heading' => esc_html__('Lightbox Excerpt', 'total'), 'param_name' => 'thumb_lightbox_caption', 'value' => array(__('No', 'total') => 'false', __('Yes', 'total') => 'true'), 'group' => esc_html__('Image', 'total'), 'dependency' => array('element' => 'thumb_link', 'value' => 'lightbox')), array('type' => 'dropdown', 'heading' => esc_html__('Enable', 'total'), 'param_name' => 'title', 'value' => array(__('Yes', 'total') => 'true', __('No', 'total') => 'false'), 'group' => esc_html__('Title', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('HTML Tag', 'total'), 'param_name' => 'title_tag', 'group' => esc_html__('Title', 'total'), 'std' => 'h2', 'value' => array('h2' => 'h2', 'h3' => 'h3', 'h4' => 'h4', 'h5' => 'h5', 'h6' => 'h6', 'div' => 'div'), 'dependency' => array('element' => 'title', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Title Links To', 'total'), 'param_name' => 'title_link', 'value' => array(__('Post', 'total') => 'post', __('Lightbox', 'total') => 'lightbox', __('Nowhere', 'total') => 'nowhere'), 'group' => esc_html__('Title', 'total'), 'dependency' => array('element' => 'title', 'value' => 'true')), array('type' => 'colorpicker', 'heading' => esc_html__('Color', 'total'), 'param_name' => 'content_heading_color', 'group' => esc_html__('Title', 'total'), 'dependency' => array('element' => 'title', 'value' => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Font Size', 'total'), 'param_name' => 'content_heading_size', 'group' => esc_html__('Title', 'total'), 'dependency' => array('element' => 'title', 'value' => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Line Height', 'total'), 'param_name' => 'content_heading_line_height', 'group' => esc_html__('Title', 'total'), 'dependency' => array('element' => 'title', 'value' => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Margin', 'total'), 'param_name' => 'content_heading_margin', 'description' => esc_html__('Please use the following format: top right bottom left.', 'total'), 'group' => esc_html__('Title', 'total'), 'dependency' => array('element' => 'title', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Font Weight', 'total'), 'param_name' => 'content_heading_weight', 'group' => esc_html__('Title', 'total'), 'std' => '', 'value' => array_flip(wpex_font_weights()), 'dependency' => array('element' => 'title', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Text Transform', 'total'), 'param_name' => 'content_heading_transform', 'group' => esc_html__('Title', 'total'), 'std' => '', 'value' => array_flip(wpex_text_transforms()), 'dependency' => array('element' => 'title', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Enable', 'total'), 'param_name' => 'position', 'value' => array(__('No', 'total') => 'false', __('Yes', 'total') => 'true'), 'group' => esc_html__('Position', 'total')), array('type' => 'colorpicker', 'heading' => esc_html__('Position Font Color', 'total'), 'param_name' => 'position_color', 'group' => esc_html__('Position', 'total'), 'dependency' => array('element' => 'position', 'value' => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Position Font Size', 'total'), 'param_name' => 'position_size', 'group' => esc_html__('Position', 'total'), 'dependency' => array('element' => 'position', 'value' => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Position Margin', 'total'), 'param_name' => 'position_margin', 'group' => esc_html__('Position', 'total'), 'dependency' => array('element' => 'position', 'value' => 'true'), 'description' => esc_html__('Please use the following format: top right bottom left.', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Enable', 'total'), 'param_name' => 'show_categories', 'value' => array(__('No', 'total') => 'false', __('Yes', 'total') => 'true'), 'group' => esc_html__('Categories', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Show Only The First Category?', 'total'), 'param_name' => 'show_first_category_only', 'value' => array(__('No', 'total') => 'false', __('Yes', 'total') => 'true'), 'dependency' => array('element' => 'show_categories', 'value' => 'true'), 'group' => esc_html__('Categories', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Font Size', 'total'), 'param_name' => 'categories_font_size', 'group' => esc_html__('Categories', 'total'), 'dependency' => array('element' => 'show_categories', 'value' => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Margin', 'total'), 'param_name' => 'categories_margin', 'group' => esc_html__('Categories', 'total'), 'dependency' => array('element' => 'show_categories', 'value' => 'true'), 'description' => esc_html__('Please use the following format: top right bottom left.', 'total')), array('type' => 'colorpicker', 'heading' => esc_html__('Color', 'total'), 'param_name' => 'categories_color', 'group' => esc_html__('Categories', 'total'), 'dependency' => array('element' => 'show_categories', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Enable', 'total'), 'param_name' => 'social_links', 'value' => array(__('No', 'total') => 'false', __('Yes', 'total') => 'true'), 'group' => esc_html__('Social', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Style', 'total'), 'param_name' => 'social_links_style', 'std' => 'minimal-round', 'value' => array_flip(wpex_social_button_styles()), 'group' => esc_html__('Social', 'total'), 'dependency' => array('element' => 'social_links', 'value' => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Font Size', 'total'), 'param_name' => 'social_links_size', 'group' => esc_html__('Social', 'total'), 'dependency' => array('element' => 'social_links', 'value' => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Margin', 'total'), 'param_name' => 'social_links_margin', 'group' => esc_html__('Social', 'total'), 'description' => esc_html__('Please use the following format: top right bottom left.', 'total'), 'dependency' => array('element' => 'social_links', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Enable', 'total'), 'param_name' => 'excerpt', 'value' => array(__('Yes', 'total') => 'true', __('No', 'total') => 'false'), 'group' => esc_html__('Excerpt', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Length', 'total'), 'param_name' => 'excerpt_length', 'group' => esc_html__('Excerpt', 'total'), 'description' => esc_html__('Enter how many words to display for the excerpt. To display the full post content enter "-1". To display the full post content up to the "more" tag enter "9999".', 'total'), 'dependency' => array('element' => 'excerpt', 'value' => 'true')), array('type' => 'colorpicker', 'heading' => esc_html__('Color', 'total'), 'param_name' => 'content_color', 'group' => esc_html__('Excerpt', 'total'), 'dependency' => array('element' => 'excerpt', 'value' => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Font Size', 'total'), 'param_name' => 'content_font_size', 'group' => esc_html__('Excerpt', 'total'), 'dependency' => array('element' => 'excerpt', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Enable', 'total'), 'param_name' => 'read_more', 'value' => array(__('Yes', 'total') => 'true', __('No', 'total') => 'false'), 'group' => esc_html__('Button', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Text', 'total'), 'param_name' => 'read_more_text', 'value' => esc_html__('read more', 'total'), 'group' => esc_html__('Button', 'total'), 'dependency' => array('element' => 'read_more', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Style', 'total'), 'param_name' => 'readmore_style', 'value' => array_flip(wpex_button_styles()), 'group' => esc_html__('Button', 'total'), 'dependency' => array('element' => 'read_more', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Color', 'total'), 'param_name' => 'readmore_style_color', 'std' => '', 'value' => array_flip(wpex_button_colors()), 'group' => esc_html__('Button', 'total'), 'dependency' => array('element' => 'read_more', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Arrow', 'total'), 'param_name' => 'readmore_rarr', 'value' => array(__('No', 'total') => 'false', __('Yes', 'total') => 'true'), 'group' => esc_html__('Button', 'total'), 'dependency' => array('element' => 'read_more', 'value' => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Font Size', 'total'), 'param_name' => 'readmore_size', 'group' => esc_html__('Button', 'total'), 'dependency' => array('element' => 'read_more', 'value' => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Border Radius', 'total'), 'param_name' => 'readmore_border_radius', 'group' => esc_html__('Button', 'total'), 'dependency' => array('element' => 'read_more', 'value' => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Padding', 'total'), 'param_name' => 'readmore_padding', 'description' => esc_html__('Please use the following format: top right bottom left.', 'total'), 'group' => esc_html__('Button', 'total'), 'dependency' => array('element' => 'read_more', 'value' => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Margin', 'total'), 'param_name' => 'readmore_margin', 'description' => esc_html__('Please use the following format: top right bottom left.', 'total'), 'group' => esc_html__('Button', 'total'), 'dependency' => array('element' => 'read_more', 'value' => 'true')), array('type' => 'colorpicker', 'heading' => esc_html__('Background', 'total'), 'param_name' => 'readmore_background', 'group' => esc_html__('Button', 'total'), 'dependency' => array('element' => 'read_more', 'value' => 'true')), array('type' => 'colorpicker', 'heading' => esc_html__('Color', 'total'), 'param_name' => 'readmore_color', 'group' => esc_html__('Button', 'total'), 'dependency' => array('element' => 'read_more', 'value' => 'true')), array('type' => 'colorpicker', 'heading' => esc_html__('Background: Hover', 'total'), 'param_name' => 'readmore_hover_background', 'group' => esc_html__('Button', 'total'), 'dependency' => array('element' => 'read_more', 'value' => 'true')), array('type' => 'colorpicker', 'heading' => esc_html__('Color: Hover', 'total'), 'param_name' => 'readmore_hover_color', 'group' => esc_html__('Button', 'total'), 'dependency' => array('element' => 'read_more', 'value' => 'true')), array('type' => 'css_editor', 'heading' => esc_html__('Content CSS', 'total'), 'param_name' => 'content_css', 'group' => esc_html__('Content CSS', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Content Alignment', 'total'), 'param_name' => 'content_alignment', 'value' => array(__('Default', 'total') => '', __('Left', 'total') => 'left', __('Right', 'total') => 'right', __('Center', 'total') => 'center'), 'group' => esc_html__('Content CSS', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Content Opacity', 'total'), 'param_name' => 'content_opacity', 'description' => esc_html__('Enter a value between "0" and "1".', 'total'), 'group' => esc_html__('Content CSS', 'total')), array('type' => 'css_editor', 'heading' => esc_html__('Entry CSS', 'total'), 'param_name' => 'entry_css', 'group' => esc_html__('Entry CSS', 'total')), array('type' => 'hidden', 'param_name' => 'content_background'), array('type' => 'hidden', 'param_name' => 'content_border'), array('type' => 'hidden', 'param_name' => 'content_margin'), array('type' => 'hidden', 'param_name' => 'content_padding')));
}
/**
 * Adds the testimonials grid shortcode to the Visual Composer
 *
 * @since 1.4.1
 */
function vcex_testimonials_grid_vc_map()
{
    vc_map(array('name' => __('Testimonials Grid', 'wpex'), 'description' => __('Recent testimonials post grid', 'wpex'), 'base' => 'vcex_testimonials_grid', 'category' => WPEX_THEME_BRANDING, 'icon' => 'vcex-testimonials-grid vcex-icon fa fa-comments-o', 'params' => array(array('type' => 'textfield', 'heading' => __('Unique Id', 'wpex'), 'param_name' => 'unique_id'), array('type' => 'textfield', 'heading' => __('Custom Classes', 'wpex'), 'param_name' => 'classes'), array('type' => 'dropdown', 'heading' => __('Visibility', 'wpex'), 'param_name' => 'visibility', 'value' => array_flip(wpex_visibility())), array('type' => 'dropdown', 'heading' => __('Appear Animation', 'wpex'), 'param_name' => 'css_animation', 'value' => array_flip(wpex_css_animations()), 'dependency' => array('element' => 'filter', 'value' => 'false')), array('type' => 'dropdown', 'heading' => __('Grid Style', 'wpex'), 'param_name' => 'grid_style', 'value' => array(__('Fit Columns', 'wpex') => 'fit_columns', __('Masonry', 'wpex') => 'masonry'), 'edit_field_class' => 'vc_col-sm-3 vc_column clear'), array('type' => 'dropdown', 'heading' => __('Columns', 'wpex'), 'param_name' => 'columns', 'value' => array_flip(wpex_grid_columns()), 'std' => '3', 'edit_field_class' => 'vc_col-sm-3 vc_column'), array('type' => 'dropdown', 'heading' => __('Gap', 'wpex'), 'param_name' => 'columns_gap', 'value' => array_flip(wpex_column_gaps()), 'edit_field_class' => 'vc_col-sm-3 vc_column'), array('type' => 'dropdown', 'heading' => __('Responsive', 'wpex'), 'param_name' => 'columns_responsive', 'value' => array(__('Yes', 'wpex') => 'yes', __('No', 'wpex') => 'false'), 'edit_field_class' => 'vc_col-sm-3 vc_column'), array('type' => 'textfield', 'heading' => __('Posts Per Page', 'wpex'), 'param_name' => 'posts_per_page', 'value' => '-1', 'group' => __('Query', 'wpex')), array('type' => 'dropdown', 'heading' => __('Pagination', 'wpex'), 'param_name' => 'pagination', 'value' => array(__('No', 'wpex') => 'false', __('Yes', 'wpex') => 'true'), 'description' => __('Important: Pagination will not work on your homepage due to how WordPress Queries function.', 'wpex'), 'group' => __('Query', 'wpex')), array('type' => 'autocomplete', 'heading' => __('Include Categories', 'wpex'), 'param_name' => 'include_categories', 'param_holder_class' => 'vc_not-for-custom', 'admin_label' => true, 'settings' => array('multiple' => true, 'min_length' => 1, 'groups' => false, 'unique_values' => true, 'display_inline' => true, 'delay' => 0, 'auto_focus' => true), 'group' => __('Query', 'wpex')), array('type' => 'autocomplete', 'heading' => __('Exclude Categories', 'wpex'), 'param_name' => 'exclude_categories', 'param_holder_class' => 'vc_not-for-custom', 'admin_label' => true, 'settings' => array('multiple' => true, 'min_length' => 1, 'groups' => false, 'unique_values' => true, 'display_inline' => true, 'delay' => 0, 'auto_focus' => true), 'group' => __('Query', 'wpex')), array('type' => 'dropdown', 'heading' => __('Order', 'wpex'), 'param_name' => 'order', 'group' => __('Query', 'wpex'), 'value' => array(__('Default', 'wpex') => '', __('DESC', 'wpex') => 'DESC', __('ASC', 'wpex') => 'ASC')), array('type' => 'dropdown', 'heading' => __('Order By', 'wpex'), 'param_name' => 'orderby', 'value' => vcex_orderby_array(), 'group' => __('Query', 'wpex')), array('type' => 'textfield', 'heading' => __('Orderby: Meta Key', 'wpex'), 'param_name' => 'orderby_meta_key', 'group' => __('Query', 'wpex'), 'dependency' => array('element' => 'orderby', 'value' => array('meta_value_num', 'meta_value'))), array('type' => 'dropdown', 'heading' => __('Enable', 'wpex'), 'param_name' => 'filter', 'value' => array(__('No', 'wpex') => 'false', __('Yes', 'wpex') => 'true'), 'group' => __('Filter', 'wpex')), array('type' => 'autocomplete', 'heading' => __('Default Active Category', 'wpex'), 'param_name' => 'filter_active_category', 'param_holder_class' => 'vc_not-for-custom', 'admin_label' => true, 'settings' => array('multiple' => false, 'min_length' => 1, 'groups' => false, 'unique_values' => true, 'display_inline' => true, 'delay' => 0, 'auto_focus' => true), 'group' => __('Filter', 'wpex'), 'dependency' => array('element' => 'filter', 'value' => 'true')), array('type' => 'dropdown', 'heading' => __('Display All Link?', 'wpex'), 'param_name' => 'filter_all_link', 'value' => array(__('Yes', 'wpex') => 'true', __('No', 'wpex') => 'false'), 'group' => __('Filter', 'wpex'), 'dependency' => array('element' => 'filter', 'value' => 'true')), array('type' => 'textfield', 'heading' => __('Custom Filter "All" Text', 'wpex'), 'param_name' => 'all_text', 'group' => __('Filter', 'wpex'), 'dependency' => array('element' => 'filter_all_link', 'value' => 'true')), array('type' => 'dropdown', 'heading' => __('Button Style', 'wpex'), 'param_name' => 'filter_button_style', 'value' => array_flip(wpex_button_styles()), 'group' => __('Filter', 'wpex'), 'std' => 'minimal-border', 'dependency' => array('element' => 'filter', 'value' => 'true')), array('type' => 'dropdown', 'heading' => __('Button Color', 'wpex'), 'param_name' => 'filter_button_color', 'std' => '', 'value' => array_flip(wpex_button_colors()), 'group' => __('Filter', 'wpex'), 'dependency' => array('element' => 'filter', 'value' => 'true')), array('type' => 'dropdown', 'heading' => __('Layout Mode', 'wpex'), 'param_name' => 'masonry_layout_mode', 'value' => array(__('Masonry', 'wpex') => 'masonry', __('Fit Rows', 'wpex') => 'fitRows'), 'group' => __('Filter', 'wpex'), 'dependency' => array('element' => 'filter', 'value' => 'true')), array('type' => 'textfield', 'heading' => __('Custom Filter Speed', 'wpex'), 'param_name' => 'filter_speed', 'description' => __('Default is 0.4 seconds. Enter 0.0 to disable.', 'wpex'), 'group' => __('Filter', 'wpex'), 'dependency' => array('element' => 'filter', 'value' => 'true')), array('type' => 'dropdown', 'heading' => __('Center Filter Links', 'wpex'), 'param_name' => 'center_filter', 'value' => array(__('No', 'wpex') => 'no', __('Yes', 'wpex') => 'yes'), 'group' => __('Filter', 'wpex'), 'dependency' => array('element' => 'filter', 'value' => 'true')), array('type' => 'textfield', 'heading' => __('Font Size', 'wpex'), 'param_name' => 'filter_font_size', 'group' => __('Filter', 'wpex'), 'dependency' => array('element' => 'filter', 'value' => 'true')), array('type' => 'dropdown', 'heading' => __('Enable', 'wpex'), 'param_name' => 'entry_media', 'value' => array(__('Yes', 'wpex') => 'true', __('No', 'wpex') => 'false'), 'group' => __('Image', 'wpex')), array('type' => 'textfield', 'heading' => __('Border Radius', 'wpex'), 'param_name' => 'img_border_radius', 'group' => __('Image', 'wpex'), 'dependency' => array('element' => 'entry_media', 'value' => 'true')), array('type' => 'dropdown', 'heading' => __('Image Size', 'wpex'), 'param_name' => 'img_size', 'std' => 'wpex_custom', 'value' => vcex_image_sizes(), 'group' => __('Image', 'wpex'), 'dependency' => array('element' => 'entry_media', 'value' => 'true')), array('type' => 'dropdown', 'heading' => __('Image Crop Location', 'wpex'), 'param_name' => 'img_crop', 'std' => 'center-center', 'value' => array_flip(wpex_image_crop_locations()), 'dependency' => array('element' => 'img_size', 'value' => 'wpex_custom'), 'group' => __('Image', 'wpex')), array('type' => 'textfield', 'heading' => __('Image Crop Width', 'wpex'), 'param_name' => 'img_width', 'dependency' => array('element' => 'img_size', 'value' => 'wpex_custom'), 'group' => __('Image', 'wpex')), array('type' => 'textfield', 'heading' => __('Image Crop Height', 'wpex'), 'param_name' => 'img_height', 'dependency' => array('element' => 'img_size', 'value' => 'wpex_custom'), 'description' => __('Enter a height in pixels. Leave empty to disable vertical cropping and keep image proportions.', 'wpex'), 'group' => __('Image', 'wpex')), array('type' => 'dropdown', 'heading' => __('Details', 'wpex'), 'param_name' => 'title', 'value' => array(__('No', 'wpex') => 'false', __('Yes', 'wpex') => 'true'), 'group' => __('Title', 'wpex')), array('type' => 'textfield', 'heading' => __('Font Size', 'wpex'), 'param_name' => 'title_font_size', 'group' => __('Title', 'wpex'), 'dependency' => array('element' => 'title', 'value' => 'true')), array('type' => 'dropdown', 'heading' => __('HTML Tag', 'wpex'), 'param_name' => 'title_tag', 'group' => __('Title', 'wpex'), 'std' => 'h2', 'value' => array('h2' => 'h2', 'h3' => 'h3', 'h4' => 'h4', 'h5' => 'h5', 'h6' => 'h6', 'div' => 'div'), 'dependency' => array('element' => 'title', 'value' => 'true')), array('type' => 'dropdown', 'heading' => __('Author', 'wpex'), 'param_name' => 'author', 'value' => array(__('Yes', 'wpex') => 'true', __('No', 'wpex') => 'false'), 'group' => __('Details', 'wpex')), array('type' => 'dropdown', 'heading' => __('Company', 'wpex'), 'param_name' => 'company', 'value' => array(__('Yes', 'wpex') => 'true', __('No', 'wpex') => 'false'), 'group' => __('Details', 'wpex')), array('type' => 'textfield', 'heading' => __('Font Size', 'wpex'), 'param_name' => 'content_font_size', 'group' => __('Content', 'wpex')), array('type' => 'dropdown', 'heading' => __('Excerpt', 'wpex'), 'param_name' => 'excerpt', 'value' => array(__('No', 'wpex') => 'false', __('Yes', 'wpex') => 'true'), 'group' => __('Content', 'wpex')), array('type' => 'textfield', 'heading' => __('Excerpt Length', 'wpex'), 'param_name' => 'excerpt_length', 'value' => '20', 'dependency' => array('element' => 'excerpt', 'value' => 'true'), 'group' => __('Content', 'wpex')), array('type' => 'dropdown', 'heading' => __('Read More', 'wpex'), 'param_name' => 'read_more', 'value' => array(__('Yes', 'wpex') => 'true', __('No', 'wpex') => 'false'), 'dependency' => array('element' => 'excerpt', 'value' => 'true'), 'group' => __('Content', 'wpex')), array('type' => 'textfield', 'heading' => __('Read More Text', 'wpex'), 'param_name' => 'read_more_text', 'value' => __('read more', 'wpex'), 'dependency' => array('element' => 'read_more', 'value' => 'true'), 'group' => __('Content', 'wpex')), array('type' => 'dropdown', 'heading' => __('Read More Arrow', 'wpex'), 'param_name' => 'read_more_rarr', 'value' => array(__('Yes', 'wpex') => 'true', __('No', 'wpex') => 'false'), 'dependency' => array('element' => 'read_more', 'value' => 'true'), 'group' => __('Content', 'wpex')))));
}
/**
 * Adds the shortcode to the Visual Composer
 *
 * @since 1.4.1
 */
function vcex_recent_news_vc_map()
{
    vc_map(array('name' => __('Recent News', 'wpex'), 'description' => __('Recent blog posts', 'wpex'), 'base' => 'vcex_recent_news', 'category' => WPEX_THEME_BRANDING, 'icon' => 'vcex-recent-news vcex-icon fa fa-newspaper-o', 'params' => array(array('type' => 'textfield', 'heading' => __('Unique Id', 'wpex'), 'param_name' => 'unique_id'), array('type' => 'textfield', 'heading' => __('Custom Classes', 'wpex'), 'param_name' => 'classes'), array('type' => 'textfield', 'heading' => __('Heading', 'wpex'), 'param_name' => 'header'), array('type' => 'dropdown', 'heading' => __('Columns', 'wpex'), 'param_name' => 'grid_columns', 'std' => '1', 'value' => array_flip(wpex_grid_columns())), array('type' => 'dropdown', 'heading' => __('Visibility', 'wpex'), 'param_name' => 'visibility', 'value' => array_flip(wpex_visibility())), array('type' => 'dropdown', 'heading' => __('Appear Animation', 'wpex'), 'param_name' => 'css_animation', 'value' => array_flip(wpex_css_animations())), array('type' => 'textfield', 'heading' => __('Post Count', 'wpex'), 'param_name' => 'count', 'value' => '3', 'description' => __('How many posts do you wish to show.', 'wpex'), 'group' => __('Query', 'wpex')), array('type' => 'dropdown', 'heading' => __('Pagination', 'wpex'), 'param_name' => 'pagination', 'value' => array(__('No', 'wpex') => 'false', __('Yes', 'wpex') => 'true'), 'description' => __('Important: Pagination will not work on your homepage due to how WordPress Queries function.', 'wpex'), 'group' => __('Query', 'wpex')), array('type' => 'textfield', 'heading' => __('Offset', 'wpex'), 'param_name' => 'offset', 'group' => __('Query', 'wpex'), 'description' => __('Number of post to displace or pass over. Warning: Setting the offset parameter overrides/ignores the paged parameter and breaks pagination. The offset parameter is ignored when posts per page is set to -1.', 'wpex')), array('type' => 'autocomplete', 'heading' => __('Limit By Author', 'wpex'), 'param_name' => 'author_in', 'settings' => array('multiple' => true, 'min_length' => 1, 'groups' => false, 'unique_values' => true, 'display_inline' => true, 'delay' => 0, 'auto_focus' => true), 'group' => __('Query', 'wpex')), array('type' => 'dropdown', 'heading' => __('Get Posts From', 'wpex'), 'param_name' => 'get_posts', 'group' => __('Query', 'wpex'), 'std' => 'standard_post_types', 'value' => array(__('Standard Posts', 'wpex') => 'standard_post_types', __('Custom Post types', 'wpex') => 'custom_post_types')), array('type' => 'posttypes', 'heading' => __('Post types', 'wpex'), 'param_name' => 'post_types', 'std' => 'post', 'group' => __('Query', 'wpex'), 'dependency' => array('element' => 'get_posts', 'value' => 'custom_post_types')), array('type' => 'autocomplete', 'heading' => __('Include Categories', 'wpex'), 'param_name' => 'include_categories', 'param_holder_class' => 'vc_not-for-custom', 'admin_label' => true, 'settings' => array('multiple' => true, 'min_length' => 1, 'groups' => false, 'unique_values' => true, 'display_inline' => true, 'delay' => 0, 'auto_focus' => true), 'dependency' => array('element' => 'get_posts', 'value' => 'standard_post_types'), 'group' => __('Query', 'wpex')), array('type' => 'autocomplete', 'heading' => __('Exclude Categories', 'wpex'), 'param_name' => 'exclude_categories', 'param_holder_class' => 'vc_not-for-custom', 'admin_label' => true, 'settings' => array('multiple' => true, 'min_length' => 1, 'groups' => false, 'unique_values' => true, 'display_inline' => true, 'delay' => 0, 'auto_focus' => true), 'dependency' => array('element' => 'get_posts', 'value' => 'standard_post_types'), 'group' => __('Query', 'wpex')), array('type' => 'dropdown', 'heading' => __('Order', 'wpex'), 'param_name' => 'order', 'group' => __('Query', 'wpex'), 'value' => array(__('Default', 'wpex') => '', __('DESC', 'wpex') => 'DESC', __('ASC', 'wpex') => 'ASC')), array('type' => 'dropdown', 'heading' => __('Order By', 'wpex'), 'param_name' => 'orderby', 'value' => vcex_orderby_array(), 'group' => __('Query', 'wpex')), array('type' => 'dropdown', 'heading' => __('Ignore Sticky Posts', 'wpex'), 'param_name' => 'ignore_sticky_posts', 'value' => array(__('No', 'wpex') => 'false', __('Yes', 'wpex') => 'true'), 'group' => __('Query', 'wpex')), array('type' => 'textfield', 'heading' => __('Orderby: Meta Key', 'wpex'), 'param_name' => 'orderby_meta_key', 'group' => __('Query', 'wpex'), 'dependency' => array('element' => 'orderby', 'value' => array('meta_value_num', 'meta_value'))), array('type' => 'dropdown', 'heading' => __('Display Featured Media?', 'wpex'), 'param_name' => 'featured_image', 'value' => array(__('No', 'wpex') => 'false', __('Yes', 'wpex') => 'true'), 'group' => __('Media', 'wpex')), array('type' => 'dropdown', 'heading' => __('Display Featured Videos?', 'wpex'), 'param_name' => 'featured_video', 'value' => array(__('Yes', 'wpex') => 'true', __('No', 'wpex') => 'false'), 'group' => __('Media', 'wpex'), 'dependency' => array('element' => 'featured_image', 'value' => array('true'))), array('type' => 'dropdown', 'heading' => __('Image Size', 'wpex'), 'param_name' => 'img_size', 'std' => 'wpex_custom', 'value' => vcex_image_sizes(), 'group' => __('Media', 'wpex'), 'dependency' => array('element' => 'featured_image', 'value' => array('true'))), array('type' => 'dropdown', 'heading' => __('Image Crop Location', 'wpex'), 'param_name' => 'img_crop', 'std' => 'center-center', 'value' => array_flip(wpex_image_crop_locations()), 'dependency' => array('element' => 'img_size', 'value' => 'wpex_custom'), 'group' => __('Media', 'wpex')), array('type' => 'textfield', 'heading' => __('Image Crop Width', 'wpex'), 'param_name' => 'img_width', 'dependency' => array('element' => 'img_size', 'value' => 'wpex_custom'), 'group' => __('Media', 'wpex')), array('type' => 'textfield', 'heading' => __('Image Crop Height', 'wpex'), 'param_name' => 'img_height', 'dependency' => array('element' => 'img_size', 'value' => 'wpex_custom'), 'description' => __('Enter a height in pixels. Leave empty to disable vertical cropping and keep image proportions.', 'wpex'), 'group' => __('Media', 'wpex')), array('type' => 'dropdown', 'heading' => __('Enable', 'wpex'), 'param_name' => 'title', 'value' => array(__('Yes', 'wpex') => 'true', __('No', 'wpex') => 'false'), 'group' => __('Title', 'wpex')), array('type' => 'dropdown', 'heading' => __('HTML Tag', 'wpex'), 'param_name' => 'title_tag', 'value' => array('h2' => 'h2', 'h3' => 'h3', 'h4' => 'h4', 'h5' => 'h5', 'h6' => 'h6', 'div' => 'div'), 'group' => __('Title', 'wpex'), 'dependency' => array('element' => 'title', 'value' => 'true')), array('type' => 'dropdown', 'heading' => __('Font Weight', 'wpex'), 'param_name' => 'title_weight', 'group' => __('Title', 'wpex'), 'std' => '', 'value' => array_flip(wpex_font_weights()), 'dependency' => array('element' => 'title', 'value' => 'true')), array('type' => 'dropdown', 'heading' => __('Text Transform', 'wpex'), 'param_name' => 'title_transform', 'group' => __('Title', 'wpex'), 'std' => '', 'value' => array_flip(wpex_text_transforms()), 'dependency' => array('element' => 'title', 'value' => 'true')), array('type' => 'textfield', 'heading' => __('Font Size', 'wpex'), 'param_name' => 'title_size', 'group' => __('Title', 'wpex'), 'dependency' => array('element' => 'title', 'value' => 'true')), array('type' => 'textfield', 'heading' => __('Line Height', 'wpex'), 'param_name' => 'title_line_height', 'group' => __('Title', 'wpex'), 'dependency' => array('element' => 'title', 'value' => 'true')), array('type' => 'textfield', 'heading' => __('Margin', 'wpex'), 'param_name' => 'title_margin', 'description' => __('Please use the following format: top right bottom left.', 'wpex'), 'group' => __('Title', 'wpex'), 'dependency' => array('element' => 'title', 'value' => 'true')), array('type' => 'dropdown', 'heading' => __('Enable', 'wpex'), 'param_name' => 'date', 'value' => array(__('True', 'wpex') => 'true', __('False', 'wpex') => 'false'), 'group' => __('Date', 'wpex')), array('type' => 'colorpicker', 'heading' => __('Month Background', 'wpex'), 'param_name' => 'month_background', 'group' => __('Date', 'wpex'), 'dependency' => array('element' => 'date', 'value' => 'true')), array('type' => 'colorpicker', 'heading' => __('Month Color', 'wpex'), 'param_name' => 'month_color', 'group' => __('Date', 'wpex'), 'dependency' => array('element' => 'date', 'value' => 'true')), array('type' => 'dropdown', 'heading' => __('Excerpt', 'wpex'), 'param_name' => 'excerpt', 'value' => array(__('Yes', 'wpex') => 'true', __('No', 'wpex') => 'false'), 'group' => __('Excerpt', 'wpex')), array('type' => 'textfield', 'heading' => __('Length', 'wpex'), 'param_name' => 'excerpt_length', 'value' => '30', 'description' => __('Enter how many words to display for the excerpt. To display the full post content enter "-1". To display the full post content up to the "more" tag enter "9999".', 'wpex'), 'group' => __('Excerpt', 'wpex'), 'dependency' => array('element' => 'excerpt', 'value' => 'true')), array('type' => 'textfield', 'heading' => __('Font Size', 'wpex'), 'param_name' => 'excerpt_font_size', 'group' => __('Excerpt', 'wpex'), 'dependency' => array('element' => 'excerpt', 'value' => 'true')), array('type' => 'colorpicker', 'heading' => __('Color', 'wpex'), 'param_name' => 'excerpt_color', 'group' => __('Excerpt', 'wpex'), 'dependency' => array('element' => 'excerpt', 'value' => 'true')), array('type' => 'dropdown', 'heading' => __('Enable', 'wpex'), 'param_name' => 'read_more', 'value' => array(__('Yes', 'wpex') => 'true', __('No', 'wpex') => 'false'), 'group' => __('Button', 'wpex')), array('type' => 'textfield', 'heading' => __('Text', 'wpex'), 'param_name' => 'read_more_text', 'group' => __('Button', 'wpex'), 'dependency' => array('element' => 'read_more', 'value' => 'true')), array('type' => 'dropdown', 'heading' => __('Style', 'wpex'), 'param_name' => 'readmore_style', 'value' => array_flip(wpex_button_styles()), 'group' => __('Button', 'wpex'), 'dependency' => array('element' => 'read_more', 'value' => 'true')), array('type' => 'dropdown', 'heading' => __('Color', 'wpex'), 'param_name' => 'readmore_style_color', 'std' => '', 'value' => array_flip(wpex_button_colors()), 'group' => __('Button', 'wpex'), 'dependency' => array('element' => 'read_more', 'value' => 'true')), array('type' => 'dropdown', 'heading' => __('Arrow', 'wpex'), 'param_name' => 'readmore_rarr', 'value' => array(__('No', 'wpex') => '', __('Yes', 'wpex') => 'true'), 'group' => __('Button', 'wpex'), 'dependency' => array('element' => 'read_more', 'value' => 'true')), array('type' => 'textfield', 'heading' => __('Font Size', 'wpex'), 'param_name' => 'readmore_size', 'group' => __('Button', 'wpex'), 'dependency' => array('element' => 'read_more', 'value' => 'true')), array('type' => 'textfield', 'heading' => __('Border Radius', 'wpex'), 'param_name' => 'readmore_border_radius', 'group' => __('Button', 'wpex'), 'dependency' => array('element' => 'read_more', 'value' => 'true')), array('type' => 'textfield', 'heading' => __('Padding', 'wpex'), 'param_name' => 'readmore_padding', 'description' => __('Please use the following format: top right bottom left.', 'wpex'), 'group' => __('Button', 'wpex'), 'dependency' => array('element' => 'read_more', 'value' => 'true')), array('type' => 'textfield', 'heading' => __('Margin', 'wpex'), 'param_name' => 'readmore_margin', 'description' => __('Please use the following format: top right bottom left.', 'wpex'), 'group' => __('Button', 'wpex'), 'dependency' => array('element' => 'read_more', 'value' => 'true')), array('type' => 'colorpicker', 'heading' => __('Background', 'wpex'), 'param_name' => 'readmore_background', 'group' => __('Button', 'wpex'), 'dependency' => array('element' => 'read_more', 'value' => 'true')), array('type' => 'colorpicker', 'heading' => __('Color', 'wpex'), 'param_name' => 'readmore_color', 'group' => __('Button', 'wpex'), 'dependency' => array('element' => 'read_more', 'value' => 'true')), array('type' => 'colorpicker', 'heading' => __('Background: Hover', 'wpex'), 'param_name' => 'readmore_hover_background', 'group' => __('Button', 'wpex'), 'dependency' => array('element' => 'read_more', 'value' => 'true')), array('type' => 'colorpicker', 'heading' => __('Color: Hover', 'wpex'), 'param_name' => 'readmore_hover_color', 'group' => __('Button', 'wpex'), 'dependency' => array('element' => 'read_more', 'value' => 'true')), array('type' => 'css_editor', 'heading' => __('CSS', 'wpex'), 'param_name' => 'css', 'group' => __('CSS', 'wpex')), array('type' => 'colorpicker', 'heading' => __('Article Bottom Border Color', 'wpex'), 'param_name' => 'entry_bottom_border_color', 'group' => __('CSS', 'wpex')))));
}
Example #7
0
<?php

/**
 * Portfolio Customizer Options
 *
 * @package Total WordPress Theme
 * @subpackage Customizer
 * @version 3.3.0
 */
// Exit if accessed directly
if (!defined('ABSPATH')) {
    exit;
}
// Single Blocks
$blocks = apply_filters('wpex_portfolio_single_blocks', array('title' => esc_html__('Post Title', 'total'), 'meta' => esc_html__('Post Meta', 'total'), 'media' => esc_html__('Media', 'total'), 'content' => esc_html__('Content', 'total'), 'share' => esc_html__('Social Share', 'total'), 'comments' => esc_html__('Comments', 'total'), 'related' => esc_html__('Related Posts', 'total')));
// General
$this->sections['wpex_portfolio_general'] = array('title' => esc_html__('General', 'total'), 'panel' => 'wpex_portfolio', 'settings' => array(array('id' => 'portfolio_page', 'default' => '', 'control' => array('label' => esc_html__('Main Page', 'total'), 'type' => 'wpex-dropdown-pages', 'description' => esc_html__('Used for breadcrumbs.', 'total'))), array('id' => 'portfolio_custom_sidebar', 'default' => true, 'control' => array('label' => esc_html__('Custom Post Type Sidebar', 'total'), 'type' => 'checkbox')), array('id' => 'portfolio_search', 'default' => true, 'control' => array('label' => esc_html__('Include In Search', 'total'), 'type' => 'checkbox')), array('id' => 'portfolio_entry_excerpt_length', 'default' => '20', 'control' => array('label' => esc_html__('Archives Entry: Excerpt Length', 'total'), 'type' => 'text'))));
// Archives
$this->sections['wpex_portfolio_archives'] = array('title' => esc_html__('Archives & Entries', 'total'), 'panel' => 'wpex_portfolio', 'desc' => esc_html__('The following options are for the post type category and tag archives.', 'total'), 'settings' => array(array('id' => 'portfolio_archive_layout', 'default' => 'full-width', 'control' => array('label' => esc_html__('Layout', 'total'), 'type' => 'select', 'choices' => array('right-sidebar' => esc_html__('Right Sidebar', 'total'), 'left-sidebar' => esc_html__('Left Sidebar', 'total'), 'full-width' => esc_html__('No Sidebar', 'total'), 'full-screen' => esc_html__('Full-Screen', 'total')))), array('id' => 'portfolio_archive_grid_style', 'default' => 'fit-rows', 'control' => array('label' => esc_html__('Grid Style', 'total'), 'type' => 'select', 'choices' => array('fit-rows' => esc_html__('Fit Rows', 'total'), 'masonry' => esc_html__('Masonry', 'total'), 'no-margins' => esc_html__('No Margins', 'total')))), array('id' => 'portfolio_entry_columns', 'default' => '4', 'control' => array('label' => esc_html__('Columns', 'total'), 'type' => 'select', 'choices' => wpex_grid_columns())), array('id' => 'portfolio_archive_grid_equal_heights', 'default' => '', 'control' => array('label' => esc_html__('Equal Heights', 'total'), 'type' => 'checkbox', 'active_callback' => 'wpex_portfolio_style_supports_equal_heights')), array('id' => 'portfolio_archive_posts_per_page', 'default' => '12', 'control' => array('label' => esc_html__('Posts Per Page', 'total'), 'type' => 'text')), array('id' => 'portfolio_entry_overlay_style', 'default' => 'none', 'control' => array('label' => esc_html__('Archives Entry: Overlay Style', 'total'), 'type' => 'select', 'choices' => wpex_overlay_styles_array())), array('id' => 'portfolio_entry_details', 'default' => true, 'control' => array('label' => esc_html__('Archives Entry: Details', 'total'), 'type' => 'checkbox')), array('id' => 'portfolio_entry_excerpt_length', 'default' => '20', 'control' => array('label' => esc_html__('Archives Entry: Excerpt Length', 'total'), 'type' => 'text'))));
// Single
$this->sections['wpex_portfolio_single'] = array('title' => esc_html__('Single', 'total'), 'panel' => 'wpex_portfolio', 'settings' => array(array('id' => 'portfolio_single_layout', 'default' => 'full-width', 'control' => array('label' => esc_html__('Layout', 'total'), 'type' => 'select', 'choices' => array('right-sidebar' => esc_html__('Right Sidebar', 'total'), 'left-sidebar' => esc_html__('Left Sidebar', 'total'), 'full-width' => esc_html__('No Sidebar', 'total')))), array('id' => 'portfolio_next_prev', 'default' => true, 'control' => array('label' => esc_html__('Next & Previous Links', 'total'), 'type' => 'checkbox')), array('id' => 'portfolio_related_title', 'transport' => 'postMessage', 'default' => esc_html__('Related Projects', 'total'), 'control' => array('label' => esc_html__('Related Posts Title', 'total'), 'type' => 'text', 'active_callback' => 'wpex_cac_has_portfolio_related')), array('id' => 'portfolio_related_count', 'default' => 4, 'control' => array('label' => esc_html__('Related Posts Count', 'total'), 'type' => 'number', 'active_callback' => 'wpex_cac_has_portfolio_related')), array('id' => 'portfolio_related_columns', 'default' => '4', 'control' => array('label' => esc_html__('Related Posts Columns', 'total'), 'type' => 'select', 'choices' => wpex_grid_columns(), 'active_callback' => 'wpex_cac_has_portfolio_related')), array('id' => 'portfolio_related_excerpts', 'default' => true, 'control' => array('label' => esc_html__('Related Posts Content', 'total'), 'type' => 'checkbox', 'active_callback' => 'wpex_cac_has_portfolio_related')), array('id' => 'portfolio_post_composer', 'default' => 'content,share,related', 'control' => array('label' => esc_html__('Post Layout Elements', 'total'), 'type' => 'wpex-sortable', 'choices' => $blocks, 'desc' => esc_html__('Click and drag and drop elements to re-order them.', 'total')))));
/**
 * Adds the shortcode to the Visual Composer
 *
 * @since Total 1.4.1
 */
function vcex_blog_grid_vc_map()
{
    vc_map(array('name' => __('Blog Grid', 'wpex'), 'description' => __('Recent blog posts grid', 'wpex'), 'base' => 'vcex_blog_grid', 'icon' => 'vcex-blog-grid vcex-icon fa fa-pencil', 'category' => WPEX_THEME_BRANDING, 'params' => array(array('type' => 'textfield', 'heading' => __('Unique Id', 'wpex'), 'param_name' => 'unique_id'), array('type' => 'textfield', 'heading' => __('Custom Classes', 'wpex'), 'param_name' => 'classes'), array('type' => 'dropdown', 'heading' => __('Visibility', 'wpex'), 'param_name' => 'visibility', 'value' => array_flip(wpex_visibility())), array('type' => 'dropdown', 'heading' => __('Appear Animation', 'wpex'), 'param_name' => 'css_animation', 'value' => array_flip(wpex_css_animations()), 'dependency' => array('element' => 'filter', 'value' => 'false')), array('type' => 'dropdown', 'heading' => __('Grid Style', 'wpex'), 'param_name' => 'grid_style', 'edit_field_class' => 'vc_col-sm-3 vc_column clear', 'value' => array(__('Default', 'wpex') => 'default', __('Fit Columns', 'wpex') => 'fit_columns', __('Masonry', 'wpex') => 'masonry')), array('type' => 'dropdown', 'heading' => __('Columns', 'wpex'), 'param_name' => 'columns', 'value' => array_flip(wpex_grid_columns()), 'std' => '4', 'edit_field_class' => 'vc_col-sm-3 vc_column'), array('type' => 'dropdown', 'heading' => __('Gap', 'wpex'), 'param_name' => 'columns_gap', 'value' => array_flip(wpex_column_gaps()), 'std' => '', 'edit_field_class' => 'vc_col-sm-3 vc_column'), array('type' => 'dropdown', 'heading' => __('Responsive', 'wpex'), 'param_name' => 'columns_responsive', 'value' => array(__('Yes', 'wpex') => '', __('No', 'wpex') => 'false'), 'std' => '', 'edit_field_class' => 'vc_col-sm-3 vc_column'), array('type' => 'dropdown', 'heading' => __('1 Column Style', 'wpex'), 'param_name' => 'single_column_style', 'value' => array(__('Default', 'wpex') => '', __('Left Image & Right Content', 'wpex') => 'left_thumbs'), 'dependency' => array('element' => 'columns', 'value' => '1')), array('type' => 'dropdown', 'heading' => __('Equal Heights?', 'wpex'), 'param_name' => 'equal_heights_grid', 'value' => array(__('No', 'wpex') => 'false', __('Yes', 'wpex') => 'true'), 'description' => __('Adds equal heights for the entry content so entries on the same row are the same height. You must have equal sized images for this to work efficiently. Disabled for masonry style layouts and filterable layouts.', 'wpex')), array('type' => 'dropdown', 'heading' => __('Link Target', 'wpex'), 'param_name' => 'url_target', 'value' => array(__('Self', 'wpex') => 'self', __('Blank', 'wpex') => '_blank'), 'description' => __('This will apply to the image, title and readmore button', 'wpex')), array('type' => 'textfield', 'heading' => __('Posts Per Page', 'wpex'), 'param_name' => 'posts_per_page', 'value' => '4', 'description' => __('You can enter "-1" to display all posts.', 'wpex'), 'group' => __('Query', 'wpex')), array('type' => 'dropdown', 'heading' => __('Pagination', 'wpex'), 'param_name' => 'pagination', 'value' => array(__('No', 'wpex') => '', __('Yes', 'wpex') => 'true'), 'description' => __('Important: Pagination will not work on your homepage due to how WordPress Queries function.', 'wpex'), 'group' => __('Query', 'wpex')), array('type' => 'textfield', 'heading' => __('Offset', 'wpex'), 'param_name' => 'offset', 'group' => __('Query', 'wpex'), 'description' => __('Number of post to displace or pass over. Warning: Setting the offset parameter overrides/ignores the paged parameter and breaks pagination. The offset parameter is ignored when posts per page is set to -1.', 'wpex')), array('type' => 'autocomplete', 'heading' => __('Include Categories', 'wpex'), 'param_name' => 'include_categories', 'param_holder_class' => 'vc_not-for-custom', 'admin_label' => true, 'settings' => array('multiple' => true, 'min_length' => 1, 'groups' => false, 'unique_values' => true, 'display_inline' => true, 'delay' => 0, 'auto_focus' => true), 'group' => __('Query', 'wpex')), array('type' => 'autocomplete', 'heading' => __('Exclude Categories', 'wpex'), 'param_name' => 'exclude_categories', 'param_holder_class' => 'vc_not-for-custom', 'admin_label' => true, 'settings' => array('multiple' => true, 'min_length' => 1, 'groups' => false, 'unique_values' => true, 'display_inline' => true, 'delay' => 0, 'auto_focus' => true), 'group' => __('Query', 'wpex')), array('type' => 'autocomplete', 'heading' => __('Limit By Author', 'wpex'), 'param_name' => 'author_in', 'settings' => array('multiple' => true, 'min_length' => 1, 'groups' => false, 'unique_values' => true, 'display_inline' => true, 'delay' => 0, 'auto_focus' => true), 'group' => __('Query', 'wpex')), array('type' => 'dropdown', 'heading' => __('Order', 'wpex'), 'param_name' => 'order', 'group' => __('Query', 'wpex'), 'value' => array(__('Default', 'wpex') => '', __('DESC', 'wpex') => 'DESC', __('ASC', 'wpex') => 'ASC')), array('type' => 'dropdown', 'heading' => __('Order By', 'wpex'), 'param_name' => 'orderby', 'value' => vcex_orderby_array(), 'group' => __('Query', 'wpex')), array('type' => 'dropdown', 'heading' => __('Ignore Sticky Posts', 'wpex'), 'param_name' => 'ignore_sticky_posts', 'value' => array(__('No', 'wpex') => '', __('Yes', 'wpex') => 'true'), 'group' => __('Query', 'wpex')), array('type' => 'textfield', 'heading' => __('Orderby: Meta Key', 'wpex'), 'param_name' => 'orderby_meta_key', 'group' => __('Query', 'wpex'), 'dependency' => array('element' => 'orderby', 'value' => array('meta_value_num', 'meta_value'))), array('type' => 'dropdown', 'heading' => __('Category Filter', 'wpex'), 'param_name' => 'filter', 'value' => array(__('No', 'wpex') => 'false', __('Yes', 'wpex') => 'true'), 'description' => __('Enables a category filter to show and hide posts based on their categories. This does not load posts via AJAX, but rather filters items currently on the page.', 'wpex'), 'group' => __('Filter', 'wpex')), array('type' => 'autocomplete', 'heading' => __('Default Active Category', 'wpex'), 'param_name' => 'filter_active_category', 'param_holder_class' => 'vc_not-for-custom', 'admin_label' => true, 'settings' => array('multiple' => false, 'min_length' => 1, 'groups' => false, 'unique_values' => true, 'display_inline' => true, 'delay' => 0, 'auto_focus' => true), 'group' => __('Filter', 'wpex'), 'dependency' => array('element' => 'filter', 'value' => 'true')), array('type' => 'dropdown', 'heading' => __('Display All Link?', 'wpex'), 'param_name' => 'filter_all_link', 'value' => array(__('Yes', 'wpex') => 'true', __('No', 'wpex') => 'false'), 'group' => __('Filter', 'wpex'), 'dependency' => array('element' => 'filter', 'value' => 'true')), array('type' => 'textfield', 'heading' => __('Custom Filter "All" Text', 'wpex'), 'param_name' => 'all_text', 'group' => __('Filter', 'wpex'), 'dependency' => array('element' => 'filter_all_link', 'value' => 'true')), array('type' => 'dropdown', 'heading' => __('Button Style', 'wpex'), 'param_name' => 'filter_button_style', 'value' => array_flip(wpex_button_styles()), 'group' => __('Filter', 'wpex'), 'std' => 'minimal-border', 'dependency' => array('element' => 'filter', 'value' => 'true')), array('type' => 'dropdown', 'heading' => __('Button Color', 'wpex'), 'param_name' => 'filter_button_color', 'std' => '', 'value' => array_flip(wpex_button_colors()), 'group' => __('Filter', 'wpex'), 'dependency' => array('element' => 'filter', 'value' => 'true')), array('type' => 'dropdown', 'heading' => __('Filter Layout', 'wpex'), 'param_name' => 'masonry_layout_mode', 'value' => array(__('Masonry', 'wpex') => '', __('Fit Rows', 'wpex') => 'fitRows'), 'dependency' => array('element' => 'filter', 'value' => 'true'), 'group' => __('Filter', 'wpex')), array('type' => 'textfield', 'heading' => __('Custom Filter Speed', 'wpex'), 'param_name' => 'filter_speed', 'description' => __('Default is "0.4" seconds. Enter "0.0" to disable.', 'wpex'), 'dependency' => array('element' => 'filter', 'value' => 'true'), 'group' => __('Filter', 'wpex')), array('type' => 'dropdown', 'heading' => __('Center Filter Links', 'wpex'), 'param_name' => 'center_filter', 'value' => array(__('No', 'wpex') => '', __('Yes', 'wpex') => 'yes'), 'dependency' => array('element' => 'filter', 'value' => 'true'), 'group' => __('Filter', 'wpex')), array('type' => 'textfield', 'heading' => __('Font Size', 'wpex'), 'param_name' => 'filter_font_size', 'group' => __('Filter', 'wpex'), 'dependency' => array('element' => 'filter', 'value' => 'true')), array('type' => 'dropdown', 'heading' => __('Enable', 'wpex'), 'param_name' => 'entry_media', 'value' => array(__('Yes', 'wpex') => 'true', __('No', 'wpex') => 'false'), 'group' => __('Media', 'wpex')), array('type' => 'dropdown', 'heading' => __('Display Featured Videos?', 'wpex'), 'param_name' => 'featured_video', 'value' => array(__('Yes', 'wpex') => 'true', __('No', 'wpex') => 'false'), 'group' => __('Media', 'wpex'), 'dependency' => array('element' => 'entry_media', 'value' => 'true')), array('type' => 'dropdown', 'heading' => __('Image Links To', 'wpex'), 'param_name' => 'thumb_link', 'value' => array(__('Default', 'wpex') => '', __('Post', 'wpex') => 'post', __('Lightbox', 'wpex') => 'lightbox', __('Nowhere', 'wpex') => 'nowhere'), 'group' => __('Media', 'wpex'), 'dependency' => array('element' => 'entry_media', 'value' => 'true')), array('type' => 'dropdown', 'heading' => __('Image Size', 'wpex'), 'param_name' => 'img_size', 'std' => 'wpex_custom', 'value' => vcex_image_sizes(), 'group' => __('Media', 'wpex'), 'dependency' => array('element' => 'entry_media', 'value' => 'true')), array('type' => 'dropdown', 'heading' => __('Image Crop Location', 'wpex'), 'param_name' => 'img_crop', 'std' => 'center-center', 'value' => array_flip(wpex_image_crop_locations()), 'dependency' => array('element' => 'img_size', 'value' => 'wpex_custom'), 'group' => __('Media', 'wpex')), array('type' => 'textfield', 'heading' => __('Image Crop Width', 'wpex'), 'param_name' => 'img_width', 'dependency' => array('element' => 'img_size', 'value' => 'wpex_custom'), 'description' => __('Enter a width in pixels.', 'wpex'), 'group' => __('Media', 'wpex')), array('type' => 'textfield', 'heading' => __('Image Crop Height', 'wpex'), 'param_name' => 'img_height', 'dependency' => array('element' => 'img_size', 'value' => 'wpex_custom'), 'description' => __('Enter a height in pixels. Leave empty to disable vertical cropping and keep image proportions.', 'wpex'), 'group' => __('Media', 'wpex')), array('type' => 'dropdown', 'heading' => __('Overlay Style', 'wpex'), 'param_name' => 'overlay_style', 'value' => array_flip(wpex_overlay_styles_array()), 'group' => __('Media', 'wpex'), 'dependency' => array('element' => 'entry_media', 'value' => 'true')), array('type' => 'textfield', 'heading' => __('Overlay Button Text', 'wpex'), 'param_name' => 'overlay_button_text', 'group' => __('Media', 'wpex'), 'dependency' => array('element' => 'overlay_style', 'value' => 'hover-button')), array('type' => 'textfield', 'heading' => __('Overlay Excerpt Length', 'wpex'), 'param_name' => 'overlay_excerpt_length', 'value' => '15', 'group' => __('Media', 'wpex'), 'dependency' => array('element' => 'overlay_style', 'value' => 'title-excerpt-hover')), array('type' => 'dropdown', 'heading' => __('CSS3 Image Link Hover', 'wpex'), 'param_name' => 'img_hover_style', 'value' => array_flip(wpex_image_hovers()), 'group' => __('Media', 'wpex'), 'dependency' => array('element' => 'entry_media', 'value' => 'true')), array('type' => 'dropdown', 'heading' => __('Image Filter', 'wpex'), 'param_name' => 'img_filter', 'value' => array_flip(wpex_image_filters()), 'group' => __('Media', 'wpex'), 'dependency' => array('element' => 'entry_media', 'value' => 'true')), array('type' => 'dropdown', 'heading' => __('Title', 'wpex'), 'param_name' => 'title', 'value' => array(__('Yes', 'wpex') => 'true', __('No', 'wpex') => 'false'), 'group' => __('Title', 'wpex')), array('type' => 'colorpicker', 'heading' => __('Color', 'wpex'), 'param_name' => 'content_heading_color', 'group' => __('Title', 'wpex'), 'dependency' => array('element' => 'title', 'value' => 'true')), array('type' => 'textfield', 'heading' => __('Font Size', 'wpex'), 'param_name' => 'content_heading_size', 'group' => __('Title', 'wpex'), 'dependency' => array('element' => 'title', 'value' => 'true')), array('type' => 'textfield', 'heading' => __('Line Height', 'wpex'), 'param_name' => 'content_heading_line_height', 'group' => __('Title', 'wpex'), 'dependency' => array('element' => 'title', 'value' => 'true')), array('type' => 'textfield', 'heading' => __('Margin', 'wpex'), 'param_name' => 'content_heading_margin', 'group' => __('Title', 'wpex'), 'description' => __('Please use the following format: top right bottom left.', 'wpex'), 'dependency' => array('element' => 'title', 'value' => 'true')), array('type' => 'dropdown', 'heading' => __('Font Weight', 'wpex'), 'param_name' => 'content_heading_weight', 'group' => __('Title', 'wpex'), 'std' => '', 'value' => array_flip(wpex_font_weights()), 'dependency' => array('element' => 'title', 'value' => 'true')), array('type' => 'dropdown', 'heading' => __('Text Transform', 'wpex'), 'param_name' => 'content_heading_transform', 'group' => __('Title', 'wpex'), 'std' => '', 'value' => array_flip(wpex_text_transforms()), 'dependency' => array('element' => 'title', 'value' => 'true')), array('type' => 'dropdown', 'heading' => __('Enable', 'wpex'), 'param_name' => 'date', 'value' => array(__('Yes', 'wpex') => 'true', __('No', 'wpex') => 'false'), 'group' => __('Date', 'wpex')), array('type' => 'colorpicker', 'heading' => __('Color', 'wpex'), 'param_name' => 'date_color', 'group' => __('Date', 'wpex'), 'dependency' => array('element' => 'date', 'value' => 'true')), array('type' => 'textfield', 'heading' => __('Font Size', 'wpex'), 'param_name' => 'date_font_size', 'group' => __('Date', 'wpex'), 'dependency' => array('element' => 'date', 'value' => 'true')), array('type' => 'dropdown', 'heading' => __('Enable', 'wpex'), 'param_name' => 'excerpt', 'value' => array(__('Yes', 'wpex') => 'true', __('No', 'wpex') => 'false'), 'group' => __('Excerpt', 'wpex')), array('type' => 'textfield', 'heading' => __('Length', 'wpex'), 'param_name' => 'excerpt_length', 'std' => '15', 'group' => __('Excerpt', 'wpex'), 'description' => __('Enter how many words to display for the excerpt. To display the full post content enter "-1". To display the full post content up to the "more" tag enter "9999".', 'wpex'), 'dependency' => array('element' => 'excerpt', 'value' => 'true')), array('type' => 'textfield', 'heading' => __('Font Size', 'wpex'), 'param_name' => 'content_font_size', 'group' => __('Excerpt', 'wpex'), 'dependency' => array('element' => 'excerpt', 'value' => 'true')), array('type' => 'colorpicker', 'heading' => __('Color', 'wpex'), 'param_name' => 'content_color', 'group' => __('Excerpt', 'wpex'), 'dependency' => array('element' => 'excerpt', 'value' => 'true')), array('type' => 'dropdown', 'heading' => __('Enable', 'wpex'), 'param_name' => 'read_more', 'value' => array(__('Yes', 'wpex') => 'true', __('No', 'wpex') => 'false'), 'group' => __('Button', 'wpex')), array('type' => 'textfield', 'heading' => __('Text', 'wpex'), 'param_name' => 'read_more_text', 'group' => __('Button', 'wpex'), 'dependency' => array('element' => 'read_more', 'value' => 'true')), array('type' => 'dropdown', 'heading' => __('Style', 'wpex'), 'param_name' => 'readmore_style', 'std' => '', 'value' => array_flip(wpex_button_styles()), 'group' => __('Button', 'wpex'), 'dependency' => array('element' => 'read_more', 'value' => 'true')), array('type' => 'dropdown', 'heading' => __('Color', 'wpex'), 'param_name' => 'readmore_style_color', 'std' => '', 'value' => array_flip(wpex_button_colors()), 'group' => __('Button', 'wpex'), 'dependency' => array('element' => 'read_more', 'value' => 'true')), array('type' => 'dropdown', 'heading' => __('Arrow', 'wpex'), 'param_name' => 'readmore_rarr', 'value' => array(__('No', 'wpex') => 'false', __('Yes', 'wpex') => 'true'), 'group' => __('Button', 'wpex'), 'dependency' => array('element' => 'read_more', 'value' => 'true')), array('type' => 'textfield', 'heading' => __('Font Size', 'wpex'), 'param_name' => 'readmore_size', 'group' => __('Button', 'wpex'), 'dependency' => array('element' => 'read_more', 'value' => 'true')), array('type' => 'textfield', 'heading' => __('Border Radius', 'wpex'), 'param_name' => 'readmore_border_radius', 'description' => __('Please enter a px value.', 'wpex'), 'group' => __('Button', 'wpex'), 'dependency' => array('element' => 'read_more', 'value' => 'true')), array('type' => 'textfield', 'heading' => __('Padding', 'wpex'), 'param_name' => 'readmore_padding', 'description' => __('Please use the following format: top right bottom left.', 'wpex'), 'group' => __('Button', 'wpex'), 'dependency' => array('element' => 'read_more', 'value' => 'true')), array('type' => 'textfield', 'heading' => __('Margin', 'wpex'), 'param_name' => 'readmore_margin', 'description' => __('Please use the following format: top right bottom left.', 'wpex'), 'group' => __('Button', 'wpex'), 'dependency' => array('element' => 'read_more', 'value' => 'true')), array('type' => 'colorpicker', 'heading' => __('Background', 'wpex'), 'param_name' => 'readmore_background', 'group' => __('Button', 'wpex'), 'dependency' => array('element' => 'read_more', 'value' => 'true')), array('type' => 'colorpicker', 'heading' => __('Color', 'wpex'), 'param_name' => 'readmore_color', 'group' => __('Button', 'wpex'), 'dependency' => array('element' => 'read_more', 'value' => 'true')), array('type' => 'colorpicker', 'heading' => __('Background: Hover', 'wpex'), 'param_name' => 'readmore_hover_background', 'group' => __('Button', 'wpex'), 'dependency' => array('element' => 'read_more', 'value' => 'true')), array('type' => 'colorpicker', 'heading' => __('Color: Hover', 'wpex'), 'param_name' => 'readmore_hover_color', 'group' => __('Button', 'wpex'), 'dependency' => array('element' => 'read_more', 'value' => 'true')), array('type' => 'colorpicker', 'heading' => __('Content Background', 'wpex'), 'param_name' => 'content_background', 'group' => __('Design', 'wpex')), array('type' => 'dropdown', 'heading' => __('Content Alignment', 'wpex'), 'param_name' => 'content_alignment', 'value' => array_flip(wpex_alignments()), 'group' => __('Design', 'wpex')), array('type' => 'textfield', 'heading' => __('Content Margin', 'wpex'), 'param_name' => 'content_margin', 'description' => __('Please use the following format: top right bottom left.', 'wpex'), 'group' => __('Design', 'wpex')), array('type' => 'textfield', 'heading' => __('Content Padding', 'wpex'), 'param_name' => 'content_padding', 'description' => __('Please use the following format: top right bottom left.', 'wpex'), 'group' => __('Design', 'wpex')), array('type' => 'textfield', 'heading' => __('Content Border', 'wpex'), 'param_name' => 'content_border', 'description' => __('Please use the shorthand format: width style color. Enter 0px or "none" to disable border.', 'wpex'), 'group' => __('Design', 'wpex')), array('type' => 'textfield', 'heading' => __('Content Opacity', 'wpex'), 'param_name' => 'content_opacity', 'description' => __('Enter a value between "0" and "1".', 'wpex'), 'group' => __('Design', 'wpex')))));
}
/**
 * Adds the shortcode to the Visual Composer
 *
 * @since 1.4.1
 */
function vcex_image_grid_vc_map()
{
    vc_map(array('name' => __('Image Grid', 'wpex'), 'description' => __('Responsive image gallery', 'wpex'), 'base' => 'vcex_image_grid', 'icon' => 'vcex-image-grid vcex-icon fa fa-picture-o', 'category' => WPEX_THEME_BRANDING, 'params' => array(array('type' => 'attach_images', 'admin_label' => true, 'heading' => __('Attach Images', 'wpex'), 'param_name' => 'image_ids', 'group' => __('Images', 'wpex'), 'description' => __('Click the plus icon to add images to your gallery. Once images are added they can be drag and dropped for sorting.', 'wpex')), array('type' => 'dropdown', 'heading' => __('Post Gallery', 'wpex'), 'param_name' => 'post_gallery', 'group' => __('Images', 'wpex'), 'description' => __('Enable to display images from the current post "Image Gallery".', 'wpex'), 'value' => array(__('No', 'wpex') => 'false', __('Yes', 'wpex') => 'true')), array('type' => 'textfield', 'heading' => __('Unique Id', 'wpex'), 'param_name' => 'unique_id'), array('type' => 'textfield', 'heading' => __('Custom Classes', 'wpex'), 'param_name' => 'classes'), array('type' => 'dropdown', 'heading' => __('Visibility', 'wpex'), 'param_name' => 'visibility', 'value' => array_flip(wpex_visibility())), array('type' => 'dropdown', 'heading' => __('Appear Animation', 'wpex'), 'param_name' => 'css_animation', 'value' => array_flip(wpex_css_animations())), array('type' => 'dropdown', 'heading' => __('Hover Animation', 'wpex'), 'param_name' => 'hover_animation', 'value' => array_flip(wpex_hover_css_animations())), 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'), 'edit_field_class' => 'vc_col-sm-3 vc_column clear'), array('type' => 'dropdown', 'heading' => __('Columns', 'wpex'), 'param_name' => 'columns', 'std' => '4', 'value' => array_flip(wpex_grid_columns()), 'edit_field_class' => 'vc_col-sm-3 vc_column'), array('type' => 'dropdown', 'heading' => __('Gap', 'wpex'), 'param_name' => 'columns_gap', 'value' => array_flip(wpex_column_gaps()), 'std' => '', 'edit_field_class' => 'vc_col-sm-3 vc_column'), array('type' => 'dropdown', 'heading' => __('Responsive', 'wpex'), 'param_name' => 'responsive_columns', 'std' => '', 'value' => array(__('True', 'wpex') => '', __('False', 'wpex') => 'false'), 'edit_field_class' => 'vc_col-sm-3 vc_column'), array('type' => 'dropdown', 'admin_label' => true, 'heading' => __('Randomize Images', 'wpex'), 'param_name' => 'randomize_images', 'value' => array(__('False', 'wpex') => '', __('True', 'wpex') => 'true')), array('type' => 'textfield', 'admin_label' => true, 'heading' => __('Images Per Page', 'wpex'), 'param_name' => 'posts_per_page', 'value' => '-1', 'description' => __('This will enable pagination for your gallery. Enter -1 or leave blank to display all images without pagination.', 'wpex')), array('type' => 'dropdown', 'heading' => __('Image Link', 'wpex'), 'param_name' => 'thumbnail_link', 'std' => 'lightbox', 'value' => array(__('None', 'wpex') => 'none', __('Lightbox', 'wpex') => 'lightbox', __('Attachment Page', 'wpex') => 'attachment_page', __('Custom Links', 'wpex') => 'custom_link'), 'group' => __('Links', 'wpex')), array('type' => 'dropdown', 'heading' => __('Lightbox Skin', 'wpex'), 'param_name' => 'lightbox_skin', 'std' => '', 'value' => vcex_ilightbox_skins(), 'group' => __('Links', 'wpex'), 'dependency' => array('element' => 'thumbnail_link', 'value' => 'lightbox')), array('type' => 'dropdown', 'heading' => __('Lightbox Gallery', 'wpex'), 'param_name' => 'lightbox_gallery', 'value' => array(__('Yes', 'wpex') => 'true', __('No', 'wpex') => 'false'), 'group' => __('Links', 'wpex'), 'dependency' => array('element' => 'thumbnail_link', 'value' => 'lightbox')), array('type' => 'dropdown', 'heading' => __('Lightbox Thumbnails Placement', 'wpex'), 'param_name' => 'lightbox_path', 'value' => array(__('Horizontal', 'wpex') => '', __('Vertical', 'wpex') => 'vertical'), 'group' => __('Links', 'wpex'), 'dependency' => array('element' => 'lightbox_gallery', 'value' => 'true')), 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' => __('Link Target', 'wpex'), 'param_name' => 'custom_links_target', 'group' => __('Links', 'wpex'), 'value' => array(__('Same window', 'wpex') => '_self', __('New window', 'wpex') => '_blank'), 'dependency' => array('element' => 'thumbnail_link', 'value' => array('custom_link'))), array('type' => 'dropdown', 'heading' => __('Image Size', 'wpex'), 'param_name' => 'img_size', 'std' => 'wpex_custom', 'value' => vcex_image_sizes(), 'group' => __('Image', 'wpex')), array('type' => 'dropdown', 'heading' => __('Image Crop Location', 'wpex'), 'param_name' => 'img_crop', 'std' => 'center-center', 'value' => array_flip(wpex_image_crop_locations()), 'dependency' => array('element' => 'img_size', 'value' => 'wpex_custom'), 'group' => __('Image', 'wpex')), array('type' => 'textfield', 'heading' => __('Image Crop Width', 'wpex'), 'param_name' => 'img_width', 'group' => __('Image', 'wpex'), 'dependency' => array('element' => 'img_size', 'value' => 'wpex_custom')), array('type' => 'textfield', 'heading' => __('Image Crop Height', 'wpex'), 'param_name' => 'img_height', 'description' => __('Enter a height in pixels. Leave empty to disable vertical cropping and keep image proportions.', 'wpex'), 'group' => __('Image', 'wpex'), 'dependency' => array('element' => 'img_size', 'value' => 'wpex_custom')), array('type' => 'dropdown', 'heading' => __('Rounded Image?', 'wpex'), 'param_name' => 'rounded_image', 'value' => array(__('No', 'wpex') => '', __('Yes', 'wpex') => 'yes'), 'group' => __('Image', 'wpex')), array('type' => 'dropdown', 'heading' => __('Overlay Style', 'wpex'), 'param_name' => 'overlay_style', 'value' => array_flip(wpex_overlay_styles_array()), 'group' => __('Image', 'wpex')), array('type' => 'textfield', 'heading' => __('Overlay Button Text', 'wpex'), 'param_name' => 'overlay_button_text', 'group' => __('Image', 'wpex'), 'dependency' => array('element' => 'overlay_style', 'value' => 'hover-button')), array('type' => 'dropdown', 'heading' => __('CSS3 Image Hover', 'wpex'), 'param_name' => 'img_hover_style', 'value' => array_flip(wpex_image_hovers()), 'group' => __('Image', 'wpex')), array('type' => 'dropdown', 'heading' => __('Image Filter', 'wpex'), 'param_name' => 'img_filter', 'value' => array_flip(wpex_image_filters()), 'group' => __('Image', 'wpex')), array('type' => 'dropdown', 'heading' => __('Enable', 'wpex'), 'param_name' => 'title', 'std' => '', 'value' => array(__('No', 'wpex') => 'no', __('Yes', 'wpex') => 'yes'), 'group' => __('Title', 'wpex')), array('type' => 'dropdown', 'heading' => __('Tag', 'wpex'), 'param_name' => 'title_tag', 'value' => array(__('Default', 'wpex') => '', 'h2' => 'h2', 'h3' => 'h3', 'h4' => 'h4', 'div' => 'div'), 'group' => __('Title', 'wpex'), 'dependency' => array('element' => 'title', 'value' => 'yes')), array('type' => 'dropdown', 'heading' => __('Based On', 'wpex'), 'param_name' => 'title_type', 'value' => array(__('Default', 'wpex') => '', __('Title', 'wpex') => 'title', __('Alt', 'wpex') => 'alt', __('Caption', 'wpex') => 'caption', __('Description', 'wpex') => 'description'), 'group' => __('Title', 'wpex'), 'dependency' => array('element' => 'title', 'value' => 'yes')), array('type' => 'colorpicker', 'heading' => __('Color', 'wpex'), 'param_name' => 'title_color', 'group' => __('Title', 'wpex'), 'dependency' => array('element' => 'title', 'value' => 'yes')), array('type' => 'textfield', 'heading' => __('Font Size', 'wpex'), 'param_name' => 'title_size', 'group' => __('Title', 'wpex'), 'dependency' => array('element' => 'title', 'value' => 'yes')), array('type' => 'textfield', 'heading' => __('Line Height', 'wpex'), 'param_name' => 'title_line_height', 'group' => __('Title', 'wpex'), 'dependency' => array('element' => 'title', 'value' => 'yes')), array('type' => 'textfield', 'heading' => __('Margin', 'wpex'), 'param_name' => 'title_margin', 'group' => __('Title', 'wpex'), 'description' => __('Please use the following format: top right bottom left.', 'wpex'), 'dependency' => array('element' => 'title', 'value' => 'yes')), array('type' => 'dropdown', 'heading' => __('Font Weight', 'wpex'), 'param_name' => 'title_weight', 'group' => __('Title', 'wpex'), 'std' => '', 'value' => array_flip(wpex_font_weights()), 'dependency' => array('element' => 'title', 'value' => 'yes')), array('type' => 'dropdown', 'heading' => __('Text Transform', 'wpex'), 'param_name' => 'title_transform', 'group' => __('Title', 'wpex'), 'std' => '', 'value' => array_flip(wpex_text_transforms()), 'dependency' => array('element' => 'title', 'value' => 'yes')), array('type' => 'css_editor', 'heading' => __('Entry CSS', 'wpex'), 'param_name' => 'entry_css', 'group' => __('Entry CSS', 'wpex')), array('type' => 'css_editor', 'heading' => __('Wrap CSS', 'wpex'), 'param_name' => 'css', 'group' => __('Container CSS', 'wpex')))));
}
Example #10
0
<?php

/**
 * Customizer => WooCommerce
 *
 * @package Total WordPress Theme
 * @subpackage Customizer
 * @version 3.3.0
 */
// Exit if accessed directly
if (!defined('ABSPATH')) {
    exit;
}
// General
$this->sections['wpex_woocommerce_general'] = array('title' => esc_html__('General', 'total'), 'panel' => 'wpex_woocommerce', 'settings' => array(array('id' => 'woo_custom_sidebar', 'default' => true, 'control' => array('label' => esc_html__('Custom WooCommerce Sidebar', 'total'), 'type' => 'checkbox')), array('id' => 'woo_menu_icon_display', 'default' => 'icon_count', 'transport' => 'postMessage', 'control' => array('label' => esc_html__('Menu Cart: Display', 'total'), 'type' => 'select', 'choices' => array('disabled' => esc_html__('Disabled', 'total'), 'icon' => esc_html__('Icon', 'total'), 'icon_total' => esc_html__('Icon And Cart Total', 'total'), 'icon_count' => esc_html__('Icon And Cart Count', 'total')), 'desc' => esc_html__('You must save your options and refresh your live site to preview changes to this setting. You may have to also add or remove an item from the cart to clear the WooCommerce cache.', 'total'))), array('id' => 'woo_menu_icon_style', 'default' => 'drop_down', 'transport' => 'postMessage', 'control' => array('label' => esc_html__('Menu Cart: Style', 'total'), 'type' => 'select', 'choices' => array('drop_down' => esc_html__('Drop-Down', 'total'), 'overlay' => esc_html__('Open Cart Overlay', 'total'), 'store' => esc_html__('Go To Store', 'total'), 'custom-link' => esc_html__('Custom Link', 'total')), 'desc' => esc_html__('You must save your options and refresh your live site to preview changes to this setting.', 'total'), 'active_callback' => 'wpex_cac_has_menu_cart')), array('id' => 'woo_menu_icon_custom_link', 'transport' => 'postMessage', 'control' => array('label' => esc_html__('Menu Cart: Custom Link', 'total'), 'type' => 'text', 'desc' => esc_html__('You must save your options and refresh your live site to preview changes to this setting. You may have to also add or remove an item from the cart to clear the WooCommerce cache.', 'total'), 'active_callback' => 'wpex_cac_has_menu_cart'))));
// Archives
$this->sections['wpex_woocommerce_archives'] = array('title' => esc_html__('Archives', 'total'), 'panel' => 'wpex_woocommerce', 'settings' => array(array('id' => 'woo_shop_title', 'default' => 'on', 'control' => array('label' => esc_html__('Shop Title', 'total'), 'type' => 'checkbox')), array('id' => 'woo_shop_slider', 'control' => array('label' => esc_html__('Shop Slider', 'total'), 'type' => 'text')), array('id' => 'woo_shop_posts_per_page', 'default' => '12', 'control' => array('label' => esc_html__('Shop Posts Per Page', 'total'), 'type' => 'text', 'desc' => esc_html__('You must save your options and refresh your live site to preview changes to this setting.', 'total'))), array('id' => 'woo_shop_layout', 'default' => 'full-width', 'control' => array('label' => esc_html__('Layout', 'total'), 'type' => 'select', 'choices' => array('full-width' => esc_html__('No Sidebar', 'total'), 'right-sidebar' => esc_html__('Right Sidebar', 'total'), 'left-sidebar' => esc_html__('Left Sidebar', 'total')))), array('id' => 'woocommerce_shop_columns', 'default' => '4', 'control' => array('label' => esc_html__('Shop Columns', 'total'), 'type' => 'select', 'choices' => wpex_grid_columns())), array('id' => 'woo_category_description_position', 'default' => 'under_title', 'control' => array('label' => esc_html__('Category Description Position', 'total'), 'type' => 'select', 'choices' => array('under_title' => esc_html__('Under Title', 'total'), 'above_loop' => esc_html__('Above Loop', 'total')))), array('id' => 'woo_shop_sort', 'default' => 'on', 'control' => array('label' => esc_html__('Shop Sort', 'total'), 'type' => 'checkbox', 'desc' => esc_html__('You must save your options and refresh your live site to preview changes to this setting.', 'total'))), array('id' => 'woo_shop_result_count', 'default' => 'on', 'control' => array('label' => esc_html__('Shop Result Count', 'total'), 'type' => 'checkbox', 'desc' => esc_html__('You must save your options and refresh your live site to preview changes to this setting.', 'total'))), array('id' => 'woo_product_entry_style', 'default' => 'image-swap', 'control' => array('label' => esc_html__('Product Entry Media', 'total'), 'type' => 'select', 'choices' => array('featured-image' => esc_html__('Featured Image', 'total'), 'image-swap' => esc_html__('Image Swap', 'total'), 'gallery-slider' => esc_html__('Gallery Slider', 'total'))))));
// Single
$this->sections['wpex_woocommerce_single'] = array('title' => esc_html__('Single', 'total'), 'panel' => 'wpex_woocommerce', 'settings' => array(array('id' => 'woo_shop_single_title', 'default' => esc_html__('Store', 'total'), 'control' => array('label' => esc_html__('Page Header Title', 'total'), 'type' => 'text')), array('id' => 'woo_product_layout', 'default' => 'full-width', 'control' => array('label' => esc_html__('Layout', 'total'), 'type' => 'select', 'choices' => array('full-width' => esc_html__('No Sidebar', 'total'), 'right-sidebar' => esc_html__('Right Sidebar', 'total'), 'left-sidebar' => esc_html__('Left Sidebar', 'total')))), array('id' => 'woocommerce_upsells_count', 'default' => '4', 'control' => array('label' => esc_html__('Up-Sells Count', 'total'), 'type' => 'text')), array('id' => 'woocommerce_upsells_columns', 'default' => '4', 'control' => array('label' => esc_html__('Up-Sells Columns', 'total'), 'type' => 'select', 'choices' => wpex_grid_columns())), array('id' => 'woocommerce_related_count', 'default' => '4', 'control' => array('label' => esc_html__('Related Items Count', 'total'), 'type' => 'text')), array('id' => 'woocommerce_related_columns', 'default' => '4', 'control' => array('label' => esc_html__('Related Products Columns', 'total'), 'type' => 'select', 'choices' => wpex_grid_columns())), array('id' => 'woo_product_meta', 'default' => 'on', 'control' => array('label' => esc_html__('Product Meta', 'total'), 'type' => 'checkbox', 'desc' => esc_html__('You must save your options and refresh your live site to preview changes to this setting.', 'total'))), array('id' => 'woo_next_prev', 'default' => 'on', 'control' => array('label' => esc_html__('Next & Previous Links', 'total'), 'type' => 'checkbox'))));
// Cart
$this->sections['wpex_woocommerce_cart'] = array('title' => esc_html__('Cart', 'total'), 'panel' => 'wpex_woocommerce', 'settings' => array(array('id' => 'woocommerce_cross_sells_count', 'default' => '2', 'control' => array('label' => esc_html__('Cross-Sells Count', 'total'), 'type' => 'text')), array('id' => 'woocommerce_cross_sells_columns', 'default' => '2', 'control' => array('label' => esc_html__('Cross-Sells Columns', 'total'), 'type' => 'select', 'choices' => wpex_grid_columns()))));
// Styling
$this->sections['wpex_woocommerce_styling'] = array('title' => esc_html__('Styling', 'total'), 'panel' => 'wpex_woocommerce', 'settings' => array(array('id' => 'onsale_bg', 'control' => array('type' => 'color', 'label' => esc_html__('On Sale Background', 'total')), 'inline_css' => array('target' => '.woocommerce span.onsale', 'alter' => 'background-color')), array('id' => 'onsale_color', 'control' => array('type' => 'color', 'label' => esc_html__('On Sale Color', 'total')), 'inline_css' => array('target' => '.woocommerce span.onsale', 'alter' => 'color')), array('id' => 'woo_product_title_link_color', 'control' => array('type' => 'color', 'label' => esc_html__('Product Entry Title Color', 'total')), 'inline_css' => array('target' => array('.woocommerce ul.products li.product h3', '.woocommerce ul.products li.product h3 mark'), 'alter' => 'color')), array('id' => 'woo_product_title_link_color_hover', 'control' => array('type' => 'color', 'label' => esc_html__('Product Entry Title Color: Hover', 'total')), 'inline_css' => array('target' => array('.woocommerce ul.products li.product h3:hover', '.woocommerce ul.products li.product h3:hover mark'), 'alter' => 'color')), array('id' => 'woo_price_color', 'control' => array('type' => 'color', 'label' => esc_html__('Global Price Color', 'total')), 'inline_css' => array('target' => array('.price', '.amount', '.woocommerce ul.products li.product .price .amount'), 'alter' => 'color')), array('id' => 'woo_product_entry_price_color', 'control' => array('type' => 'color', 'label' => esc_html__('Product Entry Price Color', 'total')), 'inline_css' => array('target' => array('.woocommerce ul.products li.product .price', '.woocommerce ul.products li.product .price .amount'), 'alter' => 'color')), array('id' => 'woo_single_price_color', 'control' => array('type' => 'color', 'label' => esc_html__('Single Product Price Color', 'total')), 'inline_css' => array('target' => array('.woocommerce .summary .price', '.woocommerce .summary .amount'), 'alter' => 'color')), array('id' => 'woo_stars_color', 'control' => array('type' => 'color', 'label' => esc_html__('Star Ratings Color', 'total')), 'inline_css' => array('target' => array('.woocommerce p.stars a', '.woocommerce .star-rating'), 'alter' => 'color')), array('id' => 'woo_single_tabs_active_border_color', 'control' => array('type' => 'color', 'label' => esc_html__('Product Tabs Active Border Color', 'total')), 'inline_css' => array('target' => array('.woocommerce div.product .woocommerce-tabs ul.tabs li.active a'), 'alter' => 'border-color')), array('id' => 'woo_button_bg', 'control' => array('type' => 'color', 'label' => esc_html__('Woo Button Background', 'total')), 'inline_css' => array('target' => array('.woocommerce input#submit', '.woocommerce .button', 'a.wc-forward'), 'alter' => 'background', 'important' => true)), array('id' => 'woo_button_color', 'control' => array('type' => 'color', 'label' => esc_html__('Woo Button Color', 'total')), 'inline_css' => array('target' => array('.woocommerce input#submit', '.woocommerce .button', 'a.wc-forward'), 'alter' => 'color', 'important' => true)), array('id' => 'woo_button_border_radius', 'control' => array('type' => 'text', 'label' => esc_html__('Woo Button Border Radius', 'total')), 'inline_css' => array('target' => array('.woocommerce input#submit', '.woocommerce .button', 'a.wc-forward'), 'alter' => 'border-radius', 'important' => true)), array('id' => 'woo_button_bg_hover', 'control' => array('type' => 'color', 'label' => esc_html__('Woo Button Hover: Background', 'total')), 'inline_css' => array('target' => array('.woocommerce input#submit:hover', '.woocommerce .button:hover', 'a.wc-forward:hover'), 'alter' => 'background', 'important' => true)), array('id' => 'woo_button_color_hover', 'control' => array('type' => 'color', 'label' => esc_html__('Woo Button Hover: Color', 'total')), 'inline_css' => array('target' => array('.woocommerce input#submit:hover', '.woocommerce .button:hover', 'a.wc-forward:hover'), 'alter' => 'color', 'important' => true))));
<?php

/**
 * Testimonials Customizer Options
 *
 * @package Total WordPress Theme
 * @subpackage Customizer
 */
// Exit if accessed directly
if (!defined('ABSPATH')) {
    exit;
}
// General
$this->sections['wpex_testimonials'] = array('title' => __('General', 'wpex'), 'settings' => array(array('id' => 'testimonials_page', 'control' => array('label' => __('Main Page', 'wpex'), 'type' => 'dropdown-pages', 'desc' => __('Used for breadcrumbs.', 'wpex'))), array('id' => 'testimonials_custom_sidebar', 'default' => 1, 'control' => array('label' => __('Custom Post Type Sidebar', 'wpex'), 'type' => 'checkbox')), array('id' => 'testimonials_search', 'default' => 1, 'control' => array('label' => __('Include In Search', 'wpex'), 'type' => 'checkbox')), array('id' => 'testimonials_archive_layout', 'default' => 'full-width', 'control' => array('label' => __('Archive Layout', 'wpex'), 'type' => 'select', 'choices' => array('right-sidebar' => __('Right Sidebar', 'wpex'), 'left-sidebar' => __('Left Sidebar', 'wpex'), 'full-width' => __('No Sidebar', 'wpex')))), array('id' => 'testimonials_entry_columns', 'default' => '4', 'control' => array('label' => __('Archive Columns', 'wpex'), 'type' => 'select', 'choices' => wpex_grid_columns())), array('id' => 'testimonials_archive_posts_per_page', 'default' => '12', 'control' => array('label' => __('Archive Posts Per Page', 'wpex'), 'type' => 'number')), array('id' => 'testimonial_entry_title', 'control' => array('label' => __('Archive Entry Title', 'wpex'), 'type' => 'checkbox')), array('id' => 'testimonial_post_style', 'default' => 'blockquote', 'control' => array('label' => __('Single Style', 'wpex'), 'type' => 'select', 'choices' => array('blockquote' => __('Blockquote', 'wpex'), 'standard' => __('Standard', 'wpex')))), array('id' => 'testimonials_single_layout', 'default' => 'right-sidebar', 'control' => array('label' => __('Single Layout', 'wpex'), 'type' => 'select', 'choices' => array('right-sidebar' => __('Right Sidebar', 'wpex'), 'left-sidebar' => __('Left Sidebar', 'wpex'), 'full-width' => __('No Sidebar', 'wpex')))), array('id' => 'testimonials_comments', 'control' => array('label' => __('Comments', 'wpex'), 'type' => 'checkbox')), array('id' => 'testimonials_next_prev', 'default' => 1, 'control' => array('label' => __('Next & Previous Links', 'wpex'), 'type' => 'checkbox')), array('id' => 'testimonial_entry_bg', 'control' => array('type' => 'color', 'label' => __('Entry Background', 'wpex')), 'inline_css' => array('target' => '.testimonial-entry-content', 'alter' => 'background')), array('id' => 'testimonial_entry_pointer_bg', 'control' => array('type' => 'color', 'label' => __('Entry Pointer Background', 'wpex')), 'inline_css' => array('target' => '.testimonial-caret', 'alter' => 'border-top-color')), array('id' => 'testimonial_entry_color', 'control' => array('type' => 'color', 'label' => __('Entry Color', 'wpex')), 'inline_css' => array('target' => array('.testimonial-entry-content', '.testimonial-entry-content a'), 'alter' => 'color'))));