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


PHP wpex_get_theme_branding函数代码示例

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


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

示例1: __construct

 /**
  * Register widget with WordPress.
  */
 public function __construct()
 {
     $branding = wpex_get_theme_branding();
     $branding = $branding ? $branding . ' - ' : '';
     parent::__construct('wpex_recent_posts_thumb_grid', $branding . esc_html__('Posts Thumbnail Grid', 'total'));
     $this->defaults = array('title' => esc_html__('Recent Posts', 'total'), 'number' => '6', 'post_type' => 'post', 'taxonomy' => '', 'terms' => '', 'order' => 'DESC', 'orderby' => 'date', 'columns' => '3', 'img_size' => 'wpex_custom', 'img_hover' => 'opacity', 'img_width' => '', 'img_height' => '');
 }
开发者ID:iq007,项目名称:MadScape,代码行数:10,代码来源:posts-grid.php

示例2: 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

示例3: __construct

 /**
  * Register widget with WordPress.
  *
  * @since 3.2.0
  */
 public function __construct()
 {
     $branding = wpex_get_theme_branding();
     $branding = $branding ? $branding . ' - ' : '';
     parent::__construct('wpex_about', $branding . esc_html__('About', 'total'));
     add_action('load-widgets.php', array($this, 'scripts'), 100);
 }
开发者ID:iq007,项目名称:MadScape,代码行数:12,代码来源:about.php

示例4: 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();
    }
    return array('name' => esc_html__('Post Types Archive', 'total'), 'description' => esc_html__('Custom post type archive', 'total'), 'base' => 'vcex_post_type_archive', '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'), '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' => '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' => 'dropdown', 'heading' => esc_html__('Pagination', 'total'), 'param_name' => 'pagination', 'value' => array(__('False', 'total') => '', __('True', 'total') => 'true'), 'description' => esc_html__('Important: Pagination will not work on your homepage due to how WordPress Queries function.', 'total'), 'group' => esc_html__('Query', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Post Type', 'total'), 'param_name' => 'post_type', 'value' => $post_types, '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') => '', __('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') => '', __('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') => '', __('Yes', 'total') => 'true'), 'group' => esc_html__('Query', 'total'))));
}
开发者ID:iq007,项目名称:MadScape,代码行数:13,代码来源:post_type_archive.php

示例5: __construct

 /**
  * Register widget with WordPress.
  *
  * @since 1.0.0
  */
 public function __construct()
 {
     // Declare social services array
     $this->social_services_array = apply_filters('wpex_social_widget_profiles', array('twitter' => array('name' => 'Twitter', 'url' => ''), 'facebook' => array('name' => 'Facebook', 'url' => ''), 'instagram' => array('name' => 'Instagram', 'url' => ''), 'google-plus' => array('name' => 'GooglePlus', 'url' => ''), 'linkedin' => array('name' => 'LinkedIn', 'url' => ''), 'pinterest' => array('name' => 'Pinterest', 'url' => ''), 'yelp' => array('name' => 'Yelp', 'url' => ''), 'dribbble' => array('name' => 'Dribbble', 'url' => ''), 'flickr' => array('name' => 'Flickr', 'url' => ''), 'vk' => array('name' => 'VK', 'url' => ''), 'github' => array('name' => 'GitHub', 'url' => ''), 'tumblr' => array('name' => 'Tumblr', 'url' => ''), 'skype' => array('name' => 'Skype', 'url' => ''), 'trello' => array('name' => 'Trello', 'url' => ''), 'foursquare' => array('name' => 'Foursquare', 'url' => ''), 'renren' => array('name' => 'RenRen', 'url' => ''), 'xing' => array('name' => 'Xing', 'url' => ''), 'vimeo-square' => array('name' => 'Vimeo', 'url' => ''), 'vine' => array('name' => 'Vine', 'url' => ''), 'youtube' => array('name' => 'Youtube', 'url' => ''), 'rss' => array('name' => 'RSS', 'url' => '')));
     // Start up widget
     $branding = wpex_get_theme_branding();
     $branding = $branding ? $branding . ' - ' : '';
     parent::__construct('wpex_fontawesome_social_widget', $branding . esc_attr__('Font Awesome Social Widget', 'total'));
 }
开发者ID:iq007,项目名称:MadScape,代码行数:14,代码来源:social-fontawesome.php

示例6: 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(esc_html__('None', 'total') => '');
    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
    return array('name' => esc_html__('Navigation Bar', 'total'), 'description' => esc_html__('Custom menu navigation bar', 'total'), 'base' => 'vcex_navbar', 'icon' => 'vcex-navbar vcex-icon fa fa-navicon', 'category' => wpex_get_theme_branding(), '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', 'admin_label' => true, 'heading' => esc_html__('Menu', 'total'), 'param_name' => 'menu', 'std' => '', 'value' => $menus_array, 'save_always' => true), array('type' => 'dropdown', 'heading' => esc_html__('Alignment', 'total'), 'param_name' => 'align', 'value' => array_flip(wpex_alignments())), 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()), 'std' => ''), array('type' => 'dropdown', 'heading' => esc_html__('Local Scroll menu', 'total'), 'param_name' => 'local_scroll', 'value' => array(__('No', 'total') => 'false', __('Yes', 'total') => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Button Style', 'total'), 'param_name' => 'button_style', 'value' => array_flip(wpex_button_styles()), 'group' => esc_html__('Design', 'total'), 'std' => 'minimal-border'), array('type' => 'dropdown', 'heading' => esc_html__('Button Color', 'total'), 'param_name' => 'button_color', 'std' => '', 'value' => array_flip(wpex_button_colors()), 'group' => esc_html__('Design', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Layout', 'total'), 'param_name' => 'button_layout', 'value' => array(__('Default', 'total') => '', __('Expanded', 'total') => 'expanded'), 'group' => esc_html__('Design', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Font Size', 'total'), 'param_name' => 'font_size', 'group' => esc_html__('Design', 'total')), array('type' => 'colorpicker', 'heading' => esc_html__('Hover: Background', 'total'), 'param_name' => 'hover_bg', 'group' => esc_html__('Design', 'total')), array('type' => 'colorpicker', 'heading' => esc_html__('Hover: Color', 'total'), 'param_name' => 'hover_color', 'group' => esc_html__('Design', 'total')), array('type' => 'css_editor', 'heading' => esc_html__('CSS', 'total'), 'param_name' => 'css', 'group' => esc_html__('CSS', 'total')), array('type' => 'hidden', 'param_name' => 'style'), array('type' => 'hidden', 'param_name' => 'border_radius'), array('type' => 'hidden', 'param_name' => 'link_color')));
}
开发者ID:iq007,项目名称:MadScape,代码行数:18,代码来源:navbar.php

示例7: settings

 /**
  * Adds custom styles to the formats dropdown by altering the $settings
  *
  * @since 2.1.0
  */
 public function settings($settings)
 {
     // General
     $items = apply_filters('wpex_tiny_mce_formats_items', array(array('title' => esc_html__('Theme Button', 'total'), 'selector' => 'a', 'classes' => 'theme-button'), array('title' => esc_html__('Highlight', 'total'), 'inline' => 'span', 'classes' => 'text-highlight'), array('title' => esc_html__('Thin Font', 'total'), 'inline' => 'span', 'classes' => 'thin-font'), array('title' => esc_html__('White Text', 'total'), 'inline' => 'span', 'classes' => 'white-text'), array('title' => esc_html__('Check List', 'total'), 'selector' => 'ul', 'classes' => 'check-list')));
     // Dropcaps
     $dropcaps = apply_filters('wpex_tiny_mce_formats_dropcaps', array(array('title' => esc_html__('Dropcap', 'total'), 'inline' => 'span', 'classes' => 'dropcap'), array('title' => esc_html__('Boxed Dropcap', 'total'), 'inline' => 'span', 'classes' => 'dropcap boxed')));
     // Color buttons
     $color_buttons = apply_filters('wpex_tiny_mce_formats_color_buttons', array(array('title' => esc_html__('Blue', 'total'), 'selector' => 'a', 'classes' => 'color-button blue'), array('title' => esc_html__('Black', 'total'), 'selector' => 'a', 'classes' => 'color-button black'), array('title' => esc_html__('Red', 'total'), 'selector' => 'a', 'classes' => 'color-button red'), array('title' => esc_html__('Orange', 'total'), 'selector' => 'a', 'classes' => 'color-button orange'), array('title' => esc_html__('Green', 'total'), 'selector' => 'a', 'classes' => 'color-button green'), array('title' => esc_html__('Gold', 'total'), 'selector' => 'a', 'classes' => 'color-button gold'), array('title' => esc_html__('Teal', 'total'), 'selector' => 'a', 'classes' => 'color-button teal'), array('title' => esc_html__('Purple', 'total'), 'selector' => 'a', 'classes' => 'color-button purple'), array('title' => esc_html__('Pink', 'total'), 'selector' => 'a', 'classes' => 'color-button pink'), array('title' => esc_html__('Brown', 'total'), 'selector' => 'a', 'classes' => 'color-button brown'), array('title' => esc_html__('Rosy', 'total'), 'selector' => 'a', 'classes' => 'color-button rosy'), array('title' => esc_html__('White', 'total'), 'selector' => 'a', 'classes' => 'color-button white')));
     // Create array of formats
     $branding = wpex_get_theme_branding();
     $branding = $branding ? $branding . ' ' : '';
     $new_formats = array(array('title' => $branding . ' ' . esc_html__('Styles', 'total'), 'items' => $items), array('title' => esc_html__('Dropcaps', 'total'), 'items' => $dropcaps), array('title' => esc_html__('Color Buttons', 'total'), 'items' => $color_buttons));
     // Merge Formats
     $settings['style_formats_merge'] = true;
     // Add new formats
     $settings['style_formats'] = json_encode($new_formats);
     // Return New Settings
     return $settings;
 }
开发者ID:iq007,项目名称:MadScape,代码行数:24,代码来源:editor-formats.php

示例8: __construct

 /**
  * Register widget with WordPress.
  *
  * @since 1.0.0
  */
 public function __construct()
 {
     $branding = wpex_get_theme_branding();
     $branding = $branding ? $branding . ' - ' : '';
     parent::__construct('wpex_recent_comments_avatars_widget', $branding . esc_html__('Comments With Avatars', 'total'));
 }
开发者ID:iq007,项目名称:MadScape,代码行数:11,代码来源:comments-avatar.php

示例9: 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

示例10: __construct

 /**
  * Register widget with WordPress.
  *
  * @since 1.0.0
  */
 public function __construct()
 {
     $branding = wpex_get_theme_branding();
     $branding = $branding ? $branding . ' - ' : '';
     parent::__construct('wpex_simple_menu', $branding . esc_html__('Simple Menu', 'total'), array('description' => esc_html__('Displays a custom menu without any toggles or styling.', 'total')));
 }
开发者ID:iq007,项目名称:MadScape,代码行数:11,代码来源:simple-menu.php

示例11: vcex_staff_social_vc_map

/**
 * Visual Composer Staff Social
 *
 * @package Total WordPress Theme
 * @subpackage VC Functions
 * @version 3.3.0
 */
function vcex_staff_social_vc_map()
{
    return array('name' => esc_html__('Staff Social Links', 'total'), 'description' => esc_html__('Single staff social links', 'total'), 'base' => 'staff_social', 'category' => wpex_get_theme_branding(), 'icon' => 'vcex-staff-social vcex-icon fa fa-share-alt', 'params' => array(array('type' => 'autocomplete', 'heading' => esc_html__('Staff Member ID', 'total'), 'param_name' => 'post_id', 'param_holder_class' => 'vc_not-for-custom', 'description' => esc_html__('Select a staff member to display their social links. By default it will diplay the current staff member links.', 'total'), 'settings' => array('multiple' => false, 'min_length' => 1, 'groups' => false, 'unique_values' => true, 'display_inline' => true, 'delay' => 0, 'auto_focus' => true)), array('type' => 'dropdown', 'heading' => esc_html__('Style', 'total'), 'param_name' => 'style', 'value' => array_flip(wpex_social_button_styles())), array('type' => 'dropdown', 'heading' => esc_html__('Link Target', 'total'), 'param_name' => 'link_target', 'value' => array(__('Blank', 'total') => 'blank', __('Self', 'total') => 'self')), array('type' => 'textfield', 'heading' => esc_html__('Font Size', 'total'), 'param_name' => 'font_size'), array('type' => 'css_editor', 'heading' => esc_html__('CSS', 'total'), 'param_name' => 'css', 'group' => esc_html__('CSS', 'total'))));
}
开发者ID:iq007,项目名称:MadScape,代码行数:11,代码来源:staff_social.php

示例12: vcex_divider_shortcode_vc_map

/**
 * Adds the shortcode to the Visual Composer
 *
 * @since 1.4.1
 */
function vcex_divider_shortcode_vc_map()
{
    return array('name' => esc_html__('Divider', 'total'), 'description' => esc_html__('Line Separator', 'total'), 'base' => 'vcex_divider', 'icon' => 'vcex-divider vcex-icon fa fa-ellipsis-h', 'category' => wpex_get_theme_branding(), 'params' => array(array('type' => 'textfield', 'heading' => esc_html__('Classes', 'total'), 'param_name' => 'el_class'), array('type' => 'dropdown', 'heading' => esc_html__('Appear Animation', 'total'), 'param_name' => 'css_animation', 'value' => array(__('No', 'total') => '', __('Top to bottom', 'total') => 'top-to-bottom', __('Bottom to top', 'total') => 'bottom-to-top', __('Left to right', 'total') => 'left-to-right', __('Right to left', 'total') => 'right-to-left', __('Appear from center', 'total') => 'appear')), array('type' => 'dropdown', 'heading' => esc_html__('Visibility', 'total'), 'param_name' => 'visibility', 'value' => array_flip(wpex_visibility())), array('type' => 'dropdown', 'admin_label' => true, 'heading' => esc_html__('Style', 'total'), 'param_name' => 'style', 'value' => array(__('Solid', 'total') => 'solid', __('Dashed', 'total') => 'dashed', __('Double', 'total') => 'double', __('Dotted Line', 'total') => 'dotted-line', __('Dotted', 'total') => 'dotted')), array('type' => 'textfield', 'heading' => esc_html__('Width', 'total'), 'param_name' => 'width', 'description' => esc_html__('Enter a pixel or percentage value.', 'total'), 'group' => esc_html__('Design', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Align', 'total'), 'param_name' => 'align', 'group' => esc_html__('Design', 'total'), 'value' => array(__('Center', 'total') => 'center', __('Right', 'total') => 'right', __('Left', 'total') => 'left'), 'dependency' => array('element' => 'width', 'not_empty' => true)), array('type' => 'textfield', 'heading' => esc_html__('Height', 'total'), 'param_name' => 'height', 'dependency' => array('element' => 'style', 'value' => array('solid', 'dashed', 'double', 'dotted-line')), 'group' => esc_html__('Design', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Height', 'total'), 'param_name' => 'dotted_height', 'dependency' => array('element' => 'style', 'value' => 'dotted'), 'group' => esc_html__('Design', 'total')), array('type' => 'colorpicker', 'heading' => esc_html__('Color', 'total'), 'param_name' => 'color', 'value' => '', 'dependency' => array('element' => 'style', 'value' => array('solid', 'dashed', 'double', 'dotted-line')), 'group' => esc_html__('Design', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Margin Top', 'total'), 'param_name' => 'margin_top', 'description' => esc_html__('Please enter a px value.', 'total'), 'group' => esc_html__('Design', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Margin Bottom', 'total'), 'description' => esc_html__('Please enter a px value.', 'total'), 'param_name' => 'margin_bottom', 'group' => esc_html__('Design', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Icon library', 'total'), 'param_name' => 'icon_type', 'description' => esc_html__('Select icon library.', 'total'), 'value' => array(__('Font Awesome', 'total') => 'fontawesome', __('Open Iconic', 'total') => 'openiconic', __('Typicons', 'total') => 'typicons', __('Entypo', 'total') => 'entypo', __('Linecons', 'total') => 'linecons', __('Pixel', 'total') => 'pixelicons'), 'group' => esc_html__('Icon', 'total')), array('type' => 'iconpicker', 'heading' => esc_html__('Icon', 'total'), 'param_name' => 'icon', 'std' => '', 'settings' => array('emptyIcon' => true, 'type' => 'fontawesome', 'iconsPerPage' => 200), 'dependency' => array('element' => 'icon_type', 'value' => 'fontawesome'), 'group' => esc_html__('Icon', 'total')), array('type' => 'iconpicker', 'heading' => esc_html__('Icon', 'total'), 'param_name' => 'icon_openiconic', 'settings' => array('emptyIcon' => true, 'type' => 'openiconic', 'iconsPerPage' => 200), 'dependency' => array('element' => 'icon_type', 'value' => 'openiconic'), 'group' => esc_html__('Icon', 'total')), array('type' => 'iconpicker', 'heading' => esc_html__('Icon', 'total'), 'param_name' => 'icon_typicons', 'settings' => array('emptyIcon' => true, 'type' => 'typicons', 'iconsPerPage' => 200), 'dependency' => array('element' => 'icon_type', 'value' => 'typicons'), 'group' => esc_html__('Icon', 'total')), array('type' => 'iconpicker', 'heading' => esc_html__('Icon', 'total'), 'param_name' => 'icon_entypo', 'settings' => array('emptyIcon' => true, 'type' => 'entypo', 'iconsPerPage' => 300), 'dependency' => array('element' => 'icon_type', 'value' => 'entypo'), 'group' => esc_html__('Icon', 'total')), array('type' => 'iconpicker', 'heading' => esc_html__('Icon', 'total'), 'param_name' => 'icon_linecons', 'settings' => array('emptyIcon' => true, 'type' => 'linecons', 'iconsPerPage' => 200), 'dependency' => array('element' => 'icon_type', 'value' => 'linecons'), 'group' => esc_html__('Icon', 'total')), array('type' => 'iconpicker', 'heading' => esc_html__('Icon', 'total'), 'param_name' => 'icon_pixelicons', 'settings' => array('emptyIcon' => true, 'type' => 'pixelicons', 'source' => vcex_pixel_icons()), 'dependency' => array('element' => 'icon_type', 'value' => 'pixelicons'), 'group' => esc_html__('Icon', 'total')), array('type' => 'colorpicker', 'heading' => esc_html__('Icon Color', 'total'), 'param_name' => 'icon_color', 'group' => esc_html__('Icon', 'total')), array('type' => 'colorpicker', 'heading' => esc_html__('Icon Background', 'total'), 'param_name' => 'icon_bg', 'group' => esc_html__('Icon', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Icon Size', 'total'), 'param_name' => 'icon_size', 'description' => esc_html__('You can use em or px values, but you must define them.', 'total'), 'group' => esc_html__('Icon', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Icon Height', 'total'), 'param_name' => 'icon_height', 'group' => esc_html__('Icon', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Icon Width', 'total'), 'param_name' => 'icon_width', 'group' => esc_html__('Icon', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Icon Border Radius', 'total'), 'param_name' => 'icon_border_radius', 'group' => esc_html__('Icon', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Icon Padding', 'total'), 'param_name' => 'icon_padding', 'description' => esc_html__('Please use the following format: top right bottom left.', 'total'), 'group' => esc_html__('Icon', 'total'))));
}
开发者ID:iq007,项目名称:MadScape,代码行数:9,代码来源:divider.php

示例13: vcex_portfolio_carousel_vc_map

/**
 * Adds the shortcode to the Visual Composer
 *
 * @since 1.4.1
 */
function vcex_portfolio_carousel_vc_map()
{
    return array('name' => esc_html__('Portfolio Carousel', 'total'), 'description' => esc_html__('Recent portfolio posts carousel', 'total'), 'base' => 'vcex_portfolio_carousel', 'category' => wpex_get_theme_branding(), 'icon' => 'vcex-portfolio-carousel vcex-icon fa fa-folder-open', 'params' => array(array('type' => 'textfield', 'heading' => esc_html__('Unique Id', 'total'), 'param_name' => 'unique_id'), array('type' => 'textfield', 'heading' => esc_html__('Custom Classes', 'total'), 'param_name' => 'classes'), array('type' => 'dropdown', 'heading' => esc_html__('Visibility', 'total'), 'param_name' => 'visibility', 'value' => array_flip(wpex_visibility())), array('type' => 'dropdown', 'heading' => esc_html__('Appear Animation', 'total'), 'param_name' => 'css_animation', 'value' => array_flip(wpex_css_animations())), array('type' => 'dropdown', 'heading' => esc_html__('Arrows?', 'total'), 'param_name' => 'arrows', 'value' => array(__('Yes', 'total') => 'true', __('No', 'total') => 'false')), array('type' => 'dropdown', 'heading' => esc_html__('Dots?', 'total'), 'param_name' => 'dots', 'value' => array(__('No', 'total') => 'false', __('Yes', 'total') => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Items To Display', 'total'), 'param_name' => 'items', 'value' => '4'), array('type' => 'textfield', 'heading' => esc_html__('Items To Scrollby', 'total'), 'param_name' => 'items_scroll', 'value' => '1'), array('type' => 'textfield', 'heading' => esc_html__('Margin Between Items', 'total'), 'param_name' => 'items_margin', 'value' => '15'), array('type' => 'dropdown', 'heading' => esc_html__('Auto Play', 'total'), 'param_name' => 'auto_play', 'value' => array(__('Yes', 'total') => 'true', __('No', 'total') => 'false')), array('type' => 'textfield', 'heading' => esc_html__('Timeout Duration in milliseconds', 'total'), 'param_name' => 'timeout_duration', 'value' => '5000', 'dependency' => array('element' => 'auto_play', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Infinite Loop', 'total'), 'param_name' => 'infinite_loop', 'value' => array(__('Yes', 'total') => 'true', __('No', 'total') => 'false')), array('type' => 'dropdown', 'heading' => esc_html__('Center Item', 'total'), 'param_name' => 'center', 'value' => array(__('No', 'total') => 'false', __('Yes', 'total') => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Animation Speed', 'total'), 'param_name' => 'animation_speed', 'value' => '150', 'description' => esc_html__('Default is 150 milliseconds. Enter 0.0 to disable.', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Post Count', 'total'), 'param_name' => 'count', 'value' => '8', 'group' => esc_html__('Query', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Offset', 'total'), 'param_name' => 'offset', 'group' => esc_html__('Query', 'total'), 'description' => esc_html__('Number of post to displace or pass over. Warning: Setting the offset parameter overrides/ignores the paged parameter and breaks pagination. The offset parameter is ignored when posts per page is set to -1.', 'total')), array('type' => 'autocomplete', 'heading' => esc_html__('Include Categories', 'total'), 'param_name' => 'include_categories', 'param_holder_class' => 'vc_not-for-custom', 'admin_label' => true, 'settings' => array('multiple' => true, 'min_length' => 1, 'groups' => true, 'unique_values' => true, 'display_inline' => true, 'delay' => 0, 'auto_focus' => true), 'group' => esc_html__('Query', 'total')), array('type' => 'autocomplete', 'heading' => esc_html__('Exclude Categories', 'total'), 'param_name' => 'exclude_categories', 'param_holder_class' => 'vc_not-for-custom', 'admin_label' => true, 'settings' => array('multiple' => true, 'min_length' => 1, 'groups' => true, 'unique_values' => true, 'display_inline' => true, 'delay' => 0, 'auto_focus' => true), 'group' => esc_html__('Query', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Order', 'total'), 'param_name' => 'order', 'group' => esc_html__('Query', 'total'), 'value' => array(__('Default', 'total') => '', __('DESC', 'total') => 'DESC', __('ASC', 'total') => 'ASC')), array('type' => 'dropdown', 'heading' => esc_html__('Order By', 'total'), 'param_name' => 'orderby', 'value' => vcex_orderby_array(), 'group' => esc_html__('Query', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Orderby: Meta Key', 'total'), 'param_name' => 'orderby_meta_key', 'group' => esc_html__('Query', 'total'), 'dependency' => array('element' => 'orderby', 'value' => array('meta_value_num', 'meta_value'))), array('type' => 'dropdown', 'heading' => esc_html__('Enable', 'total'), 'param_name' => 'media', 'value' => array(__('Yes', 'total') => 'true', __('No', 'total') => 'false'), 'group' => esc_html__('Image', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Image Links To', 'total'), 'param_name' => 'thumbnail_link', 'value' => array(__('Default', 'total') => '', __('Post', 'total') => 'post', __('Lightbox', 'total') => 'lightbox', __('None', 'total') => 'none'), 'group' => esc_html__('Image', 'total'), 'dependency' => array('element' => 'media', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Image Size', 'total'), 'param_name' => 'img_size', 'std' => 'wpex_custom', 'value' => vcex_image_sizes(), 'group' => esc_html__('Image', 'total'), 'dependency' => array('element' => 'media', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Image Crop Location', 'total'), 'param_name' => 'img_crop', 'std' => 'center-center', 'value' => array_flip(wpex_image_crop_locations()), 'dependency' => array('element' => 'img_size', 'value' => 'wpex_custom'), 'group' => esc_html__('Image', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Image Crop Width', 'total'), 'param_name' => 'img_width', 'dependency' => array('element' => 'img_size', 'value' => 'wpex_custom'), 'group' => esc_html__('Image', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Image Crop Height', 'total'), 'param_name' => 'img_height', 'dependency' => array('element' => 'img_size', 'value' => 'wpex_custom'), 'description' => esc_html__('Enter a height in pixels. Leave empty to disable vertical cropping and keep image proportions.', 'total'), 'group' => esc_html__('Image', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Overlay Style', 'total'), 'param_name' => 'overlay_style', 'value' => array_flip(wpex_overlay_styles_array()), 'group' => esc_html__('Image', 'total'), 'dependency' => array('element' => 'media', 'value' => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Overlay Button Text', 'total'), 'param_name' => 'overlay_button_text', 'group' => esc_html__('Image', 'total'), 'dependency' => array('element' => 'overlay_style', 'value' => 'hover-button')), array('type' => 'textfield', 'heading' => esc_html__('Overlay Excerpt Length', 'total'), 'param_name' => 'overlay_excerpt_length', 'value' => '15', 'group' => esc_html__('Image', 'total'), 'dependency' => array('element' => 'overlay_style', 'value' => 'title-excerpt-hover')), array('type' => 'dropdown', 'heading' => esc_html__('CSS3 Image Link Hover', 'total'), 'param_name' => 'img_hover_style', 'value' => array_flip(wpex_image_hovers()), 'group' => esc_html__('Image', 'total'), 'dependency' => array('element' => 'media', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Enable', 'total'), 'param_name' => 'title', 'value' => array(__('Yes', 'total') => 'true', __('No', 'total') => 'false'), 'group' => esc_html__('Title', 'total')), array('type' => 'colorpicker', 'heading' => esc_html__('Color', 'total'), 'param_name' => 'content_heading_color', 'group' => esc_html__('Title', 'total'), 'dependency' => array('element' => 'title', 'value' => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Font Size', 'total'), 'param_name' => 'content_heading_size', 'group' => esc_html__('Title', 'total'), 'dependency' => array('element' => 'title', 'value' => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Margin', 'total'), 'param_name' => 'content_heading_margin', 'description' => esc_html__('Please use the following format: top right bottom left.', 'total'), 'group' => esc_html__('Title', 'total'), 'dependency' => array('element' => 'title', 'value' => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Line Height', 'total'), 'param_name' => 'content_heading_line_height', 'group' => esc_html__('Title', 'total'), 'dependency' => array('element' => 'title', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Font Weight', 'total'), 'param_name' => 'content_heading_weight', 'std' => '', 'value' => array_flip(wpex_font_weights()), 'group' => esc_html__('Title', 'total'), 'dependency' => array('element' => 'title', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Text Transform', 'total'), 'param_name' => 'content_heading_transform', 'value' => array_flip(wpex_text_transforms()), 'group' => esc_html__('Title', 'total'), 'dependency' => array('element' => 'title', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Enable', 'total'), 'param_name' => 'excerpt', 'value' => array(__('Yes', 'total') => 'true', __('No', 'total') => 'false'), 'group' => esc_html__('Excerpt', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Length', 'total'), 'param_name' => 'excerpt_length', 'value' => '30', 'description' => esc_html__('Enter how many words to display for the excerpt. To display the full post content enter "9999".', 'total'), 'group' => esc_html__('Excerpt', 'total'), 'dependency' => array('element' => 'excerpt', 'value' => 'true')), array('type' => 'textfield', 'heading' => esc_html__('Font Size', 'total'), 'param_name' => 'content_font_size', 'group' => esc_html__('Excerpt', 'total'), 'dependency' => array('element' => 'excerpt', 'value' => 'true')), array('type' => 'colorpicker', 'heading' => esc_html__('Color', 'total'), 'param_name' => 'content_color', 'group' => esc_html__('Excerpt', 'total'), 'dependency' => array('element' => 'excerpt', 'value' => 'true')), array('type' => 'dropdown', 'heading' => esc_html__('Style', 'total'), 'param_name' => 'style', 'value' => array(__('Default', 'total') => 'default', __('No Margins', 'total') => 'no-margins'), 'group' => esc_html__('Design', 'total')), array('type' => 'colorpicker', 'heading' => esc_html__('Content Background', 'total'), 'param_name' => 'content_background', 'group' => esc_html__('Design', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Content Alignment', 'total'), 'param_name' => 'content_alignment', 'value' => array_flip(wpex_alignments()), 'group' => esc_html__('Design', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Content Margin', 'total'), 'param_name' => 'content_margin', 'description' => esc_html__('Please use the following format: top right bottom left.', 'total'), 'group' => esc_html__('Design', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Content Padding', 'total'), 'param_name' => 'content_padding', 'description' => esc_html__('Please use the following format: top right bottom left.', 'total'), 'group' => esc_html__('Design', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Content Opacity', 'total'), 'param_name' => 'content_opacity', 'description' => esc_html__('Enter a value between "0" and "1".', 'total'), 'group' => esc_html__('Design', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Content Border', 'total'), 'param_name' => 'content_border', 'description' => esc_html__('Please use the shorthand format: width style color. Enter 0px or "none" to disable border.', 'total'), 'group' => esc_html__('Design', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Tablet: Items To Display', 'total'), 'param_name' => 'tablet_items', 'value' => '3', 'group' => esc_html__('Mobile', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Mobile Landscape: Items To Display', 'total'), 'param_name' => 'mobile_landscape_items', 'value' => '2', 'group' => esc_html__('Mobile', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Mobile Portrait: Items To Display', 'total'), 'param_name' => 'mobile_portrait_items', 'value' => '1', 'group' => esc_html__('Mobile', 'total'))));
}
开发者ID:iq007,项目名称:MadScape,代码行数:9,代码来源:portfolio_carousel.php

示例14: 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

示例15: vcex_icon_box_vc_map

/**
 * Register the shortcode for use with the Visual Composer
 *
 * @since 1.4.1
 */
function vcex_icon_box_vc_map()
{
    return array('name' => esc_html__('Icon Box', 'total'), 'base' => 'vcex_icon_box', 'category' => wpex_get_theme_branding(), 'icon' => 'vcex-icon-box vcex-icon fa fa-star', 'description' => esc_html__('Content box with icon', 'total'), '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__('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()), 'std' => ''), array('type' => 'dropdown', 'heading' => esc_html__('Style', 'total'), 'param_name' => 'style', 'value' => vcex_icon_box_styles(), 'description' => esc_html__('For greater control select left, right or top icon styles then go to the "Design" tab to modify the icon box design.', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Alignment', 'total'), 'param_name' => 'alignment', 'dependency' => array('element' => 'style', 'value' => array('two')), 'value' => array(__('Default', 'total') => '', __('Center', 'total') => 'center', __('Left', 'total') => 'left', __('Right', 'total') => 'right')), array('type' => 'textfield', 'heading' => esc_html__('Icon Bottom Margin', 'total'), 'param_name' => 'icon_bottom_margin', 'dependency' => array('element' => 'style', 'value' => array('two', 'three', 'four', 'five', 'six'))), array('type' => 'textfield', 'heading' => esc_html__('Container Left Padding', 'total'), 'param_name' => 'container_left_padding', 'dependency' => array('element' => 'style', 'value' => array('one'))), array('type' => 'textfield', 'heading' => esc_html__('Container Right Padding', 'total'), 'param_name' => 'container_right_padding', 'description' => esc_html__('Please enter a px value.', 'total'), 'dependency' => array('element' => 'style', 'value' => array('seven'))), 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__('Font Size', 'total'), 'param_name' => 'font_size', 'group' => esc_html__('Content', 'total')), array('type' => 'colorpicker', 'heading' => esc_html__('Color', 'total'), 'param_name' => 'font_color', 'group' => esc_html__('Content', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Heading', 'total'), 'param_name' => 'heading', 'std' => 'Sample Heading', 'group' => esc_html__('Heading', 'total')), array('type' => 'colorpicker', 'heading' => esc_html__('Color', 'total'), 'param_name' => 'heading_color', 'group' => esc_html__('Heading', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Type', 'total'), 'param_name' => 'heading_type', 'value' => array(__('Default', 'total') => '', 'h2' => 'h2', 'h3' => 'h3', 'h4' => 'h4', 'h5' => 'h5', 'div' => 'div', 'span' => 'span'), 'group' => esc_html__('Heading', 'total')), 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' => 'dropdown', 'heading' => esc_html__('Font Weight', 'total'), 'param_name' => 'heading_weight', 'value' => array_flip(wpex_font_weights()), 'std' => '', 'group' => esc_html__('Heading', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Text Transform', 'total'), 'param_name' => 'heading_transform', 'std' => '', 'group' => esc_html__('Heading', 'total'), 'value' => array_flip(wpex_text_transforms())), array('type' => 'textfield', 'heading' => esc_html__('Font Size', 'total'), 'param_name' => 'heading_size', 'group' => esc_html__('Heading', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Letter Spacing', 'total'), 'param_name' => 'heading_letter_spacing', 'group' => esc_html__('Heading', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Bottom Margin', 'total'), 'param_name' => 'heading_bottom_margin', 'group' => esc_html__('Heading', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Icon library', 'total'), 'param_name' => 'icon_type', 'description' => esc_html__('Select icon library.', 'total'), 'value' => array(__('Font Awesome', 'total') => 'fontawesome', __('Open Iconic', 'total') => 'openiconic', __('Typicons', 'total') => 'typicons', __('Entypo', 'total') => 'entypo', __('Linecons', 'total') => 'linecons', __('Pixel', 'total') => 'pixelicons'), 'group' => esc_html__('Icon', 'total')), array('type' => 'iconpicker', 'heading' => esc_html__('Icon', 'total'), 'param_name' => 'icon', 'value' => 'fa fa-info-circle', 'settings' => array('emptyIcon' => true, 'iconsPerPage' => 200), 'dependency' => array('element' => 'icon_type', 'value' => 'fontawesome'), 'group' => esc_html__('Icon', 'total')), array('type' => 'iconpicker', 'heading' => esc_html__('Icon', 'total'), 'param_name' => 'icon_openiconic', 'settings' => array('emptyIcon' => true, 'type' => 'openiconic', 'iconsPerPage' => 200), 'dependency' => array('element' => 'icon_type', 'value' => 'openiconic'), 'group' => esc_html__('Icon', 'total')), array('type' => 'iconpicker', 'heading' => esc_html__('Icon', 'total'), 'param_name' => 'icon_typicons', 'settings' => array('emptyIcon' => true, 'type' => 'typicons', 'iconsPerPage' => 200), 'dependency' => array('element' => 'icon_type', 'value' => 'typicons'), 'group' => esc_html__('Icon', 'total')), array('type' => 'iconpicker', 'heading' => esc_html__('Icon', 'total'), 'param_name' => 'icon_entypo', 'settings' => array('emptyIcon' => true, 'type' => 'entypo', 'iconsPerPage' => 300), 'dependency' => array('element' => 'icon_type', 'value' => 'entypo'), 'group' => esc_html__('Icon', 'total')), array('type' => 'iconpicker', 'heading' => esc_html__('Icon', 'total'), 'param_name' => 'icon_linecons', 'settings' => array('emptyIcon' => true, 'type' => 'linecons', 'iconsPerPage' => 200), 'dependency' => array('element' => 'icon_type', 'value' => 'linecons'), 'group' => esc_html__('Icon', 'total')), array('type' => 'iconpicker', 'heading' => esc_html__('Icon', 'total'), 'param_name' => 'icon_pixelicons', 'settings' => array('emptyIcon' => true, 'type' => 'pixelicons', 'source' => vcex_pixel_icons()), 'dependency' => array('element' => 'icon_type', 'value' => 'pixelicons'), 'group' => esc_html__('Icon', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Icon Font Alternative Classes', 'total'), 'param_name' => 'icon_alternative_classes', 'group' => esc_html__('Icon', 'total')), array('type' => 'colorpicker', 'heading' => esc_html__('Color', 'total'), 'param_name' => 'icon_color', 'group' => esc_html__('Icon', 'total')), array('type' => 'colorpicker', 'heading' => esc_html__('Background', 'total'), 'param_name' => 'icon_background', 'group' => esc_html__('Icon', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Font Size', 'total'), 'param_name' => 'icon_size', 'group' => esc_html__('Icon', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Border Radius', 'total'), 'param_name' => 'icon_border_radius', 'description' => esc_html__('For a circle enter 50%.', 'total'), 'group' => esc_html__('Icon', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Width', 'total'), 'param_name' => 'icon_width', 'group' => esc_html__('Icon', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Height', 'total'), 'param_name' => 'icon_height', 'group' => esc_html__('Icon', 'total')), array('type' => 'attach_image', 'heading' => esc_html__('Icon Image Alternative', 'total'), 'param_name' => 'image', 'group' => esc_html__('Image', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Width', 'total'), 'param_name' => 'image_width', 'group' => esc_html__('Image', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Height', 'total'), 'param_name' => 'image_height', 'group' => esc_html__('Image', 'total')), array('type' => 'textfield', 'heading' => esc_html__('URL', 'total'), 'param_name' => 'url', 'group' => esc_html__('URL', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('URL Target', 'total'), 'param_name' => 'url_target', 'value' => array(__('Self', 'total') => 'self', __('Blank', 'total') => '_blank', __('Local', 'total') => 'local'), 'group' => esc_html__('URL', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('URL Rel', 'total'), 'param_name' => 'url_rel', 'value' => array(__('None', 'total') => '', __('Nofollow', 'total') => 'nofollow'), 'group' => esc_html__('URL', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('Link Container Wrap', 'total'), 'param_name' => 'url_wrap', 'value' => array(__('Default', 'total') => '', __('Yes', 'total') => 'true', __('No', 'total') => 'false'), 'group' => esc_html__('URL', 'total'), 'description' => esc_html__('Apply the link to the entire wrapper?', 'total')), array('type' => 'css_editor', 'heading' => esc_html__('CSS', 'total'), 'param_name' => 'css', 'description' => esc_html__('If any of these are defined it will add a new wrapper around your icon box with the custom CSS applied to it.', 'total'), 'group' => esc_html__('CSS', 'total')), array('type' => 'textfield', 'heading' => esc_html__('Border Radius', 'total'), 'param_name' => 'border_radius', 'group' => esc_html__('CSS', 'total')), array('type' => 'colorpicker', 'heading' => esc_html__('Background: Hover', 'total'), 'param_name' => 'hover_background', 'description' => esc_html__('Will add a hover background color to your entire icon box or replace the current hover color for specific icon box styles.', 'total'), 'group' => esc_html__('CSS', 'total')), array('type' => 'dropdown', 'heading' => esc_html__('White Text On Hover', 'total'), 'param_name' => 'hover_white_text', 'value' => array(__('No', 'total') => 'false', __('Yes', 'total') => 'true'), 'group' => esc_html__('CSS', 'total'))));
}
开发者ID:iq007,项目名称:MadScape,代码行数:9,代码来源:icon_box.php


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