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;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
section.callout h4 {
|
section.callout .ticket-link {
|
||||||
margin-bottom: calc(var(--padding-vertical) / 2);
|
margin-top: calc(var(--padding-vertical) / 2);
|
||||||
}
|
}
|
||||||
|
|
||||||
section.callout a {
|
section.callout a {
|
||||||
|
|
|
||||||
|
|
@ -6,7 +6,14 @@ fields:
|
||||||
calloutText:
|
calloutText:
|
||||||
label: Texte
|
label: Texte
|
||||||
type: writer
|
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:
|
calloutColor:
|
||||||
label: Couleur de fond
|
label: Couleur de fond
|
||||||
extends: fields/color
|
extends: fields/color
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,7 @@ default: "#fff"
|
||||||
options:
|
options:
|
||||||
"#a59478": Brun
|
"#a59478": Brun
|
||||||
"#eae7d8": Beige
|
"#eae7d8": Beige
|
||||||
|
"#f7f6ed": Beige clair
|
||||||
"#009eff": Bleu
|
"#009eff": Bleu
|
||||||
"#99EEFF": Bleu clair
|
"#99EEFF": Bleu clair
|
||||||
"#6f8337": Kaki
|
"#6f8337": Kaki
|
||||||
|
|
@ -12,8 +13,8 @@ options:
|
||||||
"#45e6ba": Menthe
|
"#45e6ba": Menthe
|
||||||
"#9e00ff": Violet
|
"#9e00ff": Violet
|
||||||
"#f20298": Rose
|
"#f20298": Rose
|
||||||
"#ffa199": Rose clair
|
|
||||||
"#ff6647": Saumon
|
"#ff6647": Saumon
|
||||||
|
"#ffa199": Rose clair
|
||||||
"#ffc73b": Or
|
"#ffc73b": Or
|
||||||
"#d6ff00": Jaune
|
"#d6ff00": Jaune
|
||||||
"#faff82": Jaune pâle
|
"#faff82": Jaune pâle
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,6 @@
|
||||||
<section class="callout" style="--color: <?= $site->calloutColor() ?>;">
|
<section class="callout" style="--color: <?= $site->calloutColor() ?>;">
|
||||||
<h4><?= $site->calloutText()->inline() ?></h4>
|
<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>
|
</section>
|
||||||
Loading…
Add table
Add a link
Reference in a new issue