<div class="csmw cs-news-list-default">
{% 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-list-default{% if _widget.thumbnails is not same as('na') %} cs-list-default-thumb-{{ _widget.thumbnails|default('md') }}{% endif %}">
{% for item in items %}
{% set item_link = web_url_view(item, true) ?: '#' %}
{% set item_opener = (item.link and item.linkExternal) %}
<div class="cs-li-default">
{% if _widget.thumbnails is not same as('na') %}
{% set item_feature = item.feature|decorate_media %}
<div class="cs-li-default-image">
<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-li-default-wrap">
<div class="cs-li-default-heading">
<{{ _widget.titleSizes|default('h3') }} class="cs-li-default-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-li-default-meta">
<span class="cs-li-default-date">{{ item.createdAt|cms_date }}</span>
</div>
{% endif %}
</div>
{% if _widget.teasers is same as(true) %}
{% set bdy = cms_abstract(null, item.html) %}
{% if bdy is not empty %}
<div class="cs-li-default-body">
<p>{{ bdy }}</p>
{% if _widget.readLinks is same as(true) %}
<p class="cs-li-default-link">
<a class="cs-li-default-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 %}
{% endif %}
</div>
</div>
{% endfor %}
</div>
{% 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">
{% 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>