This repository has been archived by the owner on Aug 13, 2022. It is now read-only.
/
display.html.twig
57 lines (50 loc) · 2.39 KB
/
display.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
{{ pageAddAsset('stylesheet', zasset('@ZikulaPagesModule:css/style.css')) }}
{{ pageSetVar('title', page.title) }}
{{ showflashes() }}
{% if page.metadescription is not empty %}{{ setMetaTag('description', page.metadescription) }}{% endif %}
{% if page.metakeywords is not empty %}{{ setMetaTag('keywords', page.metakeywords) }}{% endif %}
{% if page.displaytitle %}<h2>{{ page.title }}</h2>{% endif %}
{% if page.displaywrapper or page.displaycreated or page.displayupdated %}
<div class="pages_page_header">
<ul>
{% if page.displaycreated %}
<li>{{ __f('Created by %name% on %date%', { '%name%': page.creator.uname, '%date%': page.cr_date|date("m/d/Y") } ) }}</li>
{% endif %}
{% if page.displayupdated %}
<li>{{ __f('Last update by %name% on %date%', { '%name%': page.updater.uname, '%date%': page.lu_date|date("m/d/Y") } ) }}</li>
{% endif %}
{% if modvars.ZikulaPagesModule.enablecategorization and page.categories is not null %}
<li>{{ __('Categories') }}:
{% for assignment in page.categories %}
{{ assignment.category.display_name[lang] }}{% if not loop.last %}, {% endif %}
{% else %}
{{ __('No categories') }}
{% endfor %}
</li>
{% endif %}
</ul>
</div>
{% endif %}
<div class="pages_page_body">
{{ page.content|safeHtml|notifyFilters('pages.filter_hooks.pages.filter')|raw }}
</div>
{% if page.displayprint or page.displaytextinfo or displayeditlink %}
<div class="pages_page_footer">
{% if displayeditlink %}
<a href="{{ path('zikulapagesmodule_adminform_edit', {page: page.pageid}) }}">{{ __('Edit') }}</a>
<span class="text_separator">|</span>
{% endif %}
{% if page.displaytextinfo %}
{{ __f('%s total characters in this text', { '%s': page.content|length } ) }}
<span class="text_separator">|</span>
{{ __f('%s reads', { '%s': page.counter } ) }}
{% endif %}
{% if page.displayprint %}
<span class="pages_page_printerlink">
<a href="{{ path('zikulapagesmodule_user_display', {urltitle:page.urltitle, theme:'Printer'}) }}"><i class="fa fa-print fa-2x"></i></a>
</span>
{% endif %}
</div>
{% endif %}
{{ pages_pager({rowcount:pager.numitems, limit:pager.itemsperpage, posvar:'pagenum', route:'zikulapagesmodule_user_display'}) }}
{{ notifyDisplayHooks('pages.ui_hooks.pages.display_view', page.pageid) }}