%2$s'; if ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ) { $time_string = ''; } $time_string = sprintf( $time_string, esc_attr( get_the_date( 'c' ) ), esc_html( get_the_date() ), esc_attr( get_the_modified_date( 'c' ) ), esc_html( get_the_modified_date() ) ); $posted_on = $time_string; $byline = '' . esc_html( get_the_author() ) . ''; echo '' . $byline . ' ' . $posted_on . ''; /* translators: used between list items, there is a space after the comma */ $tags_list = get_the_tag_list( '#', ' #', '' ); if ( $tags_list ) { echo ' ' . $tags_list . ''; } } } } if ( ! function_exists( 'billie_entry_footer' ) ) { /** * Prints HTML with meta information for the categories, tags and comments. */ function billie_entry_footer() { if ( ! get_theme_mod( 'billie_hide_meta' ) ) { echo '
'; // Hide category and tag text for pages. if ( 'post' == get_post_type() ) { /* translators: used between list items, there is a space after the comma */ $categories_list = get_the_category_list( __( ', ', 'billie' ) ); if ( $categories_list ) { printf( '' . __( 'Categories: %1$s', 'billie' ) . '', $categories_list ); } } if ( ! is_single() && ! post_password_required() && ( comments_open() || get_comments_number() ) ) { echo ''; comments_popup_link( __( 'Leave a comment', 'billie' ), __( '1 Comment', 'billie' ), __( '% Comments', 'billie' ) ); echo ''; } /* translators: % is the post title */ edit_post_link( sprintf( __( 'Edit %s', 'billie' ), get_the_title() ), '', '' ); /* Display jetpack's share if it's active*/ if ( function_exists( 'sharing_display' ) ) { echo sharing_display(); } /* Display jetpack's like if it's active */ if ( class_exists( 'Jetpack_Likes' ) ) { $billie_custom_likes = new Jetpack_Likes(); echo $billie_custom_likes->post_likes( '' ); } echo '
'; } } } // End if(). if ( ! function_exists( 'billie_portfolio_footer' ) ) { /** * Prints HTML with meta information for the categories, tags and comments. */ function billie_portfolio_footer() { if ( ! get_theme_mod( 'billie_hide_meta' ) ) { echo '
'; global $post; // the_terms( $id, $taxonomy, $before, $sep, $after ). echo the_terms( $post->ID, 'jetpack-portfolio-type', '' . __( 'Project Type: ', 'billie' ), ', ', ''); echo the_terms( $post->ID, 'jetpack-portfolio-tag', '' . __( 'Project Tags: ', 'billie' ), ', ', ''); /* translators: % is the post title */ edit_post_link( sprintf( __( 'Edit %s', 'billie' ), get_the_title() ), '', '' ); /* Display jetpack's share if it's active */ if ( function_exists( 'sharing_display' ) ) { echo sharing_display(); } /* Display jetpack's like if it's active */ if ( class_exists( 'Jetpack_Likes' ) ) { $billie_custom_likes = new Jetpack_Likes(); echo $billie_custom_likes->post_likes( '' ); } echo '
'; } } } /* Excerpts */ function billie_excerpt_more( $more ) { if ( ! is_admin() ) { global $id; return '… ' . billie_continue_reading( $id ); } else { return $more; } } add_filter( 'excerpt_more', 'billie_excerpt_more', 100 ); function billie_custom_excerpt_more( $output ) { if ( has_excerpt() && ! is_attachment() ) { global $id; $output .= ' ' . billie_continue_reading( $id ); // insert a blank space. } return $output; } add_filter( 'get_the_excerpt', 'billie_custom_excerpt_more', 100 ); function billie_continue_reading( $id ) { return '' . sprintf( __( 'Continue Reading %s', 'billie' ), get_the_title( $id ) ) . ''; } /** * Add a pingback url auto-discovery header for single posts, pages, or attachments. */ function billie_pingback_header() { if ( is_singular() && pings_open() ) { echo ''; } } add_action( 'wp_head', 'billie_pingback_header' );