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


PHP WPBMap::getParam方法代码示例

本文整理汇总了PHP中WPBMap::getParam方法的典型用法代码示例。如果您正苦于以下问题:PHP WPBMap::getParam方法的具体用法?PHP WPBMap::getParam怎么用?PHP WPBMap::getParam使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在WPBMap的用法示例。


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

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

示例2: laborator_vc_row_full_width

function laborator_vc_row_full_width()
{
    # Full Width Param
    $param = WPBMap::getParam('vc_row', 'full_width');
    $param['value'][__('Full width', 'lab_composer')] = 'lab-full-width';
    vc_update_shortcode_param('vc_row', $param);
}
开发者ID:adrienlementheour,项目名称:AliceRouat,代码行数:7,代码来源:custom-rows.php

示例3: cruxstore_add_option_to_vc

function cruxstore_add_option_to_vc()
{
    $image_styles = WPBMap::getParam('vc_single_image', 'style');
    $image_styles['value'][esc_html__('Border box inner 1', 'cruxstore')] = 'border-box-1';
    $image_styles['value'][esc_html__('Border box inner 2', 'cruxstore')] = 'border-box-2';
    $image_styles['value'][esc_html__('Zoom In', 'cruxstore')] = 'zoomin';
    $image_styles['value'][esc_html__('Zoom Out', 'cruxstore')] = 'zoomout';
    $image_styles['value'][esc_html__('Slide', 'cruxstore')] = 'slide';
    $image_styles['value'][esc_html__('Shine', 'cruxstore')] = 'shine';
    vc_update_shortcode_param('vc_single_image', $image_styles);
    $accordion_styles = WPBMap::getParam('vc_tta_accordion', 'style');
    $accordion_styles['value'][esc_html__('Outline Wrapper', 'cruxstore')] = 'wrapper';
    $accordion_styles['value'][esc_html__('Outline Wrapper Shadow', 'cruxstore')] = 'wrapper shadow';
    vc_update_shortcode_param('vc_tta_accordion', $accordion_styles);
    $accordion_iconss = WPBMap::getParam('vc_tta_accordion', 'c_icon');
    $accordion_iconss['value'][esc_html__('Arrow Circle', 'cruxstore')] = 'arrow-circle';
    vc_update_shortcode_param('vc_tta_accordion', $accordion_iconss);
    $tab_styles = WPBMap::getParam('vc_tta_tabs', 'style');
    $tab_styles['value'][esc_html__('Outline Wrapper', 'cruxstore')] = 'wrapper';
    $tab_styles['value'][esc_html__('Outline Wrapper Shadow', 'cruxstore')] = 'wrapper shadow';
    vc_update_shortcode_param('vc_tta_tabs', $tab_styles);
    $cta_styles = WPBMap::getParam('vc_cta', 'style');
    $cta_styles['value'][esc_html__('Transparent', 'cruxstore')] = 'transparent';
    vc_update_shortcode_param('vc_cta', $cta_styles);
    $button_colors = WPBMap::getParam('vc_btn', 'color');
    $button_colors['value'][esc_html__('Accent color', 'cruxstore')] = 'accent';
    vc_update_shortcode_param('vc_btn', $button_colors);
}
开发者ID:websideas,项目名称:Mondova,代码行数:28,代码来源:js_composer_update.php

示例4: qode_remove_vc_image_zoom

 function qode_remove_vc_image_zoom()
 {
     //Remove zoom from click action on single image
     $param = WPBMap::getParam('vc_single_image', 'onclick');
     unset($param['value']['Zoom']);
     vc_update_shortcode_param('vc_single_image', $param);
 }
开发者ID:k2jysy,项目名称:wedev,代码行数:7,代码来源:extend-vc.php

示例5: update_params

 /**
  * Used to update default parms
  *
  * @since 3.0.0
  * @access public
  */
 public function update_params()
 {
     $param = WPBMap::getParam('vc_single_image', 'img_size');
     if ($param) {
         $param['value'] = 'full';
         vc_update_shortcode_param('vc_single_image', $param);
     }
 }
开发者ID:VanessaGarcia-Freelance,项目名称:TheEmporiumGroup,代码行数:14,代码来源:single-image.php

示例6: add_cta_button_super_color

function add_cta_button_super_color()
{
    //Get current values stored in the color param in "Call to Action" element
    $param = WPBMap::getParam('vc_cta', 'color');
    //Append new value to the 'value' array
    $param['value'][__('WF', 'webidia')] = 'btn-wf-color';
    $param['std'] = 'btn-wf-color';
    //Finally "mutate" param with new values
    vc_update_shortcode_param('vc_cta', $param);
}
开发者ID:prosatya,项目名称:WF-Gmap,代码行数:10,代码来源:vc-config.php

示例7: lab_vc_tta_tabs_setup

function lab_vc_tta_tabs_setup()
{
    $new_param = array('Theme Styled (if selected, other style settings will be ignored)' => 'theme-styled');
    $new_param_minimal = array('Theme Styled Minimal (if selected, other style settings will be ignored)' => 'theme-styled-minimal');
    $tabs_param = WPBMap::getParam('vc_tta_tabs', 'style');
    $accordion_param = WPBMap::getParam('vc_tta_accordion', 'style');
    $tabs_param['value'] = array_merge($new_param, $new_param_minimal, $tabs_param['value']);
    $accordion_param['value'] = array_merge($new_param, $accordion_param['value']);
    vc_update_shortcode_param('vc_tta_tabs', $tabs_param);
    vc_update_shortcode_param('vc_tta_accordion', $accordion_param);
}
开发者ID:adrienlementheour,项目名称:AliceRouat,代码行数:11,代码来源:laborator_vc.php

示例8: update_params

 /**
  * Used to update default parms
  *
  * @since 3.0.0
  */
 public function update_params()
 {
     // Only needed on front-end
     if (!is_admin()) {
         return;
     }
     // Set ID weight
     $param = WPBMap::getParam('vc_row', 'el_id');
     if ($param) {
         $param['weight'] = 99;
         vc_update_shortcode_param('vc_row', $param);
     }
     // Set class weight
     $param = WPBMap::getParam('vc_row', 'el_class');
     if ($param) {
         $param['weight'] = 98;
         $time_start = microtime(true);
         vc_update_shortcode_param('vc_row', $param);
     }
     // Move video parallax setting
     $param = WPBMap::getParam('vc_row', 'video_bg_parallax');
     if ($param) {
         $param['group'] = __('Video', 'wpex');
         $param['dependency'] = array('element' => 'video_bg', 'value' => 'youtube');
         vc_update_shortcode_param('vc_row', $param);
     }
     // Move youtube url
     $param = WPBMap::getParam('vc_row', 'video_bg_url');
     if ($param) {
         $param['group'] = __('Video', 'wpex');
         $param['dependency'] = array('element' => 'video_bg', 'value' => 'youtube');
         vc_update_shortcode_param('vc_row', $param);
     }
     // Alter Parallax dropdown
     $param = WPBMap::getParam('vc_row', 'parallax');
     if ($param) {
         $param['group'] = __('Parallax', 'wpex');
         $param['value'][__('Advanced Parallax', 'wpex')] = 'vcex_parallax';
         vc_update_shortcode_param('vc_row', $param);
     }
     // Alter Parallax image location
     $param = WPBMap::getParam('vc_row', 'parallax_image');
     if ($param) {
         $param['group'] = __('Parallax', 'wpex');
         vc_update_shortcode_param('vc_row', $param);
     }
     // Move design options
     $param = WPBMap::getParam('vc_row', 'css');
     if ($param) {
         $param['weight'] = -1;
         vc_update_shortcode_param('vc_row', $param);
     }
 }
开发者ID:VanessaGarcia-Freelance,项目名称:TheEmporiumGroup,代码行数:58,代码来源:row.php

示例9: kt_add_option_to_vc

function kt_add_option_to_vc()
{
    $image_styles = WPBMap::getParam('vc_single_image', 'style');
    $image_styles['value'][esc_html__('Border box', 'mondova')] = 'border-box';
    $image_styles['value'][esc_html__('Border box inner 1', 'mondova')] = 'border-box-1';
    $image_styles['value'][esc_html__('Border box inner 2', 'mondova')] = 'border-box-2';
    $image_styles['value'][esc_html__('Zoom In', 'mondova')] = 'zoomin';
    $image_styles['value'][esc_html__('Zoom Out', 'mondova')] = 'zoomout';
    $image_styles['value'][esc_html__('Slide', 'mondova')] = 'slide';
    $image_styles['value'][esc_html__('Shine', 'mondova')] = 'shine';
    vc_update_shortcode_param('vc_single_image', $image_styles);
}
开发者ID:websideas,项目名称:Mondova,代码行数:12,代码来源:js_composer_update.php

示例10: update_params

 /**
  * Used to update default parms
  *
  * @since 3.0.0
  * @access public
  */
 public function update_params()
 {
     $param = WPBMap::getParam('vc_single_image', 'img_size');
     if ($param) {
         $param['value'] = 'full';
         vc_update_shortcode_param('vc_single_image', $param);
     }
     $param = WPBMap::getParam('vc_single_image', 'img_link_target');
     if ($param) {
         $param['value'][esc_html__('Local', 'total')] = 'local';
         vc_update_shortcode_param('vc_single_image', $param);
     }
 }
开发者ID:iq007,项目名称:MadScape,代码行数:19,代码来源:single-image.php

示例11: lab_vc_custom_icon_fonts

function lab_vc_custom_icon_fonts()
{
    # Add Extra Icon Fonts
    $param = WPBMap::getParam('vc_icon', 'type');
    if (!is_array($param)) {
        return false;
    }
    $param['weight'] = 2;
    $param['value'] = array('Linea' => 'linea') + $param['value'];
    vc_update_shortcode_param('vc_icon', $param);
    # Add Param Type
    $attributes = array('type' => 'iconpicker', 'heading' => __('Icon', 'lab_composer'), 'param_name' => 'icon_linea', 'value' => 'icon-basic-accelerator', 'weight' => 1, 'settings' => array('emptyIcon' => false, 'type' => 'linea', 'iconsPerPage' => -1), 'dependency' => array('element' => 'type', 'value' => 'linea'), 'description' => __('Select icon from library.', 'lab_composer'));
    vc_add_param('vc_icon', $attributes);
    # Set Default Color to Black
    $param = WPBMap::getParam('vc_icon', 'color');
    $param['std'] = 'black';
    vc_update_shortcode_param('vc_icon', $param);
    # Custom Icon
    add_action('admin_print_styles', 'lab_vc_custom_icon_css');
}
开发者ID:adrienlementheour,项目名称:AliceRouat,代码行数:20,代码来源:custom-font-icons.php

示例12: getAttributes

 public function getAttributes($atts)
 {
     $text = $google_fonts = $font_container = $el_class = $css = '';
     /**
      * Get default values from VC_MAP.
      **/
     $google_fonts_field = WPBMap::getParam('vc_custom_heading', 'google_fonts');
     $font_container_field = WPBMap::getParam('vc_custom_heading', 'font_container');
     $el_class_field = WPBMap::getParam('vc_custom_heading', 'el_class');
     $css_field = WPBMap::getParam('vc_custom_heading', 'css');
     $text_field = WPBMap::getParam('vc_custom_heading', 'text');
     extract(shortcode_atts(array('text' => isset($text_field['value']) ? $text_field['value'] : '', 'google_fonts' => isset($google_fonts_field['value']) ? $google_fonts_field['value'] : '', 'font_container' => isset($font_container_field['value']) ? $font_container_field['value'] : '', 'el_class' => isset($el_class_field['value']) ? $el_class_field['value'] : '', 'css' => isset($css_field['value']) ? $css_field['value'] : ''), $atts));
     $el_class = $this->getExtraClass($el_class);
     $font_container_obj = new Vc_Font_Container();
     $google_fonts_obj = new Vc_Google_Fonts();
     $font_container_field_settings = isset($font_container_field['settings'], $font_container_field['settings']['fields']) ? $font_container_field['settings']['fields'] : array();
     $google_fonts_field_settings = isset($google_fonts_field['settings'], $google_fonts_field['settings']['fields']) ? $google_fonts_field['settings']['fields'] : array();
     $font_container_data = $font_container_obj->_vc_font_container_parse_attributes($font_container_field_settings, $font_container);
     $google_fonts_data = $google_fonts_obj->_vc_google_fonts_parse_attributes($google_fonts_field_settings, $google_fonts);
     return array('text' => $text, 'google_fonts' => $google_fonts, 'font_container' => $font_container, 'el_class' => $el_class, 'css' => $css, 'font_container_data' => $font_container_data, 'google_fonts_data' => $google_fonts_data);
 }
开发者ID:epiii,项目名称:aros,代码行数:21,代码来源:vc-custom-heading.php

示例13: updateCssAnimationInput

 /**
  * override input CSS Animation
  */
 private function updateCssAnimationInput()
 {
     $elements = array('vc_column_text', 'vc_single_image', 'vc_message', 'vc_toggle', 'vc_single_image');
     foreach ($elements as $value) {
         $param = WPBMap::getParam($value, 'css_animation');
         $param['value'] = $this->cssAnimation;
         WPBMap::mutateParam($value, $param);
     }
 }
开发者ID:jimmitjoo,项目名称:mnh,代码行数:12,代码来源:pagebuilder.php

示例14: nm_vc_single_image_param_onclick

function nm_vc_single_image_param_onclick()
{
    // Get param values
    $param = WPBMap::getParam('vc_single_image', 'onclick');
    // Replace param values
    $param['value'] = array(__('None', 'js_composer') => '', __('Link to large image', 'js_composer') => 'img_link_large', __('Open custom link', 'js_composer') => 'custom_link');
    // Finally "mutate" param with new values
    vc_update_shortcode_param('vc_single_image', $param);
}
开发者ID:tccyp001,项目名称:onemore-wordpress,代码行数:9,代码来源:elements-config.php

示例15: presscore_get_vc_animation_options

//***********************************************************************
// Message Box
//***********************************************************************
// add custom animation
$param = WPBMap::getParam('vc_message', 'css_animation');
$param['value'] = presscore_get_vc_animation_options();
WPBMap::mutateParam('vc_message', $param);
//***********************************************************************
// Toggle
//***********************************************************************
// add custom animation
$param = WPBMap::getParam('vc_toggle', 'css_animation');
$param['value'] = presscore_get_vc_animation_options();
WPBMap::mutateParam('vc_toggle', $param);
//***********************************************************************
// Single Image
//***********************************************************************
// add custom animation
$param = WPBMap::getParam('vc_single_image', 'css_animation');
$param['value'] = presscore_get_vc_animation_options();
WPBMap::mutateParam('vc_single_image', $param);
vc_add_param("vc_single_image", array("type" => "dropdown", "class" => "", "heading" => __("Image hovers", 'the7mk2'), "param_name" => "image_hovers", "std" => "true", "value" => array("Disabled" => "false", "Enabled" => "true")));
//***********************************************************************
// Accordion
//***********************************************************************
vc_add_param("vc_accordion", array("type" => "dropdown", "heading" => __("Style", 'the7mk2'), "param_name" => "style", "value" => array('Style 1 (no background)' => '1', 'Style 2 (with background)' => '2', 'Style 3 (with dividers)' => '3'), "description" => ""));
//***********************************************************************
// Deprecated shortcodes
//***********************************************************************
vc_map_update('vc_text_separator', array("name" => __("Separator with Text (deprecated)", 'the7mk2'), "category" => __('Deprecated', 'the7mk2'), "weight" => -1));
vc_map_update('vc_separator', array("name" => __("Separator (deprecated)", 'the7mk2'), "category" => __('Deprecated', 'the7mk2'), "weight" => -1));
开发者ID:armslee,项目名称:wp_requid,代码行数:31,代码来源:js_composer_bridge.php


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