示例#1
0
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');
}
示例#2
0
function kt_add_vc_global_params()
{
    vc_set_shortcodes_templates_dir(THEME_DIR . '/js_composer/templates/');
    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);
    kt_enqueue_custom_script();
    if (function_exists('vc_add_shortcode_param')) {
        vc_add_shortcode_param('kt_select_image', 'vc_kt_select_image_settings_field');
        vc_add_shortcode_param('kt_categories', 'vc_kt_categories_settings_field');
        vc_add_shortcode_param('kt_number', 'vc_ktnumber_settings_field');
        vc_add_shortcode_param('kt_taxonomy', 'vc_kt_taxonomy_settings_field');
        vc_add_shortcode_param('kt_datetimepicker', 'vc_kt_datetimepicker_settings_field');
    } else {
        add_shortcode_param('kt_select_image', 'vc_kt_select_image_settings_field');
        add_shortcode_param('kt_categories', 'vc_kt_categories_settings_field');
        add_shortcode_param('kt_number', 'vc_ktnumber_settings_field');
        add_shortcode_param('kt_taxonomy', 'vc_kt_taxonomy_settings_field');
        add_shortcode_param('kt_datetimepicker', 'vc_kt_datetimepicker_settings_field');
    }
}