-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.php
38 lines (35 loc) · 964 Bytes
/
index.php
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
<!DOCTYPE html>
<html lang="pt-br">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Formação Arquiteto PHP</title>
<link rel="shortcut icon" href="assets/favicon.ico" type="image/x-icon">
<link rel="stylesheet" href="assets/style.css">
<script defer src="assets/index.js"></script>
</head>
<body>
<div class="card card-main">
<?php
foreach (scandir(__DIR__ . '/src') as $content) :
if (!preg_match('/^([A-Z]{1}[a-z])/', $content)) continue;
preg_match_all('/([A-z]{1}[a-z]+)/', $content, $match);
$directory = $match[0];
?>
<div class="card card-sub">
<div class="card-title">
<?= implode(' ', $directory) ?>
</div>
</div>
<?php
endforeach;
?>
</div>
<main>
<?php
require_once __DIR__ . "/src/index.php"
?>
</main>
</body>
</html>