mirror of
https://codeberg.org/PostERG/xamxam.git
synced 2026-05-06 19:19:19 +02:00
Fix admin CSS not loading and quirks mode issues
Fixed multiple issues in admin panel: 1. CSS path: modern-normalize.css → modern-normalize.min.css (File is actually named .min.css) 2. Icon path: assets/icon.svg → /assets/admin_favicon.svg (Was relative, now absolute; correct filename) 3. Navigation: /admin/list.php → /admin/ (list.php was renamed to index.php) 4. Short PHP tags: <? → <?php (Better compatibility, some servers don't enable short_open_tag) 5. Quirks mode warning was due to CSS not loading, not DOCTYPE (DOCTYPE was already present) Files modified: - public/admin/inc/head.php (main fixes) - public/admin/index.php (short tags) - public/admin/add.php (short tags) - public/admin/import.php (short tags) Need to redeploy for production: just deploy
This commit is contained in:
12
includes/footer.php
Normal file
12
includes/footer.php
Normal file
@@ -0,0 +1,12 @@
|
||||
<!-- footer.php -->
|
||||
<footer>
|
||||
<div>
|
||||
<button>Année</button>
|
||||
</div>
|
||||
<div>
|
||||
<button>Cursus</button>
|
||||
</div>
|
||||
</footer>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
39
includes/header.php
Normal file
39
includes/header.php
Normal file
@@ -0,0 +1,39 @@
|
||||
<!-- header.php -->
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="author" content="">
|
||||
<meta name="description" content="">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>Posterg</title>
|
||||
<link rel="stylesheet" href="assets/modern-normalize.css">
|
||||
<link rel="stylesheet" href="assets/common.css">
|
||||
<link rel="stylesheet" href="assets/main.css">
|
||||
<?php if (getenv('PHP_ENV') === 'development' || php_sapi_name() === 'cli-server'): ?>
|
||||
<!-- Live reload for development -->
|
||||
<script src="/vendor/php-live-reload/php-live-reload/live-reload.js"></script>
|
||||
<?php endif; ?>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<header>
|
||||
<a class="title" href="index.php">
|
||||
<h1>posterg</h1>
|
||||
</a>
|
||||
<section>
|
||||
<p class="apropos">
|
||||
Ce site post-ERG a été créé pour répertorier et valoriser les mémoires de l'ERG - École de Recherches Graphique de Bruxelles.
|
||||
L’objectif est à la fois d’offrir une vitrine aux projets des ancien·nes étudiant·es et de mettre en lumière la diversité des disciplines et des parcours qui façonnent l’histoire de l’école à travers les âges, depuis près de 100 ans.
|
||||
</p>
|
||||
<p class="colophon">
|
||||
Design & développement : Olivia Marly, Théo Hennequin & Théophile Gervreau-Mercie
|
||||
Typographies : Ductus (Amélie Dumont), Hyphont-e
|
||||
</p>
|
||||
</section>
|
||||
<nav role="navigation" aria-label="main navigation">
|
||||
<button><a href="search.php"">Recherche</a></button>
|
||||
<button><a href=" search.php"">Partager</a></button>
|
||||
</nav>
|
||||
</header>
|
||||
Reference in New Issue
Block a user