/home/moonrcjl/public_html/wp/wp-content/themes/arsha/inc/common/arsha-scripts.php
<?php

/**
 * arsha_scripts description
 * @return [type] [description]
 */
function arsha_scripts() {

    /**
     * all css files
    */ 

    wp_enqueue_style( 'arsha-fonts', arsha_fonts_url(), array(), '1.0.0' );
    if( is_rtl() ){
        wp_enqueue_style( 'bootstrap-rtl', ARSHA_THEME_CSS_DIR.'bootstrap.rtl.min.css', array() );
    }else{
        wp_enqueue_style( 'bootstrap-min', ARSHA_THEME_CSS_DIR.'bootstrap.min.css', array() );
    }
    wp_enqueue_style( 'animate', ARSHA_THEME_CSS_DIR . 'animate.css', [] );
    wp_enqueue_style( 'fontawesome-pro-min', ARSHA_THEME_CSS_DIR . 'fontawesome-pro.min.css', [] );
    wp_enqueue_style( 'magnific-popup', ARSHA_THEME_CSS_DIR . 'magnific-popup.css', [] );
    wp_enqueue_style( 'swiper-min', ARSHA_THEME_CSS_DIR . 'swiper-min.css', [] );
    wp_enqueue_style( 'arsha-core', ARSHA_THEME_CSS_DIR . 'arsha-core.css', [], time() );
    wp_enqueue_style( 'arsha-unit', ARSHA_THEME_CSS_DIR . 'arsha-unit.css', [], time() );
    wp_enqueue_style( 'arsha-custom', ARSHA_THEME_CSS_DIR . 'arsha-custom.css', [] );
    wp_enqueue_style( 'arsha-style', get_stylesheet_uri() );


    // all js
    wp_enqueue_script( 'bootstrap-min', ARSHA_THEME_JS_DIR . 'bootstrap.min.js', [ 'jquery' ], '', true );
    wp_enqueue_script( 'jarallax-min', ARSHA_THEME_JS_DIR . 'jarallax.min.js', [ 'jquery' ], '', true );
    wp_enqueue_script( 'magnific-popup', ARSHA_THEME_JS_DIR . 'magnific-popup.js', [ 'jquery' ], '', true );
    wp_enqueue_script( 'nice-select', ARSHA_THEME_JS_DIR . 'nice-select.js', [ 'jquery' ], '', true );
    wp_enqueue_script( 'purecounter', ARSHA_THEME_JS_DIR . 'purecounter.js', [ 'jquery' ], '', true );
    wp_enqueue_script( 'smooth-scroll', ARSHA_THEME_JS_DIR . 'smooth-scroll.js', [ 'jquery' ], '', true );
    wp_enqueue_script( 'swiper-min', ARSHA_THEME_JS_DIR . 'swiper-min.js', [ 'jquery' ], false, true );
    wp_enqueue_script( 'wow', ARSHA_THEME_JS_DIR . 'wow.js', [ 'jquery' ], false, true );
    wp_enqueue_script( 'isotope-pkgd-min', ARSHA_THEME_JS_DIR . 'isotope.pkgd.min.js', [ 'imagesloaded' ], false, true );
    wp_enqueue_script( 'arsha-main', ARSHA_THEME_JS_DIR . 'main.js', [ 'jquery' ], false, true );

    if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) {
        wp_enqueue_script( 'comment-reply' );
    }
}
add_action( 'wp_enqueue_scripts', 'arsha_scripts' );


/*
Register Fonts
 */
function arsha_fonts_url() {
    $font_url = '';

    /*
    Translators: If there are characters in your language that are not supported
    by chosen font(s), translate this to 'off'. Do not translate into your own language.
     */
    if ( 'off' !== _x( 'on', 'Google font: on or off', 'arsha' ) ) {
        $font_url = 'https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,100..1000;1,9..40,100..1000&family=Urbanist:ital,wght@0,100..900;1,100..900&display=swap';
    }
    return $font_url;
}