Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
2.7 kB
3
Indexable
Never
<div if="hasData()"
     class="block" css="additionalClasses">
    <span class="block-title amtheme-title" role="heading" text="label"></span>
    <div class="block-content content">
        <div class="products wrapper" css="'products-' + displayMode">
            <ol class="products list items product-items amtheme-products-secondary -full-width">
                <li class="item product product-item" repeat="foreach: filteredRows, item: '$row'">
                    <div class="product-item-info">
                        <div class="product-photo-wrapper">
                            <fastForEach args="data: getRegion('general-area'), as: '$col'" >
                                <render args="$col.getBody()"></render>
                            </fastForEach>
                        </div>

                        <div class="product details product-item-details">
                            <div if="getRegion('details-area')().length || getRegion('action-secondary-area')().length"
                                 class="product-details-action">
                                <fastForEach args="data: getRegion('details-area'), as: '$col'" >
                                    <render args="$col.getBody()"></render>
                                </fastForEach>
                                <div if="getRegion('action-secondary-area')().length"
                                     class="amtheme-icon-wrapper"
                                     data-role="add-to-links">
                                    <fastForEach args="data: getRegion('action-secondary-area'), as: '$col'" >
                                        <render args="$col.getBody()"></render>
                                    </fastForEach>
                                </div>
                            </div>

                            <div if="getRegion('description-area')().length"
                                 class="product-item-description">
                                <fastForEach args="data: getRegion('description-area'), as: '$col'" >
                                    <render args="$col.getBody()"></render>
                                </fastForEach>
                            </div>

                            <div class="product actions product-item-actions" if="getRegion('action-primary-area')().length">
                                <fastForEach args="data: getRegion('action-primary-area'), as: '$col'" >
                                    <render args="$col.getBody()"></render>
                                </fastForEach>
                            </div>
                        </div>
                    </div>
                </li>
            </ol>
        </div>
    </div>
</div>