-
Notifications
You must be signed in to change notification settings - Fork 2
/
search.html.twig
38 lines (34 loc) · 1.39 KB
/
search.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
{% extends 'base.html.twig' %}
{% set page = app.request.get('page')|default(1) %}
{% set searchString = app.request.get('query')|default("") %}
{% block title %}{{ 'Search'|trans }}
{% endblock %}
{% block body %}
{% set products = resources('/api/front/products', {itemsPerPage:9, page: page}) %}
{% set totalProducts = resources('/api/front/products', {itemsPerPage:9, page: page}) %}
{% include '@components/Layout/Subheader/SearchResult/SubheaderSearch.html.twig' with {title: "Search results" | trans, } %}
{% include '@components/Layout/CategoryProduct/CategoryProduct.html.twig' with {products: products, totalProducts:totalProducts} %}
{% 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 %}