Just seeing this.... Below is what I used to replace the v9 code display in our Suviant theme. This allows for max 4 slider images and check to see if each is active.
The Readytheme Images didn't need changes.
The Readytheme Images didn't need changes.
Code:
<div class="wrap"> <div class="row sfnt-hero"> <div id="sfnt-slider"> <!-- 1 --> <mvt:item name="readytheme" param="load_image('slider1', l.settings:loaded_image1)" /> <mvt:if expr="l.settings:readytheme:loaded_image1:active"> <mvt:item name="readytheme" param="image( 'slider1' )" /> </mvt:if> <!-- 2 --> <mvt:item name="readytheme" param="load_image('slider2', l.settings:loaded_image2)" /> <mvt:if expr="l.settings:readytheme:loaded_image2:active"> <mvt:item name="readytheme" param="image( 'slider2' )" /> </mvt:if> <!-- 3 --> <mvt:item name="readytheme" param="load_image('slider3', l.settings:loaded_image3)" /> <mvt:if expr="l.settings:readytheme:loaded_image3:active"> <mvt:item name="readytheme" param="image( 'slider3' )" /> </mvt:if> <!-- 4 --> <mvt:item name="readytheme" param="load_image('slider4', l.settings:loaded_image4)" /> <mvt:if expr="l.settings:readytheme:loaded_image4:active"> <mvt:item name="readytheme" param="image( 'slider4' )" /> </mvt:if> </div> <div class="breaker clear"></div> </div> <!-- end sfnt-hero --> </div>
Comment