<?php
/**
 * Online Book Printing functions
 */

if ( ! function_exists( 'online_book_printing_setup' ) ) :
function online_book_printing_setup() {
    load_theme_textdomain( 'online-book-printing', get_template_directory() . '/languages' );

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

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

if ( ! function_exists( 'online_book_printing_styles' ) ) :
	function online_book_printing_styles() {
		// Register theme stylesheet.
		wp_register_style('online-book-printing-style',
			get_template_directory_uri() . '/style.css',array(),
			wp_get_theme()->get( 'Version' )
		);
		
		wp_enqueue_style( 'fontawesome-style', 
			get_template_directory_uri() .'/assets/fontawesome/css/all.css', 
			array(), 
			wp_get_theme()->get('Version') 
		);

		wp_enqueue_style( 'swiper-bundle-style', 
			get_template_directory_uri() .'/assets/css/swiper-bundle.css', 
			array(), 
			'12.1.3' 
		);

		wp_enqueue_script( 'swiper-bundle-script', 
			get_template_directory_uri() . '/assets/js/swiper-bundle.js', 
			array('jquery'), 
			'12.1.3', 
			true 
		);

		wp_enqueue_script('online-book-printing-js', 
			get_template_directory_uri() . '/assets/js/effects.js',
			array(), 
			wp_get_theme()->get('Version'),
			true 
		);

		wp_enqueue_style( 'scroll-to-top-style',
			get_template_directory_uri() . '/assets/css/scroll-to-top.css',
			array(),
			wp_get_theme()->get('Version')
		);

		wp_enqueue_script( 'scroll-to-top-js',
			get_template_directory_uri() . '/assets/js/scroll-to-top.js',
			array(),
			wp_get_theme()->get('Version'),
			true
		);

		// Enqueue theme stylesheet.
		wp_enqueue_style( 'online-book-printing-style' );

		wp_style_add_data( 'online-book-printing-style', 'rtl', 'replace' );

	}
endif;
add_action( 'wp_enqueue_scripts', 'online_book_printing_styles' );

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