Skip to content

Commit

Permalink
Add twig hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
mpysiak committed Nov 5, 2024
1 parent 9029c95 commit 68c6197
Show file tree
Hide file tree
Showing 15 changed files with 39 additions and 258 deletions.
26 changes: 26 additions & 0 deletions config/packages/sylius_twig_hooks.yaml
Original file line number Diff line number Diff line change
@@ -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
22 changes: 0 additions & 22 deletions config/packages/sylius_ui.yaml

This file was deleted.

10 changes: 0 additions & 10 deletions templates/Admin/Security/Login/testCredentials.html.twig

This file was deleted.

12 changes: 0 additions & 12 deletions templates/Blocks/_aboutUs.html.twig

This file was deleted.

2 changes: 0 additions & 2 deletions templates/Blocks/_banner.html.twig

This file was deleted.

13 changes: 13 additions & 0 deletions templates/blocks/admin_demo_credentials.html.twig
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{#<div class="ui icon info message">#}
{# <i class="info icon"></i>#}
{# <div class="content">#}
{# <div class="header">Test credentials</div>#}
{# <p>#}
{# Username: sylius@example.com<br>#}
{# Password: sylius#}
{# </p>#}
{# </div>#}
{#</div>#}
<div class="alert alert-info" role="alert">
A simple info alert—check it out!
</div>
File renamed without changes.
File renamed without changes.

This file was deleted.

44 changes: 0 additions & 44 deletions templates/bundles/SyliusAdminBundle/Order/Show/_payment.html.twig

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

40 changes: 0 additions & 40 deletions templates/bundles/SyliusShopBundle/Order/thankYou.html.twig

This file was deleted.

72 changes: 0 additions & 72 deletions templates/bundles/SyliusUiBundle/Layout/sidebar.html.twig

This file was deleted.

0 comments on commit 68c6197

Please sign in to comment.