当前位置: 首页>>代码示例>>PHP>>正文


PHP wpex_visibility函数代码示例

本文整理汇总了PHP中wpex_visibility函数的典型用法代码示例。如果您正苦于以下问题:PHP wpex_visibility函数的具体用法?PHP wpex_visibility怎么用?PHP wpex_visibility使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了wpex_visibility函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: vcex_social_links_vc_map

/**
 * Adds the shortcode to the Visual Composer
 *
 * @since 2.0.0
 */
function vcex_social_links_vc_map()
{
    // Define map array
    $array = array('name' => esc_html__('Social Links', 'total'), 'description' => esc_html__('Display social links using icon fonts', 'total'), 'base' => 'vcex_social_links', 'category' => wpex_get_theme_branding(), 'icon' => 'vcex-social-links vcex-icon fa fa-user-plus');
    // Create params for array
    $params = array(array('type' => 'textfield', 'heading' => esc_html__('Unique Id', 'total'), 'param_name' => 'unique_id'), array('type' => 'textfield', 'heading' => esc_html__('Classes', 'total'), 'param_name' => 'classes'), array('type' => 'dropdown', 'heading' => esc_html__('Style', 'total'), 'param_name' => 'style', 'value' => array_flip(wpex_social_button_styles())), array('type' => 'dropdown', 'heading' => esc_html__('Visibility', 'total'), 'param_name' => 'visibility', 'value' => array_flip(wpex_visibility())), array('type' => 'dropdown', 'heading' => esc_html__('Appear Animation', 'total'), 'param_name' => 'css_animation', 'value' => array_flip(wpex_css_animations())), array('type' => 'dropdown', 'heading' => esc_html__('Hover Animation', 'total'), 'param_name' => 'hover_animation', 'value' => array_flip(wpex_hover_css_animations())), array('type' => 'dropdown', 'heading' => esc_html__('Link Target', 'total'), 'param_name' => 'link_target', 'value' => array(__('Self', 'total') => '', __('Blank', 'total') => 'blank')));
    // Get array of social links to loop through
    $social_links = vcex_social_links_profiles();
    // Loop through social links and add to params
    foreach ($social_links as $key => $val) {
        $desc = 'email' == $key ? esc_html__('Format: mailto:email@site.com', 'total') : '';
        $params[] = array('type' => 'textfield', 'heading' => $val['label'], 'param_name' => $key, 'group' => esc_html__('Profiles', 'total'), 'description' => $desc);
    }
    // Add CSS option
    $params[] = array('type' => 'css_editor', 'heading' => esc_html__('CSS', 'total'), 'param_name' => 'css', 'group' => esc_html__('Design', 'total'));
    $params[] = array('type' => 'dropdown', 'heading' => esc_html__('Align', 'total'), 'param_name' => 'align', 'value' => array_flip(wpex_alignments()), 'group' => esc_html__('Design', 'total'));
    $params[] = array('type' => 'textfield', 'heading' => esc_html__('Font Size', 'total'), 'param_name' => 'size', 'group' => esc_html__('Design', 'total'));
    $params[] = array('type' => 'textfield', 'heading' => esc_html__('Width', 'total'), 'param_name' => 'width', 'group' => esc_html__('Design', 'total'));
    $params[] = array('type' => 'textfield', 'heading' => esc_html__('Height', 'total'), 'param_name' => 'height', 'group' => esc_html__('Design', 'total'));
    $params[] = array('type' => 'textfield', 'heading' => esc_html__('Border Radius', 'total'), 'param_name' => 'border_radius', 'group' => esc_html__('Design', 'total'));
    $params[] = array('type' => 'colorpicker', 'heading' => esc_html__('Color', 'total'), 'param_name' => 'color', 'group' => esc_html__('Design', 'total'));
    $params[] = array('type' => 'colorpicker', 'heading' => esc_html__('Hover Background', 'total'), 'param_name' => 'hover_bg', 'group' => esc_html__('Design', 'total'));
    $params[] = array('type' => 'colorpicker', 'heading' => esc_html__('Hover Color', 'total'), 'param_name' => 'hover_color', 'group' => esc_html__('Design', 'total'));
    // Add params to array
    $array['params'] = $params;
    // Return $array
    return $array;
}
开发者ID:iq007,项目名称:MadScape,代码行数:33,代码来源:social_links.php

示例2: add_params

 /**
  * Adds new params for the VC Rows
  *
  * @since 2.0.0
  */
 public function add_params()
 {
     /*-----------------------------------------------------------------------------------*/
     /*  - Columns
     			/*-----------------------------------------------------------------------------------*/
     vc_add_param('vc_column', array('type' => 'hidden', 'param_name' => 'style'));
     vc_add_param('vc_column', array('type' => 'dropdown', 'heading' => __('Visibility', 'wpex'), 'param_name' => 'visibility', 'std' => '', 'value' => array_flip(wpex_visibility())));
     vc_add_param('vc_column', array('type' => 'dropdown', 'heading' => __('Animation', 'wpex'), 'param_name' => 'css_animation', 'value' => array_flip(wpex_css_animations())));
     vc_add_param('vc_column', array('type' => 'dropdown', 'heading' => __('Typography Style', 'wpex'), 'param_name' => 'typography_style', 'value' => array_flip(wpex_typography_styles())));
     vc_add_param('vc_column', array('type' => 'textfield', 'heading' => __('Minimum Height', 'wpex'), 'param_name' => 'min_height', 'description' => __('You can enter a minimum height for this row.', 'wpex')));
     // Hidden fields = Deprecated params, these should be removed on save
     $deprecated = array('id', 'typo_style', 'bg_color', 'bg_image', 'bg_style', 'border_style', 'border_color', 'border_width', 'margin_top', 'margin_bottom', 'margin_left', 'padding_top', 'padding_bottom', 'padding_left', 'padding_right', 'drop_shadow');
     foreach ($deprecated as $key => $val) {
         vc_add_param('vc_column', array('type' => 'hidden', 'param_name' => $val));
     }
     /*-----------------------------------------------------------------------------------*/
     /*  - Inner Columns
     			/*-----------------------------------------------------------------------------------*/
     vc_add_param('vc_column_inner', array('type' => 'hidden', 'param_name' => 'style'));
     // Hidden fields = Deprecated params, these should be removed on save
     $deprecated = array('id', 'typo_style', 'bg_color', 'bg_image', 'bg_style', 'border_style', 'border_color', 'border_width', 'margin_top', 'margin_bottom', 'margin_left', 'padding_top', 'padding_bottom', 'padding_left', 'padding_right');
     foreach ($deprecated as $key => $val) {
         vc_add_param('vc_column_inner', array('type' => 'hidden', 'param_name' => $val));
     }
 }
开发者ID:VanessaGarcia-Freelance,项目名称:TheEmporiumGroup,代码行数:30,代码来源:column.php

示例3: vcex_post_type_archive_vc_map

/**
 * Adds the shortcode to the Visual Composer
 *
 * @since 1.4.1
 */
function vcex_post_type_archive_vc_map()
{
    $post_types = array();
    if (is_admin()) {
        $post_types = vcex_get_post_types();
    }
    vc_map(array('name' => __('Post Types Archive', 'wpex'), 'description' => __('Custom post type archive', 'wpex'), 'base' => 'vcex_post_type_archive', 'category' => WPEX_THEME_BRANDING, 'icon' => 'vcex-post-type-grid vcex-icon fa fa-files-o', 'params' => array(array('type' => 'textfield', 'heading' => __('Unique Id', 'wpex'), 'param_name' => 'unique_id'), array('type' => 'textfield', 'heading' => __('Custom Classes', 'wpex'), 'param_name' => 'classes'), array('type' => 'dropdown', 'heading' => __('Visibility', 'wpex'), 'param_name' => 'visibility', 'value' => array_flip(wpex_visibility())), array('type' => 'dropdown', 'heading' => __('Appear Animation', 'wpex'), 'param_name' => 'css_animation', 'value' => array_flip(wpex_css_animations())), 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') => '', __('True', 'wpex') => 'true'), 'description' => __('Important: Pagination will not work on your homepage due to how WordPress Queries function.', 'wpex'), 'group' => __('Query', 'wpex')), array('type' => 'dropdown', 'heading' => __('Post Type', 'wpex'), 'param_name' => 'post_type', 'value' => $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') => '', __('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') => '', __('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') => '', __('Yes', 'wpex') => 'true'), 'group' => __('Query', 'wpex')))));
}
开发者ID:VanessaGarcia-Freelance,项目名称:TheEmporiumGroup,代码行数:13,代码来源:post_type_archive.php

示例4: vcex_navbar_vc_map

/**
 * Adds the shortcode to the Visual Composer
 *
 * @since 1.4.1
 */
function vcex_navbar_vc_map()
{
    // Create an array of menu items
    $menus_array = array(__('None', 'wpex') => '');
    if (is_admin()) {
        $menus = get_terms('nav_menu', array('hide_empty' => true));
        foreach ($menus as $menu) {
            $menus_array[$menu->name] = $menu->term_id;
        }
    }
    // Map the shortcode
    vc_map(array('name' => __('Navigation Bar', 'wpex'), 'description' => __('Custom menu navigation bar', 'wpex'), 'base' => 'vcex_navbar', 'icon' => 'vcex-navbar vcex-icon fa fa-navicon', 'category' => WPEX_THEME_BRANDING, 'params' => array(array('type' => 'textfield', 'admin_label' => true, 'heading' => __('Unique Id', 'wpex'), 'param_name' => 'unique_id'), array('type' => 'textfield', 'admin_label' => true, 'heading' => __('Classes', 'wpex'), 'param_name' => 'classes'), array('type' => 'dropdown', 'admin_label' => true, 'heading' => __('Menu', 'wpex'), 'param_name' => 'menu', 'std' => '', 'value' => $menus_array, 'save_always' => true), array('type' => 'dropdown', 'heading' => __('Alignment', 'wpex'), 'param_name' => 'align', 'value' => array_flip(wpex_alignments())), 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()), 'std' => ''), array('type' => 'dropdown', 'heading' => __('Local Scroll menu', 'wpex'), 'param_name' => 'local_scroll', 'value' => array(__('No', 'wpex') => 'false', __('Yes', 'wpex') => 'true')), array('type' => 'dropdown', 'admin_label' => true, 'heading' => __('Style', 'wpex'), 'param_name' => 'style', 'std' => 'buttons', 'group' => __('Design', 'wpex'), 'value' => array(__('Buttons', 'wpex') => 'buttons', __('Simple', 'wpex') => 'simple')), array('type' => 'dropdown', 'heading' => __('Button Style', 'wpex'), 'param_name' => 'button_style', 'value' => array_flip(wpex_button_styles()), 'group' => __('Design', 'wpex'), 'std' => 'minimal-border', 'dependency' => array('element' => 'style', 'value' => 'buttons')), array('type' => 'dropdown', 'heading' => __('Button Color', 'wpex'), 'param_name' => 'button_color', 'std' => '', 'value' => array_flip(wpex_button_colors()), 'group' => __('Design', 'wpex'), 'dependency' => array('element' => 'style', 'value' => 'buttons')), array('type' => 'dropdown', 'heading' => __('Layout', 'wpex'), 'param_name' => 'button_layout', 'value' => array(__('Default', 'wpex') => '', __('Expanded', 'wpex') => 'expanded'), 'group' => __('Design', 'wpex'), 'dependency' => array('element' => 'style', 'value' => 'buttons')), array('type' => 'textfield', 'heading' => __('Font Size', 'wpex'), 'param_name' => 'font_size', 'group' => __('Design', 'wpex')), array('type' => 'dropdown', 'heading' => __('Color', 'wpex') . ' (' . _x('Legacy', 'Old VC Module Setting', 'wpex') . ')', 'param_name' => 'link_color', 'value' => array(__('Default', 'wpex') => '', __('Black', 'wpex') => 'black', __('White', 'wpex') => 'white'), 'group' => __('Design', 'wpex')), array('type' => 'colorpicker', 'heading' => __('Hover: Background', 'wpex'), 'param_name' => 'hover_bg', 'group' => __('Design', 'wpex')), array('type' => 'colorpicker', 'heading' => __('Hover: Color', 'wpex'), 'param_name' => 'hover_color', 'group' => __('Design', 'wpex')), array('type' => 'css_editor', 'heading' => __('CSS', 'wpex'), 'param_name' => 'css', 'group' => __('CSS', 'wpex')), array('type' => 'hidden', 'param_name' => 'border_radius'))));
}
开发者ID:VanessaGarcia-Freelance,项目名称:TheEmporiumGroup,代码行数:18,代码来源:navbar.php

示例5: vcex_skillbar_vc_map

/**
 * Adds the shortcode to the Visual Composer
 *
 * @since 1.4.1
 */
function vcex_skillbar_vc_map()
{
    vc_map(array('name' => __('Skill Bar', 'wpex'), 'description' => __('Animated skill bar', 'wpex'), 'base' => 'vcex_skillbar', 'category' => WPEX_THEME_BRANDING, 'icon' => 'vcex-skill-bar vcex-icon fa fa-server', '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' => __('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' => __('Visibility', 'wpex'), 'param_name' => 'visibility', 'value' => array_flip(wpex_visibility())), array('type' => 'textfield', 'heading' => __('Title', 'wpex'), 'param_name' => 'title', 'admin_label' => true, 'value' => 'Web Design'), array('type' => 'textfield', 'heading' => __('Percentage', 'wpex'), 'param_name' => 'percentage', 'value' => 70), array('type' => 'dropdown', 'heading' => __('Display % Number', 'wpex'), 'param_name' => 'show_percent', 'value' => array(__('Yes', 'wpex') => 'true', __('No', 'wpex') => 'false')), array('type' => 'dropdown', 'heading' => __('Display Icon', 'wpex'), 'param_name' => 'show_icon', 'value' => array(__('No', 'wpex') => 'false', __('Yes', 'wpex') => 'true'), 'group' => __('Icon', 'wpex')), array('type' => 'dropdown', 'heading' => __('Icon library', 'wpex'), 'param_name' => 'icon_type', 'value' => array(__('Font Awesome', 'wpex') => 'fontawesome', __('Open Iconic', 'wpex') => 'openiconic', __('Typicons', 'wpex') => 'typicons', __('Entypo', 'wpex') => 'entypo', __('Linecons', 'wpex') => 'linecons', __('Pixel', 'wpex') => 'pixelicons'), 'group' => __('Icon', 'wpex'), 'dependency' => array('element' => 'show_icon', 'value' => 'true')), array('type' => 'iconpicker', 'heading' => __('Icon', 'wpex'), 'param_name' => 'icon', 'settings' => array('emptyIcon' => true, 'iconsPerPage' => 200), 'dependency' => array('element' => 'icon_type', 'value' => 'fontawesome'), 'group' => __('Icon', 'wpex')), array('type' => 'iconpicker', 'heading' => __('Icon', 'wpex'), 'param_name' => 'icon_openiconic', 'settings' => array('emptyIcon' => true, 'iconsPerPage' => 200, 'type' => 'openiconic'), 'dependency' => array('element' => 'icon_type', 'value' => 'openiconic'), 'group' => __('Icon', 'wpex')), array('type' => 'iconpicker', 'heading' => __('Icon', 'wpex'), 'param_name' => 'icon_typicons', 'settings' => array('emptyIcon' => true, 'iconsPerPage' => 200, 'type' => 'typicons'), 'dependency' => array('element' => 'icon_type', 'value' => 'typicons'), 'group' => __('Icon', 'wpex')), array('type' => 'iconpicker', 'heading' => __('Icon', 'wpex'), 'param_name' => 'icon_entypo', 'settings' => array('emptyIcon' => false, 'type' => 'entypo', 'iconsPerPage' => 300), 'dependency' => array('element' => 'icon_type', 'value' => 'entypo'), 'group' => __('Icon', 'wpex')), array('type' => 'iconpicker', 'heading' => __('Icon', 'wpex'), 'param_name' => 'icon_linecons', 'settings' => array('emptyIcon' => true, 'iconsPerPage' => 200, 'type' => 'linecons'), 'dependency' => array('element' => 'icon_type', 'value' => 'linecons'), 'group' => __('Icon', 'wpex')), array('type' => 'iconpicker', 'heading' => __('Icon', 'wpex'), 'param_name' => 'icon_pixelicons', 'settings' => array('emptyIcon' => true, 'iconsPerPage' => 200, 'type' => 'pixelicons', 'source' => vcex_pixel_icons()), 'dependency' => array('element' => 'icon_type', 'value' => 'pixelicons'), 'group' => __('Icon', 'wpex')), array('type' => 'colorpicker', 'heading' => __('Container Background', 'wpex'), 'param_name' => 'background', 'group' => __('Design', 'wpex')), array('type' => 'dropdown', 'heading' => __('Container Inset Shadow', 'wpex'), 'param_name' => 'box_shadow', 'value' => array(__('Yes', 'wpex') => 'true', __('No', 'wpex') => 'false'), 'group' => __('Design', 'wpex')), array('type' => 'colorpicker', 'heading' => __('Skill Bar Color', 'wpex'), 'param_name' => 'color', 'group' => __('Design', 'wpex')), array('type' => 'textfield', 'heading' => __('Container Height', 'wpex'), 'param_name' => 'container_height', 'group' => __('Design', 'wpex')), array('type' => 'textfield', 'heading' => __('Container Left Padding', 'wpex'), 'param_name' => 'container_padding_left', 'group' => __('Design', 'wpex')), array('type' => 'textfield', 'heading' => __('Font Size', 'wpex'), 'param_name' => 'font_size', 'group' => __('Design', 'wpex')))));
}
开发者ID:VanessaGarcia-Freelance,项目名称:TheEmporiumGroup,代码行数:9,代码来源:skillbar.php

示例6: vcex_newsletter_form_vc_map

/**
 * Adds the shortcode to the Visual Composer
 *
 * @since Total 1.4.1
 */
function vcex_newsletter_form_vc_map()
{
    return array('name' => esc_html__('Mailchimp Form', 'total'), 'description' => esc_html__('Newsletter subscription form', 'total'), 'base' => 'vcex_newsletter_form', 'category' => wpex_get_theme_branding(), 'icon' => 'vcex-newsletter vcex-icon fa fa-envelope', 'params' => array(array('type' => 'textfield', 'admin_label' => true, 'heading' => esc_html__('Unique Id', 'total'), 'param_name' => 'unique_id'), array('type' => 'textfield', 'admin_label' => true, 'heading' => esc_html__('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__('CSS Animation', 'total'), 'param_name' => 'css_animation', 'value' => array_flip(wpex_css_animations())), array('type' => 'textfield', 'heading' => esc_html__('Mailchimp Form Action', 'total'), 'param_name' => 'mailchimp_form_action', 'value' => '//domain.us1.list-manage.com/subscribe/post?u=numbers_go_here', 'description' => esc_html__('Enter the MailChimp form action URL.', 'total') . ' <a href="http://docs.shopify.com/support/configuration/store-customization/where-do-i-get-my-mailchimp-form-action?ref=wpexplorer" target="_blank">' . esc_html__('Learn More', 'total') . ' &rarr;</a>'), array('type' => 'textfield', 'heading' => esc_html__('Placeholder Text', 'total'), 'param_name' => 'placeholder_text', 'std' => esc_html_x('Enter your email address', 'Newsletter VC module placeholder text', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Submit Button Text', 'total'), 'param_name' => 'submit_text', 'std' => esc_html_x('Go', 'Newsletter VC module submit button text', 'total')), array('type' => 'colorpicker', 'heading' => esc_html__('Background', 'total'), 'param_name' => 'input_bg', 'dependency' => array('element' => 'mailchimp_form_action', 'not_empty' => true), 'group' => esc_html__('Input', 'total')), array('type' => 'colorpicker', 'heading' => esc_html__('Color', 'total'), 'param_name' => 'input_color', 'group' => esc_html__('Input', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Width', 'total'), 'param_name' => 'input_width', 'group' => esc_html__('Input', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Height', 'total'), 'param_name' => 'input_height', 'group' => esc_html__('Input', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Padding', 'total'), 'param_name' => 'input_padding', 'description' => esc_html__('Please use the following format: top right bottom left.', 'total'), 'group' => esc_html__('Input', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Border', 'total'), 'param_name' => 'input_border', 'description' => esc_html__('Please use the shorthand format: width style color. Enter 0px or "none" to disable border.', 'total'), 'group' => esc_html__('Input', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Border Radius', 'total'), 'param_name' => 'input_border_radius', 'group' => esc_html__('Input', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Font Size', 'total'), 'param_name' => 'input_font_size', 'group' => esc_html__('Input', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Letter Spacing', 'total'), 'param_name' => 'input_letter_spacing', 'group' => esc_html__('Input', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Font Weight', 'total'), 'param_name' => 'input_weight', 'group' => esc_html__('Input', 'total'), 'std' => '', 'value' => array_flip(wpex_font_weights())), array('type' => 'colorpicker', 'heading' => esc_html__('Background', 'total'), 'param_name' => 'submit_bg', 'group' => esc_html__('Submit', 'total')), array('type' => 'colorpicker', 'heading' => esc_html__('Background: Hover', 'total'), 'param_name' => 'submit_hover_bg', 'group' => esc_html__('Submit', 'total')), array('type' => 'colorpicker', 'heading' => esc_html__('Color', 'total'), 'param_name' => 'submit_color', 'group' => esc_html__('Submit', 'total')), array('type' => 'colorpicker', 'heading' => esc_html__('Color: Hover', 'total'), 'param_name' => 'submit_hover_color', 'group' => esc_html__('Submit', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Margin Right', 'total'), 'param_name' => 'submit_position_right', 'group' => esc_html__('Submit', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Height', 'total'), 'param_name' => 'submit_height', 'group' => esc_html__('Submit', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Padding', 'total'), 'param_name' => 'submit_padding', 'description' => esc_html__('Please use the following format: top right bottom left.', 'total'), 'group' => esc_html__('Submit', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Border', 'total'), 'param_name' => 'submit_border', 'description' => esc_html__('Please use the shorthand format: width style color. Enter 0px or "none" to disable border.', 'total'), 'group' => esc_html__('Submit', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Border Radius', 'total'), 'param_name' => 'submit_border_radius', 'group' => esc_html__('Submit', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Font Size', 'total'), 'param_name' => 'submit_font_size', 'group' => esc_html__('Submit', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Letter Spacing', 'total'), 'param_name' => 'submit_letter_spacing', 'group' => esc_html__('Submit', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Font Weight', 'total'), 'param_name' => 'submit_weight', 'group' => esc_html__('Submit', 'total'), 'std' => '', 'value' => array_flip(wpex_font_weights()))));
}
开发者ID:iq007,项目名称:MadScape,代码行数:9,代码来源:newsletter_form.php

示例7: apply_filters

<?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'))));
开发者ID:VanessaGarcia-Freelance,项目名称:TheEmporiumGroup,代码行数:26,代码来源:header.php

示例8: array

<?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'))));
开发者ID:VanessaGarcia-Freelance,项目名称:TheEmporiumGroup,代码行数:14,代码来源:togglebar.php

示例9: vcex_woocommerce_carousel_vc_map

/**
 * Adds the shortcode to the Visual Composer
 *
 * @since 1.4.1
 */
function vcex_woocommerce_carousel_vc_map()
{
    vc_map(array('name' => __('WooCommerce Carousel', 'wpex'), 'description' => __('Recent woocommerce posts carousel', 'wpex'), 'base' => 'vcex_woocommerce_carousel', 'category' => WPEX_THEME_BRANDING, 'icon' => 'vcex-woocommerce-carousel vcex-icon fa fa-shopping-cart', '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())), array('type' => 'dropdown', 'heading' => __('Appear Animation', 'wpex'), 'param_name' => 'css_animation', 'value' => array_flip(wpex_css_animations())), array('type' => 'dropdown', 'heading' => __('Arrows?', 'wpex'), 'param_name' => 'arrows', 'value' => array(__('True', 'wpex') => 'true', __('False', 'wpex') => 'false')), array('type' => 'dropdown', 'heading' => __('Dots?', 'wpex'), 'param_name' => 'dots', 'value' => array(__('False', 'wpex') => 'false', __('True', 'wpex') => 'true')), array('type' => 'textfield', 'heading' => __('Items To Display', 'wpex'), 'param_name' => 'items', 'value' => '4'), array('type' => 'textfield', 'heading' => __('Items To Scrollby', 'wpex'), 'param_name' => 'items_scroll', 'value' => '1'), array('type' => 'textfield', 'heading' => __('Margin Between Items', 'wpex'), 'param_name' => 'items_margin', 'value' => '15'), array('type' => 'dropdown', 'heading' => __('Auto Play', 'wpex'), 'param_name' => 'auto_play', 'value' => array(__('True', 'wpex') => 'true', __('False', 'wpex') => 'false')), array('type' => 'textfield', 'heading' => __('Timeout Duration in milliseconds', 'wpex'), 'param_name' => 'timeout_duration', 'value' => '5000', 'dependency' => array('element' => 'auto_play', 'value' => 'true')), array('type' => 'dropdown', 'heading' => __('Infinite Loop', 'wpex'), 'param_name' => 'infinite_loop', 'value' => array(__('True', 'wpex') => 'true', __('False', 'wpex') => 'false')), array('type' => 'dropdown', 'heading' => __('Center Item', 'wpex'), 'param_name' => 'center', 'value' => array(__('False', 'wpex') => 'false', __('True', 'wpex') => 'true')), array('type' => 'textfield', 'heading' => __('Animation Speed', 'wpex'), 'param_name' => 'animation_speed', 'value' => '150', 'description' => __('Default is 150 milliseconds. Enter 0.0 to disable.', 'wpex')), array('type' => 'textfield', 'heading' => __('Post Count', 'wpex'), 'param_name' => 'count', 'value' => '8', 'group' => __('Query', 'wpex')), array('type' => 'dropdown', 'heading' => __('Featured Products Only', 'wpex'), 'param_name' => 'featured_products_only', 'group' => __('Query', 'wpex'), 'value' => array(__('False', 'wpex') => '', __('True', 'wpex') => true)), array('type' => 'dropdown', 'heading' => __('Exclude Out of Stock Products', 'wpex'), 'param_name' => 'exclude_products_out_of_stock', 'group' => __('Query', 'wpex'), 'value' => array(__('False', 'wpex') => '', __('True', 'wpex') => true)), 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' => true, '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' => true, 'unique_values' => true, 'display_inline' => true, 'delay' => 0, 'auto_focus' => true), 'group' => __('Query', 'wpex')), array('type' => 'dropdown', 'heading' => __('Order', 'wpex'), 'param_name' => 'order', 'group' => __('Query', 'wpex'), 'value' => array(__('Default', 'wpex') => '', __('DESC', 'wpex') => 'DESC', __('ASC', 'wpex') => 'ASC')), array('type' => 'dropdown', 'heading' => __('Order By', 'wpex'), 'param_name' => 'orderby', 'value' => vcex_orderby_array(), 'group' => __('Query', 'wpex')), array('type' => 'textfield', 'heading' => __('Orderby: Meta Key', 'wpex'), 'param_name' => 'orderby_meta_key', 'group' => __('Query', 'wpex'), 'dependency' => array('element' => 'orderby', 'value' => array('meta_value_num', 'meta_value'))), array('type' => 'dropdown', 'heading' => __('Image Links To', 'wpex'), 'param_name' => 'thumbnail_link', 'value' => array(__('Default', 'wpex') => '', __('Post', 'wpex') => 'post', __('Lightbox', 'wpex') => 'lightbox', __('None', 'wpex') => 'none'), 'group' => __('Image', 'wpex')), array('type' => '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()), 'group' => __('Image', 'wpex'), 'dependency' => array('element' => 'img_size', 'value' => 'wpex_custom')), array('type' => 'textfield', 'heading' => __('Image Crop Width', 'wpex'), 'param_name' => 'img_width', 'description' => __('Enter a width in pixels.', 'wpex'), 'group' => __('Image', 'wpex'), 'dependency' => array('element' => 'img_size', 'value' => 'wpex_custom')), array('type' => 'textfield', 'heading' => __('Image Crop Height', 'wpex'), 'param_name' => 'img_height', 'dependency' => array('element' => 'img_size', 'value' => 'wpex_custom'), 'description' => __('Enter a height in pixels. Leave empty to disable vertical cropping and keep image proportions.', 'wpex'), 'group' => __('Image', 'wpex')), array('type' => 'dropdown', 'heading' => __('Image Filter', 'wpex'), 'param_name' => 'img_filter', 'value' => array_flip(wpex_image_filters()), 'group' => __('Image', 'wpex')), 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' => __('Display 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')), array('type' => 'textfield', 'heading' => __('Font Size', 'wpex'), 'param_name' => 'content_heading_size', 'description' => __('You can use em or px values, but you must define them.', 'wpex'), 'group' => __('Title', 'wpex')), array('type' => 'textfield', 'heading' => __('Margin', 'wpex'), 'param_name' => 'content_heading_margin', 'description' => __('Please use the following format: top right bottom left.', 'wpex'), 'group' => __('Title', 'wpex')), array('type' => 'textfield', 'heading' => __('Line Height', 'wpex'), 'param_name' => 'content_heading_line_height', 'description' => __('Enter a numerical, pixel or percentage value.', 'wpex'), 'group' => __('Title', 'wpex')), array('type' => 'dropdown', 'heading' => __('Font Weight', 'wpex'), 'param_name' => 'content_heading_weight', 'description' => __('Note: Not all font families support every font weight.', 'wpex'), 'std' => '', 'value' => array_flip(wpex_font_weights()), 'group' => __('Title', 'wpex')), array('type' => 'dropdown', 'heading' => __('Text Transform', 'wpex'), 'param_name' => 'content_heading_transform', 'value' => array_flip(wpex_text_transforms()), 'group' => __('Title', 'wpex')), array('type' => 'dropdown', 'heading' => __('Display Price', 'wpex'), 'param_name' => 'price', 'value' => array(__('Yes', 'wpex') => 'true', __('No', 'wpex') => 'false'), 'group' => __('Price', 'wpex')), array('type' => 'colorpicker', 'heading' => __('Color', 'wpex'), 'param_name' => 'content_color', 'group' => __('Price', 'wpex')), array('type' => 'textfield', 'heading' => __('Font Size', 'wpex'), 'param_name' => 'content_font_size', 'group' => __('Price', 'wpex'), 'description' => __('You can use em or px values, but you must define them.', 'wpex')), array('type' => 'dropdown', 'heading' => __('Style', 'wpex'), 'param_name' => 'style', 'value' => array(__('Default', 'wpex') => 'default', __('No Margins', 'wpex') => 'no-margins'), 'group' => __('Design', 'wpex')), 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' => __('Tablet: Items To Display', 'wpex'), 'param_name' => 'tablet_items', 'value' => '3', 'group' => __('Mobile', 'wpex')), array('type' => 'textfield', 'heading' => __('Mobile Landscape: Items To Display', 'wpex'), 'param_name' => 'mobile_landscape_items', 'value' => '2', 'group' => __('Mobile', 'wpex')), array('type' => 'textfield', 'heading' => __('Mobile Portrait: Items To Display', 'wpex'), 'param_name' => 'mobile_portrait_items', 'value' => '1', 'group' => __('Mobile', 'wpex')), array('type' => 'hidden', 'param_name' => 'entry_output'))));
}
开发者ID:VanessaGarcia-Freelance,项目名称:TheEmporiumGroup,代码行数:9,代码来源:woocommerce_carousel.php

示例10: vcex_post_type_list_vc_map

/**
 * Adds the shortcode to the Visual Composer
 *
 * @since 1.4.1
 */
function vcex_post_type_list_vc_map()
{
    return array('name' => esc_html__('Post Types List', 'total'), 'description' => esc_html__('Posts list with large featured image', 'total'), 'base' => 'vcex_post_type_list', 'category' => wpex_get_theme_branding(), 'icon' => 'vcex-post-type-grid vcex-icon fa fa-files-o', 'params' => array(array('type' => 'textfield', 'heading' => esc_html__('Unique Id', 'total'), 'description' => esc_html__('Give your main element a unique ID.', 'total'), 'param_name' => 'unique_id'), array('type' => 'textfield', 'heading' => esc_html__('Custom Classes', 'total'), 'description' => esc_html__('Add additonal classes to the main element.', 'total'), 'param_name' => 'classes'), array('type' => 'dropdown', 'heading' => esc_html__('Visibility', 'total'), 'param_name' => 'visibility', 'value' => array_flip(wpex_visibility()), 'description' => esc_html__('Choose when this module should display.', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Appear Animation', 'total'), 'param_name' => 'css_animation', 'value' => array_flip(wpex_css_animations()), 'description' => esc_html__('If the "filter" is enabled animations will be disabled to prevent bugs.', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Posts Per Page', 'total'), 'param_name' => 'posts_per_page', 'value' => '12', 'description' => esc_html__('You can enter "-1" to display all posts.', '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' => '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__('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__('Featured Post?', 'total'), 'param_name' => 'featured_post', 'std' => 'true', 'value' => array(__('Yes', 'total') => 'true', __('No', 'total') => 'false'), 'group' => esc_html__('Query', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Image Size', 'total'), 'param_name' => 'featured_post_img_size', 'std' => 'wpex_custom', 'value' => vcex_image_sizes(), 'group' => esc_html__('First Post', 'total'), 'dependency' => array('element' => 'featured_post', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Image Crop Location', 'total'), 'param_name' => 'featured_post_img_crop', 'std' => 'center-center', 'value' => array_flip(wpex_image_crop_locations()), 'dependency' => array('element' => 'img_size', 'value' => 'wpex_custom'), 'group' => esc_html__('First Post', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Image Crop Width', 'total'), 'param_name' => 'featured_post_img_width', 'dependency' => array('element' => 'img_size', 'value' => 'wpex_custom'), 'description' => esc_html__('Enter a width in pixels.', 'total'), 'group' => esc_html__('First Post', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Image Crop Height', 'total'), 'param_name' => 'featured_post_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__('First Post', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('CSS3 Image Link Hover', 'total'), 'param_name' => 'featured_post_img_hover_style', 'value' => array_flip(wpex_image_hovers()), 'group' => esc_html__('Media', 'total'), 'dependency' => array('First Post' => 'entry_media', 'value' => 'true'))));
}
开发者ID:iq007,项目名称:MadScape,代码行数:9,代码来源:post_type_list.php

示例11: vcex_button_vc_map

/**
 * Adds the shortcode to the Visual Composer
 *
 * @since 1.4.1
 */
function vcex_button_vc_map()
{
    vc_map(array('name' => __('Total Button', 'wpex'), 'description' => __('Eye catching button', 'wpex'), 'base' => 'vcex_button', 'category' => WPEX_THEME_BRANDING, 'icon' => 'vcex-total-button vcex-icon fa fa-external-link-square', 'params' => array(array('type' => 'textfield', 'admin_label' => true, 'heading' => __('Unique Id', 'wpex'), 'param_name' => 'unique_id'), array('type' => 'textfield', 'admin_label' => true, 'heading' => __('Classes', 'wpex'), 'param_name' => 'classes'), array('type' => 'dropdown', 'heading' => __('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' => 'textfield', 'heading' => __('URL', 'wpex'), 'param_name' => 'url', 'value' => 'http://www.google.com/'), array('type' => 'textfield', 'heading' => __('Text', 'wpex'), 'param_name' => 'content', 'admin_label' => true, 'std' => 'Button Text'), array('type' => 'textfield', 'heading' => __('Link Title', 'wpex'), 'param_name' => 'title', 'value' => 'Visit Site'), array('type' => 'dropdown', 'heading' => __('Link Target', 'wpex'), 'param_name' => 'target', 'value' => array(__('Self', 'wpex') => '', __('Blank', 'wpex') => 'blank', __('Local', 'wpex') => 'local')), array('type' => 'dropdown', 'heading' => __('Link Rel', 'wpex'), 'param_name' => 'rel', 'value' => array(__('None', 'wpex') => '', __('Nofollow', 'wpex') => 'nofollow')), array('type' => 'dropdown', 'heading' => __('Style', 'wpex'), 'param_name' => 'style', 'std' => '', 'value' => array_flip(wpex_button_styles()), 'group' => __('Design', 'wpex')), array('type' => 'dropdown', 'heading' => __('Layout', 'wpex'), 'param_name' => 'layout', 'value' => array(__('Inline', 'wpex') => '', __('Block', 'wpex') => 'block', __('Expanded (fit container)', 'wpex') => 'expanded'), 'group' => __('Design', 'wpex')), array('type' => 'dropdown', 'heading' => __('Align', 'wpex'), 'param_name' => 'align', 'value' => array_flip(wpex_alignments()), 'group' => __('Design', 'wpex')), array('type' => 'dropdown', 'heading' => __('Size', 'wpex'), 'param_name' => 'size', 'std' => '', 'value' => array(__('Default', 'wpex') => '', __('Small', 'wpex') => 'small', __('Medium', 'wpex') => 'medium', __('Large', 'wpex') => 'large'), 'group' => __('Design', 'wpex')), array('type' => 'dropdown', 'heading' => __('Font Family', 'wpex'), 'param_name' => 'font_family', 'std' => '', 'value' => vcex_fonts_array(), 'group' => __('Design', 'wpex')), array('type' => 'dropdown', 'heading' => __('Color', 'wpex'), 'param_name' => 'color', 'std' => '', 'value' => array_flip(wpex_button_colors()), 'group' => __('Design', 'wpex')), array('type' => 'colorpicker', 'heading' => __('Background', 'wpex'), 'param_name' => 'custom_background', 'group' => __('Design', 'wpex')), array('type' => 'colorpicker', 'heading' => __('Background: Hover', 'wpex'), 'param_name' => 'custom_hover_background', 'group' => __('Design', 'wpex')), array('type' => 'colorpicker', 'heading' => __('Color', 'wpex'), 'param_name' => 'custom_color', 'group' => __('Design', 'wpex')), array('type' => 'colorpicker', 'heading' => __('Color: Hover', 'wpex'), 'param_name' => 'custom_hover_color', 'group' => __('Design', 'wpex')), array('type' => 'textfield', 'heading' => __('Font Size', 'wpex'), 'param_name' => 'font_size', 'group' => __('Design', 'wpex')), array('type' => 'textfield', 'heading' => __('Letter Spacing', 'wpex'), 'param_name' => 'letter_spacing', 'group' => __('Design', 'wpex')), array('type' => 'dropdown', 'heading' => __('Text Transform', 'wpex'), 'param_name' => 'text_transform', 'group' => __('Design', 'wpex'), 'value' => array_flip(wpex_text_transforms()), 'std' => ''), array('type' => 'dropdown', 'heading' => __('Font Weight', 'wpex'), 'param_name' => 'font_weight', 'value' => array_flip(wpex_font_weights()), 'std' => '', 'group' => __('Design', 'wpex')), array('type' => 'textfield', 'heading' => __('Custom Width', 'wpex'), 'param_name' => 'width', 'description' => __('Please use a pixel or percentage value.', 'wpex'), 'group' => __('Design', 'wpex')), array('type' => 'textfield', 'heading' => __('Border Radius', 'wpex'), 'param_name' => 'border_radius', 'description' => __('Please enter a px value.', 'wpex'), 'group' => __('Design', 'wpex')), array('type' => 'textfield', 'heading' => __('Padding', 'wpex'), 'param_name' => 'font_padding', 'description' => __('Please use the following format: top right bottom left.', 'wpex'), 'group' => __('Design', 'wpex')), array('type' => 'textfield', 'heading' => __('Margin', 'wpex'), 'param_name' => 'margin', 'description' => __('Please use the following format: top right bottom left.', 'wpex'), 'group' => __('Design', 'wpex')), array('type' => 'dropdown', 'heading' => __('Lightbox', 'wpex'), 'param_name' => 'lightbox', 'value' => array(__('No', 'wpex') => '', __('Yes', 'wpex') => 'true'), 'group' => __('Lightbox', 'wpex')), array('type' => 'dropdown', 'heading' => __('Type', 'wpex'), 'param_name' => 'lightbox_type', 'value' => array(__('Auto Detect - slow', 'wpex') => '', __('iFrame', 'wpex') => 'iframe', __('Image', 'wpex') => 'image', __('Video', 'wpex') => 'video_embed', __('HTML5', 'wpex') => 'html5', __('Quicktime', 'wpex') => 'quicktime'), 'description' => __('Auto detect depends on the iLightbox API, so by choosing your type it speeds things up and you also allows for HTTPS support.', 'wpex'), 'group' => __('Lightbox', 'wpex'), 'dependency' => array('element' => 'lightbox', 'value' => 'true')), array('type' => 'attach_image', 'heading' => __('Lightbox Image', 'wpex'), 'param_name' => 'lightbox_image', 'dependency' => array('element' => 'lightbox_type', 'value' => 'image'), 'group' => __('Lightbox', 'wpex')), array('type' => 'textfield', 'heading' => __('HTML5 Webm URL', 'wpex'), 'param_name' => 'lightbox_video_html5_webm', 'description' => __('Enter the URL to a video, SWF file, flash file or a website URL to open in lightbox.', 'wpex'), 'group' => __('Lightbox', 'wpex'), 'dependency' => array('element' => 'lightbox_type', 'value' => 'html5')), array('type' => 'attach_image', 'heading' => __('Lightbox HTML5 Poster Image', 'wpex'), 'param_name' => 'lightbox_poster_image', 'dependency' => array('element' => 'lightbox_type', 'value' => 'html5'), 'group' => __('Lightbox', 'wpex')), array('type' => 'textfield', 'heading' => __('Lightbox Dimensions', 'wpex'), 'param_name' => 'lightbox_dimensions', 'description' => __('Enter a custom width and height for your lightbox pop-up window. Use format widthxheight. Example: 900x600.', 'wpex'), 'group' => __('Lightbox', 'wpex'), 'dependency' => array('element' => 'lightbox', 'value' => 'true')), array('type' => 'dropdown', 'heading' => __('Icon library', 'wpex'), 'param_name' => 'icon_type', 'description' => __('Select icon library.', 'wpex'), 'std' => 'fontawesome', 'value' => array(__('Font Awesome', 'wpex') => 'fontawesome', __('Open Iconic', 'wpex') => 'openiconic', __('Typicons', 'wpex') => 'typicons', __('Entypo', 'wpex') => 'entypo', __('Linecons', 'wpex') => 'linecons', __('Pixel', 'wpex') => 'pixelicons'), 'group' => __('Icons', 'wpex')), array('type' => 'iconpicker', 'heading' => __('Icon Left', 'wpex'), 'param_name' => 'icon_left', 'admin_label' => true, 'settings' => array('emptyIcon' => true, 'iconsPerPage' => 200), 'dependency' => array('element' => 'icon_type', 'value' => 'fontawesome'), 'group' => __('Icons', 'wpex')), array('type' => 'iconpicker', 'heading' => __('Icon Left', 'wpex'), 'param_name' => 'icon_left_openiconic', 'settings' => array('emptyIcon' => true, 'type' => 'openiconic', 'iconsPerPage' => 200), 'dependency' => array('element' => 'icon_type', 'value' => 'openiconic'), 'group' => __('Icons', 'wpex')), array('type' => 'iconpicker', 'heading' => __('Icon Left', 'wpex'), 'param_name' => 'icon_left_typicons', 'settings' => array('emptyIcon' => true, 'type' => 'typicons', 'iconsPerPage' => 200), 'dependency' => array('element' => 'icon_type', 'value' => 'typicons'), 'group' => __('Icons', 'wpex')), array('type' => 'iconpicker', 'heading' => __('Icon Left', 'wpex'), 'param_name' => 'icon_left_entypo', 'settings' => array('emptyIcon' => true, 'type' => 'entypo', 'iconsPerPage' => 300), 'dependency' => array('element' => 'icon_type', 'value' => 'entypo'), 'group' => __('Icons', 'wpex')), array('type' => 'iconpicker', 'heading' => __('Icon Left', 'wpex'), 'param_name' => 'icon_left_linecons', 'settings' => array('emptyIcon' => true, 'type' => 'linecons', 'iconsPerPage' => 200), 'dependency' => array('element' => 'icon_type', 'value' => 'linecons'), 'group' => __('Icons', 'wpex')), array('type' => 'iconpicker', 'heading' => __('Icon Left', 'wpex'), 'param_name' => 'icon_left_pixelicons', 'settings' => array('emptyIcon' => true, 'type' => 'pixelicons', 'source' => vcex_pixel_icons()), 'dependency' => array('element' => 'icon_type', 'value' => 'pixelicons'), 'group' => __('Icons', 'wpex')), array('type' => 'iconpicker', 'heading' => __('Icon Right', 'wpex'), 'param_name' => 'icon_right', 'admin_label' => true, 'settings' => array('emptyIcon' => true, 'iconsPerPage' => 200), 'dependency' => array('element' => 'icon_type', 'value' => 'fontawesome'), 'group' => __('Icons', 'wpex')), array('type' => 'iconpicker', 'heading' => __('Icon Right', 'wpex'), 'param_name' => 'icon_right_openiconic', 'settings' => array('emptyIcon' => true, 'type' => 'openiconic', 'iconsPerPage' => 200), 'dependency' => array('element' => 'icon_type', 'value' => 'openiconic'), 'group' => __('Icons', 'wpex')), array('type' => 'iconpicker', 'heading' => __('Icon Right', 'wpex'), 'param_name' => 'icon_right_typicons', 'settings' => array('emptyIcon' => true, 'type' => 'typicons', 'iconsPerPage' => 200), 'dependency' => array('element' => 'icon_type', 'value' => 'typicons'), 'group' => __('Icons', 'wpex')), array('type' => 'iconpicker', 'heading' => __('Icon Right', 'wpex'), 'param_name' => 'icon_right_entypo', 'settings' => array('emptyIcon' => true, 'type' => 'entypo', 'iconsPerPage' => 300), 'dependency' => array('element' => 'icon_type', 'value' => 'entypo'), 'group' => __('Icons', 'wpex')), array('type' => 'iconpicker', 'heading' => __('Icon Right', 'wpex'), 'param_name' => 'icon_right_linecons', 'settings' => array('emptyIcon' => true, 'type' => 'linecons', 'iconsPerPage' => 200), 'dependency' => array('element' => 'icon_type', 'value' => 'linecons'), 'group' => __('Icons', 'wpex')), array('type' => 'iconpicker', 'heading' => __('Icon Right', 'wpex'), 'param_name' => 'icon_right_pixelicons', 'settings' => array('emptyIcon' => true, 'type' => 'pixelicons', 'source' => vcex_pixel_icons()), 'dependency' => array('element' => 'icon_type', 'value' => 'pixelicons'), 'group' => __('Icons', 'wpex')), array('type' => 'textfield', 'heading' => __('Left Icon: Right Padding', 'wpex'), 'param_name' => 'icon_left_padding', 'group' => __('Icons', 'wpex')), array('type' => 'textfield', 'heading' => __('Right Icon: Left Padding', 'wpex'), 'param_name' => 'icon_right_padding', 'group' => __('Icons', 'wpex')), array('type' => 'css_editor', 'heading' => __('CSS', 'wpex'), 'param_name' => 'css_wrap', 'group' => __('CSS', 'wpex')))));
}
开发者ID:VanessaGarcia-Freelance,项目名称:TheEmporiumGroup,代码行数:9,代码来源:button.php

示例12: vcex_terms_grid_vc_map

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

示例13: vcex_feature_box_vc_map

/**
 * Adds the shortcode to the Visual Composer
 *
 * @since 1.4.1
 */
function vcex_feature_box_vc_map()
{
    return array('name' => esc_html__('Feature Box', 'total'), 'description' => esc_html__('A feature content box', 'total'), 'base' => 'vcex_feature_box', 'category' => wpex_get_theme_branding(), 'icon' => 'vcex-feature-box vcex-icon fa fa-trophy', '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(__('Left Content - Right Image', 'total') => 'left-content-right-image', __('Left Image - Right Content', 'total') => 'left-image-right-content')), array('type' => 'dropdown', 'heading' => esc_html__('Alignment', 'total'), 'param_name' => 'text_align', 'value' => array(__('Default', 'total') => '', __('Center', 'total') => 'center', __('Left', 'total') => 'left', __('Right', 'total') => 'right')), array('type' => 'textfield', 'heading' => esc_html__('Padding', 'total'), 'param_name' => 'padding', 'description' => esc_html__('Please use the following format: top right bottom left.', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Border', 'total'), 'description' => esc_html__('Please use the shorthand format: width style color. Enter 0px or "none" to disable border.', 'total'), 'param_name' => 'border'), array('type' => 'colorpicker', 'heading' => esc_html__('Background', 'total'), 'param_name' => 'background'), array('type' => 'textfield', 'heading' => esc_html__('Heading', 'total'), 'param_name' => 'heading', 'value' => 'Sample Heading', 'group' => esc_html__('Heading', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('HTML Tag', 'total'), 'param_name' => 'heading_type', 'group' => esc_html__('Heading', 'total'), 'value' => array('h2' => 'h2', 'h3' => 'h3', 'h4' => 'h4', __('h5', 'total') => 'h5', 'div' => 'div'), 'dependency' => array('element' => 'heading', 'not_empty' => true)), array('type' => 'vc_link', 'heading' => esc_html__('Link', 'total'), 'param_name' => 'heading_url', 'group' => esc_html__('Heading', 'total'), 'dependency' => array('element' => 'heading', 'not_empty' => true)), array('type' => 'dropdown', 'heading' => esc_html__('Font Family', 'total'), 'param_name' => 'heading_font_family', 'std' => '', 'value' => vcex_fonts_array(), 'group' => esc_html__('Heading', 'total')), array('type' => 'colorpicker', 'heading' => esc_html__('Heading Color', 'total'), 'param_name' => 'heading_color', 'group' => esc_html__('Heading', 'total'), 'dependency' => array('element' => 'heading', 'not_empty' => true)), array('type' => 'dropdown', 'heading' => esc_html__('Font Weight', 'total'), 'param_name' => 'heading_weight', 'std' => '', 'value' => array_flip(wpex_font_weights()), 'group' => esc_html__('Heading', 'total'), 'dependency' => array('element' => 'heading', 'not_empty' => true)), array('type' => 'dropdown', 'heading' => esc_html__('Heading Text Transform', 'total'), 'param_name' => 'heading_transform', 'group' => esc_html__('Heading', 'total'), 'value' => array_flip(wpex_text_transforms()), 'dependency' => array('element' => 'heading', 'not_empty' => true)), array('type' => 'textfield', 'heading' => esc_html__('Font Size', 'total'), 'param_name' => 'heading_size', 'group' => esc_html__('Heading', 'total'), 'dependency' => array('element' => 'heading', 'not_empty' => true)), array('type' => 'textfield', 'heading' => esc_html__('Letter Spacing', 'total'), 'param_name' => 'heading_letter_spacing', 'group' => esc_html__('Heading', 'total'), 'dependency' => array('element' => 'heading', 'not_empty' => true)), array('type' => 'textfield', 'heading' => esc_html__('Margin', 'total'), 'param_name' => 'heading_margin', 'description' => esc_html__('Please use the following format: top right bottom left.', 'total'), 'group' => esc_html__('Heading', 'total'), 'dependency' => array('element' => 'heading', 'not_empty' => true)), array('type' => 'textarea_html', 'holder' => 'div', 'heading' => esc_html__('Content', 'total'), 'param_name' => 'content', 'value' => 'Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.', 'group' => esc_html__('Content', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Padding', 'total'), 'param_name' => 'content_padding', 'description' => esc_html__('Please use the following format: top right bottom left.', 'total'), 'group' => esc_html__('Content', 'total'), 'dependency' => array('element' => 'content', 'not_empty' => true)), array('type' => 'textfield', 'heading' => esc_html__('Font Size', 'total'), 'param_name' => 'content_font_size', 'group' => esc_html__('Content', 'total'), 'dependency' => array('element' => 'content', 'not_empty' => true)), array('type' => 'dropdown', 'heading' => esc_html__('Font Weight', 'total'), 'param_name' => 'content_font_weight', 'std' => '', 'value' => array_flip(wpex_font_weights()), 'group' => esc_html__('Content', 'total'), 'dependency' => array('element' => 'content', 'not_empty' => true)), array('type' => 'colorpicker', 'heading' => esc_html__('Background', 'total'), 'param_name' => 'content_background', 'group' => esc_html__('Content', 'total'), 'dependency' => array('element' => 'content', 'not_empty' => true)), array('type' => 'colorpicker', 'heading' => esc_html__('Color', 'total'), 'param_name' => 'content_color', 'group' => esc_html__('Content', 'total'), 'dependency' => array('element' => 'content', 'not_empty' => true)), array('type' => 'attach_image', 'heading' => esc_html__('Image', 'total'), 'param_name' => 'image', 'group' => esc_html__('Image', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Equal Heights?', 'total'), 'param_name' => 'equal_heights', 'value' => array(__('No', 'total') => 'false', __('Yes', 'total') => 'true'), 'description' => esc_html__('Keeps the image column the same height as your content.', 'total'), 'group' => esc_html__('Image', 'total')), array('type' => 'vc_link', 'heading' => esc_html__('Image URL', 'total'), 'param_name' => 'image_url', 'group' => esc_html__('Image', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Lightbox Type', 'total'), 'param_name' => 'image_lightbox', 'group' => esc_html__('Image', 'total'), 'value' => array(__('None', 'total') => '', __('Self', 'total') => 'image', __('URL', 'total') => 'url', __('Auto Detect - slow', 'total') => 'auto-detect', __('Video', 'total') => 'video_embed', __('HTML5', 'total') => 'html5', __('Quicktime', 'total') => 'quicktime')), 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 Width', 'total'), 'param_name' => 'img_width', 'description' => esc_html__('Enter a width in pixels.', 'total'), 'group' => esc_html__('Image', 'total'), 'dependency' => array('element' => 'img_size', 'value' => 'wpex_custom')), array('type' => 'textfield', 'heading' => esc_html__('Image 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' => 'textfield', 'heading' => esc_html__('Border Radius', 'total'), 'param_name' => 'img_border_radius', 'description' => esc_html__('Please enter a px value.', 'total'), 'group' => esc_html__('Image', 'total'), 'dependency' => array('element' => 'image', 'not_empty' => true)), 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'), 'dependency' => array('element' => 'image', 'not_empty' => 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' => 'image', 'not_empty' => true)), array('type' => 'textfield', 'heading' => esc_html__('Video link', 'total'), 'param_name' => 'video', 'description' => esc_html__('Enter a URL that is compatible with WP\'s built-in oEmbed feature. ', 'total'), 'group' => esc_html__('Video', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Content Width', 'total'), 'param_name' => 'content_width', 'value' => '50%', 'group' => esc_html__('Widths', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Image Width', 'total'), 'param_name' => 'media_width', 'value' => '50%', 'group' => esc_html__('Widths', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Tablet Widths', 'total'), 'param_name' => 'tablet_widths', 'group' => esc_html__('Widths', 'total'), 'value' => array(__('Inherit', 'total') => '', __('Full-Width', 'total') => 'fullwidth')), array('type' => 'dropdown', 'heading' => esc_html__('Phone Widths', 'total'), 'param_name' => 'phone_widths', 'group' => esc_html__('Widths', 'total'), 'value' => array(__('Inherit', 'total') => '', __('Full-Width', 'total') => 'fullwidth'))));
}
开发者ID:iq007,项目名称:MadScape,代码行数:9,代码来源:feature.php

示例14: vcex_testimonials_slider_vc_map

/**
 * Adds the shortcode to the Visual Composer
 *
 * @since 1.4.1
 */
function vcex_testimonials_slider_vc_map()
{
    vc_map(array('name' => __('Testimonials Slider', 'wpex'), 'description' => __('Recent testimonials slider', 'wpex'), 'base' => 'vcex_testimonials_slider', 'category' => WPEX_THEME_BRANDING, 'icon' => 'vcex-testimonials-slider vcex-icon fa fa-comments-o', 'params' => array(array('type' => 'textfield', 'heading' => __('Unique Id', 'wpex'), 'param_name' => 'unique_id'), array('type' => 'textfield', 'heading' => __('Custom Classes', 'wpex'), 'param_name' => 'classes'), array('type' => 'dropdown', 'heading' => __('Visibility', 'wpex'), 'param_name' => 'visibility', 'value' => array_flip(wpex_visibility())), array('type' => 'dropdown', 'heading' => __('Appear Animation', 'wpex'), 'param_name' => 'css_animation', 'value' => array_flip(wpex_css_animations())), array('type' => 'dropdown', 'heading' => __('Display Author Name?', 'wpex'), 'param_name' => 'display_author_name', 'value' => array(__('Yes', 'wpex') => 'yes', __('No', 'wpex') => 'no')), array('type' => 'dropdown', 'heading' => __('Display Author Company?', 'wpex'), 'param_name' => 'display_author_company', 'value' => array(__('No', 'wpex') => 'no', __('Yes', 'wpex') => 'true')), array('type' => 'dropdown', 'heading' => __('Animation', 'wpex'), 'param_name' => 'animation', 'std' => 'fade_slides', 'value' => array(__('Fade', 'wpex') => 'fade_slides', __('Slide', 'wpex') => 'slide'), 'group' => __('Slider Settings', 'wpex')), array('type' => 'dropdown', 'heading' => __('Loop', 'wpex'), 'param_name' => 'loop', 'value' => array(__('Yes', 'wpex') => 'true', __('No', 'wpex') => 'false'), 'group' => __('Slider Settings', 'wpex')), array('type' => 'textfield', 'heading' => __('Auto Height Animation', 'wpex'), 'std' => 400, 'param_name' => 'height_animation', 'group' => __('Slider Settings', 'wpex'), 'description' => __('You can enter "0.0" to disable the animation completely.', 'wpex')), array('type' => 'textfield', 'heading' => __('Animation Speed', 'wpex'), 'param_name' => 'animation_speed', 'std' => 600, 'description' => __('Enter a value in milliseconds.', 'wpex'), 'group' => __('Slider Settings', 'wpex')), array('type' => 'dropdown', 'heading' => __('Auto Play', 'wpex'), 'param_name' => 'slideshow', 'description' => __('Enable automatic slideshow? Disabled in front-end composer to prevent page "jumping".', 'wpex'), 'group' => __('Slider Settings', 'wpex'), 'value' => array(__('Yes', 'wpex') => 'true', __('No', 'wpex') => 'false')), array('type' => 'textfield', 'heading' => __('Auto Play Delay', 'wpex'), 'param_name' => 'slideshow_speed', 'std' => 5000, 'description' => __('Enter a value in milliseconds.', 'wpex'), 'group' => __('Slider Settings', 'wpex'), 'dependency' => array('element' => 'slideshow', 'value' => 'true')), array('type' => 'dropdown', 'heading' => __('Dot Navigation', 'wpex'), 'param_name' => 'control_nav', 'group' => __('Slider Settings', 'wpex'), 'value' => array(__('Yes', 'wpex') => 'true', __('No', 'wpex') => 'false')), array('type' => 'dropdown', 'heading' => __('Arrows', 'wpex'), 'param_name' => 'direction_nav', 'group' => __('Slider Settings', 'wpex'), 'value' => array(__('No', 'wpex') => 'false', __('Yes', 'wpex') => 'true')), array('type' => 'textfield', 'heading' => __('Posts Count', 'wpex'), 'param_name' => 'count', 'value' => 3, 'group' => __('Query', 'wpex')), array('type' => 'autocomplete', 'heading' => __('Include Categories', 'wpex'), 'param_name' => 'include_categories', 'param_holder_class' => 'vc_not-for-custom', 'admin_label' => true, 'settings' => array('multiple' => true, 'min_length' => 1, 'groups' => false, 'unique_values' => true, 'display_inline' => true, 'delay' => 0, 'auto_focus' => true), 'group' => __('Query', 'wpex')), array('type' => 'autocomplete', 'heading' => __('Exclude Categories', 'wpex'), 'param_name' => 'exclude_categories', 'param_holder_class' => 'vc_not-for-custom', 'admin_label' => true, 'settings' => array('multiple' => true, 'min_length' => 1, 'groups' => false, 'unique_values' => true, 'display_inline' => true, 'delay' => 0, 'auto_focus' => true), 'group' => __('Query', 'wpex')), array('type' => 'dropdown', 'heading' => __('Order', 'wpex'), 'param_name' => 'order', 'group' => __('Query', 'wpex'), 'value' => array(__('Default', 'wpex') => '', __('DESC', 'wpex') => 'DESC', __('ASC', 'wpex') => 'ASC')), array('type' => 'dropdown', 'heading' => __('Order By', 'wpex'), 'param_name' => 'orderby', 'value' => vcex_orderby_array(), 'group' => __('Query', 'wpex')), array('type' => 'textfield', 'heading' => __('Orderby: Meta Key', 'wpex'), 'param_name' => 'orderby_meta_key', 'group' => __('Query', 'wpex'), 'dependency' => array('element' => 'orderby', 'value' => array('meta_value_num', 'meta_value'))), array('type' => 'dropdown', 'heading' => __('Enable', 'wpex'), 'param_name' => 'display_author_avatar', 'group' => __('Image', 'wpex'), 'value' => array(__('Yes', 'wpex') => 'yes', __('No', 'wpex') => 'no')), array('type' => 'textfield', 'heading' => __('Border Radius', 'wpex'), 'param_name' => 'img_border_radius', 'group' => __('Image', 'wpex'), 'dependency' => array('element' => 'display_author_avatar', 'value' => 'yes')), array('type' => 'dropdown', 'heading' => __('Image Size', 'wpex'), 'param_name' => 'img_size', 'std' => 'wpex_custom', 'value' => vcex_image_sizes(), 'group' => __('Image', 'wpex'), 'dependency' => array('element' => 'display_author_avatar', 'value' => 'yes')), array('type' => 'dropdown', 'heading' => __('Image Crop Location', 'wpex'), 'param_name' => 'img_crop', 'std' => 'center-center', 'value' => array_flip(wpex_image_crop_locations()), 'group' => __('Image', 'wpex'), 'dependency' => array('element' => 'display_author_avatar', 'value' => 'yes')), array('type' => 'textfield', 'heading' => __('Image Crop Width', 'wpex'), 'param_name' => 'img_width', 'description' => __('Enter a width in pixels.', 'wpex'), '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' => __('Thumbnails', 'wpex'), 'param_name' => 'control_thumbs', 'group' => __('Thumbnails', 'wpex'), 'value' => array(__('No', 'wpex') => 'no', __('Yes', 'wpex') => 'true')), array('type' => 'textfield', 'heading' => __('Navigation Thumbnails Height', 'wpex'), 'param_name' => 'control_thumbs_height', 'std' => 50, 'group' => __('Thumbnails', 'wpex'), 'dependency' => array('element' => 'control_thumbs', 'value' => 'true')), array('type' => 'textfield', 'heading' => __('Navigation Thumbnails Width', 'wpex'), 'param_name' => 'control_thumbs_width', 'std' => 50, 'group' => __('Thumbnails', 'wpex'), 'dependency' => array('element' => 'control_thumbs', 'value' => 'true')), array('type' => 'dropdown', 'heading' => __('Excerpt', 'wpex'), 'param_name' => 'excerpt', 'group' => __('Excerpt', 'wpex'), 'value' => array(__('No', 'wpex') => 'no', __('Yes', 'wpex') => 'true')), array('type' => 'textfield', 'heading' => __('Excerpt Length', 'wpex'), 'param_name' => 'excerpt_length', 'value' => 20, 'description' => __('Enter a custom excerpt length. Will trim the excerpt by this number of words. Enter "-1" to display the_content instead of the auto excerpt.', 'wpex'), 'group' => __('Excerpt', 'wpex'), 'dependency' => array('element' => 'excerpt', 'value' => 'true')), array('type' => 'dropdown', 'heading' => __('Read More', 'wpex'), 'param_name' => 'read_more', 'group' => __('Excerpt', 'wpex'), 'value' => array(__('Yes', 'wpex') => 'true', __('No', 'wpex') => 'false'), 'dependency' => array('element' => 'excerpt', 'value' => 'true')), array('type' => 'textfield', 'heading' => __('Read More Text', 'wpex'), 'param_name' => 'read_more_text', 'group' => __('Excerpt', 'wpex'), 'value' => __('read more', 'wpex'), 'dependency' => array('element' => 'excerpt', 'value' => 'true')), array('type' => 'css_editor', 'heading' => __('CSS', 'wpex'), 'param_name' => 'css', 'group' => __('Design', 'wpex')), array('type' => 'dropdown', 'heading' => __('Skin', 'wpex'), 'param_name' => 'skin', 'group' => __('Design', 'wpex'), 'value' => array(__('Dark Text', 'wpex') => 'dark', __('Light Text', 'wpex') => 'light')), array('type' => 'textfield', 'heading' => __('Font Size', 'wpex'), 'param_name' => 'font_size', 'group' => __('Design', 'wpex')), array('type' => 'dropdown', 'heading' => __('Font Weight', 'wpex'), 'param_name' => 'font_weight', 'group' => __('Design', 'wpex'), 'description' => __('Note: Not all font families support every font weight.', 'wpex'), 'value' => array_flip(wpex_font_weights()), 'std' => ''))));
}
开发者ID:VanessaGarcia-Freelance,项目名称:TheEmporiumGroup,代码行数:9,代码来源:testimonials_slider.php

示例15: array

<?php

/**
 * Footer Customizer Options
 *
 * @package Total WordPress Theme
 * @subpackage Customizer
 * @version 3.3.0
 */
// Exit if accessed directly
if (!defined('ABSPATH')) {
    exit;
}
// General
$this->sections['wpex_callout'] = array('title' => esc_html__('General', 'total'), 'settings' => array(array('id' => 'callout', 'default' => '1', 'control' => array('label' => esc_html__('Enable', 'total'), 'type' => 'checkbox', 'desc' => esc_html__('If you disable this option we recommend you go to the Customizer Manager and disable the section as well so the next time you work with the Customizer it will load faster.', 'total'))), array('id' => 'callout_visibility', 'transport' => 'postMessage', 'control' => array('label' => esc_html__('Visibility', 'total'), 'type' => 'select', 'choices' => wpex_visibility(), 'active_callback' => 'wpex_cac_has_callout')), array('id' => 'callout_text', 'transport' => 'postMessage', '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.', 'control' => array('label' => esc_html__('Content', 'total'), 'type' => 'textarea', 'active_callback' => 'wpex_cac_has_callout', 'description' => esc_html__('If you enter the ID number of a page it will automatically display the content of such page.', 'total'))), array('id' => 'callout_button_heading', 'control' => array('type' => 'wpex-heading', 'label' => esc_html__('Button', 'total'), 'active_callback' => 'wpex_cac_has_callout')), array('id' => 'callout_link', 'default' => 'http://www.wpexplorer.com', 'control' => array('label' => esc_html__('Link URL', 'total'), 'type' => 'text', 'active_callback' => 'wpex_cac_has_callout')), array('id' => 'callout_link_txt', 'transport' => 'postMessage', 'default' => 'Get In Touch', 'control' => array('label' => esc_html__('Link Text', 'total'), 'type' => 'text', 'active_callback' => 'wpex_cac_callout_has_button')), array('id' => 'callout_button_target', 'transport' => 'postMessage', 'default' => 'blank', 'control' => array('label' => esc_html__('Link Target', 'total'), 'type' => 'select', 'active_callback' => 'wpex_cac_callout_has_button', 'choices' => array('blank' => esc_html__('Blank', 'total'), 'self' => esc_html__('Self', 'total')))), array('id' => 'callout_button_rel', 'transport' => 'postMessage', 'control' => array('label' => esc_html__('Link Rel', 'total'), 'type' => 'select', 'active_callback' => 'wpex_cac_callout_has_button', 'choices' => array('' => esc_html__('None', 'total'), 'nofollow' => esc_html__('Nofollow', 'total')))), array('id' => 'callout_styling_heading', 'control' => array('type' => 'wpex-heading', 'label' => esc_html__('Styling', 'total'), 'active_callback' => 'wpex_cac_has_callout')), array('id' => 'footer_callout_bg', 'transport' => 'postMessage', 'control' => array('type' => 'color', 'label' => esc_html__('Background', 'total'), 'active_callback' => 'wpex_cac_has_callout'), 'inline_css' => array('target' => '#footer-callout-wrap', 'alter' => 'background-color')), array('id' => 'footer_callout_border', 'transport' => 'postMessage', 'control' => array('type' => 'color', 'label' => esc_html__('Border Color', 'total'), 'active_callback' => 'wpex_cac_has_callout'), 'inline_css' => array('target' => '#footer-callout-wrap', 'alter' => 'border-color')), array('id' => 'footer_callout_color', 'transport' => 'postMessage', 'control' => array('type' => 'color', 'label' => esc_html__('Text Color', 'total'), 'active_callback' => 'wpex_cac_has_callout'), 'inline_css' => array('target' => '#footer-callout-wrap', 'alter' => 'color')), array('id' => 'footer_callout_link_color', 'transport' => 'postMessage', 'control' => array('type' => 'color', 'label' => esc_html__('Links', 'total'), 'active_callback' => 'wpex_cac_has_callout'), 'inline_css' => array('target' => '.footer-callout-content a', 'alter' => 'color')), array('id' => 'footer_callout_link_color_hover', 'transport' => 'postMessage', 'control' => array('type' => 'color', 'label' => esc_html__('Links: Hover', 'total'), 'active_callback' => 'wpex_cac_has_callout'), 'inline_css' => array('target' => '.footer-callout-content a:hover', 'alter' => 'color')), array('id' => 'callout_button_border_radius', 'transport' => 'postMessage', 'control' => array('type' => 'text', 'label' => esc_html__('Button Border Radius', 'total'), 'active_callback' => 'wpex_cac_callout_has_button', 'description' => esc_html__('Enter a value in pixels. Example: 20px.', 'total')), 'inline_css' => array('target' => '#footer-callout .theme-button', 'alter' => 'border-radius')), array('id' => 'footer_callout_button_bg', 'transport' => 'postMessage', 'control' => array('type' => 'color', 'label' => esc_html__('Button Background', 'total'), 'active_callback' => 'wpex_cac_callout_has_button'), 'inline_css' => array('target' => '#footer-callout .theme-button', 'alter' => 'background')), array('id' => 'footer_callout_button_color', 'transport' => 'postMessage', 'control' => array('type' => 'color', 'label' => esc_html__('Button Color', 'total'), 'active_callback' => 'wpex_cac_callout_has_button'), 'inline_css' => array('target' => '#footer-callout .theme-button', 'alter' => 'color')), array('id' => 'footer_callout_button_hover_bg', 'transport' => 'postMessage', 'control' => array('type' => 'color', 'label' => esc_html__('Button: Hover Background', 'total'), 'active_callback' => 'wpex_cac_callout_has_button'), 'inline_css' => array('target' => '#footer-callout .theme-button:hover', 'alter' => 'background')), array('id' => 'footer_callout_button_hover_color', 'transport' => 'postMessage', 'control' => array('type' => 'color', 'label' => esc_html__('Button: Hover Color', 'total'), 'active_callback' => 'wpex_cac_callout_has_button'), 'inline_css' => array('target' => '#footer-callout .theme-button:hover', 'alter' => 'color'))));
开发者ID:iq007,项目名称:MadScape,代码行数:15,代码来源:callout.php


注:本文中的wpex_visibility函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。