src/CorporateTrainingBundle/Resources/views/announcement/announcement.html.twig line 1

Open in your IDE?
  1. {% set announcements = data('Announcement',{ count:3 }) %}
  2. {% if announcements and not app.request.cookies.get('close_announcements_alert') %}
  3. <div class="alert alert-warning alert-notice announcements-alert hidden-xs" id="announcements-alert" role="alert">
  4.   <div class="container swiper-container">
  5.     <div class="swiper-wrapper">
  6.       {% for announcement in announcements %}
  7.         {% if announcement.url %}
  8.         <div class="swiper-slide">
  9.           <i class="es-icon es-icon-infooutline mrm"></i>
  10.           <a style="color:#ff5e06" class="alert-link" href="{{announcement.url}}" target="_blank">
  11.             {{announcement.content|sub_text(50)}}
  12.           </a>
  13.         </div>
  14.         {% else %}
  15.         <div class="swiper-slide">
  16.           <i class="es-icon es-icon-infooutline mrm"></i>
  17.           {{announcement.content|sub_text(50)}}
  18.         </div>
  19.         {% endif %}
  20.       {% endfor %}
  21.     </div>
  22.     <button type="button" class="close" data-dismiss="alert" aria-label="Close" data-cookie="close_announcements_alert">
  23.       <span aria-hidden="true">×</span>
  24.     </button>
  25.   </div>
  26. </div>
  27. {% endif %}