simple-s3-gallery/templates/call_to_action.html

40 lines
1.0 KiB
HTML
Raw Normal View History

2023-12-29 05:27:45 +00:00
<!--{#
2023-12-29 03:14:10 +00:00
#~ Var | Required | Default ~#
active | no | false
header | yes | none
lead_text | yes | none
action_buttons (list, optional)
n. (list index)
- href | no | #
- theme | no | primary
- icon | no | none
- text | yes | none
... (etc)
2023-12-29 05:27:45 +00:00
#}-->
2023-12-29 16:18:03 +00:00
{% if call_to_action.active | default(false) %}
2023-12-29 03:14:10 +00:00
<section class="py-5 text-center container">
<div class="row py-lg-5">
<div class="col-lg-6 col-md-8 mx-auto">
2023-12-29 16:18:03 +00:00
<h1 class="fw-light">{{ call_to_action.header }}</h1>
<p class="lead text-body-secondary">{{ call_to_action.lead_text }}</p>
2023-12-29 03:14:10 +00:00
2023-12-29 16:18:03 +00:00
{% if call_to_action.buttons %}
2023-12-29 03:14:10 +00:00
<p>
2023-12-29 16:18:03 +00:00
{% for button in call_to_action.buttons %}
2023-12-29 03:14:10 +00:00
<a
href="{{ button.href | default('#') }}"
2023-12-29 18:16:37 +00:00
class="btn btn-{{ button.theme | default('primary') }} my-2"
2023-12-29 03:14:10 +00:00
>
{% if button.icon %}
2023-12-29 04:07:38 +00:00
<i class="bi-{{ button.icon }}"></i>
2023-12-29 03:14:10 +00:00
{% endif %}
2023-12-29 04:07:38 +00:00
{{ button.text }}
2023-12-29 03:14:10 +00:00
</a>
{% endfor %}
</p>
{% endif %}
</div>
</div>
</section>
{% endif %}