From 4c7409cbfac82023a66c83f6e69da65083b737b1 Mon Sep 17 00:00:00 2001 From: Jan Hickiewicz Date: Fri, 15 Jul 2022 10:34:35 +0200 Subject: [PATCH] Add templates to fix displaying sylius logo bug --- .../SyliusAdminBundle/Layout/_logo.html.twig | 5 +++++ .../SyliusAdminBundle/Security/_content.html.twig | 6 ++++++ .../SyliusShopBundle/Checkout/_header.html.twig | 14 ++++++++++++++ .../SyliusShopBundle/Checkout/layout.html.twig | 6 ++++++ .../SyliusShopBundle/Homepage/_banner.html.twig | 2 ++ .../Layout/Footer/Grid/_plus.html.twig | 9 +++++++++ .../SyliusShopBundle/Layout/Header/_logo.html.twig | 5 +++++ .../bundles/SyliusShopBundle/_error500.html.twig | 9 +++++++++ 8 files changed, 56 insertions(+) create mode 100644 tests/Application/templates/bundles/SyliusAdminBundle/Layout/_logo.html.twig create mode 100644 tests/Application/templates/bundles/SyliusAdminBundle/Security/_content.html.twig create mode 100644 tests/Application/templates/bundles/SyliusShopBundle/Checkout/_header.html.twig create mode 100644 tests/Application/templates/bundles/SyliusShopBundle/Checkout/layout.html.twig create mode 100644 tests/Application/templates/bundles/SyliusShopBundle/Homepage/_banner.html.twig create mode 100644 tests/Application/templates/bundles/SyliusShopBundle/Layout/Footer/Grid/_plus.html.twig create mode 100644 tests/Application/templates/bundles/SyliusShopBundle/Layout/Header/_logo.html.twig create mode 100644 tests/Application/templates/bundles/SyliusShopBundle/_error500.html.twig diff --git a/tests/Application/templates/bundles/SyliusAdminBundle/Layout/_logo.html.twig b/tests/Application/templates/bundles/SyliusAdminBundle/Layout/_logo.html.twig new file mode 100644 index 00000000..1d9fa7d0 --- /dev/null +++ b/tests/Application/templates/bundles/SyliusAdminBundle/Layout/_logo.html.twig @@ -0,0 +1,5 @@ + +
+ +
+
diff --git a/tests/Application/templates/bundles/SyliusAdminBundle/Security/_content.html.twig b/tests/Application/templates/bundles/SyliusAdminBundle/Security/_content.html.twig new file mode 100644 index 00000000..ce176210 --- /dev/null +++ b/tests/Application/templates/bundles/SyliusAdminBundle/Security/_content.html.twig @@ -0,0 +1,6 @@ +{% include '@SyliusUi/Security/_login.html.twig' + with { + 'action': path('sylius_admin_login_check'), + 'paths': {'logo': asset('build/admin/images/logo.png', 'admin')} +} +%} diff --git a/tests/Application/templates/bundles/SyliusShopBundle/Checkout/_header.html.twig b/tests/Application/templates/bundles/SyliusShopBundle/Checkout/_header.html.twig new file mode 100644 index 00000000..be52c8d9 --- /dev/null +++ b/tests/Application/templates/bundles/SyliusShopBundle/Checkout/_header.html.twig @@ -0,0 +1,14 @@ +
+ +
diff --git a/tests/Application/templates/bundles/SyliusShopBundle/Checkout/layout.html.twig b/tests/Application/templates/bundles/SyliusShopBundle/Checkout/layout.html.twig new file mode 100644 index 00000000..89d2b91e --- /dev/null +++ b/tests/Application/templates/bundles/SyliusShopBundle/Checkout/layout.html.twig @@ -0,0 +1,6 @@ +{% extends '@SyliusShop/layout.html.twig' %} +{% block top %} +{% endblock %} +{% block header %} + {% include '@SyliusShop/Checkout/_header.html.twig' %} +{% endblock %} diff --git a/tests/Application/templates/bundles/SyliusShopBundle/Homepage/_banner.html.twig b/tests/Application/templates/bundles/SyliusShopBundle/Homepage/_banner.html.twig new file mode 100644 index 00000000..bb594f7a --- /dev/null +++ b/tests/Application/templates/bundles/SyliusShopBundle/Homepage/_banner.html.twig @@ -0,0 +1,2 @@ +Sylius + diff --git a/tests/Application/templates/bundles/SyliusShopBundle/Layout/Footer/Grid/_plus.html.twig b/tests/Application/templates/bundles/SyliusShopBundle/Layout/Footer/Grid/_plus.html.twig new file mode 100644 index 00000000..0bf5a064 --- /dev/null +++ b/tests/Application/templates/bundles/SyliusShopBundle/Layout/Footer/Grid/_plus.html.twig @@ -0,0 +1,9 @@ +
+ +

+ Need even more features? +
Check Sylius Plus out!
+

+ Sylius Plus +
+
diff --git a/tests/Application/templates/bundles/SyliusShopBundle/Layout/Header/_logo.html.twig b/tests/Application/templates/bundles/SyliusShopBundle/Layout/Header/_logo.html.twig new file mode 100644 index 00000000..84b8df56 --- /dev/null +++ b/tests/Application/templates/bundles/SyliusShopBundle/Layout/Header/_logo.html.twig @@ -0,0 +1,5 @@ +
+ + Sylius logo + +
diff --git a/tests/Application/templates/bundles/SyliusShopBundle/_error500.html.twig b/tests/Application/templates/bundles/SyliusShopBundle/_error500.html.twig new file mode 100644 index 00000000..5ea0b44e --- /dev/null +++ b/tests/Application/templates/bundles/SyliusShopBundle/_error500.html.twig @@ -0,0 +1,9 @@ +{% extends '@SyliusShop/layout.html.twig' %} + +{% block content %} +

+ Sylius logo +

+ {{ 'sylius.ui.server_has_encountered_some_errors'|trans }} +

+{% endblock %}