Restructure MVC into public/src layout

Co-authored-by: LeOSW42 <673670+LeOSW42@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-01-24 14:00:58 +00:00
parent 1be6b7ff0c
commit f617ecb350
135 changed files with 75 additions and 63 deletions

46
public/views/blocks/d.head.html Executable file
View File

@@ -0,0 +1,46 @@
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, height=device-height, initial-scale=1.0">
<link rel="shortcut icon" href="<?=$config['views_url']?>img/favicon.png">
<?php if (isset($head['css'])) {
foreach(explode(";",$head['css']) as $css) { ?>
<link rel="stylesheet" href="<?=$config['views_url']?>css/<?=$css?>"/>
<?php }
}
else { ?>
<link rel="stylesheet" href="<?=$config['views_url']?>css/d.index.css"/>
<?php } ?>
<link rel="stylesheet" href="<?=$config['views_url']?>third/fontawesome-free-5.4.1-web/css/all.min.css"/>
<script type="text/javascript" src="<?=$config['views_url']?>third/jquery-3.3.1.min.js"></script>
<?php if (isset($head['third'])) {
foreach(explode(";",$head['third']) as $third) { ?>
<script type="text/javascript" src="<?=$config['views_url']?>third/<?=$third?>"></script>
<?php }
} ?>
<script type="text/javascript" src="<?=$config['views_url']?>js/d.header.js"></script>
<?php if (isset($head['js'])) {
foreach(explode(";",$head['js']) as $js) { ?>
<script type="text/javascript" src="<?=$config['views_url']?>js/<?=$js?>"></script>
<?php }
} ?>
<?php if (isset($head['title'])) { ?>
<title><?=$head['title']?> &mdash; Kabano</title>
<?php }
else { ?>
<title>Refuges de montagne et métallerie agricole</title>
<?php } ?>
<?php if (isset($head['description'])) { ?>
<meta name="description" content="<?=$head['description']?>">
<?php }
else { ?>
<meta name="description" content="Entreprise de services dans la fabrication, la réparation, et l'entretien de bâtiments et machines agricoles">
<?php } ?>
<?php if (isset($head['keywords'])) { ?>
<meta name="keywords" content="<?=$head['keywords']?>">
<?php }
else { ?>
<meta name="keywords" content="kabano, cabanes, refuges, bivouac, montagne, randonnée, métallerie, agricole">
<?php } ?>
</head>