22 lines
739 B
PHP
22 lines
739 B
PHP
<?php
|
|
$req = $_SERVER['REQUEST_URI'];
|
|
?>
|
|
<html lang="pl">
|
|
<head>
|
|
<link rel="stylesheet" type="text/css" href="/~<<USER>>/style.css">
|
|
<?php
|
|
if (str_contains($req, "/blog/")) {
|
|
echo '<title>~<<USER>> Blog | tylda.org</title>';
|
|
} else {
|
|
echo '<title>~<<USER>> | tylda.org</title>';
|
|
}
|
|
?>
|
|
</head>
|
|
<body>
|
|
<div class="main-content">
|
|
<header id="menu">
|
|
<a href="/~<<USER>>/">~<<USER>></a>
|
|
<a <?php if ($req == "/~<<USER>>/" || $req == "~/<<USER>>/index.php") { echo 'class="active"'; } ?>href="/~<<USER>>/">strona główna</a>
|
|
<a <?php if (str_starts_with($req, "/~<<USER>>/blog/")) { echo 'class="active"'; } ?>href="/~<<USER>>/blog/">blog</a>
|
|
</header>
|