<?php
/**
 * Blume Beauty functions
 */

//Admin css
add_editor_style( array( 'assets/css/admin.css' ) );

if ( ! function_exists( 'blume_beauty_setup' ) ) :
function blume_beauty_setup() {
    load_theme_textdomain( 'blume-beauty', get_template_directory() . '/languages' );

        /**
	 * About Theme Function
	 */
	require get_theme_file_path( '/about-theme/about-theme.php' );
}
endif; 
add_action( 'after_setup_theme', 'blume_beauty_setup' );

if ( ! function_exists( 'blume_beauty_styles' ) ) :
	function blume_beauty_styles() {
		// Register theme stylesheet.
		wp_register_style('blume-beauty-style',
			get_template_directory_uri() . '/style.css',array(),
			wp_get_theme()->get( 'Version' )
		);

		wp_enqueue_style(
			'owl.carousel-css',
			get_template_directory_uri() . '/assets/css/owl.carousel.css',
			array(),
			'2.3.4'
		);

		wp_enqueue_script(
			'owl-carousel-js',
			get_template_directory_uri() . '/assets/js/owl.carousel.js',
			array('jquery'),
			'2.3.4',
			true
		);

		wp_enqueue_script('blume-beauty-js',
        	get_template_directory_uri() . '/assets/js/effects.js',array(),
        	wp_get_theme()->get('Version'),true 
   		);

		// Enqueue theme stylesheet.
		wp_enqueue_style( 'blume-beauty-style' );

		wp_style_add_data( 'blume-beauty-style', 'rtl', 'replace' );
	}
endif;
add_action( 'wp_enqueue_scripts', 'blume_beauty_styles' );

/**
 * TGM FILE
 */
require get_theme_file_path( '/tgm.php' );

/**
 * Customizer
 */
require get_template_directory() . '/inc/customizer.php';
