<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css" rel="stylesheet"
        integrity="sha384-GLhlTQ8iRABdZLl6O3oVMWSktQOp6b7In1Zl3/Jr59b6EGGoI1aFkw7cmDA6j6gD" crossorigin="anonymous">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.3.0/css/all.min.css"
        integrity="sha512-SzlrxWUlpfuzQ+pcUCosxcglQRNAq/DZjVsC0lE40xsADsfeQoEypE+enwcOiGjk/bSuGGKHEyjSoQ1zVisanQ=="
        crossorigin="anonymous" referrerpolicy="no-referrer" />
</head>
</html>
<?php 

/*
@packages Admin Functions
=========================
   ADMIN FUNCTIONS 
=========================
*/
function thebookinghub_default_function() {
    if ( ! isset( $content_width ) ) { 
        $content_width = 900;
    }
    /*
     * Make theme available for translation.
     * Translations can be filed in the /languages/ directory.
     * If you're building a theme based on cubic, use a find and replace
     * to change 'cubic' to the name of your theme in all the template files
     */
    load_theme_textdomain( 'bookinghub', get_template_directory() . '/languages' );

    /*
     * This theme uses a custom image size for featured images, displayed on
     * "standard" posts and pages.
     */
    add_theme_support( 'custom-header' ); 
    add_theme_support( 'custom-background' );
    add_theme_support( 'title-tag' );
    add_theme_support( 'post-thumbnails' );


    // Adds RSS feed links to <head> for posts and comments.

    add_theme_support( 'automatic-feed-links' );


    // ADD IMAGE POST THUMBNAIL SIZE

    add_image_size('productImage', 394, 295, true); 


    // Switches default core markup for search form, comment form, and comments
    // to output valid HTML5.
    add_theme_support( 'html5', array( 'search-form', 'comment-form', 'comment-list' ) );
    //Post formats
    add_theme_support( 'post-formats', array(
        'audio',  'gallery', 'image', 'quote', 'video','link'
    ) );

    
    // This theme uses wp_nav_menu() in one location.

    if(function_exists('register_nav_menus')){
        register_nav_menus( array(
            'main-menu'   => __('Main Menu', 'bookinghub'),   
            'footer-menu'   => __('Footer Menu', 'bookinghub'),   
        ) );
    }

}
add_action( 'after_setup_theme', 'thebookinghub_default_function' );


// function add_menu_link_class($atts, $item, $args)
// {
//     $atts['class'] = 'nav-link';
//     return $atts;
// }
// add_filter('nav_menu_link_attributes', 'add_menu_link_class', 1, 3);

// function add_classes_on_li($classes, $item, $args) {
//     $classes[] = 'nav-item dropdown dropdown-with-icon';
//     return $classes;
// }
// add_filter('nav_menu_css_class','add_classes_on_li',1,3);


















