templates/biographies/biographie_entete.inc.html.twig line 1

Open in your IDE?
  1. {% extends 'templates.html.twig' %}
  2. {% block headcontent %}
  3. <section class="tc-header tc-logo-rubriques" id="top">
  4.     <header class="tc-panel">
  5.         <div class="tc-desktop-2_3 tc-phone-1_1">
  6.             <figure class="tc-phone-1_1 tc-tablet-1_6 tc-figure-biographies">
  7.             {% if thumbnail is defined and thumbnail %}
  8.                 {% if is_accueil is defined and is_accueil %}
  9.                     <img src="{{ thumbnail }}" class="tc-neutral-color"  alt="Photo de {{ fullname }}" />
  10.                 {% else %}
  11.                     <a href="/biographies/{{ url_clean }}/" title="Actualités de {{ fullname }}">
  12.                         <img src="{{ thumbnail }}" alt="Photo de {{ fullname }}" class="tc-neutral-color" />
  13.                     </a>
  14.                 {% endif %}
  15.             {% else %}
  16.                 {% if is_accueil is defined and is_accueil %}
  17.                     <img class="tc-neutral-color" src="/images/menu/interface/no_user_v5.png" alt="Pas de photographie de cet auteur" />
  18.                 {% else %}
  19.                     <a href="/biographies/{{ url_clean }}/">
  20.                         <img class="tc-neutral-color" src="/images/menu/interface/no_user_v5.png" alt="Pas de photographie de cet auteur" />
  21.                     </a>
  22.                 {% endif %}
  23.             {% endif %}
  24.             </figure>
  25.             <div class="tc-header row tc-phone-1_1 tc-tablet-5_6">
  26.                 <header>
  27.                     <h1>{{ fullname }}</h1>
  28.                     <p class="tc-subtitle">
  29.                         {% if country is defined and country %}
  30.                             {{ country|trans }}
  31.                         {% endif %}
  32.                         {% if birth_year is defined and birth_year %} &ndash;
  33.                             {% if death_year == false %}
  34.                                 Né(e) en
  35.                             {% endif %}
  36.                             {{ birth_year }}
  37.                         {% endif %}
  38.                         {% if death_year is defined and death_year %}
  39.                             {% if birth_year == false %}
  40.                                 &ndash; ?
  41.                             {% endif %} -
  42.                             {{ death_year }}
  43.                         {% endif %}
  44.                     </p>
  45.                     {% if data_person.boss is defined and data_person.boss %}
  46.                     <p  class="tc-subtitle">
  47.                         Voir aussi :
  48.                         <span>
  49.                             {% for idcontact,contact in data_person.boss %}
  50.                             <a href="/contacts/{{ contact.url_clean }}/">
  51.                                 {{ contact.organisation }} {% if contact.nopunct is not defined or (contact.nopunct is defined and not contact.nopunct) %}, {% endif %}
  52.                             </a>
  53.                             {% endfor %}
  54.                         </span>
  55.                     </p>
  56.                     {% endif %}
  57.                 </header>
  58.             </div>
  59.         </div>
  60.         {% if links_exist is defined and links_exist %}
  61.         <div class="tc-panel-body tc-desktop-1_3 tc-phone-1_1" >
  62.             <div class="tc-block tc-border-neutral" style="margin:0">
  63.                 <div class="tc-block-body-text">
  64.                     <p class="">Suivre aussi {{ fullname }} sur :</p>
  65.                     <ul class="tc-clean-list">
  66.                         {% if data_person.link is defined and data_person.link %}
  67.                             <li><a href="{{ data_person.link }}">son site Internet</a></li>
  68.                         {% endif %}
  69.                         {% if data_person.facebook is defined and data_person.facebook %}
  70.                             <li><a href="{{ data_person.facebook }}">facebook</a></li>
  71.                         {% endif %}
  72.                         {% if data_person.twitter is defined and data_person.twitter %}
  73.                             <li><a href="{{ data_person.twitter }}">twitter</a></li>
  74.                         {% endif %}
  75.                         {% if data_person.linkedin is defined and data_person.linkedin %}
  76.                             <li><a href="{{ data_person.linkedin }}">linkedin</a></li>
  77.                         {% endif %}
  78.                         {% if data_person.instagram is defined and data_person.instagram %}
  79.                             <li><a href="{{ data_person.instagram }}">instagram</a></li>
  80.                         {% endif %}
  81.                     </ul>
  82.                 </div>
  83.             </div>
  84.         </div>
  85.         {% endif %}
  86.     </header>
  87.         <nav class="tc-subnav">
  88.             <ul>
  89.                 {% for k,v in menu_person %}
  90.                     {% if v.active is not defined %}
  91.                         <li>
  92.                             {% if v.first is defined and v.first %}
  93.                                 <a href="/biographies/{{ url_clean }}/" title="{{ v.title }}">{{ v.nom|raw }}</a>
  94.                             {% else %}
  95.                                 <a href="/biographies/{{ url_clean }}/{{ k }}/" title="{{ v.title }}">{{ v.nom|raw }}</a>
  96.                             {% endif %}
  97.                         </li>
  98.                     {% elseif v.active == 'on' and v.title is defined %}
  99.                         <li class="tc-item-on">
  100.                             <a href="/biographies/{{ url_clean }}/{{ k }}/" title="{{ v.title }}">{{ v.nom|raw }}</a>
  101.                         </li>
  102.                     {% endif %}
  103.                 {% endfor %}
  104.             </ul>
  105.         </nav>
  106. </section>
  107. {% endblock %}
  108. {% block content %}
  109.     {% include 'includes/navigation.inc.html.twig' %}
  110.     {% include 'montheatre/bookmarking.inc.html.twig' %}
  111.     {% block subcontents %}
  112.     {% endblock %}
  113. {% endblock %}