221 lines
6.5 KiB
PHP
221 lines
6.5 KiB
PHP
<!DOCTYPE html>
|
|
<html lang="<?= $site->language()->code() ?>" class="no-js">
|
|
<head>
|
|
|
|
<meta charset="UTF-8" />
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
<link rel="dns-prefetch" href="//www.google-analytics.com">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
|
|
<link rel="canonical" href="<?php echo html($page->url()) ?>" />
|
|
<?php if($page->isHomepage()): ?>
|
|
<title><?= $site->title()->html() ?></title>
|
|
<?php else: ?>
|
|
<title><?= $page->title()->html() ?> | <?= $site->title()->html() ?></title>
|
|
<?php endif ?>
|
|
<?php if($page->isHomepage()): ?>
|
|
<meta name="description" content="<?= $site->description()->html() ?>">
|
|
<?php else: ?>
|
|
<meta name="DC.Title" content="<?= $page->title()->html() ?>" />
|
|
<?php if(!$page->text()->empty()): ?>
|
|
<meta name="description" content="<?= $page->text()->excerpt(250) ?>">
|
|
<meta name="DC.Description" content="<?= $page->text()->excerpt(250) ?>"/ >
|
|
<meta property="og:description" content="<?= $page->text()->excerpt(250) ?>" />
|
|
<?php else: ?>
|
|
<meta name="description" content="">
|
|
<meta name="DC.Description" content=""/ >
|
|
<meta property="og:description" content="" />
|
|
<?php endif ?>
|
|
<?php endif ?>
|
|
<meta name="robots" content="index,follow" />
|
|
<meta name="keywords" content="<?= $site->keywords()->html() ?>">
|
|
<?php if($page->isHomepage()): ?>
|
|
<meta itemprop="name" content="<?= $site->title()->html() ?>">
|
|
<meta property="og:title" content="<?= $site->title()->html() ?>" />
|
|
<?php else: ?>
|
|
<meta itemprop="name" content="<?= $page->title()->html() ?> | <?= $site->title()->html() ?>">
|
|
<meta property="og:title" content="<?= $page->title()->html() ?> | <?= $site->title()->html() ?>" />
|
|
<?php endif ?>
|
|
<meta property="og:type" content="website" />
|
|
<meta property="og:url" content="<?= html($page->url()) ?>" />
|
|
<?php if($page->featured()->isNotEmpty() && $ogimage = $page->featured()->toFile()): ?>
|
|
<?php $ogimage = $ogimage->resize(1200) ?>
|
|
<meta property="og:image" content="<?= $ogimage->url() ?>"/>
|
|
<meta property="og:image:width" content="<?= $ogimage->width() ?>"/>
|
|
<meta property="og:image:height" content="<?= $ogimage->height() ?>"/>
|
|
<?php else: ?>
|
|
<?php if($site->ogimage()->isNotEmpty() && $ogimage = $site->ogimage()->toFile()): ?>
|
|
<?php $ogimage = $ogimage->width(1200) ?>
|
|
<meta property="og:image" content="<?= $ogimage->url() ?>"/>
|
|
<meta property="og:image:width" content="<?= $ogimage->width() ?>"/>
|
|
<meta property="og:image:height" content="<?= $ogimage->height() ?>"/>
|
|
<?php endif ?>
|
|
<?php endif ?>
|
|
|
|
<meta itemprop="description" content="<?= $site->description()->html() ?>">
|
|
<link rel="shortcut icon" href="<?= url('assets/images/favicon.ico') ?>">
|
|
<link rel="icon" href="<?= url('assets/images/favicon.ico') ?>" type="image/x-icon">
|
|
|
|
<?php
|
|
echo css('assets/css/build/build.min.css');
|
|
echo js('assets/js/build/vendor/modernizr-bundle.js');
|
|
?>
|
|
|
|
<?php if(!$site->customcss()->empty()): ?>
|
|
<style type="text/css">
|
|
<?php echo $site->customcss()->html() ?>
|
|
</style>
|
|
<?php endif ?>
|
|
|
|
<!-- CSS PATCH (ADRIEN) -->
|
|
<style>
|
|
table p {
|
|
text-align: left;
|
|
}
|
|
.visuallyhidden {
|
|
display: none;
|
|
}
|
|
|
|
.shopify-buy__btn-disabled {
|
|
background: transparent;
|
|
color: #000;
|
|
border: none;
|
|
padding: 0;
|
|
}
|
|
|
|
.shopify-buy__btn.shopify-buy__btn-disabled {
|
|
border: none;
|
|
border-radius: 0;
|
|
background: transparent;
|
|
color: #000;
|
|
width: auto;
|
|
height: 0;
|
|
cursor: not-allowed;
|
|
}
|
|
|
|
/* ================= NEWS PATCH ================= */
|
|
body {
|
|
overflow-y: hidden;
|
|
}
|
|
#news {
|
|
display: flex;
|
|
height: 100vh;
|
|
}
|
|
#news .item {
|
|
flex-shrink: 0;
|
|
margin-right: .35rem;
|
|
}
|
|
#news .link-overlay {
|
|
position: absolute;
|
|
z-index: 1;
|
|
height: 100%;
|
|
}
|
|
.responsive-image {
|
|
height: 100vh;
|
|
}
|
|
.responsive-image img {
|
|
height: 100%;
|
|
object-fit: cover;
|
|
}
|
|
|
|
/* Hide scrollbar for Chrome, Safari and Opera */
|
|
*::-webkit-scrollbar {
|
|
display: none;
|
|
}
|
|
|
|
/* Hide scrollbar for IE, Edge and Firefox */
|
|
* {
|
|
-ms-overflow-style: none; /* IE and Edge */
|
|
scrollbar-width: none; /* Firefox */
|
|
}
|
|
|
|
#news .caption {
|
|
line-height: 1;
|
|
position: absolute;
|
|
bottom: 0;
|
|
background: #fff;
|
|
padding: 1rem;
|
|
transform: translateY(16rem);
|
|
opacity: 0;
|
|
transition: all .5s cubic-bezier(0.1, 0.57, 0.1, 1);
|
|
}
|
|
|
|
#news .item:hover .caption {
|
|
transform: translateY(0);
|
|
opacity: 1;
|
|
}
|
|
|
|
/* ================= NEWS MOBILE ================= */
|
|
@media screen and (max-width: 1025px) {
|
|
body {
|
|
overflow-y: auto;
|
|
}
|
|
#news {
|
|
display: block;
|
|
height: auto;
|
|
}
|
|
#news .item {
|
|
width: 100vw !important;
|
|
height: auto !important;
|
|
}
|
|
#news .item {
|
|
position: relative;
|
|
}
|
|
#news .responsive-image {
|
|
height: auto;
|
|
}
|
|
.ph {
|
|
display: none;
|
|
}
|
|
#news .link-overlay {
|
|
display: inline;
|
|
height: 100%;
|
|
width: 100% !important;
|
|
}
|
|
#news .responsive-image img {
|
|
position: relative;
|
|
}
|
|
#news .item .caption {
|
|
position: relative;
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
width: 100vw !important;
|
|
}
|
|
}
|
|
</style>
|
|
|
|
<!-- Facebook Pixel Code -->
|
|
<script>
|
|
!function(f,b,e,v,n,t,s)
|
|
{if(f.fbq)return;n=f.fbq=function(){n.callMethod?
|
|
n.callMethod.apply(n,arguments):n.queue.push(arguments)};
|
|
if(!f._fbq)f._fbq=n;n.push=n;n.loaded=!0;n.version='2.0';
|
|
n.queue=[];t=b.createElement(e);t.async=!0;
|
|
t.src=v;s=b.getElementsByTagName(e)[0];
|
|
s.parentNode.insertBefore(t,s)}(window,document,'script',
|
|
'https://connect.facebook.net/en_US/fbevents.js');
|
|
fbq('init', '211316429500623');
|
|
fbq('track', 'PageView');
|
|
</script>
|
|
<noscript>
|
|
<img height="1" width="1"
|
|
src="https://www.facebook.com/tr?id=211316429500623&ev=PageView
|
|
&noscript=1"/>
|
|
</noscript>
|
|
<!-- End Facebook Pixel Code -->
|
|
</head>
|
|
|
|
<body page-type="<?= $page->intendedTemplate() ?>" <?php e(!$site->font()->bool(), 'class="sans-serif"') ?>>
|
|
|
|
<div id="loader"></div>
|
|
|
|
<?php snippet('intro') ?>
|
|
|
|
<div id="main">
|
|
|
|
<div class="pjax">
|
|
|
|
<?php snippet('site-title') ?>
|
|
|
|
<div id="container">
|
|
|
|
<div id="page-content" page-type="<?= $page->intendedTemplate() ?>">
|