From: Richard Whitehouse Date: Sat, 29 Jan 2011 17:25:08 +0000 (+0000) Subject: Inital main site X-Git-Url: https://git.richardwhiuk.com/?a=commitdiff_plain;h=6db12adaedae60896610d355f3b7c5b67a9c47c2;p=hmb.git Inital main site --- diff --git a/.htaccess b/.htaccess new file mode 100644 index 0000000..a67cbcf --- /dev/null +++ b/.htaccess @@ -0,0 +1,5 @@ +AuthType Ucam-WebAuth +Require user rjw201 jel55 famh2 bw300 + +RewriteEngine on +RewriteRule (.*) index.php?page=$1 [QSA,L] diff --git a/index.php b/index.php new file mode 100644 index 0000000..6d922a4 --- /dev/null +++ b/index.php @@ -0,0 +1,45 @@ + $page){ + $page->execute($templates[$name]); +} + +if(isset($_GET['page']) && isset($templates[$_GET['page']])){ + $current = $_GET['page']; +} elseif(isset($templates['about'])){ + $current = 'about'; +} elseif(count($templates) > 0) { + $current = array_shift(array_keys($templates)); +} + +$index = new Template_Index(); + +$index->numbers = array_keys($templates); +$index->keys = array_flip($index->numbers); +$index->current = $current; +$index->templates = $templates; + +$index->display(); + diff --git a/page.php b/page.php new file mode 100644 index 0000000..96afef7 --- /dev/null +++ b/page.php @@ -0,0 +1,10 @@ + + + + + Homerton May Ball + + + + + + +
+ + +
+
keys[$this->current] > 0)){ ?> style="display: none;" > + +
+
    + templates) == 0){ + ?> +
  • +   +
  • + templates as $name => $template){ + ?> +
  • +
    + display(); ?> +
    +
  • + +
+
+ +
+
+ +
+ + + 0){ + $("#arrow-l").fadeIn('slow'); + } else { + $("#arrow-l").hide(); + } + if(current + 1 < panes){ + $("#arrow-r").fadeIn('slow'); + } else { + $("#arrow-r").hide(); + } + }); +} + +$(function($){ + +update_hmb(); + +for(var p in panemap){ + + $(".link_" + p).click({pane: p}, function(ev){ + current = panemap[ev.data.pane]; + update_hmb(); + return false; + }); +} + +$("#arrow-r").click(function(){ + + if((current + 1) < panes){ + $("#arrow-l").hide(); + $("#arrow-r").fadeOut(function(){ + ++current; + update_hmb(); + }); + } else { + update_hmb(); + } + + return false; +}); + +$("#arrow-l").click(function(){ + + if(current > 0){ + $("#arrow-r").hide(); + $("#arrow-l").fadeOut(function(){ + --current; + update_hmb(); + }); + } else { + update_hmb(); + } + + return false; +}); + + +}); + + +} + diff --git a/theme/left.png b/theme/left.png new file mode 100644 index 0000000..ffbfc84 Binary files /dev/null and b/theme/left.png differ diff --git a/theme/logo.png b/theme/logo.png new file mode 100644 index 0000000..ff7009b Binary files /dev/null and b/theme/logo.png differ diff --git a/theme/right.png b/theme/right.png new file mode 100644 index 0000000..5834de4 Binary files /dev/null and b/theme/right.png differ