本文整理汇总了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'));
}
}
示例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'));
}
}
示例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__));
}
}
示例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'));
}
}
示例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');
}
示例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');
}
示例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');
}
示例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);
}
示例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__));
}
示例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'));
}
示例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'));
}
}
示例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'));
}
示例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__));
}
}
示例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'));
}
}
}
示例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');
}