Created
May 22, 2012 10:37
-
-
Save mikeemoo/2768228 to your computer and use it in GitHub Desktop.
Twig wordpress template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{% extends 'LowpressWordpressBundle::layout.html.twig' %} | |
{% block content %} | |
{% if lowpress_have_posts() %} | |
{% for i in 0..wp_query.post_count-1 %} | |
{{ lowpress_the_post() }} | |
<article role="article" {{ lowpress_post_class() }} id="post-{{ lowpress_the_ID() }}"> | |
<header> | |
<div class="page-header"> | |
<h1><a href="{{ lowpress_the_permalink() }}">{{ lowpress_the_title() }}</a></h1> | |
</div> | |
</header> | |
<section> | |
{{ lowpress_the_content() }} | |
</section> | |
<footer> | |
<div class="postmetadata"> | |
{{ lowpress_the_tags('Tags: ', ' ', '<br />') }} | |
Posted in {{ lowpress_the_category(', ') }} | | |
{{ lowpress_comments_popup_link('No Comments »', '1 Comment »', '% Comments »') }} | |
</div> | |
</footer> | |
</article> | |
{% endfor %} | |
{% else %} | |
<h1>No posts found</h1> | |
{% endif %} | |
{% endblock %} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment