HEX
Server: Apache/2.4.52 (Ubuntu)
System: Linux WebLive 5.15.0-79-generic #86-Ubuntu SMP Mon Jul 10 16:07:21 UTC 2023 x86_64
User: ubuntu (1000)
PHP: 7.4.33
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/html/wpprotonperinggit/wp-content/themes/voiture/template-listings/single-listing.php
<?php
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

get_header();

$listing_layout = voiture_get_listing_layout_type();
$listing_layout = !empty($listing_layout) ? $listing_layout : 'v1';

wp_enqueue_script( 'sticky-kit' );

?>

<section id="primary" class="content-area inner">
	<div id="main" class="site-main content" role="main">
		<?php if ( have_posts() ) : ?>

			<?php while ( have_posts() ) : the_post();
				global $post;
				$latitude = WP_CarDealer_Listing::get_post_meta( $post->ID, 'map_location_latitude', true );
				$longitude = WP_CarDealer_Listing::get_post_meta( $post->ID, 'map_location_longitude', true );
			?>
				<div class="single-listing-wrapper" data-latitude="<?php echo esc_attr($latitude); ?>" data-longitude="<?php echo esc_attr($longitude); ?>">
					<?php
						if ( $listing_layout !== 'v1' ) {
							echo WP_CarDealer_Template_Loader::get_template_part( 'content-single-listing-'.$listing_layout );
						} else {
							echo WP_CarDealer_Template_Loader::get_template_part( 'content-single-listing' );
						}
					?>
				</div>
			<?php endwhile; ?>

			<?php the_posts_pagination( array(
				'prev_text'          => esc_html__( 'Previous page', 'voiture' ),
				'next_text'          => esc_html__( 'Next page', 'voiture' ),
				'before_page_number' => '<span class="meta-nav screen-reader-text">' . esc_html__( 'Page', 'voiture' ) . ' </span>',
			) ); ?>
		<?php else : ?>
			<div class="<?php echo apply_filters('voiture_listing_content_class', 'container');?>">
				<?php get_template_part( 'content', 'none' ); ?>
			</div>
		<?php endif; ?>
	</div><!-- .site-main -->
</section><!-- .content-area -->
<?php get_footer(); ?>