by %7$s', 'basically' ),
esc_url( get_permalink() ),
esc_attr( get_the_time() ),
esc_attr( get_the_date( 'c' ) ),
esc_html( get_the_date() ),
esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ),
esc_attr( sprintf( __( 'View all posts by %s', 'basically' ), get_the_author() ) ),
esc_html( get_the_author() )
);
if ( comments_open() || ( '0' != get_comments_number() && ! comments_open() ) ) : ?>
1,
) );
// Count the number of categories that are attached to the posts
$all_the_cool_cats = count( $all_the_cool_cats );
set_transient( 'all_the_cool_cats', $all_the_cool_cats );
}
if ( '1' != $all_the_cool_cats ) {
// This blog has more than 1 category so basically_categorized_blog should return true
return true;
} else {
// This blog has only 1 category so basically_categorized_blog should return false
return false;
}
}
/**
* Flush out the transients used in basically_categorized_blog
*
* @since basically 2.1.0
*/
function basically_category_transient_flusher() {
// Like, beat it. Dig?
delete_transient( 'all_the_cool_cats' );
}
add_action( 'edit_category', 'basically_category_transient_flusher' );
add_action( 'save_post', 'basically_category_transient_flusher' );
/**
* This function removes default styles set by WordPress recent comments widget.
*
* @since basically 2.1.0
*/
add_action( 'widgets_init', 'basically_remove_recent_comments_style' );
function basically_remove_recent_comments_style() {
global $wp_widget_factory;
remove_action( 'wp_head', array( $wp_widget_factory->widgets['WP_Widget_Recent_Comments'], 'recent_comments_style' ) );
} // end basically_remove_recent_comments_style()
/**
* Template for comments and pingbacks.
*
* Used as a callback by wp_list_comments() for displaying the comments.
*
* @since basically 2.1.0
*/
if ( ! function_exists( 'basically_comment' ) ) :
function basically_comment( $comment, $args, $depth ) {
$GLOBALS['comment'] = $comment;
switch ( $comment->comment_type ) :
case 'pingback' :
case 'trackback' :
?>
', '' ); ?>
id="li-comment-">
','');
} else {
echo basically_breadcrumbs();
}
}
endif; // basically_do_breadrumbs()
/**
* Display navigation to next/previous comments pages when applicable
*
* @since basically 2.1.0
*/
if ( ! function_exists( 'basically_comment_nav' ) ) :
function basically_comment_nav() {
if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // are there comments to navigate through ?>
]*?href=[\'"](.+?)[\'"]/is', get_the_content(), $matches ) )
return false;
return esc_url_raw( $matches[1] );
}
?>