<?php 
/*
 * eminent Enqueue css and js files
*/
function eminent_enqueue() {
	$eminent_version = wp_get_theme()->get( 'Version' );

	// Source Sans Pro is bundled locally — WordPress.org does not permit loading fonts from a remote host.
	wp_enqueue_style('eminent-source-sans',get_template_directory_uri().'/fonts/source-sans/source-sans.css',array(),$eminent_version);

	wp_enqueue_style('eminent-bootstrap',get_template_directory_uri().'/css/bootstrap.css',array(),$eminent_version);
	wp_enqueue_style('eminent-font-awesome',get_template_directory_uri().'/css/font-awesome.css',array(),$eminent_version);
	wp_enqueue_style('eminent-style',get_stylesheet_uri(),array(),$eminent_version);

	/* js */
	wp_enqueue_script('eminent-bootstrap',get_template_directory_uri().'/js/bootstrap.js',array('jquery'),$eminent_version,true);    
	wp_enqueue_script('eminent-scriptjs',get_template_directory_uri().'/js/script.js',array('jquery'),$eminent_version,true);
	wp_enqueue_script('eminent-base', get_template_directory_uri() . '/js/base.js', array('jquery-masonry'),$eminent_version,true);

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

	eminent_custom_css();
}
add_action('wp_enqueue_scripts', 'eminent_enqueue');
