Skip to content

Commit

Permalink
Added [UI Frontend] Post: List Tags
Browse files Browse the repository at this point in the history
  • Loading branch information
apzeero committed May 11, 2019
1 parent 244bef0 commit 12981f3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions inc/template-tags.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ function teamwpugph_posted_on() {
* Prints HTML with meta information for the categories, tags and comments.
*/
function teamwpugph_entry_footer() {

// Hide category and tag text for pages.
if ( 'post' === get_post_type() ) {
/* translators: used between list items, there is a space after the comma */
Expand All @@ -56,10 +57,11 @@ function teamwpugph_entry_footer() {
}

/* translators: used between list items, there is a space after the comma */
$tags_list = get_the_tag_list( '', esc_html_x( ', ', 'list item separator', 'teamwpugph' ) );
$tags_list = get_the_tag_list( '<li class="uk-label uk-link-reset">', '</li>' . "\n" . '<li class="uk-label uk-link-reset">', '</li>' );
if ( $tags_list ) {
/* translators: 1: list of tags. */
printf( '<span class="tags-links">' . esc_html__( 'Tagged %1$s', 'teamwpugph' ) . '</span>', $tags_list ); // WPCS: XSS OK.
printf( '<p class="screen-reader-text">%s:</p>', esc_html__( 'Tag list', 'teamwpugph' ) );
echo '<ul class="uk-padding-remove-left">' . "\n" . $tags_list . '</ul>' . "\n";
}
}

Expand Down

0 comments on commit 12981f3

Please sign in to comment.