summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorIgor Scheller <igor.scheller@igorshp.de>2018-08-26 02:54:52 +0200
committerIgor Scheller <igor.scheller@igorshp.de>2018-08-29 23:46:11 +0200
commitbb3d16d273bb3e4552e4869dd22cb2c2d81f5387 (patch)
tree7de41548a5bd3a56aead1d9d528aa93e058e973a /includes
parenta1bc763a16ee8be109de5c9053fbc5eded53824e (diff)
Added Twig template renderer, closes #338
Diffstat (limited to 'includes')
-rw-r--r--includes/engelsystem.php2
-rw-r--r--includes/pages/guest_credits.php2
-rw-r--r--includes/pages/user_shifts.php2
3 files changed, 3 insertions, 3 deletions
diff --git a/includes/engelsystem.php b/includes/engelsystem.php
index f7d813c5..eb5b220a 100644
--- a/includes/engelsystem.php
+++ b/includes/engelsystem.php
@@ -16,7 +16,7 @@ require __DIR__ . '/includes.php';
* Check for maintenance
*/
if ($app->get('config')->get('maintenance')) {
- echo file_get_contents(__DIR__ . '/../templates/maintenance.html');
+ echo file_get_contents(__DIR__ . '/../templates/layouts/maintenance.html');
die();
}
diff --git a/includes/pages/guest_credits.php b/includes/pages/guest_credits.php
index db86132d..ecfa8f7c 100644
--- a/includes/pages/guest_credits.php
+++ b/includes/pages/guest_credits.php
@@ -13,5 +13,5 @@ function credits_title()
*/
function guest_credits()
{
- return view(__DIR__ . '/../../templates/guest_credits.html');
+ return view(__DIR__ . '/../../templates/pages/credits.html');
}
diff --git a/includes/pages/user_shifts.php b/includes/pages/user_shifts.php
index a620d081..67f6785f 100644
--- a/includes/pages/user_shifts.php
+++ b/includes/pages/user_shifts.php
@@ -224,7 +224,7 @@ function view_user_shifts()
return page([
div('col-md-12', [
msg(),
- view(__DIR__ . '/../../templates/user_shifts.html', [
+ view(__DIR__ . '/../../templates/pages/user-shifts.html', [
'title' => shifts_title(),
'room_select' => make_select($rooms, $shiftsFilter->getRooms(), 'rooms', _('Rooms')),
'start_select' => html_select_key(