catalog_result.twig
1.49 KB
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
45
46
47
48
49
50
51
52
53
<ul>
<li class="result-header">{{ text_products }}</li>
{% if products is not empty %}
{% for product in products %}
<li>
<a href="{{ product.url }}" style="display: block; overflow: auto;">
<img src="{{ product.image }}"/>
<span>{{ product.name }}</span>
</a>
</li>
{% endfor %}
{% else %}
<li>
<a href="javascript::void(0)" style="display: block; overflow: auto;">
<span>{{ text_no_result }}</span>
</a>
</li>
{% endif %}
<li class="result-header">{{ text_categories }}</li>
{% if categories is not empty %}
{% for category in categories %}
<li>
<a href="{{ category.url }}" style="display: block; overflow: auto;">
<img src="{{ category.image }}"/>
<span>{{ category.name }}</span>
</a>
</li>
{% endfor %}
{% else %}
<li>
<a href="javascript::void(0)" style="display: block; overflow: auto;">
<span>{{ text_no_result }}</span>
</a>
</li>
{% endif %}
<li class="result-header">{{ text_manufacturers }}</li>
{% if manufacturers is not empty %}
{% for manufacturer in manufacturers %}
<li>
<a href="{{ manufacturer.url }}" style="display: block; overflow: auto;">
<img src="{{ manufacturer.image }}"/>
<span>{{ manufacturer.name }}</span>
</a>
</li>
{% endfor %}
{% else %}
<li>
<a href="javascript::void(0)" style="display: block; overflow: auto;">
<span>{{ text_no_result }}</span>
</a>
</li>
{% endif %}
</ul>