PageRenderTime 32ms CodeModel.GetById 20ms app.highlight 5ms RepoModel.GetById 1ms app.codeStats 1ms

/priv/sites/zotonicwww/templates/features.tpl

https://code.google.com/p/zotonic/
Smarty Template | 43 lines | 36 code | 7 blank | 0 comment | 7 complexity | a5a6178c87f1bc8396931efdc92d4661 MD5 | raw file
 1{% extends "base.tpl" %}
 2
 3{% block title %}{{ m.rsc[id].seo_title | default: m.rsc[id].title }}{% endblock %}
 4
 5{% block page_class %}page features{% endblock %}
 6
 7{% block banner %}{% endblock %}
 8
 9{% block content %}
10
11	<article id="content">
12		<div class="padding">
13			<h1>{{ m.rsc[id].title }}</h1>
14			{% if m.rsc[id].summary %}<p class="summary">{{ m.rsc[id].summary }}</p>{% endif %}
15			{{ m.rsc[id].body }}
16		</div>
17	</article>
18
19	<section class="feature-wrapper clearfix">
20		{% for c_ids in m.rsc[id].o.haspart|split_in:2 %}
21			{% if c_ids %}
22				<section class="feature-members zp-50">
23					<div class="padding">
24						<ul class="feature-list">
25							{% for c_id in c_ids %}
26							<li class="feature-item {% if forloop.last %}last-feature{% endif %}">
27								{% if m.rsc[c_id].depiction %}
28									{% image m.rsc[c_id].depiction width=70 height=70 crop %}
29								{% endif %}
30								<h2><a href="{{ m.rsc[c_id].page_url }}" title="{{ m.rsc[c_id].seo_description | default: m.rsc[c_id].summary }}">{{ m.rsc[c_id].title }}</a></h2>
31								{% if m.rsc[c_id].summary %}
32									<p class="summary">{{ m.rsc[c_id].summary }}</p>
33								{% endif %}
34							</li>
35							{% endfor %}
36						</ul>
37					</div>
38				</section>
39			{% endif %}
40		{% endfor %}
41	</section>
42	
43{% endblock %}