added faqs
move purchase tickets link
This commit is contained in:
21
index.php
21
index.php
@@ -71,13 +71,6 @@ $router->post('/auth/login', function() {
|
||||
|
||||
// Static route: / (homepage)
|
||||
$router->get('/', function () {
|
||||
$settings = \RedBeanPHP\R::load('settings', 1);
|
||||
$tickets = $settings->value;
|
||||
|
||||
if ($tickets <= 0) {
|
||||
header('Location: /sold-out');
|
||||
}
|
||||
|
||||
checkIfTicketsAreOnSale();
|
||||
include 'views/common/head.php';
|
||||
include 'views/family.php';
|
||||
@@ -139,6 +132,13 @@ $router->post('/admin/order/{id}', function ($id) {
|
||||
});
|
||||
|
||||
$router->get('/step-1', function () {
|
||||
$settings = \RedBeanPHP\R::load('settings', 1);
|
||||
$tickets = $settings->value;
|
||||
|
||||
if ($tickets <= 0) {
|
||||
header('Location: /sold-out');
|
||||
}
|
||||
|
||||
checkIfTicketsAreOnSale();
|
||||
include 'views/common/head.php';
|
||||
include 'views/step1.php';
|
||||
@@ -353,6 +353,13 @@ $router->get('/gallery', function(){
|
||||
include 'views/common/footer.php';
|
||||
});
|
||||
|
||||
|
||||
$router->get('/faqs', function(){
|
||||
include 'views/common/head.php';
|
||||
include 'views/faqs.php';
|
||||
include 'views/common/footer.php';
|
||||
});
|
||||
|
||||
$router->get('/parents', function(){
|
||||
include 'views/common/head.php';
|
||||
include 'views/parents.php';
|
||||
|
||||
Reference in New Issue
Block a user