diff --git a/config/packages/sylius_twig_hooks.yaml b/config/packages/sylius_twig_hooks.yaml new file mode 100644 index 00000000..bd7f3ad2 --- /dev/null +++ b/config/packages/sylius_twig_hooks.yaml @@ -0,0 +1,26 @@ +sylius_twig_hooks: + hooks: + 'sylius_shop.base.offcanvas': + info_box: + template: "blocks/info_box.html.twig" + priority: 100 + + 'sylius_admin.security.login': + info_box: + template: "blocks/info_box.html.twig" + priority: 100 + + 'sylius_admin.security.login.content': + info_box: + template: "blocks/admin_demo_credentials.html.twig" + priority: 150 + + 'sylius_admin.common.index': + info_box: + template: "blocks/info_box.html.twig" + priority: 100 + + 'sylius_shop.base#javascripts': + analytics: + template: "blocks/analytics.html.twig" + priority: 100 diff --git a/config/packages/sylius_ui.yaml b/config/packages/sylius_ui.yaml deleted file mode 100644 index 6cbf7551..00000000 --- a/config/packages/sylius_ui.yaml +++ /dev/null @@ -1,22 +0,0 @@ -sylius_ui: -# events: -# sylius.shop.layout.header: -# blocks: -# after_menu: -# template: "Blocks/_infoBox.html.twig" -# priority: 12 -# sylius.shop.layout.head: -# blocks: -# analistics: -# template: "Blocks/_analytics.html.twig" -# priority: 10 -# sylius.admin.login.content: -# blocks: -# info_box: -# template: "Blocks/_infoBox.html.twig" -# priority: 0 -# sylius.admin.layout.topbar_right: -# blocks: -# info_box: -# template: "Blocks/_infoBox.html.twig" -# priority: 0 diff --git a/templates/Admin/Security/Login/testCredentials.html.twig b/templates/Admin/Security/Login/testCredentials.html.twig deleted file mode 100644 index ad7201ab..00000000 --- a/templates/Admin/Security/Login/testCredentials.html.twig +++ /dev/null @@ -1,10 +0,0 @@ -
- -
-
Test credentials
-

- Username: sylius@example.com
- Password: sylius -

-
-
diff --git a/templates/Blocks/_aboutUs.html.twig b/templates/Blocks/_aboutUs.html.twig deleted file mode 100644 index ca105bfe..00000000 --- a/templates/Blocks/_aboutUs.html.twig +++ /dev/null @@ -1,12 +0,0 @@ -
-
-
-

- {{ 'sylius.homepage.about_us'|trans }} -

-

- {{ bitbag_cms_render_block('about_us') }} -

-
-
-
diff --git a/templates/Blocks/_banner.html.twig b/templates/Blocks/_banner.html.twig deleted file mode 100644 index be3d6e21..00000000 --- a/templates/Blocks/_banner.html.twig +++ /dev/null @@ -1,2 +0,0 @@ -{{ bitbag_cms_render_media('homepage_banner') }} - diff --git a/templates/blocks/admin_demo_credentials.html.twig b/templates/blocks/admin_demo_credentials.html.twig new file mode 100644 index 00000000..5ccecd29 --- /dev/null +++ b/templates/blocks/admin_demo_credentials.html.twig @@ -0,0 +1,13 @@ +{#
#} +{# #} +{#
#} +{#
Test credentials
#} +{#

#} +{# Username: sylius@example.com
#} +{# Password: sylius#} +{#

#} +{#
#} +{#
#} + diff --git a/templates/Blocks/_analytics.html.twig b/templates/blocks/analytics.html.twig similarity index 100% rename from templates/Blocks/_analytics.html.twig rename to templates/blocks/analytics.html.twig diff --git a/templates/Blocks/_infoBox.html.twig b/templates/blocks/info_box.html.twig similarity index 100% rename from templates/Blocks/_infoBox.html.twig rename to templates/blocks/info_box.html.twig diff --git a/templates/bundles/SyliusAdminBundle/Order/Label/State/fully_refunded.html.twig b/templates/bundles/SyliusAdminBundle/Order/Label/State/fully_refunded.html.twig deleted file mode 100644 index 645068ff..00000000 --- a/templates/bundles/SyliusAdminBundle/Order/Label/State/fully_refunded.html.twig +++ /dev/null @@ -1,4 +0,0 @@ - - - {{ value|trans }} - diff --git a/templates/bundles/SyliusAdminBundle/Order/Show/_payment.html.twig b/templates/bundles/SyliusAdminBundle/Order/Show/_payment.html.twig deleted file mode 100644 index dd157bc2..00000000 --- a/templates/bundles/SyliusAdminBundle/Order/Show/_payment.html.twig +++ /dev/null @@ -1,44 +0,0 @@ -{% import "@SyliusAdmin/Common/Macro/money.html.twig" as money %} -{% import '@SyliusUi/Macro/labels.html.twig' as label %} - -
-
- {{ label.default(('sylius.ui.'~payment.state)|trans) }} -
- -
-
- {{ payment.method }} -
-
- {{ money.format(payment.amount, payment.order.currencyCode) }} -
-
- {% if sm_can(payment, 'complete', 'sylius_payment') %} -
-
- - - -
-
- {% if payment.details['payment-link'] is defined %} -
- - - -
- {% endif %} - {% endif %} - {% if - payment.method.gatewayConfig.factoryName == 'sylius.pay_pal' and - payment.state == 'refunded' - %} -
- -
-

{{ 'sylius.pay_pal.tender_type'|trans }}

-
-
- {% endif %} -
diff --git a/templates/bundles/SyliusAdminBundle/PaymentMethod/Gateways/paymentGateways.html.twig b/templates/bundles/SyliusAdminBundle/PaymentMethod/Gateways/paymentGateways.html.twig deleted file mode 100644 index ea0e1d4b..00000000 --- a/templates/bundles/SyliusAdminBundle/PaymentMethod/Gateways/paymentGateways.html.twig +++ /dev/null @@ -1,5 +0,0 @@ -{% for name, gateway in gatewayFactories %} - - {{ gateway|trans }} - -{% endfor %} diff --git a/templates/bundles/SyliusShopBundle/Checkout/SelectPayment/_choice.html.twig b/templates/bundles/SyliusShopBundle/Checkout/SelectPayment/_choice.html.twig deleted file mode 100644 index ece6954b..00000000 --- a/templates/bundles/SyliusShopBundle/Checkout/SelectPayment/_choice.html.twig +++ /dev/null @@ -1,18 +0,0 @@ -
-
-
- {{ form_widget(form, sylius_test_form_attribute('payment-method-select')) }} -
-
-
- {{ form_label(form, null, {'label_attr': {'data-test-payment-method-label': ''}}) }} - {% if method.description is not null %} -
-

{{ method.description }}

-
- {% endif %} - {% if method.gatewayConfig.factoryName == 'sylius.pay_pal' %} - {{ render(controller('Sylius\\PayPalPlugin\\Controller\\PayPalButtonsController:renderPaymentPageButtonsAction', {'orderId': order.id})) }} - {% endif %} -
-
diff --git a/templates/bundles/SyliusShopBundle/Common/Order/_payments.html.twig b/templates/bundles/SyliusShopBundle/Common/Order/_payments.html.twig deleted file mode 100644 index 1591a7df..00000000 --- a/templates/bundles/SyliusShopBundle/Common/Order/_payments.html.twig +++ /dev/null @@ -1,29 +0,0 @@ -{% import "@SyliusShop/Common/Macro/money.html.twig" as money %} - -{% set state = order.paymentState %} - -{% if state != 'cart' %} - {% include "@SyliusShop/Common/Order/Label/PaymentState/orderPaymentState.html.twig" %} -{% endif %} - -{% for payment in order.payments %} - {% set state = payment.state %} - -
- -
-
- {{ payment.method }} -
-

{{ money.format(payment.amount, payment.currencyCode) }}

- {% if payment.amount != payment.order.total and state == 'processing' %} - {{ 'sylius.pay_pal.different_amount'|trans }} - {% endif %} - {% if state != 'cart' %} -

- {% include "@SyliusShop/Common/Order/Label/PaymentState/singlePaymentState.html.twig" with { 'state': state } %} -

- {% endif %} -
-
-{% endfor %} diff --git a/templates/bundles/SyliusShopBundle/Order/thankYou.html.twig b/templates/bundles/SyliusShopBundle/Order/thankYou.html.twig deleted file mode 100644 index 3c29c3ab..00000000 --- a/templates/bundles/SyliusShopBundle/Order/thankYou.html.twig +++ /dev/null @@ -1,40 +0,0 @@ -{% extends '@SyliusShop/layout.html.twig' %} - -{% block content %} - -
-
-

- {% set lastPayment = order.payments.last() %} - -
- {{ 'sylius.ui.thank_you'|trans }} -
{{ 'sylius.ui.placed_an_order'|trans }}
-
-

- - {{ sylius_template_event('sylius.shop.order.thank_you.after_message', {'order': order}) }} - - {% if lastPayment != false %} - {% if lastPayment.method.instructions is not null %} -
- {{ lastPayment.method.instructions }} -
- {% endif %} - - {% endif %} - - {% if order.customer.user is not null %} - {{ 'sylius.ui.view_order'|trans }} - {% else %} - {% if lastPayment.state != 'completed' %} - {{ 'sylius.ui.change_payment_method'|trans }} - {% endif %} - - - {{ 'sylius.ui.create_an_account'|trans }} - - {% endif %} -
-
-{% endblock %} diff --git a/templates/bundles/SyliusUiBundle/Layout/sidebar.html.twig b/templates/bundles/SyliusUiBundle/Layout/sidebar.html.twig deleted file mode 100644 index e884c588..00000000 --- a/templates/bundles/SyliusUiBundle/Layout/sidebar.html.twig +++ /dev/null @@ -1,72 +0,0 @@ - - - - - - - - {% block title %}Sylius{% endblock %} - - - - {% block metatags %} - {% endblock %} - - {% block stylesheets %} - - {% endblock %} - {% block analytics %} - - - - {% endblock %} - - - - - -
-
-
- {% block flash_messages %} - {% include '@SyliusUi/_flashes.html.twig' %} - {% endblock %} - - {% block pre_content %} - {% endblock %} - - {% block content %} - {% endblock %} - - {% block post_content %} - {% endblock %} -
- - -
-
- -{% include '@SyliusUi/Modal/_confirmation.html.twig' %} - -{% block javascripts %} -{% endblock %} - -