custom/plugins/BlurElysiumSlider/src/Resources/views/storefront/component/blur-elysium-slide/container.html.twig line 1

Open in your IDE?
  1. {% block cms_element_blur_elysium_slide_container %}
  2.     <div class="cms-element-elysium-slide__container{{contentVerticalAlign}}">
  3.         {% set headlineElement = 'div' %}
  4.         {% if slide.slideSettings.headlineElement %}
  5.             {% set headlineElement = slide.slideSettings.headlineElement %}
  6.         {% endif %}
  7.         {% block cms_element_blur_elysium_slide_title %}
  8.         
  9.             {% set headlineTagsWhitelist = [
  10.                 '<br>',
  11.                 '<i>',
  12.                 '<b>',
  13.                 '<u>',
  14.                 '<strong>',
  15.                 '<span>'
  16.             ] %}
  17.             {% if slide.translated.title %}
  18.                 <{{headlineElement|raw}} class="{% block blur_elysium_slide_title_class %}cms-element-elysium-slide__title font-weight-bold fluid-text-title{% endblock %}">
  19.                     {{ slide.translated.title|striptags( headlineTagsWhitelist|join )|raw }}
  20.                 </{{headlineElement|raw}}>                
  21.             {% endif %}
  22.         {% endblock %}
  23.         {% block cms_element_blur_elysium_slide_description %}
  24.             {% if slide.translated.description %}
  25.                 <div class="{% block blur_elysium_slide_description_class %}cms-element-elysium-slide__description fluid-text-description{% endblock %}">
  26.                     {{ slide.translated.description|raw }}
  27.                 </div>                
  28.             {% endif %}
  29.         {% endblock %}
  30.         {% block cms_element_blur_elysium_slide_actions %}
  31.             {% if slide.translated.button_label and slide.translated.url and ( slide.slideSettings.urlOverlay is same as( false ) or slide.slideSettings.urlOverlay is same as( null ) ) %}
  32.                 <div class="cms-element-elysium-slide__actions">
  33.                     
  34.                     {% block cms_element_blur_elysium_slide_action_cta_button %}
  35.                         <a href="{{ slide.translated.url }}" 
  36.                             title="{{ slide.translated.button_label }}" 
  37.                             class="{% block blur_elysium_slide_button_class %}btn{% if slide.slideSettings.buttonAppearance %} btn-{{slide.slideSettings.buttonAppearance}}{% endif %} cms-element-elysium-slide__cta-button fluid-text-button{% endblock %}"
  38.                             {% if slide.slideSettings.urlTarget == "external" %}
  39.                                 target="_blank"
  40.                                 rel="noopener"
  41.                             {% endif %}
  42.                             >
  43.                             
  44.                             {{ slide.translated.button_label }}
  45.                         </a>        
  46.                     {% endblock %}
  47.                 </div>
  48.             {% endif %}
  49.         {% endblock %}
  50.     </div>
  51. {% endblock %}