-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcards.php
More file actions
44 lines (37 loc) · 1006 Bytes
/
cards.php
File metadata and controls
44 lines (37 loc) · 1006 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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<?php
$title = 'Cards';
include 'inc/header.php';
include 'inc/breadcrumb.php';
?>
<h1><?php echo "$title"; ?></h1>
<p>
Cards are used to organise information, providing a brief summary of content or a task linked to more detail. They can be used to display feature stories, or groups of tasks.
</p>
<?php
$cards = array();
$handle=opendir('cards');
while (false !== ($card = readdir($handle))):
if(stristr($card,'.html')):
$cards[] = $card;
endif;
endwhile;
sort($cards);
?>
<h2 class="section">Card patterns</h1>
<?php
foreach ($cards as $card):
echo '<div class="pattern">';
include('cards/'.$card);
echo '</div>';
echo '<div class="pattern">';
echo '<textarea rows="6" style="width: 100%">';
echo htmlspecialchars(file_get_contents('cards/'.$card));
echo '</textarea>';
echo '<p><a href="cards/'.$card.'">'.$card.'</a></p>';
echo '</div>';
echo '<div class="pattern-separator"></div>';
endforeach;
?>
<?php
include 'inc/footer.php';
?>