-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlists.php
More file actions
73 lines (61 loc) · 2.42 KB
/
lists.php
File metadata and controls
73 lines (61 loc) · 2.42 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<?php
$title = 'Lists';
include 'inc/header.php';
include 'inc/breadcrumb.php';
?>
<h1><?php echo "$title"; ?></h1>
<p>Lists are helpful for breaking content up into manageable steps or chunks, making it easier to for users to scan.</p>
<p>Lists should be bulleted to make them easier to read. Long lists can be written as a paragraph with a lead-in sentence if it looks better.
List items start with a lowercase letter and have no period at the end. Use lists to present steps, groups, or sets of information.
Give context for the list with a brief introduction. You can use bullet points to make text easier to read. </p>
<h2>Unordered lists</h2>
<p>Things to keep in mind when using basic unordered lists:</p>
<ul>
<li>you always use a lead-in line</li>
<li>you always use a colon after the lead-in line</li>
<li>the bullets make sense running on from the lead-in line</li>
<li>you use lowercase at the start of the bullet</li>
<li>you don’t use more than one sentence per bullet point — use commas, dashes, or semicolons to expand on an item</li>
<li>you don’t put “or” or “and” after the bullets</li>
<li>links appear within the text and not as the whole bullet</li>
<li>there is no period after the last bullet point</li>
<li>you try to use only 3 to 7 items in a list</li>
</ul>
<h2>Ordered lists</h2>
<p>Things to keep in mind when using basic ordered lists:</p>
<ul>
<li>Use numbered steps instead of bullet points to guide a user through a process when the order of the steps is important.</li>
<li>You don’t need a lead-in line and you can use links in steps.</li>
<li>Each step ends in a period because each step should be a complete sentence.</li>
</ul>
<!-- listS -->
<?php
$lists = array();
$handle=opendir('lists');
while (false !== ($list = readdir($handle))):
if(stristr($list,'.html')):
$lists[] = $list;
endif;
endwhile;
sort($lists);
?>
<h2 class="section">List patterns</h1>
<?php
foreach ($lists as $list):
echo '<div class="pattern">';
echo '<div class="display">';
include('lists/'.$list);
echo '</div>';
echo '<div class="source">';
echo '<textarea rows="6" cols="30">';
echo htmlspecialchars(file_get_contents('lists/'.$list));
echo '</textarea>';
echo '<p><a href="lists/'.$list.'">'.$list.'</a></p>';
echo '</div>';
echo '</div>';
echo '<div class="pattern-separator"></div>';
endforeach;
?>
<?php
include 'inc/footer.php';
?>