sbgg.jetzt/page/page_base.php

38 lines
1.6 KiB
PHP
Raw Normal View History

<?php
declare(strict_types = 1);
namespace Kimendisch\Sbgg_Jetzt;
use Flake\Page;
use Flake\File;
use Flake\Url;
// PAGE INIT //
Page::icon("./asset/logo-256.png");
Page::description($dict->get("description"));
Page::lang($lang->get());
Page::viewport(scale: 1, zoom: true);
Page::author("Kim Endisch");
Page::keywords("selbstbestimmungsgesetz-jetzt", "sbgg-jetzt", "selbstbestimmungsgesetz", "selbstbestimmung", "sbgg", "SBGG", "tsg", "transsexuellengesetz", "trans", "nicht-binär", "non-binary", "deutschland", "gender", "geschlecht", "identität", "roadmap", "timeline", "stand", "aktuell", "aktueller stand", "wann", "wann kommt", "inkrafttreten", "referentenentwurf");
Page::$head["og_description"] = '<meta property="og:description" content="' . $dict->get("description") . '" />';
Page::$head["og_type"] = '<meta property="og:type" content="website" />';
$banner_file_path = ([
"de" => "./asset/banner-de-bg-1920.png",
"en" => "./asset/banner-en-bg-1920.png",
])[$lang->get()] ?? "./asset/banner-de-bg-1920.png";
Page::$head["og_image"] = '<meta property="og:image" content="' . File::file($banner_file_path) . '" />';
Page::$head["og_url"] = '<meta property="og:url" content="' . Url::full() . '" />';
Page::$head["analytics"] = '<script defer data-domain="sbgg.jetzt" src="https://analytics.tjdev.de/js/script.js"></script>';
Page::css("./page/style.css");
Page::css("./page/style.css.php", eval: true);
2024-07-26 16:00:23 +02:00
require("./page/copylink_strings.php");
Page::js("./page/copylink_dict.js.php", eval: true);
Page::js("./page/copylink.js");
2024-07-26 15:10:32 +02:00
Page::css("./page/copylink.css");
Page::font("ubuntu");
Page::font("tabler");
?>