Last active
September 25, 2020 04:23
-
-
Save jorgehernandezSF/f01193e56b8952253a4d36dab1783fe8 to your computer and use it in GitHub Desktop.
Top Seller Tile component type: ISML template
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<isscript> | |
var assets = require('*/cartridge/scripts/assets.js'); | |
assets.addCss('/css/producttile.css'); | |
assets.addCss('/css/component.css'); | |
</isscript> | |
<figure class="component-figure product_centered-text"> | |
<picture> | |
<isif condition="${pdict.image}"> | |
<img class="component-image" src="${pdict.image.src}" <isif condition="${pdict.image.alt}">alt="${pdict.image.alt}" title="${pdict.image.alt}"</isif> /> | |
</isif> | |
</picture> | |
<figcaption class="product-text_container"> | |
<div> | |
<span class="product-text"><isprint value="${pdict.headline}"/></span> | |
</div> | |
<isif condition="${pdict.promotion_message}"> | |
<div> | |
<span class="product-text"><isprint value="${pdict.promotion_message}"/></span> | |
</div> | |
</isif> | |
<div> | |
<a class="producttile-button" href="${pdict.url}">${Resource.msg('button.shop_now', 'topsellertile', null)}</a> | |
</div> | |
</figcaption> | |
</figure> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment