This repository has been archived by the owner on Feb 21, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.php
170 lines (151 loc) · 7.08 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
<!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>" />
<meta name="viewport" content="width=device-width, maximum-scale=1.0, user-scalable=no" />
<?php
if ( is_single() ) {
$post = get_post();
$image = get_field( 'preview_photo', $post->ID );
$url = get_permalink( $post->ID );
if ( has_tag('http', $post) ) {
$url = str_replace('https:', 'http:', $url);
}
$og_data = [
'url' => $url,
'type' => 'article',
'title' => sprintf( '%1$s - Więcej niż LEK', $post->post_title ),
'description' => $post->post_excerpt,
'image' => esc_url( $image['sizes']['large'] ),
];
echo '<meta name="description" content="' . $og_data['description'] . '">';
} else {
$og_data = [
'url' => get_site_url(),
'type' => 'website',
'title' => 'Więcej niż LEK - Unikalny kurs przygotowujący do LEK-u',
'description' => 'Platfroma e-learningowa, praktyczne warsztaty, selekcja materiałów, wspólny plan pracy, systematyzacja wiedzy - to tylko początek! Wejdź na stronę i dowiedz się więcej.',
'image' => esc_url( sprintf( '%1$s/assets/fb_og_mainpage.png', get_template_directory_uri() ) ),
];
echo '<meta name="description" content="Platfroma e-learningowa, praktyczne warsztaty, selekcja materiałów, wspólny plan pracy, systematyzacja wiedzy - to tylko początek! Wejdź na stronę i dowiedz się więcej.">';
}
foreach ( $og_data as $key => $value ) {
printf( '<meta property="og:%1$s" content="%2$s">', $key, $value );
}
?>
<title><?php wp_title(); ?></title>
<link rel="stylesheet" href="<?php echo get_stylesheet_uri(); ?>" type="text/css" media="screen" />
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
<link rel="icon" type="image/png" href="<?php echo get_template_directory_uri() ?>/assets/favicon.png" />
<?php if ( is_singular() && get_option( 'thread_comments' ) ) wp_enqueue_script( 'comment-reply' ); ?>
<?php wp_head(); ?>
<link href="https://fonts.googleapis.com/css?family=PT+Serif400:700|Rubik|Poppins:400,500&subset=latin-ext" rel="stylesheet">
<script src="<?php echo get_template_directory_uri() ?>/js/vendors/jquery-3.1.1.min.js"></script>
<script src="<?php echo get_template_directory_uri() ?>/js/vendors/jquery.easing.js"></script>
<script src="<?php echo get_template_directory_uri() ?>/js/vendors/jquery.cookie.js"></script>
<script src="<?php echo get_template_directory_uri() ?>/js/vendors/modernizr-custom.js"></script>
<script src="<?php echo get_template_directory_uri() ?>/js/vendors/velocity.min.js"></script>
<script type="text/javascript">
var pageUrl = "<?php echo get_site_url() ?>";
var templateUrl = "<?php echo get_template_directory_uri() ?>";
</script>
</head>
<body <?php body_class() ?>>
<?php if ( is_front_page() ) : ?>
<div class="wnl-front-particles" id="particles-js"></div>
<div class="wnl-front-overlay"></div>
<?php elseif ( is_single() ) : ?>
<div id="fb-root"></div>
<script>(function(d, s, id) {
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) return;
js = d.createElement(s); js.id = id;
js.src = "//connect.facebook.net/en_US/sdk.js#xfbml=1&version=v2.8";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
<?php endif;?>
<div id="statement">
<p class="name"></p>
<a href="#" class="close"></a>
</div>
<div id="cookies">
<p>
Nasza strona internetowa używa plików cookies (tzw. ciasteczka) w celach statystycznych oraz funkcjonalnych. Dzięki nim możemy indywidualnie dostosować stronę do twoich potrzeb. Każdy może zaakceptować pliki cookies albo ma możliwość wyłączenia ich w przeglądarce, dzięki czemu nie będą zbierane żadne informacje.
</p>
<a href="#" class="close"></a>
</div>
<div id="regulations">
<div class="inside">
<div class="in">
<p class="title">Musimy zapytać…</p>
<p class="subtitle">
Czy wyrażasz zgode na przetwarzanie Twoich danych przez bethink s.c. w celu dostarczania informacji handlowych, czyli informacji o rozpoczęciu kursu, nowych wpisach na blogu, oraz aktualności dotyczących kursu “Więcej niż LEK”?
</p>
<div class="accept">
<a href="#" title="">
WYRAŻAM ZGODĘ
</a>
</div>
<div class="close">
<a href="#" title="">
Nie, dziękuję.
</a>
</div>
</div>
</div>
</div>
<header>
<!-- menu mobile -->
<div class="sidebar">
<div class="wrapper">
<div class="logo">
<a href="<?php echo get_site_url() ?>/strona-glowna" title="Wróć do strony głównej">
<img src="<?php echo get_template_directory_uri() ?>/assets/logo/main/white.png" alt="Logotyp Więcej niż LEK" />
</a>
</div>
<div class="bag">
<div class="mail">
<a href="<?php echo get_site_url() ?>/zostaw-e-mail" class="button button__primary">
<?php pll_e("button_leave_mail"); ?>
</a>
</div>
<a href="" class="close"><img src="<?php echo get_template_directory_uri() ?>/assets/button/menu/exit.svg" alt="Zamknij menu" /></a>
</div>
<div class="menu">
<?php wp_nav_menu( array(
'menu' => 'mobile_menu'
) ); ?>
<a href="https://www.facebook.com/wiecejnizlek" title="Profil Więcej niż LEK na Facebooku" target="_blank" class="fb"><img src="<?php echo get_template_directory_uri() ?>/assets/button/social_media_footer/facebook/normal.svg"></a>
<div class="mail">
<a href="<?php echo get_site_url() ?>/zostaw-e-mail" title="">
<?php pll_e("button_leave_mail"); ?>
</a>
</div>
</div>
</div>
</div>
<div class="wrapper">
<div class="logo">
<a href="<?php echo get_site_url() ?>/strona-glowna" title="Wróć do strony głównej">
<img src="<?php echo get_template_directory_uri() ?>/assets/logo/main/normal.svg" alt="Logotyp Więcej niż LEK" />
</a>
</div>
<!-- menu desktop -->
<div class="desktop">
<div class="bag">
<?php wp_nav_menu(array('theme_location'=>'landing-menu')); ?>
<a href="https://www.facebook.com/wiecejnizlek" title="Profil Więcej niż LEK na Facebooku" class="fb"><img src="<?php echo get_template_directory_uri() ?>/assets/button/facebook/normal.svg"></a>
</div>
</div>
<div class="bag">
<div class="mail">
<a href="<?php echo get_site_url() ?>/zostaw-e-mail" class="button button__primary">
<?php pll_e("button_leave_mail"); ?>
</a>
</div>
<a href="" class="hamburger"><img src="<?php echo get_template_directory_uri() ?>/assets/button/menu/normal.svg" alt="Menu mobile" /></a>
</div>
</div>
</header>
<div id="mask">
</div>