-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathheader.php
More file actions
executable file
·88 lines (68 loc) · 4.01 KB
/
Copy pathheader.php
File metadata and controls
executable file
·88 lines (68 loc) · 4.01 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
<?php
$dist = get_template_directory_uri() . '/dist';
if (!empty($_SERVER['HTTP_CLIENT_IP'])) {
// ip from share internet
$userIP = $_SERVER['HTTP_CLIENT_IP'];
} elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) {
// ip pass from proxy
$userIP = $_SERVER['HTTP_X_FORWARDED_FOR'];
} else {
$userIP = $_SERVER['REMOTE_ADDR'];
}
$excludedIPs = [
'172.18.0.1',
'194.12.10.131',
'185.212.156.11'
];
?>
<!DOCTYPE html>
<html lang="en-GB">
<head>
<meta charset="utf-8">
<title><?= wp_title('') ?></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<meta name="theme-color" content="#151931"/>
<link rel="shortcut icon" type="image/x-icon" href="<?= $dist ?>/img/favicon-32.png">
<link rel="shortcut icon" sizes="256x256" href="<?= $dist ?>/img/favicon-256.png">
<link rel="shortcut icon" sizes="512x512" href="<?= $dist ?>/img/favicon-512.png">
<link rel="apple-touch-icon" sizes="128x128" href="<?= $dist ?>/img/favicon-large-128.png">
<link rel="apple-touch-icon" sizes="256x256" href="<?= $dist ?>/img/favicon-large-256.png">
<?php wp_head(); ?>
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>">
<link rel="preload" href="<?= $dist ?>/font/sailec/39E20B_0_0.woff2" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="<?= $dist ?>/font/sailec/39E20B_2_0.woff2" as="font" type="font/woff2" crossorigin>
<?php if (!is_404()) : ?>
<link rel="preload" href="<?= $dist ?>/font/tiempos/TiemposTextWeb-Semibold.woff2" as="font" type="font/woff2" crossorigin>
<?php endif; ?>
<link rel="stylesheet" href="<?= $dist ?>/font/fonts.css">
<script async src="<?= $dist ?>/js/main.js"></script>
<?php if (is_front_page()) : ?>
<link rel="preconnect" href="https://widget.clutch.co" crossorigin>
<link rel="preconnect" href="https://assets.goodfirms.co" crossorigin>
<?php endif; ?>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/orestbida/cookieconsent@v2.8.9/dist/cookieconsent.css" media="print" onload="this.media='all'">
<?php if (!in_array($userIP, $excludedIPs) && !current_user_can('edit_pages')) : ?>
<?php if (is_front_page()) : ?>
<link rel="preconnect" href="https://www.google-analytics.com">
<link rel="preconnect" href="https://www.googletagmanager.com">
<?php endif; ?>
<script type="text/plain" data-cookiecategory="analytics">
window.heap=window.heap||[],heap.load=function(e,t){window.heap.appid=e,window.heap.config=t=t||{};var r=document.createElement("script");r.type="text/javascript",r.async=!0,r.src="https://cdn.heapanalytics.com/js/heap-"+e+".js";var a=document.getElementsByTagName("script")[0];a.parentNode.insertBefore(r,a);for(var n=function(e){return function(){heap.push([e].concat(Array.prototype.slice.call(arguments,0)))}},p=["addEventProperties","addUserProperties","clearEventProperties","identify","resetIdentity","removeEventProperty","setEventProperties","track","unsetEventProperty"],o=0;o<p.length;o++)heap[p[o]]=n(p[o])};
heap.load("3334188507");
</script>
<!-- Google Tag Manager -->
<script type="text/plain" data-cookiecategory="analytics">(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
})(window,document,'script','dataLayer','GTM-NQ4J4F2');</script>
<!-- End Google Tag Manager -->
<?php endif; ?>
<script src="https://cdn.popupsmart.com/bundle.js" data-id="40967" defer></script>
</head>
<body <?php body_class(); ?>>
<?php include(locate_template('cookie-consent.php')) ?>
<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-NQ4J4F2" height="0" width="0" style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->
<?php get_template_part('src/template_parts/header') ?>