From 963973bc6bafe343293b60f941f7bc7fa34a907c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B8rn=20=C3=85ne?= Date: Fri, 26 Aug 2016 17:29:09 +0200 Subject: [PATCH] Show upcoming activity in the header on the main page. --- www/index.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/www/index.php b/www/index.php index f70b0a8..e4f8536 100644 --- a/www/index.php +++ b/www/index.php @@ -3,6 +3,7 @@ date_default_timezone_set('Europe/Oslo'); setlocale(LC_ALL, 'no_NO'); require __DIR__ . '/../src/_autoload.php'; require __DIR__ . '/../sql_config.php'; +$translation = ['i dag', 'i morgen', 'denne uka', 'neste uke', 'denne måneden', 'neste måned']; $pdo = new \PDO($dbDsn, $dbUser, $dbPass); $pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION); $agenda = new \pvv\side\Agenda([ @@ -31,7 +32,13 @@ $agenda = new \pvv\side\Agenda([
Program­vare­verk­stedet
@@ -50,7 +57,6 @@ $agenda = new \pvv\side\Agenda([

Kommende arrangement

    - getNextDays() as $period => $events) if ($events && $counter1 < 2 && $counter2 < 10) { $counter1++ ?>