dynamic header logo

main
alexanderroese 2024-06-22 10:56:42 +02:00
parent b6b810a3b1
commit 4cad0b891b
2 changed files with 27 additions and 1 deletions

View File

@ -59,6 +59,32 @@
}
]
},
{
"name": "shx-Logo-Texte",
"settings": [
{
"type": "image_picker",
"id": "shx_logo_texte",
"label": "t:settings_schema.logo.settings.logo_image.label"
},
{
"type": "range",
"id": "shx_logo_texte_width",
"min": 50,
"max": 300,
"step": 10,
"default": 100,
"unit": "px",
"label": "t:settings_schema.logo.settings.logo_width.label"
},
{
"type": "image_picker",
"id": "shx_favicon_texte",
"label": "t:settings_schema.logo.settings.favicon.label",
"info": "t:settings_schema.logo.settings.favicon.info"
}
]
},
{
"name": "t:settings_schema.colors.name",
"settings": [

View File

@ -187,7 +187,7 @@
if shx_current_page contains "texte"
assign shx_header_logo = settings.shx_logo2 | image_url
elsif shx_current_page contains "figuren"
assign shx_header_logo = settings.shx_logo2 | image_url
assign shx_header_logo = settings.shx_logo_figuren | image_url
endif
%}