From 9a0dff1fe9de01666f12e3577c71f5979dfc9e27 Mon Sep 17 00:00:00 2001 From: Herwin Bozet Date: Wed, 8 Dec 2021 17:54:37 +0100 Subject: [PATCH] Added basic page for content Update content.php, strings.json, and index.php --- commons/content.php | 1 + commons/strings.json | 2 + content/index.php | 123 ++++++++++++++++++++++++++++++++++++------- 3 files changed, 106 insertions(+), 20 deletions(-) diff --git a/commons/content.php b/commons/content.php index c041a9e..de21078 100644 --- a/commons/content.php +++ b/commons/content.php @@ -105,6 +105,7 @@ if($requested_content_display_type == ContentDisplayType::NONE) { goto content_end; } +// TODO: Check with a raw root type if not set if(count($requested_tags) == 0) { // Failed to detect the subtype of content requested when not a blog post. $content_has_error = true; diff --git a/commons/strings.json b/commons/strings.json index 19f19f3..afa840e 100644 --- a/commons/strings.json +++ b/commons/strings.json @@ -54,6 +54,7 @@ "error.404.title": "404 Error", "error.404.description": "The requested resource couldn't be found on the server !", + "error.content.title.generic": "Content error", "error.content.none": "No explicit error was encountered.", "error.content.detect.category": "Failed to detect which category of content you requested.", "error.content.detect.display": "Failed to detect if you requested the category's search page or a specific one.", @@ -115,6 +116,7 @@ "error.404.title": "Erreur 404", "error.404.description": "La ressource demandée est introuvable sur le serveur !", + "error.content.title.generic": "Erreur de contenu", "error.content.none": "Aucune erreur précise n'a été détectée.", "error.content.detect.category": "Impossibilité de détecter la catégorie de contenu demandée.", "error.content.detect.display": "Impossibilité de détecter si une recherche ou page spécifique était demandée.", diff --git a/content/index.php b/content/index.php index cf4d56b..f67f267 100644 --- a/content/index.php +++ b/content/index.php @@ -5,25 +5,108 @@ - - - - Document + + Content - Nibble Poker + + + + + + + - -

This section is currently under construction !

-

Entered "/content/index.php"

-

REQUEST_URI:

-

$requested_content_type:

-

$requested_content_display_type:

-

$requested_tags: []

-

count($requested_tags):

-

$content_has_error:

-

$_content_error_message_key:

-

localize($_content_error_message_key):

-

$content_error_message:

-

$filtered_content_index_data:

-

$content_requested_url_part:

+ + +
+ +
+
+ +
+ +
+
+
+
+
+

  Debug

+
+
+
+
+
+

This page is still under construction !

+

REQUEST_URI:

+

$requested_content_type:

+

$requested_content_display_type:

+

$requested_tags: []

+

count($requested_tags):

+

$content_has_error:

+

$_content_error_message_key:

+

localize($_content_error_message_key):

+

$content_error_message:

+

$filtered_content_index_data:

+

$content_requested_url_part:

+
+
+ +
+
+
+
+
+

+   error.content.title.generic +

+
+
+
+
+
+

+
+
+ +
+
+
+
+
+

  Email

+
+
+

herwin.bozet@gmail.com

+
+
+
+
+
+
+
+ + +
+
+ + +
+ + +
+
+
+ +
+
+
+ +
+ + - \ No newline at end of file +