Last active
January 1, 2021 20:10
-
-
Save molotow11/ddeaf2d5acb5c6c0c6411ec1e450bd15 to your computer and use it in GitHub Desktop.
usf.js file modification for add banners
This file contains 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
<template v-if="view === 'grid'"> | |
<template v-for="(p, key) in result.items"> | |
<!-- added for collections banner --> | |
<div :class="\'grid__item collection-banner\'" v-if="window.banner1_position == key" v-html="window.banner1_layout"></div> | |
<!-- banner 2 --> | |
<div :class="\'grid__item collection-banner\'" v-if="window.banner2_position == key" v-html="window.banner2_layout"></div> | |
<!-- /// --> | |
<usf-sr-griditem :product="p" :result="result"></usf-sr-griditem> | |
</template> | |
</template> | |
<template v-else> | |
<template v-for="(p, key) in result.items"> | |
<!-- added for collections banner --> | |
<div :class="\'grid__item collection-banner\'" v-if="window.banner1_position == key" v-html="window.banner1_layout"></div> | |
<!-- banner 2 --> | |
<div :class="\'grid__item collection-banner\'" v-if="window.banner2_position == key" v-html="window.banner2_layout"></div> | |
<!-- /// --> | |
<usf-sr-listitem :product="p" :result="result"></usf-sr-listitem> | |
</template> | |
</template> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
searchResults: part modified at line 156:184