PlainSQLiteBlog/header.php

21 lines
454 B
PHP

<?php
$strDefaults =
"# localhost
[Home](/) ·
[Post](/post) ·
[Edit](/edit) ·
[User](/user/info) ·
---";
$strDefaults = preg_replace("/[ ]{4,}/", "", $strDefaults);
$strContent = Settings::get("header", $strDefaults, true);
?>
<?php if (strlen($strContent) > 0): ?>
<div class="header-content">
<?php PageRender::markdown($strContent); ?>
</div>
<?php endif; ?>