Initial commit
This commit is contained in:
28
templates/index.php
Normal file
28
templates/index.php
Normal file
@ -0,0 +1,28 @@
|
||||
<?php
|
||||
$section = $_GET['section'] ?? 'home';
|
||||
|
||||
|
||||
switch ($section) {
|
||||
case 'home':
|
||||
include 'home.php';
|
||||
break;
|
||||
case 'about':
|
||||
include 'about.php';
|
||||
break;
|
||||
case 'menu':
|
||||
include 'menu.php';
|
||||
break;
|
||||
case 'testimonials':
|
||||
include 'testimonials.php';
|
||||
break;
|
||||
case 'events':
|
||||
include 'events.php';
|
||||
break;
|
||||
case 'reservations':
|
||||
include 'reservations.php';
|
||||
break;
|
||||
default:
|
||||
include '404.php';
|
||||
break;
|
||||
}
|
||||
?>
|
Reference in New Issue
Block a user