Skip to content

Commit

Permalink
Merge pull request #4 from findsorguk/staging
Browse files Browse the repository at this point in the history
Merge Cookiebot changes into master
  • Loading branch information
s-moon authored Feb 6, 2024
2 parents cf3d19f + d2ecc6b commit d32cf3e
Showing 1 changed file with 45 additions and 5 deletions.
50 changes: 45 additions & 5 deletions header.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,49 @@
?><!DOCTYPE html>
<html <?php language_attributes(); ?>>
<head>
<!-- Google Consent mode -->
<script data-cookieconsent="ignore">
window.dataLayer = window.dataLayer || [];
function gtag() {
dataLayer.push(arguments);
}
gtag("consent", "default", {
ad_storage: "denied",
analytics_storage: "denied",
functionality_storage: "denied",
personalization_storage: "denied",
security_storage: "granted",
wait_for_update: 2000,
});
gtag("set", "ads_data_redaction", true);
</script>
<!-- End Google Consent mode -->

<script data-cookieconsent="ignore">
(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-WZBKMJP');
</script>
<!-- End Google Tag Manager -->

<!-- Cookiebot -->
<script
id="Cookiebot"
src="https://consent.cookiebot.com/uc.js"
data-cbid="ec5f4b04-e699-4bea-a9de-eda95d4d9fb7"
data-blockingmode="auto"
type="text/javascript"
></script>
<!-- End Cookiebot -->

<meta charset="<?php bloginfo( 'charset' ); ?>">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="profile" href="http://gmpg.org/xfn/11">
<link rel="profile" href="https://gmpg.org/xfn/11">
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">

<?php wp_head(); ?>
Expand All @@ -34,14 +74,14 @@
<!-- WordPress HTML -->
<header id="masthead" class="site-header" role="banner">
<div class="site-branding">
<a href="https://finds.org.uk" title="Go to the homepage"><img src="https://finds.org.uk/assets/logos/pas.jpg"
<a href="<?= get_base_url(); ?>" title="Go to the homepage"><img src="<?= get_base_url(); ?>/assets/logos/pas.jpg"
alt="The Scheme's logo"
width="213" height="104"/></a>
<h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
<h2 class="site-description"><?php bloginfo( 'description' ); ?></h2>
</div><!-- .site-branding -->

<div class="breadcrumbs" xmlns:v="http://rdf.data-vocabulary.org/#">
<div class="breadcrumbs" xmlns:v="https://rdf.data-vocabulary.org/#">
You are here:
<?php if(function_exists('bcn_display'))
{
Expand All @@ -64,8 +104,8 @@
echo

'<div class="site-sponsorship">
<a href="http://www.hlf.org.uk" title="The Heritage Lottery Fund website"><img class="sponsors-hlf"
src="https://finds.org.uk/assets/logos/HLF_english_compact_pantone_150px.jpg"
<a href="https://www.hlf.org.uk" title="The Heritage Lottery Fund website"><img class="sponsors-hlf"
src="<?= get_base_url(); ?>/assets/logos/HLF_english_compact_pantone_150px.jpg"
alt="The Heritage Lottery Fund logo"/></a>
</div><!-- .site-sponsorship -->';
}
Expand Down

0 comments on commit d32cf3e

Please sign in to comment.