add callout ticket button show / hide
This commit is contained in:
parent
aa572adb16
commit
baffb504b6
4 changed files with 15 additions and 5 deletions
|
|
@ -7,8 +7,8 @@ section.callout {
|
|||
text-align: center;
|
||||
}
|
||||
|
||||
section.callout h4 {
|
||||
margin-bottom: calc(var(--padding-vertical) / 2);
|
||||
section.callout .ticket-link {
|
||||
margin-top: calc(var(--padding-vertical) / 2);
|
||||
}
|
||||
|
||||
section.callout a {
|
||||
|
|
|
|||
|
|
@ -6,7 +6,14 @@ fields:
|
|||
calloutText:
|
||||
label: Texte
|
||||
type: writer
|
||||
width: 1/2
|
||||
width: 1/3
|
||||
calloutTicket:
|
||||
label: Bouton de réservation
|
||||
type: toggle
|
||||
width: 1/6
|
||||
text:
|
||||
false: affiché
|
||||
true: masqué
|
||||
calloutColor:
|
||||
label: Couleur de fond
|
||||
extends: fields/color
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@ default: "#fff"
|
|||
options:
|
||||
"#a59478": Brun
|
||||
"#eae7d8": Beige
|
||||
"#f7f6ed": Beige clair
|
||||
"#009eff": Bleu
|
||||
"#99EEFF": Bleu clair
|
||||
"#6f8337": Kaki
|
||||
|
|
@ -12,8 +13,8 @@ options:
|
|||
"#45e6ba": Menthe
|
||||
"#9e00ff": Violet
|
||||
"#f20298": Rose
|
||||
"#ffa199": Rose clair
|
||||
"#ff6647": Saumon
|
||||
"#ffa199": Rose clair
|
||||
"#ffc73b": Or
|
||||
"#d6ff00": Jaune
|
||||
"#faff82": Jaune pâle
|
||||
|
|
|
|||
|
|
@ -1,4 +1,6 @@
|
|||
<section class="callout" style="--color: <?= $site->calloutColor() ?>;">
|
||||
<h4><?= $site->calloutText()->inline() ?></h4>
|
||||
<a class="ticket-link" href="<?= option('ticketingUrl') ?>" target="_blank" title="Aller à la billetterie"><?php snippet('ticket') ?> Billetterie</a>
|
||||
<?php if ($site->calloutTicket()->exists() && $site->calloutTicket() == 'true'): ?>
|
||||
<a class="ticket-link" href="<?= option('ticketingUrl') ?>" target="_blank" title="Aller à la billetterie"><?php snippet('ticket') ?> Billetterie</a>
|
||||
<?php endif ?>
|
||||
</section>
|
||||
Loading…
Add table
Add a link
Reference in a new issue