<?php
/**
 * Header search section
 *
 * @package wpstream-theme
 */

$wpstream_theme_header_design_type = get_theme_mod( 'wpstream_theme_header_design_type', 'header-type-1' );

if ( 'header-type-1' === $wpstream_theme_header_design_type || 'header-type-2' === $wpstream_theme_header_design_type ) { ?>
	<div class="wpstream-theme-top-search">
		<!-- Search Toggle -->
		<?php
		include get_template_directory() . '/template-parts/header-templates/header-search.php';
		?>
	</div>
<?php } elseif ( 'header-type-3' === $wpstream_theme_header_design_type ) { ?>
	<button class="btn btn-outline-secondary wpstream-theme-search-icon" type="button">
		<?php  echo wpstream_theme_get_svg_icon( 'search.svg' ); ?>
	</button>
	<div class="wpstream-theme-top-search">
		<!-- Search Toggle -->
		<?php
		include get_template_directory() . '/template-parts/header-templates/header-search.php';
		?>
		
	</div>
<?php } ?>