Initial Commit N° : 001 - V.4.3.3
This commit is contained in:
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Result Count.
|
||||
*
|
||||
* @author NasaTheme
|
||||
* @package Elessi-theme/WooCommerce
|
||||
* @version 9.4.0
|
||||
*/
|
||||
if (!defined('ABSPATH')) :
|
||||
exit; // Exit if accessed directly
|
||||
endif;
|
||||
?>
|
||||
|
||||
<p class="woocommerce-result-count"<?php echo (empty($orderedby) || 1 === intval($total)) ? '' : ' role="alert" aria-relevant="all" data-is-sorted-by="true"'; ?>>
|
||||
<?php
|
||||
if ($total <= $per_page || -1 === $per_page) :
|
||||
echo $total == 1 ? sprintf(esc_html__('%s result', 'elessi-theme'), $total) : sprintf(esc_html__('%s results', 'elessi-theme'), $total);
|
||||
else :
|
||||
$first = ($per_page * $current) - $per_page + 1;
|
||||
$last = min($total, $per_page * $current);
|
||||
$total = $last - $first + 1;
|
||||
|
||||
echo $total == 1 ? sprintf(esc_html__('%s result', 'elessi-theme'), $total) : sprintf(esc_html__('%s results', 'elessi-theme'), $total);
|
||||
|
||||
// $first = ($per_page * $current) - $per_page + 1;
|
||||
// $last = min($total, $per_page * $current);
|
||||
|
||||
// printf(_nx('%1$d–%2$d of %3$d result', '%1$d–%2$d of %3$d results', $total, 'with first and last result', 'elessi-theme'), $first, $last, $total);
|
||||
endif;
|
||||
?>
|
||||
</p>
|
||||
Reference in New Issue
Block a user