You are here

views-bootstrap-media-object.html.twig in Views Bootstrap 8.4

Same filename and directory in other branches
  1. 8.3 templates/views-bootstrap-media-object.html.twig
{# @todo: add more control to images and positoning #}

<div{{ attributes.addClass(classes) }} id="{{ id }}">
    {% for key, row in rows -%}
    <div class="media">
        {% if row.image %}
            {{ row.image }}
        {% endif %}
        <div class="media-body">
            {% if row.heading %}
                {{ row.heading }}
            {% endif %}

            {% if row.body %}
                {{ row.body }}
            {% endif %}
        </div>
    </div>
    {%- endfor %}
</div>

File

templates/views-bootstrap-media-object.html.twig
View source
  1. {# @todo: add more control to images and positoning #}
  2. <div{{ attributes.addClass(classes) }} id="{{ id }}">
  3. {% for key, row in rows -%}
  4. <div class="media">
  5. {% if row.image %}
  6. {{ row.image }}
  7. {% endif %}
  8. <div class="media-body">
  9. {% if row.heading %}
  10. {{ row.heading }}
  11. {% endif %}
  12. {% if row.body %}
  13. {{ row.body }}
  14. {% endif %}
  15. </div>
  16. </div>
  17. {%- endfor %}
  18. </div>