-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnavigation.php
More file actions
49 lines (42 loc) · 1.08 KB
/
navigation.php
File metadata and controls
49 lines (42 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
<?php
$title = 'Navigation and structural elements';
include 'inc/header.php';
include 'inc/breadcrumb.php';
?>
<h1><?php echo "$title"; ?></h1>
<p></p>
<style>
.footer {
margin-bottom: 1.5em;
}
.footer.ribbon {background-image: none;}
</style>
<!-- NAVIGATION -->
<?php
$navigations = array();
$handle=opendir('navigation');
while (false !== ($navigation = readdir($handle))):
if(stristr($navigation,'.html')):
$navigations[] = $navigation;
endif;
endwhile;
sort($navigations);
?>
<h2 class="section">Navigation and structural UI patterns</h2>
<?php
foreach ($navigations as $navigation):
echo '<div class="pattern">';
include('navigation/'.$navigation);
echo '</div>';
echo '<div class="pattern">';
echo '<textarea rows="6" style="width: 100%">';
echo htmlspecialchars(file_get_contents('navigation/'.$navigation));
echo '</textarea>';
echo '<p><a href="navigation/'.$navigation.'">'.$navigation.'</a></p>';
echo '</div>';
echo '<div class="pattern-separator"></div>';
endforeach;
?>
<?php
include 'inc/footer.php';
?>