PlainSQLiteBlog/header.php

21 lines
481 B
PHP

<?php
$strDefaults =
"[Website Home](/) —
[Post](/post) ·
[CSS](/edit/css)
---";
$strDefaults = preg_replace("/[ ]{4,}/", "", $strDefaults);
$strContent = Settings::get("header", $strDefaults, true);
?>
<?php if (strlen($strContent) > 0): ?>
<div class="header-content">
<?php
$varParsedown = new Parsedown();
echo $varParsedown->text($strContent);
?>
</div>
<?php endif; ?>