PHP Classes

File: header.php

Recommend this page to a friend!
  Classes of Victor Andeloci   One WordPress Game Theme   header.php   Download  
File: header.php
Role: Auxiliary script
Content type: text/plain
Description: Auxiliary script
Class: One WordPress Game Theme
WordPress theme for a gaming blog and podcast
Author: By
Last change:
Date: 6 months ago
Size: 1,258 bytes
 

Contents

Class file image Download
<!DOCTYPE html>
<html lang="pt-BR" dir="ltr">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="theme-color" content="#000000">
    <title><?= wp_title() ?></title>

    <?php wp_head(); ?>

    <link rel="stylesheet" href="<?= get_template_directory_uri() ?>/style.css?v=<?= ONE_VERSION ?>">

    <script type="text/javascript">
      const siteUrl = '<?= get_site_url() ?>';
      const apiUrl = '<?= get_site_url() ?>/wp-admin/admin-ajax.php';
      const themeDirUrl = '<?= get_template_directory_uri(); ?>';
    </script>
    <script src="<?= get_template_directory_uri() ?>/main.min.js?v=<?= ONE_VERSION ?>" charset="utf-8" defer></script>
  </head>
  <body>
    <header class="<?= (is_single() || is_page() || is_404()) ? 'back-filled' : '' ?> <?= (!empty($args['schema'])) ? $args['schema'] : '' ?>">
      <?php if (!empty($args['schema']) && $args['schema'] == 'orange') : ?>
<a href="<?= get_site_url() ?>" class="custom-logo-link">
          <img src="<?= get_template_directory_uri() ?>/assets/img/logo_h_dark.png" alt="Logo Alt" class="custom-logo">
        </a>
      <?php
       
else :
         
the_custom_logo();
        endif;
     
?>
</header>