Ejemplo n.º 1
0
/**
 * Adds the shortcode to the Visual Composer
 *
 * @since 2.0.0
 */
function vcex_social_links_vc_map()
{
    // Define map array
    $array = array('name' => esc_html__('Social Links', 'total'), 'description' => esc_html__('Display social links using icon fonts', 'total'), 'base' => 'vcex_social_links', 'category' => wpex_get_theme_branding(), 'icon' => 'vcex-social-links vcex-icon fa fa-user-plus');
    // Create params for array
    $params = array(array('type' => 'textfield', 'heading' => esc_html__('Unique Id', 'total'), 'param_name' => 'unique_id'), array('type' => 'textfield', 'heading' => esc_html__('Classes', 'total'), 'param_name' => 'classes'), array('type' => 'dropdown', 'heading' => esc_html__('Style', 'total'), 'param_name' => 'style', 'value' => array_flip(wpex_social_button_styles())), array('type' => 'dropdown', 'heading' => esc_html__('Visibility', 'total'), 'param_name' => 'visibility', 'value' => array_flip(wpex_visibility())), array('type' => 'dropdown', 'heading' => esc_html__('Appear Animation', 'total'), 'param_name' => 'css_animation', 'value' => array_flip(wpex_css_animations())), array('type' => 'dropdown', 'heading' => esc_html__('Hover Animation', 'total'), 'param_name' => 'hover_animation', 'value' => array_flip(wpex_hover_css_animations())), array('type' => 'dropdown', 'heading' => esc_html__('Link Target', 'total'), 'param_name' => 'link_target', 'value' => array(__('Self', 'total') => '', __('Blank', 'total') => 'blank')));
    // Get array of social links to loop through
    $social_links = vcex_social_links_profiles();
    // Loop through social links and add to params
    foreach ($social_links as $key => $val) {
        $desc = 'email' == $key ? esc_html__('Format: mailto:email@site.com', 'total') : '';
        $params[] = array('type' => 'textfield', 'heading' => $val['label'], 'param_name' => $key, 'group' => esc_html__('Profiles', 'total'), 'description' => $desc);
    }
    // Add CSS option
    $params[] = array('type' => 'css_editor', 'heading' => esc_html__('CSS', 'total'), 'param_name' => 'css', 'group' => esc_html__('Design', 'total'));
    $params[] = array('type' => 'dropdown', 'heading' => esc_html__('Align', 'total'), 'param_name' => 'align', 'value' => array_flip(wpex_alignments()), 'group' => esc_html__('Design', 'total'));
    $params[] = array('type' => 'textfield', 'heading' => esc_html__('Font Size', 'total'), 'param_name' => 'size', 'group' => esc_html__('Design', 'total'));
    $params[] = array('type' => 'textfield', 'heading' => esc_html__('Width', 'total'), 'param_name' => 'width', 'group' => esc_html__('Design', 'total'));
    $params[] = array('type' => 'textfield', 'heading' => esc_html__('Height', 'total'), 'param_name' => 'height', 'group' => esc_html__('Design', 'total'));
    $params[] = array('type' => 'textfield', 'heading' => esc_html__('Border Radius', 'total'), 'param_name' => 'border_radius', 'group' => esc_html__('Design', 'total'));
    $params[] = array('type' => 'colorpicker', 'heading' => esc_html__('Color', 'total'), 'param_name' => 'color', 'group' => esc_html__('Design', 'total'));
    $params[] = array('type' => 'colorpicker', 'heading' => esc_html__('Hover Background', 'total'), 'param_name' => 'hover_bg', 'group' => esc_html__('Design', 'total'));
    $params[] = array('type' => 'colorpicker', 'heading' => esc_html__('Hover Color', 'total'), 'param_name' => 'hover_color', 'group' => esc_html__('Design', 'total'));
    // Add params to array
    $array['params'] = $params;
    // Return $array
    return $array;
}
Ejemplo n.º 2
0
/**
 * Adds the shortcode to the Visual Composer
 *
 * @since 1.4.1
 */
function vcex_staff_carousel_vc_map()
{
    return array('name' => esc_html__('Staff Carousel', 'total'), 'description' => esc_html__('Recent staff posts carousel', 'total'), 'base' => 'vcex_staff_carousel', 'category' => wpex_get_theme_branding(), 'icon' => 'vcex-staff-carousel 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__('Arrows?', 'total'), 'param_name' => 'arrows', 'value' => array(__('True', 'total') => 'true', __('False', 'total') => 'false')), array('type' => 'dropdown', 'heading' => esc_html__('Dots?', 'total'), 'param_name' => 'dots', 'value' => array(__('False', 'total') => 'false', __('True', 'total') => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Items To Display', 'total'), 'param_name' => 'items', 'value' => '4'), array('type' => 'textfield', 'heading' => esc_html__('Items To Scrollby', 'total'), 'param_name' => 'items_scroll', 'value' => '1'), array('type' => 'textfield', 'heading' => esc_html__('Margin Between Items', 'total'), 'param_name' => 'items_margin', 'value' => '15'), array('type' => 'dropdown', 'heading' => esc_html__('Auto Play', 'total'), 'param_name' => 'auto_play', 'value' => array(__('True', 'total') => 'true', __('False', 'total') => 'false')), array('type' => 'dropdown', 'heading' => esc_html__('Infinite Loop', 'total'), 'param_name' => 'infinite_loop', 'value' => array(__('True', 'total') => 'true', __('False', 'total') => 'false')), array('type' => 'dropdown', 'heading' => esc_html__('Center Item', 'total'), 'param_name' => 'center', 'value' => array(__('False', 'total') => 'false', __('True', 'total') => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Animation Speed', 'total'), 'param_name' => 'animation_speed', 'value' => 150, 'description' => esc_html__('Default is 150 milliseconds. Enter 0.0 to disable.', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Timeout Duration in milliseconds', 'total'), 'param_name' => 'timeout_duration', 'value' => 5000, 'dependency' => array('element' => 'auto_play', 'value' => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Post Count', 'total'), 'param_name' => 'count', 'value' => '8', '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' => true, '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' => true, '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__('Image Links To', 'total'), 'param_name' => 'thumbnail_link', 'group' => esc_html__('Image', 'total'), 'value' => array(__('Default', 'total') => '', __('Post', 'total') => 'post', __('Lightbox', 'total') => 'lightbox', __('None', 'total') => 'none')), array('type' => 'dropdown', 'heading' => esc_html__('Image Size', 'total'), 'param_name' => 'img_size', 'std' => 'wpex_custom', 'value' => vcex_image_sizes(), 'group' => esc_html__('Image', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Image Crop Location', 'total'), 'param_name' => 'img_crop', 'std' => 'center-center', 'value' => array_flip(wpex_image_crop_locations()), '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')), 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')), array('type' => 'dropdown', 'heading' => esc_html__('Image Filter', 'total'), 'param_name' => 'img_filter', 'value' => array_flip(wpex_image_filters()), 'group' => esc_html__('Image', 'total')), 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' => 'colorpicker', 'heading' => esc_html__('Color', 'total'), 'param_name' => 'content_heading_color', 'group' => esc_html__('Title', 'total'), 'description' => esc_html__('Select a custom color to override the default.', '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__('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' => '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' => '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', 'value' => array_flip(wpex_text_transforms()), 'group' => esc_html__('Title', 'total'), 'dependency' => array('element' => 'title', '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' => 'flat-color-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', 'value' => '30', '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'), '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' => 'colorpicker', 'heading' => esc_html__('Color', 'total'), 'param_name' => 'content_color', 'group' => esc_html__('Excerpt', 'total'), 'dependency' => array('element' => 'excerpt', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Style', 'total'), 'param_name' => 'style', 'value' => array(__('Default', 'total') => '', __('No Margins', 'total') => 'no-margins'), 'group' => esc_html__('Design', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Display Arrows?', 'total'), 'param_name' => 'arrows', 'value' => array(__('True', 'total') => 'true', __('False', 'total') => 'false'), 'group' => esc_html__('Design', 'total')), array('type' => 'colorpicker', 'heading' => esc_html__('Content Background', 'total'), 'param_name' => 'content_background', 'group' => esc_html__('Design', '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__('Design', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Content Margin', 'total'), 'param_name' => 'content_margin', 'description' => esc_html__('Please use the following format: top right bottom left.', 'total'), 'group' => esc_html__('Design', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Content Padding', 'total'), 'param_name' => 'content_padding', 'description' => esc_html__('Please use the following format: top right bottom left.', 'total'), 'group' => esc_html__('Design', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Content Border', 'total'), 'param_name' => 'content_border', 'description' => esc_html__('Please use the shorthand format: width style color. Enter 0px or "none" to disable border.', 'total'), 'group' => esc_html__('Design', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Content Opacity', 'total'), 'param_name' => 'content_opacity', 'description' => esc_html__('Enter a value between "0" and "1".', 'total'), 'group' => esc_html__('Design', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Tablet: Items To Display', 'total'), 'param_name' => 'tablet_items', 'value' => '3', 'group' => esc_html__('Mobile', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Mobile Landscape: Items To Display', 'total'), 'param_name' => 'mobile_landscape_items', 'value' => '2', 'group' => esc_html__('Mobile', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Mobile Portrait: Items To Display', 'total'), 'param_name' => 'mobile_portrait_items', 'value' => '1', 'group' => esc_html__('Mobile', 'total'))));
}
Ejemplo n.º 3
0
<?php

/**
 * Customizer => Top Bar
 *
 * @package Total WordPress Theme
 * @subpackage Customizer
 * @version 3.3.0
 */
// Exit if accessed directly
if (!defined('ABSPATH')) {
    exit;
}
// Social styles
$social_styles = array('' => esc_html__('Minimal', 'total'), 'colored-icons' => esc_html__('Colored Image Icons (Legacy)', 'total'));
$social_styles = array_merge(wpex_social_button_styles(), $social_styles);
unset($social_styles['']);
// General
$this->sections['wpex_topbar_general'] = array('title' => esc_html__('General', 'total'), 'panel' => 'wpex_topbar', 'settings' => array(array('id' => 'top_bar', 'default' => true, 'control' => array('label' => esc_html__('Enable', 'total'), 'type' => 'checkbox', 'desc' => esc_html__('If you disable this option we recommend you go to the Customizer Manager and disable the section as well so the next time you work with the Customizer it will load faster.', 'total'))), array('id' => 'top_bar_sticky', 'default' => false, 'control' => array('label' => esc_html__('Sticky', 'total'), 'type' => 'checkbox', 'active_callback' => 'wpex_cac_has_topbar')), array('id' => 'top_bar_style', 'default' => 'one', 'control' => array('label' => esc_html__('Style', 'total'), 'type' => 'select', 'active_callback' => 'wpex_cac_has_topbar', 'choices' => array('one' => esc_html__('Left Content & Right Social', 'total'), 'two' => esc_html__('Left Social & Right Content', 'total'), 'three' => esc_html__('Centered Content & Social', 'total')))), array('id' => 'top_bar_visibility', 'transport' => 'postMessage', 'default' => 'always-visible', 'control' => array('label' => esc_html__('Visibility', 'total'), 'type' => 'select', 'choices' => wpex_visibility(), 'active_callback' => 'wpex_cac_has_topbar')), array('id' => 'top_bar_content', 'default' => '[font_awesome icon="phone" margin_right="5px" color="#000"] 1-800-987-654 [font_awesome icon="envelope" margin_right="5px" margin_left="20px" color="#000"] admin@total.com [font_awesome icon="user" margin_right="5px" margin_left="20px" color="#000"] [wp_login_url text="User Login" logout_text="Logout"]', 'control' => array('label' => esc_html__('Content', 'total'), 'type' => 'textarea', 'active_callback' => 'wpex_cac_has_topbar', 'description' => esc_html__('If you enter the ID number of a page it will automatically display the content of such page.', 'total'))), array('id' => 'top_bar_bg', 'transport' => 'postMessage', 'control' => array('type' => 'color', 'label' => esc_html__('Background', 'total'), 'active_callback' => 'wpex_cac_has_topbar'), 'inline_css' => array('target' => array('#top-bar-wrap', '.wpex-top-bar-sticky'), 'alter' => 'background-color')), array('id' => 'top_bar_border', 'transport' => 'postMessage', 'control' => array('type' => 'color', 'label' => esc_html__('Borders', 'total'), 'active_callback' => 'wpex_cac_has_topbar'), 'inline_css' => array('target' => '#top-bar-wrap', 'alter' => 'border-color')), array('id' => 'top_bar_text', 'transport' => 'postMessage', 'control' => array('type' => 'color', 'label' => esc_html__('Color', 'total'), 'active_callback' => 'wpex_cac_has_topbar'), 'inline_css' => array('target' => array('#top-bar-wrap', '#top-bar-content strong'), 'alter' => 'color')), array('id' => 'top_bar_link_color', 'transport' => 'postMessage', 'control' => array('type' => 'color', 'label' => esc_html__('Link Color', 'total'), 'active_callback' => 'wpex_cac_has_topbar'), 'inline_css' => array('target' => array('#top-bar-content a', '#top-bar-social-alt a'), 'alter' => 'color')), array('id' => 'top_bar_link_color_hover', 'transport' => 'postMessage', 'control' => array('type' => 'color', 'label' => esc_html__('Link Color: Hover', 'total'), 'active_callback' => 'wpex_cac_has_topbar'), 'inline_css' => array('target' => array('#top-bar-content a:hover', '#top-bar-social-alt a:hover'), 'alter' => 'color'))));
/*-----------------------------------------------------------------------------------*/
/* - Header => Fixed On Scroll
/*-----------------------------------------------------------------------------------*/
$this->sections['wpex_topbar_social'] = array('title' => esc_html__('Social', 'total'), 'panel' => 'wpex_topbar', 'settings' => array(array('id' => 'top_bar_social', 'default' => true, 'control' => array('label' => esc_html__('Social', 'total'), 'type' => 'checkbox', 'active_callback' => 'wpex_cac_has_topbar')), array('id' => 'top_bar_social_alt', 'control' => array('label' => esc_html__('Social Alternative', 'total'), 'type' => 'textarea', 'active_callback' => 'wpex_cac_has_topbar', 'description' => esc_html__('If you enter the ID number of a page it will automatically display the content of such page.', 'total'))), array('id' => 'top_bar_social_target', 'default' => 'blank', 'transport' => 'postMessage', 'control' => array('label' => esc_html__('Social Link Target', 'total'), 'type' => 'select', 'choices' => array('blank' => esc_html__('New Window', 'total'), 'self' => esc_html__('Same Window', 'total')), 'active_callback' => 'wpex_cac_has_topbar_social')), array('id' => 'top_bar_social_style', 'default' => 'none', 'control' => array('label' => esc_html__('Social Style', 'total'), 'type' => 'select', 'choices' => $social_styles, 'active_callback' => 'wpex_cac_has_topbar_social')), array('id' => 'top_bar_social_color', 'transport' => 'postMessage', 'control' => array('type' => 'color', 'label' => esc_html__('Social Links Color', 'total'), 'active_callback' => 'wpex_cac_topbar_social_style_is_none'), 'inline_css' => array('target' => '#top-bar-social a.wpex-social-btn-no-style', 'alter' => 'color')), array('id' => 'top_bar_social_hover_color', 'transport' => 'postMessage', 'control' => array('type' => 'color', 'label' => esc_html__('Social Links Hover Color', 'total'), 'active_callback' => 'wpex_cac_topbar_social_style_is_none'), 'inline_css' => array('target' => '#top-bar-social a.wpex-social-btn-no-style:hover', 'alter' => 'color'))));
// Social settings
$social_options = wpex_topbar_social_options();
foreach ($social_options as $key => $val) {
    $this->sections['wpex_topbar_social']['settings'][] = array('id' => 'top_bar_social_profiles[' . $key . ']', 'control' => array('label' => esc_html__($val['label'], 'total'), 'type' => 'text', 'active_callback' => 'wpex_cac_has_topbar_social'));
}
Ejemplo n.º 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')));
}
Ejemplo n.º 5
0
        /**
         * Back-end widget form.
         *
         * @see WP_Widget::form()
         * @since 1.0.0
         *
         * @param array $instance Previously saved values from database.
         */
        public function form($instance)
        {
            $instance = wp_parse_args((array) $instance, array('title' => esc_attr__('Follow Us', 'total'), 'description' => '', 'style' => 'flat-color', 'type' => '', 'font_size' => '', 'border_radius' => '', 'target' => 'blank', 'size' => '', 'social_services' => $this->social_services_array));
            ?>
			
			<p>
				<label for="<?php 
            echo esc_attr($this->get_field_id('title'));
            ?>
"><?php 
            esc_html_e('Title', 'total');
            ?>
:</label> 
				<input class="widefat" id="<?php 
            echo esc_attr($this->get_field_id('title'));
            ?>
" name="<?php 
            echo esc_attr($this->get_field_name('title'));
            ?>
" type="text" value="<?php 
            echo esc_attr($instance['title']);
            ?>
" />
			</p>

			<p>
				<label for="<?php 
            echo esc_attr($this->get_field_id('description'));
            ?>
"><?php 
            esc_html_e('Description', 'total');
            ?>
:</label>
				<textarea class="widefat" rows="5" cols="20" id="<?php 
            echo esc_attr($this->get_field_id('description'));
            ?>
" name="<?php 
            echo esc_attr($this->get_field_name('description'));
            ?>
"><?php 
            echo wpex_sanitize_data($instance['description'], 'html');
            ?>
</textarea>
			</p>

			<?php 
            // Styles
            $social_styles = wpex_social_button_styles();
            // Parse style
            $style = $this->parse_style($instance['style'], $instance['type']);
            ?>

			<p>
				<label for="<?php 
            echo esc_attr($this->get_field_id('style'));
            ?>
"><?php 
            esc_html_e('Style', 'total');
            ?>
:</label>
				<br />
				<select class="wpex-widget-select" name="<?php 
            echo esc_attr($this->get_field_name('style'));
            ?>
" id="<?php 
            echo esc_attr($this->get_field_id('style'));
            ?>
">
					<?php 
            foreach ($social_styles as $key => $val) {
                ?>
						<option value="<?php 
                echo esc_attr($key);
                ?>
" <?php 
                selected($style, $key);
                ?>
><?php 
                echo strip_tags($val);
                ?>
</option>
					<?php 
            }
            ?>
				</select>
			</p>
			
			<p>
				<label for="<?php 
            echo esc_attr($this->get_field_id('target'));
            ?>
"><?php 
            esc_html_e('Link Target', 'total');
            ?>
:</label>
				<br />
				<select class="wpex-widget-select" name="<?php 
            echo esc_attr($this->get_field_name('target'));
            ?>
" id="<?php 
            echo esc_attr($this->get_field_id('target'));
            ?>
">
					<option value="blank" <?php 
            selected($instance['target'], 'blank');
            ?>
><?php 
            esc_html_e('Blank', 'total');
            ?>
</option>
					<option value="self" <?php 
            selected($instance['target'], 'select');
            ?>
><?php 
            esc_html_e('Self', 'total');
            ?>
</option>
				</select>
			</p>
			
			<p>
				<label for="<?php 
            echo esc_attr($this->get_field_id('size'));
            ?>
"><?php 
            esc_html_e('Dimensions', 'total');
            ?>
:</label>
				<input class="widefat" id="<?php 
            echo esc_attr($this->get_field_id('size'));
            ?>
" name="<?php 
            echo esc_attr($this->get_field_name('size'));
            ?>
" type="text" value="<?php 
            echo esc_attr($instance['size']);
            ?>
" />
				<small><?php 
            esc_html_e('Example:', 'total');
            ?>
 40px</small>
			</p>

			<p>
				<label for="<?php 
            echo esc_attr($this->get_field_id('font_size'));
            ?>
"><?php 
            esc_html_e('Font Size', 'total');
            ?>
:</label>
				<input class="widefat" id="<?php 
            echo esc_attr($this->get_field_id('font_size'));
            ?>
" name="<?php 
            echo esc_attr($this->get_field_name('font_size'));
            ?>
" type="text" value="<?php 
            echo esc_attr($instance['font_size']);
            ?>
" />
				<small><?php 
            esc_html_e('Example:', 'total');
            ?>
 18px</small>
			</p>

			<p>
				<label for="<?php 
            echo esc_attr($this->get_field_id('border_radius'));
            ?>
"><?php 
            esc_html_e('Border Radius', 'total');
            ?>
</label>
				<input class="widefat" id="<?php 
            echo esc_attr($this->get_field_id('border_radius'));
            ?>
" name="<?php 
            echo esc_attr($this->get_field_name('border_radius'));
            ?>
" type="text" value="<?php 
            echo esc_attr($instance['border_radius']);
            ?>
" />
				<small><?php 
            esc_html_e('Example:', 'total');
            ?>
 4px</small>
			</p>

			<?php 
            $field_id_services = $this->get_field_id('social_services');
            $field_name_services = $this->get_field_name('social_services');
            ?>
			<h3 style="margin-top:20px;margin-bottom:0;"><?php 
            esc_html_e('Social Links', 'total');
            ?>
</h3>
			<ul id="<?php 
            echo esc_attr($field_id_services);
            ?>
" class="wpex-social-widget-services-list">
				<input type="hidden" id="<?php 
            echo esc_attr($field_name_services);
            ?>
" value="<?php 
            echo esc_attr($field_name_services);
            ?>
">
				<input type="hidden" id="<?php 
            echo esc_attr(wp_create_nonce('wpex_fontawesome_social_widget_nonce'));
            ?>
">
				<?php 
            // Social array
            $social_services_array = $this->social_services_array;
            // Get current services display
            $display_services = isset($instance['social_services']) ? $instance['social_services'] : '';
            // Loop through social services to display inputs
            foreach ($display_services as $key => $val) {
                $url = !empty($display_services[$key]['url']) ? esc_url($display_services[$key]['url']) : null;
                $name = $social_services_array[$key]['name'];
                // Set icon
                $icon = 'vimeo-square' == $key ? 'vimeo' : $key;
                $icon = 'youtube' == $key ? 'youtube-play' : $icon;
                $icon = 'vimeo-square' == $key ? 'vimeo' : $icon;
                ?>
					<li id="<?php 
                echo esc_attr($field_id_services);
                ?>
_0<?php 
                echo esc_attr($key);
                ?>
">
						<p>
							<label for="<?php 
                echo esc_attr($field_id_services);
                ?>
-<?php 
                echo esc_attr($key);
                ?>
-name"><span class="fa fa-<?php 
                echo esc_attr($icon);
                ?>
"></span><?php 
                echo strip_tags($name);
                ?>
:</label>
							<input type="hidden" id="<?php 
                echo esc_attr($field_id_services);
                ?>
-<?php 
                echo esc_attr($key);
                ?>
-url" name="<?php 
                echo esc_attr($field_name_services . '[' . $key . '][name]');
                ?>
" value="<?php 
                echo esc_attr($name);
                ?>
">
							<input type="url" class="widefat" id="<?php 
                echo esc_attr($field_id_services);
                ?>
-<?php 
                echo esc_attr($key);
                ?>
-url" name="<?php 
                echo esc_attr($field_name_services . '[' . $key . '][url]');
                ?>
" value="<?php 
                echo esc_attr($url);
                ?>
" />
						</p>
					</li>
				<?php 
            }
            ?>
			</ul>
			
		<?php 
        }
Ejemplo n.º 6
0
/**
 * Visual Composer Staff Social
 *
 * @package Total WordPress Theme
 * @subpackage VC Functions
 * @version 3.3.0
 */
function vcex_staff_social_vc_map()
{
    return array('name' => esc_html__('Staff Social Links', 'total'), 'description' => esc_html__('Single staff social links', 'total'), 'base' => 'staff_social', 'category' => wpex_get_theme_branding(), 'icon' => 'vcex-staff-social vcex-icon fa fa-share-alt', 'params' => array(array('type' => 'autocomplete', 'heading' => esc_html__('Staff Member ID', 'total'), 'param_name' => 'post_id', 'param_holder_class' => 'vc_not-for-custom', 'description' => esc_html__('Select a staff member to display their social links. By default it will diplay the current staff member links.', 'total'), 'settings' => array('multiple' => false, 'min_length' => 1, 'groups' => false, 'unique_values' => true, 'display_inline' => true, 'delay' => 0, 'auto_focus' => true)), array('type' => 'dropdown', 'heading' => esc_html__('Style', 'total'), 'param_name' => 'style', 'value' => array_flip(wpex_social_button_styles())), array('type' => 'dropdown', 'heading' => esc_html__('Link Target', 'total'), 'param_name' => 'link_target', 'value' => array(__('Blank', 'total') => 'blank', __('Self', 'total') => 'self')), array('type' => 'textfield', 'heading' => esc_html__('Font Size', 'total'), 'param_name' => 'font_size'), array('type' => 'css_editor', 'heading' => esc_html__('CSS', 'total'), 'param_name' => 'css', 'group' => esc_html__('CSS', 'total'))));
}
        /**
         * Back-end widget form.
         *
         * @see WP_Widget::form()
         * @since 1.0.0
         *
         * @param array $instance Previously saved values from database.
         */
        public function form($instance)
        {
            $social_services_array = array('twitter' => array('name' => 'Twitter', 'url' => ''), 'facebook' => array('name' => 'Facebook', 'url' => ''), 'instagram' => array('name' => 'Instagram', 'url' => ''), 'google-plus' => array('name' => 'GooglePlus', 'url' => ''), 'linkedin' => array('name' => 'LinkedIn', 'url' => ''), 'pinterest' => array('name' => 'Pinterest', 'url' => ''), 'yelp' => array('name' => 'Yelp', 'url' => ''), 'dribbble' => array('name' => 'Dribbble', 'url' => ''), 'flickr' => array('name' => 'Flickr', 'url' => ''), 'vk' => array('name' => 'VK', 'url' => ''), 'github' => array('name' => 'GitHub', 'url' => ''), 'tumblr' => array('name' => 'Tumblr', 'url' => ''), 'skype' => array('name' => 'Skype', 'url' => ''), 'trello' => array('name' => 'Trello', 'url' => ''), 'foursquare' => array('name' => 'Foursquare', 'url' => ''), 'renren' => array('name' => 'RenRen', 'url' => ''), 'xing' => array('name' => 'Xing', 'url' => ''), 'vimeo-square' => array('name' => 'Vimeo', 'url' => ''), 'vine' => array('name' => 'Vine', 'url' => ''), 'youtube' => array('name' => 'Youtube', 'url' => ''), 'rss' => array('name' => 'RSS', 'url' => ''));
            $social_services_array = apply_filters('wpex_social_widget_profiles', $social_services_array);
            $instance = wp_parse_args((array) $instance, array('title' => __('Follow Us', 'wpex'), 'description' => '', 'style' => 'flat-color', 'font_size' => '', 'border_radius' => '', 'target' => 'blank', 'size' => '30px', 'social_services' => $social_services_array));
            $title = esc_attr($instance['title']);
            $number = esc_attr($instance['description']);
            $type = isset($instance['type']) ? esc_attr($instance['type']) : '';
            $style = esc_attr($instance['style']);
            $font_size = esc_attr($instance['font_size']);
            $border_radius = esc_attr($instance['border_radius']);
            $target = esc_attr($instance['target']);
            $size = esc_attr($instance['size']);
            ?>
			
			<p>
				<label for="<?php 
            echo $this->get_field_id('title');
            ?>
"><?php 
            _e('Title:', 'wpex');
            ?>
</label> 
				<input class="widefat" id="<?php 
            echo $this->get_field_id('title');
            ?>
" name="<?php 
            echo $this->get_field_name('title');
            ?>
" type="text" value="<?php 
            echo $instance['title'];
            ?>
" />
			</p>

			<p>
				<label for="<?php 
            echo $this->get_field_id('description');
            ?>
"><?php 
            _e('Description:', 'wpex');
            ?>
</label> 
				<label for="<?php 
            echo $this->get_field_id('description');
            ?>
"><?php 
            _e('Description:', 'wpex');
            ?>
</label> 
				<textarea class="widefat" rows="5" cols="20" id="<?php 
            echo $this->get_field_id('description');
            ?>
" name="<?php 
            echo $this->get_field_name('description');
            ?>
"><?php 
            echo $instance['description'];
            ?>
</textarea>
			</p>

			<?php 
            // Styles
            $social_styles = wpex_social_button_styles();
            // Parse style
            $style = $this->parse_style($style, $type);
            ?>

			<p>
				<label for="<?php 
            echo $this->get_field_id('style');
            ?>
"><?php 
            _e('Style', 'wpex');
            ?>
</label>
				<br />
				<select class='wpex-widget-select' name="<?php 
            echo $this->get_field_name('style');
            ?>
" id="<?php 
            echo $this->get_field_id('style');
            ?>
">
					<?php 
            foreach ($social_styles as $key => $val) {
                ?>
						<option value="<?php 
                echo $key;
                ?>
" <?php 
                selected($style, $key);
                ?>
><?php 
                echo $val;
                ?>
</option>
					<?php 
            }
            ?>
				</select>
			</p>
			
			<p>
				<label for="<?php 
            echo $this->get_field_id('target');
            ?>
"><?php 
            _e('Link Target:', 'wpex');
            ?>
</label>
				<br />
				<select class='wpex-widget-select' name="<?php 
            echo $this->get_field_name('target');
            ?>
" id="<?php 
            echo $this->get_field_id('target');
            ?>
">
					<option value="blank" <?php 
            if ($instance['target'] == 'blank') {
                ?>
selected="selected"<?php 
            }
            ?>
><?php 
            _e('Blank', 'wpex');
            ?>
</option>
					<option value="self" <?php 
            if ($instance['target'] == 'self') {
                ?>
selected="selected"<?php 
            }
            ?>
><?php 
            _e('Self', 'wpex');
            ?>
</option>
				</select>
			</p>
			
			<p>
				<label for="<?php 
            echo $this->get_field_id('size');
            ?>
"><?php 
            _e('Icon Size', 'wpex');
            ?>
</label>
				<input class="widefat" id="<?php 
            echo $this->get_field_id('size');
            ?>
" name="<?php 
            echo $this->get_field_name('size');
            ?>
" type="text" value="<?php 
            echo $instance['size'];
            ?>
" />
				<small><?php 
            _e('Enter a size to be used for the height/width for the icon.', 'wpex');
            ?>
</small>
			</p>

			<p>
				<label for="<?php 
            echo $this->get_field_id('font_size');
            ?>
"><?php 
            _e('Icon Font Size', 'wpex');
            ?>
</label>
				<input class="widefat" id="<?php 
            echo $this->get_field_id('font_size');
            ?>
" name="<?php 
            echo $this->get_field_name('font_size');
            ?>
" type="text" value="<?php 
            echo $instance['font_size'];
            ?>
" />
				<small><?php 
            _e('Enter a custom font size for the icons.', 'wpex');
            ?>
</small>
			</p>

			<p>
				<label for="<?php 
            echo $this->get_field_id('border_radius');
            ?>
"><?php 
            _e('Border Radius', 'wpex');
            ?>
</label>
				<input class="widefat" id="<?php 
            echo $this->get_field_id('border_radius');
            ?>
" name="<?php 
            echo $this->get_field_name('border_radius');
            ?>
" type="text" value="<?php 
            echo $instance['border_radius'];
            ?>
" />
				<small><?php 
            _e('Enter a custom border radius. For circular icons enter a number equal or greater to the Icon Size field above.', 'wpex');
            ?>
</small>
			</p>

			<?php 
            $field_id_services = $this->get_field_id('social_services');
            $field_name_services = $this->get_field_name('social_services');
            ?>
			<h3 style="margin-top:20px;margin-bottom:0;"><?php 
            _e('Social Links', 'wpex');
            ?>
</h3> 
			<small style="display:block;margin-bottom:10px;"><?php 
            _e('Enter the full URL to your social profile.', 'wpex');
            ?>
 <?php 
            _e('Drag and drop to re-order items.', 'wpex');
            ?>
</small>
			<ul id="<?php 
            echo $field_id_services;
            ?>
" class="wpex-services-list">
				<input type="hidden" id="<?php 
            echo $field_name_services;
            ?>
" value="<?php 
            echo $field_name_services;
            ?>
">
				<input type="hidden" id="<?php 
            echo wp_create_nonce('wpex_fontawesome_social_widget_nonce');
            ?>
">
				<?php 
            $display_services = isset($instance['social_services']) ? $instance['social_services'] : '';
            if (!empty($display_services)) {
                foreach ($display_services as $key => $service) {
                    $url = isset($service['url']) ? $service['url'] : 0;
                    $name = isset($service['name']) ? $service['name'] : '';
                    ?>
						<li id="<?php 
                    echo $field_id_services;
                    ?>
_0<?php 
                    echo $key;
                    ?>
">
							<p>
								<label for="<?php 
                    echo $field_id_services;
                    ?>
-<?php 
                    echo $key;
                    ?>
-name"><?php 
                    echo $name;
                    ?>
:</label>
								<input type="hidden" id="<?php 
                    echo $field_id_services;
                    ?>
-<?php 
                    echo $key;
                    ?>
-url" name="<?php 
                    echo $field_name_services . '[' . $key . '][name]';
                    ?>
" value="<?php 
                    echo $name;
                    ?>
">
								<input type="url" class="widefat" id="<?php 
                    echo $field_id_services;
                    ?>
-<?php 
                    echo $key;
                    ?>
-url" name="<?php 
                    echo $field_name_services . '[' . $key . '][url]';
                    ?>
" value="<?php 
                    echo $url;
                    ?>
" />
							</p>
						</li>
					<?php 
                }
            }
            ?>
			</ul>
			
		<?php 
        }