src/AppBundle/Resources/views/Page/homepage.html.twig line 1

Open in your IDE?
  1. {% extends 'AppBundle::layout.html.twig' %}
  2. {% block header %}
  3.   {% if page.header %}
  4.     {% include "@App/components/header.html.twig" %}
  5.   {% endif %}
  6. {% endblock %}
  7. {% block title %}
  8. {% endblock %}
  9. {% block body %}
  10.   {% if page.banner %}
  11.     {% include '@App/ContentBlock/banner.html.twig' %}
  12.   {% endif %}
  13.   {% if page.isUnitsFilter %}
  14.     {% include '@App/components/units_filter.html.twig' %}
  15.   {% endif %}
  16.   <div class="row">
  17.     {% for label, messages in app.flashes %}
  18.       {% for message in messages %}
  19.         <div class="alert alert-{{ label }} flash-{{ label }}" role="alert">
  20.           {{ message }}
  21.         </div>
  22.       {% endfor %}
  23.     {% endfor %}
  24.   </div>
  25.   {% if homepageTiles %}
  26.     <div class="row mb-4">
  27.       {% for tile in homepageTiles %}
  28.         <div class="col-md-4">
  29.           <div class="bg-light card tile">
  30.             <div class="card-body">
  31.               {% if tile.label %}
  32.                 <div class="tile-label" style="background-color: {{ tile.labelColor }};">
  33.                   {{ tile.label }}
  34.                 </div>
  35.               {% endif %}
  36.               <div>{{ tile.title }}</div>
  37.               <div>{{ tile.description }}</div>
  38.               <div>{{ tile.location }}</div>
  39.             </div>
  40.             <div class="card-footer">
  41.               <div class="row">
  42.                 <div class="col-6 text-left">Left text</div>
  43.                 <div class="col-6 text-right">Right text</div>
  44.               </div>
  45.             </div>
  46.           </div>
  47.         </div>
  48.       {% endfor %}
  49.     </div>
  50.   {% endif %}
  51.   {% for content in page.contentBlocks %}
  52.     {{ render_content_block(content.instance, page) }}
  53.   {% endfor %}
  54.   {% if page.isNewsletter %}
  55.     {% include '@App/components/newsletter_box.html.twig' %}
  56.   {% endif %}
  57. {% endblock %}
  58. {% block footer %}
  59.   {% if page.footer %}
  60.     {% include "@App/components/footer.html.twig" %}
  61.   {% endif %}
  62. {% endblock %}