templates/content/footer.html.twig line 1

Open in your IDE?
  1. <div class="{{ editmode ? 'footer-container-editmode' : 'footer-container' }}">
  2.     <section class="{{ editmode ? 'footer-snippet-editmode' : 'footer-section' }}">
  3.         {% if editmode %}
  4.             {% block scripts %}
  5.                 {{ encore_entry_script_tags('app') }}
  6.             {% endblock %}
  7.             {% block stylesheets %}
  8.                 {{ encore_entry_link_tags('style') }}
  9.             {% endblock %}
  10.             {% block head_links %}
  11.                 {{ pimcore_head_link() }}
  12.             {% endblock %}
  13.             <br>
  14.             <span>Background image:</span>
  15.             <br>
  16.             {{ pimcore_image('background-image', {
  17.                 width: 500,
  18.                 height: 250
  19.             }) }}
  20.             <h2>Footer top section</h2>
  21.             <div class="m-5 shadow-card bg-gray-100 p-5">
  22.                 <h3>Items of first level navigation:</h3>
  23.                 {% for i in pimcore_iterate_block(pimcore_block('nav-one')) %}
  24.                     {{ pimcore_link('nav-one-item' ~ i) }}
  25.                 {% endfor %}
  26.             </div>
  27.             <br/><br/>
  28.             <p>
  29.                 Facebook {{ pimcore_input('facebook', {
  30.                     width: 400,
  31.                     placeholder: 'facebook url'
  32.                 }) }}
  33.             </p>
  34.             <p>
  35.                 Instagram {{ pimcore_input('instagram', {
  36.                     width: 400,
  37.                     placeholder: 'instagram url'
  38.                 }) }}
  39.             </p>
  40.             <p>
  41.                 Youtube {{ pimcore_input('youtube', {
  42.                     width: 400,
  43.                     placeholder: 'youtube url'
  44.                 }) }}
  45.             </p>
  46.             <br>
  47.             <br>
  48.             <h3>Items of second level navigation:</h3>
  49.             <div class="m-5 shadow-card bg-gray-100 p-5">
  50.                 {% for i in pimcore_iterate_block(pimcore_block('nav-two-navigation-links')) %}
  51.                     {{ pimcore_link('nav-two-navigation-links' ~ i) }}
  52.                 {% endfor %}
  53.             </div>
  54.             <br>
  55.             <br>
  56.             <h2>Footer bottom section</h2>
  57.             <p>Copyright text:</p>
  58.             {{ pimcore_input('copyright-text', {
  59.                 width: 800
  60.             }) }}
  61.             <br>
  62.             <br>
  63.             <div class="m-5 shadow-card bg-gray-100 p-5">
  64.                 <h3>Items of bottom section:</h3>
  65.                 {% for i in pimcore_iterate_block(pimcore_block('nav-bottom')) %}
  66.                     {{ pimcore_link('nav-bottom-item' ~ i) }}
  67.                 {% endfor %}
  68.             </div>
  69.             <br>
  70.             <br>
  71.         {% else %}
  72.             <div class="flex justify-center mt-20">
  73.                 {{ pimcore_image('background-image') }}
  74.             </div>
  75.             <div class="bg-gray-200 dark:bg-black dark:text-white w-full">
  76.                 <div class="container px-5">
  77.                     <div class="flex flex-col md:flex-row gap-5 md:justify-end py-5 align-center">
  78.                         <div class="flex-1 md:flex-initial">
  79.                             <div class="flex flex-col">
  80.                                 <div class="flex-1">
  81.                                     <div class="flex flex-col md:flex-row gap-5 md:justify-end align-center py-5 font-mont-heavy text-xs uppercase text-dark-blue">
  82.                                         {% if pimcore_input('facebook') %}
  83.                                             <div class="md:flex-none text-sm hidden md:flex">
  84.                                                 <a href="{{ pimcore_input('facebook') }}" target="_blank" class="inline-block align-middle hover:text-blue-light transition-all"><i class="icon-facebook"></i></a>
  85.                                             </div>
  86.                                         {% endif %}
  87.                                         {% if pimcore_input('instagram') %}
  88.                                             <div class="md:flex-none text-sm hidden md:flex">
  89.                                                 <a href="{{ pimcore_input('instagram') }}" target="_blank" class="inline-block align-middle hover:text-blue-light transition-all"><i class="icon-instagram"></i></a>
  90.                                             </div>
  91.                                         {% endif %}
  92.                                         {% if pimcore_input('youtube') %}
  93.                                             <div class="md:flex-none text-sm hidden md:flex">
  94.                                                 <a href="{{ pimcore_input('youtube') }}" target="_blank" class="inline-block align-middle hover:text-blue-light transition-all"><i class="icon-youtube"></i></a>
  95.                                             </div>
  96.                                         {% endif %}
  97.                                         {% for i in pimcore_iterate_block(pimcore_block('nav-two-navigation-links')) %}
  98.                                             <div class="flex-1 md:flex-none">
  99.                                                 {{ pimcore_link('nav-two-navigation-links' ~ i) }}
  100.                                             </div>
  101.                                         {% endfor %}
  102.                                     </div>
  103.                                 </div>
  104.                                 <div class="flex-1">
  105.                                     <div class="flex flex-col md:flex-row gap-5 md:justify-end py-5">
  106.                                         {% for i in pimcore_iterate_block(pimcore_block('nav-one')) %}
  107.                                             <div class="flex-1 md:flex-none font-mont-heavy text-xs uppercase text-dark-blue">
  108.                                                 {{ pimcore_link('nav-one-item' ~ i) }}
  109.                                             </div>
  110.                                         {% endfor %}
  111.                                     </div>
  112.                                 </div>
  113.                             </div>
  114.                         </div>
  115.                     </div>
  116.                 </div>
  117.             </div>
  118.             <div class="z-10 relative bg-blue-dark dark:bg-[#171717] px-5 py-5">
  119.                 <div class="container">
  120.                     <div class="flex flex-col md:flex-row gap-5 text-white md:justify-end py-5">
  121.                         <div class="flex-1 font-rubik-light text-xs text-white pb-5 md:pb-0">
  122.                             {{ pimcore_input('copyright-text') }}
  123.                         </div>
  124.                         {% for i in pimcore_iterate_block(pimcore_block('nav-bottom')) %}
  125.                             <div class="flex-1 md:flex-none font-mont-heavy text-xs uppercase">
  126.                                 {{ pimcore_link('nav-bottom-item' ~ i) }}
  127.                             </div>
  128.                         {% endfor %}
  129.                     </div>
  130.                 </div>
  131.             </div>
  132.         {% endif %}
  133.     </section>
  134. </div>