themes/bases/Campussuite2015/widgets/ModuleCalendarList/build/tpl.html.twig line 1

Open in your IDE?
  1. <div class="csmw cs-events-list-default">
  2.     {% if _widget.heading is not empty %}
  3.         <div class="cs-widget-header">
  4.             <div class="cs-widget-header-heading">
  5.                 <{{ _widget.headingSize|default('h2') }} class="cs-widget-header-title">{{ _widget.heading }}</{{ _widget.headingSize|default('h2') }}>
  6.             </div>
  7.             {% if _widget.description is not empty %}
  8.                 <div class="cs-widget-header-body">{{ _widget.description }}</div>
  9.             {% endif %}
  10.         </div>
  11.     {% endif %}
  12.     {% if items|length > 0 %}
  13.         <div class="cs-list-default">
  14.             {% for item in items %}
  15.                 <div class="cs-li-default">
  16.                     {% if _widget.thumbnails is not same as('na') %}
  17.                         {% if _widget.thumbnails is same as('datebox') or _widget.thumbnails is empty %}
  18.                             <div class="cs-li-date-block">
  19.                                 <div class="cs-li-date-block-month">{{ item.data.startDate|cms_dt('M')|upper }}</div>
  20.                                 <div class="cs-li-date-block-date">{{ item.data.startDate|cms_dt('j') }}</div>
  21.                             </div>
  22.                         {% endif %}
  23.                     {% endif %}
  24.                     <div class="cs-li-default-wrap">
  25.                         <div class="cs-li-default-heading">
  26.                             <{{ _widget.titleSizes|default('h3') }} class="cs-li-default-title">
  27.                                 <a href="{{ cms_path_prefix(containers) }}/calendar/{{ item.id }}/{{ item.data.slug }}">{{ item.data.title }}</a>
  28.                             </{{ _widget.titleSizes|default('h3') }}>
  29.                             {% if _widget.timestamps is same as(true) %}
  30.                                 {% set dts = item|cms_calendar_span({
  31.                                     dateFormat: 'M j, Y',
  32.                                     timeFormat: 'g:i A'
  33.                                 }) %}
  34.                                 {% if dts.hasStartOrEnd %}
  35.                                     {% include cms_theme_override('/includes/calendarEventItem.html.twig') with {
  36.                                         dts: dts,
  37.                                         primaryClass: 'cs-li-default-meta',
  38.                                         startLabel: (dts.multiday) ? 'Start:' : null,
  39.                                         endLabel: (dts.multiday) ? 'End:': null,
  40.                                         showStartDate: (_widget.thumbnails is same as('na') or dts.multiday),
  41.                                         showEndDate: (dts.multiday),
  42.                                         separator: ( not (dts.allday or dts.multiday) and dts.hasStartTimeAndEndTime) ? '-' : null
  43.                                     } %}
  44.                                 {% endif %}
  45.                             {% endif %}
  46.                         </div>
  47.                         {% if _widget.teasers is same as(true) %}
  48.                             {% set bdy = cms_abstract(item.data.abstract, item.data.description) %}
  49.                             {% if bdy is not empty %}
  50.                                 <div class="cs-li-default-body">
  51.                                     <p>{{ bdy }}</p>
  52.                                     {% if _widget.readLinks is same as(true) %}
  53.                                         <p class="cs-li-default-link">
  54.                                             <a href="{{ cms_path_prefix(containers) }}/calendar/{{ item.id }}/{{ item.data.slug }}">Event Details</a>
  55.                                         </p>
  56.                                     {% endif %}
  57.                                 </div>
  58.                             {% endif %}
  59.                         {% endif %}
  60.                     </div>
  61.                 </div>
  62.             {% endfor %}
  63.         </div>
  64.     {% else %}
  65.         <div class="cs-data-na">
  66.             <p>We're sorry, no events were found for this calendar.</p>
  67.         </div>
  68.     {% endif %}
  69.     {% if _widget.linkText is not empty or _widget.showSubscribe is same as(true) %}
  70.         <div class="csw-footer">
  71.             {% if _widget.linkText is not empty %}
  72.                 <a href="{{ cms_path_prefix(containers) }}/calendar" class="csw-view-more">{{ _widget.linkText }}</a>
  73.             {% endif %}
  74.             {% if _widget.showSubscribe is same as(true) %}
  75.                 <a href="{{ cms_path_prefix(containers) }}/calendar/subscribe" class="csw-rss">Subscribe</a>
  76.             {% endif %}
  77.         </div>
  78.     {% endif %}
  79.     {% include cms_theme_override('/includes/calendarEventItemModalTrigger.html.twig') %}
  80. </div>