public function registerAssets() { add_filter('pe_theme_js_init_file', array(&$this, 'pe_theme_js_init_file_filter')); add_filter('pe_theme_js_init_deps', array(&$this, 'pe_theme_js_init_deps_filter')); add_filter('pe_theme_minified_js_deps', array(&$this, 'pe_theme_minified_js_deps_filter')); parent::registerAssets(); if ($this->minifyCSS) { $deps = array('pe_theme_compressed'); } else { // theme styles $this->addStyle('css/foundation.css', array(), 'pe_theme_thread-foundation'); $this->addStyle('css/flexslider.css', array(), 'pe_theme_thread-flexslider'); $this->addStyle('css/icons.css', array(), 'pe_theme_thread-icons'); $this->addStyle('css/social-icons.css', array(), 'pe_theme_thread-social_icons'); $this->addStyle('css/style.css', array(), 'pe_theme_thread-style'); $this->addStyle('css/responsive.css', array(), 'pe_theme_thread-responsive'); $this->addStyle('css/blog.css', array(), 'pe_theme_thread-blog'); $this->addStyle('css/custom.css', array(), 'pe_theme_thread-custom'); $deps = array('pe_theme_thread-foundation', 'pe_theme_thread-flexslider', 'pe_theme_thread-icons', 'pe_theme_thread-social_icons', 'pe_theme_thread-style', 'pe_theme_thread-responsive', 'pe_theme_thread-blog', 'pe_theme_thread-custom'); } $this->addStyle('style.css', $deps, 'pe_theme_init'); $this->addScript('theme/js/pe/pixelentity.controller.js', array('pe_theme_utils_browser', 'pe_theme_selectivizr', 'pe_theme_lazyload', 'pe_theme_widgets_contact', 'pe_theme_thread-modernizr', 'pe_theme_thread-foundation', 'pe_theme_thread-flexslider', 'pe_theme_thread-fitvids', 'pe_theme_thread-smooth_scroll', 'pe_theme_thread-tweenmax', 'pe_theme_thread-ScrollToPlugin', 'pe_theme_thread-scripts', 'pe_theme_thread-custom'), 'pe_theme_controller'); $this->addScript('js/vendor/modernizr.js', array(), 'pe_theme_thread-modernizr', false); $this->addScript('js/foundation.min.js', array(), 'pe_theme_thread-foundation'); $this->addScript('js/jquery.flexslider-min.js', array(), 'pe_theme_thread-flexslider'); $this->addScript('js/vendor/jquery.fitvids.js', array(), 'pe_theme_thread-fitvids'); $this->addScript('js/smooth-scroll.js', array(), 'pe_theme_thread-smooth_scroll'); $this->addScript('js/TweenMax.min.js', array(), 'pe_theme_thread-tweenmax'); $this->addScript('js/ScrollToPlugin.min.js', array(), 'pe_theme_thread-ScrollToPlugin'); $this->addScript('js/scripts.js', array(), 'pe_theme_thread-scripts'); $this->addScript('js/custom.js', array(), 'pe_theme_thread-custom'); }
public function registerAssets() { add_filter("pe_theme_js_init_file", array(&$this, "pe_theme_js_init_file_filter")); add_filter("pe_theme_js_init_deps", array(&$this, "pe_theme_js_init_deps_filter")); add_filter("pe_theme_minified_js_deps", array(&$this, "pe_theme_minified_js_deps_filter")); parent::registerAssets(); if ($this->minifyCSS) { $deps = array("pe_theme_compressed"); } else { // theme styles $this->addStyle("css/loader.css", array(), "pe_theme_visia-loader"); $this->addStyle("css/reset.css", array(), "pe_theme_visia-reset"); $this->addStyle("css/grid.css", array(), "pe_theme_visia-grid"); $this->addStyle("css/icons.css", array(), "pe_theme_visia-icons"); $this->addStyle("css/style.css", array(), "pe_theme_visia-style"); $this->addStyle("css/shortcodes.css", array(), "pe_theme_visia-shortcodes"); $this->addStyle("css/ruby-red.css", array(), "pe_theme_visia-color"); $this->addStyle("css/animations.css", array(), "pe_theme_visia-animations"); $this->addStyle("css/ie.css", array(), "pe_theme_visia-ie"); $this->addStyle("css/custom.css", array(), "pe_theme_visia-custom"); $deps = array("pe_theme_visia-loader", "pe_theme_visia-reset", "pe_theme_visia-grid", "pe_theme_visia-icons", "pe_theme_visia-style", "pe_theme_visia-shortcodes", "pe_theme_visia-color", "pe_theme_visia-animations", "pe_theme_visia-ie", "pe_theme_flare", "pe_theme_visia-custom"); } $this->addStyle("style.css", $deps, "pe_theme_init"); $this->addScript("theme/js/pe/pixelentity.controller.js", array("pe_theme_mobile", "pe_theme_selectivizr", "pe_theme_lazyload", "pe_theme_flare", "pe_theme_visia-smoothscroll", "pe_theme_visia-vegas", "pe_theme_visia-imagesloaded", "pe_theme_visia-mixitup", "pe_theme_visia-countto", "pe_theme_visia-jqueryui", "pe_theme_visia-video", "pe_theme_visia-bigvideo", "pe_theme_visia-waypoints", "pe_theme_visia-parallax", "pe_theme_widgets_contact", "pe_theme_visia-navigation", "pe_theme_visia-jquery-easing", "pe_theme_visia-jquery-fittext", "pe_theme_visia-jquery-localscroll", "pe_theme_visia-jquery-scrollto", "pe_theme_visia-jquery-appear", "pe_theme_visia-jquery-waitforimages", "pe_theme_visia-jquery-bxslider", "pe_theme_visia-jquery-fitvids", "pe_theme_visia-shortcodes", "pe_theme_visia-main", "pe_theme_visia-custom"), "pe_theme_controller"); $this->addScript("js/smoothscroll.js", array(), "pe_theme_visia-smoothscroll"); $this->addScript("js/jquery.imagesloaded.js", array(), "pe_theme_visia-imagesloaded"); $this->addScript("js/jquery.mixitup.js", array(), "pe_theme_visia-mixitup"); $this->addScript("js/jquery.countto.js", array(), "pe_theme_visia-countto"); $this->addScript("js/jqueryui.js", array(), "pe_theme_visia-jqueryui"); $this->addScript("js/video.js", array(), "pe_theme_visia-video"); $this->addScript("js/bigvideo.js", array(), "pe_theme_visia-bigvideo"); $this->addScript("js/vegas.js", array(), "pe_theme_visia-vegas"); $this->addScript("js/waypoints.js", array(), "pe_theme_visia-waypoints"); $this->addScript("js/parallax.js", array(), "pe_theme_visia-parallax"); $this->addScript("js/navigation.js", array(), "pe_theme_visia-navigation"); $this->addScript("js/jquery.easing.js", array(), "pe_theme_visia-jquery-easing"); $this->addScript("js/jquery.fittext.js", array(), "pe_theme_visia-jquery-fittext"); $this->addScript("js/jquery.localscroll.js", array(), "pe_theme_visia-jquery-localscroll"); $this->addScript("js/jquery.scrollto.js", array(), "pe_theme_visia-jquery-scrollto"); $this->addScript("js/jquery.appear.js", array(), "pe_theme_visia-jquery-appear"); $this->addScript("js/jquery.waitforimages.js", array(), "pe_theme_visia-jquery-waitforimages"); $this->addScript("js/jquery.bxslider.js", array(), "pe_theme_visia-jquery-bxslider"); $this->addScript("js/jquery.fitvids.js", array(), "pe_theme_visia-jquery-fitvids"); $this->addScript("js/shortcodes.js", array(), "pe_theme_visia-shortcodes"); $this->addScript("js/main.js", array(), "pe_theme_visia-main"); $this->addScript("js/custom.js", array(), "pe_theme_visia-custom"); }
public function registerAssets() { add_filter("pe_theme_js_init_file", array(&$this, "pe_theme_js_init_file_filter")); add_filter("pe_theme_js_init_deps", array(&$this, "pe_theme_js_init_deps_filter")); add_filter("pe_theme_minified_js_deps", array(&$this, "pe_theme_minified_js_deps_filter")); parent::registerAssets(); if ($this->minifyCSS) { $deps = array("pe_theme_compressed"); } else { // theme styles $this->addStyle("css/slider_captions.css", array("pe_theme_animate_css"), "pe_theme_windfall_slider_captions"); $this->addStyle("css/slider_captions_style.css", array(), "pe_theme_windfall_slider_captions_style"); $this->addStyle("css/slider_ui.css", array(), "pe_theme_windfall_slider_ui"); $this->addStyle("css/style.css", array(), "pe_theme_windfall_style"); $this->addStyle("css/style_responsive.css", array(), "pe_theme_windfall_style_responsive"); $this->addStyle("css/entypo-icon-font.css", array(), "pe_theme_windfall_icon_font"); $this->addStyle("css/menu.css", array(), "pe_theme_windfall_menu"); $this->addStyle("css/menu_style.css", array(), "pe_theme_windfall_menu_style"); $deps = array("pe_theme_reset", "pe_theme_bootstrap", "pe_theme_bootstrap_responsive", "pe_theme_windfall_icon_font", "pe_theme_video", "pe_theme_background", "pe_theme_isotope", "pe_theme_carousel", "pe_theme_ajaxportfolio", "pe_theme_volo", "pe_theme_vario", "pe_theme_flare", "pe_theme_windfall_slider_ui", "pe_theme_windfall_slider_captions", "pe_theme_windfall_slider_captions_style", "pe_theme_windfall_menu", "pe_theme_windfall_menu_style", "pe_theme_windfall_style", "pe_theme_windfall_style_responsive"); } $this->addStyle("style.css", $deps, "pe_theme_init"); $this->addScript("theme/js/pe/pixelentity.controller.js", array("pe_theme_mobile", "pe_theme_menu", "pe_theme_smoothscroll", "pe_theme_waypoints", "pe_theme_parallax", "pe_theme_lazyload", "pe_theme_loadmore", "pe_theme_flare", "pe_theme_vario", "pe_theme_vista", "pe_theme_widgets_bslinks", "pe_theme_widgets_contact", "pe_theme_widgets_bootstrap", "pe_theme_widgets_isotope", "pe_theme_widgets_backgroundSlider", "pe_theme_widgets_volo", "pe_theme_widgets_carousel", "pe_theme_widgets_newsletter", "pe_theme_widgets_gmap", "pe_theme_widgets_dynamicBackground", "pe_theme_widgets_social_facebook", "pe_theme_widgets_social_twitter", "pe_theme_widgets_social_pinterest", "pe_theme_widgets_social_google", "pe_theme_widgets_ajaxportfolio"), "pe_theme_controller"); }