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 @@ - -
- - - - -