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

PHP vc_add_shortcode_param函数代码示例

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

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



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

示例1: mm_vc_countdown

/**
 * Visual Composer add-on.
 *
 * @since  1.0.0
 */
function mm_vc_countdown()
{
    // Add a custom param for selecting the date.
    vc_add_shortcode_param('date', 'mm_vc_date_param');
    $timezones = mm_get_timezones_for_vc('mm-countdown');
    vc_map(array('name' => __('Countdown', 'mm-components'), 'base' => 'mm_countdown', 'icon' => MM_COMPONENTS_ASSETS_URL . 'component-icon.png', 'category' => __('Content', 'mm-components'), 'params' => array(array('type' => 'date', 'heading' => __('Date', 'mm-components'), 'param_name' => 'date', 'admin_label' => true, 'value' => '', 'description' => __('Must be in the format MM/DD/YYYY. Example: 12/25/2015 would be Christmas of 2015.', 'mm-components')), array('type' => 'textfield', 'heading' => __('Time', 'mm-components'), 'param_name' => 'time', 'value' => '', 'description' => __('Must be in the format HH:MM:SS. Example: 18:30:00 would be 6:30 PM.', 'mm-components')), array('type' => 'dropdown', 'heading' => __('Time Zone', 'mm-components'), 'param_name' => 'timezone', 'value' => $timezones))));
}
开发者ID:roosalles,项目名称:mm-components,代码行数:12,代码来源:countdown.php


示例2: __construct

 function __construct()
 {
     if (function_exists('vc_add_shortcode_param')) {
         vc_add_shortcode_param('switch_button', array(&$this, 'switch_button_settings_field'));
     } else {
         if (function_exists('add_shortcode_param')) {
             add_shortcode_param('switch_button', array(&$this, 'switch_button_settings_field'));
         }
     }
 }
开发者ID:Telemedellin,项目名称:fonvalmed,代码行数:10,代码来源:ts_vcsc_parameter_switch.php


示例3: createShortcode

 /**
  * Maps vc_table shortcode
  */
 function createShortcode()
 {
     $param_name = $this->getParamName();
     require_once $this->dir . '/lib/vc_table_param.php';
     $script_url = $this->assetURL('js/table_param.js');
     vc_add_shortcode_param($param_name, 'vc_' . $param_name . '_form_field', $script_url);
     vc_add_shortcode_param('table_theme', 'vc_table_theme_form_field');
     require_once $this->dir . '/lib/vc_table_shortcode.php';
     vc_map(array("name" => __("Table", "vc_table_manager"), "base" => "vc_table", "icon" => "icon-wpb-table", "category" => __('Content', "js_composer"), "description" => __('Simple table for your data', 'vc_table_manager'), "params" => array(array("type" => "table_theme", "heading" => __("Theme", "vc_table_manager"), "param_name" => "vc_table_theme", "value" => array(__("Default", "vc_table_manager") => "default", __("Classic", "vc_table_manager") => "classic", __("Classic Orange", "vc_table_manager") => "classic_orange", __("Classic Pink", "vc_table_manager") => "classic_pink", __("Classic Purple", "vc_table_manager") => "classic_purple", __("Classic Blue", "vc_table_manager") => "classic_blue", __("Classic Green", "vc_table_manager") => "classic_green", __("Simple", "vc_table_manager") => "simple", __("Simple Orange", "vc_table_manager") => "simple_orange", __("Simple Pink", "vc_table_manager") => "simple_pink", __("Simple Purple", "vc_table_manager") => "simple_purple", __("Simple Blue", "vc_table_manager") => "simple_blue", __("Simple Green", "vc_table_manager") => "simple_green")), array("type" => $param_name, "holder" => "div", "heading" => __("Table", "vc_table_manager"), "param_name" => "content", "value" => __("", "vc_table_manager"), "description" => __("Use right click to manage table.", "vc_table_manager")), array("type" => 'checkbox', "heading" => __("Allow HTML?", "vc_table_manager"), 'value' => array(__('Yes', 'vc_table_manager') => true), "param_name" => "allow_html", "description" => __("Check if you wish to use html in the table.", "vc_table_manager")), 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")))));
 }
开发者ID:ksan5835,项目名称:maadithottam,代码行数:13,代码来源:vc_table_manager.php


示例4: __construct

 function __construct()
 {
     if (function_exists('vc_add_shortcode_param')) {
         vc_add_shortcode_param('advanced_styling', array($this, 'advanced_styling_settings_field'));
     } else {
         if (function_exists('add_shortcode_param')) {
             add_shortcode_param('advanced_styling', array($this, 'advanced_styling_settings_field'));
         }
     }
 }
开发者ID:Telemedellin,项目名称:fonvalmed,代码行数:10,代码来源:ts_vcsc_parameter_advancedsetting.php


示例5: __construct

 /**
  * Construction
  */
 function __construct()
 {
     // Stop if VC is not installed
     if (!in_array('js_composer/js_composer.php', apply_filters('active_plugins', get_option('active_plugins')))) {
         return false;
     }
     $this->icons = $this->get_icons();
     vc_add_shortcode_param('icon', array($this, 'icon_param'), THEME_URL . '/js/vc/icon-field.js');
     add_action('vc_before_init', array($this, 'map_shortcodes'));
 }
开发者ID:Qualitair,项目名称:ecommerce,代码行数:13,代码来源:visual-composer.php


示例6: __construct

 function __construct()
 {
     if (defined('WPB_VC_VERSION') && version_compare(WPB_VC_VERSION, 4.8) >= 0) {
         if (function_exists('vc_add_shortcode_param')) {
             vc_add_shortcode_param('datetimepicker', array($this, 'datetimepicker'), plugins_url('../admin/js/bootstrap-datetimepicker.min.js', __FILE__));
         }
     } else {
         if (function_exists('add_shortcode_param')) {
             add_shortcode_param('datetimepicker', array($this, 'datetimepicker'), plugins_url('../admin/js/bootstrap-datetimepicker.min.js', __FILE__));
         }
     }
 }
开发者ID:mazykin46,项目名称:portfolio,代码行数:12,代码来源:Ultimate_DateTime_Picker.php


示例7: ep_vc_add_custom_fields

function ep_vc_add_custom_fields()
{
    $dir = get_template_directory_uri();
    // add icon box option for vc
    vc_add_shortcode_param('vc_icons', 'ep_vc_icons_field', $dir . '/extendvc/js/vc_icon.js');
    // add icon box option for vc
    vc_add_shortcode_param('vc_imageselect', 'ep_vc_imageselect_field', $dir . '/extendvc/js/vc_imageselect.js');
    // add range field for vc
    vc_add_shortcode_param('vc_rangefield', 'ep_vc_range_field', $dir . '/extendvc/js/vc_rangefield.js');
    // add checkbox field for vc
    vc_add_shortcode_param('vc_multiselect', 'ep_vc_multi_select', $dir . '/extendvc/js/vc_multiselect.js');
}
开发者ID:rmilano24,项目名称:moto,代码行数:12,代码来源:extend-vc.php


示例8: edo_add_vc_global_params

function edo_add_vc_global_params()
{
    vc_set_shortcodes_templates_dir(THEME_DIR . '/js_composer/templates/');
    kt_enqueue_custom_script();
    global $vc_setting_row, $vc_setting_col, $vc_setting_column_inner, $vc_setting_icon_shortcode;
    vc_add_params('vc_icon', $vc_setting_icon_shortcode);
    vc_add_params('vc_column', $vc_setting_col);
    vc_add_params('vc_column_inner', $vc_setting_column_inner);
    vc_add_shortcode_param('edo_number', 'edo_number_settings_field');
    vc_add_shortcode_param('edo_taxonomy', 'edo_taxonomy_settings_field', KUTETHEME_PLUGIN_URL . '/js_composer/js/chosen/chosen.jquery.min.js');
    vc_add_shortcode_param('kt_datetimepicker', 'vc_kt_datetimepicker_settings_field');
}
开发者ID:ngocthangict,项目名称:edo,代码行数:12,代码来源:custom-fields.php


示例9: __construct

 function __construct()
 {
     if (defined('WPB_VC_VERSION') && version_compare(WPB_VC_VERSION, 4.8) >= 0) {
         if (function_exists('vc_add_shortcode_param')) {
             vc_add_shortcode_param('gradient', array(&$this, 'gradient_picker'));
         }
     } else {
         if (function_exists('add_shortcode_param')) {
             add_shortcode_param('gradient', array(&$this, 'gradient_picker'));
         }
     }
 }
开发者ID:mazykin46,项目名称:portfolio,代码行数:12,代码来源:Ultimate_Gradient.php


示例10: __construct

 function __construct()
 {
     if (defined('WPB_VC_VERSION') && version_compare(WPB_VC_VERSION, 4.8) >= 0) {
         if (function_exists('vc_add_shortcode_param')) {
             vc_add_shortcode_param('ult_param_heading', array($this, 'ult_param_heading_callback'));
         }
     } else {
         if (function_exists('add_shortcode_param')) {
             add_shortcode_param('ult_param_heading', array($this, 'ult_param_heading_callback'));
         }
     }
 }
开发者ID:mazykin46,项目名称:portfolio,代码行数:12,代码来源:Ultimate_ParamHeading.php


示例11: __construct

 function __construct()
 {
     add_action('admin_enqueue_scripts', array($this, 'ultimate_border_param_scripts'));
     if (defined('WPB_VC_VERSION') && version_compare(WPB_VC_VERSION, 4.8) >= 0) {
         if (function_exists('vc_add_shortcode_param')) {
             vc_add_shortcode_param('ultimate_border', array($this, 'ultimate_border_callback'), plugins_url('../admin/vc_extend/js/ultimate-border.js', __FILE__));
         }
     } else {
         if (function_exists('add_shortcode_param')) {
             add_shortcode_param('ultimate_border', array($this, 'ultimate_border_callback'), plugins_url('../admin/vc_extend/js/ultimate-border.js', __FILE__));
         }
     }
 }
开发者ID:mazykin46,项目名称:portfolio,代码行数:13,代码来源:Ultimate_Border.php


示例12: __construct

 function __construct()
 {
     if (defined('WPB_VC_VERSION') && version_compare(WPB_VC_VERSION, 4.8) >= 0) {
         if (function_exists('vc_add_shortcode_param')) {
             vc_add_shortcode_param('ultimate_boxshadow', array($this, 'ultimate_boxshadow_callback'), plugins_url('../admin/vc_extend/js/vc-box-shadow-param.js', __FILE__));
         }
     } else {
         if (function_exists('add_shortcode_param')) {
             add_shortcode_param('ultimate_boxshadow', array($this, 'ultimate_boxshadow_callback'), plugins_url('../admin/vc_extend/js/vc-box-shadow-param.js', __FILE__));
         }
     }
     add_action('admin_enqueue_scripts', array($this, 'ultimate_boxshadow_param_scripts'));
     add_filter('Ultimate_GetBoxShadow', array($this, 'ultimate_get_box_shadow'), 10, 3);
 }
开发者ID:mazykin46,项目名称:portfolio,代码行数:14,代码来源:Ultimate_BoxShadow.php



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
PHP vc_asset_url函数代码示例发布时间:2022-05-23
下一篇:
PHP vc_add_param函数代码示例发布时间: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