forked from ezsystems/ezplatform-demo
/
blog_post.html.twig
59 lines (52 loc) · 2.23 KB
/
blog_post.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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
{% extends "@ezdesign/pagelayout.html.twig" %}
{% block page_head %}
{% set title = ez_content_name(content) ~ " - " ~ content.contentInfo.publishedDate|localizeddate('short', 'short', app.request.locale) %}
{{ parent() }}
{% endblock %}
{% block content %}
<section class="content-type-blog-post full-view">
<div class="container">
<div class="row">
<div class="col-md-8 offset-md-2">
<div class="title">
<h1 class="field-title">{{ ez_render_field(content, 'title') }}</h1>
</div>
<div class="meta">
<span class="field-author">
{{ ez_field_value(content, 'author') }}
</span>
{% if not ez_is_field_empty( content, 'authors_position' ) %}
<span class="field-authors-position">
- {{ ez_field_value(content, 'authors_position') }}
</span>
{% endif %}
<span class="field-date">
<time pubdate datetime="{{ ez_field_value(content, 'publication_date')|date("Y-m-d") }}">{{ ez_field_value(content, 'publication_date')|date("d M Y") }}</time>
</span>
</div>
</div>
</div>
<div class="row">
<div class="col-md-12">
<div class="field-image">
{{ ez_render_field(content, 'image', {
'parameters': {'alias': 'original', 'class': 'img-fluid w-100'}
}) }}
</div>
</div>
</div>
</div>
<div class="container">
<div class="row">
<div class="col-md-8 offset-md-2">
<div class="field-body">
{{ ez_render_field(content, 'body') }}
</div>
<div class="field-tags">
{{ ez_render_field(content, 'tags') }}
</div>
</div>
</div>
</div>
</section>
{% endblock %}