| 1 |
<?php |
| 2 |
/** |
| 3 |
* The Template for displaying Filters widget bottom controls. |
| 4 |
* |
| 5 |
* This template can be overridden by copying it to yourtheme/filters/bottom-controls.php. |
| 6 |
* |
| 7 |
* $action_url - string, URL to the page with filtering results |
| 8 |
* $found_posts - int|NULL, found posts number |
| 9 |
* |
| 10 |
* @see https://filtereverything.pro/resources/templates-overriding/ |
| 11 |
*/ |
| 12 |
|
| 13 |
if ( ! defined('ABSPATH') ) { |
| 14 |
exit; |
| 15 |
} |
| 16 |
|
| 17 |
?> |
| 18 |
<div class="wpc-filters-widget-controls-item wpc-filters-widget-controls-one"> |
| 19 |
<a class="wpc-filters-apply-button wpc-posts-loaded" href="<?php echo esc_url($action_url); ?>"><?php |
| 20 |
echo wp_kses( |
| 21 |
sprintf( __('Show %s', 'filter-everything'), |
| 22 |
'<span class="wpc-filters-found-posts-wrapper">(<span class="wpc-filters-found-posts" data-wpc-total-found-posts="' . esc_attr($found_posts) . '">'.esc_html($found_posts).'</span>)</span>'), |
| 23 |
array( 'span' => array('class'=>true, 'data-wpc-total-found-posts'=>true) ) |
| 24 |
); |
| 25 |
?></a> |
| 26 |
</div> |
| 27 |
<div class="wpc-filters-widget-controls-item wpc-filters-widget-controls-two"> |
| 28 |
<a class="wpc-filters-close-button" href="<?php echo esc_url($action_url); ?>"><?php |
| 29 |
echo esc_html__('Cancel', 'filter-everything'); |
| 30 |
?> |
| 31 |
</a> |
| 32 |
</div> |