comment_type ) : case 'pingback' : case 'trackback' : ?>
  • id="li-comment-">
    says:', 'splendio' ), sprintf( '%s', get_comment_author_link() ) ); ?>
    comment_approved == '0' ) : ?>
    $depth, 'max_depth' => $args['max_depth'] ) ) ); ?>
    ', 'splendio' ), esc_url( get_permalink() ), esc_attr( get_the_time() ), esc_attr( get_the_date( 'c' ) ), esc_html( get_the_date() ) ); } endif; if ( ! function_exists( 'splendio_posted_in' ) ) : /** * Prints HTML with meta information for the current post (category, tags and permalink). * */ function splendio_posted_in() { // Retrieves tag list of current post, separated by commas. $tag_list = get_the_tag_list( '', ', ' ); if ( $tag_list && ! is_wp_error( $tag_list ) ) { $posted_in = __( 'This entry was posted in %1$s and tagged %2$s. Bookmark the permalink.', 'splendio' ); } elseif ( is_object_in_taxonomy( get_post_type(), 'category' ) ) { $posted_in = __( 'This entry was posted in %1$s. Bookmark the permalink.', 'splendio' ); } else { $posted_in = __( 'Bookmark the permalink.', 'splendio' ); } // If $tag_list returns a WP Error, empty it before passing to printf(), just in case if ( is_wp_error( $tag_list ) ) { $tag_list = ''; } // Prints the string, replacing the placeholders. printf( $posted_in, get_the_category_list( ', ' ), $tag_list, esc_url( get_permalink() ), the_title_attribute( 'echo=0' ) ); } endif; /** * Returns true if a blog has more than 1 category * */ function splendio_categorized_blog() { if ( false === ( $all_the_cool_cats = get_transient( 'all_the_cool_cats' ) ) ) { // Create an array of all the categories that are attached to posts $all_the_cool_cats = get_categories( array( 'hide_empty' => 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 splendio_categorized_blog should return true return true; } else { // This blog has only 1 category so splendio_categorized_blog should return false return false; } } /** * Flush out the transients used in splendio_categorized_blog * */ function splendio_category_transient_flusher() { // Like, beat it. Dig? delete_transient( 'all_the_cool_cats' ); } add_action( 'edit_category', 'splendio_category_transient_flusher' ); add_action( 'save_post', 'splendio_category_transient_flusher' ); // Load the scripts necessary to run our featured posts slider and to provide a fancy fade on certain elements function splendio_scripts() { wp_enqueue_script( 'functions-js', get_template_directory_uri().'/js/functions.js', array( 'jquery'), '20120118' ); } add_action( 'wp_enqueue_scripts', 'splendio_scripts' ); // Tweak the backgrounds on the theme if the user sets a custom background function splendio_header_css() { if ( '' != get_background_image() || '' != get_background_color() ) : ?>