Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
breakoutModewide
languagehtml
<div class="featured-items-content__item featured-items-content__item--{{type}}">
    {{#if pinned}}
        <span class="featured-items-content__pin">
            <hawksearch-icon name="star"></hawksearch-icon>
        </span>
    {{/if}}
    {{#if (lt salePrice price)}}
        <span class="searchfeatured-resultsitems-itemcontent__sale-indicator">Sale</span>
    {{/if}}
    {{#if (eq type "product")}}
        <a hawksearch-link href="{{url}}" class="featured-items-content__item__image">
            <img hawksearch-image src="{{imageUrl}}" alt="" />
        </a>
    {{/if}}
    <div class="featured-items-content__item__title">
        <a hawksearch-link href="{{url}}">{{title}}</a>
    </div>
    {{#unless (eq salePrice undefined)}}
        <div class="featured-items-content__item__price">
            {{#if (lt salePrice price)}}
                <span class="featured-items-content__item__price__original">{{currency price 0}}</span>
                <span class="featured-items-content__item__price__current">{{currency salePrice 0}}</span>
            {{else}}
                <span class="featured-items-content__item__price-__current">{{currency salePrice 0}}</span>
            {{/if}}
        </div>
    {{/unless}}
</div>