-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathkarlskrona-blog.html
41 lines (34 loc) · 1.85 KB
/
karlskrona-blog.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<?php $this->yellow->layout("header") ?>
<?php $this->yellow->page->set("entryClass", "post") ?>
<?php if ($this->yellow->page->isExisting("tag")): ?>
<?php foreach (preg_split("/\s*,\s*/", $this->yellow->page->get("tag")) as $tag) { $this->yellow->page->set("entryClass", $this->yellow->page->get("entryClass")." tag-".$this->yellow->lookup->normaliseArguments($tag, false)); } ?>
<?php endif ?>
<section>
<article class="<?php echo $this->yellow->page->getHtml("entryClass") ?>">
<header>
<h2>
<?php echo $this->yellow->page->getHtml("titleContent") ?>
</h2>
<p>
<?php echo $this->yellow->page->getDateHtml("published") . " " . $this->yellow->language->getTextHtml("blogBy") . " "; ?>
<?php $authorCounter = 0; foreach (preg_split("/\s*,\s*/", $this->yellow->page->get("author")) as $author) { if (++$authorCounter>1) echo ", "; echo "<a href=\"".$this->yellow->page->getPage("blogStart")->getLocation(true).$this->yellow->lookup->normaliseArguments("author:$author")."\">".htmlspecialchars($author)."</a>"; } ?>
</p>
<?php if ($this->yellow->page->isExisting("tag")): ?>
<p>
<?php echo $this->yellow->language->getTextHtml("blogTag") ?> <?php $tagCounter = 0; foreach (preg_split("/\s*,\s*/", $this->yellow->page->get("tag")) as $tag) { if (++$tagCounter>1) echo ", "; echo "<a href=\"".$this->yellow->page->getPage("blogStart")->getLocation(true).$this->yellow->lookup->normaliseArguments("tag:$tag")."\">".htmlspecialchars($tag)."</a>"; } ?>
</p>
<?php endif ?>
</header>
<?php echo $this->yellow->page->getContentHtml() ?>
<?php echo $this->yellow->page->getExtraHtml("profile") ?>
<?php echo $this->yellow->page->getExtraHtml("link") ?>
</article>
</section>
<?php if ($this->yellow->page->getExtraHtml("comment")): ?>
<section>
<article>
<?php echo $this->yellow->page->getExtraHtml("comment") ?>
</article>
</section>
<?php endif ?>
<?php $this->yellow->layout("footer") ?>