| 1 |
<?php |
| 2 |
/** |
| 3 |
* Result Count |
| 4 |
* |
| 5 |
* Shows text: Showing x - x of x results |
| 6 |
* |
| 7 |
* @author PropertyHive |
| 8 |
* @package PropertyHive/Templates |
| 9 |
* @version 1.0.0 |
| 10 |
*/ |
| 11 |
|
| 12 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly |
| 13 |
|
| 14 |
global $propertyhive; |
| 15 |
|
| 16 |
?> |
| 17 |
<p class="propertyhive-result-count"> |
| 18 |
<?php |
| 19 |
if ( 1 == $total ) { |
| 20 |
_e( 'Showing the single result', 'propertyhive' ); |
| 21 |
} elseif ( $total <= $per_page || -1 == $per_page ) { |
| 22 |
printf( __( 'Showing %s properties', 'propertyhive' ), number_format($total) ); |
| 23 |
} else { |
| 24 |
printf( _x( 'Showing %1$s–%2$s of %3$s properties', '%1$s = first, %2$s = last, %3$s = total', 'propertyhive' ), number_format($first), number_format($last), number_format($total) ); |
| 25 |
} |
| 26 |
?> |
| 27 |
</p> |