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

PHP vc_remove_param函数代码示例

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

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



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

示例1: wps_vc_column_inner_shortcode

function wps_vc_column_inner_shortcode()
{
    vc_remove_param('vc_column_inner', 'css');
    vc_remove_param('vc_column_inner', 'offset');
    vc_remove_param('vc_column_inner', 'el_class');
    // vc_remove_param('vc_column__inner','full_height');
    // vc_remove_param('vc_column__inner','equal_height');
    // vc_remove_param('vc_column__inner','columns_placement');
    // vc_remove_param('vc_column__inner','content_placement');
    // vc_remove_param('vc_column__inner','video_bg');
    // vc_remove_param('vc_column__inner','parallax');
    // vc_remove_param('vc_column__inner','el_id');
    // vc_remove_param('vc_column__inner','video_bg_url');
    // vc_remove_param('vc_column__inner','video_bg_parallax');
    // vc_remove_param('vc_column__inner','parallax_image');
    // vc_remove_param('vc_column__inner','parallax_speed_bg');
    // vc_remove_param('vc_column__inner','parallax_speed_video');
    //Get VC gallery shortcode config
    //$shortcode_vc_gallery_tmp = WPBMap::getShortCode('vc_column');
    //Loop over config to find the condition we want to change
    //foreach($shortcode_vc_gallery_tmp['params'] as $key => $param)
    //{
    //
    //}
    //VC doesn't like even the thought of you changing the shortcode base, and errors out, so we unset it.
    //unset($shortcode_vc_gallery_tmp['base']);
    //Update the actual parameter
    //vc_map_update('vc_column', $shortcode_vc_gallery_tmp);
    $attributes = array(array('type' => 'wps_column_offset', 'heading' => __('Responsiveness', 'wps-prime'), 'param_name' => 'layout_width', 'group' => __('Responsive Options', 'wps-prime'), 'description' => __('Adjust column for different screen sizes. Control width, offset and visibility settings.', 'wps-prime')), array('type' => 'textfield', 'heading' => "Column item class", 'param_name' => 'class', 'admin_label' => true, 'value' => '', 'group' => esc_html__('Column item', 'wps-prime'), 'description' => __('Add optional CSS classes to the layout__item element', 'wps-prime')), array('type' => 'attach_image', 'heading' => "Bg Image", 'admin_label' => true, 'param_name' => 'inner_img', 'value' => '', 'group' => esc_html__('Inner element', 'wps-prime'), 'description' => __('Add image to be used as a background. Limit to 1 image', 'wps-prime')), array('type' => 'dropdown', 'heading' => "Background image size", 'param_name' => 'inner_img_size', 'admin_label' => true, 'value' => wps_image_sizes(), 'std' => 'full', 'group' => esc_html__('Inner element', 'wps-prime'), 'description' => __('Select background image size (image will be stretched)', 'wps-prime')), array('type' => 'textfield', 'heading' => "Column item inner element class", 'param_name' => 'inner_class', 'admin_label' => true, 'value' => '', 'group' => esc_html__('Inner element', 'wps-prime'), 'description' => __('Add optional CSS classes to the layout__item_inner element', 'wps-prime')), array('type' => 'checkbox', 'heading' => "Inner element turn off", 'param_name' => 'inner', 'admin_label' => true, 'value' => '', 'group' => esc_html__('Inner element', 'wps-prime'), 'description' => __('Turn off the inner element (by default true if inner_class is specified )', 'wps-prime')));
    vc_add_params('vc_column_inner', $attributes);
    vc_map_update('vc_column_inner', array('html_template' => locate_template('vc_templates/vc_column_inner.php')));
}
开发者ID:Zsolt-R,项目名称:wps-prime,代码行数:32,代码来源:wps-vc-column-inner.php


示例2: kt_add_option_to_vc

function kt_add_option_to_vc()
{
    $color_arr = array('vc_btn', 'vc_icon', 'vc_tta_accordion', 'vc_tta_tabs', 'vc_tta_tour');
    foreach ($color_arr as $item) {
        $button_colors = WPBMap::getParam($item, 'color');
        $button_colors['value'][esc_html__('Accent color', 'adroit')] = 'accent';
        vc_update_shortcode_param($item, $button_colors);
    }
    $background_arr = array('vc_icon');
    foreach ($background_arr as $item) {
        $button_colors = WPBMap::getParam($item, 'background_color');
        $button_colors['value'][esc_html__('Accent color', 'adroit')] = 'accent';
        vc_update_shortcode_param($item, $button_colors);
    }
    $image_styles = WPBMap::getParam('vc_single_image', 'style');
    $image_styles['value'][esc_html__('Border box', 'adroit')] = 'border-box';
    $image_styles['value'][esc_html__('Border box Left', 'adroit')] = 'border-left';
    $image_styles['value'][esc_html__('Border box Right', 'adroit')] = 'border-right';
    $image_styles['value'][esc_html__('Creative Left', 'adroit')] = 'creative-left';
    $image_styles['value'][esc_html__('Creative Right', 'adroit')] = 'creative-right';
    $image_styles['value'][esc_html__('Creative When hover', 'adroit')] = 'creative-hover';
    vc_update_shortcode_param('vc_single_image', $image_styles);
    $icon_btn = array('i_type', 'i_icon_fontawesome', 'i_icon_openiconic', 'i_icon_typicons', 'i_icon_entypo', 'i_icon_linecons', 'i_icon_pixelicons', 'css_animation', 'el_class');
    foreach ($icon_btn as $item) {
        vc_remove_param('vc_btn', $item);
    }
}
开发者ID:websideas,项目名称:aquila,代码行数:27,代码来源:js_composer_update.php


示例3: stm_update_existing_shortcodes

function stm_update_existing_shortcodes()
{
    if (function_exists('vc_add_params')) {
        vc_add_params('vc_gallery', array(array('type' => 'dropdown', 'heading' => __('Gallery type', STM_DOMAIN), 'param_name' => 'type', 'value' => array(__('Image grid', STM_DOMAIN) => 'image_grid', __('Slick slider', STM_DOMAIN) => 'slick_slider', __('Slick slider 2', STM_DOMAIN) => 'slick_slider_2')), array('type' => 'textfield', 'heading' => __('Thumbnail size', STM_DOMAIN), 'param_name' => 'thumbnail_size', 'dependency' => array('element' => 'type', 'value' => array('slick_slider_2'))), array('type' => 'css_editor', 'heading' => __('Css', STM_DOMAIN), 'param_name' => 'css', 'group' => __('Design options', STM_DOMAIN))));
        vc_add_params('vc_column_inner', array(array('type' => 'column_offset', 'heading' => __('Responsiveness', 'js_composer'), 'param_name' => 'offset', 'group' => __('Width & Responsiveness', 'js_composer'), 'description' => __('Adjust column for different screen sizes. Control width, offset and visibility settings.', 'js_composer'))));
        vc_add_params('vc_separator', array(array('type' => 'dropdown', 'heading' => __('Type', STM_DOMAIN), 'param_name' => 'type', 'value' => array(__('Type 1', STM_DOMAIN) => 'type_1', __('Type 2', STM_DOMAIN) => 'type_2')), array('type' => 'css_editor', 'heading' => __('Css', STM_DOMAIN), 'param_name' => 'css', 'group' => __('Design options', STM_DOMAIN))));
        vc_add_params('vc_video', array(array('type' => 'textfield', 'heading' => __('Iframe Link', STM_DOMAIN), 'param_name' => 'link'), array('type' => 'attach_image', 'heading' => __('Preview Image', STM_DOMAIN), 'param_name' => 'image')));
        vc_add_params('vc_wp_pages', array(array('type' => 'css_editor', 'heading' => __('Css', STM_DOMAIN), 'param_name' => 'css', 'group' => __('Design options', STM_DOMAIN))));
        vc_add_params('vc_basic_grid', array(array('type' => 'dropdown', 'heading' => __('Gap', 'js_composer'), 'param_name' => 'gap', 'value' => array(__('0px', 'js_composer') => '0', __('1px', 'js_composer') => '1', __('2px', 'js_composer') => '2', __('3px', 'js_composer') => '3', __('4px', 'js_composer') => '4', __('5px', 'js_composer') => '5', __('10px', 'js_composer') => '10', __('15px', 'js_composer') => '15', __('20px', 'js_composer') => '20', __('25px', 'js_composer') => '25', __('30px', 'js_composer') => '30', __('35px', 'js_composer') => '35', __('40px', 'js_composer') => '40', __('45px', 'js_composer') => '45', __('50px', 'js_composer') => '50', __('55px', 'js_composer') => '55', __('60px', 'js_composer') => '60'), 'std' => '30', 'description' => __('Select gap between grid elements.', 'js_composer'), 'edit_field_class' => 'vc_col-sm-6 vc_column')));
    }
    if (function_exists('vc_remove_param')) {
        vc_remove_param('vc_cta_button2', 'h2');
        vc_remove_param('vc_cta_button2', 'content');
        vc_remove_param('vc_cta_button2', 'btn_style');
        vc_remove_param('vc_cta_button2', 'color');
        vc_remove_param('vc_cta_button2', 'size');
        vc_remove_param('vc_cta_button2', 'css_animation');
    }
    if (function_exists('vc_remove_element')) {
        vc_remove_element("vc_cta_button");
        vc_remove_element("vc_posts_slider");
        vc_remove_element("vc_icon");
        vc_remove_element("vc_pinterest");
        vc_remove_element("vc_googleplus");
        vc_remove_element("vc_facebook");
        vc_remove_element("vc_tweetmeme");
    }
}
开发者ID:rinodung,项目名称:wordpress-demo,代码行数:28,代码来源:visual_composer.php


示例4: webnus_setup_vc_posts_grid

 function webnus_setup_vc_posts_grid()
 {
     vc_remove_param('vc_posts_grid', 'grid_layout');
     $vc_layout_sub_controls = array(array('link_post', __("Link to post", "js_composer")), array("no_link", __("No link", "js_composer")), array("link_image", __("Link to bigger image", "js_composer")));
     $attributes = array("type" => "sorted_list", "heading" => __("Teaser layout", "js_composer"), "param_name" => "grid_layout", "description" => __("Control teasers look. Enable blocks and place them in desired order. Note: This setting can be overrriden on post to post basis.", "js_composer"), "value" => "title,image,text", "options" => array(array('image', __('Thumbnail', "js_composer"), $vc_layout_sub_controls), array('title', __('Title', "js_composer"), $vc_layout_sub_controls), array('text', __('Text', "js_composer"), array(array('excerpt', __('Teaser/Excerpt', "js_composer")), array('text', __('Full content', "js_composer")))), array('meta_author', __('Metadata Author', "js_composer")), array('meta_category', __('Metadata Category', "js_composer")), array('meta_date', __('Metadata Date', "js_composer")), array('meta_comments', __('Metadata Comments', "js_composer"))));
     vc_add_param('vc_posts_grid', $attributes);
 }
开发者ID:bhuvanaurora,项目名称:wordpress-wed,代码行数:7,代码来源:setup_postgrid.php


示例5: wps_vc_column_text_shortcode

function wps_vc_column_text_shortcode()
{
    // Remove Default Parameters
    vc_remove_param('vc_column_text', 'css_animation');
    vc_remove_param('vc_column_text', 'css');
    vc_map_update('vc_column_text', array('html_template' => locate_template('vc_templates/vc_column_text.php')));
}
开发者ID:Zsolt-R,项目名称:wps-prime,代码行数:7,代码来源:wps-vc-column-text.php


示例6: something

function something()
{
    $icons = array('type' => 'dropdown', 'heading' => 'Icon library', 'value' => array('Font Awesome' => 'fontawesome', 'Open Iconic' => 'openiconic', 'Typicons' => 'typicons', 'Entypo' => 'entypo', 'Linecons' => 'linecons', 'Pixel' => 'pixelicons', 'Ion icons' => 'ionicons'), 'param_name' => 'i_type', 'description' => 'Select icon library.', 'dependency' => array('element' => 'add_icon', 'value' => 'true'), 'integrated_shortcode' => 'vc_icon', 'integrated_shortcode_field' => 'i_');
    $ionicons = array('type' => 'iconpicker', 'heading' => __('Icon', 'js_composer'), 'param_name' => 'i_icon_ionicons', 'settings' => array('emptyIcon' => false, 'type' => 'ionicons', 'source' => require_once 'ionicons.php'), 'dependency' => array('element' => 'i_type', 'value' => 'ionicons'), 'description' => __('Select icon from library.', 'js_composer'));
    vc_remove_param('vc_btn', 'i_type');
    vc_add_param('vc_btn', $icons);
    vc_add_param('vc_btn', $ionicons);
}
开发者ID:sebjon-bytbil,项目名称:BB.CMS,代码行数:8,代码来源:icons.php


示例7: deleteParam

 protected function deleteParam($name, $element)
 {
     if (is_array($element)) {
         foreach ($element as $value) {
             vc_remove_param($name, $value);
         }
     } else {
         vc_remove_param($name, $element);
     }
 }
开发者ID:jimmitjoo,项目名称:mnh,代码行数:10,代码来源:pagebuilder.php


示例8: ts_integrateWithVC

function ts_integrateWithVC()
{
    if (!function_exists('vc_map')) {
        return;
    }
    /*----------------------------------------------------------------------------*
     * Service
     *----------------------------------------------------------------------------*/
    vc_map(array('name' => __('Service', 'kreativa'), 'base' => 'icon', 'class' => '', 'category' => __('Content', 'kreativa'), 'admin_enqueue_js' => '', 'admin_enqueue_css' => '', "params" => array(array("type" => "textfield", "heading" => "Heading Text", "param_name" => "heading", "admin_label" => true, "value" => "", 'description' => 'The heading text that will be displayed at box top.'), array("type" => "dropdown", "heading" => "Heading Tag", "param_name" => "heading_tag", "value" => array("Default" => "", "h2" => "h2", "h3" => "h3", "h4" => "h4", "h5" => "h5", "h6" => "h6"), "description" => "The heading tag that will be used in the heading text."), array("type" => "dropdown", "class" => "", "heading" => __("Icon Family", 'kreativa'), "param_name" => "ico_family", "value" => array('Font Awesome' => '', 'Elegant Icons' => 'el el-', 'Custom' => 'custom'), "description" => __("Select the icon family.", 'kreativa')), array("type" => "textfield", "heading" => __("Custom Icon Class", 'kreativa'), "param_name" => "ico_custom", "description" => __("Type a custom icon class to be used in the icon.", 'kreativa'), 'dependency' => array('element' => 'ico_family', 'value' => 'custom')), array("type" => "textfield", "heading" => __("Icon Name", 'kreativa'), "param_name" => "ico", "description" => __("Type icon name without prefixes, e.g. cogs or eye.", 'kreativa')), array("type" => "textarea_html", "heading" => "Content", "param_name" => "content", "value" => "<li>Web Development</li><li>Security Research</li><li>Advanced Topics</li>", "description" => "The list that will be showed as the box content."), array("type" => "textfield", "heading" => __("Extra class name", 'kreativa'), "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.", 'kreativa')), array('type' => 'dropdown', 'heading' => __('Template', 'kreativa'), 'param_name' => 'template', 'admin_label' => true, 'value' => array(__('Default', 'kreativa') => 'style1', 'style1' => 'style1', 'style2' => 'style2', 'style3' => 'style3', 'style4' => 'style4', 'style5' => 'style5', 'style6' => 'style6', 'style7' => 'style7', 'style8' => 'style8'), 'description' => __('Select a default template to start and maybe customize it. Usually the templates are added by themes.', 'kreativa')))));
    /*----------------------------------------------------------------------------*
     * Title
     *----------------------------------------------------------------------------*/
    vc_map(array('name' => __('Title', 'kreativa'), 'base' => 'title', 'class' => '', 'category' => __('Kreativa', 'kreativa'), 'admin_enqueue_js' => '', 'admin_enqueue_css' => '', "params" => array(array("type" => "textfield", "heading" => "Heading Text", "param_name" => "heading", "admin_label" => true, "value" => "", 'description' => 'The text that will be used as heading.'), array("type" => "dropdown", "heading" => "Heading Tag", "param_name" => "heading_tag", "value" => array("Default" => "", "h2" => "h2", "h3" => "h3", "h4" => "h4", "h5" => "h5", "h6" => "h6"), "description" => "The heading tag that will be used in the heading text."), array('type' => 'dropdown', 'heading' => __('Align', 'kreativa'), 'param_name' => 'align', 'admin_label' => true, 'value' => array(__('Left', 'kreativa') => 'left', 'Right' => 'right', 'Center' => 'Center'), 'description' => __('Select a default template to start and maybe customize it. Usually the templates are added by themes.', 'kreativa')))));
    /*----------------------------------------------------------------------------*
     * Divider
     *----------------------------------------------------------------------------*/
    vc_map(array('name' => __('Divider', 'kreativa'), 'base' => 'divider', 'class' => '', 'category' => __('Kreativa', 'kreativa'), 'admin_enqueue_js' => '', 'admin_enqueue_css' => '', "params" => array(array("type" => "dropdown", "heading" => "Divider Style", "param_name" => "style", "value" => array("Normal" => "", "Dashed" => "br-dashed", "Dotted" => "br-dotted", "Unique" => "unique"), "description" => "The style of the divider."))));
    /*----------------------------------------------------------------------------*
     * Message
     *----------------------------------------------------------------------------*/
    vc_remove_param("vc_message", "el_class");
    vc_remove_param("vc_message", "css_animation");
    vc_remove_param("vc_message", "style");
    vc_add_param('vc_message', array("type" => "dropdown", "class" => "", "heading" => __("Message Box Type", 'kreativa'), "param_name" => "color", "value" => array("Notification" => 'notification', "Success" => 'success', "Danger" => 'danger', "Alert" => 'alert', "Custom" => 'custom'), "description" => __("Select the way message box will be displayed", 'kreativa')));
    vc_add_param('vc_message', array("type" => "textfield", "class" => "", "heading" => __("Font Awesome Icon", 'kreativa'), "param_name" => "icon", "value" => 'lightbulb-o', 'description' => 'Enter a font awesome icon class just name without fa-'));
    vc_add_param('vc_message', array("type" => "dropdown", "class" => "", "heading" => __("Message Box Type", 'kreativa'), "param_name" => "box_bg", "value" => array("White" => 'bg-white', "Black" => 'bg-black', "Blue" => 'bg-blue', "Dark Blue" => 'bg-dark-blue', "Light Blue" => 'bg-light-blue', "Turquoise Blue" => 'bg-turquoise-blue', "Gray" => 'bg-gray', "Dark Gray" => 'bg-dark-gray', "Periwinkle Gray" => 'bg-periwinkle-gray', "Botticelli Gray" => 'bg-botticelli-gray', "Light Gray" => 'bg-light-gray', "Silver" => 'bg-silver', "Orange" => 'bg-orange', "Dark Orange" => 'bg-dark-orange', "Bittersweet" => 'bg-bittersweet', "Green" => 'bg-green', "Dark Green" => 'bg-dark-green', "Turquoise" => 'bg-turquoise', "Purple" => 'bg-purple', "Dark Purple" => 'bg-dark-purple', "Pink" => 'bg-pink', "Cranberry" => 'bg-cranberry', "Yellow" => 'bg-yellow', "Red" => 'bg-red'), "description" => __("Select the way message box will be displayed", 'kreativa'), "dependency" => array('element' => 'color', 'value' => array('custom'))));
    vc_add_param('vc_message', array("type" => "dropdown", "class" => "", "heading" => __("Message Box Color", 'kreativa'), "param_name" => "box_color", "value" => array("White" => 'color-white', "Black" => 'color-black', "Blue" => 'color-blue', "Dark Blue" => 'color-dark-blue', "Light Blue" => 'color-light-blue', "Turquoise Blue" => 'color-turquoise-blue', "Gray" => 'color-gray', "Dark Gray" => 'color-dark-gray', "Periwinkle Gray" => 'color-periwinkle-gray', "Botticelli Gray" => 'color-botticelli-gray', "Light Gray" => 'color-light-gray', "Silver" => 'color-silver', "Orange" => 'color-orange', "Dark Orange" => 'color-dark-orange', "Bittersweet" => 'color-bittersweet', "Green" => 'color-green', "Dark Green" => 'color-dark-green', "Turquoise" => 'color-turquoise', "Purple" => 'color-purple', "Dark Purple" => 'color-dark-purple', "Pink" => 'color-pink', "Cranberry" => 'color-cranberry', "Yellow" => 'color-yellow', "Red" => 'color-red'), "description" => __("Select the way message box will be displayed", 'kreativa'), "dependency" => array('element' => 'color', 'value' => array('custom'))));
    vc_add_param('vc_message', array("type" => "dropdown", "class" => "", "heading" => __("Message Box Border Color", 'kreativa'), "param_name" => "box_br_color", "value" => array("White" => 'br-color-white', "Black" => 'br-color-black', "Blue" => 'br-color-blue', "Dark Blue" => 'br-color-dark-blue', "Light Blue" => 'br-color-light-blue', "Turquoise Blue" => 'br-color-turquoise-blue', "Gray" => 'br-color-gray', "Dark Gray" => 'br-color-dark-gray', "Periwinkle Gray" => 'br-color-periwinkle-gray', "Botticelli Gray" => 'br-color-botticelli-gray', "Light Gray" => 'br-color-light-gray', "Silver" => 'br-color-silver', "Orange" => 'br-color-orange', "Dark Orange" => 'br-color-dark-orange', "Bittersweet" => 'br-color-bittersweet', "Green" => 'br-color-green', "Dark Green" => 'br-color-dark-green', "Turquoise" => 'br-color-turquoise', "Purple" => 'br-color-purple', "Dark Purple" => 'br-color-dark-purple', "Pink" => 'br-color-pink', "Cranberry" => 'br-color-cranberry', "Yellow" => 'br-color-yellow', "Red" => 'br-color-red'), "description" => __("Select the way message box will be displayed", 'kreativa'), "dependency" => array('element' => 'color', 'value' => array('custom'))));
    vc_add_param('vc_message', array("type" => "dropdown", "class" => "", "heading" => __("Message Box Border Thickness", 'kreativa'), "param_name" => "box_br_thickness", "value" => array("Light" => 'br-light', "Semi Light" => 'br-semi-light', "Medium" => 'br-medium', "Semi Thick" => 'br-semi-thick', "Thick" => 'br-thick'), "description" => __("Select the way message box will be displayed", 'kreativa'), "dependency" => array('element' => 'color', 'value' => array('custom'))));
    vc_add_param('vc_message', array("type" => "dropdown", "class" => "", "heading" => __("Message Box Border Style", 'kreativa'), "param_name" => "box_br_style", "value" => array("Solid" => 'br-solid', "Dashed" => 'br-dashed', "Dotted" => 'br-dotted', "Double" => 'br-double'), "description" => __("Select the way message box will be displayed", 'kreativa'), "dependency" => array('element' => 'color', 'value' => array('custom'))));
    /*----------------------------------------------------------------------------*
     * Button
     *----------------------------------------------------------------------------*/
    vc_remove_param("vc_button", "el_class");
    vc_add_param('vc_button', array("type" => "dropdown", "class" => "", "heading" => __("Background", 'kreativa'), "param_name" => "color", "value" => array("Default" => "bg-blue", "White" => 'bg-white', "Black" => 'bg-black', "Blue" => 'bg-blue', "Dark Blue" => 'bg-dark-blue', "Light Blue" => 'bg-light-blue', "Turquoise Blue" => 'bg-turquoise-blue', "Gray" => 'bg-gray', "Dark Gray" => 'bg-dark-gray', "Periwinkle Gray" => 'bg-periwinkle-gray', "Botticelli Gray" => 'bg-botticelli-gray', "Light Gray" => 'bg-light-gray', "Silver" => 'bg-silver', "Orange" => 'bg-orange', "Dark Orange" => 'bg-dark-orange', "Bittersweet" => 'bg-bittersweet', "Green" => 'bg-green', "Dark Green" => 'bg-dark-green', "Turquoise" => 'bg-turquoise', "Purple" => 'bg-purple', "Dark Purple" => 'bg-dark-purple', "Pink" => 'bg-pink', "Cranberry" => 'bg-cranberry', "Yellow" => 'bg-yellow', "Red" => 'bg-red'), "description" => __("Background color of the button", 'kreativa')));
    vc_add_param('vc_button', array("type" => "dropdown", "class" => "", "heading" => __("Font", 'kreativa'), "param_name" => "text_color", "value" => array("White" => 'color-white', "Black" => 'color-black', "Blue" => 'color-blue', "Dark Blue" => 'color-dark-blue', "Light Blue" => 'color-light-blue', "Turquoise Blue" => 'color-turquoise-blue', "Gray" => 'color-gray', "Dark Gray" => 'color-dark-gray', "Periwinkle Gray" => 'color-periwinkle-gray', "Botticelli Gray" => 'color-botticelli-gray', "Light Gray" => 'color-light-gray', "Silver" => 'color-silver', "Orange" => 'color-orange', "Dark Orange" => 'color-dark-orange', "Bittersweet" => 'color-bittersweet', "Green" => 'color-green', "Dark Green" => 'color-dark-green', "Turquoise" => 'color-turquoise', "Purple" => 'color-purple', "Dark Purple" => 'color-dark-purple', "Pink" => 'color-pink', "Cranberry" => 'color-cranberry', "Yellow" => 'color-yellow', "Red" => 'color-red'), "description" => __("Font color of the button", 'kreativa')));
    vc_add_param('vc_button', array("type" => "textfield", "class" => "", "heading" => __("Font Awesome Icon", 'kreativa'), "param_name" => "icon", "value" => 'lightbulb-o', 'description' => 'Enter a font awesome icon class just name without fa-'));
    vc_add_param('vc_button', array("type" => "dropdown", "class" => "", "heading" => __("Icon Size", 'kreativa'), "param_name" => "size", "value" => array("Normal" => '', "Small" => 'small', "Big" => 'Big'), "description" => __("The size of the button", 'kreativa')));
    vc_add_param('vc_button', array("type" => "dropdown", "class" => "", "heading" => __("Icon Position", 'kreativa'), "param_name" => "position", "value" => array("Default" => '', "Left" => 'left', "Center" => 'center', "Right" => 'right'), "description" => __("The position of the button", 'kreativa')));
    vc_add_param('vc_button', array("type" => "dropdown", "class" => "", "heading" => __("Icon Style", 'kreativa'), "param_name" => "style", "value" => array("Default" => 'normal', "Flat" => 'flat', "Shaped" => 'shaped', "3D" => 'b3d', "Unfilled" => 'unfilled'), "description" => __("The style of the button", 'kreativa')));
    vc_add_param('vc_button', array("type" => "dropdown", "class" => "", "heading" => __("Border Thickness", 'kreativa'), "param_name" => "br_thickness", "value" => array("Light" => 'br-light', "Semi Light" => 'br-semi-light', "Medium" => 'br-medium', "Semi Thick" => 'br-semi-thick', "Thick" => 'br-thick'), "description" => __("The border Thickness of the button", 'kreativa'), "dependency" => array('element' => 'style', 'value' => array('unfilled'))));
    vc_add_param('vc_button', array("type" => "dropdown", "class" => "", "heading" => __("Border Color", 'kreativa'), "param_name" => "br_color", "value" => array("White" => 'br-color-white', "Black" => 'br-color-black', "Blue" => 'br-color-blue', "Dark Blue" => 'br-color-dark-blue', "Light Blue" => 'br-color-light-blue', "Turquoise Blue" => 'br-color-turquoise-blue', "Gray" => 'br-color-gray', "Dark Gray" => 'br-color-dark-gray', "Periwinkle Gray" => 'br-color-periwinkle-gray', "Botticelli Gray" => 'br-color-botticelli-gray', "Light Gray" => 'br-color-light-gray', "Silver" => 'br-color-silver', "Orange" => 'br-color-orange', "Dark Orange" => 'br-color-dark-orange', "Bittersweet" => 'br-color-bittersweet', "Green" => 'br-color-green', "Dark Green" => 'br-color-dark-green', "Turquoise" => 'br-color-turquoise', "Purple" => 'br-color-purple', "Dark Purple" => 'br-color-dark-purple', "Pink" => 'br-color-pink', "Cranberry" => 'br-color-cranberry', "Yellow" => 'br-color-yellow', "Red" => 'br-color-red'), "description" => __("The border color of the button", 'kreativa'), "dependency" => array('element' => 'style', 'value' => array('unfilled'))));
    /*----------------------------------------------------------------------------*
     * Tabs
     *----------------------------------------------------------------------------*/
    vc_remove_param("vc_tabs", "el_class");
    vc_remove_param("vc_tabs", "interval");
    vc_remove_param("vc_tabs", "title");
    vc_add_param('vc_tabs', array('type' => 'checkbox', 'heading' => __('Side Tabs?', 'js_composer'), 'param_name' => 'sidetabs', 'description' => __('Do you want to show tabs at side?', 'kreativa'), 'value' => array(__('Yes, please', 'kreativa') => 'yes')));
    /*----------------------------------------------------------------------------*
     * Row
     *----------------------------------------------------------------------------*/
    vc_add_param('vc_row', array("type" => "dropdown", "class" => "", "heading" => __("Background Size", 'kreativa'), "param_name" => "bg_size", "value" => array('Cover' => "", 'Contain' => "contain", 'Default' => "auto"), "description" => __("Select the way background image will be sized.", 'kreativa'), "dependency" => array('element' => 'bg_type', 'value' => array('image'))));
}
开发者ID:rafinkarki,项目名称:My_Themes,代码行数:54,代码来源:vc_map.php


示例9: vc_remove_standard_params

/**
 * Removes specified params from standard Visual Composer elements
 */
function vc_remove_standard_params()
{
    // Row
    vc_remove_param('vc_row', 'parallax');
    vc_remove_param('vc_row', 'parallax_image');
    vc_remove_param('vc_row', 'el_id');
    vc_remove_param('vc_row', 'el_class');
    // Btn
    vc_remove_param('vc_btn', 'css_animation');
    vc_remove_param('vc_btn', 'el_class');
    wp_register_style('ionicons', VCADMINURL . 'assets/css/ionicons.min.css', false, '1.0.0');
}
开发者ID:sebjon-bytbil,项目名称:BB.CMS,代码行数:15,代码来源:vc.php


示例10: iron_register_js_composer

 function iron_register_js_composer()
 {
     global $wpdb;
     $css_animations = array('None' => '', 'Left to Right Effect' => 'wpb_animate_when_almost_visible wpb_left-to-right', 'Right to Left Effect' => 'wpb_animate_when_almost_visible wpb_right-to-left', 'Top to Bottom Effect' => 'wpb_animate_when_almost_visible wpb_top-to-bottom', 'Bottom to Top Effect' => 'wpb_animate_when_almost_visible wpb_bottom-to-top', 'Appear From Center' => 'wpb_animate_when_almost_visible wpb_appear');
     $row_params = array(array("type" => "dropdown", "heading" => __('Type', 'js_composer'), "param_name" => "iron_row_type", "description" => __("You can specify whether the row is displayed fullwidth or in container.", "js_composer"), "value" => array(__("In Container", 'js_composer') => 'in_container', __("Fullwidth", 'js_composer') => 'full_width'), 'save_always' => true), array("type" => "dropdown", "heading" => __('Remove Padding On Medium & Small Screens (1024px)', 'js_composer'), "param_name" => "iron_remove_padding_medium", "value" => array(__("No", 'js_composer') => '', __("Yes", 'js_composer') => 'tabletnopadding'), 'save_always' => true), array("type" => "dropdown", "heading" => __('Remove Padding On Small Screens Only (700px)', 'js_composer'), "param_name" => "iron_remove_padding_small", "value" => array(__("No", 'js_composer') => '', __("Yes", 'js_composer') => 'mobilenopadding'), 'save_always' => true), array("type" => "textfield", "heading" => __("ID Name for Navigation", "js_composer"), "param_name" => "iron_id", "description" => __('If this row wraps the content of one of your sections, set an ID. You can then use it for navigation.<br>Ex: if you enter "work" then you can add a custom link to the menu as follow: "#work". Once this link is clicked, the page will be scrolled to that specific section.', "js_composer")), array("type" => "colorpicker", "heading" => __('Overlay Color', 'js_composer'), "param_name" => "iron_overlay_color", "description" => __("You can set a color over the background image. You can make it more or less opaque, by using the next setting. Default: white ", "js_composer")), array("type" => "dropdown", "heading" => __('Overlay Pattern', 'js_composer'), "param_name" => "iron_overlay_pattern", "description" => __("You can set an overlay pattern over the background image", "js_composer"), "value" => array(__("", 'js_composer') => '', __("Brick", 'js_composer') => 'brick', __("Dot", 'js_composer') => 'dot', __("Zig Zag", 'js_composer') => 'zigzag', __("45 Degrees Dash", 'js_composer') => '45_degree_dash', __("45 Degrees Grid", 'js_composer') => '45_degree_grid', __("45 Degrees Line Small", 'js_composer') => '45_degree_line_small', __("45 Degrees Line Medium", 'js_composer') => '45_degree_line_medium', __("45 Degrees Line Large", 'js_composer') => '45_degree_line_large'), 'save_always' => true), array("type" => "dropdown", "heading" => __('Activate Parallax', 'js_composer'), "param_name" => "iron_parallax", "description" => __("You will need to add a background image within the design tab.", "js_composer"), "value" => array(__("No", 'js_composer') => '', __("Yes", 'js_composer') => 'parallax'), 'save_always' => true), array("type" => "dropdown", "heading" => __('Activate Background Video', 'js_composer'), "param_name" => "iron_bg_video", "value" => array(__("No", 'js_composer') => '', __("Yes", 'js_composer') => 'bg_video'), 'save_always' => true), array("type" => "textfield", "heading" => __('Video Url (Self Hosted MP4)', 'js_composer'), "param_name" => "iron_bg_video_mp4", "value" => ''), array("type" => "textfield", "heading" => __('Video Url (Self Hosted WebM)', 'js_composer'), "param_name" => "iron_bg_video_webm", "value" => ''), array("type" => "attach_image", "heading" => __('Video Image Fallback', 'js_composer'), "description" => __("This image will replace video if its not supported by device.", "js_composer"), "param_name" => "iron_bg_video_poster", "value" => ''));
     foreach ($row_params as $param) {
         vc_add_param('vc_row', $param);
     }
     vc_remove_param('vc_row', 'font_color');
     vc_remove_param('vc_row', 'full_width');
     vc_remove_param('vc_row', 'parallax');
     vc_remove_param('vc_row', 'parallax_image');
     vc_remove_param('vc_row', 'el_id');
     vc_remove_param('vc_row', 'full_height');
     vc_remove_param('vc_row', 'content_placement');
     vc_remove_param('vc_row', 'video_bg');
     vc_remove_param('vc_row', 'video_bg_url');
     vc_remove_param('vc_row', 'video_bg_parallax');
     vc_map(array("name" => _x("Audio Player", 'VC', IRON_TEXT_DOMAIN), "base" => "iron_audioplayer", "class" => "", "icon" => "iron_vc_icon_audio_player", "category" => _x('IRON Widgets', 'VC', IRON_TEXT_DOMAIN), "params" => array(array("type" => "textfield", "holder" => "div", "class" => "", "heading" => _x("Title", 'VC', IRON_TEXT_DOMAIN), "param_name" => "title", "value" => "", "description" => ''), array("type" => "post_multiselect", "post_type" => "album", "holder" => "div", "class" => "", "heading" => _x("Albums", 'VC', IRON_TEXT_DOMAIN), "param_name" => "albums", "value" => '', "description" => ''), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => _x("Auto Play", 'VC', IRON_TEXT_DOMAIN), "param_name" => "autoplay", "value" => array(_x("No", 'VC', IRON_TEXT_DOMAIN) => 0, _x("Yes", 'VC', IRON_TEXT_DOMAIN) => 1), "description" => '', 'save_always' => true), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => _x("Show Playlist", 'VC', IRON_TEXT_DOMAIN), "param_name" => "show_playlist", "value" => array(_x("No", 'VC', IRON_TEXT_DOMAIN) => 0, _x("Yes", 'VC', IRON_TEXT_DOMAIN) => 1), "description" => '', 'save_always' => true), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => _x("Call To Action Title", 'VC', IRON_TEXT_DOMAIN), "param_name" => "action_title", "value" => '', "description" => ''), array("type" => "post_select", "post_type" => "page", "holder" => "div", "class" => "", "heading" => _x("Call To Action Page", 'VC', IRON_TEXT_DOMAIN), "param_name" => "action_obj_id", "value" => '', "description" => ''), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => _x("Call To Action External Link", 'VC', IRON_TEXT_DOMAIN), "param_name" => "action_ext_link", "value" => '', "description" => ''), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => _x("CSS Animation", 'VC', IRON_TEXT_DOMAIN), "param_name" => "css_animation", "value" => $css_animations, "description" => '', 'save_always' => true))));
     vc_map(array("name" => _x("Discography - List", 'VC', IRON_TEXT_DOMAIN), "base" => "iron_discography", "class" => "", "icon" => "iron_vc_icon_discography", "category" => _x('IRON Widgets', 'VC', IRON_TEXT_DOMAIN), "params" => array(array("type" => "textfield", "holder" => "div", "class" => "", "heading" => _x("Title", 'VC', IRON_TEXT_DOMAIN), "param_name" => "title", "value" => "", "description" => ''), array("type" => "post_multiselect", "post_type" => "album", "holder" => "div", "class" => "", "heading" => _x("Albums", 'VC', IRON_TEXT_DOMAIN), "param_name" => "albums", "value" => '', "description" => ''), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => _x("Call To Action Title", 'VC', IRON_TEXT_DOMAIN), "param_name" => "action_title", "value" => '', "description" => ''), array("type" => "post_select", "post_type" => "page", "holder" => "div", "class" => "", "heading" => _x("Call To Action Page", 'VC', IRON_TEXT_DOMAIN), "param_name" => "action_obj_id", "value" => '', "description" => ''), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => _x("Call To Action External Link", 'VC', IRON_TEXT_DOMAIN), "param_name" => "action_ext_link", "value" => '', "description" => ''), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => _x("CSS Animation", 'VC', IRON_TEXT_DOMAIN), "param_name" => "css_animation", "value" => $css_animations, "description" => '', 'save_always' => true))));
     vc_map(array("name" => _x("News - List", 'VC', IRON_TEXT_DOMAIN), "base" => "iron_posts", "class" => "", "icon" => "iron_vc_icon_news", "category" => _x('IRON Widgets', 'VC', IRON_TEXT_DOMAIN), "params" => array(array("type" => "textfield", "holder" => "div", "class" => "", "heading" => _x("Title", 'VC', IRON_TEXT_DOMAIN), "param_name" => "title", "value" => "", "description" => ''), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => _x("Number of posts to show", 'VC', IRON_TEXT_DOMAIN), "param_name" => "number", "value" => '', "description" => ''), array("type" => "taxonomy_multiselect", "taxonomy" => "category", "holder" => "div", "class" => "", "heading" => _x("Category", 'VC', IRON_TEXT_DOMAIN), "param_name" => "category", "description" => ''), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => _x("View As", 'VC', IRON_TEXT_DOMAIN), "param_name" => "view", "value" => array(_x("Grid", 'VC', IRON_TEXT_DOMAIN) => 'post_grid', _x("List", 'VC', IRON_TEXT_DOMAIN) => 'post'), "description" => '', 'save_always' => true), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => _x("Show Excerpts", 'VC', IRON_TEXT_DOMAIN), "param_name" => "enable_excerpts", "value" => array(_x("No", 'VC', IRON_TEXT_DOMAIN) => 0, _x("Yes", 'VC', IRON_TEXT_DOMAIN) => 1), "description" => '', 'save_always' => true), array("type" => "dropdown", "holder" => "div", "class" => "", "heading" => _x("Show Date", 'VC', IRON_TEXT_DOMAIN), "param_name" => "show_date", "value" => array(_x("Yes", 'VC', IRON_TEXT_DOMAIN) => 1, _x("No", 'VC', IRON_TEXT_DOMAIN) => 0), "description" => '', 'save_always' => true), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => _x("Call To Action Title", 'VC', IRON_TEXT_DOMAIN), "param_name" => "action_title", "value" => '', "description" => ''), array("type" => "post_select", "post_type" => "page", "holder" => "div", "class" => "", "heading" => _x("Call To Action Page", 'VC', IRON_TEXT_DOMAIN), "param_name" => "action_obj_id", "value" => '', "description" => ''), array("type" => "textfield", "holder" => "div", "class" => "", "heading" => _x("Call To Action External Li 

鲜花

握手

雷人

路过

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

请发表评论

全部评论

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

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

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

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

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