Viewing File: /home/maglabs/riadlooma2/wp-content/themes/homey/template/dashboard-reservations2.php
<?php
/**
* Template Name: Dashboard My Reservations
*/
defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
if ( !is_user_logged_in() ) {
wp_redirect( home_url('/') );
}
global $homey_local, $current_user;
wp_get_current_user();
$userID = $current_user->ID;
$user_email = $current_user->user_email;
$admin_email = get_bloginfo('admin_email');
$allowed_html = array();
get_header();
?>
<section id="body-area">
<div class="dashboard-page-title">
<h1><?php echo esc_html__(the_title('', '', false), 'homey'); ?></h1>
</div><!-- .dashboard-page-title -->
<?php get_template_part('template-parts/dashboard/side-menu'); ?>
<?php
if(isset($_GET['reservation_detail']) && $_GET['reservation_detail'] != "") {
$resr_id = $_GET['reservation_detail'];
$is_hourly = get_post_meta($resr_id, 'is_hourly', true);
if($is_hourly == 'yes') {
get_template_part('template-parts/dashboard/reservation/detail-hourly');
} else {
get_template_part('template-parts/dashboard/reservation/detail');
}
} else {
get_template_part('template-parts/dashboard/reservation-host/list');
}
?>
</section><!-- #body-area -->
<?php get_footer();?>
Back to Directory
File Manager