コード例 #1
0
ファイル: portfolio_carousel.php プロジェクト: iq007/MadScape
/**
 * Adds the shortcode to the Visual Composer
 *
 * @since 1.4.1
 */
function vcex_portfolio_carousel_vc_map()
{
    return array('name' => esc_html__('Portfolio Carousel', 'total'), 'description' => esc_html__('Recent portfolio posts carousel', 'total'), 'base' => 'vcex_portfolio_carousel', 'category' => wpex_get_theme_branding(), 'icon' => 'vcex-portfolio-carousel vcex-icon fa fa-folder-open', 'params' => array(array('type' => 'textfield', 'heading' => esc_html__('Unique Id', 'total'), 'param_name' => 'unique_id'), array('type' => 'textfield', 'heading' => esc_html__('Custom Classes', 'total'), 'param_name' => 'classes'), array('type' => 'dropdown', 'heading' => esc_html__('Visibility', 'total'), 'param_name' => 'visibility', 'value' => array_flip(wpex_visibility())), array('type' => 'dropdown', 'heading' => esc_html__('Appear Animation', 'total'), 'param_name' => 'css_animation', 'value' => array_flip(wpex_css_animations())), array('type' => 'dropdown', 'heading' => esc_html__('Arrows?', 'total'), 'param_name' => 'arrows', 'value' => array(__('Yes', 'total') => 'true', __('No', 'total') => 'false')), array('type' => 'dropdown', 'heading' => esc_html__('Dots?', 'total'), 'param_name' => 'dots', 'value' => array(__('No', 'total') => 'false', __('Yes', '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(__('Yes', 'total') => 'true', __('No', 'total') => 'false')), 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' => 'dropdown', 'heading' => esc_html__('Infinite Loop', 'total'), 'param_name' => 'infinite_loop', 'value' => array(__('Yes', 'total') => 'true', __('No', 'total') => 'false')), array('type' => 'dropdown', 'heading' => esc_html__('Center Item', 'total'), 'param_name' => 'center', 'value' => array(__('No', 'total') => 'false', __('Yes', '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__('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__('Enable', 'total'), 'param_name' => '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' => 'thumbnail_link', 'value' => array(__('Default', 'total') => '', __('Post', 'total') => 'post', __('Lightbox', 'total') => 'lightbox', __('None', 'total') => 'none'), 'group' => esc_html__('Image', 'total'), 'dependency' => array('element' => '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' => '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' => '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' => 'media', 'value' => 'true')), 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'), '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', 'std' => '', 'value' => array_flip(wpex_font_weights()), 'group' => esc_html__('Title', 'total'), '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' => '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 "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') => 'default', __('No Margins', 'total') => 'no-margins'), '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_flip(wpex_alignments()), '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 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__('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__('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'))));
}
コード例 #2
0
ファイル: vc-helpers.php プロジェクト: iq007/MadScape
/**
 * Overlay options for the VC
 *
 * @since   1.4.0
 */
function vcex_overlays_array($group = '', $style = 'default')
{
    if (!function_exists('wpex_overlay_styles_array')) {
        return;
    }
    $overlays = wpex_overlay_styles_array($style);
    if (!is_array($overlays)) {
        return;
    }
    $overlays = array_flip($overlays);
    $group = !empty($group) ? $group : esc_html__('Image', 'total');
    return array('type' => 'dropdown', 'heading' => esc_html__('Image Overlay Style', 'total'), 'param_name' => 'overlay_style', 'value' => $overlays, 'group' => $group);
}
コード例 #3
0
<?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')))));
コード例 #4
0
ファイル: staff.php プロジェクト: sergey-h/naman
/*-----------------------------------------------------------------------------------*/
/*	- Archives
/*-----------------------------------------------------------------------------------*/
$wp_customize->add_section('wpex_staff_archives', array('title' => __('Archives', 'wpex'), 'priority' => 2, 'panel' => 'wpex_staff', 'description' => __('The following options are for the post type category and tag archives.', 'wpex')));
$wp_customize->add_setting('staff_archive_layout', array('type' => 'theme_mod', 'default' => 'full-width'));
$wp_customize->add_control('staff_archive_layout', array('label' => __('Layout', 'wpex'), 'section' => 'wpex_staff_archives', 'settings' => 'staff_archive_layout', 'priority' => 1, 'type' => 'select', 'choices' => array('right-sidebar' => __('Right Sidebar', 'wpex'), 'left-sidebar' => __('Left Sidebar', 'wpex'), 'full-width' => __('No Sidebar', 'wpex'))));
$wp_customize->add_setting('staff_archive_grid_style', array('type' => 'theme_mod', 'default' => 'fit-rows'));
$wp_customize->add_control('staff_archive_grid_style', array('label' => __('Grid Style', 'wpex'), 'section' => 'wpex_staff_archives', 'settings' => 'staff_archive_grid_style', 'priority' => 2, 'type' => 'select', 'choices' => array('fit-rows' => __('Fit Rows', 'wpex'), 'masonry' => __('Masonry', 'wpex'), 'no-margins' => __('No Margins', 'wpex'))));
$wp_customize->add_setting('staff_archive_grid_equal_heights', array('type' => 'theme_mod', 'default' => ''));
$wp_customize->add_control('staff_archive_grid_equal_heights', array('label' => __('Equal Heights', 'wpex'), 'section' => 'wpex_staff_archives', 'settings' => 'staff_archive_grid_equal_heights', 'priority' => 3, 'type' => 'checkbox'));
$wp_customize->add_setting('staff_entry_columns', array('type' => 'theme_mod', 'default' => '4'));
$wp_customize->add_control('staff_entry_columns', array('label' => __('Columns', 'wpex'), 'section' => 'wpex_staff_archives', 'settings' => 'staff_entry_columns', 'priority' => 4, 'type' => 'select', 'choices' => array('1' => '1', '2' => '2', '3' => '3', '4' => '4', '5' => '5', '6' => '6')));
$wp_customize->add_setting('staff_archive_posts_per_page', array('type' => 'theme_mod', 'default' => '12'));
$wp_customize->add_control('staff_archive_posts_per_page', array('label' => __('Posts Per Page', 'wpex'), 'section' => 'wpex_staff_archives', 'settings' => 'staff_archive_posts_per_page', 'priority' => 5, 'type' => 'text'));
$wp_customize->add_setting('staff_entry_overlay_style', array('type' => 'theme_mod', 'default' => 'none'));
$wp_customize->add_control('staff_entry_overlay_style', array('label' => __('Archives Entry: Overlay Style', 'wpex'), 'section' => 'wpex_staff_archives', 'settings' => 'staff_entry_overlay_style', 'priority' => 6, 'type' => 'select', 'choices' => wpex_overlay_styles_array()));
$wp_customize->add_setting('staff_entry_details', array('type' => 'theme_mod', 'default' => '1'));
$wp_customize->add_control('staff_entry_details', array('label' => __('Archives Entry: Details', 'wpex'), 'section' => 'wpex_staff_archives', 'settings' => 'staff_entry_details', 'priority' => 7, 'type' => 'checkbox'));
$wp_customize->add_setting('staff_entry_excerpt_length', array('type' => 'theme_mod', 'default' => '20'));
$wp_customize->add_control('staff_entry_excerpt_length', array('label' => __('Archives Entry: Excerpt Length', 'wpex'), 'section' => 'wpex_staff_archives', 'settings' => 'staff_entry_excerpt_length', 'priority' => 8, 'type' => 'text'));
$wp_customize->add_setting('staff_entry_social', array('type' => 'theme_mod', 'default' => '1'));
$wp_customize->add_control('staff_entry_social', array('label' => __('Archives Entry: Social Links', 'wpex'), 'section' => 'wpex_staff_archives', 'settings' => 'staff_entry_social', 'priority' => 9, 'type' => 'checkbox'));
/*-----------------------------------------------------------------------------------*/
/*	- Single
/*-----------------------------------------------------------------------------------*/
$wp_customize->add_section('wpex_staff_single', array('title' => __('Single', 'wpex'), 'priority' => 3, 'panel' => 'wpex_staff'));
$wp_customize->add_setting('staff_single_layout', array('type' => 'theme_mod', 'default' => 'full-width'));
$wp_customize->add_control('staff_single_layout', array('label' => __('Layout', 'wpex'), 'section' => 'wpex_staff_single', 'settings' => 'staff_single_layout', 'priority' => 1, 'type' => 'select', 'choices' => array('right-sidebar' => __('Right Sidebar', 'wpex'), 'left-sidebar' => __('Left Sidebar', 'wpex'), 'full-width' => __('No Sidebar', 'wpex'))));
$wp_customize->add_setting('staff_single_media', array('type' => 'theme_mod', 'default' => ''));
$wp_customize->add_control('staff_single_media', array('label' => __('Auto Post Media', 'wpex'), 'section' => 'wpex_staff_single', 'settings' => 'staff_single_media', 'priority' => 1, 'type' => 'checkbox', 'description' => __('Enable if you want to automatically display your featured image or media at the top of posts.', 'wpex')));
$wp_customize->add_setting('staff_comments', array('type' => 'theme_mod', 'default' => ''));
コード例 #5
0
ファイル: staff_grid.php プロジェクト: iq007/MadScape
/**
 * 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')));
}
コード例 #6
0
/**
 * 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')))));
}
コード例 #7
0
ファイル: blog.php プロジェクト: iq007/MadScape
<?php

/**
 * Blog Customizer Options
 *
 * @package Total WordPress Theme
 * @subpackage Customizer
 * @version 3.3.0
 */
// Exit if accessed directly
if (!defined('ABSPATH')) {
    exit;
}
// Entry meta
$entry_meta_defaults = array('date', 'author', 'categories', 'comments');
$entry_meta_choices = array('date' => esc_html__('Date', 'total'), 'author' => esc_html__('Author', 'total'), 'categories' => esc_html__('Categories', 'total'), 'comments' => esc_html__('Comments', 'total'));
// Entry Blocks
$entry_blocks = apply_filters('wpex_blog_entry_blocks', array('featured_media' => esc_html__('Media', 'total'), 'title' => esc_html__('Title', 'total'), 'meta' => esc_html__('Meta', 'total'), 'excerpt_content' => esc_html__('Excerpt', 'total'), 'readmore' => esc_html__('Read More', 'total'), 'social_share' => esc_html__('Social Share', 'total')));
// Single Blocks
$single_blocks = apply_filters('wpex_blog_single_blocks', array('featured_media' => esc_html__('Featured Media', 'total'), 'title' => esc_html__('Title', 'total'), 'meta' => esc_html__('Meta', 'total'), 'post_series' => esc_html__('Post Series', 'total'), 'the_content' => esc_html__('Content', 'total'), 'post_tags' => esc_html__('Post Tags', 'total'), 'social_share' => esc_html__('Social Share', 'total'), 'author_bio' => esc_html__('Author Bio', 'total'), 'related_posts' => esc_html__('Related Posts', 'total'), 'comments' => esc_html__('Comments', 'total')));
// General
$this->sections['wpex_blog_general'] = array('title' => esc_html__('General', 'total'), 'panel' => 'wpex_blog', 'settings' => array(array('id' => 'blog_page', 'control' => array('label' => esc_html__('Main Page', 'total'), 'type' => 'wpex-dropdown-pages')), array('id' => 'blog_cats_exclude', 'control' => array('label' => esc_html__('Exclude Categories From Blog', 'total'), 'type' => 'text', 'desc' => esc_html__('Enter the ID\'s of categories to exclude from the blog template or homepage blog seperated by a comma (no spaces).', 'total')))));
// Archives
$this->sections['wpex_blog_archives'] = array('title' => esc_html__('Archives & Entries', 'total'), 'panel' => 'wpex_blog', 'settings' => array(array('id' => 'category_description_position', 'default' => '', 'control' => array('label' => esc_html__('Category Description Position', 'total'), 'type' => 'select', 'choices' => array('' => esc_html__('Default', 'total'), 'under_title' => esc_html__('Under Title', 'total'), 'above_loop' => esc_html__('Above Loop', 'total'), 'hidden' => esc_html__('Hidden', 'total')))), array('id' => 'blog_archives_layout', 'default' => '', 'control' => array('label' => esc_html__('Layout', 'total'), 'type' => 'select', 'choices' => array('' => esc_html__('Default', 'total'), 'right-sidebar' => esc_html__('Right Sidebar', 'total'), 'left-sidebar' => esc_html__('Left Sidebar', 'total'), 'full-width' => esc_html__('No Sidebar', 'total')))), array('id' => 'blog_style', 'default' => '', 'control' => array('label' => esc_html__('Style', 'total'), 'type' => 'select', 'choices' => array('' => esc_html__('Default', 'total'), 'large-image-entry-style' => esc_html__('Large Image', 'total'), 'thumbnail-entry-style' => esc_html__('Left Thumbnail', 'total'), 'grid-entry-style' => esc_html__('Grid', 'total')))), array('id' => 'blog_grid_columns', 'default' => '', 'control' => array('label' => esc_html__('Grid Columns', 'total'), 'type' => 'select', 'active_callback' => 'wpex_cac_grid_blog_style', 'choices' => array('' => esc_html__('Default', 'total'), '2' => '2', '3' => '3', '4' => '4', '5' => '5', '6' => '6'))), array('id' => 'blog_grid_style', 'default' => '', 'control' => array('label' => esc_html__('Grid Style', 'total'), 'type' => 'select', 'std' => '', 'active_callback' => 'wpex_cac_grid_blog_style', 'choices' => array('' => esc_html__('Default', 'total'), 'fit-rows' => esc_html__('Fit Rows', 'total'), 'masonry' => esc_html__('Masonry', 'total')))), array('id' => 'blog_archive_grid_equal_heights', 'control' => array('label' => esc_html__('Equal Heights', 'total'), 'type' => 'checkbox', 'active_callback' => 'wpex_cac_blog_supports_equal_heights')), array('id' => 'blog_pagination_style', 'default' => '', 'control' => array('label' => esc_html__('Pagination Style', 'total'), 'type' => 'select', 'choices' => array('' => esc_html__('Default', 'total'), 'standard' => esc_html__('Standard', 'total'), 'infinite_scroll' => esc_html__('Infinite Scroll', 'total'), 'next_prev' => esc_html__('Next/Prev', 'total')))), array('id' => 'blog_entry_image_lightbox', 'control' => array('label' => esc_html__('Image Lightbox', 'total'), 'type' => 'checkbox', 'active_callback' => 'wpex_cac_has_blog_entry_media')), array('id' => 'blog_entry_overlay', 'control' => array('label' => esc_html__('Overlay Style', 'total'), 'type' => 'select', 'choices' => wpex_overlay_styles_array(), 'active_callback' => 'wpex_cac_has_blog_entry_media')), array('id' => 'blog_entry_image_hover_animation', 'control' => array('label' => esc_html__('Image Hover Animation', 'total'), 'type' => 'select', 'choices' => wpex_image_hovers(), 'active_callback' => 'wpex_cac_has_blog_entry_media')), array('id' => 'blog_exceprt', 'default' => 'on', 'control' => array('label' => esc_html__('Auto Excerpts', 'total'), 'type' => 'checkbox', 'active_callback' => 'wpex_cac_has_blog_entry_excerpt')), array('id' => 'blog_excerpt_length', 'default' => '40', 'control' => array('label' => esc_html__('Excerpt length', 'total'), 'type' => 'text', 'active_callback' => 'wpex_cac_has_blog_entry_excerpt')), array('id' => 'blog_entry_readmore_text', 'default' => esc_html__('Read More', 'total'), 'control' => array('label' => esc_html__('Read More Button Text', 'total'), 'type' => 'text', 'active_callback' => 'wpex_cac_has_blog_entry_readmore')), array('id' => 'blog_entry_author_avatar', 'control' => array('label' => esc_html__('Author Avatar', 'total'), 'type' => 'checkbox')), array('id' => 'blog_entry_video_output', 'default' => true, 'control' => array('label' => esc_html__('Display Featured Videos?', 'total'), 'type' => 'checkbox')), array('id' => 'blog_entry_meta_sections', 'default' => $entry_meta_defaults, 'control' => array('label' => esc_html__('Meta', 'total'), 'type' => 'multiple-select', 'object' => 'WPEX_Customize_Multicheck_Control', 'choices' => $entry_meta_choices, 'active_callback' => 'wpex_cac_has_blog_entry_meta')), array('id' => 'blog_entry_composer', 'default' => 'featured_media,title,meta,excerpt_content,readmore', 'control' => array('label' => esc_html__('Entry Layout Elements', 'total'), 'type' => 'wpex-sortable', 'object' => 'WPEX_Customize_Control_Sorter', 'choices' => $entry_blocks, 'desc' => esc_html__('Click and drag and drop elements to re-order them.', 'total')))));
// Single
$this->sections['wpex_blog_single'] = array('title' => esc_html__('Single', 'total'), 'panel' => 'wpex_blog', 'settings' => array(array('id' => 'blog_single_layout', 'default' => 'right-sidebar', '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' => 'blog_single_header', 'default' => 'custom_text', 'control' => array('label' => esc_html__('Header Displays', 'total'), 'type' => 'select', 'choices' => array('custom_text' => esc_html__('Custom Text', 'total'), 'post_title' => esc_html__('Post Title', 'total'), 'first_category' => esc_html__('First Category', 'total')))), array('id' => 'blog_single_header_custom_text', 'transport' => 'postMessage', 'default' => esc_html__('Blog', 'total'), 'control' => array('label' => esc_html__('Header Custom Text', 'total'), 'type' => 'text', 'active_callback' => 'wpex_cac_blog_page_header_custom_text')), array('id' => 'blog_post_image_lightbox', 'control' => array('label' => esc_html__('Featured Image Lightbox', 'total'), 'type' => 'checkbox', 'active_callback' => 'wpex_cac_has_blog_single_media')), array('id' => 'blog_thumbnail_caption', 'control' => array('label' => esc_html__('Featured Image Caption', 'total'), 'type' => 'checkbox', 'active_callback' => 'wpex_cac_has_blog_single_media')), array('id' => 'blog_next_prev', 'default' => true, 'control' => array('label' => esc_html__('Next & Previous Links', 'total'), 'type' => 'checkbox')), array('id' => 'blog_post_meta_sections', 'default' => $entry_meta_defaults, 'control' => array('label' => esc_html__('Meta', 'total'), 'type' => 'multiple-select', 'object' => 'WPEX_Customize_Multicheck_Control', 'choices' => $entry_meta_choices, 'active_callback' => 'wpex_cac_has_blog_meta')), array('id' => 'blog_related_title', 'transport' => 'postMessage', 'control' => array('label' => esc_html__('Related Posts Title', 'total'), 'type' => 'text', 'active_callback' => 'wpex_cac_has_blog_related')), array('id' => 'blog_related_count', 'default' => '3', 'control' => array('label' => esc_html__('Related Posts Count', 'total'), 'type' => 'text', 'active_callback' => 'wpex_cac_has_blog_related')), array('id' => 'blog_related_columns', 'default' => '3', 'control' => array('label' => esc_html__('Related Posts Columns', 'total'), 'type' => 'select', 'active_callback' => 'wpex_cac_has_blog_related', 'choices' => array('1' => '1', '2' => '2', '3' => '3', '4' => '4', '5' => '5', '6' => '6'))), array('id' => 'blog_related_overlay', 'control' => array('label' => esc_html__('Overlay Style', 'total'), 'type' => 'select', 'choices' => wpex_overlay_styles_array(), 'active_callback' => 'wpex_cac_has_blog_related')), array('id' => 'blog_related_excerpt', 'default' => 'on', 'control' => array('label' => esc_html__('Related Posts Excerpt', 'total'), 'type' => 'checkbox', 'active_callback' => 'wpex_cac_has_blog_related')), array('id' => 'blog_related_excerpt_length', 'default' => '15', 'control' => array('label' => esc_html__('Related Posts Excerpt Length', 'total'), 'type' => 'text', 'active_callback' => 'wpex_cac_has_blog_related')), array('id' => 'blog_single_composer', 'default' => 'featured_media,title,meta,post_series,the_content,post_tags,social_share,author_bio,related_posts,comments', 'control' => array('label' => esc_html__('Single Layout Elements', 'total'), 'type' => 'wpex-sortable', 'object' => 'WPEX_Customize_Control_Sorter', 'choices' => $single_blocks, 'desc' => esc_html__('Click and drag and drop elements to re-order them.', 'total')))));
コード例 #8
0
ファイル: image_carousel.php プロジェクト: iq007/MadScape
/**
 * Adds the shortcode to the Visual Composer
 *
 * @since 1.4.1
 */
function vcex_image_carousel_vc_map()
{
    return array('name' => esc_html__('Image Carousel', 'total'), 'description' => esc_html__('Image based jQuery carousel', 'total'), 'base' => 'vcex_image_carousel', 'category' => wpex_get_theme_branding(), 'icon' => 'vcex-image-carousel vcex-icon fa fa-picture-o', 'params' => array(array('type' => 'attach_images', 'admin_label' => true, 'heading' => esc_html__('Attach Images', 'total'), 'param_name' => 'image_ids', 'group' => esc_html__('Gallery', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Post Gallery', 'total'), 'param_name' => 'post_gallery', 'group' => esc_html__('Gallery', 'total'), 'description' => esc_html__('Enable to display images from the current post "Image Gallery".', 'total'), 'value' => array(__('No', 'total') => '', __('Yes', 'total') => 'true')), array('type' => 'dropdown', 'admin_label' => true, 'heading' => esc_html__('Randomize Images', 'total'), 'param_name' => 'randomize_images', 'group' => esc_html__('Gallery', 'total'), 'value' => array(__('No', 'total') => '', __('Yes', 'total') => 'true')), 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__('Style', 'total'), 'param_name' => 'style', 'value' => array(__('Default', 'total') => 'default', __('No Margins', 'total') => 'no-margins')), array('type' => 'dropdown', 'heading' => esc_html__('Arrows?', 'total'), 'param_name' => 'arrows', 'value' => array(__('Yes', 'total') => 'true', __('No', 'total') => 'false')), array('type' => 'dropdown', 'heading' => esc_html__('Dots?', 'total'), 'param_name' => 'dots', 'value' => array(__('No', 'total') => 'false', __('Yes', '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', 'std' => 'true', 'value' => array(__('Yes', 'total') => 'true', __('No', 'total') => 'false')), 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' => 'dropdown', 'heading' => esc_html__('Infinite Loop', 'total'), 'param_name' => 'infinite_loop', 'std' => 'true', 'value' => array(__('Yes', 'total') => 'true', __('No', 'total') => 'false')), array('type' => 'dropdown', 'heading' => esc_html__('Center Item', 'total'), 'param_name' => 'center', 'value' => array(__('No', 'total') => 'false', __('Yes', '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' => '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()), 'group' => esc_html__('Image', 'total'), 'dependency' => array('element' => 'img_size', 'value' => 'wpex_custom')), array('type' => 'textfield', 'heading' => esc_html__('Image Crop Width', 'total'), 'param_name' => 'img_width', 'group' => esc_html__('Image', 'total'), 'dependency' => array('element' => 'img_size', 'value' => 'wpex_custom')), array('type' => 'textfield', 'heading' => esc_html__('Image Crop Height', 'total'), 'param_name' => 'img_height', 'description' => esc_html__('Enter a height in pixels. Leave empty to disable vertical cropping and keep image proportions.', 'total'), 'group' => esc_html__('Image', 'total'), 'dependency' => array('element' => 'img_size', 'value' => 'wpex_custom')), array('type' => 'dropdown', 'heading' => esc_html__('Rounded Image?', 'total'), 'param_name' => 'rounded_image', 'group' => esc_html__('Image', 'total'), 'value' => array(__('No', 'total') => 'no', __('Yes', 'total') => 'yes')), 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' => 'dropdown', 'heading' => esc_html__('CSS3 Image 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__('Image Link', 'total'), 'param_name' => 'thumbnail_link', 'std' => 'none', 'value' => array(__('None', 'total') => 'none', __('Lightbox', 'total') => 'lightbox', __('Custom Links', 'total') => 'custom_link'), 'group' => esc_html__('Links', 'total')), array('type' => 'exploded_textarea', 'heading' => esc_html__('Custom links', 'total'), 'param_name' => 'custom_links', 'description' => esc_html__('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.', 'total'), 'group' => esc_html__('Links', 'total'), 'dependency' => array('element' => 'thumbnail_link', 'value' => 'custom_link')), array('type' => 'dropdown', 'heading' => esc_html__('Custom link target', 'total'), 'param_name' => 'custom_links_target', 'description' => esc_html__('Select where to open custom links.', 'total'), 'group' => esc_html__('Links', 'total'), 'value' => array(__('Same window', 'total') => 'self', __('New window', 'total') => '_blank'), 'dependency' => array('element' => 'thumbnail_link', 'value' => 'custom_link')), array('type' => 'dropdown', 'heading' => esc_html__('Lightbox Skin', 'total'), 'param_name' => 'lightbox_skin', 'std' => '', 'value' => vcex_ilightbox_skins(), 'group' => esc_html__('Links', 'total'), 'dependency' => array('element' => 'thumbnail_link', 'value' => 'lightbox')), array('type' => 'dropdown', 'heading' => esc_html__('Title', 'total'), 'param_name' => 'title', 'std' => 'no', 'group' => esc_html__('Title', 'total'), 'value' => array(__('No', 'total') => 'no', __('Yes', 'total') => 'yes')), array('type' => 'dropdown', 'heading' => esc_html__('Title Based On Image', 'total'), 'param_name' => 'title_type', 'value' => array(__('Default', 'total') => 'default', __('Title', 'total') => 'title', __('Alt', 'total') => 'alt'), 'group' => esc_html__('Title', 'total'), 'dependency' => array('element' => 'title', 'value' => 'yes')), array('type' => 'colorpicker', 'heading' => esc_html__('Color', 'total'), 'param_name' => 'content_heading_color', 'group' => esc_html__('Title', 'total'), 'dependency' => array('element' => 'title', 'value' => 'yes')), array('type' => 'dropdown', 'heading' => esc_html__('Font Weight', 'total'), 'param_name' => 'content_heading_weight', 'std' => '', 'value' => array_flip(wpex_font_weights()), 'group' => esc_html__('Title', 'total'), 'dependency' => array('element' => 'title', 'value' => 'yes')), 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' => 'yes')), array('type' => 'textfield', 'heading' => esc_html__('Font Size', 'total'), 'param_name' => 'content_heading_size', 'dependency' => array('element' => 'title', 'value' => 'yes'), 'group' => esc_html__('Title', 'total')), 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'), 'dependency' => array('element' => 'title', 'value' => 'yes')), array('type' => 'dropdown', 'heading' => esc_html__('Display Caption', 'total'), 'param_name' => 'caption', 'group' => esc_html__('Caption', 'total'), 'value' => array(__('No', 'total') => 'no', __('Yes', 'total') => 'yes')), array('type' => 'colorpicker', 'heading' => esc_html__('Color', 'total'), 'param_name' => 'content_color', 'group' => esc_html__('Caption', 'total'), 'dependency' => array('element' => 'caption', 'value' => 'yes')), array('type' => 'textfield', 'heading' => esc_html__('Font Size', 'total'), 'param_name' => 'content_font_size', 'group' => esc_html__('Caption', 'total'), 'dependency' => array('element' => 'caption', 'value' => 'yes')), 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', 'group' => esc_html__('Design', 'total'), 'value' => array(__('Default', 'total') => '', __('Left', 'total') => 'left', __('Right', 'total') => 'right', __('Center', 'total') => 'center')), 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__('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'))));
}
コード例 #9
0
ファイル: post_type_carousel.php プロジェクト: iq007/MadScape
/**
 * Adds the shortcode to the Visual Composer
 *
 * @since 1.4.1
 */
function vcex_post_type_carousel_map()
{
    return array('name' => esc_html__('Post Types Carousel', 'total'), 'description' => esc_html__('Posts carousel', 'total'), 'base' => 'vcex_post_type_carousel', 'category' => wpex_get_theme_branding(), 'icon' => 'vcex-post-type-carousel vcex-icon fa fa-files-o', 'params' => array(array('type' => 'textfield', 'heading' => esc_html__('Unique Id', 'total'), 'param_name' => 'unique_id'), array('type' => 'textfield', 'heading' => esc_html__('Custom Classes', 'total'), 'param_name' => 'classes'), array('type' => 'dropdown', 'heading' => esc_html__('Visibility', 'total'), 'param_name' => 'visibility', 'value' => array_flip(wpex_visibility())), array('type' => 'dropdown', 'heading' => esc_html__('Appear Animation', 'total'), 'param_name' => 'css_animation', 'value' => array_flip(wpex_css_animations())), array('type' => 'dropdown', 'heading' => esc_html__('Style', 'total'), 'param_name' => 'style', 'value' => array(__('Default', 'total') => 'default', __('No Margins', 'total') => 'no-margins')), array('type' => 'dropdown', 'heading' => esc_html__('Arrows?', 'total'), 'param_name' => 'arrows', 'value' => array(esc_html__('True', 'total') => 'true', esc_html__('False', 'total') => 'false')), array('type' => 'dropdown', 'heading' => esc_html__('Dots?', 'total'), 'param_name' => 'dots', 'value' => array(esc_html__('False', 'total') => 'false', esc_html__('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(esc_html__('False', 'total') => 'false', esc_html__('True', 'total') => 'true')), 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' => 'dropdown', 'heading' => esc_html__('Infinite Loop', 'total'), 'param_name' => 'infinite_loop', 'value' => array(esc_html__('True', 'total') => 'true', esc_html__('False', 'total') => 'false')), array('type' => 'dropdown', 'heading' => esc_html__('Center Item', 'total'), 'param_name' => 'center', 'value' => array(esc_html__('False', 'total') => 'false', esc_html__('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__('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' => 'posttypes', 'heading' => esc_html__('Post types', 'total'), 'param_name' => 'post_types', 'std' => 'post', 'group' => esc_html__('Query', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Limit By Post ID\'s', 'total'), 'param_name' => 'posts_in', 'group' => esc_html__('Query', 'total'), 'description' => esc_html__('Seperate by a comma.', 'total')), array('type' => 'autocomplete', 'heading' => esc_html__('Limit By Author', 'total'), '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' => esc_html__('Query', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Query by Taxonomy', 'total'), 'param_name' => 'tax_query', 'value' => array(__('No', 'total') => 'false', __('Yes', 'total') => 'true'), 'group' => esc_html__('Query', 'total')), array('type' => 'autocomplete', 'heading' => esc_html__('Taxonomy Name', 'total'), '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' => esc_html__('Query', 'total'), 'description' => esc_html__('If you do not see your taxonomy in the dropdown you can still enter the taxonomy name manually.', 'total')), array('type' => 'autocomplete', 'heading' => esc_html__('Terms', 'total'), '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' => esc_html__('Query', 'total'), 'description' => esc_html__('If you do not see your terms in the dropdown you can still enter the term slugs manually seperated by a space.', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Ignore Sticky Posts', 'total'), 'param_name' => 'ignore_sticky_posts', 'value' => array(esc_html__('No', 'total') => '', esc_html__('Yes', 'total') => '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') => 'default', __('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__('Post With Thumbnails Only', 'total'), 'param_name' => 'thumbnail_query', 'value' => array(__('No', 'total') => 'false', __('Yes', 'total') => 'true'), 'group' => esc_html__('Query', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Enable', 'total'), 'param_name' => 'media', 'value' => array(esc_html__('Yes', 'total') => 'true', esc_html__('No', 'total') => 'false'), 'group' => esc_html__('Image', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Image Links To', 'total'), 'param_name' => 'thumbnail_link', 'value' => array(esc_html__('Default', 'total') => '', esc_html__('Post', 'total') => 'post', esc_html__('Lightbox', 'total') => 'lightbox', esc_html__('None', 'total') => 'none'), 'group' => esc_html__('Image', 'total'), 'dependency' => array('element' => 'media', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Image Size', 'total'), 'param_name' => 'img_size', 'std' => 'full', 'value' => vcex_image_sizes(), 'group' => esc_html__('Image', 'total'), 'dependency' => array('element' => '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()), 'group' => esc_html__('Image', 'total'), 'dependency' => array('element' => 'img_size', 'value' => 'wpex_custom')), array('type' => 'textfield', 'heading' => esc_html__('Image Crop Width', 'total'), 'param_name' => 'img_width', 'group' => esc_html__('Image', 'total'), 'dependency' => array('element' => 'img_size', 'value' => 'wpex_custom')), array('type' => 'textfield', 'heading' => esc_html__('Image Crop Height', 'total'), 'param_name' => 'img_height', 'description' => esc_html__('Enter a height in pixels. Leave empty to disable vertical cropping and keep image proportions.', 'total'), 'group' => esc_html__('Image', 'total'), 'dependency' => array('element' => 'img_size', 'value' => 'wpex_custom')), 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' => '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' => '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' => 'media', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Enable', 'total'), 'param_name' => 'title', 'value' => array(esc_html__('Yes', 'total') => 'true', esc_html__('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'), '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' => 'date', 'value' => array(esc_html__('Yes', 'total') => 'true', esc_html__('No', 'total') => 'false'), 'group' => esc_html__('Date', 'total')), array('type' => 'colorpicker', 'heading' => esc_html__('Color', 'total'), 'param_name' => 'date_color', 'group' => esc_html__('Date', 'total'), 'dependency' => array('element' => 'date', 'value' => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Font Size', 'total'), 'param_name' => 'date_font_size', 'group' => esc_html__('Date', 'total'), 'dependency' => array('element' => 'date', 'value' => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Margin', 'total'), 'param_name' => 'date_margin', 'description' => esc_html__('Please use the following format: top right bottom left.', 'total'), 'group' => esc_html__('Date', 'total'), 'dependency' => array('element' => 'title', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Enable', 'total'), 'param_name' => 'excerpt', 'value' => array(esc_html__('Yes', 'total') => 'true', esc_html__('No', 'total') => 'false'), 'group' => esc_html__('Excerpt', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Length', 'total'), 'param_name' => 'excerpt_length', 'value' => '15', '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__('Text Color', 'total'), 'param_name' => 'content_color', 'group' => esc_html__('Excerpt', 'total'), 'dependency' => array('element' => 'excerpt', 'value' => 'true')), 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')), 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' => 'css_editor', 'heading' => esc_html__('Entry CSS', 'total'), 'param_name' => 'entry_css', 'group' => esc_html__('Entry CSS', 'total'))));
}
コード例 #10
0
ファイル: portfolio.php プロジェクト: iq007/MadScape
<?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')))));
コード例 #11
0
ファイル: functions.php プロジェクト: sergey-h/naman
 function vcex_overlays_array($style = 'default')
 {
     if (!function_exists('wpex_overlay_styles_array')) {
         return;
     }
     $overlays = wpex_overlay_styles_array($style);
     if (!is_array($overlays)) {
         return;
     }
     $overlays = array_flip($overlays);
     return array("type" => "dropdown", "heading" => __("Image Overlay Style", 'wpex'), "param_name" => "overlay_style", "value" => $overlays, 'group' => __('Image', 'wpex'));
 }
コード例 #12
0
/**
 * 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')))));
}
コード例 #13
0
ファイル: migrate.php プロジェクト: sergey-h/naman2
function wpex_legacy_redux_array()
{
    /*-----------------------------------------------------------------------------------*/
    /*	- General
    	/*-----------------------------------------------------------------------------------*/
    $sections[] = array('id' => 'general', 'title' => __('General', 'wpex'), 'header' => __('Welcome to the Simple Options Framework Demo', 'wpex'), 'icon' => 'el-icon-cog el-icon-small', 'customizer' => false, 'fields' => array(array('id' => 'theme_branding', 'url' => true, 'type' => 'text', 'title' => __('Theme Branding', 'wpex'), 'default' => 'Total'), array('id' => 'logo_icon', 'type' => 'select', 'title' => __('Text Logo Icon', 'wpex'), 'default' => ''), array('id' => 'logo_icon_right_margin', 'type' => 'text', 'title' => __('Text Logo Icon Right Margin', 'wpex')), array('id' => 'logo_icon_color', 'type' => 'color', 'transparent' => false, 'title' => __('Text Logo Icon Color', 'wpex'), 'target_element' => '#site-logo .fa', 'target_style' => 'color'), array('id' => 'custom_logo', 'url' => true, 'type' => 'media', 'title' => __('Logo', 'wpex'), 'read-only' => false, 'default' => array('url' => get_template_directory_uri() . '/images/logo/logo.png')), array('id' => 'retina_logo', 'url' => true, 'type' => 'media', 'title' => __('Retina Logo', 'wpex'), 'default' => array('url' => get_template_directory_uri() . '/images/logo/logo-retina.png')), array('id' => 'retina_logo_height', 'type' => 'text', 'default' => '40px', 'title' => __('Standard Logo Height', 'wpex')), array('id' => 'favicon', 'url' => true, 'type' => 'media', 'title' => __('Favicon', 'wpex'), 'default' => array('url' => get_template_directory_uri() . '/images/favicons/favicon.png')), array('id' => 'iphone_icon', 'url' => true, 'type' => 'media', 'title' => __('Apple iPhone Icon ', 'wpex'), 'default' => array('url' => get_template_directory_uri() . '/images/favicons/apple-touch-icon.png')), array('id' => 'ipad_icon', 'url' => true, 'type' => 'media', 'title' => __('Apple iPad Icon ', 'wpex'), 'default' => array('url' => get_template_directory_uri() . '/images/favicons/apple-touch-icon-76x76.png')), array('id' => 'iphone_icon_retina', 'url' => true, 'type' => 'media', 'title' => __('Apple iPhone Retina Icon ', 'wpex'), 'default' => array('url' => get_template_directory_uri() . '/images/favicons/apple-touch-icon-120x120.png')), array('id' => 'ipad_icon_retina', 'url' => true, 'type' => 'media', 'title' => __('Apple iPad Retina Icon ', 'wpex'), 'default' => array('url' => get_template_directory_uri() . '/images/favicons/apple-touch-icon-152x152.png')), array('id' => 'tracking', 'type' => 'textarea', 'title' => __('Tracking Code', 'wpex'), 'default' => "")));
    /*-----------------------------------------------------------------------------------*/
    /*	- Layout
    	/*-----------------------------------------------------------------------------------*/
    $sections[] = array('id' => 'layout', 'title' => __('Layout', 'wpex'), 'icon' => 'el-icon-website', 'customizer' => false, 'fields' => array(array('id' => 'main_layout_style', 'type' => 'select', 'title' => __('Layout Style', 'wpex'), 'options' => array('full-width' => __('Full Width', 'wpex'), 'boxed' => __('Boxed', 'wpex')), 'default' => 'full-width'), array('id' => 'boxed_dropdshadow', 'type' => 'switch', 'title' => __('Boxed Layout Drop-Shadow', 'wpex'), 'default' => '1', 'on' => __('On', 'wpex'), 'off' => __('Off', 'wpex')), array('id' => 'boxed_padding', 'type' => 'text', 'title' => __('Boxed Layout Padding', 'wpex'), 'default' => ''), array('id' => 'main_container_width', 'type' => 'text', 'title' => __('Main Container Width', 'wpex'), 'default' => '980px'), array('id' => 'left_container_width', 'type' => 'text', 'title' => __('Left Container Width', 'wpex'), 'default' => '680px'), array('id' => 'sidebar_width', 'type' => 'text', 'title' => __('Sidebar Width', 'wpex'), 'default' => '250px')));
    /*-----------------------------------------------------------------------------------*/
    /*	- Responsive
    	/*-----------------------------------------------------------------------------------*/
    $sections[] = array('id' => 'responsive', 'title' => __('Responsive', 'wpex'), 'icon' => 'el-icon-resize-small', 'customizer' => false, 'fields' => array(array('id' => 'responsive', 'type' => 'switch', 'title' => __('Responsive', 'wpex'), 'subtitle' => __('Enable this option to make your theme compatible with smart phones and tablets.', 'wpex'), 'default' => '1', 'on' => __('On', 'wpex'), 'off' => __('Off', 'wpex')), array('id' => 'mobile_menu_style', 'type' => 'select', 'title' => __('Moble Menu Style', 'wpex'), 'subtitle' => __('Select your style.', 'wpex'), 'default' => 'sidr', 'options' => array('sidr' => __('Sidebar', 'wpex'), 'toggle' => __('Toggle', 'wpex'))), array('id' => 'mobile_menu_sidr_direction', 'type' => 'select', 'title' => __('Sidebar Menu Direction', 'wpex'), 'subtitle' => __('Select which way the sidebar style mobile menu should open from.', 'wpex'), 'default' => 'left', 'options' => array('left' => __('Left', 'wpex'), 'right' => __('Right', 'wpex')), 'required' => array('mobile_menu_style', 'equals', array('sidr'))), array('id' => 'multi-info', 'type' => 'info', 'title' => false, 'desc' => __('Tablet Landscape & Small Desktops (960px - 1280px)', 'wpex')), array('id' => 'tablet_landscape_main_container_width', 'type' => 'text', 'title' => __('Main Container Width', 'wpex'), 'subtitle' => __('Enter your custom main container width in pixels. Keep in mind the iPad tablet width is only 1024px.', 'wpex'), 'default' => '980px'), array('id' => 'tablet_landscape_left_container_width', 'type' => 'text', 'title' => __('Left Content Width', 'wpex'), 'subtitle' => __('Enter your width in pixels or percentage for your left container.', 'wpex'), 'default' => '680px'), array('id' => 'tablet_landscape_sidebar_width', 'type' => 'text', 'title' => __('Sidebar Width', 'wpex'), 'subtitle' => __('Enter your width in pixels or percentage for your sidebar.', 'wpex'), 'default' => '250px'), array('id' => 'multi-info', 'type' => 'info', 'title' => false, 'desc' => __('Tablet Portrait (768px - 959px)', 'wpex')), array('id' => 'tablet_main_container_width', 'type' => 'text', 'title' => __('Main Container Width', 'wpex'), 'subtitle' => __('Enter your custom main container width in pixels.', 'wpex'), 'default' => '700px'), array('id' => 'tablet_left_container_width', 'type' => 'text', 'title' => __('Left Content Width', 'wpex'), 'subtitle' => __('Enter your width in pixels or percentage for your left container.', 'wpex'), 'default' => '100%'), array('id' => 'tablet_sidebar_width', 'type' => 'text', 'title' => __('Sidebar Width', 'wpex'), 'subtitle' => __('Enter your width in pixels or percentage for your sidebar.', 'wpex'), 'default' => '100%'), array('id' => 'multi-info', 'type' => 'info', 'title' => false, 'desc' => __('Phone Size (0 - 767px)', 'wpex')), array('id' => 'mobile_landscape_main_container_width', 'type' => 'text', 'title' => __('Landscape: Main Container Width', 'wpex'), 'subtitle' => __('Enter your custom main container width in pixels.', 'wpex'), 'default' => "90%"), array('id' => 'mobile_portrait_main_container_width', 'type' => 'text', 'title' => __('Portrait: Main Container Width', 'wpex'), 'subtitle' => __('Enter your custom main container width in pixels.', 'wpex'), 'default' => '90%')));
    /*-----------------------------------------------------------------------------------*/
    /*	- Background
    	/*-----------------------------------------------------------------------------------*/
    $sections[] = array('id' => 'background', 'title' => __('Background', 'wpex'), 'icon' => 'el-icon-picture', 'customizer' => false, 'fields' => array(array('id' => 'background_color', 'type' => 'color', 'title' => __('Background Color', 'wpex'), 'default' => '', 'subtitle' => __('Select your custom background color.', 'wpex')), array('id' => 'background_image_toggle', 'type' => 'switch', 'title' => __('Background Image', 'wpex'), 'subtitle' => __('Toggle this option on or off.', 'wpex'), 'default' => '0', 'on' => __('On', 'wpex'), 'off' => __('Off', 'wpex')), array('id' => 'background_image', 'url' => true, 'type' => 'media', 'required' => array('background_image_toggle', 'equals', '1'), 'title' => __('Custom Background Image', 'wpex'), 'default' => '', 'subtitle' => __('Upload a custom background for your site.', 'wpex')), array('id' => 'background_style', 'type' => 'select', 'title' => __('Background Image Style', 'wpex'), 'required' => array('background_image_toggle', 'equals', '1'), 'subtitle' => __('Select your preferred background style.', 'wpex'), 'options' => array('stretched' => __('Stretched', 'wpex'), 'repeat' => __('Repeat', 'wpex'), 'fixed' => __('Center Fixed', 'wpex')), 'default' => 'stretched'), array('id' => 'background_pattern_toggle', 'type' => 'switch', 'title' => __('Background Pattern', 'wpex'), 'subtitle' => __('Toggle this option on or off.', 'wpex'), 'default' => '0', 'on' => __('On', 'wpex'), 'off' => __('Off', 'wpex')), array('id' => 'background_pattern', 'type' => 'image_select', 'title' => __('Pattern', 'wpex'))));
    /*-----------------------------------------------------------------------------------*/
    /*	- Typography
    	/*-----------------------------------------------------------------------------------*/
    $sections[] = array('id' => 'typography', 'title' => __('Typography', 'wpex'), 'icon' => 'el-icon-font', 'fields' => array(array('id' => 'body_font', 'type' => 'typography', 'title' => __('Body', 'wpex'), 'subtitle' => __('Select your custom typography options.', 'wpex'), 'default' => array('font-family' => '', 'font-size' => '', 'font-weight' => '', 'line-height' => '', 'letter-spacing' => '')), array('id' => 'headings_font', 'type' => 'typography', 'title' => __('Main Headings', 'wpex'), 'units' => 'px', 'subtitle' => __('Select your custom typography options.', 'wpex'), 'default' => array('font-family' => '', 'font-weight' => '', 'letter-spacing' => '')), array('id' => 'logo_font', 'type' => 'typography', 'title' => __('Logo', 'wpex'), 'subtitle' => __('Select your custom typography options.', 'wpex'), 'default' => array('font-family' => '', 'font-size' => '', 'font-weight' => '', 'letter-spacing' => '')), array('id' => 'menu_font', 'type' => 'typography', 'title' => __('Menu', 'wpex'), 'units' => 'px', 'subtitle' => __('Select your custom typography options.', 'wpex'), 'default' => array('font-family' => '', 'font-size' => '', 'font-weight' => '', 'letter-spacing' => '')), array('id' => 'menu_dropdown_font', 'type' => 'typography', 'title' => __('Menu Dropdowns', 'wpex'), 'units' => 'px', 'subtitle' => __('Select your custom typography options.', 'wpex'), 'default' => array('font-family' => '', 'font-size' => '', 'font-weight' => '', 'letter-spacing' => '')), array('id' => 'page_header_font', 'type' => 'typography', 'title' => __('Page Title', 'wpex'), 'units' => 'px', 'subtitle' => __('Select your custom typography options.', 'wpex'), 'default' => array('font-family' => '', 'font-size' => '', 'font-weight' => '', 'letter-spacing' => '')), array('id' => 'breadcrumbs_typography', 'type' => 'typography', 'title' => __('Breadcrumbs', 'wpex'), 'units' => 'px', 'subtitle' => __('Select your custom typography options.', 'wpex'), 'default' => array('font-family' => '', 'font-size' => '', 'font-weight' => '', 'letter-spacing' => '')), array('id' => 'sidebar_widget_title_typography', 'type' => 'typography', 'title' => __('Sidebar Widget Title', 'wpex'), 'units' => 'px', 'subtitle' => __('Select your custom typography options.', 'wpex'), 'default' => array('font-family' => '', 'font-size' => '', 'font-weight' => '', 'line-height' => '', 'letter-spacing' => '')), array('id' => 'footer_widget_title_typography', 'type' => 'typography', 'title' => __('Footer Widget Title', 'wpex'), 'units' => 'px', 'subtitle' => __('Select your custom typography options.', 'wpex'), 'default' => array('font-family' => '', 'font-size' => '', 'font-weight' => '', 'line-height' => '', 'letter-spacing' => '')), array('id' => 'load_custom_font_1', 'type' => 'typography')));
    /*-----------------------------------------------------------------------------------*/
    /*	- Styling
    	/*-----------------------------------------------------------------------------------*/
    $sections[] = array('id' => 'styling', 'icon' => 'el-icon-brush', 'title' => __('Styling', 'wpex'), 'customizer' => false, 'fields' => array(array('id' => 'custom_styling', 'type' => 'switch', 'title' => __('Custom Styling', 'wpex'), 'subtitle' => __('Use this option to toggle the custom styling options below on or off. Great for testing purposes.', 'wpex'), 'default' => '1', 'on' => __('On', 'wpex'), 'off' => __('Off', 'wpex'))));
    /*** Styling Site Header ***/
    $sections[] = array('id' => 'styling_site_header', 'title' => __('Styling: Site Header', 'wpex'), 'customizer' => false, 'subsection' => true, 'fields' => array(array('id' => 'header_background', 'type' => 'color'), array('id' => 'logo_color', 'type' => 'color'), array('id' => 'logo_hover_color', 'type' => 'color'), array('id' => 'search_button_background', 'type' => 'color_gradient'), array('id' => 'search_button_color', 'type' => 'color')));
    /*** Styling Navigation ***/
    $sections[] = array('id' => 'styling_navigation', 'title' => __('Styling: Navigation', 'wpex'), 'customizer' => false, 'subsection' => true, 'fields' => array(array('id' => 'menu_background', 'type' => 'color'), array('id' => 'menu_borders', 'type' => 'color'), array('id' => 'menu_link_color', 'type' => 'link_color'), array('id' => 'menu_link_hover_background', 'type' => 'color'), array('id' => 'menu_link_active_background', 'type' => 'color'), array('id' => 'dropdown_menu_background', 'type' => 'color'), array('id' => 'dropdown_menu_borders', 'type' => 'color'), array('id' => 'dropdown_menu_link_color', 'type' => 'link_color'), array('id' => 'dropdown_menu_link_hover_bg', 'type' => 'color_gradient'), array('id' => 'mega_menu_title', 'type' => 'color')));
    /*** Styling Mobile Menu ***/
    $sections[] = array('id' => 'styling_mobile_menu', 'title' => __('Styling: Mobile Menu', 'wpex'), 'customizer' => false, 'subsection' => true, 'fields' => array(array('id' => 'mobile_menu_icon_background', 'type' => 'link_color'), array('id' => 'mobile_menu_icon_border', 'type' => 'link_color'), array('id' => 'mobile_menu_icon_color', 'type' => 'link_color'), array('id' => 'mobile_menu_icon_size', 'type' => 'text'), array('id' => 'mobile_menu_sidr_background', 'type' => 'color'), array('id' => 'mobile_menu_sidr_borders', 'type' => 'color'), array('id' => 'mobile_menu_links', 'type' => 'link_color'), array('id' => 'mobile_menu_sidr_search_bg', 'type' => 'color'), array('id' => 'mobile_menu_sidr_search_color', 'type' => 'color')));
    /*** Styling Page Header ***/
    $sections[] = array('id' => 'styling_page_header', 'title' => __('Styling: Page Header', 'wpex'), 'customizer' => false, 'subsection' => true, 'fields' => array(array('id' => 'page_header_background', 'type' => 'color'), array('id' => 'page_header_title_color', 'type' => 'color'), array('id' => 'page_header_top_border', 'type' => 'color'), array('id' => 'page_header_bottom_border', 'type' => 'color'), array('id' => 'breadcrumbs_text_color', 'type' => 'color'), array('id' => 'breadcrumbs_seperator_color', 'type' => 'color'), array('id' => 'breadcrumbs_link_color', 'type' => 'link_color')));
    /*** Styling Sidebar ***/
    $sections[] = array('id' => 'styling_sidebar', 'title' => __('Styling: Sidebar', 'wpex'), 'customizer' => false, 'subsection' => true, 'fields' => array(array('id' => 'sidebar_background', 'type' => 'color', 'title' => __('Sidebar Background', 'wpex'), 'subtitle' => __('Select your custom hex color.', 'wpex'), 'default' => '', 'transparent' => false, 'target_element' => '#sidebar', 'target_style' => 'background-color'), array('id' => 'sidebar_padding', 'type' => 'spacing', 'output' => false, 'mode' => 'padding', 'units' => 'px', 'title' => __('Sidebar Padding', 'wpex'), 'subtitle' => __('Select your custom sidebar padding', 'wpex'), 'default' => array('padding-top' => '', 'padding-right' => '', 'padding-bottom' => '', 'padding-left' => '')), array('id' => 'sidebar_border', 'type' => 'border', 'title' => __('Sidebar border', 'wpex'), 'subtitle' => __('Select your border style.', 'wpex'), 'default' => '', 'all' => false, 'output' => false, 'default' => array('border-color' => '', 'border-style' => 'solid', 'border-top' => '', 'border-right' => '', 'border-bottom' => '', 'border-left' => '')), array('id' => 'sidebar_headings_color', 'type' => 'color', 'transparent' => false, 'title' => __('Sidebar Headings Color', 'wpex'), 'subtitle' => __('Select your custom hex color.', 'wpex'), 'target_element' => '#sidebar .widget-title, #sidebar .widget-title a', 'target_style' => 'color'), array('id' => 'sidebar_text_color', 'type' => 'color', 'transparent' => false, 'title' => __('Sidebar Text Color', 'wpex'), 'subtitle' => __('Select your custom hex color.', 'wpex'), 'target_element' => '#sidebar, #sidebar p, #sidebar .text_widget', 'target_style' => 'color'), array('id' => 'sidebar_link_color', 'type' => 'link_color', 'title' => __('Sidebar Link Color', 'wpex'), 'subtitle' => __('Select your custom hex color.', 'wpex'), 'default' => array('regular' => '', 'hover' => '', 'active' => ''), 'target_element' => '#sidebar a', 'target_element_hover' => '#sidebar a:hover', 'target_element_active' => '#sidebar a:active', 'target_style' => 'color'), array('id' => 'sidebar_borders_color', 'type' => 'color', 'transparent' => false, 'title' => __('Sidebar Inner Borders Color', 'wpex'), 'subtitle' => __('Select your custom hex color.', 'wpex'), 'target_element' => '.wpex-widget-recent-posts-li,.widget_categories li,.widget_recent_entries li,.widget_archive li,.widget_recent_comments li,.widget_product_categories li,.widget_layered_nav li,.widget-recent-posts-icons li,.wpex-widget-recent-posts-li:first-child, .widget_categories li:first-child, .widget_recent_entries li:first-child, .widget_archive li:first-child, .widget_recent_comments li:first-child, .widget_product_categories li:first-child, .widget_layered_nav li:first-child, .widget-recent-posts-icons li:first-child,.wpex-recent-comments-widget li,.wpex-recent-comments-widget li:first-child', 'target_style' => 'border-color')));
    /*** Styling Footer ***/
    $sections[] = array('id' => 'styling_footer', 'title' => __('Styling: Footer', 'wpex'), 'customizer' => false, 'subsection' => true, 'fields' => array(array('id' => 'footer_background', 'type' => 'color', 'title' => __('Footer Background', 'wpex'), 'subtitle' => __('Select your custom hex color.', 'wpex'), 'default' => '', 'transparent' => false, 'target_element' => '#footer', 'target_style' => 'background-color'), array('id' => 'footer_border', 'type' => 'border', 'title' => __('Footer border', 'wpex'), 'subtitle' => __('Select your border style.', 'wpex'), 'default' => '', 'all' => false, 'output' => false), array('id' => 'footer_color', 'type' => 'color', 'title' => __('Footer Color', 'wpex'), 'subtitle' => __('Select your custom hex color.', 'wpex'), 'default' => '', 'transparent' => false, 'target_element' => '#footer, #footer p', 'target_style' => 'color'), array('id' => 'footer_headings_color', 'type' => 'color', 'title' => __('Footer Headings Color', 'wpex'), 'subtitle' => __('Select your custom hex color.', 'wpex'), 'default' => '', 'transparent' => false, 'target_element' => '#footer .widget-title', 'target_style' => 'color'), array('id' => 'footer_borders', 'type' => 'color', 'title' => __('Footer Borders', 'wpex'), 'subtitle' => __('Select your custom hex color.', 'wpex'), 'default' => '', 'transparent' => false, 'target_element' => '#footer li, #footer #wp-calendar thead th, #footer #wp-calendar tbody td', 'target_style' => 'border-color'), array('id' => 'footer_link_color', 'type' => 'link_color', 'title' => __('Footer Link Color', 'wpex'), 'subtitle' => __('Select your custom hex color.', 'wpex'), 'default' => array('regular' => '', 'hover' => '', 'active' => ''), 'target_element' => '#footer a', 'target_element_hover' => '#footer a:hover', 'target_element_active' => '#footer a:active', 'target_style' => 'color'), array('id' => 'multi-info', 'type' => 'info', 'title' => false, 'desc' => __('Bottom Footer', 'wpex')), array('id' => 'bottom_footer_background', 'type' => 'color', 'title' => __('Bottom Footer Background', 'wpex'), 'subtitle' => __('Select your custom hex color.', 'wpex'), 'default' => '', 'transparent' => false, 'target_element' => '#footer-bottom', 'target_style' => 'background-color'), array('id' => 'bottom_footer_border', 'type' => 'border', 'title' => __('Bottom Footer Border', 'wpex'), 'subtitle' => __('Select your border style.', 'wpex'), 'default' => '', 'all' => false, 'output' => false), array('id' => 'bottom_footer_color', 'type' => 'color', 'title' => __('Bottom Footer Color', 'wpex'), 'subtitle' => __('Select your custom hex color.', 'wpex'), 'default' => '', 'transparent' => false, 'target_element' => '#footer-bottom, #footer-bottom p', 'target_style' => 'color'), array('id' => 'bottom_footer_link_color', 'type' => 'link_color', 'title' => __('Bottom Footer Link Color', 'wpex'), 'subtitle' => __('Select your custom hex color.', 'wpex'), 'default' => array('regular' => '', 'hover' => '', 'active' => ''), 'target_element' => '#footer-bottom a', 'target_element_hover' => '#footer-bottom a:hover', 'target_element_active' => '#footer-bottom a:active', 'target_style' => 'color')));
    /*** Styling Buttons ***/
    $sections[] = array('id' => 'styling_buttons_links', 'title' => __('Styling: Buttons & Links', 'wpex'), 'customizer' => false, 'subsection' => true, 'fields' => array(array('id' => 'link_color', 'type' => 'color', 'title' => __('Links Color', 'wpex'), 'subtitle' => __('Select your custom hex color.', 'wpex'), 'default' => '', 'transparent' => false, 'target_element' => 'body a, h1 a:hover, h2 a:hover, h3 a:hover, h4 a:hover, h5 a:hover, h6 a:hover', 'target_style' => 'color'), array('id' => 'theme_button_bg', 'type' => 'color_gradient', 'title' => __('Theme Button Background', 'wpex'), 'subtitle' => __('Select your custom hex color.', 'wpex'), 'transparent' => false, 'target_element' => '.edit-post-link a, #commentform #submit, .wpcf7 .wpcf7-submit, .theme-minimal-graphical #comments .comment-reply-link, .theme-button, .readmore-link, #current-shop-items .buttons a, .woocommerce .button, .page-numbers a:hover, .page-numbers.current, .page-numbers.current:hover, input[type="submit"], button', 'default' => array('from' => '', 'to' => '')), array('id' => 'theme_button_color', 'type' => 'color', 'title' => __('Theme Button Color', 'wpex'), 'subtitle' => __('Select your custom hex color.', 'wpex'), 'transparent' => false, 'target_element' => '.edit-post-link a, #commentform #submit, .wpcf7 .wpcf7-submit, .theme-minimal-graphical #comments .comment-reply-link, .theme-button, .readmore-link, #current-shop-items .buttons a, .woocommerce .button, input[type="submit"], button', 'target_style' => 'color'), array('id' => 'theme_button_hover_bg', 'type' => 'color_gradient', 'title' => __('Theme Button Hover Background', 'wpex'), 'subtitle' => __('Select your custom hex color.', 'wpex'), 'transparent' => false, 'target_element' => '.edit-post-link a:hover, #commentform #submit:hover, .wpcf7 .wpcf7-submit:hover, .theme-minimal-graphical #comments .comment-reply-link:hover, .theme-button:hover, .readmore-link:hover, #current-shop-items .buttons a:hover, .woocommerce .button:hover, input[type="submit"]:hover, button:hover', 'default' => array('from' => '', 'to' => '')), array('id' => 'theme_button_hover_color', 'type' => 'color', 'title' => __('Theme Button Hover Color', 'wpex'), 'subtitle' => __('Select your custom hex color.', 'wpex'), 'default' => '', 'transparent' => false, 'theme_customizer' => false, 'target_element' => '.edit-post-link a:hover, #commentform #submit:hover, .wpcf7 .wpcf7-submit:hover, #comments .comment-reply-link:hover, .theme-button:hover, .readmore-link:hover, #current-shop-items .buttons a:hover, .woocommerce .button:hover, input[type="submit"]:hover, button:hover, .vcex-filter-links a:hover', 'target_style' => 'color')));
    /*-----------------------------------------------------------------------------------*/
    /*	- Togglebar
    	/*-----------------------------------------------------------------------------------*/
    $sections[] = array('id' => 'toggle_bar', 'title' => __('Toggle Bar', 'wpex'), 'fields' => array(array('id' => 'toggle_bar', 'type' => 'switch', 'title' => __('Toggle Bar', 'wpex'), 'default' => false), array('id' => 'toggle_bar_page', 'type' => 'select', 'title' => __('Toggle Bar Content', 'wpex')), array('id' => 'toggle_bar_visibility', 'type' => 'select', 'title' => __('Toggle Bar Visibility', 'wpex')), array('id' => 'toggle_bar_animation', 'type' => 'select', 'title' => __('Toggle Bar Animation', 'wpex'), 'subtitle' => __('Select your animation style.', 'wpex'), 'default' => 'fade', 'options' => array('fade' => __('Fade', 'wpex'), 'fade-slide' => __('Fade & Slide Down', 'wpex')), 'required' => array('toggle_bar', 'equals', '1')), array('id' => 'toggle_bar_btn_bg', 'type' => 'color', 'title' => __('Toggle Bar Button Background', 'wpex'), 'subtitle' => __('Select your custom hex color.', 'wpex'), 'transparent' => false, 'target_element' => '.toggle-bar-btn', 'target_style' => array('border-top-color', 'border-right-color'), 'required' => array('toggle_bar', 'equals', '1')), array('id' => 'toggle_bar_btn_color', 'type' => 'color', 'title' => __('Toggle Bar Button Color', 'wpex'), 'subtitle' => __('Select your custom hex color.', 'wpex'), 'transparent' => false, 'target_element' => '.toggle-bar-btn span.fa', 'target_style' => 'color', 'required' => array('toggle_bar', 'equals', '1')), array('id' => 'toggle_bar_btn_hover_bg', 'type' => 'color', 'title' => __('Toggle Bar Button Hover Background', 'wpex'), 'subtitle' => __('Select your custom hex color.', 'wpex'), 'transparent' => false, 'target_element' => '.toggle-bar-btn:hover', 'target_style' => array('border-top-color', 'border-right-color'), 'required' => array('toggle_bar', 'equals', '1')), array('id' => 'toggle_bar_btn_hover_color', 'type' => 'color', 'title' => __('Toggle Bar Button Hover Color', 'wpex'), 'subtitle' => __('Select your custom hex color.', 'wpex'), 'transparent' => false, 'target_element' => '.toggle-bar-btn:hover span.fa', 'target_style' => 'color', 'required' => array('toggle_bar', 'equals', '1')), array('id' => 'toggle_bar_bg', 'type' => 'color', 'title' => __('Toggle Bar Background', 'wpex'), 'subtitle' => __('Select your custom hex color.', 'wpex'), 'transparent' => false, 'target_element' => '#toggle-bar-btn', 'target_style' => 'background-color', 'required' => array('toggle_bar', 'equals', '1')), array('id' => 'toggle_bar_color', 'type' => 'color', 'title' => __('Toggle Bar Color', 'wpex'), 'subtitle' => __('Select your custom hex color.', 'wpex'), 'transparent' => false, 'target_element' => '#toggle-bar-wrap, #toggle-bar-wrap strong', 'target_style' => 'color', 'required' => array('toggle_bar', 'equals', '1'))));
    /*-----------------------------------------------------------------------------------*/
    /*	- Top Bar
    	/*-----------------------------------------------------------------------------------*/
    $sections[] = array('id' => 'top_bar', 'title' => __('Top Bar', 'wpex'), 'icon_class' => 'el-icon-arrow-up', 'customizer' => false, 'fields' => array(array('id' => 'top_bar', 'type' => 'switch', 'title' => __('Top Bar', 'wpex'), 'subtitle' => __('Toggle this option on or off.', 'wpex'), 'default' => '1', 'on' => __('On', 'wpex'), 'off' => __('Off', 'wpex')), array('id' => 'top_bar_style', 'type' => 'select', 'title' => __('Top Bar Style', 'wpex'), 'subtitle' => __('Select your preferred top bar style.', 'wpex'), 'options' => array('one' => __('Left Content & Right Social', 'wpex'), 'two' => __('Left Social & Right Content', 'wpex'), 'three' => __('Centered Content & Social', 'wpex')), 'default' => 'one', 'required' => array('top_bar', 'equals', '1')), array('id' => 'top_bar_visibility', 'type' => 'select', 'title' => __('Top Bar Visibility', 'wpex'), 'subtitle' => __('Select your visibility.', 'wpex'), 'default' => 'always-visible', 'required' => array('top_bar', 'equals', '1')), array('id' => 'top_bar_content', 'type' => 'editor', 'title' => __('Top Bar: Content', 'wpex'), 'subtitle' => __('Enter your custom content for your top bar. Shortcodes are Allowed.', 'wpex'), '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"]', 'required' => array('top_bar', 'equals', '1'), 'editor_options' => '', 'args' => array('teeny' => false)), array('id' => 'top_bar_social', 'type' => 'switch', 'title' => __('Top Bar Social', 'wpex'), 'subtitle' => __('Toggle this option on or off.', 'wpex'), 'default' => '1', 'on' => __('On', 'wpex'), 'off' => __('Off', 'wpex'), 'required' => array('top_bar', 'equals', '1')), array('id' => 'top_bar_social_alt', 'type' => 'editor', 'title' => __('Social Alternative', 'wpex'), 'subtitle' => __('Add some alternative text, code, shortcodes where your Social icons would normally go.', 'wpex'), 'default' => '', 'required' => array('top_bar', 'equals', '1'), 'editor_options' => '', 'required' => array(array('top_bar_social', '!=', '1'), array('top_bar', 'equals', '1')), 'args' => array('teeny' => false)), array('id' => 'top_bar_social_target', 'type' => 'select', 'title' => __('Top Bar Social Link Target', 'wpex'), 'subtitle' => __('Select to open the social links in a new or the same window.', 'wpex'), 'options' => array('blank' => __('New Window', 'wpex'), 'self' => __('Same Window', 'wpex')), 'default' => 'blank', 'required' => array(array('top_bar_social', 'equals', '1'), array('top_bar', 'equals', '1'))), array('id' => 'top_bar_social_style', 'type' => 'select', 'title' => __('Top Bar Social Style', 'wpex'), 'subtitle' => __('Select your preferred social link style.', 'wpex'), 'options' => array('font_icons' => __('Font Icons', 'wpex'), 'colored-icons' => __('Colored Image Icons', 'wpex')), 'default' => 'font_icons', 'required' => array(array('top_bar_social', 'equals', '1'), array('top_bar', 'equals', '1'))), array('id' => 'top_bar_social_options', 'type' => 'sortable', 'title' => __('Top Bar Social Options', 'wpex')), array('id' => 'top_bar_bg', 'type' => 'color', 'title' => __('Top Bar Background', 'wpex'), 'subtitle' => __('Select your custom hex color.', 'wpex'), 'default' => '', 'transparent' => false, 'target_element' => '#top-bar-wrap', 'target_style' => 'background-color', 'required' => array('top_bar', 'equals', '1')), array('id' => 'top_bar_border', 'type' => 'color', 'title' => __('Top Bar Bottom Border', 'wpex'), 'subtitle' => __('Select your custom hex color.', 'wpex'), 'default' => '', 'transparent' => false, 'target_element' => '#top-bar-wrap', 'target_style' => 'border-color', 'required' => array('top_bar', 'equals', '1')), array('id' => 'top_bar_text', 'type' => 'color', 'title' => __('Top Bar Text Color', 'wpex'), 'subtitle' => __('Select your custom hex color.', 'wpex'), 'default' => '', 'transparent' => false, 'target_element' => '#top-bar-wrap, #top-bar-content strong', 'target_style' => 'color', 'required' => array('top_bar', 'equals', '1')), array('id' => 'top_bar_link_color', 'type' => 'link_color', 'title' => __('Top bar Link Color', 'wpex'), 'subtitle' => __('Select your custom hex color.', 'wpex'), 'default' => array('regular' => '', 'hover' => '', 'active' => ''), 'target_element' => '#top-bar-content a, #top-bar-social-alt a', 'target_element_hover' => '#top-bar-content a:hover, #top-bar-social-alt a:hover', 'target_element_active' => '#top-bar-content a:active, #top-bar-social-alt a:active', 'target_style' => 'color', 'required' => array('top_bar', 'equals', '1')), array('id' => 'top_bar_social_color', 'type' => 'color', 'title' => __('Top Bar Social Links Color', 'wpex'), 'subtitle' => __('Select your custom hex color.', 'wpex'), 'default' => '', 'transparent' => false, 'target_element' => '#top-bar-social a', 'target_style' => 'color', 'required' => array('top_bar', 'equals', '1')), array('id' => 'top_bar_social_hover_color', 'type' => 'color', 'title' => __('Top Bar Social Links Hover Color', 'wpex'), 'subtitle' => __('Select your custom hex color.', 'wpex'), 'default' => '', 'transparent' => false, 'target_element' => '#top-bar-social a:hover', 'target_style' => 'color', 'required' => array('top_bar', 'equals', '1'))));
    /*-----------------------------------------------------------------------------------*/
    /*	- Header
    	/*-----------------------------------------------------------------------------------*/
    $sections[] = array('id' => 'header', 'title' => __('Header', 'wpex'), 'icon' => 'el-icon-screen', 'customizer' => false, 'fields' => array(array('id' => 'header_style', 'type' => 'select', 'title' => __('Header Style', 'wpex'), 'subtitle' => __('Select your default header style.', 'wpex'), 'options' => array('one' => __('One', 'wpex'), 'two' => __('Two', 'wpex'), 'three' => __('Three', 'wpex')), 'default' => 'one'), array('id' => 'fixed_header', 'type' => 'switch', 'title' => __('Fixed Header on Scroll', 'wpex'), 'subtitle' => __('Toggle the fixed header when the user scrolls down the site on or off. Please note that for certain header (two and three) styles only the navigation will become fixed.', 'wpex'), 'default' => '1', 'on' => __('On', 'wpex'), 'off' => __('Off', 'wpex')), array('id' => 'shink_fixed_header', 'type' => 'switch', 'title' => __('Shrink Fixed Header', 'wpex'), 'subtitle' => __('Shrink your fixed header on scroll', 'wpex'), 'default' => '1', 'on' => __('On', 'wpex'), 'off' => __('Off', 'wpex')), array('id' => 'fixed_header_opacity', 'type' => 'text', 'title' => __('Fixed Header Opacity', 'wpex'), 'subtitle' => __('Enter an opacity for the fixed header. Default is 0.95.', 'wpex'), 'default' => '0.95'), array('id' => 'main_search', 'type' => 'switch', 'title' => __('Header Search', 'wpex'), 'subtitle' => __('Toggle this option on or off.', 'wpex'), 'default' => '1', 'on' => __('On', 'wpex'), 'off' => __('Off', 'wpex')), array('id' => 'main_search_toggle_style', 'type' => 'select', 'title' => __('Header Search Toggle Style', 'wpex'), 'subtitle' => __('Select your default header search style.', 'wpex'), 'options' => array('drop_down' => __('Drop Down', 'wpex'), 'overlay' => __('Site Overlay', 'wpex'), 'header_replace' => __('Header Replace', 'wpex')), 'default' => 'drop_down'), array('id' => 'search_dropdown_top_border', 'type' => 'color', 'title' => __('Header Search Toggle Top Border Color', 'wpex'), 'subtitle' => __('Select your custom hex color.', 'wpex'), 'default' => '', 'transparent' => false, 'target_element' => '#searchform-dropdown', 'target_style' => 'border-top-color', 'theme_customizer' => false), array('id' => 'main_search_overlay_top_margin', 'type' => 'text', 'title' => __('Header Search Overlay Top Margin', 'wpex'), 'subtitle' => __('Enter your custom top margin for the search overlay. The default is 120px.', 'wpex'), 'default' => ''), array('id' => 'header_height', 'type' => 'text', 'title' => __('Custom Header Height', 'wpex'), 'subtitle' => __('Use this setting to define a fixed header height (Header Style One Only. Use this option ONLY if your want the navigation drop-downs to fall right under the header. Remove the default height (leave this field empty) if you want the header to auto expand depending on your logo height.', 'wpex'), 'default' => '40px'), array('id' => 'header_top_padding', 'type' => 'text', 'title' => __('Header Top Padding', 'wpex'), 'subtitle' => __('Enter your custom header top padding in pixels. Ignored if the custom header height field is NOT empty.', 'wpex'), 'default' => ''), array('id' => 'header_bottom_padding', 'type' => 'text', 'title' => __('Header Bottom Padding', 'wpex'), 'subtitle' => __('Enter your custom header top padding in pixels. Ignored if the custom header height field is NOT empty', 'wpex'), 'default' => ''), array('id' => 'logo_max_width', 'type' => 'text', 'title' => __('Logo Max Width', 'wpex'), 'subtitle' => __('Define a maximum width for your logo image if it is too big. Can be in pixels or percentage, but percentage is better for responsiveness.', 'wpex'), 'default' => ''), array('id' => 'logo_top_margin', 'type' => 'text', 'title' => __('Logo Top Margin', 'wpex'), 'subtitle' => __('Enter your custom logo top margin.', 'wpex'), 'default' => ''), array('id' => 'logo_bottom_margin', 'type' => 'text', 'title' => __('Logo Bottom Margin', 'wpex'), 'subtitle' => __('Enter your custom logo top margin.', 'wpex'), 'default' => ''), array('id' => 'header_aside', 'type' => 'editor', 'title' => __('Header Aside Content', 'wpex'), 'subtitle' => __('Enter your custom header aside content for header style 2.', 'wpex'), 'default' => '', 'editor_options' => '', 'args' => array('teeny' => false)), array('id' => 'multi-info', 'type' => 'info', 'title' => false, 'desc' => __('Header: Menu', 'wpex')), array('id' => 'menu_arrow_down', 'type' => 'switch', 'title' => __('Top Level Dropdown Icon', 'wpex'), 'subtitle' => __('Toggle this option on or off.', 'wpex'), 'default' => '0', 'on' => __('On', 'wpex'), 'off' => __('Off', 'wpex')), array('id' => 'menu_arrow_side', 'type' => 'switch', 'title' => __('Second+ Level Dropdown Icon', 'wpex'), 'subtitle' => __('Toggle this option on or off.', 'wpex'), 'default' => '1', 'on' => __('On', 'wpex'), 'off' => __('Off', 'wpex')), array('id' => 'menu_dropdown_top_border', 'type' => 'switch', 'title' => __('Dropdown Top Border', 'wpex'), 'subtitle' => __('Set this option to "on" if you want to have a thick colorfull border at the top of your drop-down menu.', 'wpex'), 'default' => '1', 'on' => __('On', 'wpex'), 'off' => __('Off', 'wpex')), array('id' => 'menu_dropdown_top_border_color', 'type' => 'color', 'title' => __('Dropdown Top Border Color', 'wpex'), 'subtitle' => __('Select your custom hex color.', 'wpex'), 'default' => '', 'transparent' => false, 'target_element' => 'body #site-navigation-wrap.nav-dropdown-top-border .dropdown-menu > li > ul, #searchform-dropdown, #current-shop-items-dropdown', 'target_style' => 'border-top-color', 'required' => array('menu_dropdown_top_border', 'equals', '1')), array('id' => 'multi-info', 'type' => 'info', 'title' => false, 'desc' => __('Header: Other', 'wpex')), array('id' => 'page_header_style', 'type' => 'select', 'title' => __('Page Header Style', 'wpex'), 'subtitle' => __('Select your default page header style. This can be altered alter on a per-post basis.', 'wpex'), 'options' => array('default' => __('Default', 'wpex'), 'centered' => __('Centered', 'wpex'), 'centered-minimal' => __('Centered Minimal', 'wpex')), 'default' => 'default')));
    /*-----------------------------------------------------------------------------------*/
    /*	- Portfolio
    	/*-----------------------------------------------------------------------------------*/
    $sections['portfolio'] = array('id' => 'portfolio', 'icon' => 'el-icon-briefcase', 'title' => __('Portfolio', 'wpex'), 'customizer' => false, 'fields' => array(array('id' => 'portfolio_enable', 'type' => 'switch', 'title' => __('Portfolio Post Type', 'wpex'), 'subtitle' => __('Toggle this option on or off.', 'wpex'), 'default' => '1', 'on' => __('On', 'wpex'), 'off' => __('Off', 'wpex')), array('id' => 'portfolio_page', 'type' => 'select', 'data' => 'pages', 'title' => __('Portfolio Page', 'wpex'), 'subtitle' => __('Select your main portfolio page. This is used for your breadcrumbs.', 'wpex'), 'default' => ''), array('id' => 'multi-info', 'type' => 'info', 'title' => false, 'desc' => __('Portfolio: Archives', 'wpex')), array('id' => 'portfolio_archive_layout', 'type' => 'select', 'title' => __('Portfolio Archives Layout', 'wpex'), 'subtitle' => __('Select your preferred layout for your single posts. This setting can be overwritten on a per post basis via the meta options.', 'wpex'), 'options' => array('right-sidebar' => __('Right Sidebar', 'wpex'), 'left-sidebar' => __('Left Sidebar', 'wpex'), 'full-width' => __('No Sidebar', 'wpex')), 'default' => 'full-width'), array('id' => 'portfolio_archive_grid_style', 'type' => 'select', 'title' => __('Portfolio Archives Grid Style', 'wpex'), 'subtitle' => __('Select your preferred grid style.', 'wpex'), 'options' => array('fit-rows' => __('Fit Rows', 'wpex'), 'masonry' => __('Masonry', 'wpex'), 'no-margins' => __('No Margins', 'wpex')), 'default' => 'fit-rows'), array('id' => 'portfolio_archive_grid_equal_heights', 'type' => 'switch', 'title' => __('Portfolio Archives Grid Equal Heights', 'wpex'), 'subtitle' => __('Adds equal heights for the entry content so "boxes" on the same row are the same height. You must have equal sized images for this to work efficiently.', 'wpex'), 'default' => '', 'on' => __('On', 'wpex'), 'off' => __('Off', 'wpex'), 'required' => array('portfolio_archive_grid_style', 'equals', 'fit-rows')), array('id' => 'portfolio_entry_columns', 'type' => 'select', 'title' => __('Portfolio Archive Columns', 'wpex'), 'subtitle' => __('Select your default column structure for your category and tag archives.', 'wpex'), 'options' => array('1' => '1', '2' => '2', '3' => '3', '4' => '4'), 'default' => '4'), array('id' => 'portfolio_archive_posts_per_page', 'type' => 'text', 'title' => __('Portfolio Archives Posts Per Page', 'wpex'), 'subtitle' => __('How many posts do you wish to display on your archives before pagination?', 'wpex'), 'default' => '12'), array('id' => 'portfolio_entry_overlay_style', 'type' => 'select', 'title' => __('Portfolio Entry Image Overlay', 'wpex'), 'subtitle' => __('Select your preferred overlay style.', 'wpex'), 'default' => 'none', 'options' => wpex_overlay_styles_array()), array('id' => 'portfolio_entry_details', 'type' => 'switch', 'title' => __('Portfolio Entry Details', 'wpex'), 'subtitle' => __('Toggle this option on or off.', 'wpex'), 'default' => '1', 'on' => __('On', 'wpex'), 'off' => __('Off', 'wpex')), array('id' => 'portfolio_entry_excerpt_length', 'type' => 'text', 'title' => __('Portfolio Entry Excerpt Length', 'wpex'), 'subtitle' => __('How many words do you want to show for your entry excerpts?', 'wpex'), 'default' => '20', 'required' => array('portfolio_entry_details', 'equals', '1')), array('id' => 'multi-info', 'type' => 'info', 'title' => false, 'desc' => __('Portfolio: Single Post', 'wpex')), array('id' => 'portfolio_single_layout', 'type' => 'select', 'title' => __('Portfolio Single Post Layout', 'wpex'), 'subtitle' => __('Select your preferred layout for your single posts. This setting can be overwritten on a per post basis via the meta options.', 'wpex'), 'options' => array('right-sidebar' => __('Right Sidebar', 'wpex'), 'left-sidebar' => __('Left Sidebar', 'wpex'), 'full-width' => __('No Sidebar', 'wpex')), 'default' => 'full-width'), array('id' => 'portfolio_single_media', 'type' => 'switch', 'title' => __('Auto Post Media', 'wpex'), 'subtitle' => __('Set this option to "on" if you want to automatically display your featured image or featured video at the top of posts.', 'wpex'), 'default' => '0', 'on' => __('On', 'wpex'), 'off' => __('Off', 'wpex')), array('id' => 'portfolio_comments', 'type' => 'switch', 'title' => __('Portfolio Comments', 'wpex'), 'subtitle' => __('Toggle this option on or off.', 'wpex'), 'default' => '0', 'on' => __('On', 'wpex'), 'off' => __('Off', 'wpex')), array('id' => 'portfolio_next_prev', 'type' => 'switch', 'title' => __('Portfolio Next/Prev Links', 'wpex'), 'subtitle' => __('Toggle this option on or off.', 'wpex'), 'default' => '1', 'on' => __('On', 'wpex'), 'off' => __('Off', 'wpex')), array('id' => 'portfolio_related', 'type' => 'switch', 'title' => __('Portfolio Related', 'wpex'), 'subtitle' => __('Toggle this option on or off.', 'wpex'), 'default' => '1', 'on' => __('On', 'wpex'), 'off' => __('Off', 'wpex')), array('id' => 'portfolio_related_columns', 'type' => 'select', 'title' => __('Portfolio Related Columns', 'wpex'), 'subtitle' => __('Select your default column structure.', 'wpex'), 'options' => array('1' => '1', '2' => '2', '3' => '3', '4' => '4'), 'default' => '4', 'required' => array('portfolio_related', 'equals', '1')), array('id' => 'portfolio_related_count', 'type' => 'text', 'title' => __('Portfolio Related Count', 'wpex'), 'subtitle' => __('Enter the number of related items to display.', 'wpex'), 'default' => '4', 'required' => array('portfolio_related', 'equals', '1')), array('id' => 'portfolio_related_title', 'type' => 'text', 'title' => __('Portfolio Related Title', 'wpex'), 'subtitle' => __('Enter a custom string for your related portfolio items title.', 'wpex'), 'default' => '', 'required' => array('portfolio_related', 'equals', '1')), array('id' => 'portfolio_related_excerpts', 'type' => 'switch', 'title' => __('Portfolio Related Entry Content', 'wpex'), 'subtitle' => __('Display The Title & Excerpt for related items?', 'wpex'), 'default' => '1', 'required' => array('portfolio_related', 'equals', '1')), array('id' => 'multi-info', 'type' => 'info', 'title' => false, 'desc' => __('Portfolio: Branding', 'wpex')), array('id' => 'portfolio_admin_icon', 'type' => 'select', 'title' => __('Portfolio Admin Icon', 'wpex'), 'subtitle' => __('Select your custom Dashicon for this post type.', 'wpex') . '<br /><br /><a href="http://melchoyce.github.io/dashicons/" target="_blank">' . __('Learn More', 'wpex') . ' &rarr;</a>', 'default' => 'portfolio'), array('id' => 'portfolio_labels', 'type' => 'text', 'title' => __('Portfolio Labels', 'wpex'), 'subtitle' => __('Use this field to rename your portfolio custom post type.', 'wpex'), 'default' => 'Portfolio'), array('id' => 'portfolio_slug', 'type' => 'text', 'title' => __('Portfolio Slug', 'wpex'), 'subtitle' => __('Changes the default slug for this post type. After changing this field go to "Settings->Permalinks" and resave your settings to prevent 404 errors.', 'wpex'), 'default' => 'portfolio-item'), array('id' => 'portfolio_cat_labels', 'type' => 'text', 'title' => __('Portfolio Category Labels', 'wpex'), 'subtitle' => __('Use this field to alter the default labels for this taxonomy.', 'wpex'), 'default' => __('Portfolio Categories', 'wpex')), array('id' => 'portfolio_cat_slug', 'type' => 'text', 'title' => __('Portfolio Category Slug', 'wpex'), 'subtitle' => __('Use this field to alter the default slug for this taxonomy. After changing this field go to "Settings->Permalinks" and resave your settings to prevent 404 errors.', 'wpex'), 'default' => 'portfolio-category'), array('id' => 'portfolio_tag_labels', 'type' => 'text', 'title' => __('Portfolio Tag Labels', 'wpex'), 'subtitle' => __('Use this field to alter the default labels for this taxonomy.', 'wpex'), 'default' => __('Portfolio Tags', 'wpex')), array('id' => 'portfolio_tag_slug', 'type' => 'text', 'title' => __('Portfolio Tag Slug', 'wpex'), 'subtitle' => __('Use this field to alter the default slug for this taxonomy. After changing this field go to "Settings->Permalinks" and resave your settings to prevent 404 errors.', 'wpex'), 'default' => 'portfolio-tag'), array('id' => 'multi-info', 'type' => 'info', 'title' => false, 'desc' => __('Portfolio: Other', 'wpex')), array('id' => 'portfolio_custom_sidebar', 'type' => 'switch', 'title' => __('Custom Portfolio Sidebar', 'wpex'), 'subtitle' => __('Toggle this option on or off.', 'wpex'), 'default' => '1', 'on' => __('On', 'wpex'), 'off' => __('Off', 'wpex')), array('id' => 'breadcrumbs_portfolio_cat', 'type' => 'switch', 'title' => __('Portfolio Category In Breadcrumbs', 'wpex'), 'subtitle' => __('Toggle this option on or off.', 'wpex'), 'default' => '1', 'on' => __('On', 'wpex'), 'off' => __('Off', 'wpex')), array('id' => 'portfolio_search', 'type' => 'switch', 'title' => __('Portfolio in Search?', 'wpex'), 'subtitle' => __('Toggle this option on or off.', 'wpex'), 'default' => '1', 'on' => __('On', 'wpex'), 'off' => __('Off', 'wpex'))));
    /*-----------------------------------------------------------------------------------*/
    /*	- Staff
    	/*-----------------------------------------------------------------------------------*/
    $sections[] = array('id' => 'staff', 'icon' => 'el-icon-user', 'title' => __('Staff', 'wpex'), 'customizer' => false, 'fields' => array(array('id' => 'staff_enable', 'type' => 'switch', 'title' => __('Staff Post Type', 'wpex'), 'subtitle' => __('Toggle this option on or off.', 'wpex'), 'default' => '1', 'on' => __('On', 'wpex'), 'off' => __('Off', 'wpex')), array('id' => 'staff_page', 'type' => 'select', 'data' => 'pages', 'title' => __('Staff Page', 'wpex'), 'subtitle' => __('Select your main staff page. This is used for your breadcrumbs.', 'wpex'), 'default' => ''), array('id' => 'multi-info', 'type' => 'info', 'title' => false, 'desc' => __('Staff: Archives', 'wpex')), array('id' => 'staff_archive_layout', 'type' => 'select', 'title' => __('Staff Archives Layout', 'wpex'), 'subtitle' => __('Select your preferred layout for your posts. This setting can be overwritten on a per post basis via the meta options.', 'wpex'), 'options' => array('right-sidebar' => __('Right Sidebar', 'wpex'), 'left-sidebar' => __('Left Sidebar', 'wpex'), 'full-width' => __('No Sidebar', 'wpex')), 'default' => 'full-width'), array('id' => 'staff_archive_grid_style', 'type' => 'select', 'title' => __('Staff Archives Grid Style', 'wpex'), 'subtitle' => __('Select your preferred grid style.', 'wpex'), 'options' => array('fit-rows' => __('Fit Rows', 'wpex'), 'masonry' => __('Masonry', 'wpex'), 'no-margins' => __('No Margins', 'wpex')), 'default' => 'fit-rows'), array('id' => 'staff_archive_grid_equal_heights', 'type' => 'switch', 'title' => __('Staff Archives Grid Equal Heights', 'wpex'), 'subtitle' => __('Adds equal heights for the entry content so "boxes" on the same row are the same height. You must have equal sized images for this to work efficiently.', 'wpex'), 'default' => '', 'on' => __('On', 'wpex'), 'off' => __('Off', 'wpex'), 'required' => array('staff_archive_grid_style', 'equals', 'fit-rows')), array('id' => 'staff_entry_columns', 'type' => 'select', 'title' => __('Staff Archive Columns', 'wpex'), 'subtitle' => __('Select your default column structure for your category and tag archives.', 'wpex'), 'options' => array('1' => '1', '2' => '2', '3' => '3', '4' => '4'), 'default' => '4'), array('id' => 'staff_archive_posts_per_page', 'type' => 'text', 'title' => __('Staff Archives Posts Per Page', 'wpex'), 'subtitle' => __('How many posts do you wish to display on your archives before pagination?', 'wpex'), 'default' => '12'), array('id' => 'staff_entry_overlay_style', 'type' => 'select', 'title' => __('Staff Entry Image Overlay', 'wpex'), 'subtitle' => __('Select your preferred overlay style.', 'wpex'), 'default' => 'none', 'options' => wpex_overlay_styles_array()), array('id' => 'staff_entry_details', 'type' => 'switch', 'title' => __('Staff Entry Details', 'wpex'), 'subtitle' => __('Toggle this option on or off.', 'wpex'), 'default' => '1', 'on' => __('On', 'wpex'), 'off' => __('Off', 'wpex')), array('id' => 'staff_entry_excerpt_length', 'type' => 'text', 'title' => __('Staff Entry Excerpt Length', 'wpex'), 'subtitle' => __('How many words do you want to show for your entry excerpts?', 'wpex'), 'default' => '20', 'required' => array('staff_entry_details', 'equals', '1')), array('id' => 'staff_entry_social', 'type' => 'switch', 'title' => __('Staff Entry Social Links', 'wpex'), 'subtitle' => __('Toggle this option on or off.', 'wpex'), 'default' => '1', 'on' => __('On', 'wpex'), 'off' => __('Off', 'wpex')), array('id' => 'multi-info', 'type' => 'info', 'title' => false, 'desc' => __('Staff: Single Post', 'wpex')), array('id' => 'staff_single_layout', 'type' => 'select', 'title' => __('Staff Single Post Layout', 'wpex'), 'subtitle' => __('Select your preferred layout for your single posts. This setting can be overwritten on a per post basis via the meta options.', 'wpex'), 'options' => array('right-sidebar' => __('Right Sidebar', 'wpex'), 'left-sidebar' => __('Left Sidebar', 'wpex'), 'full-width' => __('No Sidebar', 'wpex')), 'default' => 'right-sidebar'), array('id' => 'staff_single_media', 'type' => 'switch', 'title' => __('Auto Post Media', 'wpex'), 'subtitle' => __('Set this option to "on" if you want to automatically display your featured image or featured video at the top of posts.', 'wpex'), 'default' => '0', 'on' => __('On', 'wpex'), 'off' => __('Off', 'wpex')), array('id' => 'staff_comments', 'type' => 'switch', 'title' => __('Staff Comments', 'wpex'), 'subtitle' => __('Toggle this option on or off.', 'wpex'), 'default' => '0', 'on' => __('On', 'wpex'), 'off' => __('Off', 'wpex')), array('id' => 'staff_next_prev', 'type' => 'switch', 'title' => __('Staff Next/Prev Links', 'wpex'), 'subtitle' => __('Toggle this option on or off.', 'wpex'), 'default' => '1', 'on' => __('On', 'wpex'), 'off' => __('Off', 'wpex')), array('id' => 'staff_related', 'type' => 'switch', 'title' => __('Staff Related', 'wpex'), 'subtitle' => __('Toggle this option on or off.', 'wpex'), 'default' => '1', 'on' => __('On', 'wpex'), 'off' => __('Off', 'wpex')), array('id' => 'staff_related_columns', 'type' => 'select', 'title' => __('Staff Related Columns', 'wpex'), 'subtitle' => __('Select your default column structure.', 'wpex'), 'options' => array('1' => '1', '2' => '2', '3' => '3', '4' => '4'), 'default' => '3', 'required' => array('staff_related', 'equals', '1')), array('id' => 'staff_related_count', 'type' => 'text', 'title' => __('Staff Related Count', 'wpex'), 'subtitle' => __('Enter the number of related items to display', 'wpex'), 'default' => '3', 'required' => array('staff_related', 'equals', '1')), array('id' => 'staff_related_title', 'type' => 'text', 'title' => __('Staff Related Title', 'wpex'), 'subtitle' => __('Enter a custom string for your related staff items title.', 'wpex'), 'default' => '', 'required' => array('staff_related', 'equals', '1')), array('id' => 'staff_related_excerpts', 'type' => 'switch', 'title' => __('Staff Related Entry Details', 'wpex'), 'subtitle' => __('Display The Title & Excerpt for related items?', 'wpex'), 'default' => '1', 'required' => array('staff_related', 'equals', '1')), array('id' => 'multi-info', 'type' => 'info', 'title' => false, 'desc' => __('Staff: Branding', 'wpex')), array('id' => 'staff_admin_icon', 'type' => 'select', 'title' => __('Staff Admin Icon', 'wpex'), 'subtitle' => __('Select your custom Dashicon for this post type.', 'wpex') . '<br /><br /><a href="http://melchoyce.github.io/dashicons/" target="_blank">' . __('Learn More', 'wpex') . ' &rarr;</a>', 'default' => 'groups'), array('id' => 'staff_labels', 'type' => 'text', 'title' => __('Staff Labels', 'wpex'), 'subtitle' => __('Use this field to rename your staff custom post type.', 'wpex'), 'default' => 'Staff'), array('id' => 'staff_slug', 'type' => 'text', 'title' => __('Staff Slug', 'wpex'), 'subtitle' => __('Changes the default slug for this post type. After changing this field go to "Settings->Permalinks" and resave your settings to prevent 404 errors.', 'wpex'), 'default' => 'staff-member'), array('id' => 'staff_cat_labels', 'type' => 'text', 'title' => __('Staff Category Labels', 'wpex'), 'subtitle' => __('Use this field to alter the default labels for this taxonomy.', 'wpex'), 'default' => __('Staff Categories', 'wpex')), array('id' => 'staff_cat_slug', 'type' => 'text', 'title' => __('Staff Category Slug', 'wpex'), 'subtitle' => __('Use this field to alter the default slug for this taxonomy. After changing this field go to "Settings->Permalinks" and resave your settings to prevent 404 errors.', 'wpex'), 'default' => 'staff-category'), array('id' => 'staff_tag_labels', 'type' => 'text', 'title' => __('Staff Tag Labels', 'wpex'), 'subtitle' => __('Use this field to alter the default labels for this taxonomy.', 'wpex'), 'default' => __('Staff Tags', 'wpex')), array('id' => 'staff_tag_slug', 'type' => 'text', 'title' => __('Staff Tag Slug', 'wpex'), 'subtitle' => __('Use this field to alter the default slug for this taxonomy. After changing this field go to "Settings->Permalinks" and resave your settings to prevent 404 errors.', 'wpex'), 'default' => 'staff-tag'), array('id' => 'multi-info', 'type' => 'info', 'title' => false, 'desc' => __('Staff: Other', 'wpex')), array('id' => 'staff_custom_sidebar', 'type' => 'switch', 'title' => __('Custom Staff Sidebar', 'wpex'), 'subtitle' => __('Toggle this option on or off.', 'wpex'), 'default' => '1', 'on' => __('On', 'wpex'), 'off' => __('Off', 'wpex')), array('id' => 'breadcrumbs_staff_cat', 'type' => 'switch', 'title' => __('Staff Category In Breadcrumbs', 'wpex'), 'subtitle' => __('Toggle this option on or off.', 'wpex'), 'default' => '1', 'on' => __('On', 'wpex'), 'off' => __('Off', 'wpex'), 'required' => array('staff_enable', 'equals', '1')), array('id' => 'staff_search', 'type' => 'switch', 'title' => __('Staff in Search?', 'wpex'), 'subtitle' => __('Toggle this option on or off.', 'wpex'), 'default' => '1', 'on' => __('On', 'wpex'), 'off' => __('Off', 'wpex'))));
    /*-----------------------------------------------------------------------------------*/
    /*	- Testimonials
    	/*-----------------------------------------------------------------------------------*/
    $sections['testimonials'] = array('id' => 'testimonials', 'icon' => 'el-icon-quotes', 'title' => __('Testimonials', 'wpex'), 'customizer' => false, 'fields' => array(array('id' => 'testimonials_enable', 'type' => 'switch', 'title' => __('Testimonials Post Type', 'wpex'), 'subtitle' => __('Toggle this option on or off.', 'wpex'), 'default' => '1', 'on' => __('On', 'wpex'), 'off' => __('Off', 'wpex')), array('id' => 'testimonials_page', 'type' => 'select', 'data' => 'pages', 'title' => __('Testimonials Page', 'wpex'), 'subtitle' => __('Select your main testimonials page. This is used for your breadcrumbs.', 'wpex'), 'default' => ''), array('id' => 'multi-info', 'type' => 'info', 'title' => false, 'desc' => __('Testimonials: Archives', 'wpex')), array('id' => 'testimonials_archive_layout', 'type' => 'select', 'title' => __('Testimonials Archives Layout', 'wpex'), 'subtitle' => __('Select your preferred layout for your single posts. This setting can be overwritten on a per post basis via the meta options.', 'wpex'), 'options' => array('right-sidebar' => __('Right Sidebar', 'wpex'), 'left-sidebar' => __('Left Sidebar', 'wpex'), 'full-width' => __('No Sidebar', 'wpex')), 'default' => 'full-width'), array('id' => 'testimonials_entry_columns', 'type' => 'select', 'title' => __('Testimonials Archive Columns', 'wpex'), 'subtitle' => __('Select your default column structure for your category and tag archives.', 'wpex'), 'options' => array('1' => '1', '2' => '2', '3' => '3', '4' => '4'), 'default' => '3'), array('id' => 'testimonials_archive_posts_per_page', 'type' => 'text', 'title' => __('Testimonials Archives Posts Per Page', 'wpex'), 'subtitle' => __('How many posts do you wish to display on your archives before pagination?', 'wpex'), 'default' => '12'), array('id' => 'multi-info', 'type' => 'info', 'title' => false, 'desc' => __('Testimonials: Single Post', 'wpex')), array('id' => 'testimonial_post_style', 'type' => 'select', 'title' => __('Testimonial Post Style', 'wpex'), 'subtitle' => __('Select your style', 'wpex'), 'default' => 'blockquote', 'options' => array('blockquote' => __('Blockquote', 'wpex'), 'standard' => __('Standard', 'wpex'))), array('id' => 'testimonials_single_layout', 'type' => 'select', 'title' => __('Testimonials Single Post Layout', 'wpex'), 'subtitle' => __('Select your preferred layout for your single posts. This setting can be overwritten on a per post basis via the meta options.', 'wpex'), 'options' => array('right-sidebar' => __('Right Sidebar', 'wpex'), 'left-sidebar' => __('Left Sidebar', 'wpex'), 'full-width' => __('No Sidebar', 'wpex')), 'default' => 'full-width'), array('id' => 'testimonials_comments', 'type' => 'switch', 'title' => __('Testimonials Comments', 'wpex'), 'subtitle' => __('Toggle this option on or off.', 'wpex'), 'default' => '0', 'on' => __('On', 'wpex'), 'off' => __('Off', 'wpex')), array('id' => 'multi-info', 'type' => 'info', 'title' => false, 'desc' => __('Testimonials: Branding', 'wpex')), array('id' => 'testimonials_admin_icon', 'type' => 'select', 'title' => __('Testimonials Admin Icon', 'wpex'), 'subtitle' => __('Select your custom dashicon for this post type.', 'wpex') . '<br /><br /><a href="http://melchoyce.github.io/dashicons/" target="_blank">' . __('Learn More', 'wpex') . ' &rarr;</a>', 'default' => 'format-status'), array('id' => 'testimonials_labels', 'type' => 'text', 'title' => __('Testimonials Labels', 'wpex'), 'subtitle' => __('Use this field to rename your testimonials custom post type.', 'wpex'), 'default' => 'Testimonials'), array('id' => 'testimonials_slug', 'type' => 'text', 'title' => __('Testimonials Slug', 'wpex'), 'subtitle' => __('Changes the default slug for this post type. After changing this field go to "Settings->Permalinks" and resave your settings to prevent 404 errors.', 'wpex'), 'default' => 'testimonial'), array('id' => 'testimonials_cat_labels', 'type' => 'text', 'title' => __('Testimonials Category Labels', 'wpex'), 'subtitle' => __('Use this field to alter the default labels for this taxonomy.', 'wpex'), 'default' => __('Testimonials Categories', 'wpex')), array('id' => 'testimonials_cat_slug', 'type' => 'text', 'title' => __('Testimonials Category Slug', 'wpex'), 'subtitle' => __('Use this field to alter the default slug for this taxonomy. After changing this field go to "Settings->Permalinks" and resave your settings to prevent 404 errors.', 'wpex'), 'default' => 'testimonials-category'), array('id' => 'multi-info', 'type' => 'info', 'title' => false, 'desc' => __('Testimonials: Other', 'wpex')), array('id' => 'testimonials_search', 'type' => 'switch', 'title' => __('Testimonials in Search?', 'wpex'), 'subtitle' => __('Toggle this option on or off.', 'wpex'), 'default' => '0', 'on' => __('On', 'wpex'), 'off' => __('Off', 'wpex')), array('id' => 'testimonial_custom_sidebar', 'type' => 'switch', 'title' => __('Custom Testimonials Sidebar', 'wpex'), 'subtitle' => __('Toggle this option on or off.', 'wpex'), 'default' => '1', 'on' => __('On', 'wpex'), 'off' => __('Off', 'wpex')), array('id' => 'breadcrumbs_testimonials_cat', 'type' => 'switch', 'title' => __('Testimonials Category In Breadcrumbs', 'wpex'), 'subtitle' => __('Toggle this option on or off.', 'wpex'), 'default' => '1', 'on' => __('On', 'wpex'), 'off' => __('Off', 'wpex'))));
    /*-----------------------------------------------------------------------------------*/
    /*	- WooCommerce
    	/*-----------------------------------------------------------------------------------*/
    $sections[] = array('id' => 'woocommerce', 'icon' => 'el-icon-shopping-cart', 'title' => __('WooCommerce', 'wpex'), 'customizer' => false, 'fields' => array(array('id' => 'woo_menu_icon', 'type' => 'switch', 'title' => __('Menu Cart', 'wpex'), 'subtitle' => __('Toggle this option on or off.', 'wpex'), 'default' => '1', 'on' => __('On', 'wpex'), 'off' => __('Off', 'wpex')), array('id' => 'woo_menu_icon_amount', 'type' => 'switch', 'title' => __('Menu Cart: Amount', 'wpex'), 'subtitle' => __('Toggle this option on or off.', 'wpex'), 'default' => '0', 'on' => __('On', 'wpex'), 'off' => __('Off', 'wpex'), 'required' => array('woo_menu_icon', 'equals', '1')), array('id' => 'woo_menu_icon_style', 'type' => 'select', 'title' => __('Menu Cart: Style', 'wpex'), 'subtitle' => __('Select your default WooCommerce menu icon style.', 'wpex'), 'desc' => '', 'options' => array('overlay' => __('Open Cart Overlay', 'wpex'), 'drop-down' => __('Drop-Down', 'wpex'), 'store' => __('Go To Store', 'wpex'), 'custom-link' => __('Custom Link', 'wpex')), 'default' => 'overlay', 'required' => array('woo_menu_icon', 'equals', '1')), array('id' => 'woo_menu_icon_custom_link', 'type' => 'text', 'title' => __('Menu Cart: Custom Link', 'wpex'), 'subtitle' => __('Enter your custom link for the menu cart icon.', 'wpex'), 'on' => __('On', 'wpex'), 'off' => __('Off', 'wpex'), 'required' => array('woo_menu_icon_style', 'equals', 'custom-link')), array('id' => 'woo_shop_overlay_top_margin', 'type' => 'text', 'title' => __('Cart Overlay Top Margin', 'wpex'), 'subtitle' => __('Enter your custom top margin for the WooCommerce cart overlay. The default is 120px.', 'wpex'), 'default' => '', 'required' => array('woo_menu_icon_style', 'equals', 'overlay')), array('id' => 'woo_custom_sidebar', 'type' => 'switch', 'title' => __('Custom WooCommerce Sidebar', 'wpex'), 'subtitle' => __('Toggle this option on or off.', 'wpex'), 'default' => '1', 'on' => __('On', 'wpex'), 'off' => __('Off', 'wpex')), array('id' => 'multi-info', 'type' => 'info', 'title' => false, 'desc' => __('WooCommerce: Archives', 'wpex')), array('id' => 'woo_shop_slider', 'type' => 'text', 'title' => __('Shop Slider', 'wpex'), 'desc' => '', 'subtitle' => __('Insert your slider shortcode for your products archive.', 'wpex'), 'default' => ''), array('id' => 'woo_shop_posts_per_page', 'type' => 'text', 'title' => __('Shop Posts Per Page', 'wpex'), 'desc' => '', 'subtitle' => __('How many items to display per page on your main shop archive and product category archives.', 'wpex'), 'default' => '12'), array('id' => 'woo_shop_layout', 'type' => 'select', 'title' => __('Shop Layout', 'wpex'), 'subtitle' => __('Select your preferred layout for your WooCommmerce Shop.', 'wpex'), 'desc' => '', 'options' => array('right-sidebar' => __('Right Sidebar', 'wpex'), 'left-sidebar' => __('Left Sidebar', 'wpex'), 'full-width' => __('No Sidebar', 'wpex')), 'default' => 'full-width'), array('id' => 'woocommerce_shop_columns', 'type' => 'select', 'title' => __('Shop Columns', 'wpex'), 'subtitle' => __('Select how many columns you want.', 'wpex'), 'options' => array('2' => '2', '3' => '3', '4' => '4'), 'default' => '4'), array('id' => 'woo_category_description_position', 'type' => 'select', 'title' => __('Category Description Position', 'wpex'), 'subtitle' => __('Select your preferred location.', 'wpex'), 'desc' => '', 'options' => array('under_title' => __('Under Title', 'wpex'), 'above_loop' => __('Above Loop', 'wpex')), 'default' => 'under_title'), array('id' => 'woo_shop_title', 'type' => 'switch', 'title' => __('Shop Title', 'wpex'), 'subtitle' => __('Toggle this option on or off.', 'wpex'), 'default' => '1', 'on' => __('On', 'wpex'), 'off' => __('Off', 'wpex')), array('id' => 'woo_shop_sort', 'type' => 'switch', 'title' => __('Shop Sort', 'wpex'), 'subtitle' => __('Toggle this option on or off.', 'wpex'), 'default' => '1', 'on' => __('On', 'wpex'), 'off' => __('Off', 'wpex')), array('id' => 'woo_shop_result_count', 'type' => 'switch', 'title' => __('Shop Result Count', 'wpex'), 'subtitle' => __('Toggle this option on or off.', 'wpex'), 'default' => '1', 'on' => __('On', 'wpex'), 'off' => __('Off', 'wpex')), array('id' => 'woo_entry_style', 'type' => 'select', 'title' => __('Product Entry Style', 'wpex'), 'subtitle' => __('Select your preferred style for your WooCommmerce product entries.', 'wpex'), 'desc' => '', 'options' => array('two' => __('Default', 'wpex'), 'one' => __('Alternative', 'wpex')), 'default' => 'two'), array('id' => 'woo_entry_rating', 'type' => 'switch', 'title' => __('Product Entry Ratings', 'wpex'), 'subtitle' => __('Toggle this option on or off.', 'wpex'), 'default' => '', 'on' => __('On', 'wpex'), 'off' => __('Off', 'wpex'), 'required' => array('woo_entry_style', 'equals', 'two')), array('id' => 'woo_product_entry_style', 'type' => 'select', 'title' => __('Product Entry Media', 'wpex'), 'subtitle' => __('Select your preferred style for your WooCommmerce product entry media.', 'wpex'), 'desc' => '', 'options' => array('featured-image' => __('Featured Image', 'wpex'), 'image-swap' => __('Image Swap', 'wpex'), 'gallery-slider' => __('Gallery Slider', 'wpex')), 'default' => 'image-swap'), array('id' => 'multi-info', 'type' => 'info', 'title' => false, 'desc' => __('WooCommerce: Single Product', 'wpex')), array('id' => 'woo_shop_single_title', 'type' => 'text', 'title' => __('Single Product Shop Title', 'wpex'), 'desc' => '', 'subtitle' => __('Enter your custom shop title for single products.', 'wpex'), 'default' => __('Products', 'wpex')), array('id' => 'woo_product_layout', 'type' => 'select', 'title' => __('Product Post Layout', 'wpex'), 'subtitle' => __('Select your preferred layout for your WooCommmerce products.', 'wpex'), 'desc' => '', 'options' => array('right-sidebar' => __('Right Sidebar', 'wpex'), 'left-sidebar' => __('Left Sidebar', 'wpex'), 'full-width' => __('No Sidebar', 'wpex')), 'default' => 'left-sidebar'), array('id' => 'woocommerce_upsells_count', 'type' => 'text', 'title' => __('Up-Sells Count', 'wpex'), 'subtitle' => __('Enter the ammount of up-sell items to display on product pages.', 'wpex'), 'default' => '3'), array('id' => 'woocommerce_upsells_columns', 'type' => 'select', 'title' => __('Up-Sells Columns', 'wpex'), 'subtitle' => __('Select how many columns you want.', 'wpex'), 'options' => array('2' => '2', '3' => '3', '4' => '4'), 'default' => '3'), array('id' => 'woocommerce_related_count', 'type' => 'text', 'title' => __('Related Items Count', 'wpex'), 'subtitle' => __('Enter the ammount of related items to display on product pages. Enter "0" to disable.', 'wpex'), 'default' => '3'), array('id' => 'woocommerce_related_columns', 'type' => 'select', 'title' => __('Related Products Columns', 'wpex'), 'subtitle' => __('Select how many columns you want.', 'wpex'), 'options' => array('2' => '2', '3' => '3', '4' => '4'), 'default' => '3'), array('id' => 'woo_product_meta', 'type' => 'switch', 'title' => __('Product Meta', 'wpex'), 'subtitle' => __('Toggle this option on or off.', 'wpex'), 'default' => '1', 'on' => __('On', 'wpex'), 'off' => __('Off', 'wpex')), array('id' => 'woo_product_tabs_headings', 'type' => 'switch', 'title' => __('Product Tabs: Headings', 'wpex'), 'subtitle' => __('Toggle this option on or off.', 'wpex'), 'default' => '1', 'on' => __('On', 'wpex'), 'off' => __('Off', 'wpex')), array('id' => 'woo_next_prev', 'type' => 'switch', 'title' => __('Products Next/Prev Links', 'wpex'), 'subtitle' => __('Toggle this option on or off.', 'wpex'), 'default' => '1', 'on' => __('On', 'wpex'), 'off' => __('Off', 'wpex')), array('id' => 'multi-info', 'type' => 'info', 'title' => false, 'desc' => __('WooCommerce: Cart', 'wpex')), array('id' => 'woocommerce_cross_sells_count', 'type' => 'text', 'title' => __('Cross-Sells Count', 'wpex'), 'subtitle' => __('Enter the ammount of up-sell items to display on product pages.', 'wpex'), 'default' => '4'), array('id' => 'woocommerce_cross_sells_columns', 'type' => 'select', 'title' => __('Cross-Sells Columns', 'wpex'), 'subtitle' => __('Select how many columns you want.', 'wpex'), 'options' => array('2' => '2', '3' => '3', '4' => '4'), 'default' => '4'), array('id' => 'multi-info', 'type' => 'info', 'title' => false, 'desc' => __('WooCommerce: Styling', 'wpex')), array('id' => 'shop_button_background', 'type' => 'color_gradient', 'title' => __('Menu Shop Button Background', 'wpex'), 'subtitle' => __('Select your custom hex color.', 'wpex'), 'default' => '', 'default' => array('from' => '', 'to' => ''), 'transparent' => false, 'target_element' => '.header-one .dropdown-menu .wcmenucart, .header-one .dropdown-menu .wcmenucart:hover, .header-one .dropdown-menu .wcmenucart:active', 'theme_customizer' => false), array('id' => 'shop_button_color', 'type' => 'color', 'title' => __('Menu Shop Button Color', 'wpex'), 'subtitle' => __('Select your custom hex color.', 'wpex'), 'default' => '', 'transparent' => false, 'target_element' => '.header-one .dropdown-menu .wcmenucart, .header-one .dropdown-menu .wcmenucart:hover, .header-one .dropdown-menu .wcmenucart:active', 'target_style' => 'color', 'theme_customizer' => false), array('id' => 'onsale_bg', 'type' => 'color_gradient', 'title' => __('On Sale Background', 'wpex'), 'subtitle' => __('Select your custom hex color.', 'wpex'), 'transparent' => false, 'target_element' => 'ul.products li.product .onsale, .single-product .onsale', 'default' => array('from' => '', 'to' => '')), array('id' => 'woo_product_title_link_color', 'type' => 'link_color', 'title' => __('Product Entry Title Color', 'wpex'), 'subtitle' => __('Select your custom hex color.', 'wpex'), 'default' => array('regular' => '', 'hover' => '', 'active' => ''), 'target_element' => 'body .product-entry .product-entry-title a, .related.products .product-entry-title a', 'target_element_hover' => 'body .product-entry .product-entry-title a:hover, body .product-entry .product-entry-title:hover a, .related.products .product-entry-title:hover a, .related.products .product-entry-title a:hover', 'target_element_active' => 'body .product-entry .product-entry-title a:active, .related.products .product-entry-title a:active', 'target_style' => 'color'), array('id' => 'woo_single_price_color', 'type' => 'color', 'title' => __('Single Product Price Color', 'wpex'), 'subtitle' => __('Select your custom hex color.', 'wpex'), 'transparent' => false, 'target_element' => 'div.product p.price', 'target_style' => 'color', 'default' => ''), array('id' => 'woo_stars_color', 'type' => 'color', 'title' => __('Star Ratings Color', 'wpex'), 'subtitle' => __('Select your custom hex color.', 'wpex'), 'transparent' => false, 'target_element' => '.star-rating span', 'target_style' => 'color', 'default' => ''), array('id' => 'woo_single_tabs_active_border_color', 'type' => 'color', 'title' => __('Product Tabs Active Border Color', 'wpex'), 'subtitle' => __('Select your custom hex color.', 'wpex'), 'transparent' => false, 'target_element' => 'div.product .woocommerce-tabs ul.tabs li.active a', 'target_style' => 'border-color', 'default' => '')));
    /*-----------------------------------------------------------------------------------*/
    /*	- Blog
    	/*-----------------------------------------------------------------------------------*/
    $sections[] = array('id' => 'blog', 'icon' => 'el-icon-edit', 'title' => __('Blog', 'wpex'), 'customizer' => false, 'fields' => array(array('id' => 'blog_page', 'type' => 'select', 'data' => 'pages', 'title' => __('Blog Page', 'wpex'), 'subtitle' => __('Select your main blog page. This is used for your breadcrumbs.', 'wpex'), 'default' => ''), array('id' => 'blog_cats_exclude', 'type' => 'select', 'data' => 'categories', 'multi' => true, 'title' => __('Exclude Categories From Blog', 'wpex'), 'subtitle' => __('Use this option to exclude categories from your main blog template and/or your index (if using the homepage as a blog)', 'wpex')), array('id' => 'multi-info', 'type' => 'info', 'title' => false, 'desc' => __('Blog: Archives', 'wpex')), array('id' => 'blog_style', 'type' => 'select', 'title' => __('Blog Style', 'wpex'), 'subtitle' => __('Select your preferred blog style.', 'wpex'), 'options' => array('large-image-entry-style' => __('Large Image', 'wpex'), 'thumbnail-entry-style' => __('Thumbnail', 'wpex'), 'grid-entry-style' => __('Grid', 'wpex')), 'default' => 'large-image-entry-style'), array('id' => 'blog_grid_columns', 'type' => 'select', 'title' => __('Grid Columns', 'wpex'), 'subtitle' => __('Select how many columns you want.', 'wpex'), 'options' => array('2' => '2', '3' => '3', '4' => '4'), 'default' => '2', 'required' => array('blog_style', 'equals', 'grid-entry-style')), array('id' => 'blog_grid_style', 'type' => 'select', 'title' => __('Blog Grid Style', 'wpex'), 'subtitle' => __('Select your style.', 'wpex'), 'options' => array('fit-rows' => __('Fit Rows', 'wpex'), 'masonry' => __('Masonry', 'wpex')), 'default' => 'fit-rows', 'required' => array('blog_style', 'equals', 'grid-entry-style')), array('id' => 'blog_archives_layout', 'type' => 'select', 'title' => __('Blog Archives Layout', 'wpex'), 'subtitle' => __('Select your preferred layout for your main blog page, categories and tags.', 'wpex'), 'options' => array('right-sidebar' => __('Right Sidebar', 'wpex'), 'left-sidebar' => __('Left Sidebar', 'wpex'), 'full-width' => __('No Sidebar', 'wpex')), 'default' => 'right-sidebar'), array('id' => 'blog_pagination_style', 'type' => 'select', 'title' => __('Pagination Style', 'wpex'), 'subtitle' => __('Select your preferred pagination style for the blog.', 'wpex'), 'options' => array('standard' => __('Standard', 'wpex'), 'infinite_scroll' => __('Infinite Scroll', 'wpex'), 'next_prev' => __('Next/Prev', 'wpex')), 'default' => 'standard'), array('id' => 'category_descriptions', 'type' => 'switch', 'title' => __('Category Descriptions', 'wpex'), 'subtitle' => __('Toggle this option on or off.', 'wpex'), 'default' => '1', 'on' => __('On', 'wpex'), 'off' => __('Off', 'wpex')), array('id' => 'blog_entry_composer', 'type' => 'sorter', 'title' => __('Entry Elements', 'wpex'), 'subtitle' => __('Select your preferred order for the blog entries. Please keep in mind this doesn\'t work for all blog entry styles.', 'wpex'), 'compiler' => 'false', 'options' => array('enabled' => array('featured_media' => __('Featured Media', 'wpex'), 'title_meta' => __('Title & Meta', 'wpex'), 'excerpt_content' => __('Excerpt', 'wpex'), 'readmore' => __('Read More', 'wpex')), 'disabled' => array()), 'required' => array('blog_style', '!=', 'thumbnail-entry-style')), array('id' => 'blog_entry_image_lightbox', 'type' => 'switch', 'title' => __('Entry Image Lightbox', 'wpex'), 'subtitle' => __('Enable lightbox support for standard post type entry images.', 'wpex'), 'default' => '', 'on' => __('On', 'wpex'), 'off' => __('Off', 'wpex')), array('id' => 'blog_entry_image_hover_animation', 'type' => 'select', 'title' => __('Entry Image Hover Animation', 'wpex')), array('id' => 'blog_exceprt', 'type' => 'switch', 'title' => __('Entry Auto Excerpts', 'wpex'), 'subtitle' => __('Toggle this option on or off.', 'wpex'), 'default' => '1', 'on' => __('On', 'wpex'), 'off' => __('Off', 'wpex')), array('id' => 'blog_excerpt_length', 'type' => 'text', 'title' => __('Entry Excerpt length', 'wpex'), 'desc' => '', 'subtitle' => __('How many words do you want to show for your blog entry excerpts?', 'wpex'), 'default' => '40', 'required' => array('blog_exceprt', 'equals', '1')), array('id' => 'blog_entry_readmore', 'type' => 'switch', 'title' => __('Entry Read More Button', 'wpex'), 'subtitle' => __('Toggle this option on or off.', 'wpex'), 'default' => '1', 'on' => __('On', 'wpex'), 'off' => __('Off', 'wpex'), 'required' => array('blog_style', 'equals', 'thumbnail-entry-style')), array('id' => 'blog_entry_readmore_text', 'type' => 'text', 'title' => __('Entry Read More Text', 'wpex'), 'subtitle' => __('Your custom entry read more button text, default is "Continue Reading".', 'wpex'), 'default' => ''), array('id' => 'blog_entry_author_avatar', 'type' => 'switch', 'title' => __('Entry Author Avatar', 'wpex'), 'subtitle' => __('Toggle this option on or off.', 'wpex'), 'default' => 0, 'on' => __('On', 'wpex'), 'off' => __('Off', 'wpex'), 'required' => array('blog_style', 'equals', 'large-image-entry-style')), array('id' => 'multi-info', 'type' => 'info', 'title' => false, 'desc' => __('Blog: Single Post', 'wpex')), array('id' => 'blog_single_layout', 'type' => 'select', 'title' => __('Post Layout', 'wpex'), 'subtitle' => __('Select your preferred layout for your single posts. This setting can be overwritten on a per post basis via the meta options.', 'wpex'), 'options' => array('right-sidebar' => __('Right Sidebar', 'wpex'), 'left-sidebar' => __('Left Sidebar', 'wpex'), 'full-width' => __('No Sidebar', 'wpex')), 'default' => 'right-sidebar'), array('id' => 'blog_single_header', 'type' => 'select', 'title' => __('Post Header Displays', 'wpex'), 'subtitle' => __('Select what you want to display in the main header for single blog posts. If you select the title then it will not display with the meta within the post content, if you select custom text then the title will display with the meta.', 'wpex'), 'options' => array('custom_text' => __('Custom Text', 'wpex'), 'post_title' => __('Post Title', 'wpex')), 'default' => 'custom_text'), array('id' => 'blog_single_header_custom_text', 'type' => 'text', 'title' => __('Post Header Custom Text', 'wpex'), 'subtitle' => __('Enter your custom text for the header on single posts.', 'wpex'), 'default' => __('Blog', 'wpex'), 'required' => array('blog_single_header', '=', 'custom_text')), array('id' => 'blog_single_composer', 'type' => 'sorter', 'title' => __('Post Elements', 'wpex'), 'subtitle' => __('Select your preferred order for the blog posts.', 'wpex'), 'compiler' => 'false', 'options' => array('enabled' => array('featured_media' => __('Featured Media', 'wpex'), 'title_meta' => __('Title & Meta', 'wpex'), 'post_series' => __('Post Series', 'wpex'), 'the_content' => __('Content', 'wpex'), 'social_share' => __('Social Share', 'wpex'), 'author_bio' => __('Author Bio', 'wpex'), 'related_posts' => __('Related Posts', 'wpex'), 'comments' => __('Comments', 'wpex')), 'disabled' => array('post_tags' => __('Post Tags', 'wpex')))), array('id' => 'blog_post_image_lightbox', 'type' => 'switch', 'title' => __('Featured Image Lightbox', 'wpex'), 'subtitle' => __('Enable lightbox support for the featured image on standard posts.', 'wpex'), 'default' => '', 'on' => __('On', 'wpex'), 'off' => __('Off', 'wpex')), array('id' => 'blog_thumbnail_caption', 'type' => 'switch', 'title' => __('Featured Image Caption', 'wpex'), 'subtitle' => __('Toggle the display of the featured image caption for single blog posts on or off (for standard post format only).', 'wpex'), 'default' => '', 'on' => __('On', 'wpex'), 'off' => __('Off', 'wpex')), array('id' => 'blog_related_title', 'type' => 'text', 'title' => __('Post Related Articles Title', 'wpex'), 'subtitle' => __('Enter a custom title for the related articles section.', 'wpex'), 'default' => 'Related Posts'), array('id' => 'blog_related_columns', 'type' => 'select', 'title' => __('Post Related Columns', 'wpex'), 'subtitle' => __('Select how many columns you want.', 'wpex'), 'desc' => '', 'options' => array('4' => '4', '3' => '3', '2' => '2'), 'default' => '3'), array('id' => 'blog_related_count', 'type' => 'text', 'title' => __('Post Related Articles Count', 'wpex'), 'subtitle' => __('Enter the number of related items to display.', 'wpex'), 'default' => '3'), array('id' => 'blog_related_excerpt', 'type' => 'switch', 'title' => __('Post Related Articles Excerpt', 'wpex'), 'subtitle' => __('Toggle this option on or off.', 'wpex'), 'default' => '1', 'on' => __('On', 'wpex'), 'off' => __('Off', 'wpex')), array('id' => 'blog_related_excerpt_length', 'type' => 'text', 'title' => __('Post Related Articles Excerpt Length', 'wpex'), 'subtitle' => __('How many words to display for the related articles excerpt?', 'wpex'), 'default' => '15'), array('id' => 'multi-info', 'type' => 'info', 'title' => false, 'desc' => __('Blog: Other', 'wpex')), array('id' => 'category_description_position', 'type' => 'select', 'title' => __('Category Description Position', 'wpex'), 'subtitle' => __('Select your preferred location.', 'wpex'), 'desc' => '', 'options' => array('under_title' => __('Under Title', 'wpex'), 'above_loop' => __('Above Loop', 'wpex')), 'default' => 'under_title'), array('id' => 'breadcrumbs_blog_cat', 'type' => 'switch', 'title' => __('Category In Breadcrumbs', 'wpex'), 'subtitle' => __('Toggle this option on or off.', 'wpex'), 'default' => '1', 'on' => __('On', 'wpex'), 'off' => __('Off', 'wpex')), array('id' => 'post_series', 'type' => 'switch', 'title' => __('Post Series', 'wpex'), 'subtitle' => __('Toggle this option on or off.', 'wpex'), 'default' => '1', 'on' => __('On', 'wpex'), 'off' => __('Off', 'wpex')), array('id' => 'post_series_labels', 'type' => 'text', 'title' => __('Post Series Labels', 'wpex'), 'subtitle' => __('Use this field to rename your post series taxonomy.', 'wpex'), 'default' => __('Post Series', 'wpex')), array('id' => 'post_series_slug', 'type' => 'text', 'title' => __('Post Series Slug', 'wpex'), 'subtitle' => __('Use this field to alter the default slug for this taxonomy. After changing this field go to "Settings->Permalinks" and resave your settings to prevent 404 errors.', 'wpex'), 'default' => 'post-series')));
    /*-----------------------------------------------------------------------------------*/
    /*	- Images
    	/*-----------------------------------------------------------------------------------*/
    $sections[] = array('id' => 'images', 'icon' => 'el-icon-camera', 'title' => __('Image Cropping', 'wpex'), 'customizer' => false, 'fields' => array(array('id' => 'image_resizing', 'type' => 'switch', 'title' => __('Image Cropping', 'wpex'), 'subtitle' => __('Toggle this option on or off.', 'wpex'), 'default' => '1', 'on' => __('On', 'wpex'), 'off' => __('Off', 'wpex')), array('id' => 'retina', 'type' => 'switch', 'title' => __('Retina Support', 'wpex'), 'subtitle' => __('Toggle this option on or off.', 'wpex'), 'default' => 0, 'on' => __('On', 'wpex'), 'off' => __('Off', 'wpex'), 'required' => array('image_resizing', 'equals', '1')), array("title" => __('Blog Entry: Image Width', 'wpex'), "subtitle" => __('Enter your custom width in pixels.', 'wpex'), "id" => "blog_entry_image_width", 'default' => '9999', "type" => "text", 'required' => array('image_resizing', 'equals', '1')), array("title" => __('Blog Entry: Image Height', 'wpex'), "subtitle" => __('Enter your custom height in pixels. Enter 9999 to keep your image proportions.', 'wpex'), "id" => "blog_entry_image_height", 'default' => '9999', "type" => "text", 'required' => array('image_resizing', 'equals', '1')), array("title" => __('Blog Post: Image Width', 'wpex'), "subtitle" => __('Enter your custom width in pixels.', 'wpex'), "id" => "blog_post_image_width", 'default' => '9999', "type" => "text", 'required' => array('image_resizing', 'equals', '1')), array("title" => __('Blog Post: Image Height', 'wpex'), "subtitle" => __('Enter your custom height in pixels. Enter 9999 to keep your image proportions.', 'wpex'), "id" => "blog_post_image_height", 'default' => '9999', "type" => "text", 'required' => array('image_resizing', 'equals', '1')), array("title" => __('Blog Full-Width Post: Image Width', 'wpex'), "subtitle" => __('Enter your custom width in pixels.', 'wpex'), "id" => "blog_post_full_image_width", 'default' => '9999', "type" => "text", 'required' => array('image_resizing', 'equals', '1')), array("title" => __('Blog Full-Width Post: Image Height', 'wpex'), "subtitle" => __('Enter your custom height in pixels. Enter 9999 to keep your image proportions.', 'wpex'), "id" => "blog_post_full_image_height", 'default' => '9999', "type" => "text", 'required' => array('image_resizing', 'equals', '1')), array("title" => __('Blog Related Posts: Image Width', 'wpex'), "subtitle" => __('Enter your custom width in pixels.', 'wpex'), "id" => "blog_related_image_width", 'default' => '9999', "type" => "text", 'required' => array('image_resizing', 'equals', '1')), array("title" => __('Blog Related Posts: Image Height', 'wpex'), "subtitle" => __('Enter your custom height in pixels. Enter 9999 to keep your image proportions.', 'wpex'), "id" => "blog_related_image_height", 'default' => '9999', "type" => "text", 'required' => array('image_resizing', 'equals', '1')), array("title" => __('Portfolio Archive Entry: Image Width', 'wpex'), "subtitle" => __('Enter your custom width in pixels.', 'wpex'), "id" => "portfolio_entry_image_width", 'default' => '9999', "type" => "text", 'required' => array('image_resizing', 'equals', '1')), array("title" => __('Portfolio Archive Entry: Image Height', 'wpex'), "subtitle" => __('Enter your custom height in pixels. Enter 9999 to keep your image proportions.', 'wpex'), "id" => "portfolio_entry_image_height", 'default' => '9999', "type" => "text", 'required' => array('image_resizing', 'equals', '1')), array("title" => __('Staff Archive Entry: Image Width', 'wpex'), "subtitle" => __('Enter your custom width in pixels.', 'wpex'), "id" => "staff_entry_image_width", 'default' => '9999', "type" => "text", 'required' => array('image_resizing', 'equals', '1')), array("title" => __('Staff Archive Entry: Image Height', 'wpex'), "subtitle" => __('Enter your custom height in pixels. Enter 9999 to keep your image proportions.', 'wpex'), "id" => "staff_entry_image_height", 'default' => '9999', "type" => "text", 'required' => array('image_resizing', 'equals', '1')), array("title" => __('Testimonial Archive Entry: Image Width', 'wpex'), "subtitle" => __('Enter your custom width in pixels.', 'wpex'), "id" => "testimonial_entry_image_width", 'default' => '45', "type" => "text", 'required' => array('image_resizing', 'equals', '1')), array("title" => __('Testimonial Archive Entry: Image Height', 'wpex'), "subtitle" => __('Enter your custom height in pixels. Enter 9999 to keep your image proportions.', 'wpex'), "id" => "testimonial_entry_image_height", 'default' => '45', "type" => "text", 'required' => array('image_resizing', 'equals', '1')), array("title" => __('WooCommerce Entry: Image Width', 'wpex'), "subtitle" => __('Enter your custom width in pixels.', 'wpex'), "id" => "woo_entry_width", 'default' => '9999', "type" => "text", 'required' => array('image_resizing', 'equals', '1')), array("title" => __('WooCommerce Entry: Image Height', 'wpex'), "subtitle" => __('Enter your custom height in pixels. Enter 9999 to keep your image proportions.', 'wpex'), "id" => "woo_entry_height", 'default' => '9999', "type" => "text", 'required' => array('image_resizing', 'equals', '1')), array("title" => __('WooCommerce Post: Image Width', 'wpex'), "subtitle" => __('Enter your custom width in pixels.', 'wpex'), "id" => "woo_post_image_width", 'default' => '9999', "type" => "text", 'required' => array('image_resizing', 'equals', '1')), array("title" => __('WooCommerce Post: Image Height', 'wpex'), "subtitle" => __('Enter your custom height in pixels. Enter 9999 to keep your image proportions.', 'wpex'), "id" => "woo_post_image_height", 'default' => '9999', "type" => "text", 'required' => array('image_resizing', 'equals', '1')), array("title" => __('WooCommerce Category Entry: Image Width', 'wpex'), "subtitle" => __('Enter your custom width in pixels.', 'wpex'), "id" => "woo_cat_entry_width", 'default' => '9999', "type" => "text", 'required' => array('image_resizing', 'equals', '1')), array("title" => __('WooCommerce Category Entry: Image Height', 'wpex'), "subtitle" => __('Enter your custom height in pixels. Enter 9999 to keep your image proportions.', 'wpex'), "id" => "woo_cat_entry_height", 'default' => '9999', "type" => "text", 'required' => array('image_resizing', 'equals', '1')), array("title" => __('Custom WP Gallery: Image Width', 'wpex'), "subtitle" => __('Enter your custom width in pixels.', 'wpex'), "id" => "gallery_image_width", 'default' => '9999', "type" => "text", 'required' => array('image_resizing', 'equals', '1')), array("title" => __('Custom WP Gallery: Image Height', 'wpex'), "subtitle" => __('Enter your custom height in pixels. Enter 9999 to keep your image proportions.', 'wpex'), "id" => "gallery_image_height", 'default' => '9999', "type" => "text", 'required' => array('image_resizing', 'equals', '1'))));
    /*-----------------------------------------------------------------------------------*/
    /*	- 404
    	/*-----------------------------------------------------------------------------------*/
    $sections[] = array('id' => 'error_page', 'icon' => 'el-icon-error', 'title' => __('404 Page', 'wpex'), 'customizer' => false, 'fields' => array(array('id' => 'error_page_redirect', 'type' => 'switch', 'title' => __('Redirect 404', 'wpex'), 'subtitle' => __('Toggle on to redirect all 404 errors to your homepage. Some people think this is good for SEO.', 'wpex'), 'default' => '', 'on' => __('On', 'wpex'), 'off' => __('Off', 'wpex')), array('id' => 'error_page_title', 'type' => 'text', 'title' => __('404 Page Title', 'wpex'), 'subtitle' => __('Enter your custom title for the 404 page.', 'wpex'), 'default' => '', 'required' => array('error_page_redirect', '!=', '1')), array('id' => 'error_page_text', 'type' => 'editor', 'title' => __('404 Page Content', 'wpex'), 'subtitle' => __('Enter your custom content for the 404 page.', 'wpex'), 'default' => '', 'required' => array('error_page_redirect', '!=', '1'), 'teeny' => false), array('id' => 'error_page_styling', 'type' => 'switch', 'title' => __('404 Page Default Styling', 'wpex'), 'subtitle' => __('Toggle this option on or off.', 'wpex'), 'default' => '1', 'on' => __('On', 'wpex'), 'off' => __('Off', 'wpex'), 'required' => array('error_page_redirect', '!=', '1'))));
    /*-----------------------------------------------------------------------------------*/
    /*	- Footer
    	/*-----------------------------------------------------------------------------------*/
    $sections[] = array('id' => 'footer', 'icon' => 'el-icon-bookmark', 'title' => __('Footer', 'wpex'), 'customizer' => false, 'fields' => array(array('id' => 'footer_reveal', 'type' => 'switch', 'title' => __('Footer Reveal', 'wpex'), 'subtitle' => __('Enable the footer reveal style. The footer will be placed in a fixed postion and display on scroll. This setting is for the "Full-Width" layout only and desktops only.', 'wpex'), 'default' => '', 'on' => __('On', 'wpex'), 'off' => __('Off', 'wpex')), array('id' => 'multi-info', 'type' => 'info', 'title' => false, 'desc' => __('Footer Callout', 'wpex')), array('id' => 'callout', 'type' => 'switch', 'title' => __('Footer Callout', 'wpex'), 'default' => true), array('id' => 'callout_visibility', 'type' => 'select', 'title' => __('Callout Visibility', 'wpex')), array('id' => 'callout_text', 'type' => 'editor', 'title' => __('Footer Callout: Content', 'wpex'), 'default' => 'I am the footer call-to-action block, here you can add some relevant/important information about your company or product. I can be disabled in the theme options.'), array('id' => 'callout_link', 'type' => 'text', 'title' => __('Footer Callout: Link', 'wpex'), 'default' => 'http://www.wpexplorer.com'), array('id' => 'callout_link_txt', 'type' => 'text', 'title' => __('Footer Callout: Link Text', 'wpex'), 'default' => 'Get In Touch'), array('id' => 'footer_callout_bg', 'type' => 'color', 'title' => __('Footer Callout: Background', 'wpex'), 'subtitle' => __('Select your custom hex color.', 'wpex'), 'default' => '', 'transparent' => false, 'target_element' => '#footer-callout-wrap', 'target_style' => 'background-color', 'required' => array('callout', 'equals', '1')), array('id' => 'footer_callout_border', 'type' => 'color', 'title' => __('Footer Callout: Border Color', 'wpex'), 'subtitle' => __('Select your custom hex color.', 'wpex'), 'default' => '', 'transparent' => false, 'target_element' => '#footer-callout-wrap', 'target_style' => 'border-top-color', 'required' => array('callout', 'equals', '1')), array('id' => 'footer_callout_color', 'type' => 'color', 'title' => __('Footer Callout: Color', 'wpex'), 'subtitle' => __('Select your custom hex color.', 'wpex'), 'default' => '', 'transparent' => false, 'target_element' => '#footer-callout-wrap', 'target_style' => 'color', 'required' => array('callout', 'equals', '1')), array('id' => 'footer_callout_link_color', 'type' => 'link_color', 'title' => __('Footer Callout: Content Link Color', 'wpex'), 'subtitle' => __('Select your custom hex color.', 'wpex'), 'default' => array('regular' => '', 'hover' => '', 'active' => ''), 'target_element' => '.footer-callout-content a', 'target_element_hover' => '.footer-callout-content a:hover', 'target_element_active' => '.footer-callout-content a:active', 'target_style' => 'color', 'required' => array('callout', 'equals', '1')), array('id' => 'footer_callout_button_bg', 'type' => 'color_gradient', 'title' => __('Footer Callout: Button Background', 'wpex'), 'subtitle' => __('Select your custom hex color.', 'wpex'), 'default' => array('from' => '', 'to' => ''), 'transparent' => false, 'target_element' => '#footer-callout .theme-button', 'required' => array('callout', 'equals', '1')), array('id' => 'footer_callout_button_color', 'type' => 'color', 'title' => __('Footer Callout: Button Text Color', 'wpex'), 'subtitle' => __('Select your custom hex color.', 'wpex'), 'transparent' => false, 'default' => '', 'target_element' => '#footer-callout .theme-button', 'required' => array('callout', 'equals', '1'), 'target_style' => 'color'), array('id' => 'footer_callout_button_hover_bg', 'type' => 'color_gradient', 'title' => __('Footer Callout: Button Hover Background', 'wpex'), 'subtitle' => __('Select your custom hex color.', 'wpex'), 'default' => array('from' => '', 'to' => ''), 'transparent' => false, 'target_element' => '#footer-callout .theme-button:hover', 'required' => array('callout', 'equals', '1')), array('id' => 'footer_callout_button_hover_color', 'type' => 'color', 'title' => __('Footer Callout: Button Hover Text Color', 'wpex'), 'subtitle' => __('Select your custom hex color.', 'wpex'), 'transparent' => false, 'default' => '', 'target_element' => '#footer-callout .theme-button:hover', 'required' => array('callout', 'equals', '1'), 'target_style' => 'color'), array('id' => 'callout_button_target', 'type' => 'select', 'title' => __('Footer Callout: Button Target', 'wpex'), 'subtitle' => __('Select your footer callout button link target window.', 'wpex'), 'options' => array('blank' => __('New Window', 'wpex'), 'self' => __('Same Window', 'wpex')), 'default' => 'blank', 'required' => array('callout', 'equals', '1')), array('id' => 'callout_button_rel', 'type' => 'select', 'title' => __('Footer Callout: Button Rel', 'wpex'), 'subtitle' => __('Select your footer callout button link rel value.', 'wpex'), 'options' => array('dofollow' => 'dofollow', 'nofollow' => 'nofollow'), 'default' => 'dofollow', 'required' => array('callout', 'equals', '1')), array('id' => 'callout_button_border_radius', 'type' => 'text', 'title' => __('Footer Callout: Button Border Radius', 'wpex'), 'subtitle' => __('Enter your custom border radius for the callout button in px.', 'wpex'), 'required' => array('callout', 'equals', '1')), array('id' => 'multi-info', 'type' => 'info', 'title' => false, 'desc' => __('Footer Widgets', 'wpex')), array('id' => 'footer_widgets', 'type' => 'switch', 'title' => __('Footer Widgets', 'wpex'), 'subtitle' => __('Toggle this option on or off.', 'wpex'), 'default' => '1', 'on' => __('On', 'wpex'), 'off' => __('Off', 'wpex')), array('id' => 'footer_col', 'type' => 'select', 'title' => __('Footer Widget Columns', 'wpex'), 'subtitle' => __('Select how many columns you want.', 'wpex'), 'desc' => '', 'options' => array('4' => '4', '3' => '3', '2' => '2', '1' => '1'), 'default' => '4', 'required' => array('footer_widgets', 'equals', '1')), array('id' => 'multi-info', 'type' => 'info', 'title' => false, 'desc' => __('Bottom Footer Area', 'wpex')), array('id' => 'footer_copyright', 'type' => 'switch', 'title' => __('Bottom Footer Area', 'wpex'), 'subtitle' => __('Toggle this option on or off.', 'wpex'), 'default' => '1', 'on' => __('On', 'wpex'), 'off' => __('Off', 'wpex')), array('id' => 'footer_copyright_text', 'type' => 'editor', 'title' => __('Copyright', 'wpex'), 'subtitle' => __('Enter your custom copyright text.', 'wpex'), 'default' => 'Copyright 2013 - All Rights Reserved', 'required' => array('footer_copyright', 'equals', '1'), 'editor_options' => '', 'args' => array('teeny' => false)), array('id' => 'multi-info', 'type' => 'info', 'title' => false, 'desc' => __('Scroll Up Button', 'wpex')), array('id' => 'scroll_top', 'type' => 'switch', 'title' => __('Scroll Up Button', 'wpex'), 'subtitle' => __('Toggle this option on or off.', 'wpex'), 'default' => '1', 'on' => __('On', 'wpex'), 'off' => __('Off', 'wpex')), array('id' => 'scroll_top_border_radius', 'type' => 'text', 'title' => __('Scroll Up Button Border Radius', 'wpex'), 'subtitle' => __('Enter your custom border radius for the scroll top button. Default is 35px.', 'wpex'), 'required' => array('scroll_top', 'equals', '1')), array('id' => 'scroll_top_bg', 'type' => 'link_color', 'title' => __('Scroll Up Button Background', 'wpex'), 'subtitle' => __('Select your custom hex color.', 'wpex'), 'default' => array('regular' => '', 'hover' => '', 'active' => ''), 'required' => array('scroll_top', 'equals', '1'), 'target_element' => '#site-scroll-top', 'target_element_hover' => '#site-scroll-top:hover', 'target_element_active' => '#site-scroll-top:active', 'target_style' => 'background'), array('id' => 'scroll_top_border', 'type' => 'link_color', 'title' => __('Scroll Up Button Border', 'wpex'), 'subtitle' => __('Select your custom hex color.', 'wpex'), 'default' => array('regular' => '', 'hover' => '', 'active' => ''), 'required' => array('scroll_top', 'equals', '1'), 'target_element' => '#site-scroll-top', 'target_element_hover' => '#site-scroll-top:hover', 'target_element_active' => '#site-scroll-top:active', 'target_style' => 'border-color'), array('id' => 'scroll_top_color', 'type' => 'link_color', 'title' => __('Scroll Up Button Color', 'wpex'), 'subtitle' => __('Select your custom hex color.', 'wpex'), 'default' => array('regular' => '', 'hover' => '', 'active' => ''), 'required' => array('scroll_top', 'equals', '1'), 'target_element' => '#site-scroll-top', 'target_element_hover' => '#site-scroll-top:hover', 'target_element_active' => '#site-scroll-top:active', 'target_style' => 'color')));
    /*-----------------------------------------------------------------------------------*/
    /*	- Visual Composer
    	/*-----------------------------------------------------------------------------------*/
    $sections[] = array('id' => 'visual_composer', 'icon' => 'el-icon-puzzle', 'customizer' => false, 'title' => __('Visual Composer', 'wpex'), 'fields' => array(array('id' => 'visual_composer_theme_mode', 'type' => 'switch', 'title' => __('Run Visual Composer In Theme Mode', 'wpex'), 'subtitle' => __('Please keep this option enabled unless you have purchased a full copy of the Visual Composer plugin directly from the author.', 'wpex'), 'default' => '1', 'on' => __('On', 'wpex'), 'off' => __('Off', 'wpex')), array('id' => 'extend_visual_composer_extension', 'type' => 'switch', 'title' => __('Extend The Visual Composer?', 'wpex'), 'subtitle' => __('This theme includes many extensions (more modules) for the Visual Composer plugin. If you do not wish to use any disable them here.', 'wpex'), 'default' => '1', 'on' => __('On', 'wpex'), 'off' => __('Off', 'wpex')), array('id' => 'vc_row_bottom_margin', 'type' => 'text', 'title' => __('Visual Composer Bottom Column Margin', 'wpex'), 'subtitle' => __('Enter a default bottom margin for all Visual Composer columns to help speed up development.', 'wpex'), 'default' => '40px'), array('id' => 'vcex_text_separator_two_border_color', 'type' => 'color', 'title' => __('Seperator With Text Border Color', 'wpex'), 'subtitle' => __('Select your custom hex color for the seperator with text module style 2.', 'wpex'), 'default' => '', 'transparent' => false, 'target_element' => 'body .vc_text_separator_two span', 'target_style' => 'border-color', 'theme_customizer' => false), array('id' => 'vcex_text_tab_two_bottom_border', 'type' => 'color', 'title' => __('Tabs Alternative 2 Border Color', 'wpex')), array('id' => 'vcex_carousel_arrows', 'type' => 'color', 'title' => __('Carousel Arrows Highlight Color', 'wpex')), array('id' => 'vcex_pricing_featured_default', 'type' => 'color', 'title' => __('Featured Pricing Table Color', 'wpex')), array('id' => 'vcex_grid_filter_active_color', 'type' => 'color', 'title' => __('Grid Filter: Active Link Color', 'wpex')), array('id' => 'vcex_grid_filter_active_bg', 'type' => 'color', 'title' => __('Grid Filter: Active Link Background', 'wpex')), array('id' => 'vcex_grid_filter_active_border', 'type' => 'color', 'title' => __('Grid Filter: Active Link Border', 'wpex')), array('id' => 'vcex_recent_news_date_bg', 'type' => 'color', 'title' => __('Recent News Date: Background', 'wpex')), array('id' => 'vcex_recent_news_date_color', 'type' => 'color', 'title' => __('Recent News Date: Color', 'wpex')), array('id' => 'vcex_icon_box_hover_color', 'type' => 'color', 'title' => __('Icon Box Hover Color', 'wpex'))));
    /*-----------------------------------------------------------------------------------*/
    /*	- Admin Login
    	/*-----------------------------------------------------------------------------------*/
    $sections[] = array('id' => 'admin_login', 'icon' => 'el-icon-lock', 'title' => __('Admin Login', 'wpex'), 'customizer' => false, 'fields' => array(array('id' => 'custom_admin_login', 'type' => 'switch'), array('id' => 'admin_login_logo', 'type' => 'media'), array('id' => 'admin_login_logo_height', 'type' => 'text'), array('id' => 'admin_login_logo_url', 'type' => 'text'), array('id' => 'admin_login_background_color', 'type' => 'color'), array('id' => 'admin_login_background_img', 'type' => 'media'), array('id' => 'admin_login_background_style', 'type' => 'select'), array('id' => 'admin_login_form_background_color', 'type' => 'color'), array('id' => 'admin_login_form_background_opacity', 'type' => 'text'), array('id' => 'admin_login_form_text_color', 'type' => 'color'), array('id' => 'admin_login_form_top', 'type' => 'text')));
    /*-----------------------------------------------------------------------------------*/
    /*	- Social
    	/*-----------------------------------------------------------------------------------*/
    $sections[] = array('id' => 'social', 'icon' => 'el-icon-twitter', 'title' => __('Social Sharing', 'wpex'), 'customizer' => false, 'fields' => array(array('id' => 'social_share_position', 'type' => 'select'), array('id' => 'social_share_heading', 'type' => 'text', 'title' => __('Social Sharing Heading', 'wpex'), 'subtitle' => __('Your custom text for the social sharing heading. For mobile and horizontal social sharing.', 'wpex'), 'default' => __('Please Share This', 'wpex')), array('id' => 'social_share_style', 'type' => 'select', 'title' => __('Social Sharing Style', 'wpex'), 'desc' => '', 'options' => array('minimal' => __('Minimal', 'wpex'), 'flat' => __('Flat', 'wpex'), 'three-d' => __('3D', 'wpex')), 'default' => 'minimal'), array('id' => 'social_share_blog_posts', 'type' => 'switch', 'title' => __('Blog Posts: Social Share', 'wpex'), 'subtitle' => __('Toggle this option on or off.', 'wpex'), 'default' => '1', 'on' => __('On', 'wpex'), 'off' => __('Off', 'wpex')), array('id' => 'social_share_blog_entries', 'type' => 'switch', 'title' => __('Blog Entries: Social Share', 'wpex'), 'subtitle' => __('Toggle the social sharing icons on your blog entries on or off. Note: They will only display on the Large Image style blog entries and for the vertical social position.', 'wpex'), 'default' => '1', 'on' => __('On', 'wpex'), 'off' => __('Off', 'wpex'), 'required' => array('social_share_position', 'equals', 'vertical')), array('id' => 'social_share_pages', 'type' => 'switch', 'title' => __('Pages: Social Share', 'wpex'), 'subtitle' => __('Toggle this option on or off.', 'wpex'), 'default' => '0', 'on' => __('On', 'wpex'), 'off' => __('Off', 'wpex')), array('id' => 'social_share_portfolio', 'type' => 'switch', 'title' => __('Portfolio: Social Share', 'wpex'), 'subtitle' => __('Toggle this option on or off.', 'wpex'), 'default' => '1', 'on' => __('On', 'wpex'), 'off' => __('Off', 'wpex')), array('id' => 'social_share_staff', 'type' => 'switch', 'title' => __('Staff: Social Share', 'wpex'), 'subtitle' => __('Toggle this option on or off.', 'wpex'), 'default' => '', 'on' => __('On', 'wpex'), 'off' => __('Off', 'wpex')), array('id' => 'social_share_woo', 'type' => 'switch', 'title' => __('WooCommerce: Social Share', 'wpex'), 'subtitle' => __('Toggle this option on or off.', 'wpex'), 'default' => '0', 'on' => __('On', 'wpex'), 'off' => __('Off', 'wpex')), array('id' => 'social_share_sites', 'type' => 'checkbox', 'title' => __('Social Sharing Links', 'wpex'))));
    /*-----------------------------------------------------------------------------------*/
    /*	- Lightbox
    	/*-----------------------------------------------------------------------------------*/
    $sections[] = array('id' => 'lightbox', 'icon' => 'el-icon-zoom-in', 'customizer' => false, 'title' => __('Lightbox', 'wpex'), 'fields' => array(array('id' => 'lightbox_skin', 'type' => 'select', 'tiles' => false, 'title' => __('Lightbox Skin', 'wpex'), 'subtitle' => __('Select your lightbox skin.', 'wpex'), 'default' => 'dark', 'options' => array('dark' => __('Dark', 'wpex'), 'light' => __('Light', 'wpex'), 'mac' => __('Mac', 'wpex'), 'metro-black' => __('Metro Black', 'wpex'), 'metro-white' => __('Metro White', 'wpex'), 'parade' => __('Parade', 'wpex'), 'smooth' => __('Smooth', 'wpex'))), array('id' => 'lightbox_thumbnails', 'type' => 'switch', 'title' => __('Lightbox Gallery Thumbnails', 'wpex'), 'subtitle' => __('Toggle this option on or off.', 'wpex'), 'default' => '1', 'on' => __('On', 'wpex'), 'off' => __('Off', 'wpex')), array('id' => 'lightbox_arrows', 'type' => 'switch', 'title' => __('Lightbox Gallery Arrows', 'wpex'), 'subtitle' => __('Toggle this option on or off.', 'wpex'), 'default' => '1', 'on' => __('On', 'wpex'), 'off' => __('Off', 'wpex')), array('id' => 'lightbox_mousewheel', 'type' => 'switch', 'title' => __('Lightbox Mousewheel', 'wpex'), 'subtitle' => __('Toggle this option on or off.', 'wpex'), 'default' => '1', 'on' => __('On', 'wpex'), 'off' => __('Off', 'wpex')), array('id' => 'lightbox_titles', 'type' => 'switch', 'title' => __('Lightbox Titles', 'wpex'), 'subtitle' => __('Toggle this option on or off.', 'wpex'), 'default' => '1', 'on' => __('On', 'wpex'), 'off' => __('Off', 'wpex')), array('id' => 'lightbox_fullscreen', 'type' => 'switch', 'title' => __('Lightbox Fullscreen Button', 'wpex'), 'subtitle' => __('Toggle this option on or off.', 'wpex'), 'default' => '1', 'on' => __('On', 'wpex'), 'off' => __('Off', 'wpex'))));
    /*-----------------------------------------------------------------------------------*/
    /*	- SEO
    	/*-----------------------------------------------------------------------------------*/
    $sections[] = array('id' => 'seo', 'icon' => 'el-icon-search', 'title' => __('SEO', 'wpex'), 'customizer' => false, 'fields' => array(array('id' => 'sidebar_headings', 'type' => 'select', 'title' => __('Sidebar Widget Title Headings', 'wpex'), 'subtitle' => __('Select your preferred heading type.', 'wpex'), 'desc' => '', 'options' => array('h2' => 'h2', 'h3' => 'h3', 'h4' => 'h4', 'h5' => 'h5', 'h6' => 'h6', 'span' => 'span', 'div' => 'div'), 'default' => 'div'), array('id' => 'footer_headings', 'type' => 'select', 'title' => __('Footer Widget Title Headings', 'wpex'), 'subtitle' => __('Select your preferred heading type.', 'wpex'), 'options' => array('h2' => 'h2', 'h3' => 'h3', 'h4' => 'h4', 'h5' => 'h5', 'h6' => 'h6', 'span' => 'span', 'div' => 'div'), 'default' => 'div'), array('id' => 'breadcrumbs', 'type' => 'switch', 'title' => __('Breadcrumbs', 'wpex'), 'subtitle' => __('Toggle this option on or off.', 'wpex'), 'default' => '1', 'on' => __('On', 'wpex'), 'off' => __('Off', 'wpex')), array('id' => 'breadcrumbs_position', 'type' => 'select', 'title' => __('Breadcrumbs: Position', 'wpex'), 'subtitle' => __('Select your preferred breadcrumbs style.', 'wpex'), 'options' => array('default' => __('Absolute Right', 'wpex'), 'under-title' => __('Under Title', 'wpex')), 'default' => 'default', 'required' => array('breadcrumbs', 'equals', '1')), array('id' => 'breadcrumbs_home_title', 'type' => 'text', 'title' => __('Breadcrumbs: Custom Home Title', 'wpex'), 'subtitle' => __('Enter your custom breadcrumbs home title. You can enter HTML if you want to display an icon instead (just like adding icons to your menu using FontAwesome).', 'wpex'), 'default' => '', 'required' => array('breadcrumbs', 'equals', '1')), array('id' => 'breadcrumbs_title_trim', 'type' => 'text', 'title' => __('Breadcrumbs: Title Trim Length', 'wpex'), 'subtitle' => __('Enter the max number of words to display for your breadcrumbs post title.', 'wpex'), 'default' => '4', 'required' => array('breadcrumbs', 'equals', '1')), array('id' => 'remove_posttype_slugs', 'type' => 'switch', 'title' => __('Remove Custom Post Type Slugs (Experimental)', 'wpex'), 'subtitle' => __('Toggle the slug on/off for your custom post types (portfolio, staff, testimonials). Custom Post Types in WordPress by default should have a slug to prevent conflicts, you can use this setting to disable them, but be careful.', 'wpex'), 'default' => '', 'on' => __('On', 'wpex'), 'off' => __('Off', 'wpex'))));
    /*-----------------------------------------------------------------------------------*/
    /*	- Other
    	/*-----------------------------------------------------------------------------------*/
    $sections[] = array('id' => 'other', 'icon' => 'el-icon-wrench', 'title' => __('Other', 'wpex'), 'customizer' => false, 'fields' => array(array('id' => 'page_single_layout', 'type' => 'select', 'title' => __('Page Layout', 'wpex'), 'subtitle' => __('Select your preferred layout for your pages. This setting can be overwritten on a per page basis via the meta options.', 'wpex'), 'desc' => '', 'options' => array('right-sidebar' => __('Right Sidebar', 'wpex'), 'left-sidebar' => __('Left Sidebar', 'wpex'), 'full-width' => __('No Sidebar', 'wpex')), 'default' => 'right-sidebar'), array('id' => 'pages_custom_sidebar', 'type' => 'switch', 'title' => __('Custom Pages Sidebar', 'wpex'), 'subtitle' => __('Toggle this option on or off.', 'wpex'), 'default' => '1', 'on' => __('On', 'wpex'), 'off' => __('Off', 'wpex')), array('id' => 'search_custom_sidebar', 'type' => 'switch', 'title' => __('Custom Search Results Sidebar', 'wpex'), 'subtitle' => __('Toggle this option on or off.', 'wpex'), 'default' => '1', 'on' => __('On', 'wpex'), 'off' => __('Off', 'wpex')), array('id' => 'shortcodes_tinymce', 'type' => 'switch', 'title' => __('Shortcodes TinyMCE Button', 'wpex'), 'subtitle' => __('Toggle the built-in TinyMCE Shortcodes button that contains some useful shortcodes.', 'wpex'), 'default' => '1', 'on' => __('On', 'wpex'), 'off' => __('Off', 'wpex')), array('id' => 'custom_wp_gallery', 'type' => 'switch', 'title' => __('Custom WordPress Gallery Output', 'wpex'), 'subtitle' => __('Toggle this option on or off.', 'wpex'), 'default' => '1', 'on' => __('On', 'wpex'), 'off' => __('Off', 'wpex')), array('id' => 'blog_dash_thumbs', 'type' => 'switch', 'title' => __('Dashboard Featured Images', 'wpex'), 'subtitle' => __('Toggle this option on or off.', 'wpex'), 'default' => '1', 'on' => __('On', 'wpex'), 'off' => __('Off', 'wpex')), array('id' => 'page_comments', 'type' => 'switch', 'title' => __('Comments on Pages', 'wpex'), 'subtitle' => __('Toggle this option on or off.', 'wpex'), 'default' => '0', 'on' => __('On', 'wpex'), 'off' => __('Off', 'wpex')), array('id' => 'widget_icons', 'type' => 'switch', 'title' => __('Widget Icons', 'wpex'), 'subtitle' => __('Certain widgets include little icons such as the recent posts widget. Here you can toggle the icons on or off.', 'wpex'), 'default' => '1', 'on' => __('On', 'wpex'), 'off' => __('Off', 'wpex')), array('id' => 'page_featured_image', 'type' => 'switch', 'title' => __('Automatically Display Featured Images For Pages', 'wpex'), 'subtitle' => __('Set to "on" if you want the featured images for pages to display automatically at the top of the page.', 'wpex'), 'default' => '0', 'on' => __('On', 'wpex'), 'off' => __('Off', 'wpex')), array('id' => 'trim_custom_excerpts', 'type' => 'switch', 'title' => __('Trim custom excerpts', 'wpex'), 'subtitle' => __('Set to "on" if you want custom excerpts to be trimed for your entries to the excerpt length defined. If set to "off" custom excerpts will always output in full.', 'wpex'), 'default' => '1', 'on' => __('On', 'wpex'), 'off' => __('Off', 'wpex')), array('id' => 'search_posts_per_page', 'type' => 'text', 'title' => __('Search Posts Per Page', 'wpex'), 'subtitle' => __('How many posts do you wish to display on your search page before pagination?', 'wpex'), 'default' => '10'), array('id' => 'posts_meta_options', 'type' => 'checkbox', 'title' => __('Meta Options', 'wpex'), 'subtitle' => __('Select the items to include in the post meta.', 'wpex'), 'options' => array('date' => 'Date', 'category' => 'Category', 'comments' => 'Comments', 'author' => 'Author'), 'default' => array('date' => '1', 'category' => '1', 'comments' => '1', 'author' => false))));
    /*-----------------------------------------------------------------------------------*/
    /*	- Optimizations
    	/*-----------------------------------------------------------------------------------*/
    $sections[] = array('id' => 'optimizations', 'icon' => 'el-icon-tasks', 'title' => __('Optimizations', 'wpex'), 'fields' => array(array('id' => 'minify_js', 'type' => 'switch', 'title' => __('Minify JS', 'wpex'), 'subtitle' => __('This theme makes use of a lot of js scripts, use this function to load a single minified file with all the required code. Disable for testing purposes.', 'wpex'), 'default' => '1', 'on' => __('On', 'wpex'), 'off' => __('Off', 'wpex')), array('id' => 'remove_scripts_version', 'type' => 'switch', 'title' => __('Remove Version Parameter From JS & CSS Files', 'wpex'), 'subtitle' => __('Most scripts and style-sheets called by WordPress include a query string identifying the version. This can cause issues with caching and such, which will result in less than optimal load times. You can toggle this setting on to remove the query string from such strings.', 'wpex'), 'default' => '1', 'on' => __('On', 'wpex'), 'off' => __('Off', 'wpex')), array('id' => 'jpeg_100', 'type' => 'switch', 'title' => __('JPEG 100% Quality', 'wpex'), 'subtitle' => __('By default images cropped with WordPress are resized/cropped at 90% quality. Enable this setting to set all JPEGs to 100% quality.', 'wpex'), 'default' => '0', 'on' => __('On', 'wpex'), 'off' => __('Off', 'wpex')), array('id' => 'remove_jetpack_devicepx', 'type' => 'switch', 'title' => __('Remove Jetpack devicepx script', 'wpex'), 'subtitle' => __('Toggle the jetpack devicepx script on/off. The file is used to optionally load retina/HiDPI versions of files (Gravatars etc) which are known to support it, for devices that run at a higher resolution. But can be disabled to prevent the extra js call.', 'wpex'), 'default' => '0', 'on' => __('On', 'wpex'), 'off' => __('Off', 'wpex')), array('id' => 'cleanup_wp_head', 'type' => 'checkbox', 'title' => __('Cleanup WP Head', 'wpex'), 'subtitle' => __('Select the items to REMOVE from the wp_head hook to clean things up.', 'wpex'), 'options' => array('feed_links' => 'General Feed Links', 'feed_links_extra' => 'Extra Feed Links', 'rsd_link' => 'EditURI/RSD link', 'wlwmanifest_link' => 'Windows Live Writer Manifest', 'index_rel_link' => 'Index Link', 'parent_post_rel_link' => 'Parent Post Rel', 'start_post_rel_link' => 'Start Post Rel', 'adjacent_posts_rel_link_wp_head' => 'Adjecent Posts Rel', 'wp_generator' => 'WordPress Generator (WP Version)'), 'default' => array('feed_links_extra' => '1', 'feed_links' => '1', 'rsd_link' => '1', 'wlwmanifest_link' => '1', 'index_rel_link' => '1', 'parent_post_rel_link' => '1', 'start_post_rel_link' => '1', 'adjacent_posts_rel_link_wp_head' => '1', 'wp_generator' => '1'))));
    /*-----------------------------------------------------------------------------------*/
    /*	- Custom CSS
    	/*-----------------------------------------------------------------------------------*/
    $sections[] = array('id' => 'custom_css', 'icon' => 'el-icon-css', 'title' => __('Custom CSS', 'wpex'), 'fields' => array(array('id' => 'custom_css', 'type' => 'textarea', 'rows' => 50, 'theme' => '', 'title' => __('Design Edits', 'wpex'), 'subtitle' => __('Quickly add some CSS to your theme to make design adjustments by adding it to this block. It is a much better solution then manually editing style.css<br /><br />This field is provided for your convinience, but please if you are making a lot of changes use a child theme as you should!', 'wpex'), 'default' => '')));
    /*-----------------------------------------------------------------------------------*/
    /*	- Auto Updates
    	/*-----------------------------------------------------------------------------------*/
    $sections[] = array('id' => 'updates', 'icon' => 'el-icon-retweet', 'title' => __('Theme Updates', 'wpex'), 'fields' => array(array('id' => 'enable_auto_updates', 'type' => 'switch', 'title' => __('Enable Auto Updates', 'wpex'), 'subtitle' => __('You can toggle the automatic updates for your theme on or off.', 'wpex'), 'default' => '0', 'on' => __('On', 'wpex'), 'off' => __('Off', 'wpex')), array('id' => 'envato_license_key', 'type' => 'text')));
    return $sections;
}
コード例 #14
0
/**
 * 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')))));
}