update
This commit is contained in:
parent
195e214e5a
commit
c7d8c66ad9
10
index.php
10
index.php
@ -20,16 +20,18 @@ $stranka_obsah = file_get_contents($cesta_k_stranke);
|
||||
$out = str_replace('__TEMPLATE_STRANKA__', $stranka_obsah, $out);
|
||||
|
||||
$cesta_k_skriptu = "scripty/$nazov_stranky.js";
|
||||
$script_obsah = "<script src=\"$cesta_k_skriptu\"></script>";
|
||||
if (!file_exists($cesta_k_skriptu)){
|
||||
$cesta_k_skriptu = '';
|
||||
$script_obsah = '';
|
||||
}
|
||||
$out = str_replace('__TEMPLATE_SCRIPT__', "<script src=\"$cesta_k_skriptu\"></script>", $out);
|
||||
$out = str_replace('__TEMPLATE_SCRIPT__', $script_obsah, $out);
|
||||
|
||||
$cesta_k_stylu = "styly/$nazov_stranky.css";
|
||||
$style_obsah = "<link rel=\"stylesheet\" href=\"$cesta_k_stylu\">";
|
||||
if (!file_exists($cesta_k_stylu)){
|
||||
$cesta_k_stylu = '';
|
||||
$style_obsah = '';
|
||||
}
|
||||
$out = str_replace('__TEMPLATE_STYLE__', "<link rel=\"style\" href=\"$cesta_k_stylu\">", $out);
|
||||
$out = str_replace('__TEMPLATE_STYLE__', $style_obsah, $out);
|
||||
|
||||
echo $out;
|
||||
?>
|
Loading…
Reference in New Issue
Block a user