templates/Content/Public/Blog/by_type.ajax.twig line 1

Open in your IDE?
  1. {% trans_default_domain 'MDLContentBundle' %}
    
    {% set fragment = fragment is defined ? fragment : false %}
    
    {% if fragment %}
        <h4 class="text-uppercase mt-4 mb-4">
            <img src="{{ asset(static_asset('/ico-' ~ type ~ '.png')) }}" class="img-fluid"
                 alt="{{ ('blog.' ~ type)|trans }}"/> {{ ('blog.' ~ type)|trans }}
        </h4>
    {% endif %}
    
    {% if (posts|length) > 0 %}
        {% for index,post in posts %}
            {% include 'Content/Public/Blog/post_' ~ types[post.type] ~ '.html.twig' %}
        {% endfor %}
    {% endif %}