{% if isPreview %}
{% endif %} {% if currentWidget.isAllowShowContent() and currentWidget.getPaginator().getTotalItemCount() > 0 %} {% set headerPosts = currentWidget.getCurrentItems(0, 3) %} {% set otherPosts = currentWidget.getCurrentItems(3) %}
{% for post in headerPosts %}
{% if currentWidget.properties.layout.elements.post.children.image.visible and post.properties.feature_media.src and post.properties.feature_media.type == 'image' %}
{% endif %}
{% if currentWidget.properties.layout.elements.post.children.content.children.description.visible %}
{% filter page_html_content(post, post.type ~ ':short_description') %} {% include template_from_string(post.short_description) %} {% endfilter %}
{% endif %} {% if currentWidget.properties.layout.elements.post.children.content.children.button.visible %} {% if isServer %} {{ widget(currentWidget.getInnerWidget("button", post)) }} {% else %} {% widget currentWidget.getInnerWidget("button", {"currentPage": post}) %}{% endWidget %} {% endif %} {% endif %} {% if currentWidget.properties.layout.elements.post.children.content.children.date.visible or currentWidget.properties.layout.elements.post.children.content.children.author.visible %}
{% if currentWidget.properties.layout.elements.post.children.content.children.date.visible %}
{% if isServer %} {{ widget(currentWidget.getInnerWidget("blog.post_published_on"), {"currentPage": post}) }} {% else %} {% widget currentWidget.getInnerWidget("blog.post_published_on", {"currentPage": post}) %}{% endWidget %} {% endif %}
{% endif %} {% if currentWidget.properties.layout.elements.post.children.content.children.author.visible %}
{% if isServer %} {{ widget(currentWidget.getInnerWidget("blog.post_author"), {"currentPage": post}) }} {% else %} {% widget currentWidget.getInnerWidget("blog.post_author", {"currentPage": post}) %}{% endWidget %} {% endif %}
{% endif %}
{% endif %}
{% endfor %}
{% if otherPosts|length > 0 %}
{% for post in otherPosts %}
{% if currentWidget.properties.layout.elements.post.children.image.visible and post.properties.feature_media.src and post.properties.feature_media.type == 'image' %}
{% endif %}
{% if currentWidget.properties.layout.elements.post.children.content.children.description.visible %}
{% filter page_html_content(post, post.type ~ ':short_description') %} {% include template_from_string(post.short_description) %} {% endfilter %}
{% endif %} {% if currentWidget.properties.layout.elements.post.children.content.children.button.visible %} {% if isServer %} {{ widget(currentWidget.getInnerWidget("button", post)) }} {% else %} {% widget currentWidget.getInnerWidget("button", {"currentPage": post}) %}{% endWidget %} {% endif %} {% endif %} {% if currentWidget.properties.layout.elements.post.children.content.children.date.visible or currentWidget.properties.layout.elements.post.children.content.children.author.visible %}
{% if currentWidget.properties.layout.elements.post.children.content.children.date.visible %}
{% if isServer %} {{ widget(currentWidget.getInnerWidget("blog.post_published_on"), {"currentPage": post}) }} {% else %} {% widget currentWidget.getInnerWidget("blog.post_published_on", {"currentPage": post}) %}{% endWidget %} {% endif %}
{% endif %} {% if currentWidget.properties.layout.elements.post.children.content.children.author.visible %}
{% if isServer %} {{ widget(currentWidget.getInnerWidget("blog.post_author"), {"currentPage": post}) }} {% else %} {% widget currentWidget.getInnerWidget("blog.post_author", {"currentPage": post}) %}{% endWidget %} {% endif %}
{% endif %}
{% endif %}
{% endfor %}
{% endif %} {% set PaginatorPages = currentWidget.getPaginatorPages() %} {% if PaginatorPages.pageCount > 1 and currentWidget.properties.layout.elements.pagination.visible %}
{% if PaginatorPages.first != PaginatorPages.current %} {% endif %} {% if PaginatorPages.last != PaginatorPages.current %} {% endif %}
{% endif %} {% elseif isPreview %}
{% endif %}