本文整理汇总了PHP中wpex_visibility函数的典型用法代码示例。如果您正苦于以下问题:PHP wpex_visibility函数的具体用法?PHP wpex_visibility怎么用?PHP wpex_visibility使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了wpex_visibility函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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 protected]', '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_pricing_shortcode_vc_map
/**
* Adds the shortcode to the Visual Composer
*
* @since Total 1.4.1
*/
function vcex_pricing_shortcode_vc_map()
{
vc_map(array('name' => __('Pricing Table', 'wpex'), 'description' => __('Insert a pricing column', 'wpex'), 'base' => 'vcex_pricing', 'category' => WPEX_THEME_BRANDING, 'icon' => 'vcex-pricing vcex-icon fa fa-usd', 'params' => array(array('type' => 'textfield', 'heading' => __('Unique Id', 'wpex'), 'param_name' => 'unique_id'), array('type' => 'textfield', 'heading' => __('Classes', 'wpex'), 'param_name' => 'el_class'), array('type' => 'dropdown', 'heading' => __('Visibility', 'wpex'), 'param_name' => 'visibility', 'value' => array_flip(wpex_visibility())), array('type' => 'dropdown', 'heading' => __('Appear Animation', 'wpex'), 'param_name' => 'css_animation', 'value' => array_flip(wpex_css_animations())), array('type' => 'dropdown', 'heading' => __('Hover Animation', 'wpex'), 'param_name' => 'hover_animation', 'value' => array_flip(wpex_hover_css_animations())), array('type' => 'dropdown', 'heading' => __('Featured', 'wpex'), 'param_name' => 'featured', 'value' => array(__('No', 'wpex') => 'no', __('Yes', 'wpex') => 'yes'), 'group' => __('Plan', 'wpex')), array('type' => 'textfield', 'heading' => __('Plan', 'wpex'), 'param_name' => 'plan', 'group' => __('Plan', 'wpex'), 'std' => __('Basic', 'wpex')), array('type' => 'colorpicker', 'heading' => __('Background', 'wpex'), 'param_name' => 'plan_background', 'group' => __('Plan', 'wpex'), 'dependency' => array('element' => 'plan', 'not_empty' => true)), array('type' => 'colorpicker', 'heading' => __('Color', 'wpex'), 'param_name' => 'plan_color', 'group' => __('Plan', 'wpex'), 'dependency' => array('element' => 'plan', 'not_empty' => true)), array('type' => 'dropdown', 'heading' => __('Font Weight', 'wpex'), 'param_name' => 'plan_weight', 'std' => '', 'value' => array_flip(wpex_font_weights()), 'group' => __('Plan', 'wpex'), 'dependency' => array('element' => 'plan', 'not_empty' => true)), array('type' => 'dropdown', 'heading' => __('Text Transform', 'wpex'), 'param_name' => 'plan_text_transform', 'std' => '', 'value' => array_flip(wpex_text_transforms()), 'group' => __('Plan', 'wpex'), 'dependency' => array('element' => 'plan', 'not_empty' => true)), array('type' => 'textfield', 'heading' => __('Font Size', 'wpex'), 'param_name' => 'plan_size', 'group' => __('Plan', 'wpex'), 'dependency' => array('element' => 'plan', 'not_empty' => true)), array('type' => 'textfield', 'heading' => __('Letter Spacing', 'wpex'), 'param_name' => 'plan_letter_spacing', 'group' => __('Plan', 'wpex'), 'dependency' => array('element' => 'plan', 'not_empty' => true), 'description' => __('Please enter a px value.', 'wpex')), array('type' => 'textfield', 'heading' => __('Padding', 'wpex'), 'param_name' => 'plan_padding', 'description' => __('Please use the following format: top right bottom left.', 'wpex'), 'group' => __('Plan', 'wpex'), 'dependency' => array('element' => 'plan', 'not_empty' => true)), array('type' => 'textfield', 'heading' => __('Margin', 'wpex'), 'param_name' => 'plan_margin', 'description' => __('Please use the following format: top right bottom left.', 'wpex'), 'group' => __('Plan', 'wpex'), 'dependency' => array('element' => 'plan', 'not_empty' => true)), array('type' => 'textfield', 'heading' => __('Border', 'wpex'), 'param_name' => 'plan_border', 'description' => __('Please use the shorthand format: width style color. Enter 0px or "none" to disable border.', 'wpex'), 'group' => __('Plan', 'wpex'), 'dependency' => array('element' => 'plan', 'not_empty' => true)), array('type' => 'textfield', 'heading' => __('Cost', 'wpex'), 'param_name' => 'cost', 'group' => __('Cost', 'wpex'), 'std' => '$20'), array('type' => 'colorpicker', 'heading' => __('Background', 'wpex'), 'param_name' => 'cost_background', 'group' => __('Cost', 'wpex'), 'dependency' => array('element' => 'cost', 'not_empty' => true)), array('type' => 'colorpicker', 'heading' => __('Color', 'wpex'), 'param_name' => 'cost_color', 'group' => __('Cost', 'wpex'), 'dependency' => array('element' => 'cost', 'not_empty' => true)), array('type' => 'dropdown', 'heading' => __('Font Weight', 'wpex'), 'param_name' => 'cost_weight', 'std' => '', 'value' => array_flip(wpex_font_weights()), 'group' => __('Cost', 'wpex'), 'dependency' => array('element' => 'cost', 'not_empty' => true)), array('type' => 'textfield', 'heading' => __('Font Size', 'wpex'), 'param_name' => 'cost_size', 'group' => __('Cost', 'wpex'), 'dependency' => array('element' => 'cost', 'not_empty' => true)), array('type' => 'textfield', 'heading' => __('Padding', 'wpex'), 'param_name' => 'cost_padding', 'description' => __('Please use the following format: top right bottom left.', 'wpex'), 'group' => __('Cost', 'wpex'), 'dependency' => array('element' => 'cost', 'not_empty' => true)), array('type' => 'textfield', 'heading' => __('Border', 'wpex'), 'param_name' => 'cost_border', 'description' => __('Please use the shorthand format: width style color. Enter 0px or "none" to disable border.', 'wpex'), 'group' => __('Cost', 'wpex'), 'dependency' => array('element' => 'cost', 'not_empty' => true)), array('type' => 'textfield', 'heading' => __('Per', 'wpex'), 'param_name' => 'per', 'group' => __('Per', 'wpex')), array('type' => 'dropdown', 'heading' => __('Display', 'wpex'), 'param_name' => 'per_display', 'value' => array(__('Default', 'wpex') => '', __('Inline', 'wpex') => 'inline', __('Block', 'wpex') => 'block', __('Inline-Block', 'wpex') => 'inline-block'), 'group' => __('Per', 'wpex'), 'dependency' => array('element' => 'per', 'not_empty' => true)), array('type' => 'colorpicker', 'heading' => __('Color', 'wpex'), 'param_name' => 'per_color', 'group' => __('Per', 'wpex'), 'dependency' => array('element' => 'per', 'not_empty' => true)), array('type' => 'dropdown', 'heading' => __('Font Weight', 'wpex'), 'param_name' => 'per_weight', 'std' => '', 'value' => array_flip(wpex_font_weights()), 'group' => __('Per', 'wpex'), 'dependency' => array('element' => 'per', 'not_empty' => true)), array('type' => 'dropdown', 'heading' => __('Text Transform', 'wpex'), 'param_name' => 'per_transform', 'group' => __('Per', 'wpex'), 'value' => array_flip(wpex_text_transforms()), 'dependency' => array('element' => 'per', 'not_empty' => true)), array('type' => 'textfield', 'heading' => __('Font Size', 'wpex'), 'param_name' => 'per_size', 'group' => __('Per', 'wpex'), 'dependency' => array('element' => 'per', 'not_empty' => true)), array('type' => 'textarea_html', 'heading' => __('Features', 'wpex'), 'param_name' => 'content', 'value' => '<ul>
<li>30GB Storage</li>
<li>512MB Ram</li>
<li>10 databases</li>
<li>1,000 Emails</li>
<li>25GB Bandwidth</li>
</ul>', 'description' => __('Enter your pricing content. You can use a UL list as shown by default but anything would really work!', 'wpex'), 'group' => __('Features', 'wpex')), array('type' => 'colorpicker', 'heading' => __('Color', 'wpex'), 'param_name' => 'font_color', 'group' => __('Features', 'wpex')), array('type' => 'colorpicker', 'heading' => __('Background', 'wpex'), 'param_name' => 'features_bg', 'group' => __('Features', 'wpex')), array('type' => 'textfield', 'heading' => __('Font Size', 'wpex'), 'param_name' => 'font_size', 'group' => __('Features', 'wpex')), array('type' => 'textfield', 'heading' => __('Padding', 'wpex'), 'param_name' => 'features_padding', 'description' => __('Please use the following format: top right bottom left.', 'wpex'), 'group' => __('Features', 'wpex')), array('type' => 'textfield', 'heading' => __('Border', 'wpex'), 'param_name' => 'features_border', 'description' => __('Please use the shorthand format: width style color. Enter 0px or "none" to disable border.', 'wpex'), 'group' => __('Features', 'wpex')), array('type' => 'textarea_raw_html', 'heading' => __('Custom Button HTML', 'wpex'), 'param_name' => 'custom_button', 'description' => __('Enter your custom button HTML, such as your paypal button code.', 'wpex'), 'group' => __('Button', 'wpex')), array('type' => 'vc_link', 'heading' => __('URL', 'wpex'), 'param_name' => 'button_url', 'group' => __('Button', 'wpex'), 'dependency' => array('element' => 'custom_button', 'is_empty' => true)), array('type' => 'dropdown', 'heading' => __('Local Scroll?', 'wpex'), 'param_name' => 'button_local_scroll', 'group' => __('Button', 'wpex'), 'value' => array(__('No', 'wpex') => 'false', __('Yes', 'wpex') => 'true'), 'dependency' => array('element' => 'custom_button', 'is_empty' => true)), array('type' => 'textfield', 'heading' => __('Text', 'wpex'), 'param_name' => 'button_text', 'value' => __('Text', 'wpex'), 'group' => __('Button', 'wpex'), 'dependency' => array('element' => 'custom_button', 'is_empty' => true)), array('type' => 'colorpicker', 'heading' => _x('Area Background', 'Pricing Button Area Setting', 'wpex'), 'param_name' => 'button_wrap_bg', 'group' => __('Button', 'wpex')), array('type' => 'textfield', 'heading' => _x('Area Padding', 'Pricing Button Area Setting', 'wpex'), 'param_name' => 'button_wrap_padding', 'description' => __('Please use the following format: top right bottom left.', 'wpex'), 'group' => __('Button', 'wpex')), array('type' => 'textfield', 'heading' => _x('Area Border', 'Pricing Button Area Setting', 'wpex'), 'param_name' => 'button_wrap_border', 'description' => __('Please use the shorthand format: width style color. Enter 0px or "none" to disable border.', 'wpex'), 'group' => __('Button', 'wpex')), array('type' => 'dropdown', 'heading' => __('Style', 'wpex'), 'param_name' => 'button_style', 'value' => array_flip(wpex_button_styles()), 'group' => __('Button', 'wpex'), 'dependency' => array('element' => 'custom_button', 'is_empty' => true)), array('type' => 'dropdown', 'heading' => __('Color', 'wpex'), 'param_name' => 'button_style_color', 'value' => array_flip(wpex_button_colors()), 'group' => __('Button', 'wpex'), 'dependency' => array('element' => 'custom_button', 'is_empty' => true)), array('type' => 'colorpicker', 'heading' => __('Background', 'wpex'), 'param_name' => 'button_bg_color', 'group' => __('Button', 'wpex'), 'dependency' => array('element' => 'custom_button', 'is_empty' => true)), array('type' => 'colorpicker', 'heading' => __('Background: Hover', 'wpex'), 'param_name' => 'button_hover_bg_color', 'group' => __('Button', 'wpex'), 'dependency' => array('element' => 'custom_button', 'is_empty' => true)), array('type' => 'colorpicker', 'heading' => __('Color', 'wpex'), 'param_name' => 'button_color', 'group' => __('Button', 'wpex'), 'dependency' => array('element' => 'custom_button', 'is_empty' => true)), array('type' => 'colorpicker', 'heading' => __('Color: Hover', 'wpex'), 'param_name' => 'button_hover_color', 'group' => __('Button', 'wpex'), 'dependency' => array('element' => 'custom_button', 'is_empty' => true)), array('type' => 'textfield', 'heading' => __('Font Size', 'wpex'), 'param_name' => 'button_size', 'group' => __('Button', 'wpex'), 'dependency' => array('element' => 'custom_button', 'is_empty' => true)), array('type' => 'textfield', 'heading' => __('Border Radius', 'wpex'), 'param_name' => 'button_border_radius', 'group' => __('Button', 'wpex'), 'dependency' => array('element' => 'custom_button', 'is_empty' => true)), array('type' => 'textfield', 'heading' => __('Letter Spacing', 'wpex'), 'param_name' => 'button_letter_spacing', 'group' => __('Button', 'wpex'), 'dependency' => array('element' => 'custom_button', 'is_empty' => true)), array('type' => 'textfield', 'heading' => __('Padding', 'wpex'), 'param_name' => 'button_padding', 'description' => __('Please use the following format: top right bottom left.', 'wpex'), 'group' => __('Button', 'wpex'), 'dependency' => array('element' => 'custom_button', 'is_empty' => true)), array('type' => 'dropdown', 'heading' => __('Font Weight', 'wpex'), 'param_name' => 'button_weight', 'std' => '', 'value' => array_flip(wpex_font_weights()), 'group' => __('Button', 'wpex'), 'dependency' => array('element' => 'custom_button', 'is_empty' => true)), array('type' => 'dropdown', 'heading' => __('Text Transform', 'wpex'), 'param_name' => 'button_transform', 'group' => __('Button', 'wpex'), 'value' => array_flip(wpex_text_transforms()), 'dependency' => array('element' => 'custom_button', 'is_empty' => 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' => __('Button Icons', 'wpex'), 'dependency' => array('element' => 'custom_button', 'is_empty' => true)), array('type' => 'iconpicker', 'heading' => __('Icon Left', 'wpex'), 'param_name' => 'button_icon_left', 'admin_label' => true, 'settings' => array('emptyIcon' => true, 'iconsPerPage' => 200), 'dependency' => array('element' => 'icon_type', 'value' => 'fontawesome'), 'group' => __('Button Icons', 'wpex')), array('type' => 'iconpicker', 'heading' => __('Icon Left', 'wpex'), 'param_name' => 'button_icon_left_openiconic', 'settings' => array('emptyIcon' => true, 'type' => 'openiconic', 'iconsPerPage' => 200), 'dependency' => array('element' => 'icon_type', 'value' => 'openiconic'), 'group' => __('Button Icons', 'wpex')), array('type' => 'iconpicker', 'heading' => __('Icon Left', 'wpex'), 'param_name' => 'button_icon_left_typicons', 'settings' => array('emptyIcon' => true, 'type' => 'typicons', 'iconsPerPage' => 200), 'dependency' => array('element' => 'icon_type', 'value' => 'typicons'), 'group' => __('Button Icons', 'wpex')), array('type' => 'iconpicker', 'heading' => __('Icon Left', 'wpex'), 'param_name' => 'button_icon_left_entypo', 'settings' => array('emptyIcon' => true, 'type' => 'entypo', 'iconsPerPage' => 300), 'dependency' => array('element' => 'icon_type', 'value' => 'entypo'), 'group' => __('Button Icons', 'wpex')), array('type' => 'iconpicker', 'heading' => __('Icon Left', 'wpex'), 'param_name' => 'button_icon_left_linecons', 'settings' => array('emptyIcon' => true, 'type' => 'linecons', 'iconsPerPage' => 200), 'dependency' => array('element' => 'icon_type', 'value' => 'linecons'), 'group' => __('Button Icons', 'wpex')), array('type' => 'iconpicker', 'heading' => __('Icon Left', 'wpex'), 'param_name' => 'button_icon_left_pixelicons', 'settings' => array('emptyIcon' => false, 'type' => 'pixelicons', 'source' => vcex_pixel_icons()), 'dependency' => array('element' => 'icon_type', 'value' => 'pixelicons'), 'group' => __('Button Icons', 'wpex')), array('type' => 'iconpicker', 'heading' => __('Icon Right', 'wpex'), 'param_name' => 'button_icon_right', 'admin_label' => true, 'settings' => array('emptyIcon' => true, 'iconsPerPage' => 200), 'dependency' => array('element' => 'icon_type', 'value' => 'fontawesome'), 'group' => __('Button Icons', 'wpex')), array('type' => 'iconpicker', 'heading' => __('Icon Right', 'wpex'), 'param_name' => 'button_icon_right_openiconic', 'settings' => array('emptyIcon' => true, 'type' => 'openiconic', 'iconsPerPage' => 200), 'dependency' => array('element' => 'icon_type', 'value' => 'openiconic'), 'group' => __('Button Icons', 'wpex')), array('type' => 'iconpicker', 'heading' => __('Icon Right', 'wpex'), 'param_name' => 'button_icon_right_typicons', 'settings' => array('emptyIcon' => true, 'type' => 'typicons', 'iconsPerPage' => 200), 'dependency' => array('element' => 'icon_type', 'value' => 'typicons'), 'group' => __('Button Icons', 'wpex')), array('type' => 'iconpicker', 'heading' => __('Icon Right', 'wpex'), 'param_name' => 'button_icon_right_entypo', 'settings' => array('emptyIcon' => true, 'type' => 'entypo', 'iconsPerPage' => 300), 'dependency' => array('element' => 'icon_type', 'value' => 'entypo'), 'group' => __('Button Icons', 'wpex')), array('type' => 'iconpicker', 'heading' => __('Icon Right', 'wpex'), 'param_name' => 'button_icon_right_linecons', 'settings' => array('emptyIcon' => true, 'type' => 'linecons', 'iconsPerPage' => 200), 'dependency' => array('element' => 'icon_type', 'value' => 'linecons'), 'group' => __('Button Icons', 'wpex')), array('type' => 'iconpicker', 'heading' => __('Icon Right', 'wpex'), 'param_name' => 'button_icon_right_pixelicons', 'settings' => array('emptyIcon' => false, 'type' => 'pixelicons', 'source' => vcex_pixel_icons()), 'dependency' => array('element' => 'icon_type', 'value' => 'pixelicons'), 'group' => __('Button Icons', 'wpex')))));
}
开发者ID:VanessaGarcia-Freelance,项目名称:TheEmporiumGroup,代码行数:15,代码来源:pricing.php
示例5: 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
示例6: 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
示例7: 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') . ' →</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
示例8: 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
/*-----------------------------------------------------------------------------------*
|
请发表评论