Corrected left arrow link, and corrected when the right arrow is enabled
authorRichard Whitehouse <github@richardwhiuk.com>
Mon, 31 Jan 2011 16:38:34 +0000 (16:38 +0000)
committerRichard Whitehouse <github@richardwhiuk.com>
Mon, 31 Jan 2011 16:38:34 +0000 (16:38 +0000)
template/index.php

index d9663b234f6485bc0938c58cb06e27f34ba38280..71bbb02ecad7fa39c632f2c9b7fac58ef4cbce20 100644 (file)
@@ -55,7 +55,7 @@ public function Display(){
                </div>
                <div id="main">
                        <div class="arrow" id="arrow-l" <?php if(!($this->keys[$this->current] > 0)){ ?> style="display: none;" <?php } ?>>
-                               <a href="-1"><img src="theme/left.png"></a>
+                               <a href="<?php echo $this->numbers[$this->keys[$this->current] - 1]; ?>"><img src="theme/left.png"></a>
                        </div>
                        <div id="paneshow" style="left: <?php echo -1 * $this->keys[$this->current] * 850; ?>px;">
                        <div id="panebar">
@@ -80,9 +80,12 @@ public function Display(){
                        </ul>
                        </div>
                        </div>
+                       <?php var_dump($this); ?>
+                       <?php if($this->keys[$this->current] <= count($this->keys)){ ?>
                        <div class="arrow" id="arrow-r">
                                <a href="<?php echo $this->numbers[$this->keys[$this->current] + 1]; ?>"><img src="theme/right.png"></a>
                        </div>
+                       <?php } ?>
                        <div id="footer">
                                <span class="flir">&copy; 2010 Homerton May Ball Committee. All rights reserved.</span>
                        </div>