<?php
/**
 * NAS Autoparts Online Store functions and definitions
 *
 * @package NAS Autoparts Online Store
 */

if ( ! function_exists( 'automotive_store_setup' ) ) :
function automotive_store_setup() {
	
	if ( ! isset( $content_width ) )
		$content_width = 640; /* pixels */

	add_theme_support( 'post-thumbnails' );
	add_theme_support( 'title-tag' );
	add_theme_support( 'custom-logo', array(
		'height'      => 240,
		'width'       => 240,
		'flex-height' => true,
	) );
	
	add_theme_support( 'custom-background', array(
		'default-color' => 'ffffff'
	) );
	
	// Add support for Block Styles.
	add_theme_support( 'wp-block-styles' );

	// Add support for full and wide align images.
	add_theme_support( 'align-wide' );
			
	// Add support for responsive embedded content.
	add_theme_support( 'responsive-embeds' );
	add_filter( 'should_load_separate_core_block_assets', '__return_false' );
	
}
endif; // automotive_store_setup
add_action( 'after_setup_theme', 'automotive_store_setup' );

function automotive_store_scripts() {
	wp_enqueue_style( 'nas-autoparts-online-store-basic-style', get_stylesheet_uri() );
}
add_action( 'wp_enqueue_scripts', 'automotive_store_scripts' );

// Block Patterns.
require get_template_directory() . '/block-patterns.php';
/**
 * Info
 */
require get_theme_file_path( '/inc/admin/info.php' );