Initial commit

This commit is contained in:
sarahgarcin1 2026-01-05 19:33:15 +01:00
commit 388079e6bb
1108 changed files with 330121 additions and 0 deletions

View file

@ -0,0 +1,2 @@
<?php /** @var \Kirby\Cms\Block $block */ ?>
<div class="blank-page"></div>

View file

@ -0,0 +1,2 @@
<?php /** @var \Kirby\Cms\Block $block */ ?>
<div class="pagebreak"></div>

View file

@ -0,0 +1,27 @@
<?php
/** @var \Kirby\Cms\Block $block */
$alt = $block->alt();
$caption = $block->caption();
$src = null;
$fullWidth = $block->fullwidth()->toBool();
if ($block->location() == 'web') {
$src = $block->src()->esc();
} elseif ($image = $block->image()->toFile()) {
$alt = $alt->or($image->alt());
$src = $image->url();
}
?>
<?php if ($src): ?>
<div class="full-bleed-image full-page">
<figure class="<?= $fullWidth ? 'full-width' : '' ?>">
<img src="<?= $src ?>" alt="<?= $alt->esc() ?>">
<?php if ($caption->isNotEmpty()): ?>
<figcaption><?= $caption ?></figcaption>
<?php endif ?>
</figure>
</div>
<?php endif ?>

View file

@ -0,0 +1,22 @@
<?php
/** @var \Kirby\Cms\Block $block */
$caption = $block->caption();
$crop = $block->crop()->isTrue();
$ratio = $block->ratio()->or('auto');
?>
<figure<?= Html::attr(['data-ratio' => $ratio, 'data-crop' => $crop], null, ' ') ?>>
<ul>
<?php foreach ($block->images()->toFiles() as $image): ?>
<li>
<a href="<?= $image->url() ?>" class="glightbox" <?php if($caption->isNotEmpty()):?> data-glightbox="title: <?= $caption ?>"<?php endif?>>
<?= $image ?>
</a>
</li>
<?php endforeach ?>
</ul>
<?php if ($caption->isNotEmpty()): ?>
<figcaption>
<?= $caption ?>
</figcaption>
<?php endif ?>
</figure>

View file

@ -0,0 +1,39 @@
<?php
/** @var \Kirby\Cms\Block $block */
$alt = $block->alt();
$caption = $block->caption();
$crop = $block->crop()->toBool();
$link = $block->link();
$ratio = $block->ratio()->or('auto');
$src = null;
if ($block->location() == 'web') {
$src = $block->src()->esc();
} elseif ($image = $block->image()->toFile()) {
$alt = $alt->or($image->alt());
$src = $image->url();
}
?>
<?php if ($src): ?>
<figure
data-crop="<?= $crop ? 'true' : 'false' ?>"
data-ratio="<?= $ratio ?>"
style="--ratio: <?= $ratio ?>;"
>
<?php if ($link->isNotEmpty()): ?>
<a href="<?= Str::esc($link->toUrl()) ?>">
<img src="<?= $src ?>" alt="<?= $alt->esc() ?>">
</a>
<?php else: ?>
<img src="<?= $src ?>" alt="<?= $alt->esc() ?>">
<?php endif ?>
<?php if ($caption->isNotEmpty()): ?>
<figcaption>
<?= $caption->kt() ?>
</figcaption>
<?php endif ?>
</figure>
<?php endif ?>

View file

@ -0,0 +1,4 @@
<?php /** @var \Kirby\Cms\Block $block */ ?>
<div class="interview-block alignment-<?= $block->alignment()?>">
<?= $block->text()->kt();?>
</div>

View file

@ -0,0 +1,27 @@
<?php
/** @var \Kirby\Cms\Block $block */
$alt = $block->alt();
$caption = $block->caption();
$src = null;
$fullWidth = $block->fullwidth()->toBool();
if ($block->location() == 'web') {
$src = $block->src()->esc();
} elseif ($image = $block->image()->toFile()) {
$alt = $alt->or($image->alt());
$src = $image->url();
}
?>
<?php if ($src): ?>
<div class="spread-image">
<figure class="<?= $fullWidth ? 'full-width' : '' ?>">
<img src="<?= $src ?>" alt="<?= $alt->esc() ?>">
<?php if ($caption->isNotEmpty()): ?>
<figcaption><?= $caption ?></figcaption>
<?php endif ?>
</figure>
</div>
<?php endif ?>

View file

@ -0,0 +1,3 @@
<?php /** @var \Kirby\Cms\Block $block */ ?>
<?= $block->text()->kt()->smartypants();?>

View file

@ -0,0 +1,30 @@
<?php
use Kirby\Cms\Html;
/** @var \Kirby\Cms\Block $block */
$caption = $block->caption();
$url = null;
$class = null;
if ($block->location() == 'web') {
$url = $block->url()->esc();
$class = "video-from-web";
} elseif ($video = $block->video()->toFile()) {
$url = $video->url();
$class = "video-from-local";
}
?>
<?php if ($video = Html::video($url)): ?>
<figure class="<?= $class ?>">
<?php if ($block->location() == 'web'):?>
<?= $video ?>
<?php else:?>
<video src="<?= $url ?>" controls></video>
<?php endif;?>
<?php if ($caption->isNotEmpty()): ?>
<figcaption><?= $caption ?></figcaption>
<?php endif ?>
</figure>
<?php endif ?>

3
site/snippets/footer.php Normal file
View file

@ -0,0 +1,3 @@
</body>
</html>

78
site/snippets/head.php Normal file
View file

@ -0,0 +1,78 @@
<!DOCTYPE html>
<html lang="fr">
<head>
<!-- Meta Tag -->
<meta charset="utf-8" />
<meta name="robots" content="index,follow">
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<meta name="description" content="<?= $site->description()->html() ?>">
<meta name="keywords" content="<?= $site->keywords()->html() ?>">
<meta name="author" content="<?= $site->author()->html() ?>">
<meta name='subject' content="<?= $site->subject()->html() ?>">
<!-- Title -->
<title><?= $site->title()->esc() ?> | <?= $page->title()->esc() ?></title>
<!-- Stylesheets -->
<?= css([
'assets/css/reset.css',
'assets/fonts/stylesheet.css',
'assets/css/variables.css',
'assets/css/main.css',
'@auto'
]) ?>
<?php if($page->intendedTemplate() == "print"):?>
<?= css("assets/pagedjs/interface-header.css")?>
<?= css("assets/pagedjs/interface.css")?>
<?php else: ?>
<?= css([
'assets/css/libs/flexboxgrid.css',
'assets/css/libs/glightbox.min.css',
'assets/css/web.css',
'assets/css/responsive.css',
'@auto'
]) ?>
<?php endif;?>
<?php if($page->intendedTemplate() == "print"):?>
<?= js([
"assets/pagedjs/paged.js",
"assets/pagedjs/interface.js",
"assets/pagedjs/reload-in-place.js",
"assets/js/plugins/csstree.js",
"assets/js/plugins/smartquote.js",
"assets/js/plugins/fix-justif.js",
"assets/js/plugins/fullpage.js",
"assets/js/plugins/full-page.js",
"assets/js/plugins/margin-notes.js",
"assets/js/plugins/toc.js",
'@auto'
]) ?>
<?php else:?>
<?= js([
'assets/js/glightbox.min.js',
'assets/js/main.js',
'@auto'
]) ?>
<?php endif;?>
<!-- Social Networks -->
<meta property="og:title" content="<?= $site->title()->html() ?> | <?= $page->title()->html() ?>">
<meta property="og:description" content="<?= $site->description()->html() ?>">
<?php if ($cover = $site->cover()->toFile()): ?>
<meta property="og:image" content="<?= $cover->url()?>">
<?php endif ?>
<meta name='og:type' content='<?= $site->subject()->html() ?>'>
<meta name='og:url' content='<?= $site->url() ?>'>
<meta name='og:site_name' content='<?= $site->title()->html() ?>'>
</head>
<body
data-login="<?php e($kirby->user(),'true', 'false') ?>"
data-template="<?= $page->template() ?>"
data-intended-template="<?= $page->intendedTemplate() ?>">

5
site/snippets/header.php Normal file
View file

@ -0,0 +1,5 @@
<header role="banner" class="row">
<?php snippet('logo')?>
<?php snippet('nav')?>
</header>

23
site/snippets/item.php Normal file
View file

@ -0,0 +1,23 @@
<li class="col-xs-12 col-sm-6 col-md-4 col-xl-3">
<a href="<?= $projet->url()?>" title="<?= $projet->title()?>">
<?php if($image = $projet->cover()->toFile()):?>
<div class="projets__projet__cover">
<picture>
<source
srcset="<?= $image->thumb(['width' => 680, 'height' => 680, 'crop' => true, 'format' => 'webp'])->url() ?>"
sizes="<?= $sizes ?>"
type="image/webp"
>
<img
loading="lazy"
alt="<?= $image->alt() ?>"
src="<?= $image->thumb(['width' => 680, 'height' => 680, 'crop' => true, 'format' => 'webp'])->url() ?>"
srcset="<?= $image->srcset() ?>"
sizes="<?= $sizes ?>"
>
</picture>
</div>
<?php endif;?>
<p><?= $projet->title()?></p>
</a>
</li>

13
site/snippets/logo.php Normal file
View file

@ -0,0 +1,13 @@
<div class="site__logo col-xs-6 col-sm-3 col-md-4 col-lg-5 col-xl-6 row">
<?php if($logo = $site->logo()->toFile()):?>
<a href="<?= $site->url() ?>" title="<?= $site->title()?>">
<figure>
<?= $logo?>
</figure>
</a>
<?php endif;?>
<h1 class="header__title">
<a href="<?= $site->url() ?>" title="<?= $site->title()?>">
<?= $site->title()->html()?>
</a></h1>
</div>

38
site/snippets/nav.php Normal file
View file

@ -0,0 +1,38 @@
<?php $items = $pages->listed();?>
<?php if($items->isNotEmpty()):?>
<nav class="col-xs-12 col-sm-9 col-md-8 col-lg-7 col-xl-6 row end-xs">
<div class="mobile__menu_btn">
<span></span>
<span></span>
<span></span>
</div>
<ul class='row between-xs col-xs-12 col-sm'>
<?php foreach($items as $item): ?>
<li <?php e($item->isOpen(), ' class="active"') ?>>
<a href="<?= $item->url() ?>"><?= $item->title()->html() ?>
</a>
</li>
<?php endforeach ?>
</ul>
<ul class="social-network end-xs row">
<?php $socials = $site->social()->toStructure();?>
<?php foreach($socials as $social): ?>
<li>
<a href="<?= $social->link()?>" title="<?= $social->title()?>" target="_blank">
<?= $social->icon()?>
</a>
</li>
<?php endforeach; ?>
</ul>
<ul class="languages end-xs row">
<?php foreach($kirby->languages() as $language): ?>
<li<?php e($kirby->language() == $language, ' class="active"') ?>>
<a href="<?= $page->url($language->code()) ?>" hreflang="<?php echo $language->code() ?>">
<?= html($language->code()) ?>
</a>
</li>
<?php endforeach ?>
</ul>
</nav>
<?php endif ?>