templates/front/theme1/modele/parallax.html.twig line 1

Open in your IDE?
  1. <section id="widget-{{widget.id}}" class="sec-parallax espace-p-bottom text-center" style="background-color:{{widget.bgcolor}}">
        {% set parametre = ParametreSite() %}
        {% set type_lien = widget.typelien %}
        {% set lien_interne = widget.lieninterne %}
        {% set lien_externe = widget.lienexterne %}
        {% set telephone = widget.telephone %}
    
       {#  {% if type_lien != 1 %}
            <a class="full-link" href="{% if type_lien == 2 %}{{slug_link_interne(lien_interne) }}{% elseif type_lien == 3 %}{{lien_externe }}{% elseif type_lien == 4 %}tel:{{telephone }}{% endif %}" {% if type_lien == 3 %}target="_blank"{% endif %} title="{{widget.buttonlabel}}"></a>
        {% endif %} #}
        {% if not is_mobile() and not is_tablet() %}
        <img src="{{asset_image(widget.bgimage,'large')}}" data-speed="-1" class="img-parallax" alt="{{widget.subTitle}}">
        {% endif %}
        <div class="ctn-parallax">
            <div class="container-fluid wrapper">
                <div class="item-ctn-parallax">
                    {% if parametre.actiftitre == true %}
                        <div class="titre_site">{{parametre.titre|raw}}</div>
                    {% endif %}
                    {% if widget.subTitle is not empty  %}
                        <div class="sub-title wow fadeInUp" >
                        {% if type_lien != 1 %}
                        <a href="{% if type_lien == 2 %}{{slug_link_interne(lien_interne) }}{% elseif type_lien == 3 %}{{lien_externe }}{% elseif type_lien == 4 %}tel:{{telephone }}{% endif %}" {% if type_lien == 3 %}target="_blank"{% endif %} title="{{widget.buttonlabel}}">
                        {% endif %}
    
                        {{widget.subTitle|raw}}
    
                        {% if type_lien != 1 %}
                            </a>
                        {% endif %}
                        
                        </div>
                    {% endif %}
                    {% if widget.description is not empty  %}
                        <div class="texte-content">{{widget.description|raw}}</div>
                    {% endif %}
                    {% if type_lien != 1 and widget.buttonlabel != '' %}
    
                        <button class="btn-back-pulse" onclick="window.open('{% if type_lien == 2 %}{{slug_link_interne(lien_interne) }}{% elseif type_lien == 3 %}{{lien_externe }}{% elseif type_lien == 4 %}tel:{{telephone }}{% endif %}','{% if type_lien == 3 %}_blank{% else %}_self{% endif %}');" title="{{widget.buttonlabel}}">{{widget.buttonlabel}}</button>
    
                        
                    {% endif %}
                </div>
            </div>
        </div>
    </section>