Update 5 files
- /html/index.html - /include/variables.php - /include/functions.php - /config/global.ini - /html/index.php
This commit is contained in:
parent
c31fdd012b
commit
c1782eac5a
9
config/global.ini
Normal file
9
config/global.ini
Normal file
@ -0,0 +1,9 @@
|
||||
[main]
|
||||
title = "Club Réseaux"
|
||||
header-title = "E59"
|
||||
header-subtitle = "Club Réseaux"
|
||||
copyright = "© 2024 - E59"
|
||||
|
||||
[nav]
|
||||
Notehub = "https://notehub.e59.fr/"
|
||||
Gitlab = "https://gitlab.e59.fr/"
|
@ -1,10 +1,14 @@
|
||||
<?php
|
||||
require "../include/variables.php";
|
||||
require "../include/functions.php";
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="fr">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link rel="stylesheet" href="./src/css/style.css">
|
||||
<title>Club Réseaux</title>
|
||||
<title><?=$title?></title>
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
@ -16,11 +20,11 @@
|
||||
<div class="content">
|
||||
<div>
|
||||
<div class="main-title">
|
||||
<div class="title">E59</div>
|
||||
<div class="subtitle">Club Réseaux</div>
|
||||
<div class="title"><?=$header_title?></div>
|
||||
<div class="subtitle"><?=$header_subtitle?></div>
|
||||
</div>
|
||||
<nav>
|
||||
<!-- BARRE DE NAV -->
|
||||
<?php nav($nav);?>
|
||||
</nav>
|
||||
</div>
|
||||
</div>
|
||||
@ -40,7 +44,7 @@
|
||||
<footer>
|
||||
<div class="content">
|
||||
<div>
|
||||
<div>© 2024 - E59</div>
|
||||
<div><?=$copyright?></div>
|
||||
</div>
|
||||
</div>
|
||||
</footer>
|
7
include/functions.php
Normal file
7
include/functions.php
Normal file
@ -0,0 +1,7 @@
|
||||
<?php
|
||||
function nav($nav) {
|
||||
foreach($nav as $name => $url) {
|
||||
echo "<div class='navitem'><a href="$url">$name</a></div>";
|
||||
}
|
||||
}
|
||||
?>
|
11
include/variables.php
Normal file
11
include/variables.php
Normal file
@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
$global_config = parse_ini_file('../config/global.ini', true);
|
||||
|
||||
$title = $global_config['main']['title']
|
||||
$header_title = $global_config['main']['header-title']
|
||||
$header_subtitle = $global_config['main']['header-subtitle']
|
||||
$copyright = $global_config['main']['copyright']
|
||||
$nav = $global_config['nav']
|
||||
|
||||
?>
|
Loading…
x
Reference in New Issue
Block a user