From b7c6d4de4fddf0b7eba7266ecbd229dad8aa9bec Mon Sep 17 00:00:00 2001 From: Daniel Winzen Date: Fri, 30 Dec 2022 12:16:46 +0100 Subject: [PATCH] Add OpenGraph tags --- common_config.php | 1 + www/index.php | 7 ++++++- www/test.php | 7 ++++++- 3 files changed, 13 insertions(+), 2 deletions(-) diff --git a/common_config.php b/common_config.php index cff8859..bdc5de3 100644 --- a/common_config.php +++ b/common_config.php @@ -170,5 +170,6 @@ function alt_links(): void $canonical_query['lang'] = $lang; $link = CANONICAL_URL . ($_SERVER['SCRIPT_NAME'] === '/index.php' ? '/' : $_SERVER['SCRIPT_NAME']) . '?' . http_build_query($canonical_query); echo ''; + echo ''; } } diff --git a/www/index.php b/www/index.php index fcacb91..63553da 100644 --- a/www/index.php +++ b/www/index.php @@ -22,7 +22,7 @@ if(!isset($_REQUEST['format'])){ function send_html(): void { - global $categories, $db, $language, $dir; + global $categories, $db, $language, $dir, $locale; $numrows = 0; $style = '.row{display:flex;flex-wrap:wrap}.headerrow{font-weight:bold}.col{display:flex;flex:1;padding:3px 3px;flex-direction:column}'; $style .= '.red{color:red}.green{color:green}.up .col:nth-child(0n+3){background-color:#aaff88}.down .col:nth-child(0n+3){background-color:#ff4444}'; @@ -106,6 +106,11 @@ function send_html(): void echo ''; echo ''; alt_links(); + echo ''; + echo ''; + echo ''; + echo ''; + echo ''; echo ''; echo ''; echo '
'; diff --git a/www/test.php b/www/test.php index 3c04101..108f630 100644 --- a/www/test.php +++ b/www/test.php @@ -1,6 +1,6 @@ '; @@ -12,6 +12,11 @@ echo ''; echo ''; alt_links(); +echo ''; +echo ''; +echo ''; +echo ''; +echo ''; echo ''; echo '
'; echo '

'._('Online-Test').'

';