{% set widthFirstColumn = pimcore_select('widthFirstColumn').getData() %}{% set widthSecondColumn = pimcore_select('widthSecondColumn').getData() %}{% set widthThirdColumn = pimcore_select('widthThirdColumn').getData() %}{% set widthFourthColumn = pimcore_select('widthFourthColumn').getData() %}{% set titleImage1TextColor = pimcore_select('titleImage1TextColor').getData() %}{% set titleImage2TextColor = pimcore_select('titleImage2TextColor').getData() %}{% set titleImage3TextColor = pimcore_select('titleImage3TextColor').getData() %}{% set titleImage4TextColor = pimcore_select('titleImage4TextColor').getData() %}{% set card1BackgroundColor = pimcore_select('card1BackgroundColor').getData() %}{% set card2BackgroundColor = pimcore_select('card2BackgroundColor').getData() %}{% set card3BackgroundColor = pimcore_select('card3BackgroundColor').getData() %}{% set card4BackgroundColor = pimcore_select('card4BackgroundColor').getData() %}{% set imageType1 = pimcore_select('imageType1').getData() %}{% set imageType2 = pimcore_select('imageType2').getData() %}{% set imageType3 = pimcore_select('imageType3').getData() %}{% set imageType4 = pimcore_select('imageType4').getData() %}<div class="row gx-0 gx-lg-20 gy-20"> {% if (widthFirstColumn != 0) %} <div class="col-12 col-md-{{ widthFirstColumn }} "> {{ pimcore_link('linkCard1') }} {% set linkCard1 = pimcore_link('linkCard1') %} <a href="{{ linkCard1.getHref() ?: '#' }}" class="product home position-relative d-block overflow-hidden bg-{{ card1BackgroundColor }} text-center d-flex flex-column justify-content-center align-content-center"> {% if (editmode or (not editmode and imageType1 == 'image'))%} <div class="image p-40 p-lg-80"> {{ pimcore_image("image1") }} </div> {% endif %} {% if (not editmode and imageType1 == 'background')%} <div class="image background" > {{ pimcore_image("image1").thumbnail('cards1_image').html({ 'pictureAttributes': { 'class': '' }, 'imgAttributes': { 'class': 'w-100 h-100 object-fit-cover' } }) | raw }} </div> {% endif %} <div class="position-absolute bottom-0 start-0 w-100 text-center px-20 py-5 my-40 z-1"> <span class="h4 fw-normal text-center ps-5 position-relative text-{{ titleImage1TextColor }}"> {{ pimcore_input("titleImage1",{ "width": '100%', "placeholder": "Titolo Immagine 1" }) }} </span> </div> </a> </div> {% endif %} {% if (widthSecondColumn != 0) %} <div class="col-12 col-md-{{ widthSecondColumn }} "> {{ pimcore_link('linkCard2') }} {% set linkCard2 = pimcore_link('linkCard2') %} <a href="{{ linkCard2.getHref() ?: '#' }}" class="product home position-relative d-block overflow-hidden bg-{{ card2BackgroundColor }} text-center d-flex flex-column justify-content-center align-content-center"> {% if (editmode or (not editmode and imageType2 == 'image'))%} <div class="image p-40 p-lg-80"> {{ pimcore_image("image2") }} </div> {% endif %} {% if (not editmode and imageType2 == 'background')%} <div class="image background" style="background-image: url({{ pimcore_image("image2").getSrc() }})"> </div> {% endif %} <div class="position-absolute bottom-0 start-0 w-100 text-center px-20 py-5 my-40 z-1"> <span class="h4 fw-normal text-center ps-5 position-relative text-{{ titleImage2TextColor }}"> {{ pimcore_input("titleImage2",{ "width": '100%', "placeholder": "Titolo Immagine 2" }) }} </span> </div> </a> </div> {% endif %} {% if (widthThirdColumn != 0) %} <div class="col-12 col-md-{{ widthThirdColumn }} "> {{ pimcore_link('linkCard3') }} {% set linkCard3 = pimcore_link('linkCard3') %} <a href="{{ linkCard3.getHref() ?: '#' }}" class="product home position-relative d-block overflow-hidden bg-{{ card3BackgroundColor }} text-center d-flex flex-column justify-content-center align-content-center"> {% if (editmode or (not editmode and imageType3 == 'image'))%} <div class="image p-40 p-lg-80"> {{ pimcore_image("image3") }} </div> {% endif %} {% if (not editmode and imageType3 == 'background')%} <div class="image background" style="background-image: url({{ pimcore_image("image3").getSrc() }})"> </div> {% endif %} <div class="position-absolute bottom-0 start-0 w-100 text-center px-20 py-5 my-40 z-1"> <span class="h4 fw-normal text-center ps-5 position-relative text-{{ titleImage3TextColor }}"> {{ pimcore_input("titleImage3",{ "width": '100%', "placeholder": "Titolo Immagine 3" }) }} </span> </div> </a> </div> {% endif %} {% if (widthFourthColumn != 0) %} <div class="col-12 col-md-{{ widthFourthColumn }} "> {{ pimcore_link('linkCard4') }} {% set linkCard4 = pimcore_link('linkCard4') %} <a href="{{ linkCard4.getHref() ?: '#' }}" class="product home position-relative d-block overflow-hidden bg-l{{ card4BackgroundColor }} text-center d-flex flex-column justify-content-center align-content-center"> {% if (editmode or (not editmode and imageType4 == 'image'))%} <div class="image p-40 p-lg-80"> {{ pimcore_image("image4") }} </div> {% endif %} {% if (not editmode and imageType4 == 'background')%} <div class="image background" style="background-image: url({{ pimcore_image("image4").getSrc() }})"> </div> {% endif %} <div class="position-absolute bottom-0 start-0 w-100 text-center px-20 py-5 my-40 z-1"> <span class="h4 fw-normal text-center ps-5 position-relative text-{{ titleImage4TextColor }}"> {{ pimcore_input("titleImage4",{ "width": '100%', "placeholder": "Titolo Immagine 4" }) }} </span> </div> </a> </div> {% endif %}</div>