PluginProbe
Filter Everything — WordPress & WooCommerce Filters / 1.2.4
Filter Everything — WordPress & WooCommerce Filters v1.2.4
1.9.7 1.9.6 1.9.5 1.9.4 1.9.3 1.9.2.2 1.9.2.1 trunk 1.2.1 1.2.3 1.2.4 1.2.5 1.3.0 1.3.1 1.3.2 1.4.1 1.4.4 1.4.5 1.4.8 1.4.9 1.5.0 1.5.1 1.6.0 1.6.1 1.6.2 All 52 releases
filter-everything / views / frontend / posts-found.php

posts-found.php in Filter Everything — WordPress & WooCommerce Filters 1.2.4, at views/frontend/posts-found.php

41 lines 1.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /**
3 * The Template for displaying Filters found posts number.
4 *
5 * This template can be overridden by copying it to yourtheme/filter/posts-found.php.
6 *
7 * $posts_found - int|NULL, posts found number
8 * $singular_label - string label for single found post
9 * $plural_label - string label for multiple found posts
10 *
11 * @see https://filtereverything.pro/resources/templates-overriding/
12 */
13
14 if ( ! defined('WPINC') ) {
15 wp_die();
16 }
17
18 ?>
19 <div class="wpc-posts-found" data-found="<?php echo esc_attr( $posts_found_count ); ?>">
20 <p><?php
21 if( $posts_found_count !== NULL ) {
22 $class = ( $posts_found_count > 1 ) ? 'wpc-posts-found-number wpc-plural' : 'wpc-posts-found-number';
23 $label = ( $posts_found_count > 1 ) ? $plural_label : $singular_label;
24
25 echo wp_kses(
26 sprintf( _n(
27 '<span class="%s">%d</span> %s found',
28 '<span class="%s">%d</span> %s found',
29 $posts_found_count,
30 'filter-everything'
31 ), $class, $posts_found_count, $label ),
32 array(
33 'span' => array('class' => true)
34 )
35 );
36
37 }else{
38 echo '&nbsp;';
39 }
40 ?></p>
41 </div>