Skip to content

Commit

Permalink
add vendor products template events
Browse files Browse the repository at this point in the history
  • Loading branch information
bigboss86 committed Dec 29, 2021
1 parent e4ce5a1 commit e8ad0f4
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/Resources/views/Shop/Vendor/Product/index.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,15 @@
</div>
</div>
{% endblock %}

{% block stylesheets %}
{{ parent() }}

{{ sylius_template_event('odiseo_sylius_vendor_plugin.shop.vendor.product.index.stylesheets') }}
{% endblock %}

{% block javascripts %}
{{ parent() }}

{{ sylius_template_event('odiseo_sylius_vendor_plugin.shop.vendor.product.index.javascripts') }}
{% endblock %}
2 changes: 2 additions & 0 deletions src/Resources/views/Shop/Vendor/_verticalMenu.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
<img class="ui medium circular image" src="{{ vendor.logoName|imagine_filter('odiseo_sylius_vendor_plugin_logo') }}" alt="{{ vendor.name }}">
<div class="ui hidden divider"></div>

{{ sylius_template_event('odiseo_sylius_vendor_plugin.shop.vendor.product.index.after_logo', {'vendor': vendor}) }}

<h1 class="ui header">
<span {{ sylius_test_html_attribute('vendor-name') }}>{{ vendor.name }}</span>
<div class="sub header">
Expand Down

0 comments on commit e8ad0f4

Please sign in to comment.