added faqs

move purchase tickets link
This commit is contained in:
Chris Smith
2019-04-30 13:53:38 -05:00
parent 48b97eb0c8
commit f4d6d6749b
3 changed files with 52 additions and 7 deletions

View File

@@ -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';