本文整理汇总了PHP中bsf_get_option函数的典型用法代码示例。如果您正苦于以下问题:PHP bsf_get_option函数的具体用法?PHP bsf_get_option怎么用?PHP bsf_get_option使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了bsf_get_option函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: dualbutton_scripts
function dualbutton_scripts()
{
$bsf_dev_mode = bsf_get_option('dev_mode');
if ($bsf_dev_mode === 'enable') {
$js_path = '../assets/js/';
$css_path = '../assets/css/';
$ext = '';
} else {
$js_path = '../assets/min-js/';
$css_path = '../assets/min-css/';
$ext = '.min';
}
wp_register_style('ult-dualbutton', plugins_url($css_path . 'dual-button' . $ext . '.css', __FILE__));
wp_register_script("jquery.dualbtn", plugins_url($js_path . "dual-button" . $ext . ".js", __FILE__), array('jquery'), ULTIMATE_VERSION);
if (isset($_SERVER['HTTP_REFERER'])) {
$params = parse_url($_SERVER['HTTP_REFERER']);
$vc_is_inline = false;
if (isset($params['query'])) {
parse_str($params['query'], $params);
$vc_is_inline = isset($params['vc_action']) ? true : false;
}
if ($vc_is_inline) {
//echo $vc_is_inline;
wp_enqueue_style('ult-dualbutton', plugins_url($css_path . 'dual-button' . $ext . '.css', __FILE__));
wp_enqueue_script("jquery.dualbtn", plugins_url($js_path . "dual-button" . $ext . ".js", __FILE__), array('jquery'), ULTIMATE_VERSION);
}
}
}
示例2: admin_scripts
function admin_scripts($hook)
{
if ($hook == "post.php" || $hook == "post-new.php" || $hook == 'visual-composer_page_vc-roles') {
$bsf_dev_mode = bsf_get_option('dev_mode');
if ($bsf_dev_mode === 'enable') {
wp_enqueue_script('ult-team-admin', plugins_url('../admin/js/team-admin.js', __FILE__), array('jquery'), ULTIMATE_VERSION, true);
}
}
}
示例3: admin_scripts
function admin_scripts($hook)
{
if ($hook == "post.php" || $hook == "post-new.php") {
$bsf_dev_mode = bsf_get_option('dev_mode');
if ($bsf_dev_mode === 'enable') {
//wp_enqueue_script('jquery.datetimep',plugins_url('../admin/js/bootstrap-datetimepicker.min.js',__FILE__),'1.0','jQuery',true);
wp_register_style("ult-colorpicker-style", plugins_url('../admin/css/bootstrap-datetimepicker-admin.css', __FILE__));
wp_enqueue_style('ult-colorpicker-style');
}
}
}
示例4: image_single_scripts
function image_single_scripts($hook)
{
if ($hook == "post.php" || $hook == "post-new.php") {
wp_enqueue_media();
$bsf_dev_mode = bsf_get_option('dev_mode');
if ($bsf_dev_mode === 'enable') {
wp_register_style("ultimate_image_single_css", plugins_url('../admin/vc_extend/css/ultimate_image_single.css', __FILE__));
wp_enqueue_style('ultimate_image_single_css');
}
}
}
示例5: button_admin_scripts
function button_admin_scripts($hook)
{
if ($hook == "post.php" || $hook == "post-new.php") {
$bsf_dev_mode = bsf_get_option('dev_mode');
if ($bsf_dev_mode === 'enable') {
$js_path = '../assets/js/';
$css_path = '../assets/css/';
$ext = '';
wp_enqueue_style('ult-button', plugins_url($css_path . 'advanced-buttons' . $ext . '.css', __FILE__));
}
}
}
示例6: register_ib_banner_assets
function register_ib_banner_assets()
{
$bsf_dev_mode = bsf_get_option('dev_mode');
if ($bsf_dev_mode === 'enable') {
$js_path = '../assets/js/';
$css_path = '../assets/css/';
$ext = '';
} else {
$js_path = '../assets/min-js/';
$css_path = '../assets/min-css/';
$ext = '.min';
}
wp_register_style('ult-interactive-banner', plugins_url($css_path . 'interactive-styles' . $ext . '.css', __FILE__), array(), ULTIMATE_VERSION, false);
}
示例7: info_table_assets
function info_table_assets()
{
$bsf_dev_mode = bsf_get_option('dev_mode');
if ($bsf_dev_mode === 'enable') {
$js_path = '../assets/js/';
$css_path = '../assets/css/';
$ext = '';
} else {
$js_path = '../assets/min-js/';
$css_path = '../assets/min-css/';
$ext = '.min';
}
wp_register_style('ultimate-pricing', plugins_url($css_path . 'pricing' . $ext . '.css', __FILE__), array(), ULTIMATE_VERSION, false);
}
示例8: register_cta_assets
function register_cta_assets()
{
$bsf_dev_mode = bsf_get_option('dev_mode');
if ($bsf_dev_mode === 'enable') {
$js_path = '../assets/js/';
$css_path = '../assets/css/';
$ext = '';
} else {
$js_path = '../assets/min-js/';
$css_path = '../assets/min-css/';
$ext = '.min';
}
wp_register_style('utl-ctaction-style', plugins_url($css_path . 'highlight-box' . $ext . '.css', __FILE__), array(), ULTIMATE_VERSION);
wp_register_script('utl-ctaction-script', plugins_url($js_path . 'highlight-box' . $ext . '.js', __FILE__), array('jquery'), ULTIMATE_VERSION);
}
示例9: register_swatch_assets
function register_swatch_assets()
{
$bsf_dev_mode = bsf_get_option('dev_mode');
if ($bsf_dev_mode === 'enable') {
$js_path = '../assets/js/';
$css_path = '../assets/css/';
$ext = '';
} else {
$js_path = '../assets/min-js/';
$css_path = '../assets/min-css/';
$ext = '.min';
}
wp_register_script("swatchbook-js", plugins_url($js_path . "swatchbook" . $ext . ".js", __FILE__), array('jquery'), ULTIMATE_VERSION);
wp_register_style("swatchbook-css", plugins_url($css_path . "swatchbook" . $ext . ".css", __FILE__), array(), ULTIMATE_VERSION);
}
示例10: creative_link_scripts
function creative_link_scripts()
{
$bsf_dev_mode = bsf_get_option('dev_mode');
if ($bsf_dev_mode === 'enable') {
$js_path = '../assets/js/';
$css_path = '../assets/css/';
$ext = '';
} else {
$js_path = '../assets/min-js/';
$css_path = '../assets/min-css/';
$ext = '.min';
}
wp_register_style('ult_cllink', plugins_url($css_path . 'creative-link' . $ext . '.css', __FILE__), array(), ULTIMATE_VERSION);
wp_register_script("jquery.ult_cllink", plugins_url($js_path . "creative-link" . $ext . ".js", __FILE__), array('jquery'), ULTIMATE_VERSION);
}
示例11: register_info_banner_assets
function register_info_banner_assets()
{
$bsf_dev_mode = bsf_get_option('dev_mode');
if ($bsf_dev_mode === 'enable') {
$js_path = '../assets/js/';
$css_path = '../assets/css/';
$ext = '';
} else {
$js_path = '../assets/min-js/';
$css_path = '../assets/min-css/';
$ext = '.min';
}
wp_register_script('utl-info-banner-script', plugins_url($js_path . 'info-banner' . $ext . '.js', __FILE__), array('jquery', 'ultimate-appear'), ULTIMATE_VERSION);
wp_register_style('utl-info-banner-style', plugins_url($css_path . 'info-banner' . $ext . '.css', __FILE__), array(), ULTIMATE_VERSION);
}
示例12: register_easy_separator_assets
function register_easy_separator_assets()
{
$bsf_dev_mode = bsf_get_option('dev_mode');
if ($bsf_dev_mode === 'enable') {
$js_path = '../assets/js/';
$css_path = '../assets/css/';
$ext = '';
} else {
$js_path = '../assets/min-js/';
$css_path = '../assets/min-css/';
$ext = '.min';
}
wp_register_style('ult-easy-separator-style', plugins_url($css_path . 'image-separator' . $ext . '.css', __FILE__), array(), ULTIMATE_VERSION);
wp_register_script('ult-easy-separator-script', plugins_url($js_path . 'image-separator' . $ext . '.js', __FILE__), array('jquery'), ULTIMATE_VERSION);
}
示例13: register_info_circle_assets
function register_info_circle_assets()
{
$bsf_dev_mode = bsf_get_option('dev_mode');
if ($bsf_dev_mode === 'enable') {
$js_path = '../assets/js/';
$css_path = '../assets/css/';
$ext = '';
} else {
$js_path = '../assets/min-js/';
$css_path = '../assets/min-css/';
$ext = '.min';
}
wp_register_script("info-circle", plugins_url($js_path . "info-circle" . $ext . ".js", __FILE__), array('jquery'), ULTIMATE_VERSION);
wp_register_script("info-circle-ui-effect", plugins_url($js_path . "jquery-ui-effect" . $ext . ".js", __FILE__), array('jquery'), ULTIMATE_VERSION);
wp_register_style("info-circle", plugins_url($css_path . "info-circle" . $ext . ".css", __FILE__), array(), ULTIMATE_VERSION, false);
}
示例14: ultimate_exp_scripts
function ultimate_exp_scripts()
{
$bsf_dev_mode = bsf_get_option('dev_mode');
if ($bsf_dev_mode === 'enable') {
$js_path = '../assets/js/';
$css_path = '../assets/css/';
$ext = '';
} else {
$js_path = '../assets/min-js/';
$css_path = '../assets/min-css/';
$ext = '.min';
}
wp_register_style('style_ultimate_expsection', plugins_url($css_path . 'expandable-section' . $ext . '.css', __FILE__), array(), ULTIMATE_VERSION, FALSE);
wp_register_script("jquery_ultimate_expsection", plugins_url($js_path . "expandable-section" . $ext . ".js", __FILE__), array('jquery', 'jquery_ui'), ULTIMATE_VERSION);
wp_register_script("jquery_ui", plugins_url($js_path . "jquery-ui" . $ext . ".js", __FILE__), array('jquery'), ULTIMATE_VERSION);
}
示例15: register_fancytext_assets
function register_fancytext_assets()
{
$bsf_dev_mode = bsf_get_option('dev_mode');
if ($bsf_dev_mode === 'enable') {
$js_path = '../assets/js/';
$css_path = '../assets/css/';
$ext = '';
} else {
$js_path = '../assets/min-js/';
$css_path = '../assets/min-css/';
$ext = '.min';
}
wp_register_style('ultimate-fancytext-style', plugins_url($css_path . 'fancytext' . $ext . '.css', __FILE__), array(), ULTIMATE_VERSION);
wp_register_script('ultimate-typed-js', plugins_url($js_path . 'typed' . $ext . '.js', __FILE__), array('jquery'), ULTIMATE_VERSION);
wp_register_script('ultimate-vticker-js', plugins_url($js_path . 'vticker' . $ext . '.js', __FILE__), array('jquery'), ULTIMATE_VERSION);
}