Guest User

meta.php

a guest
Aug 16th, 2019
225
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.77 KB | None | 0 0
  1. function catch_vogue_blog_entry_meta_left() {
  2. // Hide category and tag text for pages.
  3. if ( 'post' === get_post_type() ) {
  4.  
  5. /* translators: used between list items, there is a space after the comma */
  6. $tags_list = get_the_tag_list();
  7. if ( $tags_list ) {
  8. /* translators: 1: list of tags. */
  9. printf( '<span class="tags-links">%1$s%2$s</span>',
  10. sprintf( _x( '<span class="tags-text screen-reader-text">Tags</span>', 'Used before tag names.', 'catch-vogue' ) ),
  11. $tags_list
  12. ); // WPCS: XSS OK.
  13. }
  14. }
  15. }
  16.  
  17. function catch_vogue_blog_entry_meta_right() {
  18. // Hide category and tag text for pages.
  19. if ( 'post' === get_post_type() ) {
  20.  
  21. $time_string = '<time class="entry-date published updated" datetime="%1$s">%2$s</time>';
  22. if ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ) {
  23. $time_string = '<time class="entry-date published" datetime="%1$s">%2$s</time><time class="updated" datetime="%3$s">%4$s</time>';
  24. }
  25.  
  26. $time_string = sprintf( $time_string,
  27. esc_attr( get_the_date( 'c' ) ),
  28. esc_html( get_the_date() ),
  29. esc_attr( get_the_modified_date( 'c' ) ),
  30. esc_html( get_the_modified_date() )
  31. );
  32.  
  33. printf(
  34. /* translators: %s: post date */
  35. __( '<span class="posted-on"><span class="date-label"> </span>%s', 'catch-vogue' ),
  36. '<a href="' . esc_url( get_permalink() ) . '" rel="bookmark">' . $time_string . '</a></span>'
  37. );
  38. }
  39.  
  40. /*edit_post_link(
  41. sprintf(
  42. wp_kses(*/
  43. /* translators: %s: Name of current post. Only visible to screen readers */
  44. /*__( 'Edit <span class="screen-reader-text">%s</span>', 'catch-vogue' ),
  45. array(
  46. 'span' => array(
  47. 'class' => array(),
  48. ),
  49. )
  50. ),
  51. get_the_title()
  52. ),
  53. '<span class="edit-link screen-reader-text">',
  54. '</span>'
  55. );*/
  56. }
Advertisement
Add Comment
Please, Sign In to add comment