Guest User

Untitled

a guest
Feb 24th, 2018
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.82 KB | None | 0 0
  1. //categories
  2. if(! function_exists('appmax_categories')) :
  3. function appmax_categories() {
  4. $categories_list = get_the_category_list( esc_html__( ', ', 'appmax' ) );
  5. if ( $categories_list ) {
  6. /* translators: 1: list of categories. */
  7. printf( '<span class="cat-links">' . esc_html__( '%1$s', 'appmax' ) . '</span>', $categories_list ); // WPCS: XSS OK.
  8. }
  9. }
  10. endif;
  11.  
  12.  
  13. //tags
  14. if(! function_exists('appmax_tags')) :
  15. function appmax_tags() {
  16. /* translators: used between list items, there is a space after the comma */
  17. $tags_list = get_the_tag_list( '', esc_html_x( ', ', 'list item separator', 'appmax' ) );
  18. if ( $tags_list ) {
  19. /* translators: 1: list of tags. */
  20. printf( '<span class="tags-links">' . esc_html__( '%1$s', 'appmax' ) . '</span>', $tags_list ); // WPCS: XSS OK.
  21. }
  22. }
  23. endif;
Add Comment
Please, Sign In to add comment