-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpages.php
More file actions
50 lines (42 loc) · 1.06 KB
/
pages.php
File metadata and controls
50 lines (42 loc) · 1.06 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
50
<?php
$title = 'Pages';
include 'inc/header.php';
include 'inc/breadcrumb.php';
?>
<h1><?php echo "$title"; ?></h1>
<p>The following page layouts are based on the content types identified in the Government Web Strategy.</p>
<ul>
<li>Basic page</li>
<li>Campaign page</li>
<li>Document page</li>
</ul>
<p>More will be added over time.</p>
<!-- page -->
<?php
$pages = array();
$handle=opendir('pages');
while (false !== ($page = readdir($handle))):
if(stristr($page,'.html')):
$pages[] = $page;
endif;
endwhile;
sort($pages);
?>
<h2 class="section">Page and structural UI patterns</h2>
<?php
foreach ($pages as $page):
echo '<div class="pattern">';
include('pages/'.$page);
echo '</div>';
echo '<div class="pattern">';
echo '<textarea rows="20" style="width: 100%">';
echo htmlspecialchars(file_get_contents('pages/'.$page));
echo '</textarea>';
echo '<p><a href="pages/'.$page.'">'.$page.'</a></p>';
echo '</div>';
echo '<div class="pattern-separator"></div>';
endforeach;
?>
<?php
include 'inc/footer.php';
?>