You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<!-- TODO: Make lines 8-11 variables so that you can set the names in the template --><r:set_varname="triptych_items" value="{$triptych_items}" default="3" /><divclass="wvu-triptych <r:var name="wvu-triptych__classes" />"><divclass="wvu-triptych__container"><r:loop:eachtimes="{$triptych_items}"><divclass="wvu-spotlight"><r:set_varname="region1">wvu-triptych__image-<r:item/></r:set_var><r:set_varname="region2">wvu-triptych__header-<r:item/></r:set_var><r:set_varname="region3">wvu-triptych__description-<r:item/></r:set_var><r:set_varname="region4">wvu-triptych__button-<r:item/></r:set_var><divclass="wvu-spotlight__image"><r:editable_regionname="{$region1}" /></div><divclass="wvu-spotlight__copy"><h2><r:editable_regionname="{$region2}" type="simple" /></h2><p><r:editable_regionname="{$region3}" type="simple" /></p><r:editable_regionname="{$region4}" /></div></div></r:loop:each></div><!-- /.wvu-triptych__container --></div><!-- /.wvu-triptych -->
The text was updated successfully, but these errors were encountered:
Lots of repeated code in that partial. It would be better to use
<r:loop:each>
and variables to keep that DRYer (and more configurable).Here's a start (much thanks goes to @nreckart):
The text was updated successfully, but these errors were encountered: