templates\page\generic-page2.html.twig line 1

Open in your IDE?
  1. {% extends '_base.html.twig' %}
  2. {% import '_macro/breadcrumbs.html.twig' as breadcrumbs %}
  3. {% block title %}
  4. {% include 'parts/_page-title.html.twig' %}
  5. {% endblock %}
  6. {% block stylesheets %}
  7.     {{ parent() }}
  8.     {{ encore_entry_link_tags('page', null, site|lower) }}
  9.     {{ encore_entry_link_tags('custom', null, site|lower) }}
  10. {% endblock %}
  11. {% block body %}
  12. {% include '_header.html.twig' %}
  13. <div class="main">
  14.   <div class="inner home">
  15.     <div class="container">
  16.       {% include 'parts/_alert.html.twig' %}
  17.     
  18.       <div class="inner__header">
  19.           {% include 'parts/_home-cards.html.twig' %}
  20.         <div class="inner__title">
  21.             <div class="inner__backlink">
  22.                 <span class="backlink__name backlink">
  23.                  {{ breadcrumbs.render(breadcrumbsData) }}
  24.                </span>
  25.             </div>
  26.           <h1>
  27.               {{pageName}}
  28.           </h1>
  29.         </div>
  30.       </div>
  31.         {% if pageText is defined %}
  32.             <ul class="generic-page-list-items">
  33.             {% for item in pageText %}
  34.                 <li>
  35.                 {#{{ dump(item) }}#}
  36.                 <div class="item-label more-toggler" tabindex="0" style="
  37.                      {#{% if item["css"]["link_hex_background_color"] is defined %}
  38.                      background-color: {{item["css"]["link_hex_background_color"]}};
  39.                      {% endif %}
  40.                      {% if item["css"]["link_hex_color"] is defined %}
  41.                      color: {{item["css"]["link_hex_color"]}}
  42.                      {% endif %}#}
  43.                      ">
  44.                          
  45.                     {{ item["label"] }}
  46.                 </div>
  47.                 <div class="item-more more-item">
  48.                     <div>
  49.                         <p>{{ item["departmentName"] }}</p>
  50.                     </div>
  51.                     <div>
  52.                         <p>{{ item["addressLine1"] }}</p>
  53.                     </div>
  54.                     <div>
  55.                         <p>{{ item["addressLine2"] }}</p>
  56.                     </div>
  57.                     <div>
  58.                         <p>{{ item["posttown"] }}</p>
  59.                     </div>
  60.                     <div>
  61.                         <p>{{ item["postcode"] }}</p>
  62.                     </div>
  63.                     <div>
  64.                         <p>{{ item["landline"] }}</p>
  65.                     </div>
  66.                     <div>
  67.                         <p>{{ item["mobile"] }}</p>
  68.                     </div>
  69.                     <div>
  70.                         <p>{{ item["email"] }}</p>
  71.                     </div>
  72.                     <div class="link btn" style="background-color: {{item['css']["link_hex_background_color"]}}; color: {{item['css']["link_hex_color"]}}">
  73.                         <a href="{{ path('courseList',{id: item['id'], idType:'locationID'}) }}">View courses at {{ item["label"] }}</a>
  74.                     </div>
  75.                 </div>
  76.                 </li>
  77.             {% endfor %}
  78.             </ul>
  79.         {% endif %}
  80.       
  81.     </div>
  82.   </div>
  83. </div>
  84. {% if app.user is not null %}
  85.     {% include '_tools-modal.html.twig' %}
  86. {% endif %}
  87. {% include '_footer.html.twig' %}
  88. {% block javascripts %}
  89.     {{ parent() }}
  90.     {{ encore_entry_script_tags('pageCommon', null, site|lower ) }}
  91.     {#{{ encore_entry_script_tags('page', null, site|lower ) }}#}
  92.     {{ encore_entry_script_tags('custom', null, site|lower) }}
  93. {% endblock %}
  94. {% endblock %}