/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. {% block title %}{{ m.rsc[id].seo_title | default: m.rsc[id].title }}{% endblock %}
  3. {% block page_class %}page features{% endblock %}
  4. {% block banner %}{% endblock %}
  5. {% block content %}
  6. <article id="content">
  7. <div class="padding">
  8. <h1>{{ m.rsc[id].title }}</h1>
  9. {% if m.rsc[id].summary %}<p class="summary">{{ m.rsc[id].summary }}</p>{% endif %}
  10. {{ m.rsc[id].body }}
  11. </div>
  12. </article>
  13. <section class="feature-wrapper clearfix">
  14. {% for c_ids in m.rsc[id].o.haspart|split_in:2 %}
  15. {% if c_ids %}
  16. <section class="feature-members zp-50">
  17. <div class="padding">
  18. <ul class="feature-list">
  19. {% for c_id in c_ids %}
  20. <li class="feature-item {% if forloop.last %}last-feature{% endif %}">
  21. {% if m.rsc[c_id].depiction %}
  22. {% image m.rsc[c_id].depiction width=70 height=70 crop %}
  23. {% endif %}
  24. <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>
  25. {% if m.rsc[c_id].summary %}
  26. <p class="summary">{{ m.rsc[c_id].summary }}</p>
  27. {% endif %}
  28. </li>
  29. {% endfor %}
  30. </ul>
  31. </div>
  32. </section>
  33. {% endif %}
  34. {% endfor %}
  35. </section>
  36. {% endblock %}