Finished new composer, removed unfinished content, Improved CSS JS and readme

Update .gitignore, composer.php, and 15 more files...
This commit is contained in:
2022-06-27 13:50:28 +02:00
parent bce4897c00
commit 395f9b680e
13 changed files with 57 additions and 19 deletions

View File

@@ -289,7 +289,8 @@ class ComposerContentMetadata {
'<i class="' . $this->article->icon . '"></i>&nbsp;&nbsp;' .
localize_private($this->article->title, $content_root->strings, false) .
'<span class="card-title font-size-18 m-0 text-super-muted float-right hidden-xs-and-down">' .
'\$subTitle' . '</span></h2></div></div>' .
localize_private($this->article->subtitle, $content_root->strings, false) .
'</span></h2></div></div>' .
'<article id="content-item-container" class="py-01 pb-0 bg-light-lm rounded-bottom px-0 bg-very-dark title-bkgd">' .
$inner_html . '</article>' .
'<div class="px-20 py-10 bg-light-lm bg-dark-dm rounded-bottom border-top">' .
@@ -364,11 +365,13 @@ class ComposerContentMetadataOpengraph {
class ComposerContentMetadataArticle {
public string $icon;
public string $title;
public string $subtitle;
public array $tags;
function __construct(string $icon, string $title, array $tags) {
function __construct(string $icon, string $title, string $subtitle, array $tags) {
$this->icon = $icon;
$this->title = $title;
$this->subtitle = $subtitle;
$this->tags = $tags;
}
@@ -377,6 +380,7 @@ class ComposerContentMetadataArticle {
key_exists("icon", $json_data) ? $json_data["icon"] : "fad fa-question",
key_exists("title", $json_data) ?
$json_data["title"] : '<i>'.localize("error.content.data.no.title").'</i>',
key_exists("subtitle", $json_data) ? $json_data["subtitle"] : '',
key_exists("tags", $json_data) ? $json_data["tags"] : [],
);
}

View File

@@ -104,7 +104,7 @@ if($requested_content_display_type == ContentDisplayType::SEARCH) {
// Loading the content's data
$content_file_path = get_content_file_path($content_requested_url_part);
if(is_null($content_file_path)) {
if(empty($content_file_path)) {
// File doesn't exist !
$content_has_error = true;
$content_error_message_key = "error.content.data.not.exist";

View File

@@ -108,7 +108,7 @@
"error.content.tags.length": "The \"tags\" URL parameter is too long.",
"error.content.tags.alphanumeric": "One of the tags given in the \"tags\" URL parameter is not a valid alphanumeric string.",
"error.content.detect.type": "The type of requested content couldn't be determined.",
"error.content.id.alphanumeric": "The requested resource's ID isn't valid.",
"error.content.id.alphanumeric": "The requested resource's ID isn't a valid alphanumeric string.",
"error.content.data.not.exist": "The requested content doesn't have an internal item file.",
"error.content.data.no.title": "No title found !",
"error.content.data.no.description": "No description found !",
@@ -143,6 +143,7 @@
"content.fallback.content.commons.download.single": "Download",
"content.fallback.content.commons.download.multiple": "Downloads",
"content.fallback.content.commons.version": "Version",
"content.fallback.content.commons.github": "GitHub Repository",
"content.fallback.content.commons.lang.english": "English",
"content.fallback.content.commons.lang.french": "French",
@@ -261,7 +262,7 @@
"error.404.title": "Erreur 404",
"error.404.description": "La ressource demandée est introuvable sur le serveur !",
"error.content.title.generic": "Erreur",
"error.content.title.generic": "Erreur de contenu",
"error.content.title.empty": "Aucun contenu trouvé",
"error.content.none": "Aucune erreur n'a été détectée.",
"error.content.detect.category": "Impossibilité de détecter la catégorie de contenu demandée.",
@@ -272,8 +273,8 @@
"error.content.tags.length": "Le paramètre d'URL \"tags\" est trop long.",
"error.content.tags.alphanumeric": "Un des tags donné dans le paramètre d'URL \"tags\" n'est pas une chaîne de texte alphanumérique valide.",
"error.content.detect.type": "Le type de contenu désiré n'as pas pu être détecté.",
"error.content.id.alphanumeric": "L'ID de la ressource demandée n'est pas valide.",
"error.content.data.not.exist": "Le contenu demandée n'a pas de fichier de données interne associé.",
"error.content.id.alphanumeric": "L'ID de la ressource demandée n'est pas une chaîne de texte alphanumérique valide.",
"error.content.data.not.exist": "Le contenu demandée n'a pas de fichier de rendu interne associé.",
"error.content.data.no.title": "Aucun titre trouvé !",
"error.content.data.no.description": "Aucune description trouvée !",
"error.content.data.no.tags": "Aucun tag trouvé !",
@@ -306,6 +307,7 @@
"content.fallback.content.commons.download.single": "Téléchargement",
"content.fallback.content.commons.download.multiple": "Téléchargements",
"content.fallback.content.commons.version": "Version",
"content.fallback.content.commons.github": "Dépôt GitHub",
"content.fallback.content.commons.lang.english": "Anglais",
"content.fallback.content.commons.lang.french": "Français",