templates/theme/default/blocks/landing.html.twig line 1

Open in your IDE?
  1. <section class="section section__landing"
  2.     {% if contents['landing']['backgroundType'] is defined %}
  3.         style="
  4.             {% if contents['landing']['backgroundType'] == "color" %}
  5.                 background-color: #{{contents['landing']['backgroundColor']}};
  6.             {% elseif contents['landing']['backgroundType'] == "image" %}
  7.                 background-image: url('/uploads/images/{{contents['landing']['backgroundImage']}}');
  8.                 background-size: cover;
  9.                 background-position: center;
  10.             {% endif %}
  11.         "
  12.     {% endif %}
  13. >
  14.     <div class="container">
  15.         <div class="row">
  16.             <div class="offset-lg-1 col-lg-5">
  17.                 <h1 class="section__title section__title--white section__title--big">{% if contents['landing']['title'] is defined %}{{contents['landing']['title']}}{% endif %}</h1>
  18.                 <div class="section__content section__content--white">
  19.                     {% if contents['landing']['content'] is defined %}{{contents['landing']['content']|raw}}{% endif %}
  20.                 </div>
  21.                 <div class="section__buttons">
  22.                     {% if contents['landing']['buttons'] is defined %}
  23.                         {% for button in contents['landing']['buttons'] %}
  24.                             <a href="{{button['buttonUrl']}}" {% if button['blank'] %}target="_blank"{% endif %}>
  25.                                 <button class="btn btn-outline">
  26.                                     {{button['buttonLabel']}}
  27.                                 </button>
  28.                             </a>
  29.                         {% endfor %}
  30.                     {% endif %}
  31.                 </div>
  32.             </div>
  33.         </div>
  34.     </div>
  35. </section>