création twig de la page projet, privatiser, accueil et asso
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
{% block content %}
|
||||
<div class="content-wrapper">
|
||||
{{dump(post)}}
|
||||
<article class="post-type-{{ post.post_type }}" id="post-{{ post.ID }}">
|
||||
<img src="{{ post.thumbnail.src|resize(1200, 300) }}">
|
||||
<section class="article-content">
|
||||
@@ -14,26 +15,6 @@
|
||||
{{post.content}}
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<!-- comment box -->
|
||||
<section class="comment-box">
|
||||
<!-- comments -->
|
||||
<div class="comments">
|
||||
{% if post.comments %}
|
||||
<h3> comments </h3>
|
||||
{% for cmt in post.comments %}
|
||||
{% include "comment.twig" with {comment:cmt} %}
|
||||
{% endfor %}
|
||||
{% endif %}
|
||||
</div>
|
||||
|
||||
{% if post.comment_status == "closed" %}
|
||||
<p> comments for this post are closed </p>
|
||||
{% else %}
|
||||
<!-- comment form -->
|
||||
{% include "comment-form.twig" %}
|
||||
{% endif %}
|
||||
</section>
|
||||
</article>
|
||||
</div><!-- /content-wrapper -->
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user