templates/esposizioni/esposizioni-archivio.html.twig line 1

Open in your IDE?
  1. {% extends "base.html.twig" %}
  2. {% block pageTitle %} Archivio Esposizioni {% endblock %}
  3. {% block pageStyle %}    
  4.     {{ parent() }}     
  5. {% endblock %}
  6. {% block pageScriptsHeader %} 
  7.     {{ parent() }} 
  8. {% endblock %}
  9. {% block navigation %} {{ parent() }} {% endblock %}
  10. {% block upperMainContainer %}    
  11. {% endblock %}
  12. {% block mainContainer %}
  13. <section id="main-page-container" class="container">
  14.     <div class="content">
  15.         {% if anniMostrePersonali is not empty %}
  16.             <h3 id="personali">Personali ed eventi documentazione</h3>
  17.             <p>La sezione contiene documentazione di vario genere di una selezione di esposizioni. Ulteriore documentazione è in corso di digitalizzazione.</p>
  18.             {% for key, anno in anniMostrePersonali %}
  19.                 <h4>{{ key }}</h4>
  20.                 <div class="esposizioni-anno-content">
  21.                     <ul>
  22.                         {% for id, esposizione in anno.esposizioni %}
  23.                             <li>
  24.                                 <p class="mt-0 mb-0">
  25.                                     <a href="{{ path('showMostra', {'idmostra': id}) }}">
  26.                                     {{ esposizione.mostra.getNome() }}
  27.                                     </a>
  28.                                     {% if esposizione.mostra.getCuratore() %} A cura di {{ esposizione.mostra.getCuratore() }}
  29.                                     {% endif %}
  30.                                     {% if esposizione.mostra.getPresentazione() %} Presentazione di {{ esposizione.mostra.getPresentazione() }}
  31.                                     {% endif %}
  32.                                 </p>
  33.                                 <p class="mt-0 mb-0">
  34.                                     {% if esposizione.mostra.getLuogo() is defined and esposizione.mostra.getLuogo() is not empty %}
  35.                                         {{ esposizione.mostra.getLuogo() }} - 
  36.                                     {% endif %}
  37.                                     ({{ esposizione.mostra.getAnno() }})
  38.                                     {% if esposizione.fileref is defined and esposizione.fileref is not empty %}
  39.                                         {% if 'pdf' in esposizione.estensione|lower %}
  40.                                             <a href="{{ asset(uploaded_documents ~ esposizione.fileref ~ '.' ~ esposizione.estensione) }}">PDF</a>
  41.                                         {% else %}
  42.                                             <a href="{{ asset(uploaded_img_big ~ esposizione.fileref ~ '.' ~ esposizione.estensione) }}">Anteprima</a>
  43.                                         {% endif %}
  44.                                     {% endif %}
  45.                                 </p>
  46.                             </li>                        
  47.                         {% endfor %}
  48.                     </ul>
  49.                 </div>
  50.             {% endfor %}
  51.         {% endif %}
  52.         {% if anniMostreCollettive is not empty %}
  53.             <h3 id="collettive">Collettive documentazione</h3>
  54.             <p>La sezione contiene documentazione di vario genere di una selezione di esposizioni. Ulteriore documentazione è in corso di digitalizzazione.</p>
  55.             {% for key, anno in anniMostreCollettive %}
  56.                 <h4>{{ key }}</h4>
  57.                 <div class="esposizioni-anno-content">
  58.                     <ul>
  59.                         {% for id, esposizione in anno.esposizioni %}
  60.                             <li>
  61.                             <p class="mt-0 mb-0">
  62.                                     <a href="{{ path('showMostra', {'idmostra': id}) }}">
  63.                                     {{ esposizione.mostra.getNome() }}
  64.                                     </a>
  65.                                     {% if esposizione.mostra.getCuratore() %} A cura di {{ esposizione.mostra.getCuratore() }}
  66.                                     {% endif %}
  67.                                     {% if esposizione.mostra.getPresentazione() %} Presentazione di {{ esposizione.mostra.getPresentazione() }}
  68.                                     {% endif %}
  69.                                 </p>
  70.                                 <p class="mt-0 mb-0">
  71.                                     {% if esposizione.mostra.getLuogo() is defined and esposizione.mostra.getLuogo() is not empty %}
  72.                                         {{ esposizione.mostra.getLuogo() }} - 
  73.                                     {% endif %}
  74.                                     ({{ esposizione.mostra.getAnno() }})
  75.                                     {% if esposizione.fileref is defined and esposizione.fileref is not empty %}
  76.                                         {% if 'pdf' in esposizione.estensione|lower %}
  77.                                             <a href="{{ asset(uploaded_documents ~ esposizione.fileref ~ '.' ~ esposizione.estensione) }}">PDF</a>
  78.                                         {% else %}
  79.                                             <a href="{{ asset(uploaded_img_big ~ esposizione.fileref ~ '.' ~ esposizione.estensione) }}">Anteprima</a>
  80.                                         {% endif %}
  81.                                     {% endif %}
  82.                                 </p>
  83.                             </li>                        
  84.                         {% endfor %}
  85.                     </ul>
  86.                 </div>
  87.             {% endfor %}
  88.         {% endif %}
  89.         
  90.     </div>
  91. </section>
  92. <style>
  93. section { position:relative; }
  94. section:not(:first-of-type) { border-top:1px solid #444; padding-top:1rem; margin-top:3rem; }
  95. section h2 { margin-bottom:2rem; }
  96. .closed .content { display:none; }
  97. .handler { padding:1rem; background:none; border:1px solid #444; position: absolute; top:1rem; right:1rem; background-image:url('/images/svg/plus.svg'); background-size:auto 90%; 
  98. background-position:center; background-repeat:no-repeat; }
  99. .handler.open { background-image:url('/images/svg/minus.svg'); }
  100. </style>
  101. {% endblock %}