From 8ad75b781255d27c62f201a990771273a7de8906 Mon Sep 17 00:00:00 2001 From: David Ringsdorf Date: Tue, 25 Feb 2020 22:52:54 +0100 Subject: [PATCH] 0.4.0.alpha --- .htaccess | 5 ++- README.md | 2 +- asset/css/style.css | 19 ++------- genug.php | 51 +++++++++++++++++++++++ genug_core/genug/bootstrap.php | 20 +++++++++ genug_user/template/error404.html.php | 13 ------ genug_user/template/main.html.php | 59 --------------------------- genug_user/view/404.php | 13 ++++++ genug_user/view/index.php | 25 ++++++++++++ html.php | 32 --------------- 10 files changed, 116 insertions(+), 123 deletions(-) create mode 100644 genug.php delete mode 100644 genug_user/template/error404.html.php delete mode 100644 genug_user/template/main.html.php create mode 100644 genug_user/view/404.php create mode 100644 genug_user/view/index.php delete mode 100644 html.php diff --git a/.htaccess b/.htaccess index f149214..ee2e5e0 100644 --- a/.htaccess +++ b/.htaccess @@ -4,7 +4,8 @@ RewriteEngine on RewriteBase / -RewriteRule ^asset/ - [L] -RewriteRule ^ html.php [L] +RewriteRule ^favicon.ico$ - [L] +RewriteRule ^asset/ - [L] +RewriteRule ^ genug.php [L] \ No newline at end of file diff --git a/README.md b/README.md index 4ff6a48..f826501 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ a file-based CMS under development ## requirements -- PHP 7.0 +- PHP 7.4 - Apache, .htaccess, rewrite_module (mod_rewrite) ## installation diff --git a/asset/css/style.css b/asset/css/style.css index 52dcd98..8c84415 100644 --- a/asset/css/style.css +++ b/asset/css/style.css @@ -1,18 +1,5 @@ -@CHARSET "UTF-8"; +@charset "UTF-8"; -.is_requested::before { - content: '\2192\A0'; +nav a[aria-current="page"]::before { + content: "\2192\A0"; } - -time, -[data-category] { - font-style: italic; -} - -[data-category=site] { - color: green; -} - -[data-category=news] { - color: red; -} \ No newline at end of file diff --git a/genug.php b/genug.php new file mode 100644 index 0000000..38764cd --- /dev/null +++ b/genug.php @@ -0,0 +1,51 @@ + - - - -Not Found (404) - - -

Not Found (404)

- - - \ No newline at end of file diff --git a/genug_user/template/main.html.php b/genug_user/template/main.html.php deleted file mode 100644 index 17b5cc3..0000000 --- a/genug_user/template/main.html.php +++ /dev/null @@ -1,59 +0,0 @@ -fetch($pageCat)->title(); - } catch (\Throwable $e) { - return $pageCat; - } -} - -?> - - - - -<?= g::requestedPage()->title()?><?php if ((string) g::requestedPage()->category() !== (string) g::mainCategory()->id()) echo ' - ' . genug_helper_categoryTitle(g::requestedPage()->category()) ?> | <?= SITE_TITLE ?> - - - -
-

- -

-
-
-
-
-

title() ?>

-
- content()?> -
-
    -
  • date:
  • -
  • category: category()) ?>
  • -
-
-
-
- - - \ No newline at end of file diff --git a/genug_user/view/404.php b/genug_user/view/404.php new file mode 100644 index 0000000..7546693 --- /dev/null +++ b/genug_user/view/404.php @@ -0,0 +1,13 @@ + + + + + Not Found (404) + + +

Not Found (404)

+ + + \ No newline at end of file diff --git a/genug_user/view/index.php b/genug_user/view/index.php new file mode 100644 index 0000000..d373c0e --- /dev/null +++ b/genug_user/view/index.php @@ -0,0 +1,25 @@ + + + + + + <?= g::requestedPage()->title()?> + + + +

title() ?>

+

+ content()?> + + + + \ No newline at end of file diff --git a/html.php b/html.php deleted file mode 100644 index 180b150..0000000 --- a/html.php +++ /dev/null @@ -1,32 +0,0 @@ -