From 73d73c05adcf27c3107e4ce6a9ff118dbc90d710 Mon Sep 17 00:00:00 2001 From: Richard Whitehouse Date: Fri, 4 Feb 2011 19:46:37 +0000 Subject: [PATCH] Fixes for launch night --- index.php | 19 ++++- page/tickets.php | 10 ++- template/committee.php | 169 ++++++++++++++++++++++++++++++++++++++++- template/index.php | 12 +-- template/tickets.php | 2 +- theme/about.png | Bin 749930 -> 749977 bytes theme/charity.png | Bin 220612 -> 257048 bytes theme/food.png | Bin 332217 -> 322440 bytes theme/hmb.css | 30 +++++++- 9 files changed, 225 insertions(+), 17 deletions(-) diff --git a/index.php b/index.php index af6d53e..28d23ae 100644 --- a/index.php +++ b/index.php @@ -22,16 +22,27 @@ foreach($files as $page){ } } -foreach($pages as $name => $page){ - $page->execute($templates[$name]); +if(isset($_GET['page'])){ + $args = explode('/', $_GET['page']); } -if(isset($_GET['page']) && isset($templates[$_GET['page']])){ - $current = $_GET['page']; +if(isset($args) && isset($templates[$args[0]])){ + $current = $args[0]; + array_shift($args); } elseif(isset($templates['splash'])){ $current = 'splash'; + $args = array(); } elseif(count($templates) > 0) { $current = array_shift(array_keys($templates)); + $args = array(); +} + +foreach($pages as $name => $page){ + if($current == $name){ + $page->execute($templates[$name], $args); + } else { + $page->execute($templates[$name], array()); + } } $index = new Template_Index(); diff --git a/page/tickets.php b/page/tickets.php index 66b4b3e..ac9bc31 100644 --- a/page/tickets.php +++ b/page/tickets.php @@ -1,8 +1,16 @@ args = $args; + + } diff --git a/template/committee.php b/template/committee.php index d4d6969..1368f51 100644 --- a/template/committee.php +++ b/template/committee.php @@ -2,8 +2,171 @@ class Template_Committee extends Template { -public function display(){ - ?>
+ + + + + + + + + + +
+

Health and Safety

+

+ + Pete Teverson + +

+

+ + safety@homertonball.com + +

+
+ +
Homerton May Ball - + - +