-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathheader.php
More file actions
36 lines (32 loc) · 1.26 KB
/
Copy pathheader.php
File metadata and controls
36 lines (32 loc) · 1.26 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
<?php
require '_functions.php'
?>
<!DOCTYPE html>
<html lang="fr">
<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">
<link rel="stylesheet" href="css/global.css">
<link rel="stylesheet" href="css/exo5.css">
<title>Introduction PHP - <?= $title; ?></title>
</head>
<body class="dark-template">
<div class="container">
<header class="header">
<h1 class="main-ttl">Introduction PHP - <?= $title; ?></h1>
<nav class="main-nav">
<?php
$pages = [
['title' => 'Accueil', 'url' => 'index.php'],
['title' => 'Donnez moi des fruits', 'url' => 'exo2.php'],
['title' => 'Donnez moi de la thune', 'url' => 'exo3.php'],
['title' => 'Donnez moi des fonctions', 'url' => 'exo4.php'],
['title' => 'Netflix', 'url' => 'exo5.php'],
['title' => 'Mini-site', 'url' => 'exo6.php'],
['title' => 'test page', 'url' => '#']
];
echo createMenu($pages, basename($_SERVER['PHP_SELF']));
?>
</nav>
</header>