<?php
/**
 * The template for displaying all content of single trip.
 *
 * @link https://developer.wordpress.org/themes/basics/template-hierarchy/#single-post
 *
 * @package tripzzy
 */

// Exit if accessed directly.
defined( 'ABSPATH' ) || exit;
use Tripzzy\Core\Template;
use Tripzzy\Core\Helpers\Settings;

$settings         = Settings::get();
$trip_page_layout = $settings['trip_page_layout'] ?? '';

if ( $trip_page_layout ) {
	switch ( $trip_page_layout ) {
		case 'trip-layout-2':
			Template::get_template( 'layouts/layout2/layout-single-tripzzy' );
			break;
		default:
			Template::get_template( 'layouts/default/layout-single-tripzzy' );
			break;
	}
} else { // Fallback.
	Template::get_template( 'layouts/default/layout-single-tripzzy' );
}
