<!-- Script PHP/MYSQL of management of classifieds ads developed by Script PAG Script PAG all rights reserved. Use under license. http://www.script-pag.com -->
<?php if(!isset($_POST['is_ajax']) || $_POST['is_ajax'] == false) : ?>
<div class="container-100">
	<div class="container-100-child search-results-container <?php if($type_search > 3) echo 'margin-top'; ?> <?php if($type_search == 4) echo 'shop'; ?> margin-bottom">
		
		<?php if(!empty($type_search <= 4)) : ?>
		<?php require_once __DIR__.'/tpl_search.php'; ?>
		<?php endif; ?>
<?php endif; ?>
		<?php require_once __DIR__.'/tpl_listing_infos.php'; ?>		
		<?php if(!empty($search_array)) : ?>
		<div class="search-results-listing flex-container">	
			<div>
				<?php require_once __DIR__.'/tpl_listing_search.php'; ?>
			</div>
			
			<?php
			
				if(($type_search == 1 && $param_gen['active_prem'] == 1) || $type_search == 2 && $param_gen['active_prem_shops'] == 1)
				{
					$type_list = $type_search;
					$array_list = $search_array_premium;
					
					require __DIR__.'/tpl_listing_premium.php';
				}
				
			?>
			
		</div>
		<?php else : ?>
		<div class="text-page">
		<p class="text-center"><?php echo $text ?></p>
		</div>
		<?php endif; ?>	
<?php if(!isset($_POST['is_ajax']) || $_POST['is_ajax'] == false) : ?>		
	</div>
</div>
<?php endif; ?>