%2$s'; $time_string = sprintf( $time_string, esc_attr( get_the_date( 'c' ) ), esc_html( get_the_date() ) ); $posted_on = sprintf( esc_html_x( 'Posted on %s', 'post date', 'bloatless' ), '' . $time_string . '' ); if ( $echo ) { echo '' . $posted_on . ''; // WPCS: XSS OK. } else { return '' . $posted_on . ''; } } endif; if ( ! function_exists( 'bloatless_entry_footer' ) ) : /** * Prints HTML with meta information for the categories, tags and comments. */ function bloatless_entry_footer() { ?>
"', '"', false ) ), ' ', '' ); ?>
'ids', 'hide_empty' => 1, // We only need to know if there is more than one category. 'number' => 2, ) ); // Count the number of categories that are attached to the posts. $all_the_cool_cats = count( $all_the_cool_cats ); set_transient( 'bloatless_categories', $all_the_cool_cats ); } if ( $all_the_cool_cats > 1 ) { // This blog has more than 1 category so bloatless_categorized_blog should return true. return true; } else { // This blog has only 1 category so bloatless_categorized_blog should return false. return false; } } /** * Flush out the transients used in bloatless_categorized_blog. */ function bloatless_category_transient_flusher() { if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) { return; } // Like, beat it. Dig? delete_transient( 'bloatless_categories' ); } add_action( 'edit_category', 'bloatless_category_transient_flusher' ); add_action( 'save_post', 'bloatless_category_transient_flusher' ); if ( ! function_exists( 'bloatless_comment' ) ) : function bloatless_comment( $comment, $args, $depth ) { if ( 'div' === $args['style'] ) { $tag = 'div'; $add_below = 'comment'; } else { $tag = 'li'; $add_below = 'div-comment'; } ?> < id="comment-">
%s', 'bloatless' ), get_comment_author_link() ); ?> comment_approved == '0' ) : ?>
$add_below, 'depth' => $depth, 'max_depth' => $args['max_depth'] ) ) ); ?>