Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if ( 'on' === $show_author || 'on' === $show_date || 'on' === $show_categories || 'on' === $show_comments ) {
- printf( '<p class="post-meta">%1$s %2$s %3$s %4$s %5$s %6$s %7$s</p>',
- (
- 'on' === $show_author
- ? et_get_safe_localization( sprintf( __( 'by %s', 'et_builder' ), '<span class="author vcard">' . et_pb_get_the_author_posts_link() . '</span>' ) )
- : ''
- ),
- (
- ( 'on' === $show_author && 'on' === $show_date )
- ? ' | '
- : ''
- ),
- (
- 'on' === $show_date
- ? et_get_safe_localization( sprintf( __( '%s', 'et_builder' ), '<span class="published">' . esc_html( get_the_date( $meta_date ) ) . '</span>' ) )
- : ''
- ),
- (
- (( 'on' === $show_author || 'on' === $show_date ) && 'on' === $show_categories)
- ? ' | '
- : ''
- ),
- (
- 'on' === $show_categories
- ? get_the_category_list(', ')
- : ''
- ),
- (
- (( 'on' === $show_author || 'on' === $show_date || 'on' === $show_categories ) && 'on' === $show_comments)
- ? ' | '
- : ''
- ),
- (
- 'on' === $show_comments
- ? sprintf( esc_html( _nx( '%s Comment', '%s Comments', get_comments_number(), 'number of comments', 'et_builder' ) ), number_format_i18n( get_comments_number() ) )
- : ''
- )
- );
- }
Advertisement
Add Comment
Please, Sign In to add comment