- Timestamp:
- 03/04/07 13:19:58 (21 months ago)
- Location:
- branches/website/site
- Files:
-
- 2 modified
Legend:
- Unmodified
- Added
- Removed
-
branches/website/site/index.css
r348 r349 58 58 margin-left: 10px; 59 59 } 60 div#menubar_contents a.active { 61 color: #000000; 62 } 60 63 div#menubar_contents a:hover { 61 64 color: #404040; -
branches/website/site/index.php
r348 r349 34 34 35 35 // Prepare information for the template 36 $this->page = $page; 36 37 $this->title = $pageInfo["title"]; 37 38 $this->desc = $pageInfo["desc"]; … … 43 44 // FIXME: Should be moved to a view. 44 45 foreach($this->pages as $pageName=>$pageInfo) { 45 echo("<a href='?page=".$pageName."' title='".$pageInfo["desc"]."'>".$pageInfo["title"]."</a>\n"); 46 $class = ''; 47 if ($this->page == $pageName) { 48 $class = 'active'; 49 } 50 51 echo("<a class='".$class."' href='?page=".$pageName."' title='".$pageInfo["desc"]."'>".$pageInfo["title"]."</a>\n"); 46 52 } 47 53 }
