<!-- 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 pool::execute('displayListingBlockPremium', $type_search); ?>
		<?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.php'; ?>
			</div>
			
			<?php if($type_search == 1 || $type_search == 2) : ?>
			<div class="list-premium">
				<?php pool::execute('displayListingSidebar', $type_search); ?>
			</div>
			<?php endif; ?>
			
		</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; ?>