From c6e8e7d36af971f3d97a5081a5a6159c84048b08 Mon Sep 17 00:00:00 2001 From: Alex Cabal Date: Mon, 21 Sep 2020 12:45:27 -0500 Subject: [PATCH] Serve PHP files as XHTML --- templates/Header.php | 9 ++++++--- .../a-basic-standard-ebooks-source-folder.php | 2 +- www/contribute/producers.php | 1 + www/contribute/producing-an-ebook-step-by-step.php | 13 ++++++------- www/contribute/wanted-ebooks.php | 5 +++-- www/css/core.css | 8 ++++++++ www/ebooks/ebook.php | 6 +++--- www/ebooks/index.php | 8 ++++---- www/index.php | 2 +- 9 files changed, 33 insertions(+), 21 deletions(-) diff --git a/templates/Header.php b/templates/Header.php index 571fe3f9..a8ad910a 100644 --- a/templates/Header.php +++ b/templates/Header.php @@ -18,12 +18,15 @@ if(!isset($manual)){ # We hash with crc32 because it's faster than md5 and "good enough" for this simple cache-busting use case -?> - +header('content-type: application/xhtml+xml'); +print(''); +print("\n"); +?> + <? if($title != ''){ ?><?= Formatter::ToPlainText($title) ?> - <? } ?>Standard Ebooks: Free and liberated ebooks, carefully produced for the true book lover. - + diff --git a/www/contribute/a-basic-standard-ebooks-source-folder.php b/www/contribute/a-basic-standard-ebooks-source-folder.php index 7ed0a34a..063e58c8 100644 --- a/www/contribute/a-basic-standard-ebooks-source-folder.php +++ b/www/contribute/a-basic-standard-ebooks-source-folder.php @@ -7,7 +7,7 @@ require_once('Core.php');

All Standard Ebooks source folders have the same basic structure. It looks a little like this:

- A tree view of a new Standard Ebooks draft folder + A tree view of a new Standard Ebooks draft folder