1,
) );
// Count the number of categories that are attached to the posts
$all_the_cool_cats = is_countable( $all_the_cool_cats ) ? count( $all_the_cool_cats ) : 0;
set_transient( 'all_the_cool_cats', $all_the_cool_cats );
}
if ( '1' != $all_the_cool_cats ) {
// This blog has more than 1 category so toolbox_categorized_blog should return true
return true;
} else {
// This blog has only 1 category so toolbox_categorized_blog should return false
return false;
}
}
// Prints HTML with meta information for the current author
function imbalance2_posted_by() {
printf( __( 'By%3$s', 'imbalance2' ),
esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
esc_attr( sprintf( __( 'View all posts by %s', 'imbalance2' ), get_the_author() ) ),
esc_html( get_the_author() )
);
}
// Prints HTML with meta information for the post date
function imbalance2_posted_on() {
printf( __( ' / ', 'imbalance2' ),
esc_url( get_permalink() ),
esc_attr( get_the_time() ),
esc_attr( get_the_date( 'c' ) ),
esc_html( get_the_date() )
);
}
// Prints HTML with meta information for the current catgory
function imbalance2_posted_in() {
if ( is_object_in_taxonomy( get_post_type(), 'category' ) ) {
$posted_in = __( ' / %1$s', 'imbalance2' );
} else {
$posted_in = __( ' / Bookmark the permalink.', 'imbalance2' );
}
printf(
$posted_in,
get_the_category_list( ', ' ),
get_permalink(),
the_title_attribute( 'echo=0' )
);
}
// Prints HTML with meta information for the current tag
function imbalance2_tags() {
/* translators: used between list items, there is a space after the comma */
the_tags( sprintf( '