<div class="csmw cs-owl-carousel cs-news-carousel">
{% if _widget.heading is not empty %}
<div class="cs-widget-header">
<div class="cs-widget-header-heading">
<{{ _widget.headingSize|default('h2') }} class="cs-widget-header-title">{{ _widget.heading }}</{{ _widget.headingSize|default('h2') }}>
</div>
{% if _widget.description is not empty %}
<div class="cs-widget-header-body">{{ _widget.description }}</div>
{% endif %}
</div>
{% endif %}
{% if items|length > 0 %}
<div class="cs-owl-carousel-list owl-carousel">
{% for item in items %}
{% set item_link = web_url_view(item, true) ?: '#' %}
{% set item_opener = (item.link and item.linkExternal) %}
<div class="cs-owl-carousel-li">
{% if _widget.thumbnails is same as(true) %}
{% set item_feature = item.feature|decorate_media %}
<div class="cs-owl-carousel-li-img">
<img
src="{{- item_feature
? item_feature._urls.tiny
: cms_placeholderUrl('MASKS__RECTANGLE__SMALL', 'news')
-}}"
onclick="return Campussuite.Tools.jslink('{{- item_link|e('js') -}}', {{ item_opener ? 'true' : 'false' }});"
onkeypress="return Campussuite.Tools.jslink('{{- item_link|e('js') -}}', {{ item_opener ? 'true' : 'false' }});"
tabindex="-1"
alt="{{- item_feature ? item_feature.alt : '' -}}"
/>
</div>
{% endif %}
<div class="cs-owl-carousel-li-heading">
<{{ _widget.titleSizes|default('h3') }} class="cs-owl-carousel-li-title">
<a href="{{- item_link|e('html_attr') -}}"{% if item_opener %} target="_blank"{% endif %}>{{ item.headline }}</a>
</{{ _widget.titleSizes|default('h3') }}>
{% if _widget.timestamps is same as(true) %}
<div class="cs-owl-carousel-li-meta">
<span class="cs-owl-carousel-li-date">{{ item.createdAt|cms_date }}</span>
</div>
{% endif %}
</div>
{% if _widget.teasers is same as(true) or _widget.readLinks is same as(true) %}
<div class="cs-owl-carousel-li-body">
{% set bdy = cms_abstract(item.blurb, item.html) %}
{% if _widget.teasers is same as(true) and bdy is not empty %}
<p>{{ bdy }}</p>
{% endif %}
{% if _widget.readLinks is same as(true) %}
<p class="cs-owl-carousel-li-link">
<a class="cs-owl-carousel-li-more-link" tabindex="-1" aria-hidden="true" href="#" onclick="return Campussuite.Tools.jslink('{{- item_link|e('js') -}}', {{ item_opener ? 'true' : 'false' }});">
Read Article
<span class="sr-only">{{ item.headline }}</span>
</a>
</p>
{% endif %}
</div>
{% endif %}
</div>
{% endfor %}
</div>
{% if _widget.dots is same as(true) -%}
<div id="{{ _htmlId }}-dots" class="cs-owl-carousel-dots owl-dots"></div>
{% endif -%}
{% else %}
<div class="cs-data-na">
<p>We're sorry, no articles were found for this listing.</p>
</div>
{% endif %}
{% if _widget.linkText is not empty or _widget.showSubscribe is same as(true) %}
<div class="csw-footer cs-owl-carousel-footer">
{% if _widget.linkText is not empty %}
<a href="{{- (web_url_landing(container, module) ?: '#')|e('html_attr') -}}" class="csw-view-more">{{ _widget.linkText }}</a>
{% endif %}
{% if _widget.showSubscribe is same as(true) %}
<a href="{{- (web_url_subscribe(container, module) ?: '#')|e('html_attr') -}}" class="csw-rss">Subscribe to News</a>
{% endif %}
</div>
{% endif %}
</div>