Last active
December 27, 2016 10:30
-
-
Save themebon/661579e1ab491927857792356afb8c57 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * Enqueue scripts and styles. | |
| */ | |
| function tunu_scripts() { | |
| /* | |
| $font = esc_html(get_theme_mod('font')); | |
| if( $font ) { | |
| wp_enqueue_style( 'tunu-fonts', '//fonts.googleapis.com/css?family='.$font.'' ); | |
| } | |
| */ | |
| wp_enqueue_style( 'bootstrap', get_template_directory_uri() . '/css/bootstrap.min.css' ); | |
| wp_enqueue_style( 'nivoslider', get_template_directory_uri() . '/css/nivoslider.css' ); | |
| wp_enqueue_style( 'font-awesome', get_template_directory_uri() . '/css/font-awesome.min.css', array(), '4.3.0', 'all' ); | |
| wp_enqueue_style( 'owl-carousel', get_template_directory_uri() . '/css/owl.carousel.css' ); | |
| wp_enqueue_style( 'et-line', get_template_directory_uri() . '/css/et-line.css' ); | |
| wp_enqueue_style( 'YTPlayer', get_template_directory_uri() . '/css/YTPlayer.css' ); | |
| wp_enqueue_style( 'animate', get_template_directory_uri() . '/css/animate.css' ); | |
| wp_enqueue_style( 'meanmenu', get_template_directory_uri() . '/css/meanmenu.css' ); | |
| wp_enqueue_style( 'magnific-popup', get_template_directory_uri() . '/css/magnific-popup.css' ); | |
| wp_enqueue_style( 'main-css', get_template_directory_uri() . '/css/style.css' ); | |
| wp_enqueue_style( 'tunu-css', get_stylesheet_uri() ); | |
| wp_enqueue_style( 'responsive', get_template_directory_uri() . '/css/responsive.css' ); | |
| wp_enqueue_script( 'jquery' ); | |
| if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) { | |
| wp_enqueue_script( 'comment-reply' ); | |
| } | |
| wp_enqueue_script( 'bootstrap-js', get_template_directory_uri() . '/js/bootstrap.min.js', array('jquery'), '', true ); | |
| wp_enqueue_script( 'ajax-contact', get_template_directory_uri() . '/js/ajax-contact.js', array('jquery'), '', true ); | |
| wp_enqueue_script( 'meanmenu', get_template_directory_uri() . '/js/meanmenu.js', array('jquery'), '', true ); | |
| wp_enqueue_script( 'owl-carousel-js', get_template_directory_uri() . '/js/owl.carousel.min.js', array('jquery'), '', true ); | |
| wp_enqueue_script( 'jquery-nav', get_template_directory_uri() . '/js/jquery.nav.min.js', array('jquery'), '', true ); | |
| wp_enqueue_script( 'wow-js', get_template_directory_uri() . '/js/wow.min.js', array('jquery'), '', true ); | |
| wp_enqueue_script( 'easing-js', get_template_directory_uri() . '/js/jquery.easing.1.3.js', array('jquery'), '', true ); | |
| wp_enqueue_script( 'sticky', get_template_directory_uri() . '/js/jquery.sticky.js', array('jquery'), '', true ); | |
| wp_enqueue_script( 'scrollUp', get_template_directory_uri() . '/js/jquery.scrollUp.js', array('jquery'), '', true ); | |
| wp_enqueue_script( 'stellar-parallux', get_template_directory_uri() . '/js/jquery.stellar.min.js', array('jquery'), '', true ); | |
| wp_enqueue_script( 'YTPlayer', get_template_directory_uri() . '/js/YTPlayer.min.js', array('jquery'), '', true ); | |
| wp_enqueue_script( 'magnific-popup', get_template_directory_uri() . '/js/jquery.magnific-popup.min.js', array('jquery'), '', true ); | |
| wp_enqueue_script( 'counterup', get_template_directory_uri() . '/js/counterup.min.js', array('jquery'), '', true ); | |
| wp_enqueue_script( 'waypoints', get_template_directory_uri() . '/js/jquery.waypoints.min.js', array('jquery'), '', true ); | |
| wp_enqueue_script( 'g-map-js', get_template_directory_uri() . 'https://maps.googleapis.com/maps/api/js?key=AIzaSyDk9KNSL1jTv4MY9Pza6w8DJkpI_nHyCnk', array('jquery'), '', true ); | |
| wp_enqueue_script( 'g-map-active-js', get_template_directory_uri() . '/js/map-active.js', array('jquery'), '', true ); | |
| wp_enqueue_script( 'tunu-js', get_template_directory_uri() . '/js/custom.js', array('jquery'), '', true ); | |
| } | |
| add_action( 'wp_enqueue_scripts', 'tunu_scripts' ); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment