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 aio_front_scripts() { // register js wp_register_script('ultimate-appear', $this->assets_js . 'jquery.appear.js', array('jquery'), '1.5', true); wp_register_script('ultimate-custom', $this->assets_js . 'custom.js', array('jquery'), '1.5', true); // register css wp_register_style('ultimate-animate', $this->assets_css . 'animate.css'); wp_register_style('ultimate-style', $this->assets_css . 'style.css'); if (function_exists('vc_is_editor')) { if (vc_is_editor()) { wp_enqueue_style('vc-fronteditor', $this->assets_css . 'vc-fronteditor.css'); } } $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']); } } } }
function aio_front_scripts() { $isAjax = false; $ultimate_ajax_theme = get_option('ultimate_ajax_theme'); if ($ultimate_ajax_theme == 'enable') { $isAjax = true; } $dependancy = array('jquery'); // 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('assets/min-js/jquery.appear.min.js', __FILE__), array('jquery'), ULTIMATE_VERSION); wp_register_script('ultimate-custom', plugins_url('assets/min-js/custom.min.js', __FILE__), array('jquery'), ULTIMATE_VERSION); wp_register_script('ultimate-vc-params', plugins_url('assets/min-js/ultimate-params.min.js', __FILE__), array('jquery'), ULTIMATE_VERSION); // register css wp_register_style('ultimate-animate', plugins_url('assets/min-css/animate.min.css', __FILE__), array(), ULTIMATE_VERSION); wp_register_style('ultimate-style', plugins_url('assets/min-css/style.min.css', __FILE__), array(), ULTIMATE_VERSION); wp_register_style('ultimate-style-min', plugins_url('assets/min-css/ultimate.min.css', __FILE__), array(), ULTIMATE_VERSION); if (!is_404() && !is_search()) { global $post; if (!$post) { return false; } $post_content = $post->post_content; if (stripos($post_content, 'font_call:')) { preg_match_all('/font_call:(.*?)"/', $post_content, $display); enquque_ultimate_google_fonts_optimzed($display[1]); } $ultimate_js = get_option('ultimate_js'); if ($ultimate_js == 'enable' || $isAjax == true) { wp_enqueue_script('ultimate-script'); if (stripos($post_content, '[icon_timeline')) { wp_enqueue_script('masonry'); } if (stripos($post_content, '[ultimate_google_map')) { wp_enqueue_script('googleapis'); } if ($isAjax == true) { // if ajax site load all js wp_enqueue_script('masonry'); } } 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, '[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('modernizr-79639-js'); 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_js'); wp_enqueue_script('ult_hotspot_tooltipster_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('front-js'); wp_enqueue_script('ult-slick-custom'); array_push($dependancy, 'front-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'); } } } $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-slick", plugins_url("assets/slick/slick.css",__FILE__)); // wp_enqueue_style("ult-icons", plugins_url("assets/slick/icons.css",__FILE__)); //} } else { 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('ultimate-style'); wp_enqueue_style('aio-flip-style', plugins_url('assets/min-css/', __FILE__) . 'flip-box.min.css'); } if (stripos($post_content, '[ult_countdown')) { wp_enqueue_style('countdown_shortcode', plugins_url('assets/min-css/countdown.min.css', __FILE__)); } if (stripos($post_content, '[ultimate_icon_list')) { wp_enqueue_style('ultimate-animate'); wp_enqueue_style('aio-tooltip', plugins_url('assets/min-css/tooltip.min.css', __FILE__)); } if (stripos($post_content, '[ultimate_carousel')) { wp_enqueue_style("ult-slick", plugins_url("assets/slick/slick.css", __FILE__)); wp_enqueue_style("ult-icons", plugins_url("assets/slick/icons.css", __FILE__)); wp_enqueue_style("ult-slick-animate", plugins_url("assets/slick/animate.min.css", __FILE__)); } if (stripos($post_content, '[ultimate_fancytext')) { wp_enqueue_style('ultimate-fancytext-style'); } if (stripos($post_content, '[icon_counter')) { wp_enqueue_style('ultimate-animate'); wp_enqueue_style('aio-flip-style', plugins_url('assets/min-css/flip-box.min.css', __FILE__)); } if (stripos($post_content, '[ultimate_ctation')) { wp_enqueue_style('utl-ctaction-style'); } if (stripos($post_content, '[ult_buttons')) { wp_enqueue_style('ult-btn', plugins_url('assets/min-css/btn-min.css', __FILE__)); } 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('aio-tooltip', plugins_url('assets/min-css/tooltip.min.css', __FILE__)); } 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, '[bsf-info-box')) { wp_enqueue_style('ultimate-animate'); wp_enqueue_style('info-box-style', plugins_url('assets/min-css/info-box.min.css', __FILE__)); } if (stripos($post_content, '[info_circle')) { wp_enqueue_style('ultimate-animate'); wp_enqueue_style('info-circle', plugins_url('assets/min-css/info-circle.min.css', __FILE__)); } 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('aio-timeline', plugins_url('assets/min-css/timeline.min.css', __FILE__)); } if (stripos($post_content, '[just_icon')) { wp_enqueue_style('ultimate-animate'); wp_enqueue_style('aio-tooltip', plugins_url('assets/min-css/tooltip.min.css', __FILE__)); } if (stripos($post_content, '[interactive_banner_2')) { wp_enqueue_style('utl-ib2-style', plugins_url('assets/min-css/ib2-style.min.css', __FILE__)); } if (stripos($post_content, '[interactive_banner')) { wp_enqueue_style('ultimate-animate'); wp_enqueue_style('aio-interactive-styles', plugins_url('assets/min-css/interactive-styles.min.css', __FILE__)); } 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', plugins_url('assets/min-css/modal.min.css', __FILE__)); } if (stripos($post_content, '[ultimate_info_table')) { wp_enqueue_style('ultimate-animate'); wp_enqueue_style("ultimate-pricing", plugins_url("assets/min-css/pricing.min.css", __FILE__)); } if (stripos($post_content, '[ultimate_pricing')) { wp_enqueue_style('ultimate-animate'); wp_enqueue_style("ultimate-pricing", plugins_url("assets/min-css/pricing.min.css", __FILE__)); } if (stripos($post_content, '[swatch_container')) { wp_enqueue_style('swatchbook-css', plugins_url('assets/min-css/swatchbook.min.css', __FILE__)); } if (stripos($post_content, '[stat_counter')) { wp_enqueue_style('ultimate-animate'); wp_enqueue_style('stats-counter-style', plugins_url('assets/min-css/stats-counter.min.css', __FILE__)); } 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'); } } } wp_register_script('ultimate-appear', plugins_url('assets/min-js/jquery.appear.min.js', __FILE__), array('jquery'), ULTIMATE_VERSION, true); wp_register_script('ultimate-custom', plugins_url('assets/min-js/custom.min.js', __FILE__), $dependancy, ULTIMATE_VERSION, true); wp_register_script('ultimate-smooth-scroll', $this->assets_js . 'SmoothScroll.js', array('jquery'), ULTIMATE_VERSION, true); $ultimate_smooth_scroll = get_option('ultimate_smooth_scroll'); if ($ultimate_smooth_scroll == "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']); } } } }
/** * @return bool */ public function isEditor() { return vc_is_editor(); }
wp_enqueue_style('imd_ui_tabs'); wp_enqueue_style('imd_ui_acordian'); } if (stripos($post_content, '[ultimate_exp_section')) { wp_enqueue_style('style_ultimate_expsection'); } } wp_register_script('ultimate-appear', $porto_ult_assets . 'min-js/jquery.appear.min.js', array('jquery'), ULTIMATE_VERSION, true); wp_register_script('ultimate-custom', $porto_ult_assets . 'min-js/custom.min.js', $dependancy, ULTIMATE_VERSION, true); wp_register_script('ultimate-smooth-scroll', $porto_ult_assets . 'js/SmoothScroll.js', array('jquery'), ULTIMATE_VERSION, true); $ultimate_smooth_scroll = get_option('ultimate_smooth_scroll'); if ($ultimate_smooth_scroll == "enable") { wp_enqueue_script('ultimate-smooth-scroll'); } if (function_exists('vc_is_editor')) { if (vc_is_editor()) { wp_enqueue_style('vc-fronteditor', $porto_ult_assets . 'min-css/vc-fronteditor.min.css'); } } $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 { $paths = wp_upload_dir(); $paths['fonts'] = 'smile_fonts'; $paths['fonturl'] = set_url_scheme(trailingslashit($paths['baseurl']) . $paths['fonts']); wp_enqueue_style('bsf-' . $font, trailingslashit($paths['fonturl']) . $info['style']); }