From 643aca26d018bed1460aafc1b67c59f4d9dfafea Mon Sep 17 00:00:00 2001 From: MandelBot Date: Tue, 24 Mar 2026 21:47:03 +0000 Subject: [PATCH] Localize shared marketing templates by locale --- .../templates/carbasa/headers/mega.html | 40 +++++++++++++++++++ .../engine/pages/base_home_page.html | 17 +++++++- .../engine/pages/base_standard_page.html | 17 +++++++- .../templates/engine/pages/engine_page.html | 17 +++++++- .../blocks/features/variants/grid.html | 38 ++++++++++++++++++ .../integrations/variants/logo-grid.html | 30 ++++++++++++++ .../templates/webshop/mega_dropdown.html | 24 +++++++++++ 7 files changed, 177 insertions(+), 6 deletions(-) create mode 100644 mandelstudio/templates/carbasa/headers/mega.html create mode 100644 mandelstudio/templates/highbiza_saas/blocks/features/variants/grid.html create mode 100644 mandelstudio/templates/highbiza_saas/blocks/integrations/variants/logo-grid.html create mode 100644 mandelstudio/templates/webshop/mega_dropdown.html diff --git a/mandelstudio/templates/carbasa/headers/mega.html b/mandelstudio/templates/carbasa/headers/mega.html new file mode 100644 index 0000000..1e9ad5a --- /dev/null +++ b/mandelstudio/templates/carbasa/headers/mega.html @@ -0,0 +1,40 @@ +{% extends "carbasa/headers/header.html" %} +{% load i18n oxyan category_tags ocyan_main ocyanjson wagtailsettings_tags %} + +{% block nav %} +{% ocyanjson "theme" "menu_depth" 1 as menu_depth %} + +{% endblock %} diff --git a/mandelstudio/templates/engine/pages/base_home_page.html b/mandelstudio/templates/engine/pages/base_home_page.html index e016157..745eaae 100644 --- a/mandelstudio/templates/engine/pages/base_home_page.html +++ b/mandelstudio/templates/engine/pages/base_home_page.html @@ -1,5 +1,5 @@ {% extends "layout.html" %} -{% load wagtailcore_tags oxyan static string_filters %} +{% load wagtailcore_tags oxyan static string_filters i18n %} {% block extrahead %} {{ block.super }} @@ -15,11 +15,24 @@ {% include "engine/partials/tech_theme_overrides.html" %} {% include "engine/partials/travel_theme_overrides.html" %} {% include "engine/partials/saas_theme_overrides.html" %} + {% endblock %} {% block layout %} - Ga naar inhoud + {% if request.LANGUAGE_CODE == 'ru' %}Перейти к содержанию{% elif request.LANGUAGE_CODE == 'de' %}Zum Inhalt springen{% elif request.LANGUAGE_CODE == 'fr' %}Aller au contenu{% elif request.LANGUAGE_CODE == 'es' %}Ir al contenido{% elif request.LANGUAGE_CODE == 'it' %}Vai al contenuto{% elif request.LANGUAGE_CODE == 'pt' %}Ir para o conteúdo{% elif request.LANGUAGE_CODE == 'nl' %}Ga naar inhoud{% else %}Skip to content{% endif %} {% include_header header_template|default:"engine/partials/header.html" %}
diff --git a/mandelstudio/templates/engine/pages/base_standard_page.html b/mandelstudio/templates/engine/pages/base_standard_page.html index 4cf66eb..f003509 100644 --- a/mandelstudio/templates/engine/pages/base_standard_page.html +++ b/mandelstudio/templates/engine/pages/base_standard_page.html @@ -1,5 +1,5 @@ {% extends "layout.html" %} -{% load wagtailcore_tags oxyan static string_filters %} +{% load wagtailcore_tags oxyan static string_filters i18n %} {% block extrahead %} {{ block.super }} @@ -15,11 +15,24 @@ {% include "engine/partials/tech_theme_overrides.html" %} {% include "engine/partials/travel_theme_overrides.html" %} {% include "engine/partials/saas_theme_overrides.html" %} + {% endblock %} {% block layout %} - Ga naar inhoud + {% if request.LANGUAGE_CODE == 'ru' %}Перейти к содержанию{% elif request.LANGUAGE_CODE == 'de' %}Zum Inhalt springen{% elif request.LANGUAGE_CODE == 'fr' %}Aller au contenu{% elif request.LANGUAGE_CODE == 'es' %}Ir al contenido{% elif request.LANGUAGE_CODE == 'it' %}Vai al contenuto{% elif request.LANGUAGE_CODE == 'pt' %}Ir para o conteúdo{% elif request.LANGUAGE_CODE == 'nl' %}Ga naar inhoud{% else %}Skip to content{% endif %} {% include_header header_template|default:"engine/partials/header.html" %}
diff --git a/mandelstudio/templates/engine/pages/engine_page.html b/mandelstudio/templates/engine/pages/engine_page.html index e016157..745eaae 100644 --- a/mandelstudio/templates/engine/pages/engine_page.html +++ b/mandelstudio/templates/engine/pages/engine_page.html @@ -1,5 +1,5 @@ {% extends "layout.html" %} -{% load wagtailcore_tags oxyan static string_filters %} +{% load wagtailcore_tags oxyan static string_filters i18n %} {% block extrahead %} {{ block.super }} @@ -15,11 +15,24 @@ {% include "engine/partials/tech_theme_overrides.html" %} {% include "engine/partials/travel_theme_overrides.html" %} {% include "engine/partials/saas_theme_overrides.html" %} + {% endblock %} {% block layout %} - Ga naar inhoud + {% if request.LANGUAGE_CODE == 'ru' %}Перейти к содержанию{% elif request.LANGUAGE_CODE == 'de' %}Zum Inhalt springen{% elif request.LANGUAGE_CODE == 'fr' %}Aller au contenu{% elif request.LANGUAGE_CODE == 'es' %}Ir al contenido{% elif request.LANGUAGE_CODE == 'it' %}Vai al contenuto{% elif request.LANGUAGE_CODE == 'pt' %}Ir para o conteúdo{% elif request.LANGUAGE_CODE == 'nl' %}Ga naar inhoud{% else %}Skip to content{% endif %} {% include_header header_template|default:"engine/partials/header.html" %}
diff --git a/mandelstudio/templates/highbiza_saas/blocks/features/variants/grid.html b/mandelstudio/templates/highbiza_saas/blocks/features/variants/grid.html new file mode 100644 index 0000000..e3f5c2c --- /dev/null +++ b/mandelstudio/templates/highbiza_saas/blocks/features/variants/grid.html @@ -0,0 +1,38 @@ +{% load wagtailimages_tags %} +
+
+
+

{{ self.section_title }}

+ {% if self.section_subtitle %} +
{{ self.section_subtitle }}
+ {% endif %} +
+
+ {% for feature in self.features %} +
+ {% if feature.highlight == 'new' %} + {% if request.LANGUAGE_CODE == 'ru' %}Ново{% elif request.LANGUAGE_CODE == 'de' %}Neu{% elif request.LANGUAGE_CODE == 'fr' %}Nouveau{% elif request.LANGUAGE_CODE == 'es' %}Nuevo{% elif request.LANGUAGE_CODE == 'it' %}Nuovo{% elif request.LANGUAGE_CODE == 'pt' %}Novo{% else %}New{% endif %} + {% endif %} +
+ {% if feature.icon_image %} + {% image feature.icon_image width-64 class="saas-features__icon-img" %} + {% elif feature.icon %} + + {% else %} +
+ {% endif %} +
+

{{ feature.title }}

+ {% if feature.description %}
{{ feature.description }}
{% endif %} + {% if feature.link_text and feature.link_url %} + + {{ feature.link_text }} + + + {% endif %} +
+ {% endfor %} +
+
+
diff --git a/mandelstudio/templates/highbiza_saas/blocks/integrations/variants/logo-grid.html b/mandelstudio/templates/highbiza_saas/blocks/integrations/variants/logo-grid.html new file mode 100644 index 0000000..f5a08cf --- /dev/null +++ b/mandelstudio/templates/highbiza_saas/blocks/integrations/variants/logo-grid.html @@ -0,0 +1,30 @@ +{% load wagtailimages_tags %} +
+
+
+

{{ self.section_title }}

+ {% if self.section_subtitle %}
{{ self.section_subtitle }}
{% endif %} + {% if self.integration_count %} + {{ self.integration_count }} {% if request.LANGUAGE_CODE == 'ru' %}интеграции{% elif request.LANGUAGE_CODE == 'de' %}Integrationen{% elif request.LANGUAGE_CODE == 'fr' %}intégrations{% elif request.LANGUAGE_CODE == 'es' %}integraciones{% elif request.LANGUAGE_CODE == 'it' %}integrazioni{% elif request.LANGUAGE_CODE == 'pt' %}integrações{% elif request.LANGUAGE_CODE == 'nl' %}integraties{% else %}integrations{% endif %} + {% endif %} +
+
+ {% for integration in self.integrations %} + + {% endfor %} +
+ {% if self.cta_text and self.cta_url %} + + {% endif %} +
+
diff --git a/mandelstudio/templates/webshop/mega_dropdown.html b/mandelstudio/templates/webshop/mega_dropdown.html new file mode 100644 index 0000000..861099f --- /dev/null +++ b/mandelstudio/templates/webshop/mega_dropdown.html @@ -0,0 +1,24 @@ +{% load i18n ocyan_thumbnail %} +{% if menu_items %} +{% for menu_item in menu_items %} +{% with category_icon=menu_item.category.icons.first %} +{% if menu_item.has_children %} + +{% endfor %} +{% endwith %} +{% endfor %} +{% endif %}