-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.php
181 lines (157 loc) · 9.14 KB
/
header.php
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
<!DOCTYPE html>
<html lang="sv" dir="ltr">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title><?php bloginfo( 'name' ); echo ' | '; if ( is_front_page() ) : bloginfo( 'description' ); else : wp_title(''); endif; ?></title>
<script type="text/javascript" src="<?php bloginfo('template_directory'); ?>/js/libs/jquery-3.5.1.min.js"></script>
<link rel="stylesheet" type="text/css" href="<?php bloginfo("template_directory"); ?>/css/sass.css" />
<!-- Flexbox Grid CSS Library -->
<link rel="stylesheet" type="text/css" href="<?php bloginfo("template_directory"); ?>/css/flexboxgrid.min.css" />
<!-- Font Awesome CSS Library -->
<link rel="stylesheet" type="text/css" href="<?php bloginfo("template_directory"); ?>/css/all.min.css">
<link rel="icon" type="image/png" href="<?php bloginfo("template_directory"); ?>/assets/images/favicon/favicon-196x196.png" sizes="196x196" />
<link rel="icon" type="image/png" href="<?php bloginfo("template_directory"); ?>/assets/images/favicon/favicon-96x96.png" sizes="96x96" />
<link rel="icon" type="image/png" href="<?php bloginfo("template_directory"); ?>/assets/images/favicon/favicon-32x32.png" sizes="32x32" />
<link rel="icon" type="image/png" href="<?php bloginfo("template_directory"); ?>/assets/images/favicon/favicon-16x16.png" sizes="16x16" />
<link rel="icon" type="image/png" href="<?php bloginfo("template_directory"); ?>/assets/images/favicon/favicon-128.png" sizes="128x128" />
<?php wp_head();?>
</head>
<body>
<div id="gde-mobile-menu-outer-wrapper">
<div id="gde-mobile-menu-wrapper">
<div id="gde-menu-background"></div>
<div id="gde-mobile-menu">
<div class="gde-menu-row">
<div class="gde-menu-title">
<h2>Meny</h2>
</div>
<div id="gde-menu-close">
<button class="button button-solid" alt="Menyknapp"><i class="fas fa-times"></i><p>Stäng</p></button>
</div>
</div>
<div class="gde-menu-list-row">
<?php wp_nav_menu( array( "theme_location" => "top-meny", "container_class" => "gde-mobile-menu-list" ) ); ?>
</div>
<div class="gde-menu-border"><h3>Målgrupper</h3></div>
<div class="gde-menu-short-list-row">
<?php wp_nav_menu( array( "theme_location" => "target-meny-sidor", "container_class" => "gde-target-mobile-navigation-list" ) ); ?></div>
</div>
</div>
</div>
</div>
<div id="gde-back-top">
<div id="gde-back-top-inner">
<i class="fas fa-arrow-up"></i>
</div>
<p>Till toppen</p>
</div>
<div id="gde-outer-wrapper">
<div class="gde-top-header-wrapper">
<div class="gde-top-header">
<div class="gde-top-logo">
<a href="<?php echo home_url(); ?>"><img src="<?php bloginfo('template_directory'); ?>/assets/images/gde_turkos_logo.png" class="gde-logo-img" alt="Gilla Din Ekonomi logo" /></a>
</div>
<div class="gde-top-header-right">
<div class="gde-top-header-right-navigation">
<?php wp_nav_menu( array( "theme_location" => "top-meny", "container_class" => "gde-top-menu-list", 'menu_id' => 'start-page-menu' ) ); ?>
</div>
<div class="gde-top-header-right-search">
<?php get_search_form()?>
</div>
<div id="gde-menu-btn">
<button class="button button-solid">
<i class="fas fa-bars"></i>
<p>Meny</p>
</button>
</div>
</div>
</div>
</div>
<?php if (is_page_template('home.php')): ?>
<div id="gde-header-hero-wrapper">
<div id="gde-header-hero-bumper-wrapper">
<div id="gde-header-hero-bumper">
<h2><?php the_field('bumper-heading');?></h2>
<p><?php the_field('bumper-text');?></p>
</div>
<?php if (get_field('bumper-link')): ?>
<a href="<?php the_field('bumper-link');?>">
<button class="button button-solid">Läs mer</button>
</a>
<?php endif ?>
</div>
<div id="gde-header-hero-image" style="background-image:url(<?php the_field('hero-background'); ?>);"></div>
</div>
<?php endif ?>
<?php if (is_page_template('home.php')): ?>
<div id="gde-targeted-start-navigation-outer-wrapper">
<div class="gde-targeted-start-navigation-wrapper">
<?php wp_nav_menu( array( "theme_location" => "target-meny-sidor", "container_class" => "gde-target-start-navigation-list" ) ); ?>
</div>
</div>
<div class="gde-targeted-information-wrapper">
<div class="gde-targeted-row">
<div class="gde-targeted-box">
<div class="gde-targeted-heading">
<h2>Nätverk</h2>
</div>
<div class="gde-targeted-info-outer-wrapper">
<div class="gde-targeted-icon-wrapper">
<img src="<?php bloginfo('template_directory'); ?>/assets/icons/network-icon.svg" class="targeted-icon" alt="Nätverksikon" />
</div>
<p class="gde-target-text"><?php the_field('network-puff-text');?></p>
</div>
<div class="gde-targeted-readmore">
<a href="<?php the_field('natverkspuff-link');?>"><p class="gde-readmore-text">Läs mer</p></a>
<img src="<?php bloginfo('template_directory'); ?>/assets/icons/angle-right.svg" class="readmore-icon" alt="Högerpil" />
</div>
</div>
<div class="gde-targeted-box">
<div class="gde-targeted-heading">
<h2>Utbildningar</h2>
</div>
<div class="gde-targeted-info-outer-wrapper">
<div class="gde-targeted-icon-wrapper">
<img src="<?php bloginfo('template_directory'); ?>/assets/icons/education-icon.svg" class="targeted-icon" alt="Utbildningsikon" />
</div>
<p class="gde-target-text"><?php the_field('utbildningarpuff-text');?></p>
</div>
<div class="gde-targeted-readmore">
<a href="<?php the_field('utbildningar-link');?>"><p class="gde-readmore-text">Läs mer</p></a>
<img src="<?php bloginfo('template_directory'); ?>/assets/icons/angle-right.svg" class="readmore-icon" alt="Högerpil" />
</div>
</div>
<div class="gde-targeted-box">
<div class="gde-targeted-heading">
<h2>Informatörer</h2>
</div>
<div class="gde-targeted-info-outer-wrapper">
<div class="gde-targeted-icon-wrapper">
<img src="<?php bloginfo('template_directory'); ?>/assets/icons/information-icon.svg" class="targeted-icon" alt="Informationsiko " />
</div>
<p class="gde-target-text"><?php the_field('informatorer-text');?></p>
</div>
<div class="gde-targeted-readmore">
<a href="<?php the_field('informatorer-link');?>"><p class="gde-readmore-text">Läs mer</p></a>
<img src="<?php bloginfo('template_directory'); ?>/assets/icons/angle-right.svg" class="readmore-icon" alt="Högerpil" />
</div>
</div>
<div class="gde-targeted-box">
<div class="gde-targeted-heading">
<h2>Privatekonomi</h2>
</div>
<div class="gde-targeted-info-outer-wrapper">
<div class="gde-targeted-icon-wrapper">
<img src="<?php bloginfo('template_directory'); ?>/assets/icons/economy-icon.svg" class="targeted-icon" alt="Privatekonomi-ikon" />
</div>
<p class="gde-target-text"><?php the_field('privatekonomi-text');?></p>
</div>
<div class="gde-targeted-readmore">
<a href="<?php the_field('privatekonomi-link');?>"><p class="gde-readmore-text">Läs mer</p></a>
<img src="<?php bloginfo('template_directory'); ?>/assets/icons/angle-right.svg" class="readmore-icon" alt="Högerpil" />
</div>
</div>
</div>
</div>
<?php endif ?>