<?php
if ( ! defined( 'ABSPATH' ) ) {
exit; // Exit if accessed directly.
}
?>
<!doctype html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo('charset');?>">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<?php wp_head(); ?>
<!-- Google tag (gtag.js) -->
<script async src="https://www.googletagmanager.com/gtag/js?id=G-6ZK3KZ5X7J"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag(){dataLayer.push(arguments);}
gtag('js', new Date());
gtag('config', 'G-6ZK3KZ5X7J');
</script>
</head>
<body <?php body_class(); ?>>
<?php if (is_active_sidebar('top-bar')):?>
<div class="top-bar"><div class="corp">
<?php dynamic_sidebar( 'top-bar' ); ?>
</div></div>
<?php endif; ?>
<div class="header">
<div class="corp">
<div id="logo">
<?php
$custom_logo_id = get_theme_mod( 'custom_logo' );
$logo = wp_get_attachment_image_src( $custom_logo_id , 'full' );
if ( has_custom_logo() ) {
echo '<a href="'.home_url() .'" title="'. get_bloginfo('name').'"><img src="' . esc_url( $logo[0] ) . '" alt="' . get_bloginfo( 'name' ) . '" height="100px" width="400px"></a>';
} else {
echo '<h1><a title="' . get_bloginfo('name') . '" href="'. site_url() .'">' . get_bloginfo('name') . '</a></h1>';
}
?>
</div>
<div class="resmenu" onclick="jQuery('.nav-icon2').toggleClass('open');jQuery('body').toggleClass('visible');">
<div id="nav-icon2" class="nav-icon2" onclick="">
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
<span></span>
</div>
</div>
<div class="navigator">
<?php wp_nav_menu(array(
'menu' => 'menu-left',
'theme_location' => 'main-menu',
'container' => 'ul',
'menu_class' => 'menu menu_left',
'menu_id' => false,
'depth' => 2,
));
wp_nav_menu(array(
'menu' => 'menu-right',
'theme_location' => 'main-menu',
'container' => 'ul',
'menu_class' => 'menu menu_right',
'menu_id' => false,
'depth' => 2,
));
?>
</div>
<?php if (is_active_sidebar('header')):?>
<div class="header-widget">
<?php dynamic_sidebar( 'header' ); ?>
</div>
<?php endif; ?>
</div>
</div>
All system for education purposes only. For more tools: Telegram @jackleet