本文整理汇总了PHP中vc_map_integrate_shortcode函数的典型用法代码示例。如果您正苦于以下问题:PHP vc_map_integrate_shortcode函数的具体用法?PHP vc_map_integrate_shortcode怎么用?PHP vc_map_integrate_shortcode使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了vc_map_integrate_shortcode函数的9个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: vc_post_param
<?php
$parent_tag = vc_post_param('parent_tag', '');
$include_icon_params = 'vc_tta_pageable' !== $parent_tag;
if ($include_icon_params) {
$icon_params = array(array('type' => 'checkbox', 'param_name' => 'add_icon', 'heading' => __('Add icon?', 'js_composer'), 'description' => __('Add icon next to section title.', 'js_composer')), array('type' => 'dropdown', 'param_name' => 'i_position', 'value' => array(__('Before title', 'js_composer') => 'left', __('After title', 'js_composer') => 'right'), 'dependency' => array('element' => 'add_icon', 'value' => 'true'), 'heading' => __('Icon position', 'js_composer'), 'description' => __('Select icon position.', 'js_composer')));
$icon_params = array_merge($icon_params, (array) vc_map_integrate_shortcode('vc_icon', 'i_', '', array('include_only_regex' => '/^(type|icon_\\w*)/'), array('element' => 'add_icon', 'value' => 'true')));
} else {
$icon_params = array();
}
$params = array_merge(array(array('type' => 'textfield', 'param_name' => 'title', 'heading' => __('Title', 'js_composer'), 'description' => __('Enter section title (Note: you can leave it empty).', 'js_composer')), array('type' => 'el_id', 'param_name' => 'tab_id', 'settings' => array('auto_generate' => true), 'heading' => __('Section ID', 'js_composer'), 'description' => __('Enter section ID (Note: make sure it is unique and valid according to <a href="%s" target="_blank">w3c specification</a>).', 'js_composer'))), $icon_params, array(array('type' => 'textfield', 'heading' => __('Extra class name', 'js_composer'), 'param_name' => 'el_class', 'description' => __('If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.', 'js_composer'))));
vc_map(array('name' => __('Section', 'js_composer'), 'base' => 'vc_tta_section', 'icon' => 'icon-wpb-ui-tta-section', 'allowed_container_element' => 'vc_row', 'is_container' => true, 'show_settings_on_create' => false, 'as_child' => array('only' => 'vc_tta_tour,vc_tta_tabs,vc_tta_accordion'), 'category' => __('Content', 'js_composer'), 'description' => __('Section for Tabs, Tours, Accordions.', 'js_composer'), 'params' => $params, 'js_view' => 'VcBackendTtaSectionView', 'custom_markup' => '
<div class="vc_tta-panel-heading">
<h4 class="vc_tta-panel-title vc_tta-controls-icon-position-left"><a href="javascript:;" data-vc-target="[data-model-id=\'{{ model_id }}\']" data-vc-accordion data-vc-container=".vc_tta-container"><span class="vc_tta-title-text">{{ section_title }}</span><i class="vc_tta-controls-icon vc_tta-controls-icon-plus"></i></a></h4>
</div>
<div class="vc_tta-panel-body">
{{ editor_controls }}
<div class="{{ container-class }}">
{{ content }}
</div>
</div>', 'default_content' => ''));
开发者ID:Sibzsolutions,项目名称:Schiffrinpa,代码行数:21,代码来源:shortcode-vc-tta-section.php
示例2: initData
protected static function initData()
{
self::$btn3Params = vc_map_integrate_shortcode('vc_btn', 'btn_', __('Load More Button', 'js_composer'), array('exclude' => array('link', 'css', 'el_class', 'css_animation')), array('element' => 'style', 'value' => array('load-more')));
foreach (self::$btn3Params as $key => $value) {
if ('btn_title' == $value['param_name']) {
self::$btn3Params[$key]['value'] = __('Load more', 'js_composer');
} else {
if ('btn_color' == $value['param_name']) {
self::$btn3Params[$key]['std'] = 'blue';
} else {
if ('btn_style' == $value['param_name']) {
self::$btn3Params[$key]['std'] = 'flat';
}
}
}
}
// Grid column list
self::$gridColsList = array(array('label' => '6', 'value' => 2), array('label' => '4', 'value' => 3), array('label' => '3', 'value' => 4), array('label' => '2', 'value' => 6), array('label' => '1', 'value' => 12));
}
开发者ID:ksan5835,项目名称:maadithottam,代码行数:19,代码来源:class-vc-grids-common.php
示例3: updateIntegratedShortcode
public function updateIntegratedShortcode($shortcode, $field_prefix = '', $group_prefix = '', $change_fields = null, $dependency = null)
{
$new_params = array();
$insert_index = false;
foreach ($this->params as $index => $param) {
if (isset($param['integrated_shortcode']) && $param['integrated_shortcode'] == $shortcode && strpos($param['param_name'], $field_prefix) === 0) {
if (!$insert_index) {
$insert_index = count($new_params);
}
continue;
}
$new_params[] = $param;
}
if ($insert_index) {
$new_params = array_merge(array_slice($new_params, 0, $insert_index), vc_map_integrate_shortcode($shortcode, $field_prefix, $group_prefix, $change_fields, $dependency), array_slice($new_params, $insert_index));
}
$this->params = $new_params;
}
开发者ID:SayenkoDesign,项目名称:ividf,代码行数:18,代码来源:misc.php
示例4: array
}
$post_types_list[] = array('custom', __('Custom query', 'js_composer'));
$post_types_list[] = array('ids', __('List of IDs', 'js_composer'));
$taxonomies_for_filter = array();
if ('vc_edit_form' === vc_post_param('action')) {
$vc_taxonomies_types = vc_taxonomies_types();
if (is_array($vc_taxonomies_types) && !empty($vc_taxonomies_types)) {
foreach ($vc_taxonomies_types as $t => $data) {
if ('post_format' !== $t && is_object($data)) {
$taxonomies_for_filter[$data->labels->name] = $t;
}
}
}
}
$grid_cols_list = array(array('label' => '6', 'value' => 2), array('label' => '4', 'value' => 3), array('label' => '3', 'value' => 4), array('label' => '2', 'value' => 6), array('label' => '1', 'value' => 12));
$btn3_params = vc_map_integrate_shortcode('vc_btn', 'btn_', __('Load More Button', 'js_composer'), array('exclude' => array('link', 'css', 'el_class', 'css_animation')), array('element' => 'style', 'value' => array('load-more')));
foreach ($btn3_params as $key => $value) {
if ('btn_title' == $value['param_name']) {
$btn3_params[$key]['value'] = __('Load more', 'js_composer');
} else {
if ('btn_color' == $value['param_name']) {
$btn3_params[$key]['std'] = 'blue';
} else {
if ('btn_style' == $value['param_name']) {
$btn3_params[$key]['std'] = 'flat';
}
}
}
}
$grid_params = array_merge(array(0 => array('type' => 'dropdown', 'heading' => __('Data source', 'js_composer'), 'param_name' => 'post_type', 'value' => $post_types_list, 'save_always' => true, 'description' => __('Select content type for your grid.', 'js_composer')), 1 => array('type' => 'autocomplete', 'heading' => __('Include only', 'js_composer'), 'param_name' => 'include', 'description' => __('Add posts, pages, etc. by title.', 'js_composer'), 'settings' => array('multiple' => true, 'sortable' => true, 'groups' => true), 'dependency' => array('element' => 'post_type', 'value' => array('ids'))), 2 => array('type' => 'textarea_safe', 'heading' => __('Custom query', 'js_composer'), 'param_name' => 'custom_query', 'description' => __('Build custom query according to <a href="http://codex.wordpress.org/Function_Reference/query_posts">WordPress Codex</a>.', 'js_composer'), 'dependency' => array('element' => 'post_type', 'value' => array('custom'))), 3 => array('type' => 'autocomplete', 'heading' => __('Narrow data source', 'js_composer'), 'param_name' => 'taxonomies', 'settings' => array('multiple' => true, 'min_length' => 1, 'groups' => true, 'unique_values' => true, 'display_inline' => true, 'delay' => 500, 'auto_focus' => true), 'param_holder_class' => 'vc_not-for-custom', 'description' => __('Enter categories, tags or custom taxonomies.', 'js_composer'), 'dependency' => array('element' => 'post_type', 'value_not_equal_to' => array('ids', 'custom'))), 4 => array('type' => 'textfield', 'heading' => __('Total items', 'js_composer'), 'param_name' => 'max_items', 'value' => 10, 'param_holder_class' => 'vc_not-for-custom', 'description' => __('Set max limit for items in grid or enter -1 to display all (limited to 1000).', 'js_composer'), 'dependency' => array('element' => 'post_type', 'value_not_equal_to' => array('ids', 'custom'))), 5 => array('type' => 'dropdown', 'heading' => __('Display Style', 'js_composer'), 'param_name' => 'style', 'value' => array(__('Show all', 'js_composer') => 'all', __('Load more button', 'js_composer') => 'load-more', __('Lazy loading', 'js_composer') => 'lazy', __('Pagination', 'js_composer') => 'pagination'), 'dependency' => array('element' => 'post_type', 'value_not_equal_to' => array('custom')), 'edit_field_class' => 'vc_col-sm-6 vc_column', 'description' => __('Select display style for grid.', 'js_composer')), 6 => array('type' => 'textfield', 'heading' => __('Items per page', 'js_composer'), 'param_name' => 'items_per_page', 'description' => __('Number of items to show per page.', 'js_composer'), 'value' => '10', 'dependency' => array('element' => 'style', 'value' => array('lazy', 'load-more', 'pagination')), 'edit_field_class' => 'vc_col-sm-6 vc_column'), 7 => array('type' => 'checkbox', 'heading' => __('Show filter', 'js_composer'), 'param_name' => 'show_filter', 'value' => array(__('Yes', 'js_composer') => 'yes'), 'description' => __('Append filter to grid.', 'js_composer')), 8 => array('type' => 'dropdown', 'heading' => __('Grid elements per row', 'js_composer'), 'param_name' => 'element_width', 'value' => $grid_cols_list, 'std' => '4', 'edit_field_class' => 'vc_col-sm-6 vc_column', 'description' => __('Select number of single grid elements per row.', 'js_composer')), 9 => array('type' => 'dropdown', 'heading' => __('Gap', 'js_composer'), 'param_name' => 'gap', 'value' => array('0px' => '0', '1px' => '1', '2px' => '2', '3px' => '3', '4px' => '4', '5px' => '5', '10px' => '10', '15px' => '15', '20px' => '20', '25px' => '25', '30px' => '30', '35px' => '35'), 'std' => '30', 'description' => __('Select gap between grid elements.', 'js_composer'), 'edit_field_class' => 'vc_col-sm-6 vc_column'), 10 => array('type' => 'dropdown', 'heading' => __('Order by', 'js_composer'), 'param_name' => 'orderby', 'value' => array(__('Date', 'js_composer') => 'date', __('Order by post ID', 'js_composer') => 'ID', __('Author', 'js_composer') => 'author', __('Title', 'js_composer') => 'title', __('Last modified date', 'js_composer') => 'modified', __('Post/page parent ID', 'js_composer') => 'parent', __('Number of comments', 'js_composer') => 'comment_count', __('Menu order/Page Order', 'js_composer') => 'menu_order', __('Meta value', 'js_composer') => 'meta_value', __('Meta value number', 'js_composer') => 'meta_value_num', __('Random order', 'js_composer') => 'rand'), 'description' => __('Select order type. If "Meta value" or "Meta value Number" is chosen then meta key is required.', 'js_composer'), 'group' => __('Data Settings', 'js_composer'), 'param_holder_class' => 'vc_grid-data-type-not-ids', 'dependency' => array('element' => 'post_type', 'value_not_equal_to' => array('ids', 'custom'))), 11 => array('type' => 'dropdown', 'heading' => __('Sort order', 'js_composer'), 'param_name' => 'order', 'group' => __('Data Settings', 'js_composer'), 'value' => array(__('Descending', 'js_composer') => 'DESC', __('Ascending', 'js_composer') => 'ASC'), 'param_holder_class' => 'vc_grid-data-type-not-ids', 'description' => __('Select sorting order.', 'js_composer'), 'dependency' => array('element' => 'post_type', 'value_not_equal_to' => array('ids', 'custom'))), 12 => array('type' => 'textfield', 'heading' => __('Meta key', 'js_composer'), 'param_name' => 'meta_key', 'description' => __('Input meta key for grid ordering.', 'js_composer'), 'group' => __('Data Settings', 'js_composer'), 'param_holder_class' => 'vc_grid-data-type-not-ids', 'dependency' => array('element' => 'orderby', 'value' => array('meta_value', 'meta_value_num'))), 13 => array('type' => 'textfield', 'heading' => __('Offset', 'js_composer'), 'param_name' => 'offset', 'description' => __('Number of grid elements to displace or pass over.', 'js_composer'), 'group' => __('Data Settings', 'js_composer'), 'param_holder_class' => 'vc_grid-data-type-not-ids', 'dependency' => array('element' => 'post_type', 'value_not_equal_to' => array('ids', 'custom'))), 14 => array('type' => 'autocomplete', 'heading' => __('Exclude', 'js_composer'), 'param_name' => 'exclude', 'description' => __('Exclude posts, pages, etc. by title.', 'js_composer'), 'group' => __('Data Settings', 'js_composer'), 'settings' => array('multiple' => true), 'param_holder_class' => 'vc_grid-data-type-not-ids', 'dependency' => array('element' => 'post_type', 'value_not_equal_to' => array('ids', 'custom'), 'callback' => 'vc_grid_exclude_dependency_callback')), 15 => array('type' => 'dropdown', 'heading' => __('Filter by', 'js_composer'), 'param_name' => 'filter_source', 'value' => $taxonomies_for_filter, 'group' => __('Filter', 'js_composer'), 'dependency' => array('element' => 'show_filter', 'value' => array('yes')), 'save_always' => true, 'description' => __('Select filter source.', 'js_composer')), 16 => array('type' => 'autocomplete', 'heading' => __('Exclude from filter list', 'js_composer'), 'param_name' => 'exclude_filter', 'settings' => array('multiple' => true, 'min_length' => 1, 'groups' => true, 'unique_values' => true, 'display_inline' => true, 'delay' => 500, 'auto_focus' => true), 'description' => __('Enter categories, tags won\'t be shown in the filters list', 'js_composer'), 'dependency' => array('element' => 'show_filter', 'value' => array('yes'), 'callback' => 'vcGridFilterExcludeCallBack'), 'group' => __('Filter', 'js_composer')), 17 => array('type' => 'dropdown', 'heading' => __('Style', 'js_composer'), 'param_name' => 'filter_style', 'value' => array(__('Rounded', 'js_composer') => 'default', __('Less Rounded', 'js_composer') => 'default-less-rounded', __('Border', 'js_composer') => 'bordered', __('Rounded Border', 'js_composer') => 'bordered-rounded', __('Less Rounded Border', 'js_composer') => 'bordered-rounded-less', __('Filled', 'js_composer') => 'filled', __('Rounded Filled', 'js_composer') => 'filled-rounded', __('Dropdown', 'js_composer') => 'dropdown'), 'dependency' => array('element' => 'show_filter', 'value' => array('yes')), 'group' => __('Filter', 'js_composer'), 'description' => __('Select filter display style.', 'js_composer')), 18 => array('type' => 'dropdown', 'heading' => __('Alignment', 'js_composer'), 'param_name' => 'filter_align', 'value' => array(__('Center', 'js_composer') => 'center', __('Left', 'js_composer') => 'left', __('Right', 'js_composer') => 'right'), 'dependency' => array('element' => 'show_filter', 'value' => array('yes')), 'group' => __('Filter', 'js_composer'), 'description' => __('Select filter alignment.', 'js_composer')), 19 => array('type' => 'dropdown', 'heading' => __('Color', 'js_composer'), 'param_name' => 'filter_color', 'value' => getVcShared('colors'), 'std' => 'grey', 'param_holder_class' => 'vc_colored-dropdown', 'dependency' => array('element' => 'show_filter', 'value' => array('yes')), 'group' => __('Filter', 'js_composer'), 'description' => __('Select filter color.', 'js_composer')), 20 => array('type' => 'dropdown', 'heading' => __('Filter size', 'js_composer'), 'param_name' => 'filter_size', 'value' => getVcShared('sizes'), 'std' => 'md', 'description' => __('Select filter size.', 'js_composer'), 'dependency' => array('element' => 'show_filter', 'value' => array('yes')), 'group' => __('Filter', 'js_composer')), 24 => array('type' => 'dropdown', 'heading' => __('Arrows design', 'js_composer'), 'param_name' => 'arrows_design', 'value' => array(__('None', 'js_composer') => 'none', __('Simple', 'js_composer') => 'vc_arrow-icon-arrow_01_left', __('Simple Circle Border', 'js_composer') => 'vc_arrow-icon-arrow_02_left', __('Simple Circle', 'js_composer') => 'vc_arrow-icon-arrow_03_left', __('Simple Square', 'js_composer') => 'vc_arrow-icon-arrow_09_left', __('Simple Square Rounded', 'js_composer') => 'vc_arrow-icon-arrow_12_left', __('Simple Rounded', 'js_composer') => 'vc_arrow-icon-arrow_11_left', __('Rounded', 'js_composer') => 'vc_arrow-icon-arrow_04_left', __('Rounded Circle Border', 'js_composer') => 'vc_arrow-icon-arrow_05_left', __('Rounded Circle', 'js_composer') => 'vc_arrow-icon-arrow_06_left', __('Rounded Square', 'js_composer') => 'vc_arrow-icon-arrow_10_left', __('Simple Arrow', 'js_composer') => 'vc_arrow-icon-arrow_08_left', __('Simple Rounded Arrow', 'js_composer') => 'vc_arrow-icon-arrow_07_left'), 'group' => __('Pagination', 'js_composer'), 'dependency' => array('element' => 'style', 'value' => array('pagination')), 'description' => __('Select design for arrows.', 'js_composer')), 25 => array('type' => 'dropdown', 'heading' => __('Arrows position', 'js_composer'), 'param_name' => 'arrows_position', 'value' => array(__('Inside Wrapper', 'js_composer') => 'inside', __('Outside Wrapper', 'js_composer') => 'outside'), 'group' => __('Pagination', 'js_composer'), 'dependency' => array('element' => 'arrows_design', 'value_not_equal_to' => array('none')), 'description' => __('Arrows will be displayed inside or outside grid.', 'js_composer')), 26 => array('type' => 'dropdown', 'heading' => __('Arrows color', 'js_composer'), 'param_name' => 'arrows_color', 'value' => getVcShared('colors'), 'param_holder_class' => 'vc_colored-dropdown', 'group' => __('Pagination', 'js_composer'), 'dependency' => array('element' => 'arrows_design', 'value_not_equal_to' => array('none')), 'description' => __('Select color for arrows.', 'js_composer')), 27 => array('type' => 'dropdown', 'heading' => __('Pagination style', 'js_composer'), 'param_name' => 'paging_design', 'value' => array(__('None', 'js_composer') => 'none', __('Square Dots', 'js_composer') => 'square_dots', __('Radio Dots', 'js_composer') => 'radio_dots', __('Point Dots', 'js_composer') => 'point_dots', __('Fill Square Dots', 'js_composer') => 'fill_square_dots', __('Rounded Fill Square Dots', 'js_composer') => 'round_fill_square_dots', __('Pagination Default', 'js_composer') => 'pagination_default', __('Outline Default Dark', 'js_composer') => 'pagination_default_dark', __('Outline Default Light', 'js_composer') => 'pagination_default_light', __('Pagination Rounded', 'js_composer') => 'pagination_rounded', __('Outline Rounded Dark', 'js_composer') => 'pagination_rounded_dark', __('Outline Rounded Light', 'js_composer') => 'pagination_rounded_light', __('Pagination Square', 'js_composer') => 'pagination_square', __('Outline Square Dark', 'js_composer') => 'pagination_square_dark', __('Outline Square Light', 'js_composer') => 'pagination_square_light', __('Pagination Rounded Square', 'js_composer') => 'pagination_rounded_square', __('Outline Rounded Square Dark', 'js_composer') => 'pagination_rounded_square_dark', __('Outline Rounded Square Light', 'js_composer') => 'pagination_rounded_square_light', __('Stripes Dark', 'js_composer') => 'pagination_stripes_dark', __('Stripes Light', 'js_composer') => 'pagination_stripes_light'), 'std' => 'radio_dots', 'group' => __('Pagination', 'js_composer'), 'dependency' => array('element' => 'style', 'value' => array('pagination')), 'description' => __('Select pagination style.', 'js_composer')), 28 => array('type' => 'dropdown', 'heading' => __('Pagination color', 'js_composer'), 'param_name' => 'paging_color', 'value' => getVcShared('colors'), 'std' => 'grey', 'param_holder_class' => 'vc_colored-dropdown', 'group' => __('Pagination', 'js_composer'), 'dependency' => array('element' => 'paging_design', 'value_not_equal_to' => array('none')), 'description' => __('Select pagination color.', 'js_composer')), 29 => array('type' => 'checkbox', 'heading' => __('Loop pages?', 'js_composer'), 'param_name' => 'loop', 'description' => __('Allow items to be repeated in infinite loop (carousel).', 'js_composer'), 'value' => array(__('Yes', 'js_composer') => 'yes'), 'group' => __('Pagination', 'js_composer'), 'dependency' => array('element' => 'style', 'value' => array('pagination'))), 30 => array('type' => 'textfield', 'heading' => __('Autoplay delay', 'js_composer'), 'param_name' => 'autoplay', 'value' => '-1', 'description' => __('Enter value in seconds. Set -1 to disable autoplay.', 'js_composer'), 'group' => __('Pagination', 'js_composer'), 'dependency' => array('element' => 'style', 'value' => array('pagination'))), 31 => array('type' => 'animation_style', 'heading' => __('Animation In', 'js_composer'), 'param_name' => 'paging_animation_in', 'group' => __('Pagination', 'js_composer'), 'settings' => array('type' => array('in', 'other')), 'dependency' => array('element' => 'style', 'value' => array('pagination')), 'description' => __('Select "animation in" for page transition.', 'js_composer')), 32 => array('type' => 'animation_style', 'heading' => __('Animation Out', 'js_composer'), 'param_name' => 'paging_animation_out', 'group' => __('Pagination', 'js_composer'), 'settings' => array('type' => array('out')), 'dependency' => array('element' => 'style', 'value' => array('pagination')), 'description' => __('Select "animation out" for page transition.', 'js_composer')), 33 => array('type' => 'vc_grid_item', 'heading' => __('Grid element template', 'js_composer'), 'param_name' => 'item', 'description' => sprintf(__('%sCreate new%s template or %smodify selected%s. Predefined templates will be cloned.', 'js_composer'), '<a href="' . esc_url(admin_url('post-new.php?post_type=vc_grid_item')) . '" target="_blank">', '</a>', '<a href="#" target="_blank" data-vc-grid-item="edit_link">', '</a>'), 'group' => __('Item Design', 'js_composer'), 'value' => 'none'), 34 => array('type' => 'vc_grid_id', 'param_name' => 'grid_id'), 35 => array('type' => 'textfield', 'heading' => __('Extra class name', 'js_composer'), 'param_name' => 'el_class', 'description' => __('Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer')), 36 => array('type' => 'css_editor', 'heading' => __('CSS box', 'js_composer'), 'param_name' => 'css', 'group' => __('Design Options', 'js_composer')), 21 => array('type' => 'hidden', 'heading' => __('Button style', 'js_composer'), 'param_name' => 'button_style', 'value' => '', 'param_holder_class' => 'vc_colored-dropdown', 'group' => __('Load More Button', 'js_composer'), 'dependency' => array('element' => 'style', 'value' => array('load-more')), 'description' => __('Select button style.', 'js_composer')), 22 => array('type' => 'hidden', 'heading' => __('Button color', 'js_composer'), 'param_name' => 'button_color', 'value' => '', 'param_holder_class' => 'vc_colored-dropdown', 'group' => __('Load More Button', 'js_composer'), 'dependency' => array('element' => 'style', 'value' => array('load-more')), 'description' => __('Select button color.', 'js_composer')), 23 => array('type' => 'hidden', 'heading' => __('Button size', 'js_composer'), 'param_name' => 'button_size', 'value' => '', 'description' => __('Select button size.', 'js_composer'), 'group' => __('Load More Button', 'js_composer'), 'dependency' => array('element' => 'style', 'value' => array('load-more')))), $btn3_params);
add_filter('vc_autocomplete_vc_basic_grid_include_callback', 'vc_include_field_search', 10, 1);
开发者ID:hikaram,项目名称:wee,代码行数:31,代码来源:vc-grids-common.php
示例5: unset
unset($h2_custom_heading[$key]['settings']['fields']['text_align']);
}
}
}
}
}
$h4_custom_heading = vc_map_integrate_shortcode(vc_custom_heading_element_params(), 'h4_', __('Subheading', 'js_composer'), array('exclude' => array('source', 'text', 'css')), array('element' => 'use_custom_fonts_h4', 'value' => 'true'));
// This is needed to remove custom heading _tag and _align options.
if (is_array($h4_custom_heading) && !empty($h4_custom_heading)) {
foreach ($h4_custom_heading as $key => $param) {
if (is_array($param) && isset($param['type']) && 'font_container' === $param['type']) {
$h4_custom_heading[$key]['value'] = '';
if (isset($param['settings']) && is_array($param['settings']) && isset($param['settings']['fields'])) {
$sub_key = array_search('tag', $param['settings']['fields']);
if (false !== $sub_key) {
unset($h4_custom_heading[$key]['settings']['fields'][$sub_key]);
} elseif (isset($param['settings']['fields']['tag'])) {
unset($h4_custom_heading[$key]['settings']['fields']['tag']);
}
$sub_key = array_search('text_align', $param['settings']['fields']);
if (false !== $sub_key) {
unset($h4_custom_heading[$key]['settings']['fields'][$sub_key]);
} elseif (isset($param['settings']['fields']['text_align'])) {
unset($h4_custom_heading[$key]['settings']['fields']['text_align']);
}
}
}
}
}
$params = array_merge(array(array('type' => 'textfield', 'heading' => __('Heading', 'js_composer'), 'admin_label' => true, 'param_name' => 'h2', 'value' => __('Hey! I am first heading line feel free to change me', 'js_composer'), 'description' => __('Enter text for heading line.', 'js_composer'), 'edit_field_class' => 'vc_col-sm-9'), array('type' => 'checkbox', 'heading' => __('Use custom font?', 'js_composer'), 'param_name' => 'use_custom_fonts_h2', 'description' => __('Enable Google fonts.', 'js_composer'), 'edit_field_class' => 'vc_col-sm-3')), $h2_custom_heading, array(array('type' => 'textfield', 'heading' => __('Subheading', 'js_composer'), 'param_name' => 'h4', 'value' => '', 'description' => __('Enter text for subheading line.', 'js_composer'), 'edit_field_class' => 'vc_col-sm-9'), array('type' => 'checkbox', 'heading' => __('Use custom font?', 'js_composer'), 'param_name' => 'use_custom_fonts_h4', 'description' => __('Enable custom font option.', 'js_composer'), 'edit_field_class' => 'vc_col-sm-3')), $h4_custom_heading, array(array('type' => 'dropdown', 'heading' => __('Text alignment', 'js_composer'), 'param_name' => 'txt_align', 'value' => getVcShared('text align'), 'description' => __('Select text alignment in "Call to Action" block.', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Shape', 'js_composer'), 'param_name' => 'shape', 'std' => 'rounded', 'value' => array(__('Square', 'js_composer') => 'square', __('Rounded', 'js_composer') => 'rounded', __('Round', 'js_composer') => 'round'), 'description' => __('Select call to action shape.', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Style', 'js_composer'), 'param_name' => 'style', 'value' => array(__('Classic', 'js_composer') => 'classic', __('Flat', 'js_composer') => 'flat', __('Outline', 'js_composer') => 'outline', __('3d', 'js_composer') => '3d', __('Custom', 'js_composer') => 'custom'), 'std' => 'classic', 'description' => __('Select call to action display style.', 'js_composer')), array('type' => 'colorpicker', 'heading' => __('Background color', 'js_composer'), 'param_name' => 'custom_background', 'description' => __('Select custom background color.', 'js_composer'), 'dependency' => array('element' => 'style', 'value' => array('custom')), 'edit_field_class' => 'vc_col-sm-6'), array('type' => 'colorpicker', 'heading' => __('Text color', 'js_composer'), 'param_name' => 'custom_text', 'description' => __('Select custom text color.', 'js_composer'), 'dependency' => array('element' => 'style', 'value' => array('custom')), 'edit_field_class' => 'vc_col-sm-6'), array('type' => 'dropdown', 'heading' => __('Color', 'js_composer'), 'param_name' => 'color', 'value' => array(__('Classic', 'js_composer') => 'classic') + getVcShared('colors-dashed'), 'std' => 'classic', 'description' => __('Select color schema.', 'js_composer'), 'param_holder_class' => 'vc_colored-dropdown vc_cta3-colored-dropdown', 'dependency' => array('element' => 'style', 'value_not_equal_to' => array('custom'))), array('type' => 'textarea_html', 'heading' => __('Text', 'js_composer'), 'param_name' => 'content', 'value' => __('I am promo text. Click edit button to change this text. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Width', 'js_composer'), 'param_name' => 'el_width', 'value' => array('100%' => '', '90%' => 'xl', '80%' => 'lg', '70%' => 'md', '60%' => 'sm', '50%' => 'xs'), 'description' => __('Select call to action width (percentage).', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Add button', 'js_composer') . '?', 'description' => __('Add button for call to action.', 'js_composer'), 'param_name' => 'add_button', 'value' => array(__('No', 'js_composer') => '', __('Top', 'js_composer') => 'top', __('Bottom', 'js_composer') => 'bottom', __('Left', 'js_composer') => 'left', __('Right', 'js_composer') => 'right'))), vc_map_integrate_shortcode('vc_btn', 'btn_', __('Button', 'js_composer'), array('exclude' => array('css')), array('element' => 'add_button', 'not_empty' => true)), array(array('type' => 'dropdown', 'heading' => __('Add icon?', 'js_composer'), 'description' => __('Add icon for call to action.', 'js_composer'), 'param_name' => 'add_icon', 'value' => array(__('No', 'js_composer') => '', __('Top', 'js_composer') => 'top', __('Bottom', 'js_composer') => 'bottom', __('Left', 'js_composer') => 'left', __('Right', 'js_composer') => 'right')), array('type' => 'checkbox', 'param_name' => 'i_on_border', 'heading' => __('Place icon on border?', 'js_composer'), 'description' => __('Display icon on call to action element border.', 'js_composer'), 'group' => __('Icon', 'js_composer'), 'dependency' => array('element' => 'add_icon', 'not_empty' => true))), vc_map_integrate_shortcode('vc_icon', 'i_', __('Icon', 'js_composer'), array('exclude' => array('align', 'css')), array('element' => 'add_icon', 'not_empty' => true)), array(vc_map_add_css_animation(), array('type' => 'textfield', 'heading' => __('Extra class name', 'js_composer'), 'param_name' => 'el_class', 'description' => __('Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer')), array('type' => 'css_editor', 'heading' => __('CSS box', 'js_composer'), 'param_name' => 'css', 'group' => __('Design Options', 'js_composer'))));
return array('name' => __('Call to Action', 'js_composer'), 'base' => 'vc_cta', 'icon' => 'icon-wpb-call-to-action', 'category' => array(__('Content', 'js_composer')), 'description' => __('Catch visitors attention with CTA block', 'js_composer'), 'since' => '4.5', 'params' => $params, 'js_view' => 'VcCallToActionView3');
开发者ID:ksan5835,项目名称:maadithottam,代码行数:31,代码来源:shortcode-vc-cta.php
示例6: vc_map_integrate_shortcode
}
$shortcode_vc_separator = WPBMap::getShortCode('vc_separator');
if (is_array($shortcode_vc_separator) && isset($shortcode_vc_separator['base'])) {
$list['vc_separator'] = $shortcode_vc_separator;
$list['vc_separator']['post_type'] = Vc_Grid_Item_Editor::postType();
}
$shortcode_vc_text_separator = WPBMap::getShortCode('vc_text_separator');
if (is_array($shortcode_vc_text_separator) && isset($shortcode_vc_text_separator['base'])) {
$list['vc_text_separator'] = $shortcode_vc_text_separator;
$list['vc_text_separator']['post_type'] = Vc_Grid_Item_Editor::postType();
}
$shortcode_vc_icon = WPBMap::getShortCode('vc_icon');
if (is_array($shortcode_vc_icon) && isset($shortcode_vc_icon['base'])) {
$list['vc_icon'] = $shortcode_vc_icon;
$list['vc_icon']['post_type'] = Vc_Grid_Item_Editor::postType();
$list['vc_icon']['params'] = vc_map_integrate_shortcode('vc_icon', '', '', array('exclude' => array('link')));
}
$list['vc_single_image'] = array('name' => __('Single Image', 'js_composer'), 'base' => 'vc_single_image', 'icon' => 'icon-wpb-single-image', 'category' => __('Content', 'js_composer'), 'description' => __('Simple image with CSS animation', 'js_composer'), 'params' => array(array('type' => 'textfield', 'heading' => __('Widget title', 'js_composer'), 'param_name' => 'title', 'description' => __('Enter text used as widget title (Note: located above content element).', 'js_composer')), array('type' => 'attach_image', 'heading' => __('Image', 'js_composer'), 'param_name' => 'image', 'value' => '', 'description' => __('Select image from media library.', 'js_composer')), $vc_add_css_animation, array('type' => 'textfield', 'heading' => __('Image size', 'js_composer'), 'param_name' => 'img_size', 'description' => __('Enter image size (Example: "thumbnail", "medium", "large", "full" or other sizes defined by theme). Alternatively enter size in pixels (Example: 200x100 (Width x Height)). Leave parameter empty to use "thumbnail" by default.', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Image alignment', 'js_composer'), 'param_name' => 'alignment', 'value' => array(__('Left', 'js_composer') => '', __('Right', 'js_composer') => 'right', __('Center', 'js_composer') => 'center'), 'description' => __('Select image alignment.', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Image style', 'js_composer'), 'param_name' => 'style', 'value' => getVcShared('single image styles'), 'description' => __('Select image display style.', 'js_comopser')), array('type' => 'dropdown', 'heading' => __('Border color', 'js_composer'), 'param_name' => 'border_color', 'value' => getVcShared('colors'), 'std' => 'grey', 'dependency' => array('element' => 'style', 'value' => array('vc_box_border', 'vc_box_border_circle', 'vc_box_outline', 'vc_box_outline_circle')), 'description' => __('Border color.', 'js_composer'), 'param_holder_class' => 'vc_colored-dropdown'), array('type' => 'textfield', 'heading' => __('Extra class name', 'js_composer'), 'param_name' => 'el_class', 'description' => __('Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer')), array('type' => 'css_editor', 'heading' => __('CSS box', 'js_composer'), 'param_name' => 'css', 'group' => __('Design Options', 'js_composer'))), 'post_type' => Vc_Grid_Item_Editor::postType());
$shortcode_vc_button2 = WPBMap::getShortCode('vc_button2');
if (is_array($shortcode_vc_button2) && isset($shortcode_vc_button2['base'])) {
$list['vc_button2'] = $shortcode_vc_button2;
$list['vc_button2']['post_type'] = Vc_Grid_Item_Editor::postType();
}
$shortcode_vc_btn = WPBMap::getShortCode('vc_btn');
if (is_array($shortcode_vc_btn) && isset($shortcode_vc_btn['base'])) {
$list['vc_btn'] = $shortcode_vc_btn;
$list['vc_btn']['post_type'] = Vc_Grid_Item_Editor::postType();
unset($list['vc_btn']['params'][1]);
}
$shortcode_vc_custom_heading = WPBMap::getShortCode('vc_custom_heading');
if (is_array($shortcode_vc_custom_heading) && isset($shortcode_vc_custom_heading['base'])) {
开发者ID:RDePoppe,项目名称:luminaterealestate,代码行数:31,代码来源:shortcodes.php
示例7: vc_map
* -
* - responsiveness offset properties for columns.
*
* @backend_view VcColumnView
* wp-content/plugins/js_composer/assets/js/backend/composer-custom-views.js/window.VcColumnView - custom backend
* shortcode view.
*/
vc_map(array('name' => __('Column', 'js_composer'), 'base' => 'vc_column', 'icon' => 'icon-wpb-row', 'is_container' => true, 'content_element' => false, 'description' => __('Place content elements inside the column', 'js_composer'), 'params' => array(array('type' => 'textfield', 'heading' => __('Extra class name', 'js_composer'), 'param_name' => 'el_class', 'description' => __('Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer')), array('type' => 'css_editor', 'heading' => __('CSS box', 'js_composer'), 'param_name' => 'css', 'group' => __('Design Options', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Width', 'js_composer'), 'param_name' => 'width', 'value' => $vc_column_width_list, 'group' => __('Responsive Options', 'js_composer'), 'description' => __('Select column width.', 'js_composer'), 'std' => '1/1'), array('type' => 'column_offset', 'heading' => __('Responsiveness', 'js_composer'), 'param_name' => 'offset', 'group' => __('Responsive Options', 'js_composer'), 'description' => __('Adjust column for different screen sizes. Control width, offset and visibility settings.', 'js_composer'))), 'js_view' => 'VcColumnView'));
vc_map(array('name' => __('Inner Column', 'js_composer'), 'base' => 'vc_column_inner', 'icon' => 'icon-wpb-row', 'class' => '', 'wrapper_class' => '', 'controls' => 'full', 'allowed_container_element' => false, 'content_element' => false, 'is_container' => true, 'description' => __('Place content elements inside the inner column', 'js_composer'), 'params' => array(array('type' => 'textfield', 'heading' => __('Extra class name', 'js_composer'), 'param_name' => 'el_class', 'value' => '', 'description' => __('Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer')), array('type' => 'css_editor', 'heading' => __('CSS box', 'js_composer'), 'param_name' => 'css', 'group' => __('Design Options', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Width', 'js_composer'), 'param_name' => 'width', 'value' => $vc_column_width_list, 'group' => __('Responsive Options', 'js_composer'), 'description' => __('Select column width.', 'js_composer'), 'std' => '1/1'), array('type' => 'column_offset', 'heading' => __('Responsiveness', 'js_composer'), 'param_name' => 'offset', 'group' => __('Responsive Options', 'js_composer'), 'description' => __('Adjust column for different screen sizes. Control width, offset and visibility settings.', 'js_composer'))), 'js_view' => 'VcColumnView'));
/* Text Block
---------------------------------------------------------- */
vc_map(array('name' => __('Text Block', 'js_composer'), 'base' => 'vc_column_text', 'icon' => 'icon-wpb-layer-shape-text', 'wrapper_class' => 'clearfix', 'category' => __('Content', 'js_composer'), 'description' => __('A block of text with WYSIWYG editor', 'js_composer'), 'params' => array(array('type' => 'textarea_html', 'holder' => 'div', 'heading' => __('Text', 'js_composer'), 'param_name' => 'content', 'value' => __('<p>I am text block. Click edit button to change this text. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Ut elit tellus, luctus nec ullamcorper mattis, pulvinar dapibus leo.</p>', 'js_composer')), $vc_add_css_animation, array('type' => 'textfield', 'heading' => __('Extra class name', 'js_composer'), 'param_name' => 'el_class', 'description' => __('Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer')), array('type' => 'css_editor', 'heading' => __('CSS box', 'js_composer'), 'param_name' => 'css', 'group' => __('Design Options', 'js_composer')))));
include_once 'shortcode-vc-icon-element.php';
/* Separator (Divider)
---------------------------------------------------------- */
$iconsParams = vc_map_integrate_shortcode('vc_icon', 'i_', __('Icon', 'js_composer'), array('exclude' => array('align', 'css', 'el_class', 'link', 'css_animation')), array('element' => 'add_icon', 'value' => 'true'));
// populate integrated vc_icons params.
if (is_array($iconsParams) && !empty($iconsParams)) {
foreach ($iconsParams as $key => $param) {
if (is_array($param) && !empty($param)) {
if (isset($param['admin_label'])) {
// remove admin label
unset($iconsParams[$key]['admin_label']);
}
}
}
}
$vcSeparatorParams = array_merge(array(array('type' => 'dropdown', 'heading' => __('Color', 'js_composer'), 'param_name' => 'color', 'value' => array_merge(getVcShared('colors'), array(__('Custom color', 'js_composer') => 'custom')), 'std' => 'grey', 'description' => __('Select color of separator.', 'js_composer'), 'param_holder_class' => 'vc_colored-dropdown'), array('type' => 'dropdown', 'heading' => __('Alignment', 'js_composer'), 'param_name' => 'align', 'value' => array(__('Center', 'js_composer') => 'align_center', __('Left', 'js_composer') => 'align_left', __('Right', 'js_composer') => 'align_right'), 'description' => __('Select separator alignment.', 'js_composer')), array('type' => 'colorpicker', 'heading' => __('Custom Border Color', 'js_composer'), 'param_name' => 'accent_color', 'description' => __('Select border color for your element.', 'js_composer'), 'dependency' => array('element' => 'color', 'value' => array('custom'))), array('type' => 'dropdown', 'heading' => __('Style', 'js_composer'), 'param_name' => 'style', 'value' => getVcShared('separator styles'), 'description' => __('Separator display style.', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Border width', 'js_composer'), 'param_name' => 'border_width', 'value' => getVcShared('separator border widths'), 'description' => __('Select border width (pixels).', 'js_composer'))), array(array('type' => 'dropdown', 'heading' => __('Element width', 'js_composer'), 'param_name' => 'el_width', 'value' => getVcShared('separator widths'), 'description' => __('Select separator width (percentage).', 'js_composer')), array('type' => 'textfield', 'heading' => __('Extra class name', 'js_composer'), 'param_name' => 'el_class', 'description' => __('Style particular content element differently - add a class name and refer to it in custom CSS.', 'js_composer')), array('type' => 'css_editor', 'heading' => __('CSS box', 'js_composer'), 'param_name' => 'css', 'group' => __('Design Options', 'js_composer'))));
vc_map(array('name' => __('Separator', 'js_composer'), 'base' => 'vc_separator', 'icon' => 'icon-wpb-ui-separator', 'show_settings_on_create' => true, 'category' => __('Content', 'js_composer'), 'description' => __('Horizontal separator line', 'js_composer'), 'params' => $vcSeparatorParams));
/* Textual block
---------------------------------------------------------- */
开发者ID:swc-dng,项目名称:swcsandbox,代码行数:31,代码来源:map.php
示例8: vc_pixel_icons
<?php
/**
* New button implementation
* array_merge is needed due to merging other shortcode data into params.
* @since 4.5
*/
$pixel_icons = vc_pixel_icons();
require_once vc_path_dir('CONFIG_DIR', 'content/vc-icon-element.php');
$icons_params = vc_map_integrate_shortcode(vc_icon_element_params(), 'i_', '', array('include_only_regex' => '/^(type|icon_\\w*)/'), array('element' => 'add_icon', 'value' => 'true'));
// populate integrated vc_icons params.
if (is_array($icons_params) && !empty($icons_params)) {
foreach ($icons_params as $key => $param) {
if (is_array($param) && !empty($param)) {
if ('i_type' === $param['param_name']) {
// append pixelicons to dropdown
$icons_params[$key]['value'][__('Pixel', 'js_composer')] = 'pixelicons';
}
if (isset($param['admin_label'])) {
// remove admin label
unset($icons_params[$key]['admin_label']);
}
}
}
}
$params = array_merge(array(array('type' => 'textfield', 'heading' => __('Text', 'js_composer'), 'param_name' => 'title', 'value' => __('Text on the button', 'js_composer')), array('type' => 'vc_link', 'heading' => __('URL (Link)', 'js_composer'), 'param_name' => 'link', 'description' => __('Add link to button.', 'js_composer')), array('type' => 'dropdown', 'heading' => __('Style', 'js_composer'), 'description' => __('Select button display style.', 'js_composer'), 'param_name' => 'style', 'value' => array(__('Modern', 'js_composer') => 'modern', __('Classic', 'js_composer') => 'classic', __('Flat', 'js_composer') => 'flat', __('Outline', 'js_composer') => 'outline', __('3d', 'js_composer') => '3d', __('Custom', 'js_composer') => 'custom', __('Outline custom', 'js_composer') => 'outline-custom', __('Gradient', 'js_composer') => 'gradient', __('Gradient Custom', 'js_composer') => 'gradient-custom')), array('type' => 'dropdown', 'heading' => __('Gradient Color 1', 'js_composer'), 'param_name' => 'gradient_color_1', 'description' => __('Select first color for gradient.', 'js_composer'), 'param_holder_class' => 'vc_colored-dropdown vc_btn3-colored-dropdown', 'value' => getVcShared('colors-dashed'), 'std' => 'turquoise', 'dependency' => array('element' => 'style', 'value' => array('gradient')), 'edit_field_class' => 'vc_col-sm-6'), array('type' => 'dropdown', 'heading' => __('Gradient Color 2', 'js_composer'), 'param_name' => 'gradient_color_2', 'description' => __('Select second color for gradient.', 'js_composer'), 'param_holder_class' => 'vc_colored-dropdown vc_btn3-colored-dropdown', 'value' => getVcShared('colors-dashed'), 'std' => 'blue', 'dependency' => array('element' => 'style', 'value' => array('gradient')), 'edit_field_class' => 'vc_col-sm-6'), array('type' => 'colorpicker', 'heading' => __('Gradient Color 1', 'js_composer'), 'param_name' => 'gradient_custom_color_1', 'description' => __('Select first color for gradient.', 'js_composer'), 'param_holder_class' => 'vc_colored-dropdown vc_btn3-colored-dropdown', 'value' => '#dd3333', 'dependency' => array('element' => 'style', 'value' => array('gradient-custom')), 'edit_field_class' => 'vc_col-sm-4'), array('type' => 'colorpicker', 'heading' => __('Gradient Color 2', 'js_composer'), 'param_name' => 'gradient_custom_color_2', 'description' => __('Select second color for gradient.', 'js_composer'), 'param_holder_class' => 'vc_colored-dropdown vc_btn3-colored-dropdown', 'value' => '#eeee22', 'dependency' => array('element' => 'style', 'value' => array('gradient-custom')), 'edit_field_class' => 'vc_col-sm-4'), array('type' => 'colorpicker', 'heading' => __('Button Text Color', 'js_composer'), 'param_name' => 'gradient_text_color', 'description' => __('Select button text color.', 'js_composer'), 'param_holder_class' => 'vc_colored-dropdown vc_btn3-colored-dropdown', 'value' => '#ffffff', 'dependency' => array('element' => 'style', 'value' => array('gradient-custom')), 'edit_field_class' => 'vc_col-sm-4'), array('type' => 'colorpicker', 'heading' => __('Background', 'js_composer'), 'param_name' => 'custom_background', 'description' => __('Select custom background color for your element.', 'js_composer'), 'dependency' => array('element' => 'style', 'value' => array('custom')), 'edit_field_class' => 'vc_col-sm-6', 'std' => '#ededed'), array('type' => 'colorpicker', 'heading' => __('Text', 'js_composer'), 'param_name' => 'custom_text', 'description' => __('Select custom text color for your element.', 'js_composer'), 'dependency' => array('element' => 'style', 'value' => array('custom')), 'edit_field_class' => 'vc_col-sm-6', 'std' => '#666'), array('type' => 'colorpicker', 'heading' => __('Outline and Text', 'js_composer'), 'param_name' => 'outline_custom_color', 'description' => __('Select outline and text color for your element.', 'js_composer'), 'dependency' => array('element' => 'style', 'value' => array('outline-custom')), 'edit_field_class' => 'vc_col-sm-4', 'std' => '#666'), array('type' => 'colorpicker', 'heading' => __('Hover background', 'js_composer'), 'param_name' => 'outline_custom_hover_background', 'description' => __('Select hover background color for your element.', 'js_composer'), 'dependency' => array('element' => 'style', 'value' => array('outline-custom')), 'edit_field_class' => 'vc_col-sm-4', 'std' => '#666'), array('type' => 'colorpicker', 'heading' => __('Hover text', 'js_composer'), 'param_name' => 'outline_custom_hover_text', 'description' => __('Select hover text color for your element.', 'js_composer'), 'dependency' => array('element' => 'style', 'value' => array('outline-custom')), 'edit_field_class' => 'vc_col-sm-4', 'std' => '#fff'), array('type' => 'dropdown', 'heading' => __('Shape', 'js_composer'), 'description' => __('Select button shape.', 'js_composer'), 'param_name' => 'shape', 'value' => array(__('Rounded', 'js_composer') => 'rounded', __('Square', 'js_composer') => 'square', __('Round', 'js_composer') => 'round')), array('type' => 'dropdown', 'heading' => __('Color', 'js_composer'), 'param_name' => 'color', 'description' => __('Select button color.', 'js_composer'), 'param_holder_class' => 'vc_colored-dropdown vc_btn3-colored-dropdown', 'value' => array(__('Classic Grey', 'js_composer') => 'default', __('Classic Blue', 'js_composer') => 'primary', __('Classic Turquoise', 'js_composer') => 'info', __('Classic Green', 'js_composer') => 'success', __('Classic Orange', 'js_composer') => 'warning', __('Classic Red', 'js_composer') => 'danger', __('Classic Black', 'js_composer') => 'inverse') + getVcShared('colors-dashed'), 'std' => 'grey', 'dependency' => array('element' => 'style', 'value_not_equal_to' => array('custom', 'outline-custom', 'gradient', 'gradient-custom'))), array('type' => 'dropdown', 'heading' => __('Size', 'js_composer'), 'param_name' => 'size', 'description' => __('Select button display size.', 'js_composer'), 'std' => 'md', 'value' => getVcShared('sizes')), array('type' => 'dropdown', 'heading' => __('Alignment', 'js_composer'), 'param_name' => 'align', 'description' => __('Select button alignment.', 'js_composer'), 'value' => array(__('Inline', 'js_composer') => 'inline', __('Left', 'js_composer') => 'left', __('Right', 'js_composer') => 'right', __('Center', 'js_composer') => 'center')), array('type' => 'checkbox', 'heading' => __('Set full width butt
|
请发表评论