Last active
August 4, 2018 12:58
-
-
Save dimobelov/8bcd3c86d839d63eb2967426d96abe17 to your computer and use it in GitHub Desktop.
Page Category
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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