Пример #1
0
 static function enqueue_assets()
 {
     # css
     Bw_assets::addStyle('bw-admin', 'bw/assets/css/admin.css');
     # js
     Bw_assets::addScript('bw-admin', 'bw/assets/js/admin.js', array('jquery'));
     Bw_assets::addScript('bw-admin', 'bw/assets/js/ajax.js', array('jquery'));
 }
Пример #2
0
 static function enqueue_assets()
 {
     # css
     Bw_assets::addStyle('style', 'style.css');
     Bw_assets::addStyle('bw-owl-carousel', 'assets/css/vendors/jquery.owl.carousel/owl.carousel.all.css');
     Bw_assets::addStyle('bw-magnific-popup', 'assets/css/vendors/jquery.magnific-popup/magnific-popup.css');
     Bw_assets::addStyle('bw-animate', 'assets/css/vendors/animate/animate.css');
     Bw_assets::addStyle('bw-style', 'assets/css/style.css');
     Bw_assets::addStyle('bw-media', 'assets/css/media.css');
     # js
     if (Bw::get_option('enable_smooth_scroll')) {
         Bw_assets::addScript('bw-smooth-scroll', 'assets/js/vendors/jquery.smooth-scroll/jquery.smooth-scroll.js', array(), BW_VERSION, false);
     }
     Bw_assets::addScript('bw-unveil-master', 'assets/js/vendors/jquery.unveil-master/jquery.unveil.min.js');
     Bw_assets::addScript('bw-owl-transitions', 'assets/js/vendors/jquery.owl.slider/owl.carousel.js');
     Bw_assets::addScript('bw-magnific-popup-js', 'assets/js/vendors/jquery.magnific-popup/jquery.magnific-popup.min.js');
     Bw_assets::addScript('bw-hover-intent', 'assets/js/vendors/jquery.hover-intent/jquery.hover-intent.min.js');
     Bw_assets::addScript('bw-masonry', 'assets/js/vendors/jquery.masonry/isotope.pkgd.min.js');
     Bw_assets::addScript('bw-tween-max', 'assets/js/vendors/tween-max/tweenmax.min.js');
     Bw_assets::addScript('bw-main', 'assets/js/main.js', array('jquery'));
 }
Пример #3
0
 static function enqueue_lighbox_scripts()
 {
     if (self::is_woo_page()) {
         Bw_assets::addStyle('bw-magnific-popup', 'assets/css/vendors/jquery.magnific-popup/magnific-popup.css');
         Bw_assets::addScript('bw-magnific-popup-js', 'assets/js/vendors/jquery.magnific-popup/jquery.magnific-popup.min.js');
     }
 }
Пример #4
0
 static function enqueue_assets()
 {
     Bw_assets::addScript('bw-acf-custom', 'bw/lib/acf/js/custom-admin.js');
 }
Пример #5
0
 static function enqueue_assets()
 {
     Bw_assets::addStyle('bw-shortcode', 'bw/assets/css/shortcode.css');
     Bw_assets::addScript('bw-shortcode-js', 'bw/assets/js/shortcode.js', array('bw-tween-max'));
 }