bottom bar snippet
All checks were successful
Deploy / Deploy to Production (push) Successful in 13s
All checks were successful
Deploy / Deploy to Production (push) Successful in 13s
This commit is contained in:
parent
bde54fa66d
commit
f73b8cb90b
5 changed files with 50 additions and 39 deletions
43
site/snippets/bottom-bar.php
Normal file
43
site/snippets/bottom-bar.php
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
<div id="bottom-bar">
|
||||
|
||||
<div class="bottom-bar__inner">
|
||||
|
||||
<div class="progress-container">
|
||||
<div class="progress-bar" id="progressBar"></div>
|
||||
</div>
|
||||
|
||||
<?php if ($page->intendedTemplate()->name() === 'investigation'): ?>
|
||||
<div class="title-group">
|
||||
<p class="title-type">Enquête</p>
|
||||
<p class="title"><?= $page->title()->esc() ?></p>
|
||||
</div>
|
||||
<?php endif ?>
|
||||
|
||||
<div class="dropdown">
|
||||
<button class="dropdown__trigger btn--simple no-link">
|
||||
<span class="icon"><?= svg('assets/icons/share.svg') ?></span>
|
||||
<span class="text">Partager</span>
|
||||
</button>
|
||||
<div class="dropdown__content">
|
||||
<?php snippet('modal-share') ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<?php if ($page->intendedTemplate()->name() === 'investigation'): ?>
|
||||
<button class="btn--simple btn--download">
|
||||
<a href="#" download>
|
||||
<span class="icon"><?= svg('assets/icons/download.svg') ?></span>
|
||||
<span class="text">Télécharger</span>
|
||||
</a>
|
||||
</button>
|
||||
<?php endif ?>
|
||||
|
||||
<button class="btn--simple btn--support"><a targer="_blank" href="https://soutenir.index.ngo/">Soutenez-nous</a></button>
|
||||
|
||||
<button class="btn--simple btn--back-to-top">
|
||||
<a href="#"><span class="icon"><?= svg('assets/icons/arrow-left.svg') ?></a>
|
||||
</button>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -79,4 +79,6 @@
|
|||
|
||||
|
||||
</main>
|
||||
|
||||
<?php snippet('bottom-bar') ?>
|
||||
<?php snippet('footer') ?>
|
||||
|
|
|
|||
|
|
@ -445,45 +445,7 @@ if ($package):
|
|||
|
||||
|
||||
|
||||
<div id="bottom-bar">
|
||||
|
||||
<div class="bottom-bar__inner">
|
||||
|
||||
<div class="progress-container">
|
||||
<div class="progress-bar" id="progressBar"></div>
|
||||
</div>
|
||||
|
||||
<div class="title-group">
|
||||
<p class="title-type">Enquête</p>
|
||||
<p class="title"><?= $page->title()->esc() ?></p>
|
||||
</div>
|
||||
|
||||
<div class="dropdown">
|
||||
<button class="dropdown__trigger btn--simple no-link">
|
||||
<span class="icon"><?= svg('assets/icons/share.svg') ?></span>
|
||||
<span class="text">Partager</span>
|
||||
</button>
|
||||
<div class="dropdown__content">
|
||||
<?php snippet('modal-share') ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
<button class="btn--simple btn--download">
|
||||
<a href="#" download>
|
||||
<span class="icon"><?= svg('assets/icons/download.svg') ?></span>
|
||||
<span class="text">Télécharger</span>
|
||||
</a>
|
||||
</button>
|
||||
|
||||
<button class="btn--simple btn--support"><a targer="_blank" href="https://soutenir.index.ngo/">Soutenez-nous</a></button>
|
||||
|
||||
<button class="btn--simple btn--back-to-top">
|
||||
<a href="#"><span class="icon"><?= svg('assets/icons/arrow-left.svg') ?></a>
|
||||
</button>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
<?php snippet('bottom-bar') ?>
|
||||
|
||||
<?php snippet('footer') ?>
|
||||
|
||||
|
|
|
|||
|
|
@ -81,4 +81,6 @@ $dateLocale = substr(is_array($locale) ? reset($locale) : $locale, 0, 5);
|
|||
|
||||
|
||||
</main>
|
||||
|
||||
<?php snippet('bottom-bar') ?>
|
||||
<?php snippet('footer') ?>
|
||||
|
|
|
|||
|
|
@ -82,4 +82,6 @@ $dateLocale = substr(is_array($locale) ? reset($locale) : $locale, 0, 5);
|
|||
</div>
|
||||
|
||||
</main>
|
||||
|
||||
|
||||
<?php snippet('footer') ?>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue