<?php
/**
 * The search form
 * 
 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/
 *
 * @package WordPress
 * @subpackage IZI_THEME
 * @since 1.0
 */

if (is_404()) { ?>
	<form class="iziform" action="<?php echo home_url( '/' ); ?>" method="get">
		<div class="input-group mb-4">
			<input type="text" class="form-control form-control-lg" value="<?php the_search_query(); ?>" name="s" aria-label="votre recherche.." placeholder="Trouves une série à regarder...">
			<div class="input-group-append">
				<button type="submit" class="btn btn-outline-secondary btn-lg" value="OK">GO</button>
			</div>
		</div>
	</form>

<?php } else { ?>
	<form class="iziform" action="<?php echo home_url( '/' ); ?>" method="get">
			<div class="row my-3">
				<div class="col-lg-9 mb-3">
					<input type="text" class="form-control form-control-lg" value="<?php the_search_query(); ?>" name="s" aria-label="votre recherche.." placeholder="Trouves une série à regarder...">
				</div>
				<div class="col-lg-3 d-grid mb-3">
					<button type="submit" class="btn btn-secondary btn-lg" value="OK">Rechercher</button>
				</div>
			</div>
		</form>
	<?php }

		

