Skip to content

Instantly share code, notes, and snippets.

@pmoralesgarcia
Created March 19, 2023 04:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save pmoralesgarcia/3e7e60c8767d186801dadc0dba6fd29a to your computer and use it in GitHub Desktop.
Save pmoralesgarcia/3e7e60c8767d186801dadc0dba6fd29a to your computer and use it in GitHub Desktop.
<?php $this->yellow->layout("header") ?>
<div class="content">
<div class="h-entry main" role="main">
<?php $this->yellow->page->set("entryClass", "entry") ?>
<?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 ?>
<div class="<?php echo $this->yellow->page->getHtml("entryClass") ?>">
<div class="entry-title p-name"><h1><?php echo $this->yellow->page->getHtml("titleContent") ?></h1></div>
<div class="entry-meta"><span class="dt-published"><?php echo $this->yellow->page->getDateHtml("published") ?></span> <?php echo $this->yellow->language->getTextHtml("blogBy") ?> <span class="p-author h-card"><?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>"; } ?></span></div>
<div class="entry-content e-content"><?php echo $this->yellow->page->getContent() ?></div>
<?php echo $this->yellow->page->getExtra("profiles") ?>
<?php echo $this->yellow->page->getExtra("links") ?>
<?php if ($this->yellow->page->isExisting("tag")): ?>
<div class="entry-tags">
<p class="p-category"><?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>
</div>
Permalink: <a class="u-url" href="<?php
// Program to display current page URL.
$link = (isset($_SERVER['HTTPS']) && $_SERVER['HTTPS']
=== 'on' ? "https" : "http") .
"://" . $_SERVER['HTTP_HOST'] .
$_SERVER['REQUEST_URI'];
echo $link;
?>"><?php echo $link ?></a>
<?php endif ?>
<?php echo $this->yellow->page->getExtra("comments") ?>
</div>
</div>
<div class="line-2"></div>
</div>
<?php $this->yellow->layout("footer") ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment