| 1 | | <ul id="navlist"> |
|---|
| 2 | | <li id="active"><?=anchor('', 'home')?></li> |
|---|
| 3 | | <li><?=anchor('example', 'examples')?></li> |
|---|
| 4 | | <li><?=anchor('auth', 'login')?></li> |
|---|
| 5 | | <li><?=anchor('auth/register', 'register')?></li> |
|---|
| 6 | | <li><?=anchor('auth/forgotten_password', 'forgotten password')?></li> |
|---|
| 7 | | <li><?=anchor('auth/changepassword', 'change password')?></li> |
|---|
| 8 | | <li><?=anchor('admin', 'admin')?></li> |
|---|
| | 1 | <?php $ci_uri = trim($this->uri->uri_string(), '/'); $att = ' id="active"';?> |
|---|
| | 2 | <ul id="navlist"> |
|---|
| | 3 | <li<?= $ci_uri == ''? $att: ''?>><?=anchor('', 'home')?></li> |
|---|
| | 4 | <li<?= substr($ci_uri, 0, 7) == 'example'? $att: ''?>><?=anchor('example', 'examples')?></li> |
|---|
| | 5 | <li<?= $ci_uri == 'auth'? $att: ''?>><?=anchor('auth', 'login')?></li> |
|---|
| | 6 | <li<?= $ci_uri == 'auth/register'? $att: ''?>><?=anchor('auth/register', 'register')?></li> |
|---|
| | 7 | <li<?= $ci_uri == 'auth/forgotten_password'? $att: ''?>><?=anchor('auth/forgotten_password', 'forgotten password')?></li> |
|---|
| | 8 | <li<?= $ci_uri == 'auth/changepassword'? $att: ''?>><?=anchor('auth/changepassword', 'change password')?></li> |
|---|
| | 9 | <li<?= substr($ci_uri, 0, 5) == 'admin'? $att: ''?>><?=anchor('admin', 'admin')?></li> |
|---|