Compare commits
3 commits
f0a2549327
...
2340b50f51
Author | SHA1 | Date | |
---|---|---|---|
2340b50f51 | |||
cb80c1367e | |||
313577579e |
4 changed files with 22 additions and 13 deletions
|
@ -1,5 +1,5 @@
|
||||||
name: Reitanlage Oranienburg
|
name: Reitanlage Oranienburg
|
||||||
version: 1.1.1
|
version: 1.2.0
|
||||||
description: Design der Reitanlage Oranienburg
|
description: Design der Reitanlage Oranienburg
|
||||||
icon: rebel
|
icon: rebel
|
||||||
author:
|
author:
|
||||||
|
@ -15,17 +15,22 @@ license: Apache-2.0
|
||||||
form:
|
form:
|
||||||
validation: loose
|
validation: loose
|
||||||
fields:
|
fields:
|
||||||
dropdown.enabled:
|
umami.enabled:
|
||||||
type: toggle
|
type: toggle
|
||||||
label: Dropdown in Menu
|
label: Enable umami analytics
|
||||||
highlight: 1
|
highlight: 1
|
||||||
default: 1
|
default: 0
|
||||||
options:
|
options:
|
||||||
1: PLUGIN_ADMIN.ENABLED
|
1: Enabled
|
||||||
0: PLUGIN_ADMIN.DISABLED
|
0: Disabled
|
||||||
validate:
|
validate:
|
||||||
type: bool
|
type: bool
|
||||||
|
umami.id:
|
||||||
|
type: text
|
||||||
|
label: ID for umami analytics
|
||||||
|
umami.url:
|
||||||
|
type: text
|
||||||
|
label: URL to load umami script from
|
||||||
custom_logo:
|
custom_logo:
|
||||||
type: file
|
type: file
|
||||||
label: Logo
|
label: Logo
|
||||||
|
@ -33,6 +38,6 @@ form:
|
||||||
destination: 'theme://images/logo'
|
destination: 'theme://images/logo'
|
||||||
multiple: false
|
multiple: false
|
||||||
markdown: true
|
markdown: true
|
||||||
description: Will be used instead of default logo `theme://images/grav-logo.svg`
|
description: Will be used instead of default logo `theme://images/logo.svg`
|
||||||
accept:
|
accept:
|
||||||
- image/*
|
- image/*
|
||||||
|
|
|
@ -24,7 +24,7 @@ <h1 class="d-inline">
|
||||||
{% set class_active = ' active' %}
|
{% set class_active = ' active' %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<div class="carousel-item{{ class_active }}">
|
<div class="carousel-item{{ class_active }}">
|
||||||
<img class="d-block" src="{{ media_item.resize(540, 400).quality(75).url }}">
|
<img alt="Bild der Slideshow zur Reitanlage." class="d-block" src="{{ media_item.resize(540, 400).quality(75).url }}">
|
||||||
</div>
|
</div>
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</div>
|
</div>
|
||||||
|
@ -49,7 +49,7 @@ <h3>
|
||||||
{% if news_latest.media.images %}
|
{% if news_latest.media.images %}
|
||||||
{% set text_class = 'col-12 col-md-9' %}
|
{% set text_class = 'col-12 col-md-9' %}
|
||||||
<div class="col-12 col-md-3">
|
<div class="col-12 col-md-3">
|
||||||
<img width="100%" src="{{ news_latest.media.images|first.quality(25).url }}">
|
<img alt="Titelbild der letzten News." width="100%" src="{{ news_latest.media.images|first.quality(25).url }}">
|
||||||
</div>
|
</div>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
<div class="{{ text_class }}">
|
<div class="{{ text_class }}">
|
||||||
|
|
|
@ -47,7 +47,7 @@
|
||||||
<a href="/" class="col-12">
|
<a href="/" class="col-12">
|
||||||
{% include 'partials/logo.html.twig' with {style: 'filter: invert(100%); margin-right: 0.5rem;'} %}
|
{% include 'partials/logo.html.twig' with {style: 'filter: invert(100%); margin-right: 0.5rem;'} %}
|
||||||
{% for media_item in header_page.media.images %}
|
{% for media_item in header_page.media.images %}
|
||||||
<img src="{{ media_item.quality(15).url }}" />
|
<img alt="Eines der Bilder im Seiten-Header." src="{{ media_item.quality(15).url }}" />
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
|
@ -94,4 +94,8 @@
|
||||||
{{ assets.js()|raw }}
|
{{ assets.js()|raw }}
|
||||||
{% endblock %}
|
{% endblock %}
|
||||||
|
|
||||||
|
{% if theme_var('umami.enabled') %}
|
||||||
|
<script async defer data-website-id="{{ theme_var('umami.id') }}" src="{{ theme_var('umami.url') }}"></script>
|
||||||
|
{% endif %}
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
|
|
|
@ -6,7 +6,7 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if logo %}
|
{% if logo %}
|
||||||
{% set logo_file = (logo|first).name %}
|
{% set logo_file = (logo|first).name %}
|
||||||
<img {{ style }} src="{{ url('theme://images/logo/' ~ logo_file) }}" />
|
<img {{ style }} alt="The logo of the webpage" src="{{ url('theme://images/logo/' ~ logo_file) }}" />
|
||||||
{% else %}
|
{% else %}
|
||||||
<img {{ style }} src="{{ url('theme://images/logo.svg') }}" />
|
<img {{ style }} alt="The logo of the webpage" src="{{ url('theme://images/logo.svg') }}" />
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
Loading…
Reference in a new issue