HEX
Server: Apache
System: Linux pdx1-shared-a2-04 6.6.104-grsec-jammy+ #3 SMP Tue Sep 16 00:28:11 UTC 2025 x86_64
User: dh_hwg2wc (6369923)
PHP: 8.1.33
Disabled: NONE
Upload Files
File: /home/dh_hwg2wc/fnaluxury.com/wp-content/themes/houzez/template-parts/search/search-v1.php
<?php
global $sticky_hidden, $sticky_data, $hidden_data;
$search_builder = houzez_search_builder();
$layout = $search_builder['enabled'];

if(empty($layout)) {
	$layout = array();
}

if(!taxonomy_exists('property_country')) {
    unset($layout['country']);
}

if(!taxonomy_exists('property_state')) {
    unset($layout['state']);
}

if(!taxonomy_exists('property_city')) {
    unset($layout['city']);
}

if(!taxonomy_exists('property_area')) {
    unset($layout['areas']);
}

unset($layout['placebo']);

if(houzez_is_radius_search() != 1) {
	unset($layout['geolocation']);
}
unset($layout['price']);
$is_geolocation = '';
if(array_key_exists('geolocation', $layout)) {
	$is_geolocation = 'advanced-search-v1-geolocation';
}
$both_keyword_location = $width_needed = false;
if(!array_key_exists('geolocation', $layout) && !array_key_exists('keyword', $layout)) {
	$both_keyword_location = true;
	$is_geolocation = 'advanced-search-v1-geolocation';

} else if(array_key_exists('geolocation', $layout) || array_key_exists('keyword', $layout)) {
	$width_needed = true;
}
?>
<section id="desktop-header-search" class="advanced-search advanced-search-nav <?php echo esc_attr($sticky_hidden); ?>" data-hidden="<?php echo esc_attr($hidden_data); ?>" data-sticky='<?php echo esc_attr( $sticky_data ); ?>'>
	<div class="<?php echo houzez_header_search_width(); ?>">
		<form class="houzez-search-form-js <?php houzez_search_filters_class(); ?>" method="get" autocomplete="off" action="<?php echo esc_url( houzez_get_search_template_link() ); ?>">

			<?php do_action('houzez_search_hidden_fields'); ?>
			
			<div class="advanced-search-v1 <?php echo esc_attr($is_geolocation); ?>">
				<div class="d-flex">
					<?php
					$i = 0;
					if ($layout) {
						foreach ($layout as $key=>$value) { $i ++;
							$class_flex_grow = '';
							$common_class = "flex-search";
							if($key == 'keyword') {
								$class_flex_grow = 'flex-grow-1';

							} elseif($key == 'geolocation') {
								$class_flex_grow = 'flex-fill';
								$common_class = '';

							} elseif($both_keyword_location) {
								$common_class = 'flex-fill fields-width';

							} elseif($width_needed) {
								$common_class .= ' fields-width';
							}

							if(in_array($key, houzez_search_builtIn_fields())) {
								echo '<div class="'.$common_class.' '.$class_flex_grow.'">';
									get_template_part('template-parts/search/fields/'.$key);
								echo '</div>';

								if($key == 'geolocation') {
									echo '<div class="flex-search">';
										get_template_part('template-parts/search/fields/distance');
									echo '</div>';
								}
							} else {

								echo '<div class="'.$common_class.' '.$class_flex_grow.'">';
									houzez_get_custom_search_field($key);
								echo '</div>';
								
							}
							if($i == houzez_search_builder_first_row())
								break;
						}
					}
					?>

					<?php if( ! houzez_adv_search_visible() ) { ?>
					<div class="flex-search">
						<?php get_template_part('template-parts/search/fields/advanced-button'); ?>
					</div>
					<?php } ?>
					
					<div class="flex-search btn-no-right-padding">
						<?php get_template_part('template-parts/search/fields/submit-button'); ?>
					</div>
				</div><!-- d-flex -->
			</div><!-- advanced-search-v1 -->

			<div id="advanced-search-filters" class="collapse <?php echo houzez_adv_visible_class(); ?>">
				<?php get_template_part('template-parts/search/filters'); ?>
			</div><!-- advanced-search-filters -->

		</form>
	</div><!-- container -->
</section><!-- advanced-search -->