templates/buzz/fragments/actualite_societe.html.twig line 1

Open in your IDE?
  1. {% extends 'buzz/base.html.twig' %}
  2. {% block title %}
  3.     <title>Fusacq Buzz - Article expert</title>
  4. {% endblock %}
  5. {% block stylesheets %}
  6.     {{ parent() }}
  7.     <link rel="stylesheet" href="{{ asset('build/css/buzz/index/index_fr.css') }}">
  8.     <link rel="stylesheet" href="{{ asset('build/css/buzz/custom_fusacq.css') }}">
  9. {% endblock %}
  10. {% block body %}
  11.     <div class="row">
  12.         <div class="col-12">
  13.             {{ render_esi(controller(
  14.                 'App\\Controller\\Buzz\\CoreController::menu',
  15.                 {   "lang": lang,
  16.                     "currentRoute":currentRoute,
  17.                     "codePays": codePaysWithUnderScore,
  18.                     "authFrom": authFrom }
  19.             )) | spaceless }}
  20.             {% include 'buzz/fragments/publicite.html.twig' %}
  21.             <div class="container">
  22.                 {% set retourUrlHaut = null %}
  23.                 {% set retourTitreHaut = 'Retour' %}
  24.                 {% set societe_nom = article.nom_commercial_societe|default('') %}
  25.                 {% set societe_raison = article.raison_sociale|default('') %}
  26.                 {% set societe_resume = (article.resume_service|default('')) ?: ((article.resume_activite|default('')) ?: (article.description_activite|default(''))) %}
  27.                 {% set societe_site = article.url_site_web|default(article.site_internet|default('')) %}
  28.                 {% set has_societe_titre = (societe_nom is not empty) or (societe_raison is not empty) %}
  29.                 {% set has_societe_details =
  30.                     (societe_resume is not empty)
  31.                     or (article.adresse_complete|default('') is not empty)
  32.                     or (article.adresse|default('') is not empty)
  33.                     or (article.code_postal|default('') is not empty)
  34.                     or (article.ville|default('') is not empty)
  35.                     or (article.telephone|default('') is not empty)
  36.                     or (article.mail_contact|default('') is not empty)
  37.                     or (societe_site is not empty)
  38.                     or (article.caEffectif|default('') is not empty)
  39.                     or (article.numero_siren|default('') is not empty)
  40.                     or (article.lienSocieteCom|default('') is not empty)
  41.                     or (article.lienParticipation|default('') is not empty)
  42.                     or (article.lienFicheComplete|default('') is not empty)
  43.                     or (article.lienAnnuaireParticipation|default('') is not empty)
  44.                     or (article.carteAffichage|default('') is not empty)
  45.                 %}
  46.                 {% set has_societe_bloc = has_societe_titre or has_societe_details %}
  47.                 {% if article.dernieres_actualites_societe is defined and article.dernieres_actualites_societe|length > 0 %}
  48.                     {% set first_actu = article.dernieres_actualites_societe[0] %}
  49.                     {% set retourUrlHaut = path('buzz_actualite_detail', {
  50.                         'slug': first_actu.titre_actualite|slugify,
  51.                         'id': first_actu.id_actualite,
  52.                         'codePays': codePaysWithUnderScore
  53.                     }) %}
  54.                 {% elseif firstActualite is defined and firstActualite %}
  55.                     {% set retourUrlHaut = path('buzz_actualite_detail', {
  56.                         'slug': mainActualiteTitre|default('actualite')|slugify,
  57.                         'id': firstActualite.id_actualite,
  58.                         'codePays': codePaysWithUnderScore
  59.                     }) %}
  60.                 {% endif %}
  61.                 {% if retourUrlHaut %}
  62.                     <div class="row mb-3">
  63.                         <div class="col-12">
  64.                             <a class="button-rond-simple" href="{{ retourUrlHaut }}" role="button"
  65.                                title="{{ retourTitreHaut }}">
  66.                                 <div class="float-left pt-1">
  67.                                     <i class="fa-solid fa-circle-caret-left"></i>
  68.                                 </div>
  69.                                 <div class="float-left pt-1">&nbsp;&nbsp;{{ retourTitreHaut }}</div>
  70.                             </a>
  71.                         </div>
  72.                     </div>
  73.                 {% endif %}
  74.                 <div class="row">
  75.                     <div class="col-12 col-lg-9 no_shadow mb-3" style="border-right:1px dashed #e0e0e0;">
  76.                         {% if has_societe_bloc %}
  77.                             <div class="row bkg_blanc">
  78.                                 <div class="col-12 my-2">
  79.                                     <div class="card no_shadow">
  80.                                         <div class="card-body">
  81.                                             <div class="row">
  82.                                                 <div class="col-12 col-sm-11 offset-sm-1 ">
  83.                                                     {% set titre_societe = societe_nom ?: societe_raison %}
  84.                                                     {% if titre_societe is not empty %}
  85.                                                         <h4 class="vert">{{ titre_societe }}</h4>
  86.                                                     {% endif %}
  87.                                                     {% if societe_resume is not empty %}
  88.                                                         {{ societe_resume|raw }}
  89.                                                     {% endif %}
  90.                                                 </div>
  91.                                                 {% if has_societe_details %}
  92.                                                     <div class="col-12 col-sm-6 offset-sm-1 mt-1 ">
  93.                                                         <ul class="cat_regions">
  94.                                                             {% if article.adresse_complete %}
  95.                                                                 <li><i class="fas fa-map-marker-alt gris_ccc" aria-hidden="true"></i>&nbsp;&nbsp;{{ article.adresse_complete|raw }}</li>
  96.                                                             {% elseif article.adresse or article.code_postal or article.ville %}
  97.                                                                 {% if article.adresse %}
  98.                                                                     <li><i class="fas fa-map-marker-alt gris_ccc" aria-hidden="true"></i>&nbsp;&nbsp;{{ article.adresse }}</li>
  99.                                                                 {% endif %}
  100.                                                                 {% if article.code_postal or article.ville %}
  101.                                                                     <li>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;{{ article.code_postal|default('') }} {{ article.ville|default('') }}{% if article.pays %} - {{ article.pays }}{% endif %}</li>
  102.                                                                 {% endif %}
  103.                                                             {% endif %}
  104.                                                             {% if article.telephone %}
  105.                                                                 <li><i class="fas fa-phone-alt gris_ccc" aria-hidden="true"></i>&nbsp;&nbsp;
  106.                                                                     {% set indicatif_telephone = article.id_pays|default(codePays|default('fr')) %}
  107.                                                                     {{ article.telephone|telephoneInternational(indicatif_telephone) }}
  108.                                                                 </li>
  109.                                                             {% endif %}
  110.                                                             {% if article.fax %}
  111.                                                                 <li><i class="fas fa-fax gris_ccc" aria-hidden="true"></i>&nbsp;&nbsp;{{ article.fax }}</li>
  112.                                                             {% endif %}
  113.                                                             {% if article.mail_contact %}
  114.                                                                 <li><i class="fas fa-envelope gris_ccc" aria-hidden="true"></i>&nbsp;&nbsp;<a href="mailto:{{ article.mail_contact }}">{{ article.mail_contact }}</a></li>
  115.                                                             {% endif %}
  116.                                                             {% if societe_site is not empty %}
  117.                                                                 <li class="oneline"><i class="fas fa-globe-americas gris_ccc" aria-hidden="true"></i>&nbsp;&nbsp;<a href="{{ societe_site }}" target="_blank" rel="noopener">{{ societe_site }}</a></li>
  118.                                                             {% endif %}
  119.                                                             {% if article.nom_contact1 %}
  120.                                                                 <li><i class="fas fa-user gris_ccc" aria-hidden="true"></i>&nbsp;&nbsp;Contact : {{ article.nom_contact1 }}</li>
  121.                                                             {% endif %}
  122.                                                             {% if article.caEffectif %}
  123.                                                                 <li><i class="fas fa-chart-line gris_ccc" aria-hidden="true"></i>&nbsp;&nbsp;{{ article.caEffectif|raw }}</li>
  124.                                                             {% endif %}
  125.                                                         </ul>
  126.                                                     </div>
  127.                                                 {% endif %}
  128.                                                 <div class="col-6 col-sm-2 mt-2">
  129.                                                     {% set carte_src = article.carteAffichage|default('') %}
  130.                                                     {% if carte_src is empty %}
  131.                                                         {% set carte_src = 'https://www.placedescommerces.com/images/cartes/big/pays/33/33_12.png' %}
  132.                                                     {% endif %}
  133.                                                     <img class="img-fluid"
  134.                                                          src="{{ carte_src }}"
  135.                                                          alt="{{ article.ville|default('Région') }} ( {{ article.pays|default('France') }} )"
  136.                                                          loading="lazy">
  137.                                                 </div>
  138.                                                 {% if article.lienSocieteCom or article.lienParticipation or article.numero_siren %}
  139.                                                     <div class="col-12 col-sm-11 offset-sm-1 small">
  140.                                                         <strong>Informations</strong> :
  141.                                                         {% if article.lienSocieteCom %}
  142.                                                             <a href="{{ article.lienSocieteCom }}" target="_blank" rel="noopener">Societe.com</a>{% if article.lienParticipation or article.numero_siren %}&nbsp;&nbsp;<span class="gris_ddd">|</span>{% endif %}
  143.                                                         {% endif %}
  144.                                                         {% if article.lienParticipation %}
  145.                                                             <a href="{{ article.lienParticipation }}" target="_blank" rel="noopener noreferrer">Participation</a>{% if article.numero_siren %}&nbsp;&nbsp;<span class="gris_ddd">|</span>{% endif %}
  146.                                                         {% endif %}
  147.                                                         {% if article.numero_siren %}
  148.                                                             SIREN: {{ article.numero_siren }}
  149.                                                         {% endif %}
  150.                                                     </div>
  151.                                                 {% endif %}
  152.                                                 <div class="col-12 text-center mt-3 ">
  153.                                                     {% if article.lienFicheComplete is defined and article.lienFicheComplete %}
  154.                                                         <a href="{{ article.lienFicheComplete }}" class="button-rond" role="button" aria-pressed="true" title="" target="_blank" rel="noopener noreferrer">Fiche complète</a>
  155.                                                     {% endif %}
  156.                                                     {% if article.lienAnnuaireParticipation %}
  157.                                                         <a href="{{ article.lienAnnuaireParticipation }}" target="_blank" rel="noopener noreferrer">
  158.                                                             <img src="https://content.fusacq.com/static/fusacq-symfony/css/images/prestataire/logo_annu_particip.png" width="120" alt="Annuaire des participations">
  159.                                                         </a>
  160.                                                     {% endif %}
  161.                                                 </div>
  162.                                             </div>
  163.                                         </div>
  164.                                     </div>
  165.                                 </div>
  166.                             </div>
  167.                         {% endif %}
  168.                         {% if article.dernieres_actualites_societe is defined and article.dernieres_actualites_societe|length > 0 and societe_raison is not empty %}
  169.                             <div
  170.                                     class="row bkg_blanc">
  171.                                 <!-- DERNIERS ACTUS SOCIETE -->
  172.                                 <div class="col-12 mb-3">
  173.                                     <div class="card no_shadow">
  174.                                         <div class="card-body">
  175.                                             <div class="row">
  176.                                                 <div class="col-12 col-sm-11 offset-sm-1">
  177.                                                     <h5 class="gris_666">Toute l'actualité de {{ societe_raison }}</h5>
  178.                                                 </div>
  179.                                                 <div class="col-12 mt-1">
  180.                                                     <table class="table table_col_droite_buzz">
  181.                                                         <tbody>
  182.                                                         {% for actu in article.dernieres_actualites_societe %}
  183.                                                             <tr>
  184.                                                                 <td>
  185.                                                                     <span class="small_buzz">{{ actu.dateAffichage }}</span>
  186.                                                                 </td>
  187.                                                                 <td>
  188.                                                                     <a href="{{ path('buzz_actualite_detail', { 'slug': actu.titre_actualite|slugify, 'id': actu.id_actualite, 'codePays': codePaysWithUnderScore }) }}"
  189.                                                                        title="{{ actu.titre_actualite }}">
  190.                                                                         {{ actu.titre_actualite }}</a>
  191.                                                                 </td>
  192.                                                             </tr>
  193.                                                         {% endfor %}
  194.                                                         </tbody>
  195.                                                     </table>
  196.                                                 </div>
  197.                                             </div>
  198.                                         </div>
  199.                                     </div>
  200.                                 </div>
  201.                                 <!-- DERNIERS ACTUS SOCIETE -->
  202.                             </div>
  203.                         {% endif %}
  204.                         {% set retourUrl = null %}
  205.                         {% set retourTitre = 'Retour' %}
  206.                         {% if article.dernieres_actualites_societe is defined and article.dernieres_actualites_societe|length > 0 %}
  207.                             {% set first_actu = article.dernieres_actualites_societe[0] %}
  208.                             {% set retourUrl = path('buzz_actualite_detail', {
  209.                                 'slug': first_actu.titre_actualite|slugify,
  210.                                 'id': first_actu.id_actualite,
  211.                                 'codePays': codePaysWithUnderScore
  212.                             }) %}
  213.                         {% elseif firstActualite is defined and firstActualite %}
  214.                             {% set retourUrl = path('buzz_actualite_detail', {
  215.                                 'slug': mainActualiteTitre|default('actualite')|slugify,
  216.                                 'id': firstActualite.id_actualite,
  217.                                 'codePays': codePaysWithUnderScore
  218.                             }) %}
  219.                         {% endif %}
  220.                         {% if retourUrl %}
  221.                             <a class="button-rond-simple" href="{{ retourUrl }}" role="button"
  222.                                title="{{ retourTitre }}">
  223.                                 <div class="float-left pt-1">
  224.                                     <i class="fa-solid fa-circle-caret-left"></i>
  225.                                 </div>
  226.                                 <div class="float-left pt-1">&nbsp;&nbsp;{{ retourTitre }}</div>
  227.                             </a>
  228.                         {% endif %}
  229.                     </div>
  230.                     <aside class="col-12 col-lg-3">
  231.                         <div class="row">
  232.                             {{ render_esi(controller(
  233.                                 'App\\Controller\\Buzz\\CoreController::colonneDroiteDetail',
  234.                                 { "codePays": codePaysWithUnderScore,
  235.                                     "lang" : lang,
  236.                                     "authFrom" : authFrom,
  237.                                     "idSecteur": idSecteur,
  238.                                     "idOperation": operationId,
  239.                                     "idActualite": idActualite,
  240.                                     "show_experts_references": true
  241.                                 }
  242.                             )) }}
  243.                         </div>
  244.                     </aside>
  245.                 </div>
  246.             </div>
  247.         </div>
  248.     </div>
  249. {% endblock %}
  250. {% block javascripts %}
  251.     {{ parent() }}
  252.    
  253.     <script>
  254.         document.addEventListener('DOMContentLoaded', function () {
  255.             var imgs = document.querySelectorAll('img[data-fallback]');
  256.             imgs.forEach(function (img) {
  257.                 if (img.dataset.__fallbackBound) {
  258.                     return;
  259.                 }
  260.                 img.dataset.__fallbackBound = '1';
  261.                 img.addEventListener('error', function () {
  262.                     var fallback = img.getAttribute('data-fallback');
  263.                     if (fallback && img.src !== fallback) {
  264.                         img.src = fallback;
  265.                     }
  266.                 }, {once: true});
  267.             });
  268.         });
  269.     </script>
  270. {% endblock %}