<?php
/**
 * Stillora functions and definitions.
 *
 * @package Stillora
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly.
}

/**
 * Theme setup.
 */
function stillora_setup() {
	load_theme_textdomain( 'stillora', get_template_directory() . '/languages' );

	add_theme_support( 'post-thumbnails' );
	add_theme_support( 'title-tag' );
	add_theme_support( 'automatic-feed-links' );
	add_theme_support( 'responsive-embeds' );
	add_theme_support( 'editor-styles' );
	add_theme_support(
		'html5',
		array( 'search-form', 'comment-form', 'comment-list', 'gallery', 'caption', 'style', 'script' )
	);

	add_editor_style( 'style.css' );
}
add_action( 'after_setup_theme', 'stillora_setup' );

/**
 * Register custom block pattern categories.
 */
function stillora_register_pattern_categories() {
	register_block_pattern_category(
		'stillora',
		array(
			'label' => __( 'Stillora', 'stillora' ),
		)
	);
}
add_action( 'init', 'stillora_register_pattern_categories' );