Added stub for other content items, Updated OpenGraph tags

Update 403.php, 404.php, and 11 more files...
This commit is contained in:
2022-04-16 10:47:03 +02:00
parent 3a6ad46973
commit 2a64b9d050
13 changed files with 121 additions and 32 deletions

View File

@@ -12,7 +12,7 @@ include_once 'langs.php';
<meta property="og:title" content="Nibble Poker - <?php print(localize('error.403.title')); ?>" />
<meta property="og:type" content="website" />
<meta property="og:url" content="<?php echo($host_uri); ?>/" />
<meta property="og:image" content="<?php echo($host_uri); ?>/resources/Azias/logos/rect1750-9-7-3-shaded.png"/>
<meta property="og:image" content="<?php echo($host_uri); ?>/resources/Azias/logos/opengraph.png"/>
<meta property="og:image:type" content="image/png"/>
<meta property="og:description" content="<?php print(localize('error.403.description')); ?>"/>
</head>

View File

@@ -12,7 +12,7 @@ include_once 'langs.php';
<meta property="og:title" content="Nibble Poker - <?php print(localize('error.404.title')); ?>" />
<meta property="og:type" content="website" />
<meta property="og:url" content="<?php echo($host_uri); ?>/" />
<meta property="og:image" content="<?php echo($host_uri); ?>/resources/Azias/logos/rect1750-9-7-3-shaded.png"/>
<meta property="og:image" content="<?php echo($host_uri); ?>/resources/Azias/logos/opengraph.png"/>
<meta property="og:image:type" content="image/png"/>
<meta property="og:description" content="<?php print(localize('error.404.description')); ?>"/>
</head>

View File

@@ -13,7 +13,7 @@ include_once 'langs.php';
<meta property="og:title" content="Nibble Poker - About"/>
<meta property="og:type" content="website"/>
<meta property="og:url" content="<?php echo($host_uri); ?>/"/>
<meta property="og:image" content="<?php echo($host_uri); ?>/resources/Azias/logos/rect1750-9-7-3-shaded.png"/>
<meta property="og:image" content="<?php echo($host_uri); ?>/resources/Azias/logos/opengraph.png"/>
<meta property="og:image:type" content="image/png"/>
<meta property="og:description" content="???"/>
</head>

View File

@@ -111,6 +111,7 @@
"error.content.id.alphanumeric": "The requested resource's ID isn't valid.",
"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 !",
"error.content.data.no.tags": "No tags found !",
"error.content.data.no.parts": "No content parts were found for this content !",
"error.content.data.no.subpart": "No sub-element were found for this element !",
@@ -259,6 +260,7 @@
"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.data.no.title": "Aucun titre trouvé !",
"error.content.data.no.description": "Aucune description trouvée !",
"error.content.data.no.tags": "Aucun tag trouvé !",
"error.content.data.no.parts": "Aucun élément à présenter n'a été trouvé !",
"error.content.data.no.subpart": "Aucun sous-élément n'a été trouvé pour cet élément !",

View File

@@ -12,7 +12,7 @@ include_once 'langs.php';
<meta property="og:title" content="Nibble Poker - <?php print(localize('contact.title')); ?>" />
<meta property="og:type" content="website" />
<meta property="og:url" content="<?php echo($host_uri); ?>/" />
<meta property="og:image" content="<?php echo($host_uri); ?>/resources/Azias/logos/rect1750-9-7-3-shaded.png"/>
<meta property="og:image" content="<?php echo($host_uri); ?>/resources/Azias/logos/opengraph.png"/>
<meta property="og:image:type" content="image/png"/>
<meta property="og:description" content="<?php print(localize('contact.description')); ?>"/>
</head>

View File

@@ -23,15 +23,41 @@ if($content_has_error) {
<!DOCTYPE html>
<html lang="<?php echo($user_language); ?>">
<head>
<?php include 'headers.php'; ?>
<title>Content - Nibble Poker</title>
<meta name="description" content="???">
<meta property="og:title" content="Nibble Poker - Content" />
<meta property="og:type" content="website" />
<meta property="og:url" content="<?php echo($host_uri); ?>/" />
<meta property="og:image" content="<?php echo($host_uri); ?>/resources/Azias/logos/opengraph.png"/>
<meta property="og:image:type" content="image/png"/>
<meta property="og:description" content="???"/>
<?php
include 'headers.php';
// Setting up the common variables.
if($content_has_error) {
$_metaTitle = localize("error.content.title.generic");
$_metaDescription = $content_error_message;
} else {
$_metaTitle = localize("error.content.data.no.title");
$_metaDescription = localize("error.content.data.no.description");
if($requested_content_display_type == ContentDisplayType::CONTENT) {
if(array_key_exists("meta", $requested_item_data)) {
if(array_key_exists("title", $requested_item_data["meta"])) {
$_metaTitle = getContentItemText($requested_item_data["meta"]["title"]);
}
if(array_key_exists("description", $requested_item_data["meta"])) {
$_metaDescription = getContentItemText($requested_item_data["meta"]["description"]);
}
}
} else {
$_metaTitle = localize("content.title.search.card");
$_metaDescription = "";
}
}
// Printing the title, meta and opengraph tags.
echo('<title>'.$_metaTitle.' - Nibble Poker</title>');
echo('<meta name="description" content="'.$_metaDescription.'">');
echo('<meta property="og:title" content="Nibble Poker - '.$_metaTitle.'" />');
echo('<meta property="og:description" content="'.$_metaDescription.'"/>');
?>
<meta property="og:type" content="website" />
<meta property="og:url" content="<?php echo($host_uri); ?>/" />
<meta property="og:image" content="<?php echo($host_uri); ?>/resources/Azias/logos/opengraph.png"/>
<meta property="og:image:type" content="image/png"/>
<link href="/resources/GliderJs/1.7.6/glider.min.css" rel="stylesheet" />
</head>
<body class="with-custom-webkit-scrollbars with-custom-css-scrollbars dark-mode" data-dm-shortcut-enabled="true" data-sidebar-shortcut-enabled="true">
@@ -55,13 +81,11 @@ if($content_has_error) {
echo(localize("content.title.content").'<span class="mx-10">❱</span>'.localize("content.title.search.header"));
} elseif($requested_content_display_type == ContentDisplayType::CONTENT) {
$_nav_title_text = '<i>' . localize("error.content.data.no.title") . '</i>';
if (array_key_exists("page", $requested_item_data["title"])) {
if (array_key_exists($user_language, $requested_item_data["title"]["page"])) {
$_nav_title_text = $requested_item_data["title"]["page"][$user_language];
} elseif (array_key_exists($default_language, $requested_item_data["title"]["page"])) {
$_nav_title_text = $requested_item_data["title"]["page"][$user_language];
}
$_nav_title_text = getContentItemText($requested_item_data["title"]["page"]);
}
echo(localize("content.title.content").'<span class="mx-10">❱</span>'.$_nav_title_text);
}
?>
@@ -70,15 +94,6 @@ if($content_has_error) {
</div>
<div class="content mx-auto w-lg-p90">
<?php
startMainCard("fad fa-construction", "Under construction", "");
echo('<div class="py-20 bg-light-lm rounded-bottom px-0 bg-very-dark title-bkgd">');
echo('<div class="content m-0 mx-20">');
echo('<h3 class="font-size-18 mb-5 font-weight-semi-bold content-search-title">');
echo('<span class="font-weight-bold">15/04/2021</span> - This section is under construction...</h3>');
echo('</div>');
echo('</div>');
endMainCard();
if($SHOW_CONTENT_DEBUG_CARD) {
// ################
// Debugging card
@@ -192,7 +207,7 @@ if($content_has_error) {
$_title_icon = "fad fa-question";
$_title_text_main = '<i>'.localize("error.content.data.no.title").'</i>';
$_title_text_sub = NULL;
// Attempting to read the card's icon, title and subtitle.
if (array_key_exists("title", $requested_item_data)) {
if (array_key_exists("icon", $requested_item_data["title"])) {

View File

@@ -0,0 +1,28 @@
{
"title": {
"icon": "fad fa-unlock",
"page": {
"en": "Excel Worksheet Password Remover",
"fr": "Excel Worksheet Password Remover"
},
"card": {
"main": {
"en": "Excel Worksheet Password Remover",
"fr": "Excel Worksheet Password Remover"
}
}
},
"meta": {
"title": {
"en": "Excel Worksheet Password Remover",
"fr": "Excel Worksheet Password Remover"
},
"description": {
"en": "Small web page from which you can easily remove a password from an Excel worksheet. It works by leaving the task of editing the XML files on an Excel document to your browser instead to keep everything local.",
"fr": "Petite application web qui permet de facilement retirer le mot de passe d'une feuille de calcul Excel depuis votre navigateur web sans avoir à uploader le fichier sur internet. Cette application laisse votre navigateur modifier les fichiers XML du fichier Excel afin de tout garder en local."
}
},
"tags": [
"docker", "web", "python"
]
}

View File

@@ -16,6 +16,16 @@
}
}
},
"meta": {
"title": {
"en": "PB-ListComPort",
"fr": "PB-ListComPort"
},
"description": {
"en": "A simple CLI tool that can list COM ports with their name, friendly name and device name easily and cleanly.",
"fr": "Un petit utilitaire pour invité de commande qui permet de facilement lister les noms, noms formatés et chemin des ports COM."
}
},
"parts": [
{
"type": "container",
@@ -160,7 +170,7 @@
"key": "content.commons.version.current"
},
"subtitle": {
"en": "v2.1.0"
"en": "<i class=\"fab fa-windows mr-20\"></i>v2.1.0"
},
"modifiers": [
"no-rounding",

View File

@@ -0,0 +1,28 @@
{
"title": {
"icon": "fab fa-youtube",
"page": {
"en": "Youtube-Auto-Archiver",
"fr": "Youtube-Auto-Archiver"
},
"card": {
"main": {
"en": "Youtube-Auto-Archiver",
"fr": "Youtube-Auto-Archiver"
}
}
},
"meta": {
"title": {
"en": "Youtube-Auto-Archiver",
"fr": "Youtube-Auto-Archiver"
},
"description": {
"en": "A simple and yet highly configurable Python application that automatically checks if a Youtuber is streaming, and downloads said streams while also archiving its latest uploads.",
"fr": "Conteneur et application Python hautement configurable qui permet d'automatiquement archiver et télécharger des livestreams et vidéos depuis YouTube."
}
},
"tags": [
"docker", "web", "python"
]
}

View File

@@ -12,7 +12,7 @@ include_once 'langs.php';
<meta property="og:title" content="Nibble Poker" />
<meta property="og:type" content="website" />
<meta property="og:url" content="<?php echo($host_uri); ?>/" />
<meta property="og:image" content="<?php echo($host_uri); ?>/resources/Azias/logos/rect1750-9-7-3-shaded.png"/>
<meta property="og:image" content="<?php echo($host_uri); ?>/resources/Azias/logos/opengraph.png"/>
<meta property="og:image:type" content="image/png"/>
<meta property="og:description" content="<?php print(localize('home.intro.meta.description')); ?>"/>
</head>

View File

@@ -12,7 +12,7 @@ include_once 'langs.php';
<meta property="og:title" content="Nibble Poker - Links" />
<meta property="og:type" content="website" />
<meta property="og:url" content="<?php echo($host_uri); ?>/" />
<meta property="og:image" content="<?php echo($host_uri); ?>/resources/Azias/logos/rect1750-9-7-3-shaded.png"/>
<meta property="og:image" content="<?php echo($host_uri); ?>/resources/Azias/logos/opengraph.png"/>
<meta property="og:image:type" content="image/png"/>
<meta property="og:description" content="A collection of links to all the other locations we are active on."/>
</head>

View File

@@ -12,7 +12,7 @@ include_once 'langs.php';
<meta property="og:title" content="Nibble Poker - <?php print(localize('privacy.title')); ?>" />
<meta property="og:type" content="website" />
<meta property="og:url" content="<?php echo($host_uri); ?>/" />
<meta property="og:image" content="<?php echo($host_uri); ?>/resources/Azias/logos/rect1750-9-7-3-shaded.png"/>
<meta property="og:image" content="<?php echo($host_uri); ?>/resources/Azias/logos/opengraph.png"/>
<meta property="og:image:type" content="image/png"/>
<meta property="og:description" content="<?php print(localize('privacy.description')); ?>"/>
</head>

View File

@@ -1,6 +1,8 @@
https://nibblepoker.lu/
https://nibblepoker.lu/content/
https://nibblepoker.lu/content/lscom-cli
https://nibblepoker.lu/content/youtube-auto-archiver
https://nibblepoker.lu/content/excel-worksheet-password-remover
https://nibblepoker.lu/links/
https://nibblepoker.lu/about/
https://nibblepoker.lu/contact/
@@ -8,6 +10,8 @@ https://nibblepoker.lu/privacy/
https://nibblepoker.lu/en/
https://nibblepoker.lu/en/content/
https://nibblepoker.lu/en/content/lscom-cli
https://nibblepoker.lu/en/content/youtube-auto-archiver
https://nibblepoker.lu/en/content/excel-worksheet-password-remover
https://nibblepoker.lu/en/links/
https://nibblepoker.lu/en/about/
https://nibblepoker.lu/en/contact/
@@ -15,6 +19,8 @@ https://nibblepoker.lu/en/privacy/
https://nibblepoker.lu/fr/
https://nibblepoker.lu/fr/content/
https://nibblepoker.lu/fr/content/lscom-cli
https://nibblepoker.lu/fr/content/youtube-auto-archiver
https://nibblepoker.lu/fr/content/excel-worksheet-password-remover
https://nibblepoker.lu/fr/links/
https://nibblepoker.lu/fr/about/
https://nibblepoker.lu/fr/contact/