• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP getVcShared函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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

示例1: getMediaCommonAtts

 public static function getMediaCommonAtts()
 {
     if (self::$mediaGrid) {
         return self::$mediaGrid;
     }
     if (is_null(self::$btn3Params) && is_null(self::$gridColsList)) {
         self::initData();
     }
     self::$mediaGrid = array_merge(array(array('type' => 'attach_images', 'heading' => __('Images', 'js_composer'), 'param_name' => 'include', 'description' => __('Select images from media library.', 'js_composer')), 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', 'description' => __('Select display style for grid.', 'js_composer')), 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'), array('type' => 'dropdown', 'heading' => __('Grid elements per row', 'js_composer'), 'param_name' => 'element_width', 'value' => self::$gridColsList, 'std' => '4', 'edit_field_class' => 'vc_col-sm-6', 'description' => __('Select number of single grid elements per row.', 'js_composer')), 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' => '5', 'description' => __('Select gap between grid elements.', 'js_composer'), 'edit_field_class' => 'vc_col-sm-6'), 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')), 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')), 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'))), 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')), 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')), 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')), 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')), 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')), 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'))), 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'))), 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')), 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')), 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' => 'mediaGrid_Default'), array('type' => 'vc_grid_id', 'param_name' => 'grid_id'), array('type' => 'css_editor', 'heading' => __('CSS box', 'js_composer'), 'param_name' => 'css', 'group' => __('Design Options', 'js_composer'))), self::$btn3Params, array(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')), 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')), 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'))), array('type' => 'animation_style', 'heading' => __('Initial loading animation', 'js_composer'), 'param_name' => 'initial_loading_animation', 'value' => 'fadeIn', 'settings' => array('type' => array('in', 'other')), 'description' => __('Select initial loading animation for grid element.', 'js_composer'))));
     self::$mediaGrid = array_merge(self::$mediaGrid);
     return self::$mediaGrid;
 }
开发者ID:ksan5835,项目名称:maadithottam,代码行数:12,代码来源:class-vc-grids-common.php


示例2: CruxStore_Icon_map

function CruxStore_Icon_map($group = false, $prefix = '', $default = 'fa fa-adjust', $remove = false)
{
    if ($remove) {
        $shape_arr = array();
    } else {
        $shape_arr = array(array('type' => 'dropdown', 'heading' => __('Background shape', 'js_composer'), 'param_name' => 'background_style', 'value' => array(__('None', 'js_composer') => '', __('Circle', 'js_composer') => 'rounded', __('Square', 'js_composer') => 'boxed', __('Rounded', 'js_composer') => 'rounded-less', __('Outline Circle', 'js_composer') => 'rounded-outline', __('Outline Square', 'js_composer') => 'boxed-outline', __('Outline Rounded', 'js_composer') => 'rounded-less-outline'), 'description' => __('Select background shape and style for icon.', 'js_composer'), 'dependency' => array("element" => "type", "value" => array('icon', 'svg')), "admin_label" => true), array('type' => 'dropdown', 'heading' => __('Background color', 'js_composer'), 'param_name' => 'background_color', 'value' => array_merge(array(esc_html__('Accent color', 'cruxstore') => 'accent'), getVcShared('colors'), array(__('Custom color', 'js_composer') => 'custom')), 'std' => 'grey', 'description' => __('Select background color for icon.', 'js_composer'), 'param_holder_class' => 'vc_colored-dropdown', 'dependency' => array('element' => 'background_style', 'not_empty' => true)), array('type' => 'colorpicker', 'heading' => __('Custom background color', 'js_composer'), 'param_name' => 'custom_background_color', 'description' => __('Select custom icon background color.', 'js_composer'), 'dependency' => array('element' => 'background_color', 'value' => 'custom')), array('type' => 'dropdown', 'heading' => __('Background color on hover', 'js_composer'), 'param_name' => 'background_color_hover', 'value' => array_merge(array(esc_html__('Default', 'js_composer') => 'default'), array(esc_html__('Accent color', 'cruxstore') => 'accent'), getVcShared('colors'), array(__('Custom color', 'js_composer') => 'custom')), 'std' => '', 'description' => __('Select background color for icon.', 'js_composer'), 'param_holder_class' => 'vc_colored-dropdown', 'dependency' => array('element' => 'background_style', 'not_empty' => true)), array('type' => 'colorpicker', 'heading' => __('Custom background color on hover', 'js_composer'), 'param_name' => 'custom_background_color_hover', 'description' => __('Select custom icon background color.', 'js_composer'), 'dependency' => array('element' => 'background_color_hover', 'value' => 'custom')));
    }
    $arr = array_merge(array(array('type' => 'dropdown', 'heading' => esc_html__('Icon to display', 'cruxstore'), 'param_name' => 'type', 'value' => array(esc_html__('Font Icon', 'cruxstore') => 'icon', esc_html__('Svg Icon', 'cruxstore') => 'svg', esc_html__('Image Icon', 'cruxstore') => 'image'), 'description' => esc_html__('Select your layout.', 'cruxstore'), "admin_label" => true), array('type' => 'attach_image', 'heading' => esc_html__('Image Thumbnail', 'cruxstore'), 'param_name' => 'image', 'dependency' => array('element' => 'type', 'value' => array('image')), 'description' => esc_html__('Select image from media library.', 'js_composer')), array('type' => 'textarea_raw_html', 'heading' => __('SVG HTML', 'js_composer'), 'param_name' => 'svg', 'description' => __('Enter your SVG content.', 'cruxstore'), 'dependency' => array('element' => 'type', 'value' => array('svg')), 'value' => base64_encode('')), array("type" => "cruxstore_icons", 'heading' => esc_html__('Choose your icon', 'js_composer'), 'param_name' => 'icon', "value" => $default, 'description' => esc_html__('Use existing font icon or upload a custom image.', 'cruxstore'), 'dependency' => array("element" => "type", "value" => array('icon'))), array('type' => 'dropdown', 'heading' => esc_html__('Icon color', 'js_composer'), 'param_name' => 'color', 'value' => array_merge(array(esc_html__('Default', 'js_composer') => 'default'), array(esc_html__('Accent color', 'cruxstore') => 'accent'), getVcShared('colors'), array(esc_html__('Custom color', 'js_composer') => 'custom')), 'description' => esc_html__('Select icon color.', 'js_composer'), 'param_holder_class' => 'vc_colored-dropdown', 'dependency' => array("element" => "type", "value" => array('icon', 'svg')), "admin_label" => true), array('type' => 'colorpicker', 'heading' => esc_html__('Custom Icon Color', 'js_composer'), 'param_name' => 'custom_color', 'description' => esc_html__('Select custom icon color.', 'js_composer'), 'dependency' => array('element' => 'color', 'value' => 'custom')), array('type' => 'dropdown', 'heading' => esc_html__('Icon color on Hover', 'js_composer'), 'param_name' => 'color_hover', 'value' => array_merge(array(esc_html__('Default', 'js_composer') => 'default'), array(esc_html__('Accent color', 'cruxstore') => 'accent'), getVcShared('colors'), array(esc_html__('Custom color', 'js_composer') => 'custom')), 'description' => esc_html__('Select icon color hover.', 'js_composer'), 'param_holder_class' => 'vc_colored-dropdown', 'dependency' => array("element" => "type", "value" => array('icon', 'svg')), "admin_label" => true), array('type' => 'colorpicker', 'heading' => esc_html__('Custom Icon Color on hover', 'js_composer'), 'param_name' => 'custom_color_hover', 'description' => esc_html__('Select custom icon color hover.', 'js_composer'), 'dependency' => array('element' => 'color_hover', 'value' => 'custom'))), $shape_arr, array(array('type' => 'dropdown', 'heading' => esc_html__('Size', 'js_composer'), 'param_name' => 'size', 'value' => array_merge(getVcShared('sizes'), array('Extra Large' => 'xl')), 'std' => 'md', 'description' => esc_html__('Icon size.', 'js_composer'), "admin_label" => true)));
    if ($group) {
        foreach ($arr as &$item) {
            $item['group'] = esc_html__('Icon', 'cruxstore');
            if ($prefix) {
                $item['param_name'] = $prefix . $item['param_name'];
                if (isset($item['dependency'])) {
                    $item['dependency']['element'] = $prefix . $item['dependency']['element'];
                }
            }
        }
    }
    return $arr;
}
开发者ID:websideas,项目名称:Mondova,代码行数:21,代码来源:js_composer_function.php


示例3: add_custom_theme_vc_params

function add_custom_theme_vc_params()
{
    // Old element color structure
    // ...............................................................
    // Visual Composer color values
    $vc_colors = array(__("Grey", "js_composer") => "wpb_button", __("Blue", "js_composer") => "btn-primary", __("Turquoise", "js_composer") => "btn-info", __("Green", "js_composer") => "btn-success", __("Orange", "js_composer") => "btn-warning", __("Red", "js_composer") => "btn-danger", __("Black", "js_composer") => "btn-inverse");
    // Custom color values
    $theme_custom_colors = array(__("Theme Default", "framework") => "theme-default", __("Theme Accent Color", "framework") => "accent-primary");
    // Merged all colors
    $all_colors = array_merge((array) $theme_custom_colors, (array) $vc_colors);
    // Updated element color structure
    // ...............................................................
    // Visual Composer color values
    $vc_shared_colors = function_exists('getVcShared') ? getVcShared("colors") : array();
    // Custom color values
    $theme_custom_shared_colors = array(__("Theme Default", "framework") => "theme-default", __("Theme Accent Color", "framework") => "accent-primary");
    // Merged all colors
    $all_shared_colors = array_merge((array) $theme_custom_shared_colors, (array) $vc_shared_colors);
    // Apply updtes to default VC elements using add param function
    // ===============================================================
    if (function_exists('vc_add_param')) {
        // Add custom progress bar colors
        // ===============================================================
        // Add parameters to 'vc_progress_bar'
        // ...............................................................
        $base = 'vc_progress_bar';
        $extraParams = array(array("type" => "dropdown", "heading" => __("Bar color", "js_composer"), "param_name" => "bgcolor", "value" => array_merge(array(__("Theme Accent Color", "js_composer") => "accent-primary"), (array) $vc_colors), "description" => __("Select bar background color.", "js_composer"), "admin_label" => true));
        foreach ($extraParams as $params) {
            vc_add_param($base, $params);
        }
        // Add custom button colors
        // ===============================================================
        // Add parameters to 'vc_button' (Button)
        // ...............................................................
        $base = 'vc_button';
        $extraParams = array(array("type" => "dropdown", "heading" => __("Color", "js_composer"), "param_name" => "color", "value" => $all_colors, "description" => __("Button color.", "js_composer"), "param_holder_class" => 'vc-colored-dropdown'));
        foreach ($extraParams as $params) {
            vc_add_param($base, $params);
        }
        // Add parameters to 'vc_button2' (Button 2)
        // ...............................................................
        /*$base = 'vc_button2';
        		$extraParams = array(
        			array(
        				"type" => "dropdown",
        				"heading" => __("Color", "js_composer"),
        				"param_name" => "color",
        				"value" => $all_shared_colors,
        				"description" => __("Button color.", "js_composer"),
        				"param_holder_class" => 'vc-colored-dropdown'
        			)
        		);
        		foreach ($extraParams as $params) {
        			vc_add_param( $base, $params );
        		}*/
        // Add parameters to 'vc_cta_button' (Call to Action)
        // ...............................................................
        $base = 'vc_cta_button';
        $extraParams = array(array("type" => "dropdown", "heading" => __("Color", "js_composer"), "param_name" => "color", "value" => $all_colors, "description" => __("Button color.", "js_composer"), "param_holder_class" => 'vc-colored-dropdown'));
        foreach ($extraParams as $params) {
            vc_add_param($base, $params);
        }
        // Add parameters to 'vc_cta_button2' (Call to Action 2)
        // ...............................................................
        /*$base = 'vc_cta_button2'; 
        		$extraParams = array(
        			array(
        				"type" => "dropdown",
        				"heading" => __("Color", "js_composer"),
        				"param_name" => "color",
        				"value" => $all_shared_colors,
        				"description" => __("Button color.", "js_composer"),
        				"param_holder_class" => 'vc-colored-dropdown'
        			)
        		);
        		foreach ($extraParams as $params) {
        			vc_add_param( $base, $params );
        		}*/
        // Add custom row options
        // ===============================================================
        // Add parameters to 'vc_row'
        $base = 'vc_row';
        $extraParams = array(array("type" => "checkbox", "param_name" => "bg_parallax", "value" => array(__('Enable parallax effect', 'framework') => 'true'), "description" => __("Make the background image have a parallax scrolling effect.", "framework")), array("type" => "dropdown", "class" => "", "heading" => __("Scroll Offset (inertia)", 'framework'), "param_name" => "inertia", "value" => array(1 => '0.1', 2 => '0.2', 3 => '0.3', 4 => '0.4', 5 => '0.5', 6 => '0.6', 7 => '0.7', 8 => '0.8', 9 => '0.9'), "description" => __("Specify the offset speed of the parallax effect. The lower the number the less the background moves relative to browser window.", 'framework')), array("type" => "textfield", "admin_label" => true, "heading" => __("Google Maps Url", "framework"), "param_name" => "bg_maps", "description" => __("Instead of a background image, show a gorgeous full width google map. Parallax effect won't apply here.", "framework")), array("type" => "textfield", "admin_label" => true, "heading" => __("Google Maps Height", "framework"), "param_name" => "bg_maps_height", "description" => __("Specify the height of the maps. (default 200px)", "framework")), array("type" => "textfield", "admin_label" => true, "heading" => __("Google Maps Zoom Level", "framework"), "param_name" => "bg_maps_zoom", "description" => __("Specify the zoom level for the maps. The higher the number the closer up it gets zoomed in. (Range 1 - 19, 17 by default)", "framework")), array("type" => "checkbox", "param_name" => "bg_maps_scroll", "value" => array(__('Google Maps Mousewheel Scrolling', 'framework') => 'true'), "description" => __("Should the user be able to scroll the maps with his mousewheel? Not recommended for one page layouts.", 'framework')), array("type" => "checkbox", "param_name" => "bg_maps_infobox", "value" => array(__('Google Maps Show info box', 'framework') => 'true'), "description" => __("Shows an information box right next to the pin that locates the address.", "framework")), array("type" => "textarea", "admin_label" => true, "heading" => __("Google Maps Info Box Content", "framework"), "param_name" => "bg_maps_infobox_content", "description" => __("Enter the content that should be shown in the information box of the location. If empty, the address will be shown. Basic HTML allowed.", "framework")));
        foreach ($extraParams as $params) {
            vc_add_param($base, $params);
        }
        // Update 'vc_row' to include custom shortcode template and re-map shortcode
        $sc = vc_map_update('vc_row', array('html_template' => locate_template('templates/vc_templates/vc_row.php')));
        // Remove default vc_row shortcode
        vc_remove_element('vc_row');
        // Remap shortcode, identical to original, but with custom template path
        vc_map($sc['vc_row']);
    }
}
开发者ID:ArnaudGuillou,项目名称:SiteESBVolley,代码行数:94,代码来源:js_composer-custom.php


示例4: die

<?php

if (!defined('ABSPATH')) {
    die('-1');
}
return array('name' => __('Accordion', 'js_composer'), 'base' => 'vc_tta_accordion', 'icon' => 'icon-wpb-ui-accordion', 'is_container' => true, 'show_settings_on_create' => false, 'as_parent' => array('only' => 'vc_tta_section'), 'category' => __('Content', 'js_composer'), 'description' => __('Collapsible content panels', 'js_composer'), 'params' => array(array('type' => 'textfield', 'param_name' => 'title', 'heading' => __('Widget title', 'js_composer'), 'description' => __('Enter text used as widget title (Note: located above content element).', 'js_composer')), array('type' => 'dropdown', 'param_name' => 'style', 'value' => array(__('Classic', 'js_composer') => 'classic', __('Modern', 'js_composer') => 'modern', __('Flat', 'js_composer') => 'flat', __('Outline', 'js_composer') => 'outline'), 'heading' => __('Style', 'js_composer'), 'description' => __('Select accordion display style.', 'js_composer')), array('type' => 'dropdown', 'param_name' => 'shape', 'value' => array(__('Rounded', 'js_composer') => 'rounded', __('Square', 'js_composer') => 'square', __('Round', 'js_composer') => 'round'), 'heading' => __('Shape', 'js_composer'), 'description' => __('Select accordion shape.', 'js_composer')), array('type' => 'dropdown', 'param_name' => 'color', 'value' => getVcShared('colors-dashed'), 'std' => 'grey', 'heading' => __('Color', 'js_composer'), 'description' => __('Select accordion color.', 'js_composer'), 'param_holder_class' => 'vc_colored-dropdown'), array('type' => 'checkbox', 'param_name' => 'no_fill', 'heading' => __('Do not fill content area?', 'js_composer'), 'description' => __('Do not fill content area with color.', 'js_composer')), array('type' => 'dropdown', 'param_name' => 'spacing', 'value' => array(__('None', 'js_composer') => '', '1px' => '1', '2px' => '2', '3px' => '3', '4px' => '4', '5px' => '5', '10px' => '10', '15px' => '15', '20px' => '20', '25px' => '25', '30px' => '30', '35px' => '35'), 'heading' => __('Spacing', 'js_composer'), 'description' => __('Select accordion spacing.', 'js_composer')), array('type' => 'dropdown', 'param_name' => 'gap', 'value' => array(__('None', 'js_composer') => '', '1px' => '1', '2px' => '2', '3px' => '3', '4px' => '4', '5px' => '5', '10px' => '10', '15px' => '15', '20px' => '20', '25px' => '25', '30px' => '30', '35px' => '35'), 'heading' => __('Gap', 'js_composer'), 'description' => __('Select accordion gap.', 'js_composer')), array('type' => 'dropdown', 'param_name' => 'c_align', 'value' => array(__('Left', 'js_composer') => 'left', __('Right', 'js_composer') => 'right', __('Center', 'js_composer') => 'center'), 'heading' => __('Alignment', 'js_composer'), 'description' => __('Select accordion section title alignment.', 'js_composer')), array('type' => 'dropdown', 'param_name' => 'autoplay', 'value' => array(__('None', 'js_composer') => 'none', '1' => '1', '2' => '2', '3' => '3', '4' => '4', '5' => '5', '10' => '10', '20' => '20', '30' => '30', '40' => '40', '50' => '50', '60' => '60'), 'std' => 'none', 'heading' => __('Autoplay', 'js_composer'), 'description' => __('Select auto rotate for accordion in seconds (Note: disabled by default).', 'js_composer')), array('type' => 'checkbox', 'param_name' => 'collapsible_all', 'heading' => __('Allow collapse all?', 'js_composer'), 'description' => __('Allow collapse all accordion sections.', 'js_composer')), array('type' => 'dropdown', 'param_name' => 'c_icon', 'value' => array(__('None', 'js_composer') => '', __('Chevron', 'js_composer') => 'chevron', __('Plus', 'js_composer') => 'plus', __('Triangle', 'js_composer') => 'triangle'), 'std' => 'plus', 'heading' => __('Icon', 'js_composer'), 'description' => __('Select accordion navigation icon.', 'js_composer')), array('type' => 'dropdown', 'param_name' => 'c_position', 'value' => array(__('Left', 'js_composer') => 'left', __('Right', 'js_composer') => 'right'), 'dependency' => array('element' => 'c_icon', 'not_empty' => true), 'heading' => __('Position', 'js_composer'), 'description' => __('Select accordion navigation icon position.', 'js_composer')), array('type' => 'textfield', 'param_name' => 'active_section', 'heading' => __('Active section', 'js_composer'), 'value' => 1, 'description' => __('Enter active section number (Note: to have all sections closed on initial load enter non-existing number).', 'js_composer')), 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')), array('type' => 'css_editor', 'heading' => __('CSS box', 'js_composer'), 'param_name' => 'css', 'group' => __('Design Options', 'js_composer'))), 'js_view' => 'VcBackendTtaAccordionView', 'custom_markup' => '
<div class="vc_tta-container" data-vc-action="collapseAll">
	<div class="vc_general vc_tta vc_tta-accordion vc_tta-color-backend-accordion-white vc_tta-style-flat vc_tta-shape-rounded vc_tta-o-shape-group vc_tta-controls-align-left vc_tta-gap-2">
	   <div class="vc_tta-panels vc_clearfix {{container-class}}">
	      {{ content }}
	      <div class="vc_tta-panel vc_tta-section-append">
	         <div class="vc_tta-panel-heading">
	            <h4 class="vc_tta-panel-title vc_tta-controls-icon-position-left">
	               <a href="javascript:;" aria-expanded="false" class="vc_tta-backend-add-control">
	                   <span class="vc_tta-title-text">' . __('Add Section', 'js_composer') . '</span>
	                    <i class="vc_tta-controls-icon vc_tta-controls-icon-plus"></i>
					</a>
	            </h4>
	         </div>
	      </div>
	   </div>
	</div>
</div>', 'default_content' => '[vc_tta_section title="' . sprintf('%s %d', __('Section', 'js_composer'), 1) . '"][/vc_tta_section][vc_tta_section title="' . sprintf('%s %d', __('Section', 'js_composer'), 2) . '"][/vc_tta_section]');
开发者ID:k2jysy,项目名称:wedev,代码行数:23,代码来源:shortcode-vc-tta-accordion.php


示例5: array

$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);
// Get suggestion(find). Must return an array
add_filter('vc_autocomplete_vc_basic_grid_include_render', 'vc_include_field_render', 10, 1);
// Render exact product. Must return an array (label,value)
add_filter('vc_autocomplete_vc_masonry_grid_include_callback', 'vc_include_field_search', 10, 1);
// Get suggestion(find). Must return an array
add_filter('vc_autocomplete_vc_masonry_grid_include_render', 'vc_include_field_render', 10, 1);
// Render exact product. Must return an array (label,value)
// Narrow data taxonomies
add_filter('vc_autocomplete_vc_basic_grid_taxonomies_callback', 'vc_autocomplete_taxonomies_field_search', 10, 1);
add_filter('vc_autocomplete_vc_basic_grid_taxonomies_render', 'vc_autocomplete_taxonomies_field_render', 10, 1);
add_filter('vc_autocomplete_vc_masonry_grid_taxonomies_callback', 'vc_autocomplete_taxonomies_field_search', 10, 1);
add_filter('vc_autocomplete_vc_masonry_grid_taxonomies_render', 'vc_autocomplete_taxonomies_field_render', 10, 1);
// Narrow data taxonomies for exclude_filter
add_filter('vc_autocomplete_vc_basic_grid_exclude_filter_callback', 'vc_autocomplete_taxonomies_field_search', 10, 1);
开发者ID:hikaram,项目名称:wee,代码行数:31,代码来源:vc-grids-common.php


示例6: vc_map

vc_map(array("name" => __("Carousel", 'vc_extend'), "base" => "vc_carousel", "class" => "", "icon" =&g 

鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP getVendorName函数代码示例发布时间:2022-05-15
下一篇:
PHP getVar函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap