<?php
/**
 * Template: Jobs Search Form Reset Button
 *
 * Override this in your theme by copying it to wp-content/themes/{yourtheme}/matador/parts/jobs-search-field-reset.php
 *
 * @link        https://matadorjobs.com/
 * @since       3.3.0
 *
 * @package     Matador Jobs
 * @subpackage  Templates
 * @author      Matador Software LLC, Jeremy Scott, Paul Bearne
 * @copyright   (c) 2018-2021, Matador Software, LLC
 *
 * @license     https://opensource.org/licenses/GPL-3.0 GNU General Public License version 3
 */

if ( ! defined( 'ABSPATH' ) ) {
	exit; // Exit if accessed directly.
}

/**
 * Action: Matador Search Reset Button Class
 *
 * Filters the class attribute of the submit button for the Matador Search form.
 *
 * @since 3.3.0
 * @deprecated 3.6.0. Please use 'matador_template_button_classes' in combination with the ID
 *
 * @param string $class
 *
 * @return string $class
 */
$button_class = apply_filters( 'matador_search_form_reset_button_class', 'matador-search-reset' );
?>

<div class="matador-search-form-field-group matador-search-form-field-reset">

	<button type="reset" id="matador-search-reset" class="<?php matador_button_classes( [ $button_class, 'matador-button', 'matador-button-secondary' ], 'secondary' ); ?>">
		<?php
		/**
		 * Filter: Matador Search From Reset Label
		 *
		 * Modifies the text of the Submit button
		 *
		 * @since 3.3.0
		 */
		echo wp_kses_post( apply_filters( 'matador_search_form_reset_label', __( 'Clear', 'matador-jobs' ) ) );
		?>
	</button>

</div>
