<?php
/**
 * @var $locations
 * @var $show_title
 * @var $show_excerpt
 * @var $show_description
 * @var $show_price
 * @var $show_author
 * @var $show_location
 */

if ( wpj_loop_check() == 3 ) {

	if ( $locations ) { ?>

		<div
			id="job_map_overview"
			data-show-title="<?php echo $show_title; ?>"
			data-show-excerpt="<?php echo $show_excerpt; ?>"
			data-show-description="<?php echo $show_description; ?>"
			data-show-price="<?php echo $show_price; ?>"
			data-show-author="<?php echo $show_author; ?>"
			data-show-location="<?php echo $show_location; ?>"
			data-locations="<?php echo htmlspecialchars( json_encode( $locations ), ENT_QUOTES, 'UTF-8' ); ?>"
		>
			<div class="ui active centered inline loader"></div>
		</div>

	<?php } else _e( 'There are no jobs to display.', 'wpjobster' );

} else _e( 'Your license type does not have access to this functionality. Please upgrade the license.', 'wpjobster' );