sterzycom/site/templates/note.php

31 lines
802 B
PHP
Raw Permalink Normal View History

2015-11-29 20:38:31 +01:00
<?php snippet('header') ?>
<main class="main" role="main">
<div class="mainwrapper">
<article class="text">
<h1><a href="<?php echo url('notes') ?>" > &larrtl;</a> | <?php echo $page->title()->html() ?></h1>
<div class="articleinfo">
<time datetime="<?php echo $page->date('c') ?>" pubdate="pubdate"><?php echo $page->date('d.m.Y') ?></time>
<?php if($page->tags() != ''): ?> -
<span class="tagslocal">
<?php foreach(str::split($page->tags()) as $tag): ?>
<a href="<?php echo url('notes/tag:' . urlencode($tag)) ?>" >#<?php echo $tag; ?></a>&nbsp;
<?php endforeach ?>
</span>
<?php endif ?>
</div>
<?php echo $page->text()->kirbytext() ?>
</article>
</div>
</main>
<?php snippet('footer') ?>