|
| 1 | +{% assign product = include.product %} |
| 2 | +<article class="store-product-card{% if include.featured %} store-product-card-featured{% endif %}"> |
| 3 | + <div class="store-product-summary"> |
| 4 | + <div class="store-product-media store-product-media-{{ product.cover.aspect | default: 'landscape' }}"> |
| 5 | + <a href="{{ product.details.url }}" aria-label="Learn more about {{ product.name | escape }}"> |
| 6 | + <img |
| 7 | + class="store-product-image crowdin-ignore" |
| 8 | + src="{{ product.cover.src }}" |
| 9 | + alt="{{ product.cover.alt | escape }}" |
| 10 | + loading="lazy" |
| 11 | + > |
| 12 | + </a> |
| 13 | + {% if product.badges %} |
| 14 | + <ul class="store-product-badges list-unstyled" aria-label="Product compatibility"> |
| 15 | + {% for badge in product.badges %} |
| 16 | + <li class="store-product-badge"> |
| 17 | + {% if badge.icon %}<i class="{{ badge.icon }}" aria-hidden="true"></i>{% endif %} |
| 18 | + {{ badge.label }} |
| 19 | + </li> |
| 20 | + {% endfor %} |
| 21 | + </ul> |
| 22 | + {% endif %} |
| 23 | + </div> |
| 24 | + |
| 25 | + <div class="store-product-content"> |
| 26 | + <div class="store-product-details"> |
| 27 | + <div class="store-product-heading"> |
| 28 | + <span class="store-product-category">{{ product.category }}</span> |
| 29 | + <h3 class="store-product-title">{{ product.name }}</h3> |
| 30 | + <p class="store-product-tagline">{{ product.tagline }}</p> |
| 31 | + </div> |
| 32 | + |
| 33 | + <p class="store-product-description">{{ product.description }}</p> |
| 34 | + |
| 35 | + {% if product.features %} |
| 36 | + <ul class="store-product-features"> |
| 37 | + {% for feature in product.features %} |
| 38 | + <li> |
| 39 | + <i class="fa-solid fa-circle-check" aria-hidden="true"></i> |
| 40 | + <span>{{ feature }}</span> |
| 41 | + </li> |
| 42 | + {% endfor %} |
| 43 | + </ul> |
| 44 | + {% endif %} |
| 45 | + </div> |
| 46 | + |
| 47 | + <div class="store-product-purchase"> |
| 48 | + {% if product.prices %} |
| 49 | + <div class="store-product-prices" aria-label="Pricing options"> |
| 50 | + {% for price in product.prices %} |
| 51 | + <div class="store-price-option"> |
| 52 | + <span class="store-price-amount crowdin-ignore">{{ price.amount }}</span> |
| 53 | + <span class="store-price-label">{{ price.label }}</span> |
| 54 | + </div> |
| 55 | + {% endfor %} |
| 56 | + </div> |
| 57 | + {% endif %} |
| 58 | + |
| 59 | + {% if product.price_note %} |
| 60 | + <p class="store-product-price-note"> |
| 61 | + <i class="fa-solid fa-display" aria-hidden="true"></i> |
| 62 | + {{ product.price_note }} |
| 63 | + </p> |
| 64 | + {% endif %} |
| 65 | + |
| 66 | + <div class="store-product-actions"> |
| 67 | + {% for offer in product.offers %} |
| 68 | + <a |
| 69 | + class="btn btn-primary" |
| 70 | + href="{{ offer.url }}" |
| 71 | + {% if offer.external %} |
| 72 | + target="_blank" |
| 73 | + rel="noopener" |
| 74 | + {% endif %} |
| 75 | + > |
| 76 | + {% if offer.icon %}<i class="{{ offer.icon }}" aria-hidden="true"></i>{% endif %} |
| 77 | + {{ offer.label }} |
| 78 | + <span class="visually-hidden"> |
| 79 | + for {{ product.name }}{% if offer.store %} from {{ offer.store }}{% endif %} |
| 80 | + </span> |
| 81 | + </a> |
| 82 | + {% endfor %} |
| 83 | + {% if product.details %} |
| 84 | + <a class="btn btn-outline-theme" href="{{ product.details.url }}"> |
| 85 | + {{ product.details.label }} |
| 86 | + <i class="fa-solid fa-arrow-right" aria-hidden="true"></i> |
| 87 | + </a> |
| 88 | + {% endif %} |
| 89 | + </div> |
| 90 | + |
| 91 | + {% for offer in product.offers %} |
| 92 | + {% if offer.store %} |
| 93 | + <p class="store-product-seller"> |
| 94 | + <i class="fa-solid fa-lock" aria-hidden="true"></i> |
| 95 | + Checkout provided by {{ offer.store }} |
| 96 | + </p> |
| 97 | + {% endif %} |
| 98 | + {% endfor %} |
| 99 | + </div> |
| 100 | + </div> |
| 101 | + </div> |
| 102 | + |
| 103 | + {% if product.screenshots %} |
| 104 | + <section class="store-product-gallery" aria-labelledby="{{ product.id }}-screenshots"> |
| 105 | + <div class="store-product-gallery-heading"> |
| 106 | + <span class="store-product-category">Gallery</span> |
| 107 | + <h4 id="{{ product.id }}-screenshots">Screenshots</h4> |
| 108 | + </div> |
| 109 | + <div class="store-screenshot-grid"> |
| 110 | + {% for screenshot in product.screenshots %} |
| 111 | + <button |
| 112 | + class="store-screenshot-thumbnail" |
| 113 | + type="button" |
| 114 | + data-bs-toggle="modal" |
| 115 | + data-bs-target="#{{ product.id }}-gallery" |
| 116 | + data-store-slide="{{ forloop.index0 }}" |
| 117 | + aria-label="View screenshot {{ forloop.index }} of {{ product.screenshots.size }}: {{ screenshot.alt | escape }}" |
| 118 | + > |
| 119 | + <img |
| 120 | + class="crowdin-ignore" |
| 121 | + src="{{ screenshot.src }}" |
| 122 | + alt="" |
| 123 | + loading="lazy" |
| 124 | + > |
| 125 | + <span class="store-screenshot-expand" aria-hidden="true"> |
| 126 | + <i class="fa-solid fa-expand"></i> |
| 127 | + </span> |
| 128 | + </button> |
| 129 | + {% endfor %} |
| 130 | + </div> |
| 131 | + </section> |
| 132 | + {% endif %} |
| 133 | +</article> |
| 134 | + |
| 135 | +{% if product.screenshots %} |
| 136 | + <div |
| 137 | + class="modal fade store-gallery-modal" |
| 138 | + id="{{ product.id }}-gallery" |
| 139 | + tabindex="-1" |
| 140 | + aria-labelledby="{{ product.id }}-gallery-title" |
| 141 | + aria-hidden="true" |
| 142 | + > |
| 143 | + <div class="modal-dialog modal-xl modal-dialog-centered"> |
| 144 | + <div class="modal-content"> |
| 145 | + <div class="modal-header"> |
| 146 | + <h2 class="modal-title fs-5" id="{{ product.id }}-gallery-title"> |
| 147 | + {{ product.name }} screenshots |
| 148 | + </h2> |
| 149 | + <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button> |
| 150 | + </div> |
| 151 | + <div class="modal-body"> |
| 152 | + <div |
| 153 | + class="carousel slide store-gallery-carousel" |
| 154 | + id="{{ product.id }}-carousel" |
| 155 | + data-bs-interval="false" |
| 156 | + data-bs-keyboard="true" |
| 157 | + tabindex="-1" |
| 158 | + aria-label="{{ product.name | escape }} screenshot viewer" |
| 159 | + > |
| 160 | + <div class="carousel-inner"> |
| 161 | + {% for screenshot in product.screenshots %} |
| 162 | + <figure class="carousel-item{% if forloop.first %} active{% endif %}"> |
| 163 | + <img |
| 164 | + class="store-gallery-image crowdin-ignore" |
| 165 | + src="{{ screenshot.src }}" |
| 166 | + alt="{{ screenshot.alt | escape }}" |
| 167 | + > |
| 168 | + {% if screenshot.caption %} |
| 169 | + <figcaption class="store-gallery-caption">{{ screenshot.caption }}</figcaption> |
| 170 | + {% endif %} |
| 171 | + </figure> |
| 172 | + {% endfor %} |
| 173 | + </div> |
| 174 | + |
| 175 | + {% if product.screenshots.size > 1 %} |
| 176 | + <button |
| 177 | + class="carousel-control-prev" |
| 178 | + type="button" |
| 179 | + data-bs-target="#{{ product.id }}-carousel" |
| 180 | + data-bs-slide="prev" |
| 181 | + > |
| 182 | + <span class="carousel-control-prev-icon" aria-hidden="true"></span> |
| 183 | + <span class="visually-hidden">Previous screenshot</span> |
| 184 | + </button> |
| 185 | + <button |
| 186 | + class="carousel-control-next" |
| 187 | + type="button" |
| 188 | + data-bs-target="#{{ product.id }}-carousel" |
| 189 | + data-bs-slide="next" |
| 190 | + > |
| 191 | + <span class="carousel-control-next-icon" aria-hidden="true"></span> |
| 192 | + <span class="visually-hidden">Next screenshot</span> |
| 193 | + </button> |
| 194 | + {% endif %} |
| 195 | + </div> |
| 196 | + </div> |
| 197 | + </div> |
| 198 | + </div> |
| 199 | + </div> |
| 200 | +{% endif %} |
0 commit comments