-
Notifications
You must be signed in to change notification settings - Fork 2
/
category.html.twig
44 lines (41 loc) · 1.4 KB
/
category.html.twig
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
{% extends 'base.html.twig' %}
{% set page = app.request.get('page')|default(1) %}
{% set categoryId = attr('category', 'id') %}
{% set breadcrumb = [
{label: 'Home'|trans, href:"/"},
{label: attr('category', 'title')}
] %}
{% block stylesheets %}
{{ parent() }}
{{ encore_entry_link_tags('category') }}
{% endblock %}
{% block title %}
{{ 'Category'|trans }}
{% endblock %}
{% block body %}
{% include '@components/Layout/Subheader/Category/SubheaderCategory.html.twig' with {title: attr('category', 'title'), description: attr('category', 'chapo'), nbProducts: 9, breadcrumb} %}
{{ component('Flexy:Layout:CategoryProducts', {categoryId, page}) }}
{% include '@components/Layout/Reinsurance/Reinsurance.html.twig' with { data: [
{
strongText: 'Free delivery' | trans,
text: 'For any order over €100' | trans,
linkLabel: 'See conditions' | trans,
link: '#',
icon: 'reinsurance-delivery'
},
{
strongText: 'Secure payment' | trans,
text: 'Credit card, Paypal' | trans,
linkLabel: 'See conditions' | trans,
link: '#',
icon: 'reinsurance-payment'
},
{
strongText: 'Satisfied or refunded' | trans,
text: 'Exchange or refund offered within 30 days' | trans,
linkLabel: 'See conditions' | trans,
link: '#',
icon: 'reinsurance-satisfied'
}
] } %}
{% endblock %}