Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html <?php language_attributes(); ?>>
- <head>
- <meta charset="<?php bloginfo('charset'); ?>">
- <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
- <link rel="preconnect" href="https://fonts.googleapis.com">
- <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
- <link href="https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,400;0,600;1,600&display=swap" rel="stylesheet">
- <?php wp_head(); ?>
- <!-- Global site tag (gtag.js) - Google Analytics -->
- <script async src="https://www.googletagmanager.com/gtag/js?id=G-HZWHTZGWPB"></script>
- <script>
- window.dataLayer = window.dataLayer || [];
- function gtag(){dataLayer.push(arguments);}
- gtag('js', new Date());
- gtag('config', 'G-HZWHTZGWPB');
- </script>
- <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-1846535141887168"
- crossorigin="anonymous"></script>
- </head>
- <?php
- $navbar_scheme = get_theme_mod('navbar_scheme', 'navbar-light bg-light'); // Get custom meta-value.
- $navbar_position = get_theme_mod('navbar_position', 'static'); // Get custom meta-value.
- $search_enabled = get_theme_mod('search_enabled', '1'); // Get custom meta-value.
- ?>
- <body <?php body_class(); ?>>
- <script async src='https://tag.simpli.fi/sifitag/963d9b90-d0b3-013a-5245-0cc47a8ffaac'></script>
- <?php wp_body_open(); ?>
- <a href="#main" class="visually-hidden-focusable"><?php esc_html_e('Skip to main content', 'tehran'); ?></a>
- <div id="wrapper">
- <header>
- <nav id="header" class="navbar navbar-expand-md <?php echo esc_attr($navbar_scheme);
- if (isset($navbar_position) && 'fixed_top' === $navbar_position) : echo ' fixed-top';
- elseif (isset($navbar_position) && 'fixed_bottom' === $navbar_position) : echo ' fixed-bottom';
- endif;
- if (is_home() || is_front_page()) : echo ' home';
- endif; ?>">
- <div class="container">
- <a class="navbar-brand" href="<?php echo esc_url(home_url()); ?>" title="<?php echo esc_attr(get_bloginfo('name', 'display')); ?>" rel="home">
- <?php
- $header_logo = get_theme_mod('header_logo'); // Get custom meta-value.
- if (!empty($header_logo)) :
- ?>
- <img src="<?php echo esc_url($header_logo); ?>" alt="<?php echo esc_attr(get_bloginfo('name', 'display')); ?>" />
- <?php
- else :
- echo esc_attr(get_bloginfo('name', 'display'));
- endif;
- ?>
- </a>
- <button class="navbar-toggler" type="button" data-bs-toggle="collapse" data-bs-target="#navbar" aria-controls="navbar" aria-expanded="false" aria-label="<?php esc_attr_e('Toggle navigation', 'tehran'); ?>">
- <span class="navbar-toggler-icon"></span>
- </button>
- <div id="navbar" class="collapse navbar-collapse">
- <?php
- // Loading WordPress Custom Menu (theme_location).
- wp_nav_menu(
- array(
- 'theme_location' => 'main-menu',
- 'container' => '',
- 'menu_class' => 'navbar-nav me-auto',
- 'fallback_cb' => 'WP_Bootstrap_Navwalker::fallback',
- 'walker' => new WP_Bootstrap_Navwalker(),
- )
- );
- if ('1' === $search_enabled) :
- ?>
- <form class="search-form my-2 my-lg-0" role="search" method="get" action="<?php echo esc_url(home_url('/')); ?>">
- <div class="input-group">
- <input type="text" name="s" class="form-control" placeholder="<?php esc_attr_e('Search', 'tehran'); ?>" title="<?php esc_attr_e('Search', 'tehran'); ?>" />
- <button type="submit" name="submit" class="btn btn-outline-secondary"><?php esc_html_e('Search', 'tehran'); ?></button>
- </div>
- </form>
- <?php
- endif;
- ?>
- </div><!-- /.navbar-collapse -->
- </div><!-- /.container -->
- </nav><!-- /#header -->
- </header>
- <main id="main" class="container"<?php if (isset($navbar_position) && 'fixed_top' === $navbar_position) : echo ' style="padding-top: 100px;"';
- elseif (isset($navbar_position) && 'fixed_bottom' === $navbar_position) : echo ' style="padding-bottom: 100px;"';
- endif; ?>>
- <?php
- // If Single or Archive (Category, Tag, Author or a Date based page).
- if (is_single() || is_archive()) :
- ?>
- <div class="row">
- <div class="col-md-8 col-sm-12">
- <?php
- endif;
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement