From dc863d4e9e291fa4c5f764155398f0eff0961821 Mon Sep 17 00:00:00 2001 From: Cavasin F Date: Fri, 30 Sep 2022 16:00:11 +0200 Subject: [PATCH 1/6] Add wizard "template" --- templates/wizard.html.twig | 47 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 templates/wizard.html.twig diff --git a/templates/wizard.html.twig b/templates/wizard.html.twig new file mode 100644 index 0000000..a1607cd --- /dev/null +++ b/templates/wizard.html.twig @@ -0,0 +1,47 @@ +{% extends '@Tabler/fullpage.html.twig' %} + +{% block page_content %} + +
+ {% block wizzard_before %}{% endblock %} + + {% block wizzard_logo %} + + {% endblock %} + + {% block wizzard_header_before %}{% endblock %} + {% block wizzard_header %}{% endblock %} + {% block wizzard_header_after %}{% endblock %} + +
+ {% block wizzard_content_before %}{% endblock %} + {% block wizzard_content %}{% endblock %} + {% block wizzard_content_after %}{% endblock %} +
+ + {% block wizzard_footer_before %}{% endblock %} + {% block wizzard_footer %}{% endblock %} + {% block wizzard_footer_after %}{% endblock %} + + {% block wizzard_after %}{% endblock %} +
+ +{% endblock %} + From 0297221a8631a2cc830a774cd1eb7a6fe16bf8d7 Mon Sep 17 00:00:00 2001 From: Cavasin F Date: Mon, 3 Oct 2022 08:48:11 +0200 Subject: [PATCH 2/6] WiZard with only ONE `z` --- templates/wizard.html.twig | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/templates/wizard.html.twig b/templates/wizard.html.twig index a1607cd..815e4a8 100644 --- a/templates/wizard.html.twig +++ b/templates/wizard.html.twig @@ -6,9 +6,9 @@ class="container {% block container_size %}container-narrow{% endblock %} {% block container_class %}py-4{% endblock %}" {% block container_attr %}{% endblock %} > - {% block wizzard_before %}{% endblock %} + {% block wizard_before %}{% endblock %} - {% block wizzard_logo %} + {% block wizard_logo %} {% endblock %} - {% block wizzard_header_before %}{% endblock %} - {% block wizzard_header %}{% endblock %} - {% block wizzard_header_after %}{% endblock %} + {% block wizard_header_before %}{% endblock %} + {% block wizard_header %}{% endblock %} + {% block wizard_header_after %}{% endblock %}
- {% block wizzard_content_before %}{% endblock %} - {% block wizzard_content %}{% endblock %} - {% block wizzard_content_after %}{% endblock %} + {% block wizard_content_before %}{% endblock %} + {% block wizard_content %}{% endblock %} + {% block wizard_content_after %}{% endblock %}
- {% block wizzard_footer_before %}{% endblock %} - {% block wizzard_footer %}{% endblock %} - {% block wizzard_footer_after %}{% endblock %} + {% block wizard_footer_before %}{% endblock %} + {% block wizard_footer %}{% endblock %} + {% block wizard_footer_after %}{% endblock %} - {% block wizzard_after %}{% endblock %} + {% block wizard_after %}{% endblock %} {% endblock %} From d4b72c8df1a6c0f7f345f63a53b21e636fe0e2eb Mon Sep 17 00:00:00 2001 From: Cavasin F Date: Mon, 3 Oct 2022 12:25:48 +0200 Subject: [PATCH 3/6] Join logo code into one embed --- templates/embeds/logo.html.twig | 14 ++++++++++++++ templates/layout-horizontal.html.twig | 12 +++--------- templates/layout-vertical.html.twig | 10 +--------- templates/wizard.html.twig | 11 +---------- 4 files changed, 19 insertions(+), 28 deletions(-) create mode 100644 templates/embeds/logo.html.twig diff --git a/templates/embeds/logo.html.twig b/templates/embeds/logo.html.twig new file mode 100644 index 0000000..2264d1c --- /dev/null +++ b/templates/embeds/logo.html.twig @@ -0,0 +1,14 @@ +

+ + {% if tabler_bundle.getLogoUrl() is not empty %} + + {% else %} + + {% endif %} + +

diff --git a/templates/layout-horizontal.html.twig b/templates/layout-horizontal.html.twig index 1adb3f0..3af872b 100644 --- a/templates/layout-horizontal.html.twig +++ b/templates/layout-horizontal.html.twig @@ -35,15 +35,9 @@ Enjoy your theme! {% block app_logo %} -

- - {% if tabler_bundle.getLogoUrl() is not empty %} - Logo - {% else %} - - {% endif %} - -

+ {% embed '@Tabler/embeds/logo.html.twig' %} + {% block navbar_brand_classes %}navbar-brand d-none-navbar-horizontal pe-0 pe-md-3 {% block navbar_brand_class %}navbar-brand-autodark{% endblock %}{% endblock %} + {% endembed %} {% endblock %}