Téléverser les fichiers vers "themes/defaut"
This commit is contained in:
parent
4cd3929419
commit
16bb068281
5 changed files with 73 additions and 0 deletions
47
themes/defaut/base.php
Normal file
47
themes/defaut/base.php
Normal 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>
|
||||
Loading…
Add table
Add a link
Reference in a new issue