improve callout
This commit is contained in:
parent
83c51cc39e
commit
f9016d703e
4 changed files with 12 additions and 8 deletions
|
|
@ -7,6 +7,10 @@ section.callout {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
section.callout a {
|
||||||
|
display: inline-flex;
|
||||||
|
}
|
||||||
|
|
||||||
section.callout .ticket-link {
|
section.callout .ticket-link {
|
||||||
margin-top: calc(var(--padding-vertical) / 2);
|
margin-top: calc(var(--padding-vertical) / 2);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
4
assets/dist/style.css
vendored
4
assets/dist/style.css
vendored
|
|
@ -1227,6 +1227,10 @@ section.callout {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
section.callout a {
|
||||||
|
display: inline-flex;
|
||||||
|
}
|
||||||
|
|
||||||
section.callout .ticket-link {
|
section.callout .ticket-link {
|
||||||
margin-top: calc(var(--padding-vertical) / 2);
|
margin-top: calc(var(--padding-vertical) / 2);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -16,10 +16,6 @@ fields:
|
||||||
extends: fields/color
|
extends: fields/color
|
||||||
width: 1/2
|
width: 1/2
|
||||||
ticket:
|
ticket:
|
||||||
label: Bouton de réservation
|
label: Lien de réservation
|
||||||
type: toggle
|
type: url
|
||||||
width: 1/3
|
width: 1/3
|
||||||
help: Affiche le bouton ticket lié à la billetterie.
|
|
||||||
text:
|
|
||||||
false: affiché
|
|
||||||
true: masqué
|
|
||||||
|
|
|
||||||
|
|
@ -1,8 +1,8 @@
|
||||||
<?php foreach($site->callout()->toStructure() as $callout): ?>
|
<?php foreach($site->callout()->toStructure() as $callout): ?>
|
||||||
<section class="callout" style="--color: <?= $callout->color() ?>;">
|
<section class="callout" style="--color: <?= $callout->color() ?>;">
|
||||||
<?= $callout->text() ?>
|
<?= $callout->text() ?>
|
||||||
<?php if ($callout->ticket() == 'true'): ?>
|
<?php if ($callout->ticket()->isNotEmpty()): ?>
|
||||||
<a class="ticket-link" href="<?= option('ticketingUrl') ?>" target="_blank" title="Aller à la billetterie"><?php snippet('ticket') ?> Billetterie</a>
|
<a class="ticket-link" href="<?= $callout->ticket() ?>" target="_blank" title="Aller à la billetterie"><?php snippet('ticket') ?> Billetterie</a>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
</section>
|
</section>
|
||||||
<?php endforeach ?>
|
<?php endforeach ?>
|
||||||
Loading…
Add table
Add a link
Reference in a new issue