-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnavigation.php
More file actions
24 lines (23 loc) · 810 Bytes
/
navigation.php
File metadata and controls
24 lines (23 loc) · 810 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<?php
$folders = array_filter(glob('*'), 'is_dir');
?>
<div class="navbar navbar-inverse navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
<button type="button" class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="brand" href="/index.php">Playground</a>
<div class="nav-collapse collapse">
<ul class="nav">
<li><a href="/index.php">Home</a></li>
<?php foreach($folders as $folder) :?>
<li><a href="/index.php/<?php echo $folder; ?>"><?php echo ucfirst($folder); ?></a></li>
<?php endforeach; ?>
</ul>
</div><!--/.nav-collapse -->
</div>
</div>
</div>