Skip to content

Instantly share code, notes, and snippets.

@dimobelov
Last active August 4, 2018 12:58
Show Gist options
  • Save dimobelov/8bcd3c86d839d63eb2967426d96abe17 to your computer and use it in GitHub Desktop.
Save dimobelov/8bcd3c86d839d63eb2967426d96abe17 to your computer and use it in GitHub Desktop.
Page Category
<?php if ($page->category()):?>
<div class="entry-terms-wrapper entry-categories-wrapper clear">
<span class="entry-terms category">
<a href="<?php echo DOMAIN_CATEGORIES.$page->categoryKey() ?>" rel="tag">
<?php echo $page->category() ?>
</a>
</span>
</div>
<?php endif?>
<?php if ($page->tags()):?>
<div class="entry-terms-wrapper entry-tags-wrapper clear">
<?php
$tags = $page->tags(true);
foreach($tags as $tagKey=>$tagName) :?>
<span class="entry-terms post_tag">
<a href="<?php echo DOMAIN_TAGS.$tagKey ?>" rel="tag">
<?php echo $tagName ?>
</a>
</span>
<?php endforeach ?>
</div>
<?php endif?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment