Guest User

Untitled

a guest
Jul 19th, 2018
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. <div id="its-category-slideshow">
  2. <ss:foreach item="category" within="$catalog.categoryList()">
  3. <ss:set name="categorySlideshowPhoto" value="$string.concat('slideshow_', $string.concat( $string.replace( $string.toLowerCase($string.replace($category.parentChainDisplay, ':', '_')), '[^a-zA-Z0-9\_]', ''), '.jpg'))"/>
  4. <ss:if test="$store.images.getItem($categorySlideshowPhoto).exists()">
  5. <ss:set name="categoryLink" value="/"/>
  6. <ss:foreach item="item" within="$category.parentCollection()">
  7. <ss:set name="clean" value="$string.replace($string.toLowerCase($item.name), ' ', '-')"/>
  8. <ss:set name="categoryLink" value="$system.concat($categoryLink, $system.concat($clean, '/'))"/>
  9. </ss:foreach>
  10. <div><ss:link source="$categoryLink"><ss:image source="$store.images.getItem($categorySlideshowPhoto)" alt="$category.name"/></ss:link></div>
  11. </ss:if>
  12. </ss:foreach>
  13. </div>
Add Comment
Please, Sign In to add comment