forked from ezsystems/ezplatform-ee-demo
/
view.html.twig
41 lines (36 loc) · 1.61 KB
/
view.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
{% extends "eZStudioDemoBundle::pagelayout.html.twig" %}
{% set tag_keyword = netgen_tags_tag_keyword( tag ) %}
{% block page_head %}
{% set title = tag_keyword %}
{{ parent() }}
{% endblock %}
{% block content %}
<section class="tags-content content-view-full">
<div class="row">
<div class="col-md-8 col-md-offset-2 col-sm-12">
<div class="attribute-header">
<h1>{{ 'Tags'|trans }} / <a href="{{ app.request.requestUri }}">{{ tag_keyword }}</a></h1>
</div>
{% if related_content|length > 0 %}
<section class="content-view-children search-result-item">
{% for related_content_item in related_content %}
{{ render(controller(
"ez_content:viewAction", {
"contentId": related_content_item.id,
"locationId": related_content_item.mainLocationId,
"viewType": "search_result_item",
"layout": false
}
)) }}
{% endfor %}
</section>
{% if related_content.haveToPaginate() %}
<div class="pagination-centered">
{{ pagerfanta( related_content, 'twitter_bootstrap3_translated' ) }}
</div>
{% endif %}
{% endif %}
</div>
</div>
</section>
{% endblock %}