-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsingle-space.php
More file actions
57 lines (45 loc) · 1.24 KB
/
Copy pathsingle-space.php
File metadata and controls
57 lines (45 loc) · 1.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<?php
/*
Template Name: Book Space Single
*/
get_header();
// Get current slug
$slug = basename(get_permalink());
// Default service ID
$service_id = 1;
// Map slug → service ID
if ($slug == 'book-space-1') {
$service_id = 1;
} elseif ($slug == 'book-space-2') {
$service_id = 2;
} elseif ($slug == 'book-space-3') {
$service_id = 3;
} elseif ($slug == 'stack-sofa-2') {
$service_id = 16;
} elseif ($slug == 'private-executive-office-2') {
$service_id = 3;
} elseif ($slug == 'vip-section') {
$service_id = 6;
} elseif ($slug == 'circuit-table') {
$service_id = 13;
} elseif ($slug == 'reading-lounge-2') {
$service_id = 2;
}
?>
<!-- Page Title -->
<section class="wpo-page-title">
<div class="container">
<h2>Book Space <?php echo esc_html($service_id); ?></h2>
<ol class="wpo-breadcumb-wrap">
<li><a href="<?php echo home_url(); ?>">Home</a></li>
<li>Book Space <?php echo esc_html($service_id); ?></li>
</ol>
</div>
</section>
<!-- Single Service Booking -->
<section class="bookingpress-section py-5">
<div class="container">
<?php echo do_shortcode('[bookingpress_form service="'.$service_id.'"]'); ?>
</div>
</section>
<?php get_footer(); ?>