Add IE stylesheet and add classes for pane active
authorRichard Whitehouse <github@richardwhiuk.com>
Sun, 30 Jan 2011 21:32:09 +0000 (21:32 +0000)
committerRichard Whitehouse <github@richardwhiuk.com>
Sun, 30 Jan 2011 21:32:09 +0000 (21:32 +0000)
template/index.php

index f9772470db53e2d66b4a82b08f1595fe44d32467..3ec253963872feda091e2682af21afe35d3c0d86 100644 (file)
@@ -12,6 +12,9 @@ public function Display(){
 <head>
        <title>Homerton May Ball</title>
        <link rel="stylesheet" href="theme/hmb.css">
+       <!--[if IE]>
+               <link rel="stylesheet" href="theme/ie.css">
+       <![endif]-->
        <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"></script>
        <script src="flir/flir.js" type="text/javascript"></script>
        <script type="text/javascript">
@@ -70,7 +73,7 @@ public function Display(){
                                } else { 
                                        foreach($this->templates as $name => $template){
                                ?>
-                               <li class="pane pane-<?php echo ($this->keys[$name] % 2) == 0 ? 'r' : 'p'; ?>" style="left: <?php echo ($this->keys[$name] * 850); ?>px;" id="pane-<?php echo $name; ?>">
+                               <li class="pane <?php if($this->current == $name){ ?>pane-active<?php } else { ?>pane-inactive<?php } ?> pane-<?php echo ($this->keys[$name] % 2) == 0 ? 'r' : 'p'; ?>" style="left: <?php echo ($this->keys[$name] * 850); ?>px;" id="pane-<?php echo $name; ?>">
                                        <div class="content"><?php $template->display(); ?></div>
                                </li>
                                <?php