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);
         }
     }
 }
 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);
         }
     }
 }
Beispiel #3
0
 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');
         }
     }
 }
 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');
         }
     }
 }
Beispiel #5
0
 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__));
         }
     }
 }
 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);
 }
 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);
 }
 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);
 }
 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);
 }
Beispiel #10
0
 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);
 }
 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);
 }
 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);
 }
 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);
 }
 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);
 }
 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);
 }
 function register_modal_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("ultimate-modal-all", plugins_url("../assets/min-js/modal-all.min.js", __FILE__), array('jquery'), ULTIMATE_VERSION);
     //wp_register_script("ultimate-modal-all-switched",plugins_url("../assets/min-js/modal-all.min-switched.js",__FILE__),array('jquery'),ULTIMATE_VERSION);
     wp_register_style("ultimate-modal", plugins_url($css_path . "modal" . $ext . ".css", __FILE__), array(), ULTIMATE_VERSION);
 }
 function ultimate_front_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_script("ult-slick", plugins_url($js_path . "slick" . $ext . ".js", __FILE__), array('jquery'), ULTIMATE_VERSION, false);
     wp_register_script("ult-slick-custom", plugins_url($js_path . "slick-custom" . $ext . ".js", __FILE__), array('jquery', 'ult-slick'), ULTIMATE_VERSION, false);
     wp_register_style("ult-slick", plugins_url($css_path . "slick" . $ext . ".css", __FILE__), array(), ULTIMATE_VERSION, false);
     wp_register_style("ult-icons", plugins_url("../assets/css/icons.css", __FILE__), array(), ULTIMATE_VERSION, false);
 }
 function register_modal_assets()
 {
     $bsf_dev_mode = bsf_get_option('dev_mode');
     if ($bsf_dev_mode === 'enable') {
         $js_path = '../assets/js/';
         $css_path = '../assets/css/';
         $ext = '';
         wp_register_script("ultimate-modal-customizer", plugins_url($js_path . "modernizr-custom.js", __FILE__), array('jquery'), ULTIMATE_VERSION);
         wp_register_script("ultimate-modal-classie", plugins_url($js_path . "classie.js", __FILE__), array('jquery'), ULTIMATE_VERSION);
         wp_register_script("ultimate-modal-froogaloop2", plugins_url($js_path . "froogaloop2-min.js", __FILE__), array('jquery'), ULTIMATE_VERSION);
         wp_register_script("ultimate-modal-snap-svg", plugins_url($js_path . "snap-svg.js", __FILE__), array('jquery'), ULTIMATE_VERSION);
         wp_register_script("ultimate-modal", plugins_url($js_path . "modal.js", __FILE__), array('jquery', 'ultimate-modal-customizer', 'ultimate-modal-classie', 'ultimate-modal-froogaloop2', 'ultimate-modal-snap-svg'), ULTIMATE_VERSION);
     } else {
         $js_path = '../assets/min-js/';
         $css_path = '../assets/min-css/';
         $ext = '.min';
     }
     wp_register_script("ultimate-modal-all", plugins_url("../assets/min-js/modal-all.min.js", __FILE__), array('jquery'), ULTIMATE_VERSION);
     //wp_register_script("ultimate-modal-all-switched",plugins_url("../assets/min-js/modal-all.min-switched.js",__FILE__),array('jquery'),ULTIMATE_VERSION);
     wp_register_style("ultimate-modal", plugins_url($css_path . "modal" . $ext . ".css", __FILE__), array(), ULTIMATE_VERSION);
 }
Beispiel #19
0
 function bsf_admin_scripts_updater($hook)
 {
     if (defined('OPN_VERSION')) {
         echo "<style>\n\t\t\t\t\t@font-face {\n\t\t\t\t\t\tfont-family: 'opn';\n\t\t\t\t\t\tsrc:url('" . plugins_url('fonts/opn.eot', __FILE__) . "');\n\t\t\t\t\t\tsrc:url('" . plugins_url('fonts/opn.eot', __FILE__) . "') format('embedded-opentype'),\n\t\t\t\t\t\t\turl('" . plugins_url('fonts/opn.woff', __FILE__) . "') format('woff'),\n\t\t\t\t\t\t\turl('" . plugins_url('fonts/opn.ttf', __FILE__) . "') format('truetype'),\n\t\t\t\t\t\t\turl('" . plugins_url('fonts/opn.svg', __FILE__) . "') format('svg');\n\t\t\t\t\t\tfont-weight: normal;\n\t\t\t\t\t\tfont-style: normal;\n\t\t\t\t\t}\n\t\t\t\t\t.toplevel_page_opn-settings > div.wp-menu-image:before {\n\t\t\t\t\t\tcontent: \"\\e600\" !important;\n\t\t\t\t\t\tfont-family: 'opn' !important;\n\t\t\t\t\t}\n\t\t\t\t</style>";
     }
     echo "\n\t\t\t\t<style>\n\t\t\t\t\t@font-face {\n\t\t\t\t\t\tfont-family: 'ultimate';\n\t\t\t\t\t\tsrc:url('" . plugins_url('fonts/ultimate.eot', __FILE__) . "');\n\t\t\t\t\t\tsrc:url('" . plugins_url('fonts/ultimate.eot', __FILE__) . "') format('embedded-opentype'),\n\t\t\t\t\t\t\turl('" . plugins_url('fonts/ultimate.woff', __FILE__) . "') format('woff'),\n\t\t\t\t\t\t\turl('" . plugins_url('fonts/ultimate.ttf', __FILE__) . "') format('truetype'),\n\t\t\t\t\t\t\turl('" . plugins_url('fonts/ultimate.svg', __FILE__) . "') format('svg');\n\t\t\t\t\t\tfont-weight: normal;\n\t\t\t\t\t\tfont-style: normal;\n\t\t\t\t\t}\n\t\t\t\t\t.toplevel_page_ultimate-dashboard > div.wp-menu-image:before {\n\t\t\t\t\t\tcontent: \"\\e600\" !important;\n\t\t\t\t\t\tfont-family: 'ultimate' !important;\n\t\t\t\t\t\tspeak: none;\n\t\t\t\t\t\tfont-style: normal;\n\t\t\t\t\t\tfont-weight: normal;\n\t\t\t\t\t\tfont-variant: normal;\n\t\t\t\t\t\ttext-transform: none;\n\t\t\t\t\t\tline-height: 1;\n\t\t\t\t\t\t-webkit-font-smoothing: antialiased;\n\t\t\t\t\t\t-moz-osx-font-smoothing: grayscale;\n\t\t\t\t\t\tfont-size:24px;\n\t\t\t\t\t}\n\t\t\t\t</style>\n\t\t\t";
     if ($hook == "post.php" || $hook == "post-new.php" || $hook == 'ultimate_page_about-ultimate') {
         $bsf_dev_mode = bsf_get_option('dev_mode');
         wp_register_style("ultimate-admin-style", plugins_url("../admin/css/style.css", __FILE__));
         wp_register_style("ultimate-chosen-style", plugins_url('../admin/vc_extend/css/chosen.css', __FILE__));
         wp_register_script("ultimate-chosen-script", plugins_url("../admin/vc_extend/js/chosen.js", __FILE__));
         wp_register_script("ultimate-vc-backend-script", plugins_url("../admin/js/ultimate-vc-backend.min.js", __FILE__), array('jquery'), ULTIMATE_VERSION, true);
         wp_register_style("ultimate-vc-backend-style", plugins_url('../admin/css/ultimate-vc-backend.min.css', __FILE__));
         if ($bsf_dev_mode === 'enable') {
             wp_enqueue_style('ultimate-admin-style');
         } else {
             wp_enqueue_style('wp-color-picker');
             wp_enqueue_script('ultimate-vc-backend-script');
             wp_enqueue_style('ultimate-vc-backend-style');
         }
     }
 }
 static function front_scripts()
 {
     /* wp_enqueue_script('jquery.video_bg',plugins_url('../assets/js/ultimate_bg.js',__FILE__),'1.0',array('jQuery')); */
     $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';
     }
     $ultimate_css = get_option('ultimate_css');
     if ($ultimate_css != "enable" || $bsf_dev_mode === 'enable') {
         wp_enqueue_style('background-style', plugins_url($css_path . 'background-style' . $ext . '.css', __FILE__));
     }
 }
 function ultimate_spacing_param_scripts($hook)
 {
     if ($hook == "post.php" || $hook == "post-new.php") {
         $bsf_dev_mode = bsf_get_option('dev_mode');
         if ($bsf_dev_mode === 'enable') {
             wp_register_style('ultimate_spacing_css', plugins_url('../admin/vc_extend/css/ultimate_spacing.css', __FILE__));
             wp_enqueue_style('ultimate_spacing_css');
         }
     }
 }
    ?>
</div>
										</div>
										<div class="onoffswitch-inactive">
											<div class="onoffswitch-switch"><?php 
    echo __('OFF', 'ultimate_vc');
    ?>
</div>
										</div>
									</div>
								</label>
								 </div>
							</td>
						</tr>-->
						<?php 
    $bsf_dev_mode = bsf_get_option('dev_mode');
    if ($bsf_dev_mode == 'enable') {
        $bsf_dev_mode = 'checked="checked"';
    }
    ?>
						<tr>
							<th scope="row"><?php 
    echo __("Developer Mode", "ultimate_vc");
    ?>
</th>
							<td> <div class="onoffswitch">
							<input type="checkbox" <?php 
    echo $bsf_dev_mode;
    ?>
 id="bsf_dev_mode" value="enable" class="onoffswitch-checkbox" name="bsf_options[dev_mode]" />
								 <label class="onoffswitch-label" for="bsf_dev_mode">
 function ult_hotspot_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';
     }
     //  css
     //wp_register_style( 'ult_hotspot_tooltip_min_css',plugins_url( 'assets/css/hotspot-tooltip-min.css', dirname( __FILE__ )) );
     wp_register_style('ult_hotspot_css', plugins_url($css_path . "hotspot" . $ext . ".css", __FILE__), array(), ULTIMATE_VERSION, false);
     wp_register_style('ult_hotspot_tooltipster_css', plugins_url($css_path . "hotspot-tooltipster" . $ext . ".css", __FILE__), array(), ULTIMATE_VERSION, false);
     //  js
     wp_register_script('ult_hotspot_js', plugins_url($js_path . "hotspot" . $ext . ".js", __FILE__), array('jquery'), ULTIMATE_VERSION, false);
     wp_register_script('ult_hotspot_tooltipster_js', plugins_url($js_path . "hotspot-tooltipster" . $ext . ".js", __FILE__), array('jquery'), ULTIMATE_VERSION, false);
 }
 function aio_front_scripts()
 {
     $isAjax = false;
     $ultimate_ajax_theme = get_option('ultimate_ajax_theme');
     if ($ultimate_ajax_theme == 'enable') {
         $isAjax = true;
     }
     $dependancy = array('jquery');
     $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';
     }
     $ultimate_smooth_scroll_compatible = get_option('ultimate_smooth_scroll_compatible');
     // register js
     wp_register_script('ultimate-script', plugins_url('assets/min-js/ultimate.min.js', __FILE__), array('jquery'), ULTIMATE_VERSION, false);
     wp_register_script('ultimate-appear', plugins_url($js_path . 'jquery-appear' . $ext . '.js', __FILE__), array('jquery'), ULTIMATE_VERSION);
     wp_register_script('ultimate-custom', plugins_url($js_path . 'custom' . $ext . '.js', __FILE__), array('jquery'), ULTIMATE_VERSION);
     wp_register_script('ultimate-vc-params', plugins_url($js_path . 'ultimate-params' . $ext . '.js', __FILE__), array('jquery'), ULTIMATE_VERSION);
     if ($ultimate_smooth_scroll_compatible === 'enable') {
         $smoothScroll = 'SmoothScroll-compatible.min.js';
     } else {
         $smoothScroll = 'SmoothScroll.min.js';
     }
     wp_register_script('ultimate-smooth-scroll', plugins_url('assets/min-js/' . $smoothScroll, __FILE__), array('jquery'), ULTIMATE_VERSION, true);
     wp_register_script("ultimate-modernizr", plugins_url($js_path . 'modernizr-custom' . $ext . '.js', __FILE__), array('jquery'), ULTIMATE_VERSION);
     wp_register_script("ultimate-tooltip", plugins_url($js_path . 'tooltip' . $ext . '.js', __FILE__), array('jquery'), ULTIMATE_VERSION);
     // register css
     wp_register_style('ultimate-animate', plugins_url($css_path . 'animate' . $ext . '.css', __FILE__), array(), ULTIMATE_VERSION);
     wp_register_style('ultimate-style', plugins_url($css_path . 'style' . $ext . '.css', __FILE__), array(), ULTIMATE_VERSION);
     wp_register_style('ultimate-style-min', plugins_url('assets/min-css/ultimate.min.css', __FILE__), array(), ULTIMATE_VERSION);
     wp_register_style('ultimate-tooltip', plugins_url($css_path . 'tooltip' . $ext . '.css', __FILE__), array(), ULTIMATE_VERSION);
     $ultimate_smooth_scroll = get_option('ultimate_smooth_scroll');
     if ($ultimate_smooth_scroll == "enable" || $ultimate_smooth_scroll_compatible === 'enable') {
         wp_enqueue_script('ultimate-smooth-scroll');
     }
     if (function_exists('vc_is_editor')) {
         if (vc_is_editor()) {
             wp_enqueue_style('vc-fronteditor', plugins_url('assets/min-css/vc-fronteditor.min.css', __FILE__));
         }
     }
     $fonts = get_option('smile_fonts');
     if (is_array($fonts)) {
         foreach ($fonts as $font => $info) {
             $style_url = $info['style'];
             if (strpos($style_url, 'http://') !== false) {
                 wp_enqueue_style('bsf-' . $font, $info['style']);
             } else {
                 wp_enqueue_style('bsf-' . $font, trailingslashit($this->paths['fonturl']) . $info['style']);
             }
         }
     }
     $ultimate_global_scripts = bsf_get_option('ultimate_global_scripts');
     if ($ultimate_global_scripts === 'enable') {
         wp_enqueue_script('ultimate-modernizr');
         wp_enqueue_script('jquery_ui');
         wp_enqueue_script('masonry');
         wp_enqueue_script('googleapis');
         wp_enqueue_script('ultimate-script');
         wp_enqueue_script('ultimate-modal-all');
         wp_enqueue_script('jquery.shake', plugins_url($js_path . 'jparallax' . $ext . '.js', __FILE__));
         wp_enqueue_script('jquery.vhparallax', plugins_url($js_path . 'vhparallax' . $ext . '.js', __FILE__));
         wp_enqueue_style('ultimate-style-min');
         wp_enqueue_style("ult-icons");
         wp_enqueue_style('ultimate-vidcons', plugins_url('assets/fonts/vidcons.css', __FILE__));
         wp_enqueue_script('jquery.ytplayer', plugins_url($js_path . 'mb-YTPlayer' . $ext . '.js', __FILE__));
         $Ultimate_Google_Font_Manager = new Ultimate_Google_Font_Manager();
         $Ultimate_Google_Font_Manager->enqueue_selected_ultimate_google_fonts();
         return false;
     }
     if (!is_404() && !is_search()) {
         global $post;
         if (!$post) {
             return false;
         }
         $post_content = $post->post_content;
         $is_element_on_page = $this->check_our_element_on_page($post_content);
         if (stripos($post_content, 'font_call:')) {
             preg_match_all('/font_call:(.*?)"/', $post_content, $display);
             enquque_ultimate_google_fonts_optimzed($display[1]);
         }
         if (!$is_element_on_page) {
             return false;
         }
         $ultimate_js = get_option('ultimate_js');
         if (($ultimate_js == 'enable' || $isAjax == true) && $bsf_dev_mode != 'enable') {
             if (stripos($post_content, '[swatch_container') || stripos($post_content, '[ultimate_modal')) {
                 wp_enqueue_script('ultimate-modernizr');
             }
             if (stripos($post_content, '[ultimate_exp_section') || stripos($post_content, '[info_circle')) {
                 wp_enqueue_script('jquery_ui');
             }
             if (stripos($post_content, '[icon_timeline')) {
                 wp_enqueue_script('masonry');
             }
             if ($isAjax == true) {
                 // if ajax site load all js
                 wp_enqueue_script('masonry');
             }
             if (stripos($post_content, '[ultimate_google_map')) {
                 wp_enqueue_script('googleapis');
             }
             wp_enqueue_script('ultimate-script');
             if (stripos($post_content, '[ultimate_modal')) {
                 //$modal_fixer = get_option('ultimate_modal_fixer');
                 //if($modal_fixer === 'enable')
                 //wp_enqueue_script('ultimate-modal-all-switched');
                 //else
                 wp_enqueue_script('ultimate-modal-all');
             }
         } else {
             if ($ultimate_js == 'disable') {
                 wp_enqueue_script('ultimate-vc-params');
                 if (stripos($post_content, '[ultimate_spacer') || stripos($post_content, '[ult_buttons') || stripos($post_content, '[ult_team') || stripos($post_content, '[ultimate_icon_list')) {
                     wp_enqueue_script('ultimate-custom');
                 }
                 if (stripos($post_content, '[just_icon') || stripos($post_content, '[ult_animation_block') || stripos($post_content, '[icon_counter') || stripos($post_content, '[ultimate_google_map') || stripos($post_content, '[icon_timeline') || stripos($post_content, '[bsf-info-box') || stripos($post_content, '[info_list') || stripos($post_content, '[ultimate_info_table') || stripos($post_content, '[interactive_banner_2') || stripos($post_content, '[interactive_banner') || stripos($post_content, '[ultimate_pricing') || stripos($post_content, '[ultimate_icons')) {
                     wp_enqueue_script('ultimate-appear');
                     wp_enqueue_script('ultimate-custom');
                 }
                 if (stripos($post_content, '[ultimate_heading')) {
                     wp_enqueue_script("ultimate-headings-script");
                 }
                 if (stripos($post_content, '[ultimate_carousel')) {
                     wp_enqueue_script('ult-slick');
                     wp_enqueue_script('ultimate-appear');
                     wp_enqueue_script('ult-slick-custom');
                 }
                 if (stripos($post_content, '[ult_countdown')) {
                     wp_enqueue_script('jquery.timecircle');
                     wp_enqueue_script('jquery.countdown');
                 }
                 if (stripos($post_content, '[icon_timeline')) {
                     wp_enqueue_script('masonry');
                 }
                 if (stripos($post_content, '[ultimate_info_banner')) {
                     wp_enqueue_script('ultimate-appear');
                     wp_enqueue_script('utl-info-banner-script');
                 }
                 if (stripos($post_content, '[ultimate_google_map')) {
                     wp_enqueue_script('googleapis');
                 }
                 if (stripos($post_content, '[swatch_container')) {
                     wp_enqueue_script('ultimate-modernizr');
                     wp_enqueue_script('swatchbook-js');
                 }
                 if (stripos($post_content, '[ult_ihover')) {
                     wp_enqueue_script('ult_ihover_js');
                 }
                 if (stripos($post_content, '[ult_hotspot')) {
                     wp_enqueue_script('ult_hotspot_tooltipster_js');
                     wp_enqueue_script('ult_hotspot_js');
                 }
                 if (stripos($post_content, '[ult_content_box')) {
                     wp_enqueue_script('ult_content_box_js');
                 }
                 if (stripos($post_content, '[bsf-info-box')) {
                     wp_enqueue_script('info_box_js');
                 }
                 if (stripos($post_content, '[icon_counter')) {
                     wp_enqueue_script('flip_box_js');
                 }
                 if (stripos($post_content, '[ultimate_ctation')) {
                     wp_enqueue_script('utl-ctaction-script');
                 }
                 if (stripos($post_content, '[stat_counter')) {
                     wp_enqueue_script('ultimate-appear');
                     wp_enqueue_script('ult-stats-counter-js');
                     //wp_enqueue_script('ult-slick-custom');
                     wp_enqueue_script('ultimate-custom');
                     array_push($dependancy, 'stats-counter-js');
                 }
                 if (stripos($post_content, '[ultimate_video_banner')) {
                     wp_enqueue_script('ultimate-video-banner-script');
                 }
                 if (stripos($post_content, '[ult_dualbutton')) {
                     wp_enqueue_script('jquery.dualbtn');
                 }
                 if (stripos($post_content, '[ult_createlink')) {
                     wp_enqueue_script('jquery.ult_cllink');
                 }
                 if (stripos($post_content, '[ultimate_img_separator')) {
                     wp_enqueue_script('ultimate-appear');
                     wp_enqueue_script('ult-easy-separator-script');
                     wp_enqueue_script('ultimate-custom');
                 }
                 if (stripos($post_content, '[ult_tab_element')) {
                     wp_enqueue_script('ultimate-appear');
                     wp_enqueue_script('ult_tabs_rotate');
                     wp_enqueue_script('ult_tabs_acordian_js');
                 }
                 if (stripos($post_content, '[ultimate_exp_section')) {
                     wp_enqueue_script('jquery_ui');
                     wp_enqueue_script('jquery_ultimate_expsection');
                 }
                 if (stripos($post_content, '[info_circle')) {
                     wp_enqueue_script('jquery_ui');
                     wp_enqueue_script('ultimate-appear');
                     wp_enqueue_script('info-circle');
                     //wp_enqueue_script('info-circle-ui-effect');
                 }
                 if (stripos($post_content, '[ultimate_modal')) {
                     wp_enqueue_script('ultimate-modernizr');
                     //$modal_fixer = get_option('ultimate_modal_fixer');
                     //if($modal_fixer === 'enable')
                     //wp_enqueue_script('ultimate-modal-all-switched');
                     //else
                     wp_enqueue_script('ultimate-modal-all');
                 }
                 if (stripos($post_content, '[ult_team')) {
                     wp_enqueue_script('ultimate-team');
                 }
             }
         }
         $ultimate_css = get_option('ultimate_css');
         if ($ultimate_css == "enable") {
             wp_enqueue_style('ultimate-style-min');
             if (stripos($post_content, '[ultimate_carousel')) {
                 wp_enqueue_style("ult-icons");
             }
         } else {
             $ib_2_found = $ib_found = false;
             wp_enqueue_style('ultimate-style');
             if (stripos($post_content, '[ult_animation_block')) {
                 wp_enqueue_style('ultimate-animate');
             }
             if (stripos($post_content, '[icon_counter')) {
                 wp_enqueue_style('ultimate-animate');
                 wp_enqueue_style('ult-flip-style');
             }
             if (stripos($post_content, '[ult_countdown')) {
                 wp_enqueue_style('ult-countdown');
             }
             if (stripos($post_content, '[ultimate_icon_list')) {
                 wp_enqueue_style('ultimate-animate');
                 wp_enqueue_style('ultimate-tooltip');
             }
             if (stripos($post_content, '[ultimate_carousel')) {
                 wp_enqueue_style("ult-slick");
                 wp_enqueue_style("ult-icons");
                 wp_enqueue_style("ultimate-animate");
             }
             if (stripos($post_content, '[ultimate_fancytext')) {
                 wp_enqueue_style('ultimate-fancytext-style');
             }
             if (stripos($post_content, '[ultimate_ctation')) {
                 wp_enqueue_style('utl-ctaction-style');
             }
             if (stripos($post_content, '[ult_buttons')) {
                 wp_enqueue_style('ult-btn');
             }
             if (stripos($post_content, '[ultimate_heading')) {
                 wp_enqueue_style("ultimate-headings-style");
             }
             if (stripos($post_content, '[ultimate_icons') || stripos($post_content, '[single_icon')) {
                 wp_enqueue_style('ultimate-animate');
                 wp_enqueue_style('ultimate-tooltip');
             }
             if (stripos($post_content, '[ult_ihover')) {
                 wp_enqueue_style('ult_ihover_css');
             }
             if (stripos($post_content, '[ult_hotspot')) {
                 wp_enqueue_style('ult_hotspot_css');
                 wp_enqueue_style('ult_hotspot_tooltipster_css');
             }
             if (stripos($post_content, '[ult_content_box')) {
                 wp_enqueue_style('ult_content_box_css');
             }
             if (stripos($post_content, '[bsf-info-box')) {
                 wp_enqueue_style('ultimate-animate');
                 wp_enqueue_style('info-box-style');
             }
             if (stripos($post_content, '[info_circle')) {
                 wp_enqueue_style('ultimate-animate');
                 wp_enqueue_style('info-circle');
             }
             if (stripos($post_content, '[ultimate_info_banner')) {
                 wp_enqueue_style('utl-info-banner-style');
                 wp_enqueue_style('ultimate-animate');
             }
             if (stripos($post_content, '[icon_timeline')) {
                 wp_enqueue_style('ultimate-animate');
                 wp_enqueue_style('ultimate-timeline-style');
             }
             if (stripos($post_content, '[just_icon')) {
                 wp_enqueue_style('ultimate-animate');
                 wp_enqueue_style('ultimate-tooltip');
             }
             if (stripos($post_content, '[interactive_banner_2')) {
                 $ib_2_found = true;
             }
             if (stripos($post_content, '[interactive_banner') && !stripos($post_content, '[interactive_banner_2')) {
                 $ib_found = true;
             }
             if (stripos($post_content, '[interactive_banner ') && stripos($post_content, '[interactive_banner_2')) {
                 $ib_found = true;
                 $ib_2_found = true;
             }
             if ($ib_found && !$ib_2_found) {
                 wp_enqueue_style('ultimate-animate');
                 wp_enqueue_style('ult-interactive-banner');
             } else {
                 if (!$ib_found && $ib_2_found) {
                     wp_enqueue_style('ult-ib2-style');
                 } else {
                     if ($ib_found && $ib_2_found) {
                         wp_enqueue_style('ultimate-animate');
                         wp_enqueue_style('ult-interactive-banner');
                         wp_enqueue_style('ult-ib2-style');
                     }
                 }
             }
             if (stripos($post_content, '[info_list')) {
                 wp_enqueue_style('ultimate-animate');
             }
             if (stripos($post_content, '[ultimate_modal')) {
                 wp_enqueue_style('ultimate-animate');
                 wp_enqueue_style('ultimate-modal');
             }
             if (stripos($post_content, '[ultimate_info_table')) {
                 wp_enqueue_style('ultimate-animate');
                 wp_enqueue_style("ultimate-pricing");
             }
             if (stripos($post_content, '[ultimate_pricing')) {
                 wp_enqueue_style('ultimate-animate');
                 wp_enqueue_style("ultimate-pricing");
             }
             if (stripos($post_content, '[swatch_container')) {
                 wp_enqueue_style('swatchbook-css');
             }
             if (stripos($post_content, '[stat_counter')) {
                 wp_enqueue_style('ultimate-animate');
                 wp_enqueue_style('ult-stats-counter-style');
             }
             if (stripos($post_content, '[ultimate_video_banner')) {
                 wp_enqueue_style('ultimate-video-banner-style');
             }
             if (stripos($post_content, '[ult_dualbutton')) {
                 wp_enqueue_style('ult-dualbutton');
             }
             if (stripos($post_content, '[ult_createlink')) {
                 wp_enqueue_style('ult_cllink');
             }
             if (stripos($post_content, '[ultimate_img_separator')) {
                 wp_enqueue_style('ultimate-animate');
                 wp_enqueue_style('ult-easy-separator-style');
             }
             if (stripos($post_content, '[ult_tab_element')) {
                 wp_enqueue_style('ult_tabs');
                 wp_enqueue_style('ult_tabs_acordian');
             }
             if (stripos($post_content, '[ultimate_exp_section')) {
                 wp_enqueue_style('style_ultimate_expsection');
             }
             if (stripos($post_content, '[ult_team')) {
                 wp_enqueue_style('ultimate-team');
             }
         }
     }
 }
 function ultimate_boxshadow_param_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_style('wp-color-picker');
             wp_register_style('ultimate_boxshadow_param_css', plugins_url('../admin/vc_extend/css/vc_param_boxshadow.css', __FILE__));
             wp_enqueue_style('ultimate_boxshadow_param_css');
             //wp_register_script('ultimate_boxshadow_param_js',plugins_url( '../admin/vc_extend/js/vc-box-shadow-param.js', __FILE__ ));
             //wp_enqueue_style( 'ultimate_boxshadow_param_choosen_css', plugins_url('../admin/vc_extend/css/chosen.css', __FILE__ ));
             //wp_enqueue_script('ultimate_boxshadow_param_choosen_js',plugins_url( '../admin/vc_extend/js/chosen.js', __FILE__ ));
         }
     }
 }
Beispiel #26
0
 function front_scripts($post)
 {
     if (!is_404() && !is_search() && !is_archive()) {
         global $post;
         $count = 0;
         $content = $post->post_content;
         $shortcodes = array('woocomposer_product', 'woocomposer_list', 'woocomposer_grid', 'woocomposer_grid_cat', 'woocomposer_carousel_cat', 'woocomposer_carousel');
         foreach ($shortcodes as $shortcode) {
             if (has_shortcode($content, $shortcode)) {
                 $count++;
             }
         }
         wp_register_script('woocomposer-unveil', plugins_url('assets/js/unveil.js', __FILE__), array('jquery'), WOOCOMPOSER_VERSION, true);
         wp_register_script('woocomposer-slick', plugins_url('assets/js/slick.js', __FILE__), array('jquery'), WOOCOMPOSER_VERSION, true);
         wp_register_script('woocomposer-js', plugins_url('assets/js/custom.js', __FILE__), array('jquery', 'woocomposer-slick'), WOOCOMPOSER_VERSION, true);
         wp_register_style('woocomposer-front', plugins_url('assets/css/style.css', __FILE__), array(), WOOCOMPOSER_VERSION);
         wp_register_style('woocomposer-front-wooicon', plugins_url('assets/css/wooicon.css', __FILE__), array(), WOOCOMPOSER_VERSION);
         wp_register_style('woocomposer-front-slick', plugins_url('assets/css/slick.css', __FILE__), array(), WOOCOMPOSER_VERSION);
         wp_register_style('woocomposer-animate', plugins_url('assets/css/animate.min.css', __FILE__), array(), WOOCOMPOSER_VERSION);
         wp_register_script('woocomposer-script', plugins_url('assets/js/woocomposer.min.js', __FILE__), array('jquery'), WOOCOMPOSER_VERSION, true);
         wp_register_style('woocomposer-style', plugins_url('assets/css/woocomposer.min.css', __FILE__), array(), WOOCOMPOSER_VERSION);
         if (defined('WOOCOMMERCE_VERSION') && version_compare('2.1.0', WOOCOMMERCE_VERSION, '<') && $count !== 0) {
             $ultimate_css = get_option('ultimate_css');
             $bsf_dev_mode = bsf_get_option('dev_mode');
             if ($ultimate_css == "enable" && $bsf_dev_mode !== 'enable') {
                 wp_enqueue_style("woocomposer-style");
             } else {
                 wp_enqueue_style("woocomposer-front");
                 wp_enqueue_style("woocomposer-front-wooicon");
                 wp_enqueue_style("woocomposer-front-slick");
                 wp_enqueue_style("woocomposer-animate");
             }
             $ultimate_js = get_option('ultimate_js');
             wp_enqueue_script('jquery');
             if ($ultimate_js == 'enable') {
                 wp_enqueue_script("woocomposer-script");
             } else {
                 wp_enqueue_script("woocomposer-unveil");
                 wp_enqueue_script("woocomposer-slick");
                 wp_enqueue_script("woocomposer-js");
             }
         }
     }
 }
Beispiel #27
0
    ?>
</div>
										</div>
										<div class="onoffswitch-inactive">
											<div class="onoffswitch-switch"><?php 
    echo __('OFF', 'ultimate_vc');
    ?>
</div>
										</div>
									</div>
								</label>
								 </div>
							</td>
						</tr>
						<?php 
    $ultimate_global_scripts = bsf_get_option('ultimate_global_scripts');
    if ($ultimate_global_scripts == 'enable') {
        $ultimate_global_scripts = 'checked="checked"';
    }
    ?>
						<tr>
							<th scope="row"><?php 
    echo __("Load scripts globally", "ultimate_vc");
    ?>
</th>
							<td> <div class="onoffswitch">
							<input type="checkbox" <?php 
    echo $ultimate_global_scripts;
    ?>
 id="ultimate_global_scripts" value="enable" class="onoffswitch-checkbox" name="bsf_options[ultimate_global_scripts]" />
								 <label class="onoffswitch-label" for="ultimate_global_scripts">
 function ultimate_border_param_scripts($hook)
 {
     wp_register_style("ultimate-border-style", plugins_url('../admin/vc_extend/css/ultimate_border.css', __FILE__));
     if ($hook == "post.php" || $hook == "post-new.php") {
         $bsf_dev_mode = bsf_get_option('dev_mode');
         if ($bsf_dev_mode === 'enable') {
             wp_enqueue_style('wp-color-picker');
             wp_enqueue_style('ultimate-border-style');
             wp_enqueue_style('ultimate-chosen-style');
             wp_enqueue_script('ultimate-chosen-script');
         }
     }
 }
Beispiel #29
0
 function ult_ihover_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_ihover_css', plugins_url($css_path . 'ihover' . $ext . '.css', __FILE__));
     wp_register_script('ult_ihover_js', plugins_url($js_path . 'ihover' . $ext . '.js', __FILE__), array('jquery'), ULTIMATE_VERSION, true);
 }
Beispiel #30
0
 function ultimate_tabs()
 {
     $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('ult_tabs_rotate', plugins_url($js_path . 'tabs' . $ext . '.js', __FILE__), array('jquery'), ULTIMATE_VERSION, true);
     wp_register_style('ult_tabs', plugins_url($css_path . 'tabs' . $ext . '.css', __FILE__));
     wp_register_script('ult_tabs_acordian_js', plugins_url($js_path . 'tabs-accordion' . $ext . '.js', __FILE__), array('jquery'), ULTIMATE_VERSION, true);
     wp_register_style('ult_tabs_acordian', plugins_url($css_path . 'tabs-accordion' . $ext . '.css', __FILE__));
 }