comment_type || 'trackback' == $comment->comment_type ) : ?>
  • >
    ', '' ); ?>
  • >
    %s', get_comment_author_link() ); ?> comment_approved ) : ?>

    ', '' ); ?> 'div-comment', 'depth' => $depth, 'max_depth' => $args['max_depth'], 'before' => '', 'after' => '', ) ) ); ?>
    %2$s ', esc_url( get_permalink( get_the_ID() ) ), /* translators: %s: Name of current post */ sprintf( __( 'Continue reading "%s"', 'monograph' ), get_the_title( get_the_ID() ) ) ); return '... ' . $link; } add_filter( 'excerpt_more', 'monograph_excerpt_more' ); endif; /** * Returns true if a blog has more than 1 category. * * @return bool */ function monograph_categorized_blog() { if ( false === ( $all_the_cool_cats = get_transient( 'monograph_categories' ) ) ) { // Create an array of all the categories that are attached to posts. $all_the_cool_cats = get_categories( array( 'fields' => '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( 'monograph_categories', $all_the_cool_cats ); } if ( $all_the_cool_cats > 1 ) { // This blog has more than 1 category so monograph_categorized_blog should return true. return true; } else { // This blog has only 1 category so monograph_categorized_blog should return false. return false; } } /** * Flush out the transients used in monograph_categorized_blog. */ function monograph_category_transient_flusher() { if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) { return; } // Like, beat it. Dig? delete_transient( 'monograph_categories' ); } add_action( 'edit_category', 'monograph_category_transient_flusher' ); add_action( 'save_post', 'monograph_category_transient_flusher' ); if ( ! function_exists( 'monograph_the_custom_logo' ) ) : /** * Displays the optional custom logo. * * Does nothing if the custom logo is not available. * * @since Monograph 1.0.2 */ function monograph_the_custom_logo() { if ( function_exists( 'the_custom_logo' ) ) { the_custom_logo(); } } endif;