PluginProbe
FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler / 1.6.5
FluentCart A New Era of eCommerce – Faster, Lighter, and Simpler v1.6.5
1.6.6 1.6.5 1.6.4 1.6.3 1.6.2 1.6.1 1.6.0 1.5.4 1.5.5 1.5.3 1.5.2 1.5.1 1.5.0 1.4.2 1.4.1 1.4.0 1.3.28 1.3.27 1.3.26 1.3.25 1.3.23 1.3.22 1.3.21 1.3.20 1.3.19 All 49 releases
← All changes | app/Services/Renderer/ProductCardRender.php +13 -17 1.6.2 → 1.6.5 View file →
@@ -294,12 +294,11 @@
294 294 class="fct-product-card-prices"
295 295 role="region"
296 296 aria-label="<?php echo esc_attr__('Product pricing', 'fluent-cart'); ?>">
297 297 <?php if ($comparePrice): ?>
298 - <span class="fct-compare-price" aria-label="<?php echo esc_attr(sprintf(
299 - /* translators: %s: product price */
300 - __('Original price: %s', 'fluent-cart'), $formattedComparePrice)); ?>">
301 - <del aria-hidden="true"><?php echo esc_html($formattedComparePrice); ?></del>
298 + <span class="fct-compare-price">
299 + <span class="fct-sr-only"><?php echo esc_html__('Original price:', 'fluent-cart'); ?></span>
300 + <del><?php echo esc_html($formattedComparePrice); ?></del>
302 301 </span>
303 302 <?php endif; ?>
304 303
305 304 <?php if (!$comparePrice && $maxPrice && $maxPrice > $minPrice): ?>
@@ -304,30 +303,27 @@
304 303
305 304 <?php if (!$comparePrice && $maxPrice && $maxPrice > $minPrice): ?>
306 305 <!-- Case 2: price range -->
307 306 <?php if ($priceFormat === 'range'): ?>
308 - <span class="fct-item-price" aria-label="<?php echo esc_attr(sprintf(
309 - /* translators: %1$s: min price, %2$s: max price */
310 - __('Price range from %1$s to %2$s', 'fluent-cart'), $formattedMinPrice, $formattedMaxPrice)); ?>">
311 - <span aria-hidden="true"><?php echo esc_html($formattedMinPrice); ?> - <?php echo esc_html($formattedMaxPrice); ?></span>
307 + <span class="fct-item-price">
308 + <span class="fct-sr-only"><?php echo esc_html__('Price range:', 'fluent-cart'); ?></span>
309 + <?php echo esc_html($formattedMinPrice); ?>
310 + <span aria-hidden="true">-</span>
311 + <span class="fct-sr-only"><?php echo esc_html__('to', 'fluent-cart'); ?></span>
312 + <?php echo esc_html($formattedMaxPrice); ?>
312 313 </span>
313 314 <?php else: ?>
314 - <span class="fct-item-price" aria-label="<?php echo esc_attr(sprintf(
315 - /* translators: %s: min price */
316 - __('Starting from %s', 'fluent-cart'), $formattedMinPrice)); ?>">
317 - <span aria-hidden="true"><?php
315 + <span class="fct-item-price"><?php
318 316 /* translators: %s is the minimum price */
319 317 printf(esc_html__('From %s', 'fluent-cart'), esc_html($formattedMinPrice));
320 318 ?></span>
321 - </span>
322 319 <?php endif; ?>
323 320
324 321 <?php else: ?>
325 322 <!-- Case 3: Simple or single price -->
326 - <span class="fct-item-price" aria-label="<?php echo esc_attr(sprintf(
327 - /* translators: %s: product price */
328 - __('Price: %s', 'fluent-cart'), $formattedMinPrice)); ?>">
329 - <span aria-hidden="true"><?php echo esc_html($formattedMinPrice); ?></span>
323 + <span class="fct-item-price">
324 + <span class="fct-sr-only"><?php echo esc_html__('Price:', 'fluent-cart'); ?></span>
325 + <?php echo esc_html($formattedMinPrice); ?>
330 326 </span>
331 327 <?php endif; ?>
332 328
333 329 <?php