Update 1.4 - page titles
This commit is contained in:
parent
72322737bf
commit
f58ca227d6
@ -10,6 +10,7 @@ databaseHost = "127.0.0.1"
|
|||||||
|
|
||||||
[main]
|
[main]
|
||||||
pageTitle = "Club Réseaux - E59"
|
pageTitle = "Club Réseaux - E59"
|
||||||
|
pageName = "E59"
|
||||||
headerTitle = "E59"
|
headerTitle = "E59"
|
||||||
headerSubtitle = "Club Réseaux"
|
headerSubtitle = "Club Réseaux"
|
||||||
footerText = "© Jan BELLON - E59 v1.4"
|
footerText = "© Jan BELLON - E59 v1.4"
|
||||||
|
@ -11,7 +11,7 @@ $pdo = sqlConnect($sqlDatabaseHost, $sqlDatabaseName, $sqlDatabaseUser, $sqlData
|
|||||||
<html lang="fr">
|
<html lang="fr">
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<?php fillHead($rootPageURL, $pageTitle, $darkTheme, $lightTheme);?>
|
<?php fillHead($rootPageURL, "A propos - " . $pageName, $darkTheme, $lightTheme);?>
|
||||||
<style></style>
|
<style></style>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
|
@ -57,7 +57,7 @@ if (isset($_POST['username']) && isset($_POST['password'])) {
|
|||||||
<html lang="fr">
|
<html lang="fr">
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<?php fillHead($rootPageURL, $pageTitle, $darkTheme, $lightTheme);?>
|
<?php fillHead($rootPageURL, "Se connecter - " . $pageName, $darkTheme, $lightTheme);?>
|
||||||
<style>
|
<style>
|
||||||
</style>
|
</style>
|
||||||
</head>
|
</head>
|
||||||
|
@ -66,7 +66,7 @@ if (isset($_POST['username']) && isset($_POST['password1']) && isset($_POST['pas
|
|||||||
<html lang="fr">
|
<html lang="fr">
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<?php fillHead($rootPageURL, $pageTitle, $darkTheme, $lightTheme);?>
|
<?php fillHead($rootPageURL, "Créer un compte - " . $pageName, $darkTheme, $lightTheme);?>
|
||||||
<style>
|
<style>
|
||||||
/* CUSTOM STYLE */
|
/* CUSTOM STYLE */
|
||||||
</style>
|
</style>
|
||||||
|
@ -58,10 +58,6 @@ if (isset($_GET['article']) && filter_var($_GET['article'], FILTER_VALIDATE_INT)
|
|||||||
<head>
|
<head>
|
||||||
<?php
|
<?php
|
||||||
if (isset($articleID)) {
|
if (isset($articleID)) {
|
||||||
echo ('<title>' . $articleTitle . '</title>');
|
|
||||||
echo ('<meta charset="UTF-8">');
|
|
||||||
echo ('<meta name="viewport" content="width=device-width, initial-scale=1.0">');
|
|
||||||
|
|
||||||
echo ('<meta name="description" content="' . $articleDescription . '">');
|
echo ('<meta name="description" content="' . $articleDescription . '">');
|
||||||
echo ('<meta name="author" content="' . $authorDisplayName . '">');
|
echo ('<meta name="author" content="' . $authorDisplayName . '">');
|
||||||
|
|
||||||
@ -90,23 +86,9 @@ if (isset($_GET['article']) && filter_var($_GET['article'], FILTER_VALIDATE_INT)
|
|||||||
echo ('<meta property="ownpage:image" content="' . $rootPageURL . $miniatureURL . '">');
|
echo ('<meta property="ownpage:image" content="' . $rootPageURL . $miniatureURL . '">');
|
||||||
echo ('<meta property="ownpage:offer_url" content="' . $rootPageURL . 'news?article=' . $articleID . '">');
|
echo ('<meta property="ownpage:offer_url" content="' . $rootPageURL . 'news?article=' . $articleID . '">');
|
||||||
echo ('<meta name="robots" content="max-snippet:-1,max-image-preview:large,noarchive">');
|
echo ('<meta name="robots" content="max-snippet:-1,max-image-preview:large,noarchive">');
|
||||||
|
fillHead($rootPageURL, $articleTitle, $darkTheme, $lightTheme);
|
||||||
echo ('<link rel="stylesheet" href="' . $rootPageURL . 'src/css/style.css">');
|
|
||||||
echo ('<link rel="icon" href="' . $rootPageURL . 'src/img/favicon.ico">');
|
|
||||||
|
|
||||||
echo ('<style>');
|
|
||||||
|
|
||||||
echo ('@media (prefers-color-scheme: dark) {');
|
|
||||||
echo ($darkTheme);
|
|
||||||
echo ('}');
|
|
||||||
|
|
||||||
echo ('@media (prefers-color-scheme: light) {');
|
|
||||||
echo ($lightTheme);
|
|
||||||
echo ('}');
|
|
||||||
|
|
||||||
echo ('</style>');
|
|
||||||
} else {
|
} else {
|
||||||
fillHead($rootPageURL, $pageTitle, $darkTheme, $lightTheme);
|
fillHead($rootPageURL, "Actualités - " . $pageName, $darkTheme, $lightTheme);
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<style>
|
<style>
|
||||||
|
@ -2,18 +2,22 @@
|
|||||||
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
<urlset xmlns="http://www.sitemaps.org/schemas/sitemap/0.9">
|
||||||
<url>
|
<url>
|
||||||
<loc>https://e59.fr/</loc>
|
<loc>https://e59.fr/</loc>
|
||||||
<lastmod>2024-03-14</lastmod>
|
<lastmod>2024-03-18</lastmod>
|
||||||
|
</url>
|
||||||
|
<url>
|
||||||
|
<loc>https://e59.fr/news</loc>
|
||||||
|
<lastmod>2024-03-18</lastmod>
|
||||||
</url>
|
</url>
|
||||||
<url>
|
<url>
|
||||||
<loc>https://e59.fr/login</loc>
|
<loc>https://e59.fr/login</loc>
|
||||||
<lastmod>2024-03-14</lastmod>
|
<lastmod>2024-03-18</lastmod>
|
||||||
</url>
|
</url>
|
||||||
<url>
|
<url>
|
||||||
<loc>https://e59.fr/login/register.php</loc>
|
<loc>https://e59.fr/login/register</loc>
|
||||||
<lastmod>2024-03-14</lastmod>
|
<lastmod>2024-03-18</lastmod>
|
||||||
</url>
|
</url>
|
||||||
<url>
|
<url>
|
||||||
<loc>https://e59.fr/about</loc>
|
<loc>https://e59.fr/about</loc>
|
||||||
<lastmod>2024-03-14</lastmod>
|
<lastmod>2024-03-18</lastmod>
|
||||||
</url>
|
</url>
|
||||||
</urlset>
|
</urlset>
|
@ -11,6 +11,7 @@
|
|||||||
$sqlDatabaseHost = $globalConfig['sql']['databaseHost'];
|
$sqlDatabaseHost = $globalConfig['sql']['databaseHost'];
|
||||||
|
|
||||||
$pageTitle = $globalConfig['main']['pageTitle'];
|
$pageTitle = $globalConfig['main']['pageTitle'];
|
||||||
|
$pageName = $globalConfig['main']['pageName'];
|
||||||
$headerTitle = $globalConfig['main']['headerTitle'];
|
$headerTitle = $globalConfig['main']['headerTitle'];
|
||||||
$headerSubtitle = $globalConfig['main']['headerSubtitle'];
|
$headerSubtitle = $globalConfig['main']['headerSubtitle'];
|
||||||
$footerText = $globalConfig['main']['footerText'];
|
$footerText = $globalConfig['main']['footerText'];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user