<!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 rel="shortcut icon" href="<?php the_field('favicon', 'option'); ?>" type="image/x-icon" /> <link rel="stylesheet" type="text/css" href="<?php bloginfo('template_directory'); ?>/assets/css/bootstrap-grid.min.css" /> <link rel="stylesheet" type="text/css" href="<?php bloginfo('template_directory'); ?>/assets/slick/slick.css" /> <link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/assets/css/venobox.min.css" /> <link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/assets/css/aos.css"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css" integrity="sha512-Fo3rlrZj/k7ujTnHg4CGR2D7kSs0v4LLanw2qksYuRlEzO+tcaEPQogQ0KaoGN26/zrn20ImR1DfuLWnOo7aBA==" crossorigin="anonymous" referrerpolicy="no-referrer" /> <link rel="stylesheet" href="<?php bloginfo('template_directory'); ?>/style.css"> <?php wp_head(); ?> </head> <body <?php body_class(); ?>> <header> <?php if (is_home()) { ?> <h1 style="display:none"><?php the_field('h1_title_home', 'option'); ?></h1> <?php } ?> <div id="header-top"> <div class="container-all container"> <div class="header-main--wrap"> <div class="wrap-logo-menu"> <div class="menu-mobile df jcc" onclick="toogleActiveClass(this, document.querySelector('.nav-mobile--wrap')), toogleActiveClass(this, document.querySelector('.header-main--wrap .wrap-logo-menu .menu-mobile'))"> <div class="bar bar1 transition-05s"></div> <div class="bar bar2 transition-05s"></div> <div class="bar bar3 transition-05s"></div> </div> <a href="<?php bloginfo('url'); ?>"> <div class="logo"> <img src="<?php the_field('logo', 'option'); ?>" alt=""> </div> </a> </div> <?php wp_nav_menu( array( 'theme_location' => 'main-menu', 'container' => 'false', 'link_before' => '<h3 class="white-text rift-regular">', 'link_after' => '</h3>', 'menu_id' => 'main-menu', 'menu_class' => 'main-menu' ) ); ?> <div class="register_search df aic jcsb"> <div class="register"> <?php echo do_shortcode('[google-translator]'); ?> <!-- <i class="fa-solid fa-user"></i> --> </div> <div class="search"> <i class="fa-solid fa-magnifying-glass"></i> </div> </div> </div> </div> </div> <?php global $post; if (!is_home()) { if (is_page()) { $img = chooseImageAvatar(); } ?> <div id="header-cover" class="pr" style="background-image:url(<?php if ($img) {echo $img;} else {the_field('cover_page', 'option');} ?>); background-size:cover; background-position: center; background-repeat: no-repeat"> <div id="breadcrumbs--wrap" class="pr"> <div class="container-all container"> <?php if ($post->ID == '539') { ?> <div class="name distribution"> <?php } else { ?> <div class="name"> <?php } ?> <?php if ( $post->ID != '555' && $post->ID != '557' && !is_singular('post')) { ?> <h1 class="page-title tac"> <?php if (is_archive() || is_category()) { single_cat_title(); } elseif (is_search()) { echo 'Kết quả tìm kiếm cho: "'.get_search_query().'"'; } else { the_title(); } ?> </h1> <?php if ( function_exists('yoast_breadcrumb') ) { yoast_breadcrumb( '<div id="breadcrumbs" class="tac">','</div>' ); } } ?> </div> </div> </div> </div> <?php } ?> </header>