PageRenderTime 20ms CodeModel.GetById 17ms app.highlight 1ms RepoModel.GetById 1ms app.codeStats 0ms

/priv/skel/blog/templates/page.tpl

http://github.com/zotonic/zotonic
Smarty Template | 46 lines | 29 code | 17 blank | 0 comment | 5 complexity | c0462c15b8e881930888def7f74698c0 MD5 | raw file
 1{% extends "base.tpl" %}
 2
 3{% block title %}{{ m.rsc[id].title }}{% endblock %}
 4
 5{% block chapeau %}
 6
 7	{% include "_article_chapeau.tpl" %}
 8
 9{% endblock %}
10
11
12{% block content %}
13
14	<h1>{{ m.rsc[id].title }}</h1>
15
16	{% if m.rsc[id].summary %}
17	    <p class="summary">
18		    {{ m.rsc[id].summary }}
19	    </p>
20	{% endif %}
21
22	{% block below_summary %}
23		{% if m.rsc[id].depiction %}
24			<figure class="image-wrapper block-level-image">
25				{% media m.rsc[id].depiction width=445 crop class=align alt=m.rsc[id].title %}
26			</figure>
27		{% endif %}
28	{% endblock %}
29
30	{{ m.rsc[id].body|show_media }}
31
32	{% include "_blocks.tpl" %}
33
34	{% block below_body %}{% endblock %}
35
36    {% with m.search.paged[{query hassubject=[id, 'haspart']  sort='seq' pagelen=1 page=q.page}] as result %}
37        {% for id in result %}
38
39            {{ m.rsc[id].title }}
40
41        {% endfor %}
42        {% pager result=result dispatch='page' id=id hide_single_page %}
43
44    {% endwith %}
45
46{% endblock %}