<div class="cs-module csm-news-article-feature">
<div class="csm-news-article">
<div class="csm-news-article-heading">
<h1 class="csm-news-article-title">{{ item.headline }}</h1>
</div>
<ul class="csm-news-article-meta">
<li class="csm-news-article-date">Posted {{ item.createdAt|cms_date }}</li>
</ul>
<div class="csm-news-article-body">
{% if item.media|length %}
{% set images = item.media.features|decorate_media %}
{% if images|length == 1 -%}
<figure class="csm-news-article-img-inline">
<img
src="{{- images[0]._urls.medium -}}"
alt="{{ images[0].alt }}"
/>
{% if images[0].note -%}
<figcaption class="cs-img-caption"><p>{{- images[0].note -}}</p></figcaption>
{% endif -%}
</figure>
{% else %}
<div class="csm-news-article-img-inline">
<div id="news-carousel" class="carousel" data-ride="carousel" data-interval="false">
<div class="carousel-inner">
{% for image in images %}
<div class="item {% if loop.first %}active{% endif %}">
<img
src="{{- image._urls.medium -}}"
alt="{{- image.alt|default(null) -}}"
/>
{% if image.note|default(null) -%}
<div class="carousel-caption">
<p>{{ image.note }}</p>
</div>
{% endif %}
</div>
{% endfor %}
</div>
<a style="display: flex; align-items: center;" class="left carousel-control" href="#news-carousel" role="button" data-slide="prev">
<span style="margin-left: auto; margin-right: auto;" class="fa fa-chevron-left" aria-hidden="true"></span>
<span class="sr-only">Previous</span>
</a>
<a style="display: flex; align-items: center;" class="right carousel-control" href="#news-carousel" role="button" data-slide="next">
<span style="margin-left: auto; margin-right: auto;" class="fa fa-chevron-right" aria-hidden="true"></span>
<span class="sr-only">Next</span>
</a>
</div>
</div>
<script>
Campussuite.Tools.injectSources('{{ assett('bootstrap::/dist/js/bootstrap.min.js') }}');
</script>
{% endif %}
{% endif %}
{{ item.html|raw }}
</div>
</div>
</div>