false, "og:site_name" => SITE_CONFIG["site"]["name"], "og:url" => "https://polygon.pizzaboxer.xyz", "og:description" => "yeah its a website about shapes and squares and triangles and stuff and ummmmm", "og:image" => "https://polygon.pizzaboxer.xyz/img/ProjectPolygon.png", "includeNav" => true, "includeFooter" => true, "app-attributes" => "" ]; // todo - in retrospect this shouldnt even be a thing and so // whatever uses this probably smells so uh should work on that static function showStaticNotification($type, $text) { self::$additionalFooterStuff .= ''; } // todo - change this to use the newer polygon.buildmodal function static function showStaticModal($options) { //$body = trim(preg_replace('/\s\s+/', ' ', $body)); //$body = str_replace('"', '\"', $body); self::$additionalFooterStuff .= ''; } static function buildHeader() { $theme = "light"; // ideally i should probably have this loaded in from // core.php instead of doing the php query on the fly here global $pdo, $announcements, $markdown; if(SESSION) { if(SESSION["adminLevel"]) { $pendingAssets = db::run("SELECT COUNT(*) FROM assets WHERE NOT approved AND (type != 1 || (SELECT COUNT(*) FROM polygon.groups WHERE emblem = assets.id))")->fetchColumn(); } $theme = SESSION["userInfo"]["theme"]; if($theme == "dark") self::$CSSdependencies[] = "/css/polygon-dark.css?t=4"; else if($theme == "2013") self::$CSSdependencies[] = "/css/polygon-2013.css"; else if($theme == "hitius") self::$CSSdependencies[] = "/css/polygon-hitius.css"; else if($theme == "2014") { self::$CSSdependencies[] = "/css/polygon-2014.css?t=".time(); self::$JSdependencies[] = "/js/polygon/Navigation2014.js?t=".time(); self::$pageConfig["app-attributes"] .= " id=\"navContent\""; } } ob_start(); ?> "> <?=(self::$pageConfig["title"] ? self::$pageConfig["title"] . " - " : "") . SITE_CONFIG["site"]["name"]?> "> "> "> "> ">
">
line($announcement["text"])?>
" role="alert" style="background-color: "> text($announcement["text"])?>
>
["title" => "Bad request", "text" => "There was a problem with your request"], 404 => ["title" => "Requested page not found", "text" => "You may have clicked an expired link or mistyped the address"], 420 => ["title" => "Website is currently under maintenance", "text" => "check back later"], 500 => ["title" => "Unexpected error with your request", "text" => "Please try again after a few moments"] ]; if(!isset($text[$code])) $code = 500; if (is_array($customText) && count($customText)) $text[$code] = $customText; self::buildHeader(); ?>


Go to Previous Page Return Home