/priv/skel/blog/templates/article.tpl

https://code.google.com/p/zotonic/ · Smarty Template · 30 lines · 19 code · 11 blank · 0 comment · 5 complexity · e657e638553426cadb4256ecf16e167c MD5 · raw file

  1. {% extends "page.tpl" %}
  2. {% block title %}{{ m.rsc[id].title }}{% endblock %}
  3. {% block chapeau %}
  4. {% include "_article_chapeau.tpl" %}
  5. {% endblock %}
  6. {% block content %}
  7. <h1>{{ m.rsc[id].title }}</h1>
  8. {% if m.rsc[id].summary %}
  9. <p class="summary">
  10. {{ m.rsc[id].summary }}
  11. </p>
  12. {% endif %}
  13. {{ m.rsc[id].body|show_media }}
  14. <section id="comments">{% include "_comments.tpl" id=id %}</section>
  15. {% include "_article_prevnext.tpl" id=id %}
  16. {% endblock %}
  17. {% block sidebar %}
  18. {% include "_article_sidebar.tpl" %}
  19. {% endblock %}