Changeset 349 for branches

Show
Ignore:
Timestamp:
03/04/07 13:19:58 (21 months ago)
Author:
fboender
Message:

Menu items are 'activated' now. When they're clicked, they stay dark.
Re #118

Location:
branches/website/site
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • branches/website/site/index.css

    r348 r349  
    5858    margin-left: 10px; 
    5959} 
     60div#menubar_contents a.active { 
     61    color: #000000; 
     62} 
    6063div#menubar_contents a:hover { 
    6164    color: #404040; 
  • branches/website/site/index.php

    r348 r349  
    3434         
    3535        // Prepare information for the template 
     36        $this->page = $page; 
    3637        $this->title = $pageInfo["title"]; 
    3738        $this->desc = $pageInfo["desc"]; 
     
    4344        // FIXME: Should be moved to a view. 
    4445        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"); 
    4652        } 
    4753    }