-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheader.php
More file actions
88 lines (77 loc) · 3.64 KB
/
header.php
File metadata and controls
88 lines (77 loc) · 3.64 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo('charset'); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<title><?php wp_title('|', true, 'right'); ?></title>
<link rel="icon" href="<?php echo get_template_directory_uri(); ?>/img/logo-icon.png">
<link rel="stylesheet" href="<?php echo get_template_directory_uri(); ?>/assets/fonts/fontawesome/css/all.min.css">
<?php wp_head(); ?>
</head>
<body <?php body_class('menu-layer'); ?>>
<!-- loader -->
<header class="two three" id="stickyHeader">
<div class="container">
<div class="row align-items-center">
<div class="col-xl-2 col-lg-2 col-md-6 col-sm-6 col-6">
<div class="logo-icon">
<?php if (has_custom_logo()) : ?>
<a class="magic-hover magic-hover__square" href="<?php echo esc_url(home_url('/')); ?>">
<?php the_custom_logo(); ?>
</a>
<?php else : ?>
<a class="magic-hover magic-hover__square" href="<?php echo esc_url(home_url('/')); ?>">
<img class="light" src="<?php echo get_template_directory_uri(); ?>/img/orix-logo.png" alt="<?php bloginfo('name'); ?>">
<img class="drak" src="<?php echo get_template_directory_uri(); ?>/img/black-logo.png" alt="<?php bloginfo('name'); ?>">
</a>
<?php endif; ?>
<a href="javascript:void(0)" class="bar-menu magic-hover magic-hover__square mobile-menu-toggle d-lg-none"><i class="fa-solid fa-bars"></i></a>
</div>
</div>
<div class="col-xl-7 col-lg-7 d-none d-lg-block">
<div class="menu-bar">
<?php
wp_nav_menu([
'theme_location' => 'primary-menu',
'container' => false,
'menu_class' => 'main-menu',
'items_wrap' => '<nav><ul id="%1$s" class="%2$s">%3$s</ul></nav>'
]);
?>
</div>
</div>
<div class="col-xl-3 col-lg-3 col-md-6 col-sm-6 col-6">
<div class="extras">
<a href="javascript:void(0)" id="desktop-menu" class="magic-hover magic-hover__square menu-btn d-none d-lg-inline-block">
<i class="fa-solid fa-bars"></i>
</a>
<a href="<?php echo get_template_directory_uri(); ?>/pdf/orix.pdf" class="magic-hover magic-hover__square button download button--moema button--text-thick button--text-upper button--size-s" target="_blank">
<i class="fa-solid fa-download"></i>Download CV
</a>
</div>
</div>
</div>
</div>
<!-- منوی موبایل -->
<div class="mobile-nav d-lg-none">
<div class="mobile-nav-inner">
<?php
wp_nav_menu([
'theme_location' => 'primary-menu',
'container' => false,
'menu_class' => 'mobile-menu',
'items_wrap' => '<ul id="%1$s" class="%2$s">%3$s</ul>'
]);
?>
</div>
</div>
<?php get_template_part('template-parts/header/menu-wrap'); ?>
</header>
<?php
if ( function_exists('hfe_render_header') ) {
hfe_render_header();
} else {
// هدر پیشفرض
get_template_part('template-parts/header/default-header');
}
?>