From 37bed0c76928640d96e831282e5825d1cfa4b981 Mon Sep 17 00:00:00 2001 From: Miraty Date: Wed, 6 Oct 2021 19:48:50 +0200 Subject: [PATCH] Move inc/ files to compil.php --- compil.php | 52 ++++++++++++++++++++++++++++++++++++++++++++++++-- inc/debut.php | 43 ----------------------------------------- inc/footer.php | 10 ---------- 3 files changed, 50 insertions(+), 55 deletions(-) delete mode 100755 inc/debut.php delete mode 100755 inc/footer.php diff --git a/compil.php b/compil.php index a291887..a2e226b 100755 --- a/compil.php +++ b/compil.php @@ -151,7 +151,52 @@ foreach ($pages as $page) { ob_start(); - require "inc/debut.php"; + ?> + + + + + <?php + if (isset($title) AND !is_null($title)) + echo $title . " · " . $config['siteTitle']; + else + echo $config['siteTitle']; + ?> + + + + + + + + + + + +
+ + + +
+ + +
+ + "; } else { @@ -163,7 +208,10 @@ foreach ($pages as $page) { } else { echo ""; } - require "inc/footer.php"; + echo "
"; + if (file_exists(SITE . "/end.inc.html")) + require SITE . "/end.inc.html"; + echo ""; file_put_contents($pathParts['dirname'] . "/" . $pathParts['filename'] . ".html", ob_get_contents()); ob_end_clean(); diff --git a/inc/debut.php b/inc/debut.php deleted file mode 100755 index 8ee3489..0000000 --- a/inc/debut.php +++ /dev/null @@ -1,43 +0,0 @@ - - - - - <?php - if (isset($title) AND !is_null($title)) - echo $title . " · " . $config['siteTitle']; - else - echo $config['siteTitle']; - ?> - - - - - - - - - - - -
- - - -
- - -
diff --git a/inc/footer.php b/inc/footer.php deleted file mode 100755 index ee5b42d..0000000 --- a/inc/footer.php +++ /dev/null @@ -1,10 +0,0 @@ - -
- - - - -