???
This commit is contained in:
parent
e554b7baf1
commit
bbe220f942
@ -58,7 +58,7 @@ if ($_SERVER['REQUEST_METHOD'] == "POST" && isset($_POST["submit"]) && sha1($_PO
|
|||||||
|
|
||||||
$cesta_k_stranke = "stranky/$nazov_stranky.html";
|
$cesta_k_stranke = "stranky/$nazov_stranky.html";
|
||||||
if (!file_exists($cesta_k_stranke)) {
|
if (!file_exists($cesta_k_stranke)) {
|
||||||
$cesta_k_stranke = "templates/header.html";
|
$cesta_k_stranke = "templates/header1.html";
|
||||||
}
|
}
|
||||||
$stranka_obsah = file_get_contents($cesta_k_stranke);
|
$stranka_obsah = file_get_contents($cesta_k_stranke);
|
||||||
$out = str_replace('__TEMPLATE_STRANKA__', $stranka_obsah, $out);
|
$out = str_replace('__TEMPLATE_STRANKA__', $stranka_obsah, $out);
|
||||||
|
11
templates/header1.html
Normal file
11
templates/header1.html
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
<div id="header" class="container">
|
||||||
|
|
||||||
|
<div id="header_nazov" class="flex-item" style="align-self: center;">
|
||||||
|
<p>"Onedrive"</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<nav class="topnav container_menu" id="myTopnav" style="align-items: center;">
|
||||||
|
<a href="/?dano" class="active">Dávid</a>
|
||||||
|
<a href="/?daniel">Daniel</a>
|
||||||
|
<a href="javascript:void(0);" class="icon" onclick="myFunction()">☰</a>
|
||||||
|
</nav>
|
Loading…
Reference in New Issue
Block a user