dynamic header logo

main
alexanderroese 2024-06-22 10:54:57 +02:00
parent 03cb935124
commit 51bafda3f5
2 changed files with 3 additions and 11 deletions

View File

@ -38,12 +38,12 @@
"settings": [ "settings": [
{ {
"type": "image_picker", "type": "image_picker",
"id": "shx_logo2", "id": "shx_logo_figuren",
"label": "t:settings_schema.logo.settings.logo_image.label" "label": "t:settings_schema.logo.settings.logo_image.label"
}, },
{ {
"type": "range", "type": "range",
"id": "shx_logo2_width", "id": "shx_logo_figuren_width",
"min": 50, "min": 50,
"max": 300, "max": 300,
"step": 10, "step": 10,
@ -53,7 +53,7 @@
}, },
{ {
"type": "image_picker", "type": "image_picker",
"id": "shx_favicon2", "id": "shx_favicon_figuren",
"label": "t:settings_schema.logo.settings.favicon.label", "label": "t:settings_schema.logo.settings.favicon.label",
"info": "t:settings_schema.logo.settings.favicon.info" "info": "t:settings_schema.logo.settings.favicon.info"
} }

View File

@ -191,14 +191,6 @@
endif endif
%} %}
{% assign logo_image = settings.logo %}
{% if shx_current_page contains "texte" %}
{% assign logo_image = settings.logo %}
{% else %}
{% assign logo_image = settings.shx_logo2 %}
{% endif %}
{{ shx_header_logo | image_url: width: 600 | image_tag: {{ shx_header_logo | image_url: width: 600 | image_tag:
class: 'header__heading-logo motion-reduce', class: 'header__heading-logo motion-reduce',
widths: widths, widths: widths,