diff options
| author | Carson Fleming <cflems@cflems.net> | 2017-03-09 00:28:02 -0500 |
|---|---|---|
| committer | Carson Fleming <cflems@cflems.net> | 2017-03-09 00:28:02 -0500 |
| commit | a44a0e047a7582fe7e31743e1b03a17cf2987f73 (patch) | |
| tree | 1bb28593eb493cac175f2ed42ab108a4248e1ec1 /dash/header.php | |
| parent | f75fc7b47735ed73535478e4d70e62694247a586 (diff) | |
| download | bulletin-a44a0e047a7582fe7e31743e1b03a17cf2987f73.tar.gz | |
Created the ability to post ads, rating framework
Diffstat (limited to 'dash/header.php')
| -rw-r--r-- | dash/header.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/dash/header.php b/dash/header.php index 737d177..65de171 100644 --- a/dash/header.php +++ b/dash/header.php @@ -29,8 +29,10 @@ if (!empty($extra_head)) echo $extra_head; <?php foreach ($navtitles as $k => $title) { $link = $navlinks[$k]; + $test = '/'.$link; + $selected = ($_SERVER['SCRIPT_NAME'] == $test || $_SERVER['REQUEST_URI'] == $test); ?> - <a href="<?=htmlentities($b_config['base_url'].$link);?>"> + <a<?=$selected?' class="selected"':'';?> href="<?=htmlentities($b_config['base_url'].$link);?>"> <span class="navspan"><?=htmlentities($title);?></span> </a> <?php |
