mikuli.cz

:)
git clone https://git.sr.ht/~ashymad/mikuli.cz
Log | Files | Refs

blog.html (1894B)


      1 <?php $this->yellow->layout("header") ?>
      2 <div class="content">
      3 <div class="main" role="main">
      4 <?php $this->yellow->page->set("entryClass", "entry") ?>
      5 <?php if ($this->yellow->page->isExisting("tag")): ?>
      6 <?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->normaliseClass($tag)); } ?>
      7 <?php endif ?>
      8 <div class="<?php echo $this->yellow->page->getHtml("entryClass") ?>">
      9 <div class="entry-title"><h1><?php echo $this->yellow->page->getHtml("titleContent") ?></h1></div>
     10 <div class="entry-meta"><p><?php echo $this->yellow->page->getDateHtml("published") ?> <?php echo $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></div>
     11 <div class="entry-content"><?php echo $this->yellow->page->getContentHtml() ?></div>
     12 <?php echo $this->yellow->page->getExtraHtml("profile") ?>
     13 <?php echo $this->yellow->page->getExtraHtml("link") ?>
     14 <?php if ($this->yellow->page->isExisting("tag")): ?>
     15 <div class="entry-tags">
     16 <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>
     17 </div>
     18 <?php endif ?>
     19 <?php echo $this->yellow->page->getExtraHtml("comment") ?>
     20 </div>
     21 </div>
     22 </div>
     23 <?php $this->yellow->layout("footer") ?>