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


PHP add_shortcode_param函数代码示例

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


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

示例1: __construct

 function __construct()
 {
     if (function_exists('add_shortcode_param')) {
         add_shortcode_param('ultimate_google_fonts', array($this, 'ultimate_google_fonts_settings'), plugins_url('../admin/vc_extend/js/vc-google-fonts-param.js', __FILE__));
         add_shortcode_param('ultimate_google_fonts_style', array($this, 'ultimate_google_fonts_style_settings'));
     }
 }
开发者ID:RDePoppe,项目名称:luminaterealestate,代码行数:7,代码来源:Ultimate_Font_Manager_Param.php

示例2: __construct

 function __construct()
 {
     $this->assets_js = get_template_directory_uri() . '/dynamo_framework/font_icon_manager/assets/js/';
     $this->assets_css = get_template_directory_uri() . '/dynamo_framework/font_icon_manager/assets/css/';
     $this->paths = wp_upload_dir();
     $this->paths['fonts'] = 'dp_font_icons';
     $this->paths['temp'] = trailingslashit($this->paths['fonts']) . 'font_icons_temp';
     $this->paths['fontdir'] = trailingslashit($this->paths['basedir']) . $this->paths['fonts'];
     $this->paths['tempdir'] = trailingslashit($this->paths['basedir']) . $this->paths['temp'];
     $this->paths['fonturl'] = set_url_scheme(trailingslashit($this->paths['baseurl']) . $this->paths['fonts']);
     $this->paths['tempurl'] = trailingslashit($this->paths['baseurl']) . trailingslashit($this->paths['temp']);
     $this->paths['config'] = 'charmap.php';
     $this->vc_fonts = trailingslashit($this->paths['basedir']) . $this->paths['fonts'] . '/Default';
     $this->vc_fonts_dir = get_template_directory() . '/dynamo_framework/font_icon_manager/assets/fonts/';
     //font file extract by ajax function
     add_action('wp_ajax_smile_ajax_add_zipped_font', array($this, 'add_zipped_font'));
     add_action('wp_ajax_smile_ajax_remove_zipped_font', array($this, 'remove_zipped_font'));
     add_action('admin_menu', array($this, 'icon_manager_menu'));
     $defaults = get_option('dp_font_icons');
     if (!$defaults) {
         add_action('admin_init', array($this, 'VC_move_fonts'));
     }
     // Generate param type "icon_manager"
     if (function_exists('add_shortcode_param')) {
         add_shortcode_param('icon_selector', array($this, 'icon_manager'));
     }
     // Generate param type "number"
     if (function_exists('add_shortcode_param')) {
         add_shortcode_param('number', array(&$this, 'number_settings_field'));
     }
     // Generate param type "heading"
     if (function_exists('add_shortcode_param')) {
         add_shortcode_param('heading', array($this, 'heading_settings_field'));
     }
 }
开发者ID:Karpec,项目名称:geo-mac,代码行数:35,代码来源:icon_manager.php

示例3: __construct

 function __construct()
 {
     add_action('admin_enqueue_scripts', array($this, 'ultimate_admin_responsive_param_scripts'));
     if (function_exists('add_shortcode_param')) {
         add_shortcode_param('ultimate_responsive', array($this, 'ultimate_responsive_callback'), plugins_url('../admin/vc_extend/js/ultimate-responsive.min.js', __FILE__));
     }
 }
开发者ID:ksingh812,项目名称:epb,代码行数:7,代码来源:Ultimate_Responsive.php

示例4: init

 function init()
 {
     if (function_exists('add_shortcode_param')) {
         add_shortcode_param('number', array(&$this, 'number_settings_field'));
         add_shortcode_param('icon_text', array(&$this, 'icon_text_settings_field'));
     }
 }
开发者ID:adwleg,项目名称:site,代码行数:7,代码来源:vc-extend.php

示例5: bb_add_multiselect

function bb_add_multiselect()
{
    if (function_exists('add_shortcode_param')) {
        add_shortcode_param('multiselect', 'bb_param_multiselect');
    }
    wp_register_script('multiselect', VCADMINURL . 'assets/js/multiselect.js', array(), '1.0.0', true);
    wp_enqueue_script('multiselect');
}
开发者ID:sebjon-bytbil,项目名称:BB.CMS,代码行数:8,代码来源:multiselect.php

示例6: bb_add_wysiwyg

function bb_add_wysiwyg()
{
    if (function_exists('add_shortcode_param')) {
        add_shortcode_param('wysiwyg', 'bb_param_wysiwyg', VCADMINURL . 'assets/js/vendor/tinymce/tinymce.min.js');
    }
    wp_register_script('wysiwyg_editor', VCADMINURL . 'assets/js/editor/wysiwyg_editor.js', array(), '1.0.0', true);
    wp_enqueue_script('wysiwyg_editor');
}
开发者ID:sebjon-bytbil,项目名称:BB.CMS,代码行数:8,代码来源:tinymce.php

示例7: bb_add_param_map

function bb_add_param_map()
{
    if (function_exists('add_shortcode_param')) {
        add_shortcode_param('map', 'bb_param_map');
    }
    wp_register_script('map_functionality', VCADMINURL . 'assets/js/map_functionality.js', array(), '1.0.0', true);
    wp_enqueue_script('map_functionality');
}
开发者ID:sebjon-bytbil,项目名称:BB.CMS,代码行数:8,代码来源:map.php

示例8: __construct

 function __construct()
 {
     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:VitaAprel,项目名称:mynotebook,代码行数:8,代码来源:Ultimate_BoxShadow.php

示例9: integrateWithVC

 public function integrateWithVC()
 {
     // Check if Visual Composer is installed
     if (!defined('WPB_VC_VERSION') || !function_exists('wpb_map')) {
         return;
     }
     add_shortcode_param('4k_icon', array($this, 'createIconSettingsField'), plugins_url('js/script-vc.js', __FILE__));
 }
开发者ID:JDjimenezdelgado,项目名称:old-mmexperience,代码行数:8,代码来源:4k-vc-icon-shortcode.php

示例10: __construct

 function __construct()
 {
     add_action('admin_enqueue_scripts', array($this, 'image_single_scripts'));
     add_filter('ult_get_img_single', array($this, 'ult_img_single_init'), 10, 3);
     if (function_exists('add_shortcode_param')) {
         add_shortcode_param('ult_img_single', array($this, 'ult_img_single_callback'), plugins_url('../admin/vc_extend/js/ultimate-image_single.js', __FILE__));
     }
     add_action('wp_ajax_ult_get_attachment_url', array($this, 'get_attachment_url_init'));
 }
开发者ID:VitaAprel,项目名称:mynotebook,代码行数:9,代码来源:Ultimate_Image_Single.php

示例11: __construct

 function __construct()
 {
     $GLOBALS['pid'] = 0;
     $id = null;
     $pcnt = null;
     if (function_exists('add_shortcode_param')) {
         add_shortcode_param('icon_manager', array($this, 'icon_manager'));
     }
 }
开发者ID:RDePoppe,项目名称:luminaterealestate,代码行数:9,代码来源:Ultimate_Icon_Manager_Param.php

示例12: __construct

 public function __construct()
 {
     $this->fa_click_icons_brochure_box = array('fa-file-o', 'fa-file-pdf-o', 'fa-file-word-o', 'fa-file-text-o', 'fa-file-image-o', 'fa-file-powerpoint-o', 'fa-file-excel-o', 'fa-file-audio-o', 'fa-file-video-o', 'fa-file-archive-o', 'fa-file-code-o', 'fa-save', 'fa-download', 'fa-print', 'fa-info-circle', 'fa-question-circle', 'fa-cog', 'fa-link');
     // Register custom param types
     add_shortcode_param('upload_file', array($this, 'upload_file'));
     add_shortcode_param('select_fa_icon_bb', array($this, 'select_fa_icon_bb'));
     add_shortcode_param('input_number', array($this, 'input_number'));
     add_shortcode_param('lined_textarea', array($this, 'lined_textarea'));
 }
开发者ID:proteusthemes,项目名称:visual-composer-elements,代码行数:9,代码来源:class-vc-custom-param-types.php

示例13: __construct

 function __construct()
 {
     add_action("admin_init", array($this, "ultimate_headings_init"));
     add_shortcode("ultimate_heading", array($this, "ultimate_headings_shortcode"));
     add_action("wp_enqueue_scripts", array($this, "register_headings_assets"));
     if (function_exists('add_shortcode_param')) {
         add_shortcode_param('ultimate_margins', array($this, 'ultimate_margins_param'), plugins_url('../admin/vc_extend/js/vc-headings-param.js', __FILE__));
     }
 }
开发者ID:cimocimocimo,项目名称:staydrysystems.com,代码行数:9,代码来源:Ultimate_Headings.php

示例14: __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

示例15: bb_add_cptlist

function bb_add_cptlist()
{
    if (function_exists('add_shortcode_param')) {
        add_shortcode_param('cptlist', 'bb_param_cptlist');
    }
    wp_register_script('Sortable', VCADMINURL . 'assets/js/vendor/Sortable.min.js', array(), '1.0.0', true);
    wp_register_script('cptlist', VCADMINURL . 'assets/js/cptlist.js', array(), '1.0.0', true);
    wp_enqueue_script('Sortable');
    wp_enqueue_script('cptlist');
}
开发者ID:sebjon-bytbil,项目名称:BB.CMS,代码行数:10,代码来源:cptlist.php


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