templates/front/accueil/block_description_new_accueil.html.twig line 1

Open in your IDE?
  1. <div class="blocktextBannier" style="z-index: 1;">
  2.     <h2 class="blocktextBannierH2" style="{% if element.textShadowTitre %}text-shadow: {{ element.textShadowTitre }};{% endif %}{% if element.colorTitre %}color: {{ element.colorTitre }};{% endif %}{% if element.tailleTitre %}font-size: {{ element.tailleTitre }};{% endif %}">{{ element.titre }} </h2>
  3.     <p class="blocktextBannierP"  style="{% if element.textShadow %}text-shadow: {{ element.textShadow }};{% endif %}{% if element.colorDescription %}color: {{ element.colorDescription }};{% endif %}{% if element.tailleDescription %}font-size: {{ element.tailleDescription }};{% endif %}">{{ element.description|raw }}</p>
  4.     {% if element.accueilElementBoutton|length > 0 %}
  5.         {% for item in element.accueilElementBoutton %}
  6.             <div class="blocktextBannierBtn">
  7.                 <a href="{{ item.url }}" id="blocktextBannierBtnA{{ item.id }}" style="{% if item.background %}background: {{ item.background }};{% endif %} {% if item.color %}color: {{ item.color }};{% endif %} font-size: {% if item.taille %}{{ item.taille }}px;{% endif %} {% if item.police %}font-family: {{ item.police }}{% endif %}" target="_blank">{{ item.name }}</a>
  8.             </div>
  9.         {% endfor %}
  10.     {% endif %}
  11. </div>
  12. <style>
  13.     {% if element.accueilElementBoutton|length > 0 %}
  14.         {% for item in element.accueilElementBoutton %}
  15.             #blocktextBannierBtnA{{ item.id }}:hover {
  16.                 {% if item.colorHover %}color: {{ item.colorHover }}!important;{% endif %}
  17.                 {% if item.backgroundHover %}background: {{ item.backgroundHover }}!important;{% endif %}
  18.             }
  19.         {% endfor %}
  20.     {% endif %}
  21. </style>