Ejemplo n.º 1
0
/**
 * Array of Font Icons for meta options
 *
 * @since 1.0.0
 */
function wpex_get_meta_awesome_icons()
{
    $awesome_icons = wpex_get_awesome_icons();
    $return_array = array();
    foreach ($awesome_icons as $awesome_icon) {
        $return_array[] = array('name' => $awesome_icon, 'value' => $awesome_icon);
    }
    return $return_array;
}
 *
 * @package Total WordPress Theme
 * @subpackage Customizer
 */
// Exit if accessed directly
if (!defined('ABSPATH')) {
    exit;
}
// Accent Colors
$this->sections['wpex_accent_colors'] = array('title' => __('Accent Colors', 'wpex'), 'panel' => 'wpex_general', 'settings' => array(array('id' => 'accent_color', 'default' => '#3b86b0', 'control' => array('label' => __('Accent Color', 'wpex'), 'type' => 'color'))));
// Background
$patterns_url = get_template_directory_uri() . '/images/patterns/';
$this->sections['wpex_background_background'] = array('title' => __('Site Background', 'wpex'), 'panel' => 'wpex_general', 'desc' => __('Here you can alter the global site background. It is highly recommended that you first set the site layout to "Boxed" under the Layout options.', 'wpex'), 'settings' => array(array('id' => 'background_color', 'control' => array('label' => __('Background Color', 'wpex'), 'type' => 'color')), array('id' => 'background_image', 'control' => array('label' => __('Custom Background Image', 'wpex'), 'type' => 'image', 'active_callback' => 'wpex_customizer_hasnt_background_pattern')), array('id' => 'background_style', 'default' => 'stretched', 'control' => array('label' => __('Background Image Style', 'wpex'), 'type' => 'image', 'type' => 'select', 'active_callback' => 'wpex_customizer_has_background_image', 'choices' => array('stretched' => _x('Stretched', 'Background Style', 'wpex'), 'repeat' => _x('Repeat', 'Background Style', 'wpex'), 'fixed' => _x('Center Fixed', 'Background Style', 'wpex'), 'repeat-x' => _x('Repeat-x', 'Background Style', 'wpex'), 'repeat-y' => _x('Repeat-y', 'Background Style', 'wpex'), 'repeat-y' => _x('Repeat-y', 'Background Style', 'wpex')))), array('id' => 'background_pattern', 'control' => array('label' => __('Background Pattern', 'wpex'), 'type' => 'image', 'type' => 'select', 'active_callback' => 'wpex_customizer_hasnt_background_image', 'choices' => array('' => __('None', 'wpex'), $patterns_url . 'dark_wood.png' => __('Dark Wood', 'wpex'), $patterns_url . 'diagmonds.png' => __('Diamonds', 'wpex'), $patterns_url . 'grilled.png' => __('Grilled', 'wpex'), $patterns_url . 'lined_paper.png' => __('Lined Paper', 'wpex'), $patterns_url . 'old_wall.png' => __('Old Wall', 'wpex'), $patterns_url . 'ricepaper2.png' => __('Rice Paper', 'wpex'), $patterns_url . 'tree_bark.png' => __('Tree Bark', 'wpex'), $patterns_url . 'triangular.png' => __('Triangular', 'wpex'), $patterns_url . 'white_plaster.png' => __('White Plaster', 'wpex'), $patterns_url . 'wild_flowers.png' => __('Wild Flowers', 'wpex'), $patterns_url . 'wood_pattern.png' => __('Wood Pattern', 'wpex'))))));
// Social Sharing Section
$this->sections['wpex_social_sharing'] = array('title' => __('Social Sharing', 'wpex'), 'panel' => 'wpex_general', 'settings' => array(array('id' => 'social_share_sites', 'default' => array('twitter', 'facebook', 'google_plus', 'pinterest'), 'control' => array('label' => __('Sites', 'wpex'), 'type' => 'multiple-select', 'object' => 'WPEX_Customize_Multicheck_Control', 'choices' => array('twitter' => __('Twitter', 'wpex'), 'facebook' => __('Facebook', 'wpex'), 'google_plus' => __('Google Plus', 'wpex'), 'pinterest' => __('Pinterest', 'wpex'), 'linkedin' => __('LinkedIn', 'wpex')))), array('id' => 'social_share_position', 'default' => '', 'control' => array('label' => __('Position', 'wpex'), 'type' => 'select', 'choices' => array('' => __('Default', 'wpex'), 'horizontal' => __('Horizontal', 'wpex'), 'vertical' => __('Vertical', 'wpex')), 'active_callback' => 'wpex_has_social_share_sites')), array('id' => 'social_share_heading_enable', 'default' => true, 'control' => array('label' => __('Enable Heading', 'wpex'), 'type' => 'checkbox', 'active_callback' => 'wpex_social_sharing_supports_heading')), array('id' => 'social_share_heading', 'default' => __('Please Share This', 'wpex'), 'control' => array('label' => __('Heading on Posts', 'wpex'), 'type' => 'text', 'active_callback' => 'wpex_social_sharing_supports_heading')), array('id' => 'social_share_style', 'default' => 'flat', 'control' => array('label' => __('Style', 'wpex'), 'type' => 'select', 'choices' => array('flat' => _x('Flat', 'Social Share Style', 'wpex'), 'minimal' => _x('Minimal', 'Social Share Style', 'wpex'), 'three-d' => _x('3D', 'Social Share Style', 'wpex')), 'active_callback' => 'wpex_has_social_share_sites')), array('id' => 'social_share_pages', 'default' => false, 'control' => array('label' => __('Pages', 'wpex'), 'type' => 'checkbox', 'active_callback' => 'wpex_has_social_share_sites'))));
// Lightbox
$this->sections['wpex_lightbox'] = array('title' => __('Lightbox', 'wpex'), 'panel' => 'wpex_general', 'settings' => array(array('id' => 'lightbox_skin', 'control' => array('label' => __('Skin', 'wpex'), 'type' => 'select', 'choices' => wpex_ilightbox_skins())), array('id' => 'lightbox_thumbnails', 'default' => true, 'control' => array('label' => __('Gallery Thumbnails', 'wpex'), 'type' => 'checkbox')), array('id' => 'lightbox_arrows', 'default' => true, 'control' => array('label' => __('Gallery Arrows', 'wpex'), 'type' => 'checkbox')), array('id' => 'lightbox_mousewheel', 'default' => false, 'control' => array('label' => __('Gallery Mousewheel Scroll', 'wpex'), 'type' => 'checkbox')), array('id' => 'lightbox_titles', 'default' => true, 'control' => array('label' => __('Titles', 'wpex'), 'type' => 'checkbox')), array('id' => 'lightbox_fullscreen', 'default' => true, 'control' => array('label' => __('Fullscreen Button', 'wpex'), 'type' => 'checkbox'))));
// Breadcrumbs
$this->sections['wpex_breadcrumbs'] = array('title' => __('Breadcrumbs', 'wpex'), 'panel' => 'wpex_general', 'settings' => array(array('id' => 'breadcrumbs', 'default' => true, 'control' => array('label' => __('Breadcrumbs', 'wpex'), 'type' => 'checkbox')), array('id' => 'breadcrumbs_position', 'control' => array('label' => __('Position', 'wpex'), 'type' => 'select', 'choices' => array('' => __('Absolute Right', 'wpex'), 'under-title' => __('Under Title', 'wpex')), 'active_callback' => 'wpex_customizer_has_breadcrumbs')), array('id' => 'breadcrumbs_home_title', 'transport' => 'refresh', 'control' => array('label' => __('Custom Home Title', 'wpex'), 'type' => 'text', 'active_callback' => 'wpex_customizer_enabled_not_yoast')), array('id' => 'breadcrumbs_title_trim', 'control' => array('label' => __('Title Trim Length', 'wpex'), 'type' => 'text', 'desc' => __('Enter the max number of words to display for your breadcrumbs post title', 'wpex'), 'active_callback' => 'wpex_customizer_enabled_not_yoast')), array('id' => 'breadcrumbs_text_color', 'control' => array('type' => 'color', 'label' => __('Text Color', 'wpex'), 'active_callback' => 'wpex_customizer_has_breadcrumbs'), 'inline_css' => array('target' => '.site-breadcrumbs', 'alter' => 'color')), array('id' => 'breadcrumbs_seperator_color', 'control' => array('type' => 'color', 'label' => __('Separator Color', 'wpex'), 'active_callback' => 'wpex_customizer_has_breadcrumbs'), 'inline_css' => array('target' => '.site-breadcrumbs .sep', 'alter' => 'color')), array('id' => 'breadcrumbs_link_color', 'control' => array('type' => 'color', 'label' => __('Link Color', 'wpex'), 'active_callback' => 'wpex_customizer_has_breadcrumbs'), 'inline_css' => array('target' => '.site-breadcrumbs a', 'alter' => 'color')), array('id' => 'breadcrumbs_link_color_hover', 'control' => array('type' => 'color', 'label' => __('Link Color: Hover', 'wpex'), 'active_callback' => 'wpex_customizer_has_breadcrumbs'), 'inline_css' => array('target' => '.site-breadcrumbs a:hover', 'alter' => 'color'))));
// Page Title
$this->sections['wpex_page_header'] = array('title' => __('Page Title', 'wpex'), 'panel' => 'wpex_general', 'settings' => array(array('id' => 'page_header_style', 'default' => '', 'control' => array('label' => __('Page Header Style', 'wpex'), 'type' => 'image', 'type' => 'select', 'choices' => array('' => __('Default', 'wpex'), 'centered' => __('Centered', 'wpex'), 'centered-minimal' => __('Centered Minimal', 'wpex'), 'hidden' => __('Hidden', 'wpex')))), array('id' => 'page_header_top_padding', 'control' => array('type' => 'text', 'label' => __('Top Padding', 'wpex')), 'inline_css' => array('target' => '.page-header.wpex-supports-mods', 'alter' => 'padding-top')), array('id' => 'page_header_bottom_padding', 'control' => array('type' => 'text', 'label' => __('Bottom Padding', 'wpex')), 'inline_css' => array('target' => '.page-header.wpex-supports-mods', 'alter' => 'padding-bottom')), array('id' => 'page_header_background', 'control' => array('type' => 'color', 'label' => __('Background', 'wpex')), 'inline_css' => array('target' => '.page-header.wpex-supports-mods', 'alter' => 'background-color')), array('id' => 'page_header_title_color', 'control' => array('type' => 'color', 'label' => __('Text Color', 'wpex')), 'inline_css' => array('target' => '.page-header.wpex-supports-mods .page-header-title', 'alter' => 'color')), array('id' => 'page_header_top_border', 'control' => array('type' => 'color', 'label' => __('Top Border Color', 'wpex')), 'inline_css' => array('target' => '.page-header.wpex-supports-mods', 'alter' => 'border-top-color')), array('id' => 'page_header_bottom_border', 'control' => array('type' => 'color', 'label' => __('Bottom Border Color', 'wpex')), 'inline_css' => array('target' => '.page-header.wpex-supports-mods', 'alter' => 'border-bottom-color'))));
// Pages
$this->sections['wpex_pages'] = array('title' => __('Pages', 'wpex'), 'panel' => 'wpex_general', 'settings' => array(array('id' => 'page_single_layout', 'default' => true, 'default' => '', 'control' => array('label' => __('Layout', 'wpex'), 'type' => 'select', 'choices' => array('' => __('Default', 'wpex'), 'right-sidebar' => __('Right Sidebar', 'wpex'), 'left-sidebar' => __('Left Sidebar', 'wpex'), 'full-width' => __('No Sidebar', 'wpex'), 'full-screen' => __('Full Screen', 'wpex')))), array('id' => 'pages_custom_sidebar', 'default' => true, 'control' => array('label' => __('Custom Sidebar', 'wpex'), 'type' => 'checkbox')), array('id' => 'page_comments', 'control' => array('label' => __('Comments on Pages', 'wpex'), 'type' => 'checkbox')), array('id' => 'page_featured_image', 'control' => array('label' => __('Display Featured Images', 'wpex'), 'type' => 'checkbox'))));
// Search
$this->sections['wpex_search'] = array('title' => __('Search', 'wpex'), 'panel' => 'wpex_general', 'settings' => array(array('id' => 'search_style', 'default' => 'default', 'transport' => 'postMessage', 'control' => array('label' => __('Style', 'wpex'), 'type' => 'select', 'choices' => array('default' => __('Left Thumbnail', 'wpex'), 'blog' => __('Inherit From Blog', 'wpex')))), array('id' => 'search_layout', 'transport' => 'postMessage', 'control' => array('label' => __('Layout', 'wpex'), 'type' => 'select', 'choices' => array('' => __('Default', 'wpex'), 'right-sidebar' => __('Right Sidebar', 'wpex'), 'left-sidebar' => __('Left Sidebar', 'wpex'), 'full-width' => __('No Sidebar', 'wpex')))), array('id' => 'search_posts_per_page', 'default' => '10', 'transport' => 'postMessage', 'control' => array('label' => __('Posts Per Page', 'wpex'), 'type' => 'text')), array('id' => 'search_custom_sidebar', 'default' => true, 'transport' => 'postMessage', 'control' => array('label' => __('Custom Sidebar', 'wpex'), 'type' => 'checkbox'))));
// Scroll to top
$this->sections['wpex_scroll_top'] = array('title' => __('Scroll To Top', 'wpex'), 'panel' => 'wpex_general', 'settings' => array(array('id' => 'scroll_top', 'default' => true, 'active_callback' => 'wpex_has_scroll_top_button', 'control' => array('label' => __('Scroll Up Button', 'wpex'), 'type' => 'checkbox')), array('id' => 'scroll_top_arrow', 'default' => 'chevron-up', 'active_callback' => 'wpex_has_scroll_top_button', 'control' => array('label' => __('Arrow', 'wpex'), 'type' => 'select', 'choices' => wpex_get_awesome_icons('up_arrows'))), array('id' => 'scroll_top_size', 'control' => array('type' => 'text', 'label' => __('Button Size', 'wpex')), 'inline_css' => array('target' => '#site-scroll-top', 'sanitize' => 'px', 'alter' => array('width', 'height', 'line-height'))), array('id' => 'scroll_top_line_height', 'control' => array('type' => 'text', 'label' => __('Button Line Height', 'wpex')), 'inline_css' => array('target' => '#site-scroll-top', 'sanitize' => 'px', 'alter' => array('line-height'))), array('id' => 'scroll_top_icon_size', 'control' => array('type' => 'text', 'label' => __('Icon Size', 'wpex')), 'inline_css' => array('target' => '#site-scroll-top', 'alter' => 'font-size')), array('id' => 'scroll_top_border_radius', 'control' => array('type' => 'text', 'label' => __('Border Radius', 'wpex')), 'inline_css' => array('target' => '#site-scroll-top', 'alter' => 'border-radius')), array('id' => 'scroll_top_color', 'control' => array('type' => 'color', 'label' => __('Color', 'wpex')), 'inline_css' => array('target' => '#site-scroll-top', 'alter' => 'color')), array('id' => 'scroll_top_color_hover', 'control' => array('type' => 'color', 'label' => __('Color: Hover', 'wpex')), 'inline_css' => array('target' => '#site-scroll-top:hover', 'alter' => 'color')), array('id' => 'scroll_top_bg', 'control' => array('type' => 'color', 'label' => __('Background', 'wpex')), 'inline_css' => array('target' => '#site-scroll-top', 'alter' => 'background-color')), array('id' => 'scroll_top_bg_hover', 'control' => array('type' => 'color', 'label' => __('Background: Hover', 'wpex')), 'inline_css' => array('target' => '#site-scroll-top:hover', 'alter' => 'background-color')), array('id' => 'scroll_top_border', 'control' => array('type' => 'color', 'label' => __('Border', 'wpex')), 'inline_css' => array('target' => '#site-scroll-top', 'alter' => 'border-color')), array('id' => 'scroll_top_border_hover', 'control' => array('type' => 'color', 'label' => __('Border: Hover', 'wpex')), 'inline_css' => array('target' => '#site-scroll-top:hover', 'alter' => 'border-color'))));
// Forms
$this->sections['wpex_general_forms'] = array('title' => __('Forms', 'wpex'), 'panel' => 'wpex_general', 'settings' => array(array('id' => 'input_padding', 'control' => array('type' => 'text', 'label' => __('Padding', 'wpex'), 'description' => __('Format: top right bottom left.', 'wpex')), 'inline_css' => array('target' => array('.entry input[type="text"],.site-content input[type="password"],.site-content input[type="email"],.site-content input[type="tel"],.site-content input[type="url"],.site-content input[type="search"],.site-content textarea'), 'alter' => 'padding')), array('id' => 'input_border_radius', 'control' => array('type' => 'text', 'label' => __('Border Radius', 'wpex')), 'inline_css' => array('target' => array('.entry input[type="text"],.site-content input[type="password"],.site-content input[type="email"],.site-content input[type="tel"],.site-content input[type="url"],.site-content input[type="search"],.site-content textarea'), 'alter' => 'border-radius')), array('id' => 'input_font_size', 'control' => array('type' => 'text', 'label' => __('Font-Size', 'wpex')), 'inline_css' => array('target' => array('.entry input[type="text"],.site-content input[type="password"],.site-content input[type="email"],.site-content input[type="tel"],.site-content input[type="url"],.site-content input[type="search"],.site-content textarea'), 'alter' => 'font-size')), array('id' => 'input_background', 'control' => array('type' => 'color', 'label' => __('Background', 'wpex')), 'inline_css' => array('target' => array('.entry input[type="text"],.site-content input[type="password"],.site-content input[type="email"],.site-content input[type="tel"],.site-content input[type="url"],.site-content input[type="search"],.site-content textarea'), 'alter' => 'background-color')), array('id' => 'input_border', 'control' => array('type' => 'color', 'label' => __('Border', 'wpex')), 'inline_css' => array('target' => array('.entry input[type="text"],.site-content input[type="password"],.site-content input[type="email"],.site-content input[type="tel"],.site-content input[type="url"],.site-content input[type="search"],.site-content textarea'), 'alter' => 'border-color')), array('id' => 'input_color', 'control' => array('type' => 'color', 'label' => __('Color', 'wpex')), 'inline_css' => array('target' => array('.entry input[type="text"],.site-content input[type="password"],.site-content input[type="email"],.site-content input[type="tel"],.site-content input[type="url"],.site-content input[type="search"],.site-content textarea'), 'alter' => 'color'))));
// Links & Buttons
$this->sections['wpex_general_links_buttons'] = array('title' => __('Links & Buttons', 'wpex'), 'panel' => 'wpex_general', 'settings' => array(array('id' => 'link_color', 'control' => array('type' => 'color', 'label' => __('Links Color', 'wpex')), 'inline_css' => array('target' => 'a, h1 a:hover, h2 a:hover, h3 a:hover, h4 a:hover, h5 a:hover, h6 a:hover, .entry-title a:hover', 'alter' => 'color')), array('id' => 'link_color_hover', 'control' => array('type' => 'color', 'label' => __('Links Color: Hover', 'wpex')), 'inline_css' => array('target' => 'a:hover', 'alter' => 'color')), array('id' => 'theme_button_padding', 'control' => array('type' => 'text', 'label' => __('Theme Button Padding', 'wpex'), 'description' => __('Format: top right bottom left.', 'wpex')), 'inline_css' => array('target' => '.theme-button,input[type="submit"],button', 'alter' => 'padding')), array('id' => 'theme_button_border_radius', 'control' => array('type' => 'text', 'label' => __('Theme Button Border Radius', 'wpex')), 'inline_css' => array('target' => '.theme-button,input[type="submit"],button', 'alter' => 'border-radius')), array('id' => 'theme_button_color', 'control' => array('type' => 'color', 'label' => __('Theme Button Color', 'wpex')), 'inline_css' => array('target' => array('.theme-button,input[type="submit"],button', '.navbar-style-one .menu-button > a > span.link-inner:hover'), 'alter' => 'color')), array('id' => 'theme_button_hover_color', 'control' => array('type' => 'color', 'label' => __('Theme Button Color: Hover', 'wpex')), 'inline_css' => array('target' => array('.theme-button:hover,input[type="submit"]:hover,button:hover', '.navbar-style-one .menu-button > a > span.link-inner:hover'), 'alter' => 'color')), array('id' => 'theme_button_bg', 'control' => array('type' => 'color', 'label' => __('Theme Button Background', 'wpex')), 'inline_css' => array('target' => array('.theme-button,input[type="submit"],button', '.navbar-style-one .menu-button > a > span.link-inner:hover'), 'alter' => 'background')), array('id' => 'theme_button_hover_bg', 'control' => array('type' => 'color', 'label' => __('Theme Button Background: Hover', 'wpex')), 'inline_css' => array('target' => array('.theme-button:hover,input[type="submit"]:hover,button:hover', '.navbar-style-one .menu-button > a > span.link-inner:hover'), 'alter' => 'background'))));
Ejemplo n.º 3
0
 function vcex_icon_box_shortcode_vc_map()
 {
     vc_map(array("name" => __("Icon Box", 'wpex'), "base" => "vcex_icon_box", 'category' => WPEX_THEME_BRANDING, "icon" => "vcex-icon-box", "description" => __('Content box with icon', 'wpex'), 'admin_enqueue_css' => wpex_font_awesome_css_url(), 'front_enqueue_css' => wpex_font_awesome_css_url(), "params" => array(array('type' => 'textfield', 'heading' => __('Extra class name', 'wpex'), 'param_name' => 'el_class', 'description' => __('If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.', 'wpex')), array('type' => 'vcex_icon', 'heading' => __("Icon", 'wpex'), 'param_name' => 'icon', 'value' => wpex_get_awesome_icons(), 'group' => __('Icon', 'wpex'), 'std' => 'star'), array('type' => "textfield", 'heading' => __("Icon Font Alternative Classes", "wpex"), 'param_name' => "icon_alternative_classes", 'group' => __('Icon', 'wpex')), array('type' => "attach_image", 'heading' => __("Icon Image Alternative", "wpex"), 'param_name' => "image", 'group' => __('Icon', 'wpex')), array('type' => "textfield", 'heading' => __("Icon Image Alternative Width", "wpex"), 'param_name' => "image_width", 'group' => __('Icon', 'wpex'), 'dependency' => array('element' => "image", 'not_empty' => true)), array('type' => 'colorpicker', 'heading' => __("Icon Color", 'wpex'), 'param_name' => "icon_color", 'value' => "", 'group' => __('Icon', 'wpex')), array('type' => 'colorpicker', 'heading' => __("Icon Background", 'wpex'), 'param_name' => "icon_background", 'group' => __('Icon', 'wpex')), array('type' => 'textfield', 'heading' => __("Icon Border Radius", 'wpex'), 'param_name' => "icon_border_radius", 'group' => __('Icon', 'wpex')), array('type' => 'textfield', 'heading' => __("Icon Size In Pixels", 'wpex'), 'param_name' => "icon_size", 'value' => "", 'group' => __('Icon', 'wpex')), array('type' => 'textfield', 'heading' => __("Fixed Icon Width", 'wpex'), 'param_name' => "icon_width", 'value' => "", 'group' => __('Icon', 'wpex')), array('type' => 'textfield', 'heading' => __("Fixed Icon Height", 'wpex'), 'param_name' => "icon_height", 'value' => "", 'group' => __('Icon', 'wpex')), array('type' => 'dropdown', 'heading' => __("CSS Animation", "wpex"), 'param_name' => "css_animation", 'value' => array(__("No", "wpex") => '', __("Top to bottom", "wpex") => "top-to-bottom", __("Bottom to top", "wpex") => "bottom-to-top", __("Left to right", "wpex") => "left-to-right", __("Right to left", "wpex") => "right-to-left", __("Appear from center", "wpex") => "appear")), array('type' => 'dropdown', 'heading' => __("Icon Box Style", 'wpex'), 'param_name' => "style", 'value' => array(__("Left Icon", "wpex") => "one", __("Right Icon", "wpex") => "seven", __("Top Icon", "wpex") => "two", __("Top Icon Style 2 (legacy)", "wpex") => "three", __("Outlined & Top Icon", "wpex") => "four", __("Boxed & Top Icon", "wpex") => "five", __("Boxed & Top Icon Style 2", "wpex") => "six")), array('type' => 'dropdown', 'heading' => __('Alignment', 'wpex'), 'param_name' => "alignment", 'dependency' => array('element' => "style", 'value' => array('two')), 'value' => array(__("Default", "wpex") => "", __("Center", "wpex") => "center", __("Left", "wpex") => "left", __("Right", "wpex") => "right")), array('type' => 'textfield', 'heading' => __("Icon Bottom Margin", 'wpex'), 'param_name' => "icon_bottom_margin", 'dependency' => array('element' => "style", 'value' => array('two', 'three', 'four', 'five', 'six'))), array('type' => 'textfield', 'heading' => __("Container Left Padding", 'wpex'), 'param_name' => "container_left_padding", 'dependency' => array('element' => "style", 'value' => array('one'))), array('type' => 'textfield', 'heading' => __("Container Right Padding", 'wpex'), 'param_name' => "container_right_padding", 'dependency' => array('element' => "style", 'value' => array('seven'))), array('type' => 'colorpicker', 'heading' => __("Background Color", 'wpex'), 'param_name' => "background", 'dependency' => array('element' => 'style', 'value' => array('four', 'five', 'six'))), array('type' => "attach_image", 'heading' => __('Background Image', 'wpex'), 'param_name' => "background_image", 'value' => "", 'description' => __('Select image from media library.', 'wpex'), 'dependency' => array('element' => 'style', 'value' => array('four', 'five', 'six'))), array('type' => 'dropdown', 'heading' => __('Background Image Style', 'wpex'), 'param_name' => "background_image_style", 'value' => array(__('Default', 'wpex') => '', __('Stretched', 'wpex') => 'stretch', __('Fixed', 'wpex') => "fixed", __('Repeat', 'wpex') => "repeat"), 'dependency' => array('element' => 'style', 'value' => array('four', 'five', 'six'))), array('type' => 'colorpicker', 'heading' => __("Border Color", 'wpex'), 'param_name' => "border_color", 'dependency' => array('element' => 'style', 'value' => array('four'))), array('type' => 'textfield', 'heading' => __("Padding", 'wpex'), 'param_name' => "padding", 'dependency' => array('element' => "style", 'value' => array('four', 'five', 'six'))), array('type' => 'textfield', 'heading' => __("Border Radius", 'wpex'), 'param_name' => "border_radius", 'dependency' => array('element' => "style", 'value' => array('four', 'five', 'six'))), array('type' => 'textfield', 'heading' => __("Heading", 'wpex'), 'param_name' => 'heading', 'value' => "Sample Heading", 'group' => __('Heading', 'wpex')), array('type' => 'dropdown', 'heading' => __("Heading Type", 'wpex'), 'param_name' => "heading_type", 'value' => array("h2" => "h2", "h3" => "h3", "h4" => "h4", "h5" => "h5", "div" => "div", "span" => "span"), 'group' => __('Heading', 'wpex')), array('type' => 'colorpicker', 'heading' => __("Heading Font Color", 'wpex'), 'param_name' => "heading_color", 'group' => __('Heading', 'wpex')), array('type' => 'textfield', 'heading' => __("Heading Font Size", 'wpex'), 'param_name' => "heading_size", 'group' => __('Heading', 'wpex')), array('type' => 'textfield', 'heading' => __("Heading Font Weight", 'wpex'), 'param_name' => "heading_weight", 'group' => __('Heading', 'wpex'), "value" => ''), array('type' => 'textfield', 'heading' => __("Heading Letter Spacing", 'wpex'), 'param_name' => "heading_letter_spacing", 'group' => __('Heading', 'wpex')), array('type' => 'dropdown', 'heading' => __("Heading Text Transform", 'wpex'), 'param_name' => "heading_transform", 'group' => __('Heading', 'wpex'), 'value' => array(__('Default', 'wpex') => '', __('None', 'wpex') => 'none', __('Capitalize', 'wpex') => 'capitalize', __('Uppercase', 'wpex') => 'uppercase', __('Lowercase', 'wpex') => 'lowercase')), array('type' => 'textfield', 'heading' => __("Heading Bottom Margin", 'wpex'), 'param_name' => "heading_bottom_margin", 'group' => __('Heading', 'wpex')), array('type' => 'textarea_html', 'holder' => 'div', 'heading' => __('Content', 'wpex'), 'param_name' => 'content', 'value' => __('Don\'t forget to change this dummy text in your page editor for this lovely icon box.', 'wpex'), 'group' => __('Content', 'wpex')), array('type' => 'textfield', 'heading' => __("Content Font Size", 'wpex'), 'param_name' => "font_size", 'group' => __('Content', 'wpex')), array('type' => 'colorpicker', 'heading' => __("Content Font Color", 'wpex'), 'param_name' => "font_color", 'group' => __('Content', 'wpex')), array('type' => 'textfield', 'heading' => __("URL", 'wpex'), 'param_name' => "url", 'group' => __('URL', 'wpex')), array('type' => 'dropdown', 'heading' => __("URL Target", 'wpex'), 'param_name' => "url_target", 'value' => array(__("Self", "wpex") => "", __("Blank", "wpex") => "_blank", __("Local", 'wpex') => "local"), 'group' => __('URL', 'wpex')), array('type' => 'dropdown', 'heading' => __("URL Rel", 'wpex'), 'param_name' => "url_rel", 'value' => array(__("None", "wpex") => '', __("Nofollow", "wpex") => "nofollow"), 'group' => __('URL', 'wpex')), array('type' => 'textfield', 'heading' => __("Bottom Margin", 'wpex'), 'param_name' => "margin_bottom", 'group' => __('Margin', 'wpex')))));
 }
<?php

/**
 * Toggle Bar Panel
 *
 * @package Total WordPress Theme
 * @subpackage Customizer
 */
// Exit if accessed directly
if (!defined('ABSPATH')) {
    exit;
}
// General
$this->sections['wpex_togglebar'] = array('title' => __('General', 'wpex'), 'settings' => array(array('id' => 'toggle_bar', 'default' => true, 'control' => array('label' => __('Enable', 'wpex'), 'type' => 'checkbox', 'desc' => __('If you disable this option we recommend you go to the Customizer Manager and disable the section as well so the next time you work with the Customizer it will load faster.', 'wpex'))), array('id' => 'toggle_bar_page', 'default' => '', 'control' => array('label' => __('Content', 'wpex'), 'type' => 'dropdown-pages', 'active_callback' => 'wpex_customizer_has_togglebar')), array('id' => 'toggle_bar_visibility', 'default' => 'hidden-phone', 'control' => array('label' => __('Visibility', 'wpex'), 'type' => 'select', 'choices' => wpex_visibility(), 'active_callback' => 'wpex_customizer_has_togglebar')), array('id' => 'toggle_bar_animation', 'default' => 'fade', 'control' => array('label' => __('Animation', 'wpex'), 'type' => 'select', 'choices' => array('fade' => __('Fade', 'wpex'), 'fade-slide' => __('Fade & Slide Down', 'wpex')), 'active_callback' => 'wpex_customizer_has_togglebar')), array('id' => 'toggle_bar_button_icon', 'default' => 'plus', 'control' => array('label' => __('Button Icon', 'wpex'), 'type' => 'select', 'choices' => wpex_get_awesome_icons(), 'active_callback' => 'wpex_customizer_has_togglebar')), array('id' => 'toggle_bar_button_icon_active', 'default' => 'minus', 'control' => array('label' => __('Button Icon: Active', 'wpex'), 'type' => 'select', 'choices' => wpex_get_awesome_icons(), 'active_callback' => 'wpex_customizer_has_togglebar')), array('id' => 'toggle_bar_bg', 'control' => array('type' => 'color', 'label' => __('Content Background', 'wpex'), 'active_callback' => 'wpex_customizer_has_togglebar'), 'inline_css' => array('target' => '#toggle-bar-wrap', 'alter' => 'background')), array('id' => 'toggle_bar_color', 'control' => array('type' => 'color', 'label' => __('Content Color', 'wpex'), 'active_callback' => 'wpex_customizer_has_togglebar'), 'inline_css' => array('target' => array('#toggle-bar-wrap', '#toggle-bar-wrap strong'), 'alter' => 'color')), array('id' => 'toggle_bar_btn_bg', 'control' => array('type' => 'color', 'label' => __('Button Background', 'wpex'), 'active_callback' => 'wpex_customizer_has_togglebar'), 'inline_css' => array('target' => '.toggle-bar-btn', 'alter' => array('border-top-color', 'border-right-color'))), array('id' => 'toggle_bar_btn_color', 'control' => array('type' => 'color', 'label' => __('Button Color', 'wpex'), 'active_callback' => 'wpex_customizer_has_togglebar'), 'inline_css' => array('target' => '.toggle-bar-btn span.fa', 'alter' => 'color')), array('id' => 'toggle_bar_btn_hover_bg', 'control' => array('type' => 'color', 'label' => __('Button Hover Background', 'wpex'), 'active_callback' => 'wpex_customizer_has_togglebar'), 'inline_css' => array('target' => '.toggle-bar-btn:hover', 'alter' => array('border-top-color', 'border-right-color'))), array('id' => 'toggle_bar_btn_hover_color', 'control' => array('type' => 'color', 'label' => __('Button Hover Color', 'wpex'), 'active_callback' => 'wpex_customizer_has_togglebar'), 'inline_css' => array('target' => '.toggle-bar-btn:hover span.fa', 'alter' => 'color'))));
Ejemplo n.º 5
0
 function vcex_callout_shortcode_vc_map()
 {
     vc_map(array("name" => __("Callout", 'wpex'), "description" => __("Call to action section with or without button.", 'wpex'), "base" => "vcex_callout", "icon" => "vcex-callout", 'category' => WPEX_THEME_BRANDING, "params" => array(array("type" => "dropdown", "heading" => __("CSS Animation", "wpex"), "param_name" => "css_animation", "value" => array(__("No", "wpex") => '', __("Top to bottom", "wpex") => "top-to-bottom", __("Bottom to top", "wpex") => "bottom-to-top", __("Left to right", "wpex") => "left-to-right", __("Right to left", "wpex") => "right-to-left", __("Appear from center", "wpex") => "appear")), array("type" => "textarea_html", "holder" => "div", "class" => "vcex-callout", "heading" => __("Callout Content", 'wpex'), "param_name" => "content", "value" => __("Enter your content here.", 'wpex')), array("type" => "textfield", "heading" => __("Button: URL", 'wpex'), "param_name" => "button_url", "value" => "", 'group' => __('Button', 'wpex')), array("type" => "textfield", "heading" => __("Button: Text", 'wpex'), "param_name" => "button_text", "value" => "", 'group' => __('Button', 'wpex')), array("type" => "dropdown", "heading" => __("Button Style", 'wpex'), "param_name" => "button_style", "value" => array(__("Graphical", "wpex") => "graphical", __("Flat", "wpex") => "flat", __("3D", "wpex") => "three-d", __("Outline", "wpex") => "outline"), 'group' => __('Button', 'wpex')), array("type" => "dropdown", "heading" => __("Button: Color", 'wpex'), "param_name" => "button_color", "value" => array(__("Black", "wpex") => "black", __("Blue", "wpex") => "blue", __("Brown", "wpex") => "brown", __("Grey", "wpex") => "grey", __("Green", "wpex") => "green", __("Gold", "wpex") => "gold", __("Orange", "wpex") => "orange", __("Pink", "wpex") => "pink", __("Red", "wpex") => "red", __("Rosy", "wpex") => "rosy", __("Teal", "wpex") => "teal"), 'group' => __('Button', 'wpex')), array("type" => "textfield", "heading" => __("Button: Border Radius", 'wpex'), "param_name" => "button_border_radius", "value" => "3px", 'group' => __('Button', 'wpex')), array("type" => "dropdown", "heading" => __("Button: Link Target", 'wpex'), "param_name" => "button_target", "value" => array(__("Self", "wpex") => "self", __("Blank", "wpex") => "blank"), 'group' => __('Button', 'wpex')), array("type" => "dropdown", "heading" => __("Button: Rel", 'wpex'), "param_name" => "button_rel", "value" => array(__("None", "wpex") => "none", __("Nofollow", "wpex") => "nofollow"), 'group' => __('Button', 'wpex')), array("type" => "dropdown", "heading" => __("Button: Icon Left", 'wpex'), "param_name" => "button_icon_left", "value" => wpex_get_awesome_icons(), 'group' => __('Button', 'wpex')), array("type" => "dropdown", "heading" => __("Button: Icon Right", 'wpex'), "param_name" => "button_icon_right", "value" => wpex_get_awesome_icons(), 'group' => __('Button', 'wpex')))));
 }
<?php

/**
 * Header Customizer Options
 *
 * @package Total WordPress Theme
 * @subpackage Customizer
 */
// Exit if accessed directly
if (!defined('ABSPATH')) {
    exit;
}
// Header styles
$header_styles = apply_filters('wpex_header_styles', array('one' => __('One - Left Logo & Right Navbar', 'wpex'), 'two' => __('Two - Bottom Navbar', 'wpex'), 'three' => __('Three - Bottom Navbar Centered', 'wpex'), 'four' => __('Four - Top Navbar Centered', 'wpex'), 'five' => __('Five - Centered Inline Logo', 'wpex'), 'six' => __('Six - Vertical', 'wpex')));
/*-----------------------------------------------------------------------------------*/
/* - Header => General
/*-----------------------------------------------------------------------------------*/
$this->sections['wpex_header_general'] = array('title' => __('General', 'wpex'), 'panel' => 'wpex_header', 'settings' => array(array('id' => 'header_style', 'default' => 'one', 'control' => array('label' => __('Style', 'wpex'), 'type' => 'select', 'choices' => $header_styles)), array('id' => 'vertical_header_style', 'default' => 'one', 'control' => array('label' => __('Vertical Header Style', 'wpex'), 'type' => 'select', 'choices' => array('' => __('Default', 'wpex'), 'fixed' => __('Fixed', 'wpex')), 'active_callback' => 'wpex_customizer_has_vertical_header')), array('id' => 'full_width_header', 'default' => false, 'control' => array('label' => __('Full-Width', 'wpex'), 'type' => 'checkbox', 'active_callback' => 'wpex_customizer_header_supports_full_width')), array('id' => 'header_background', 'control' => array('label' => __('Background', 'wpex'), 'type' => 'color'), 'inline_css' => array('target' => array('#site-header', '.wpex-sticky-header-holder', '.wpex-sticky-header-holder.is-sticky #site-header', '.wpex-sticky-header-holder', '#site-header.wpex-shrink-sticky-header', '.footer-has-reveal #site-header', '#searchform-header-replace', 'body.wpex-has-vertical-header #site-header'), 'alter' => 'background-color')), array('id' => 'header_top_padding', 'control' => array('type' => 'text', 'label' => __('Top Padding', 'wpex')), 'inline_css' => array('target' => array('#site-header-inner', '#site-header.overlay-header #site-header-inner'), 'alter' => 'padding-top', 'sanitize' => 'px')), array('id' => 'header_bottom_padding', 'control' => array('type' => 'text', 'label' => __('Bottom Padding', 'wpex')), 'inline_css' => array('target' => array('#site-header-inner', '#site-header.overlay-header #site-header-inner'), 'alter' => 'padding-bottom', 'sanitize' => 'px')), array('id' => 'header_aside_heading', 'control' => array('type' => 'wpex-heading', 'label' => __('Aside', 'wpex'), 'active_callback' => 'wpex_customizer_header_has_aside')), array('id' => 'header_aside_visibility', 'default' => 'visible-desktop', 'control' => array('label' => __('Visibility', 'wpex'), 'type' => 'select', 'choices' => wpex_visibility(), 'active_callback' => 'wpex_customizer_header_has_aside')), array('id' => 'header_aside_search', 'default' => true, 'control' => array('label' => __('Header Aside Search', 'wpex'), 'type' => 'checkbox', 'active_callback' => 'wpex_customizer_header_has_aside_search')), array('id' => 'header_aside', 'control' => array('label' => __('Header Aside Content', 'wpex'), 'type' => 'textarea', 'active_callback' => 'wpex_customizer_header_has_aside', 'description' => __('If you enter the ID number of a page it will automatically display the content of such page.', 'wpex')))));
/*-----------------------------------------------------------------------------------*/
/* - Header => Logo
/*-----------------------------------------------------------------------------------*/
$this->sections['wpex_header_logo'] = array('title' => __('Logo', 'wpex'), 'panel' => 'wpex_header', 'settings' => array(array('id' => 'logo_icon', 'default' => '', 'control' => array('label' => __('Text Logo Icon', 'wpex'), 'type' => 'select', 'choices' => wpex_get_awesome_icons(), 'active_callback' => 'wpex_customizer_hasnt_custom_logo')), array('id' => 'logo_icon_color', 'control' => array('type' => 'color', 'label' => __('Logo Icon Color', 'wpex'), 'active_callback' => 'wpex_customizer_has_text_logo_icon'), 'inline_css' => array('target' => '#site-logo-fa-icon', 'alter' => 'color')), array('id' => 'logo_icon_right_margin', 'control' => array('type' => 'text', 'label' => __('Logo Icon Right Margin', 'wpex'), 'active_callback' => 'wpex_customizer_has_text_logo_icon'), 'inline_css' => array('target' => '#site-logo-fa-icon', 'alter' => 'margin-right')), array('id' => 'logo_top_margin', 'control' => array('type' => 'text', 'label' => __('Top Margin', 'wpex')), 'inline_css' => array('target' => '#site-logo', 'alter' => 'padding-top', 'sanitize' => 'px')), array('id' => 'logo_bottom_margin', 'control' => array('type' => 'text', 'label' => __('Bottom Margin', 'wpex')), 'inline_css' => array('target' => '#site-logo', 'alter' => 'padding-bottom', 'sanitize' => 'px')), array('id' => 'logo_color', 'control' => array('type' => 'color', 'label' => __('Color', 'wpex'), 'active_callback' => 'wpex_customizer_hasnt_custom_logo'), 'inline_css' => array('target' => '#site-logo a.site-logo-text', 'alter' => 'color')), array('id' => 'logo_hover_color', 'control' => array('type' => 'color', 'label' => __('Hover Color', 'wpex'), 'active_callback' => 'wpex_customizer_hasnt_custom_logo'), 'inline_css' => array('target' => '#site-logo a.site-logo-text:hover', 'alter' => 'color')), array('id' => 'custom_logo', 'default' => '', 'control' => array('label' => __('Image Logo', 'wpex'), 'type' => 'image')), array('id' => 'retina_logo', 'default' => '', 'control' => array('label' => __('Retina Image Logo', 'wpex'), 'type' => 'image', 'active_callback' => 'wpex_customizer_has_image_logo')), array('id' => 'retina_logo_height', 'control' => array('label' => __('Standard Retina Logo Height', 'wpex'), 'type' => 'text', 'description' => __('Enter the height in pixels of your standard logo size in order to mantain proportions for your retina logo.', 'wpex'), 'active_callback' => 'wpex_customizer_has_retina_logo')), array('id' => 'logo_max_width', 'control' => array('label' => __('Logo Max Width: Desktop', 'wpex'), 'type' => 'text', 'description' => __('Screens 960px wide and greater.', 'wpex'), 'active_callback' => 'wpex_customizer_has_image_logo')), array('id' => 'logo_max_width_tablet_portrait', 'control' => array('label' => __('Logo Max Width: Tablet Portrait', 'wpex'), 'type' => 'text', 'description' => __('Screens 768px-959px wide.', 'wpex'), 'active_callback' => 'wpex_customizer_has_image_logo')), array('id' => 'logo_max_width_phone', 'control' => array('label' => __('Logo Max Width: Phone', 'wpex'), 'type' => 'text', 'description' => __('Screens smaller than 767px wide.', 'wpex'), 'active_callback' => 'wpex_customizer_has_image_logo'))));
/*-----------------------------------------------------------------------------------*/
/* - Header => Fixed On Scroll
/*-----------------------------------------------------------------------------------*/
$this->sections['wpex_header_fixed'] = array('title' => __('Sticky Header', 'wpex'), 'panel' => 'wpex_header', 'settings' => array(array('id' => 'fixed_header', 'default' => true, 'control' => array('label' => __('Sticky Header on Scroll', 'wpex'), 'type' => 'checkbox', 'description' => __('For some header styles the entire header will be fixed for others only the menu.', 'wpex'), 'active_callback' => 'wpex_customizer_header_supports_sticky')), array('id' => 'shink_fixed_header', 'default' => true, 'control' => array('label' => __('Shrink Sticky Header', 'wpex'), 'type' => 'checkbox', 'active_callback' => 'wpex_customizer_has_fixed_header')), array('id' => 'fixed_header_shrink_logo_height', 'default' => 50, 'control' => array('label' => __('Shrink Sticky Header Logo Height', 'wpex'), 'type' => 'number', 'active_callback' => 'wpex_customizer_has_shrink_sticky_header')), array('id' => 'fixed_header_mobile', 'control' => array('label' => __('Sticky Header On Mobile', 'wpex'), 'type' => 'checkbox', 'active_callback' => 'wpex_customizer_supports_fixed_header_mobile')), array('id' => 'fixed_header_logo', 'control' => array('label' => __('Sticky Header Custom Logo', 'wpex'), 'type' => 'image', 'active_callback' => 'wpex_customizer_supports_fixed_header_logo')), array('id' => 'fixed_header_opacity', 'control' => array('type' => 'number', 'label' => __('Sticky header Opacity', 'wpex'), 'active_callback' => 'wpex_customizer_fixed_header_supports_opacity', 'input_attrs' => array('min' => 0, 'max' => 1, 'step' => 0.1)), 'inline_css' => array('target' => '.wpex-sticky-header-holder.is-sticky #site-header', 'alter' => 'opacity'))));
    ?>

	<div id="mobile-menu" class="clr wpex-hidden">
		<a href="#" class="mobile-menu-toggle"><?php 
    echo apply_filters('wpex_mobile_menu_open_button_text', '<span class="fa fa-navicon"></span>');
    ?>
</a>
		<?php 
    // Output icons if the mobile_menu region has a menu defined
    if (has_nav_menu('mobile_menu')) {
        if (($locations = get_nav_menu_locations()) && isset($locations['mobile_menu'])) {
            $menu = wp_get_nav_menu_object($locations['mobile_menu']);
            if (!empty($menu)) {
                $menu_items = wp_get_nav_menu_items($menu->term_id);
                foreach ($menu_items as $key => $menu_item) {
                    if (in_array($menu_item->title, wpex_get_awesome_icons())) {
                        $url = $menu_item->url;
                        $attr_title = $menu_item->attr_title;
                        ?>
							<a href="<?php 
                        echo $url;
                        ?>
" title="<?php 
                        echo $attr_title;
                        ?>
" class="mobile-menu-extra-icons mobile-menu-<?php 
                        echo $menu_item->title;
                        ?>
">
								<span class="fa fa-<?php 
                        echo $menu_item->title;
Ejemplo n.º 8
0
    function wpex_mobile_menu($style = '')
    {
        // If responsive is disabled, bail
        if (!get_theme_mod('responsive', '1')) {
            return;
        }
        // Vars
        $mobile_menu_open_button_text = '<span class="fa fa-bars"></span>';
        $mobile_menu_open_button_text = apply_filters('wpex_mobile_menu_open_button_text', $mobile_menu_open_button_text);
        ?>

		<?php 
        // Sidr closing div
        if ('sidr' == get_theme_mod('mobile_menu_style', 'sidr')) {
            ?>
			<div id="sidr-close"><a href="#sidr-close" class="toggle-sidr-close"></a></div>
		<?php 
        }
        ?>

		<div id="mobile-menu" class="clr hidden">
			<a href="#mobile-menu" class="mobile-menu-toggle"><?php 
        echo $mobile_menu_open_button_text;
        ?>
</a>
			<?php 
        // Output icons if the mobile_menu region has a menu defined
        if (has_nav_menu('mobile_menu')) {
            if (($locations = get_nav_menu_locations()) && isset($locations['mobile_menu'])) {
                $menu = wp_get_nav_menu_object($locations['mobile_menu']);
                if (!empty($menu)) {
                    $menu_items = wp_get_nav_menu_items($menu->term_id);
                    foreach ($menu_items as $key => $menu_item) {
                        // Make sure it's a font-awesome icon
                        if (in_array($menu_item->title, wpex_get_awesome_icons())) {
                            $url = $menu_item->url;
                            $attr_title = $menu_item->attr_title;
                            ?>
								<a href="<?php 
                            echo $url;
                            ?>
" title="<?php 
                            echo $attr_title;
                            ?>
" class="mobile-menu-extra-icons mobile-menu-<?php 
                            echo $menu_item->title;
                            ?>
">
									<span class="fa fa-<?php 
                            echo $menu_item->title;
                            ?>
"></span>
								</a>
						<?php 
                        }
                    }
                }
            }
        }
        ?>
		</div><!-- #mobile-menu -->
		
	<?php 
    }
Ejemplo n.º 9
0
    exit;
}
// Header styles
$header_styles = apply_filters('wpex_header_styles', array('one' => esc_html__('One - Left Logo & Right Navbar', 'total'), 'two' => esc_html__('Two - Bottom Navbar', 'total'), 'three' => esc_html__('Three - Bottom Navbar Centered', 'total'), 'four' => esc_html__('Four - Top Navbar Centered', 'total'), 'five' => esc_html__('Five - Centered Inline Logo', 'total'), 'six' => esc_html__('Six - Vertical', 'total')));
/*-----------------------------------------------------------------------------------*/
/* - Header => General
/*-----------------------------------------------------------------------------------*/
$this->sections['wpex_header_general'] = array('title' => esc_html__('General', 'total'), 'panel' => 'wpex_header', 'settings' => array(array('id' => 'full_width_header', 'transport' => 'postMessage', 'control' => array('label' => esc_html__('Full-Width', 'total'), 'type' => 'checkbox', 'active_callback' => 'wpex_cac_header_supports_full_width')), array('id' => 'header_style', 'default' => 'one', 'control' => array('label' => esc_html__('Style', 'total'), 'type' => 'select', 'choices' => $header_styles)), array('id' => 'vertical_header_style', 'transport' => 'postMessage', 'default' => 'one', 'control' => array('label' => esc_html__('Vertical Header Style', 'total'), 'type' => 'select', 'choices' => array('' => esc_html__('Default', 'total'), 'fixed' => esc_html__('Fixed', 'total')), 'active_callback' => 'wpex_cac_has_vertical_header')), array('id' => 'header_background', 'transport' => 'postMessage', 'control' => array('label' => esc_html__('Background', 'total'), 'type' => 'color'), 'inline_css' => array('target' => array('#site-header', '.wpex-sticky-header-holder', '.wpex-sticky-header-holder.is-sticky #site-header', '.wpex-sticky-header-holder', '#site-header.wpex-shrink-sticky-header', '.footer-has-reveal #site-header', '#searchform-header-replace', 'body.wpex-has-vertical-header #site-header'), 'alter' => 'background-color')), array('id' => 'header_top_padding', 'transport' => 'postMessage', 'control' => array('type' => 'text', 'label' => esc_html__('Top Padding', 'total'), 'description' => esc_html__('Enter a value in pixels. Example: 20px.', 'total')), 'inline_css' => array('target' => array('#site-header-inner', '#site-header.overlay-header #site-header-inner'), 'alter' => 'padding-top', 'sanitize' => 'px')), array('id' => 'header_bottom_padding', 'transport' => 'postMessage', 'control' => array('type' => 'text', 'label' => esc_html__('Bottom Padding', 'total'), 'description' => esc_html__('Enter a value in pixels. Example: 20px.', 'total')), 'inline_css' => array('target' => array('#site-header-inner', '#site-header.overlay-header #site-header-inner'), 'alter' => 'padding-bottom', 'sanitize' => 'px')), array('id' => 'header_aside_heading', 'control' => array('type' => 'wpex-heading', 'label' => esc_html__('Aside', 'total'), 'active_callback' => 'wpex_cac_header_has_aside')), array('id' => 'header_aside_visibility', 'default' => 'visible-desktop', 'control' => array('label' => esc_html__('Visibility', 'total'), 'type' => 'select', 'choices' => wpex_visibility(), 'active_callback' => 'wpex_cac_header_has_aside')), array('id' => 'header_aside_search', 'default' => true, 'control' => array('label' => esc_html__('Header Aside Search', 'total'), 'type' => 'checkbox', 'active_callback' => 'wpex_cac_header_has_aside_search')), array('id' => 'header_aside', 'control' => array('label' => esc_html__('Header Aside Content', 'total'), 'type' => 'textarea', 'active_callback' => 'wpex_cac_header_has_aside', 'description' => esc_html__('If you enter the ID number of a page it will automatically display the content of such page.', 'total')))));
/*-----------------------------------------------------------------------------------*/
/* - Header => Logo
/*-----------------------------------------------------------------------------------*/
$this->sections['wpex_header_logo'] = array('title' => esc_html__('Logo', 'total'), 'panel' => 'wpex_header', 'settings' => array(array('id' => 'logo_top_margin', 'transport' => 'postMessage', 'control' => array('type' => 'text', 'label' => esc_html__('Top Margin', 'total'), 'description' => esc_html__('Enter a value in pixels. Example: 20px.', 'total')), 'inline_css' => array('target' => '#site-logo', 'alter' => 'padding-top', 'sanitize' => 'px')), array('id' => 'logo_bottom_margin', 'transport' => 'postMessage', 'control' => array('type' => 'text', 'label' => esc_html__('Bottom Margin', 'total'), 'description' => esc_html__('Enter a value in pixels. Example: 20px.', 'total')), 'inline_css' => array('target' => '#site-logo', 'alter' => 'padding-bottom', 'sanitize' => 'px')), array('id' => 'logo_color', 'transport' => 'postMessage', 'control' => array('type' => 'color', 'label' => esc_html__('Color', 'total'), 'active_callback' => 'wpex_cac_hasnt_custom_logo'), 'inline_css' => array('target' => '#site-logo a.site-logo-text', 'alter' => 'color')), array('id' => 'logo_hover_color', 'transport' => 'postMessage', 'control' => array('type' => 'color', 'label' => esc_html__('Hover Color', 'total'), 'active_callback' => 'wpex_cac_hasnt_custom_logo'), 'inline_css' => array('target' => '#site-logo a.site-logo-text:hover', 'alter' => 'color')), array('id' => 'custom_logo', 'default' => '', 'control' => array('label' => esc_html__('Image Logo', 'total'), 'type' => 'image')), array('id' => 'logo_height', 'control' => array('label' => esc_html__('Height', 'total'), 'type' => 'text', 'description' => esc_html__('Used for retina and image height attribute tag.', 'total'), 'active_callback' => 'wpex_cac_has_image_logo')), array('id' => 'logo_width', 'transport' => 'postMessage', 'control' => array('label' => esc_html__('Width', 'total'), 'description' => esc_html__('Used for image width attribute tag.', 'total'), 'type' => 'text', 'active_callback' => 'wpex_cac_has_image_logo')), array('id' => 'retina_logo', 'default' => '', 'control' => array('label' => esc_html__('Retina Image Logo', 'total'), 'type' => 'image', 'active_callback' => 'wpex_cac_has_image_logo')), array('id' => 'logo_max_width', 'transport' => 'postMessage', 'control' => array('label' => esc_html__('Logo Max Width: Desktop', 'total'), 'type' => 'text', 'description' => esc_html__('Screens 960px wide and greater.', 'total'), 'active_callback' => 'wpex_cac_has_image_logo'), 'inline_css' => array('media_query' => '(min-width: 960px)', 'target' => '#site-logo img', 'alter' => 'max-width')), array('id' => 'logo_max_width_tablet_portrait', 'transport' => 'postMessage', 'control' => array('label' => esc_html__('Logo Max Width: Tablet Portrait', 'total'), 'type' => 'text', 'description' => esc_html__('Screens 768px-959px wide.', 'total'), 'active_callback' => 'wpex_cac_has_image_logo'), 'inline_css' => array('media_query' => '(min-width: 768px) and (max-width: 959px)', 'target' => '#site-logo img', 'alter' => 'max-width')), array('id' => 'logo_max_width_phone', 'transport' => 'postMessage', 'control' => array('label' => esc_html__('Logo Max Width: Phone', 'total'), 'type' => 'text', 'description' => esc_html__('Screens smaller than 767px wide.', 'total'), 'active_callback' => 'wpex_cac_has_image_logo'), 'inline_css' => array('media_query' => '(max-width: 767px)', 'target' => '#site-logo img', 'alter' => 'max-width'))));
/*-----------------------------------------------------------------------------------*/
/* - Header => Logo Icon
/*-----------------------------------------------------------------------------------*/
$this->sections['wpex_header_logo_icon'] = array('title' => esc_html__('Logo Icon', 'total'), 'panel' => 'wpex_header', 'settings' => array(array('id' => 'logo_icon', 'transport' => 'postMessage', 'default' => 'none', 'control' => array('label' => esc_html__('Text Logo Icon', 'total'), 'type' => 'select', 'choices' => wpex_get_awesome_icons(), 'active_callback' => 'wpex_cac_hasnt_custom_logo')), array('id' => 'logo_icon_color', 'transport' => 'postMessage', 'control' => array('type' => 'color', 'label' => esc_html__('Logo Icon Color', 'total'), 'active_callback' => 'wpex_cac_hasnt_custom_logo'), 'inline_css' => array('target' => '#site-logo-fa-icon', 'alter' => 'color')), array('id' => 'logo_icon_right_margin', 'transport' => 'postMessage', 'control' => array('type' => 'text', 'label' => esc_html__('Logo Icon Right Margin', 'total'), 'description' => esc_html__('Enter a value in pixels. Example: 20px.', 'total'), 'active_callback' => 'wpex_cac_hasnt_custom_logo'), 'inline_css' => array('target' => '#site-logo-fa-icon', 'alter' => 'margin-right'))));
/*-----------------------------------------------------------------------------------*/
/* - Header => Fixed On Scroll
/*-----------------------------------------------------------------------------------*/
$this->sections['wpex_header_fixed'] = array('title' => esc_html__('Sticky Header', 'total'), 'panel' => 'wpex_header', 'desc' => esc_html__('Sticky header is disabled while in the Customizer.', 'total'), 'settings' => array(array('id' => 'fixed_header', 'transport' => 'postMessage', 'default' => true, 'control' => array('label' => esc_html__('Sticky Header on Scroll', 'total'), 'type' => 'checkbox', 'description' => esc_html__('For some header styles the entire header will be fixed for others only the menu.', 'total'), 'active_callback' => 'wpex_cac_header_supports_sticky')), array('id' => 'shink_fixed_header', 'transport' => 'postMessage', 'default' => true, 'control' => array('label' => esc_html__('Shrink Sticky Header', 'total'), 'type' => 'checkbox', 'active_callback' => 'wpex_cac_has_fixed_header')), array('id' => 'fixed_header_mobile', 'transport' => 'postMessage', 'control' => array('label' => esc_html__('Sticky Header On Mobile', 'total'), 'type' => 'checkbox', 'active_callback' => 'wpex_cac_supports_fixed_header_mobile')), array('id' => 'fixed_header_logo', 'transport' => 'postMessage', 'control' => array('label' => esc_html__('Sticky Header Custom Logo', 'total'), 'type' => 'image', 'active_callback' => 'wpex_cac_supports_fixed_header_logo')), array('id' => 'fixed_header_opacity', 'transport' => 'postMessage', 'control' => array('type' => 'number', 'label' => esc_html__('Sticky header Opacity', 'total'), 'active_callback' => 'wpex_cac_fixed_header_supports_opacity', 'input_attrs' => array('min' => 0.1, 'max' => 1, 'step' => 0.1)), 'inline_css' => array('target' => '.wpex-sticky-header-holder.is-sticky #site-header', 'alter' => 'opacity'))));
/*-----------------------------------------------------------------------------------*/
/* - Header => Menu
/*-----------------------------------------------------------------------------------*/
$this->sections['wpex_header_menu'] = array('title' => esc_html__('Menu', 'total'), 'panel' => 'wpex_header', 'settings' => array(array('id' => 'menu_arrow_down', 'default' => false, 'control' => array('label' => esc_html__('Top Level Dropdown Icon', 'total'), 'type' => 'checkbox')), array('id' => 'menu_arrow_side', 'default' => true, 'control' => array('label' => esc_html__('Second+ Level Dropdown Icon', 'total'), 'type' => 'checkbox')), array('id' => 'menu_dropdown_top_border', 'default' => false, 'control' => array('label' => esc_html__('Dropdown Top Border', 'total'), 'type' => 'checkbox')), array('id' => 'menu_flush_dropdowns', 'default' => false, 'control' => array('label' => esc_html__('Flush Dropdowns', 'total'), 'type' => 'checkbox', 'active_callback' => 'wpex_cac_navbar_supports_flush_dropdowns')), array('id' => 'menu_dropdown_style', 'transport' => 'postMessage', 'control' => array('label' => esc_html__('Dropdown Style', 'total'), 'type' => 'select', 'choices' => array('' => esc_html__('Skin Default', 'total'), 'minimal' => esc_html__('Minimal', 'total'), 'black' => esc_html__('Black', 'total')))), array('id' => 'menu_dropdown_dropshadow', 'transport' => 'postMessage', 'default' => '', 'control' => array('label' => esc_html__('Dropdown Dropshadow Style', 'total'), 'type' => 'select', 'choices' => array('' => esc_html__('None', 'total'), 'one' => esc_html__('One', 'total'), 'two' => esc_html__('Two', 'total'), 'three' => esc_html__('Three', 'total'), 'four' => esc_html__('Four', 'total')))), array('id' => 'navbar_search_icon_heading', 'control' => array('type' => 'wpex-heading', 'label' => esc_html__('Search Icon', 'total'))), array('id' => 'menu_search_style', 'default' => 'drop_down', 'control' => array('label' => esc_html__('Search Icon Style', 'total'), 'type' => 'select', 'choices' => array('disabled' => esc_html__('Disabled', 'total'), 'drop_down' => esc_html__('Drop Down', 'total'), 'overlay' => esc_html__('Site Overlay', 'total'), 'header_replace' => esc_html__('Header Replace', 'total')), 'description' => esc_html__('Vertical header styles only support the disabled and overlay styles.', 'total'))), array('id' => 'search_dropdown_top_border', 'transport' => 'postMessage', 'control' => array('label' => esc_html__('Search Dropdown Top Border', 'total'), 'type' => 'color', 'active_callback' => 'wpex_cac_has_menu_search_dropdown'), 'inline_css' => array('target' => '#searchform-dropdown', 'alter' => 'border-top-color')), array('id' => 'menu_main_styling_heading', 'control' => array('type' => 'wpex-heading', 'label' => esc_html__('Styling: Main', 'total'), 'active_callback' => 'wpex_cac_has_mobile_menu_icons')), array('id' => 'menu_background', 'transport' => 'postMessage', 'control' => array('type' => 'color', 'label' => esc_html__('Background', 'total')), 'inline_css' => array('target' => array('#site-navigation-wrap', '.is-sticky .fixed-nav', '#wpex-mobile-menu-navbar'), 'alter' => 'background-color')), array('id' => 'menu_borders', 'transport' => 'postMessage', 'control' => array('type' => 'color', 'label' => esc_html__('Borders', 'total'), 'description' => esc_html__('Not all menus have borders, but this setting is for those that do', 'total')), 'inline_css' => array('target' => array('#site-navigation li', '#site-navigation a', '#site-navigation ul', '#site-navigation-wrap', '#site-navigation', '.navbar-style-six #site-navigation'), 'alter' => 'border-color')), array('id' => 'menu_link_color', 'transport' => 'postMessage', 'control' => array('type' => 'color', 'label' => esc_html__('Link Color', 'total')), 'inline_css' => array('target' => '#site-navigation .dropdown-menu > li > a', 'alter' => 'color')), array('id' => 'menu_link_color_hover', 'transport' => 'postMessage', 'control' => array('type' => 'color', 'label' => esc_html__('Link Color: Hover', 'total')), 'inline_css' => array('target' => '#site-navigation .dropdown-menu > li > a:hover', 'alter' => 'color')), array('id' => 'menu_link_color_active', 'transport' => 'postMessage', 'control' => array('type' => 'color', 'label' => esc_html__('Link Color: Current Menu Item', 'total')), 'inline_css' => array('target' => '#site-navigation .dropdown-menu > .current-menu-item > a,
							#site-navigation .dropdown-menu > .current-menu-parent > a,
							#site-navigation .dropdown-menu > .current-menu-item > a:hover,
							#site-navigation .dropdown-menu > .current-menu-parent > a:hover', 'alter' => 'color')), array('id' => 'menu_link_background', 'transport' => 'postMessage', 'control' => array('type' => 'color', 'label' => esc_html__('Link Background', 'total')), 'inline_css' => array('target' => '#site-navigation .dropdown-menu > li > a', 'alter' => 'background-color')), array('id' => 'menu_link_hover_background', 'transport' => 'postMessage', 'control' => array('type' => 'color', 'label' => esc_html__('Link Background: Hover', 'total')), 'inline_css' => array('target' => '#site-navigation .dropdown-menu > li > a:hover', 'alter' => 'background-color')), array('id' => 'menu_link_active_background', 'transport' => 'postMessage', 'control' => array('type' => 'color', 'label' => esc_html__('Link Background: Current Menu Item', 'total')), 'inline_css' => array('target' => '#site-navigation .dropdown-menu > .current-menu-item > a,
							#site-navigation .dropdown-menu > .current-menu-parent > a,
							#site-navigation .dropdown-menu > .current-menu-item > a:hover,
							#site-navigation .dropdown-menu > .current-menu-parent > a:hover', 'alter' => 'background-color')), array('id' => 'menu_link_span_background', 'transport' => 'postMessage', 'control' => array('type' => 'color', 'label' => esc_html__('Link Inner Background', 'total')), 'inline_css' => array('target' => '#site-navigation .dropdown-menu > li > a > span.link-inner', 'alter' => 'background-color')), array('id' => 'menu_link_span_hover_background', 'transport' => 'postMessage', 'control' => array('type' => 'color', 'label' => esc_html__('Link Inner Background: Hover', 'total')), 'inline_css' => array('target' => '#site-navigation .dropdown-menu > li > a:hover > span.link-inner', 'alter' => 'background-color')), array('id' => 'menu_link_span_active_background', 'transport' => 'postMessage', 'control' => array('type' => 'color', 'label' => esc_html__('Link Inner Background: Current Menu Item', 'total')), 'inline_css' => array('target' => '#site-navigation .dropdown-menu > .current-menu-item > a > span.link-inner,
							#site-navigation .dropdown-menu > .current-menu-parent > a > span.link-inner,
/**
 * Adds the shortcode to the Visual Composer
 *
 * @since Total 1.4.1
 */
function vcex_callout_vc_map()
{
    vc_map(array('name' => __('Callout', 'wpex'), 'description' => __('Call to action section with or without button', 'wpex'), 'base' => 'vcex_callout', 'icon' => 'vcex-callout vcex-icon fa fa-bullhorn', 'deprecated' => '3.0.0', 'category' => WPEX_THEME_BRANDING, 'params' => array(array('type' => 'textfield', 'admin_label' => true, 'heading' => __('Unique Id', 'wpex'), 'description' => __('Give your main element a unique ID.', 'wpex'), 'param_name' => 'unique_id'), array('type' => 'textfield', 'admin_label' => true, 'heading' => __('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())), array('type' => 'dropdown', 'heading' => __('Appear Animation', 'wpex'), 'param_name' => 'css_animation', 'value' => array_flip(wpex_css_animations())), array('type' => 'textarea_html', 'holder' => 'div', 'class' => 'vcex-callout', 'heading' => __('Callout Content', 'wpex'), 'param_name' => 'content', 'value' => __('Enter your content here.', 'wpex'), 'group' => __('Content', 'wpex')), array('type' => 'textfield', 'heading' => __('URL', 'wpex'), 'param_name' => 'button_url', 'group' => __('Button', 'wpex')), array('type' => 'textfield', 'heading' => __('Text', 'wpex'), 'param_name' => 'button_text', 'group' => __('Button', 'wpex')), array('type' => 'dropdown', 'heading' => __('Button Style', 'wpex'), 'param_name' => 'button_style', 'value' => array_flip(wpex_button_styles()), 'group' => __('Button', 'wpex')), array('type' => 'dropdown', 'heading' => __('Color', 'wpex'), 'param_name' => 'button_color', 'std' => '', 'value' => array_flip(wpex_button_colors()), 'group' => __('Button', 'wpex')), array('type' => 'textfield', 'heading' => __('Border Radius', 'wpex'), 'param_name' => 'button_border_radius', 'description' => __('Please enter a px value.', 'wpex'), 'group' => __('Button', 'wpex')), array('type' => 'dropdown', 'heading' => __('Link Target', 'wpex'), 'param_name' => 'button_target', 'value' => array(__('Self', 'wpex') => '', __('Blank', 'wpex') => 'blank'), 'group' => __('Button', 'wpex')), array('type' => 'dropdown', 'heading' => __('Rel', 'wpex'), 'param_name' => 'button_rel', 'value' => array(__('None', 'wpex') => 'none', __('Nofollow', 'wpex') => 'nofollow'), 'group' => __('Button', 'wpex')), array('type' => 'dropdown', 'heading' => __('Icon Left', 'wpex'), 'param_name' => 'button_icon_left', 'value' => wpex_get_awesome_icons(), 'group' => __('Button', 'wpex')), array('type' => 'dropdown', 'heading' => __('Icon Right', 'wpex'), 'param_name' => 'button_icon_right', 'value' => wpex_get_awesome_icons(), 'group' => __('Button', 'wpex')), array('type' => 'css_editor', 'heading' => __('CSS', 'wpex'), 'param_name' => 'css', 'group' => __('Design options', 'wpex')))));
}
Ejemplo n.º 11
0
// Define Section
$wp_customize->add_section('wpex_header_search', array('title' => __('Search', 'wpex'), 'priority' => 3, 'panel' => 'wpex_header'));
// Enable Search
$wp_customize->add_setting('main_search', array('type' => 'theme_mod', 'default' => '1'));
$wp_customize->add_control('main_search', array('label' => __('Header Search', 'wpex'), 'section' => 'wpex_header_search', 'settings' => 'main_search', 'priority' => 1, 'type' => 'checkbox'));
// Search Style
$wp_customize->add_setting('main_search_toggle_style', array('type' => 'theme_mod', 'default' => 'drop_down'));
$wp_customize->add_control('main_search_toggle_style', array('label' => __('Header Search Style', 'wpex'), 'section' => 'wpex_header_search', 'settings' => 'main_search_toggle_style', 'priority' => 1, 'type' => 'select', 'choices' => array('drop_down' => __('Drop Down', 'wpex'), 'overlay' => __('Site Overlay', 'wpex'), 'header_replace' => __('Header Replace', 'wpex'))));
/*-----------------------------------------------------------------------------------*/
/*	- Logo
/*-----------------------------------------------------------------------------------*/
// Define Logo Section
$wp_customize->add_section('wpex_header_logo', array('title' => __('Logo', 'wpex'), 'priority' => 4, 'panel' => 'wpex_header'));
// Logo Icon
$wp_customize->add_setting('logo_icon', array('type' => 'theme_mod'));
$wp_customize->add_control('logo_icon', array('label' => __('Text Logo Icon', 'wpex'), 'section' => 'wpex_header_logo', 'settings' => 'logo_icon', 'priority' => 1, 'type' => 'select', 'choices' => wpex_get_awesome_icons()));
// Logo Image
$wp_customize->add_setting('custom_logo', array('type' => 'theme_mod'));
$wp_customize->add_control(new WP_Customize_Image_Control($wp_customize, 'custom_logo', array('label' => __('Image Logo', 'wpex'), 'section' => 'wpex_header_logo', 'settings' => 'custom_logo', 'priority' => 4)));
// Retina Logo Image
$wp_customize->add_setting('retina_logo', array('type' => 'theme_mod'));
$wp_customize->add_control(new WP_Customize_Image_Control($wp_customize, 'retina_logo', array('label' => __('Retina Image Logo', 'wpex'), 'section' => 'wpex_header_logo', 'settings' => 'retina_logo', 'priority' => 5)));
// Standard Logo height
$wp_customize->add_setting('retina_logo_height', array('type' => 'theme_mod'));
$wp_customize->add_control('retina_logo_height', array('label' => __('Standard Retina Logo Height', 'wpex'), 'section' => 'wpex_header_logo', 'settings' => 'retina_logo_height', 'priority' => 6, 'type' => 'text', 'description' => __('Enter the height in pixels of your standard logo size in order to mantain proportions for your retina logo.', 'wpex')));
// Logo max Width
$wp_customize->add_setting('logo_max_width', array('type' => 'theme_mod'));
$wp_customize->add_control('logo_max_width', array('label' => __('Logo Max Width', 'wpex'), 'section' => 'wpex_header_logo', 'settings' => 'logo_max_width', 'priority' => 7, 'type' => 'text', 'description' => __('Helps prevent conflicts with your logo and your menu.', 'wpex')));
// Logo Top Margin
$wp_customize->add_setting('logo_top_margin', array('type' => 'theme_mod'));
$wp_customize->add_control('logo_top_margin', array('label' => __('Logo Top Margin', 'wpex'), 'section' => 'wpex_header_logo', 'settings' => 'logo_top_margin', 'priority' => 8, 'type' => 'text', 'description' => __('Will only work with the "Custom Header Height" option is left empty', 'wpex')));
Ejemplo n.º 12
0
        /**
         * Custom Font Awesome Icons param
         *
         * @link http://kb.wpbakery.com/index.php?title=Vc_remove_param
         */
        public function font_awesome_icon_param($settings, $value)
        {
            $dependency = vc_generate_dependencies_attributes($settings);
            $return = '<div class="my_param_block">
				<div class="vcex-font-awesome-icon-preview"></div>
				<input placeholder="' . __("Type in an icon name or select one from below", 'wpex') . '" name="' . $settings['param_name'] . '"' . ' data-param-name="' . $settings['param_name'] . '" class="wpb_vc_param_value wpb-textinput ' . $settings['param_name'] . ' ' . $settings['type'] . '_field" type="text" value="' . $value . '" ' . $dependency . ' style="width: 100%; vertical-align: top; margin-bottom: 10px" />';
            $return .= '<div class="vcex-font-awesome-icon-select-window">
						<span class="fa fa-times" style="color:red;" data-name="clear"></span>';
            $icons = wpex_get_awesome_icons();
            foreach ($icons as $icon) {
                if ('' != $icon) {
                    if ($value == $icon) {
                        $active = 'active';
                    } else {
                        $active = '';
                    }
                    $return .= '<span class="fa fa-' . $icon . ' ' . $active . '" data-name="' . $icon . '"></span>';
                }
            }
            $return .= '</div></div><div style="clear:both;"></div>';
            return $return;
        }