templates/extra_pages/article.html.twig line 1

  1. {% extends "base.html.twig" %}
  2. {% block title %}
  3.     {{ parent() }} - All
  4. {% endblock %}
  5. {% block stylesheets %}
  6. {{ parent() }}
  7. {% endblock %}
  8. {% block javascript %}
  9. {{ parent() }}
  10. {% endblock %}
  11. {% block body %}
  12. {{ parent() }}
  13. <div class="container">
  14.     <h1 class="title-page">
  15.         {{article.title}}
  16.     </h1>
  17. </div>
  18. <div class="container">
  19. {% if article %}
  20. <div>
  21.     <div style="margin: 22px 0 10px">
  22.         <a href="{{ app.request.baseUrl }}/images/articles/{{article.picture}}" target="_blank"><img style="display: block;margin-left: auto;margin-right: auto;max-height:400px" src="{{ app.request.baseUrl }}/images/articles/{{article.picture}}" alt="{{article.title}}"/></a>
  23.         {% if article.legend is defined  and (article.legend|length > 0) %}
  24.     </div>
  25.     <div style="text-align: center; font-size:90%; max-width: 520px; margin-left: auto; margin-right: auto">
  26.         {{article.legend | raw}}
  27.     </div>
  28. {% endif %}
  29. </div>
  30. <p class="introparagraph" >
  31. {% if article.description is defined %}
  32. <div style="">
  33. {{article.description | raw}}
  34. </div>
  35. {% endif %}
  36. {% if article.key_field is defined and  article.key_value is defined  and (article.key_field|length > 0) and (article.key_value|length > 0) %}
  37. Sur les objets liés à <i>{{ article.key_value }}</i> : <a href="{{ path('detailed_search')}}?endpoint=default&{{ article.key_field|url_encode  }}={{ article.key_value  }}&with_images=false&callback=true#result_view" target="_blank">voir ici</a>
  38. {% endif %}
  39. {% if article.author_and_date is defined  and (article.author_and_date|length > 0) %}
  40.   <br/><br/>{{article.author_and_date | raw}}
  41. {% endif %}
  42. {% if article.bibliography is defined and (article.bibliography|length > 0) %}
  43. <p>
  44. <h4>Bibliographie</h4>
  45. {{article.bibliography | raw}}
  46. {% endif %}
  47. {% if article.source is defined and (article.source|length > 0) %}
  48. <p>
  49. <h4>Sources</h4>
  50. {{article.source | raw}}
  51. {% endif %}
  52. {% endif %}
  53. </p>
  54. </div>
  55. <!--DISCLAIMER-->
  56. {% include 'disclaimer_popup.html.twig' with {'cookie_accepted':cookie_accepted??"false" } %}
  57. {% endblock body %}