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
0
 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
0
 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
0
文件: vc-extend.php 项目: adwleg/site
 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
0
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
0
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
0
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');
}
 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);
 }
 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__));
 }
 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'));
 }
 function __construct()
 {
     $GLOBALS['pid'] = 0;
     $id = null;
     $pcnt = null;
     if (function_exists('add_shortcode_param')) {
         add_shortcode_param('icon_manager', array($this, 'icon_manager'));
     }
 }
 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'));
 }
 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__));
     }
 }
 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'));
         }
     }
 }
 function __construct()
 {
     if (function_exists('vc_add_shortcode_param')) {
         vc_add_shortcode_param('messenger', array(&$this, 'messenger_settings_field'));
     } else {
         if (function_exists('add_shortcode_param')) {
             add_shortcode_param('messenger', array(&$this, 'messenger_settings_field'));
         }
     }
 }
 function __construct()
 {
     if (function_exists('vc_add_shortcode_param')) {
         vc_add_shortcode_param('fontsmanager', array(&$this, 'fonts_setting_field'));
     } else {
         if (function_exists('add_shortcode_param')) {
             add_shortcode_param('fontsmanager', array(&$this, 'fonts_setting_field'));
         }
     }
 }
 function __construct()
 {
     if (function_exists('vc_add_shortcode_param')) {
         vc_add_shortcode_param('hidden_textarea', array(&$this, 'hiddentextarea_setting_field'));
     } else {
         if (function_exists('add_shortcode_param')) {
             add_shortcode_param('hidden_textarea', array(&$this, 'hiddentextarea_setting_field'));
         }
     }
 }
 function __construct()
 {
     if (function_exists('vc_add_shortcode_param')) {
         vc_add_shortcode_param('social_networks', array(&$this, 'socialnetworks_setting_field'));
     } else {
         if (function_exists('add_shortcode_param')) {
             add_shortcode_param('social_networks', array(&$this, 'socialnetworks_setting_field'));
         }
     }
 }
 function __construct()
 {
     if (function_exists('vc_add_shortcode_param')) {
         vc_add_shortcode_param('auto_generate', array(&$this, 'autogenerate_setting_field'));
     } else {
         if (function_exists('add_shortcode_param')) {
             add_shortcode_param('auto_generate', array(&$this, 'autogenerate_setting_field'));
         }
     }
 }
 function __construct()
 {
     if (function_exists('vc_add_shortcode_param')) {
         vc_add_shortcode_param('icons_panel', array(&$this, 'iconspanel_settings_field'));
     } else {
         if (function_exists('add_shortcode_param')) {
             add_shortcode_param('icons_panel', array(&$this, 'iconspanel_settings_field'));
         }
     }
 }
 function __construct()
 {
     if (function_exists('vc_add_shortcode_param')) {
         vc_add_shortcode_param('audioselect', array(&$this, 'audioselect_settings_field'));
     } else {
         if (function_exists('add_shortcode_param')) {
             add_shortcode_param('audioselect', array(&$this, 'audioselect_settings_field'));
         }
     }
 }
 function __construct()
 {
     if (function_exists('vc_add_shortcode_param')) {
         vc_add_shortcode_param('load_file', array(&$this, 'loadfile_setting_field'));
     } else {
         if (function_exists('add_shortcode_param')) {
             add_shortcode_param('load_file', array(&$this, 'loadfile_setting_field'));
         }
     }
 }
示例#23
0
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');
}
 function __construct()
 {
     if (function_exists('vc_add_shortcode_param')) {
         vc_add_shortcode_param('background', array(&$this, 'background_settings_field'));
     } else {
         if (function_exists('add_shortcode_param')) {
             add_shortcode_param('background', array(&$this, 'background_settings_field'));
         }
     }
 }
 function __construct()
 {
     if (function_exists('vc_add_shortcode_param')) {
         vc_add_shortcode_param('standardpostcat', array(&$this, 'standardpostcat_settings_field'));
     } else {
         if (function_exists('add_shortcode_param')) {
             add_shortcode_param('standardpostcat', array(&$this, 'standardpostcat_settings_field'));
         }
     }
 }
示例#26
0
 /**
  * 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');
     add_shortcode_param($param_name, 'vc_' . $param_name . '_form_field', $script_url);
     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', "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" => "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")))));
 }
 function __construct()
 {
     global $VISUAL_COMPOSER_EXTENSIONS;
     if (function_exists('add_shortcode_param')) {
         if ($VISUAL_COMPOSER_EXTENSIONS->TS_VCSC_CustomPostTypesCheckup == "true") {
             add_shortcode_param('custompost', array(&$this, 'custompost_settings_field'));
             add_shortcode_param('custompostcat', array(&$this, 'custompostcat_settings_field'));
         }
     }
 }
 /**
  * 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();
     add_shortcode_param('icon', array($this, 'icon_param'), THEME_URL . '/js/vc/icon-field.js');
     add_action('vc_before_init', array($this, 'map_shortcodes'));
 }
 function __construct()
 {
     if (function_exists('vc_add_shortcode_param')) {
         vc_add_shortcode_param('datetime_picker', array(&$this, 'datetimepicker_setting_field'));
     } else {
         if (function_exists('add_shortcode_param')) {
             add_shortcode_param('datetime_picker', array(&$this, 'datetimepicker_setting_field'));
         }
     }
 }
 function __construct()
 {
     if (function_exists('vc_add_shortcode_param')) {
         vc_add_shortcode_param('imagehotspot', array(&$this, 'imagehotspot_settings_field'));
     } else {
         if (function_exists('add_shortcode_param')) {
             add_shortcode_param('imagehotspot', array(&$this, 'imagehotspot_settings_field'));
         }
     }
 }