<?php
/**
 * Project 2 Theme Functions
 */

/**
 * Theme setup
 */
function project2_theme_setup()
{

    // Enable support for title tag
    add_theme_support('title-tag');

    // Enable support for post thumbnails
    add_theme_support('post-thumbnails');

    // Enable support for custom logo
    add_theme_support('custom-logo');

    // Register navigation menus (header + footer)
    register_nav_menus(
        array(
            'header' => __('Display this menu in the header', 'project2'),
            'footer' => __('Display this menu in the footer', 'project2'),
        )
    );
}
add_action('after_setup_theme', 'project2_theme_setup');


/**
 * Enqueue styles
 */
function project2_enqueue_styles()
{
    wp_enqueue_style(
        'project2-style',
        get_stylesheet_uri(),
        array(),
        wp_get_theme()->get('Version')
    );
}
add_action('wp_enqueue_scripts', 'project2_enqueue_styles');
