class-listing-search-form.php
<?php
namespace HivePress\Blocks;
use HivePress\Helpers as hp;
defined( 'ABSPATH' ) || exit;
class Listing_Search_Form extends Form {
public static function init( $meta = [] ) {
$meta = hp\merge_arrays(
[
'label' => hivepress()->translator->get_string( 'listing_search_form' ),
],
$meta
);
parent::init( $meta );
}
public function __construct( $args = [] ) {
$args = hp\merge_arrays(
[
'form' => 'listing_search',
'attributes' => [
'class' => [ 'hp-form--wide', 'hp-form--primary', 'hp-block' ],
],
],
$args
);
parent::__construct( $args );
}
}