ajout du numéro de version
This commit is contained in:
parent
13c54c5884
commit
ad6bc3974f
@ -21,6 +21,21 @@ $stories = Stories::getAll();
|
|||||||
<link rel="icon" type="image/png" href="../assets/images/site/favicon.png">
|
<link rel="icon" type="image/png" href="../assets/images/site/favicon.png">
|
||||||
<?php endif; ?>
|
<?php endif; ?>
|
||||||
<link rel="stylesheet" href="../assets/css/main.css">
|
<link rel="stylesheet" href="../assets/css/main.css">
|
||||||
|
<style>
|
||||||
|
.version-banner {
|
||||||
|
position: fixed;
|
||||||
|
bottom: 0;
|
||||||
|
left: 0;
|
||||||
|
right: 0;
|
||||||
|
padding: 8px;
|
||||||
|
background-color: var(--bg-tertiary);
|
||||||
|
color: var(--text-secondary);
|
||||||
|
text-align: center;
|
||||||
|
font-size: 0.8rem;
|
||||||
|
border-top: 1px solid var(--border-color);
|
||||||
|
z-index: 100;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<nav class="admin-nav">
|
<nav class="admin-nav">
|
||||||
@ -70,5 +85,14 @@ $stories = Stories::getAll();
|
|||||||
<script src="../assets/js/admin.js"></script>
|
<script src="../assets/js/admin.js"></script>
|
||||||
<link rel="stylesheet" href="../assets/css/dialog.css">
|
<link rel="stylesheet" href="../assets/css/dialog.css">
|
||||||
<script src="../assets/js/dialog.js"></script>
|
<script src="../assets/js/dialog.js"></script>
|
||||||
|
|
||||||
|
<?php
|
||||||
|
$version = file_exists(__DIR__ . '/../version.txt')
|
||||||
|
? trim(file_get_contents(__DIR__ . '/../version.txt'))
|
||||||
|
: 'version inconnue';
|
||||||
|
?>
|
||||||
|
<div class="version-banner">
|
||||||
|
Lectures d'Esenjin - v.<?= htmlspecialchars($version) ?>
|
||||||
|
</div>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
1
version.txt
Normal file
1
version.txt
Normal file
@ -0,0 +1 @@
|
|||||||
|
1.0.0
|
Loading…
x
Reference in New Issue
Block a user