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

@@ -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"
]
}