Téléverser les fichiers vers "themes/defaut"

This commit is contained in:
Alexandre NOEL 2026-08-11 21:40:23 +02:00
commit 16bb068281
5 changed files with 73 additions and 0 deletions

47
themes/defaut/base.php Normal file
View file

@ -0,0 +1,47 @@
<body>
<div id="general">
<div id="header">
<h1><?php echo $SITE_NOM; ?></h1>
<p><?php echo $SITE_DESC; ?></p>
<ul class="menu">
<?php
// Listings des pages + menu
$list=listing_dossier($DATA_PAGES);
if(empty($_GET['id'])){$id=1;} else {$id = $_GET['id'];}
foreach ($list as &$pages) {
$page = lecture_xml($DATA_PAGES.$pages);
if ($page['page']['etat']['#text']==1){
if ($page['page']['ordre']['#text']==$id)
{
echo "<li><a href='index.php?id=".$page['page']['ordre']['#text']."'><b>".$page['page']['nom']['#text']."</b></a></li>";
}
else
{
echo "<li><a href='index.php?id=".$page['page']['ordre']['#text']."'>".$page['page']['nom']['#text']."</a></li>";
}
}
}
?>
</ul>
</div>
<div id="corps">
<div id="contentG">
<p>
<?php
// Affichage de la page
if(empty($_GET['id'])){$id=1;} else {$id = $_GET['id'];}
$contenu = lecture_xml($DATA_PAGES.$id.'.xml');
echo $contenu['page']['contenu']['#text'];
?>
</p>
</div>
</div>
<div id="footer">
<p>
AEOS v<?php echo $SITE_VERSION; ?> - <?php echo round(microtime(true)-$execTime, 3)."s<br />".$SITE_FOOTER; ?>
</p>
</div>
</div>
</body>
</html>

10
themes/defaut/config.xml Normal file
View file

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<configuration>
<id>1</id>
<nom>AEOS - Défaut</nom>
<dossier>defaut</dossier>
<description>Thème de base d'AEOS</description>
<version>1.0.0</version>
<auteurs>N.n.S Production</auteurs>
<email>contact@nekonosekai.com</email>
</configuration>

View file

@ -0,0 +1,3 @@
<?php
echo "<span class='erreur'>Aucune modification possible sur ce thème.</span>";
?>

View file

@ -0,0 +1,10 @@
<!-- Maintenance -->
<body>
<div id="content">
<div id="center">
<p><?php echo $SITE_MESSAGE; ?></p>
</div>
<div id="left"></div>
</div>
</body>
</html>

View file

@ -0,0 +1,3 @@
<!--
Ici, modification possible au format XML pour votre thème.
-->