max_num_pages < 2 ) { return; } ?> max_num_pages < 2 ) return; ?> post_parent ) : get_adjacent_post( false, '', true ); $next = get_adjacent_post( false, '', false ); if ( ! $next && ! $previous ) { return; } ?> %2$s'; if ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ) { $time_string .= ''; } $date_format = get_option( 'date_format' ); $date_format = str_replace( 'F j, Y', 'n / j / y', $date_format ); $time_string = sprintf( $time_string, esc_attr( get_the_date( 'c' ) ), esc_html( get_the_date( $date_format ) ), esc_attr( get_the_modified_date( 'c' ) ), esc_html( get_the_modified_date( $date_format ) ) ); printf( __( '%1$s', 'wpcanvas2' ), sprintf( '%2$s', esc_url( get_permalink() ), $time_string ) ); } endif; if ( ! function_exists( 'wpcanvas2_posted_on_2' ) ) : /** * Prints HTML with meta information for the current post-date/time and author. */ function wpcanvas2_posted_on_2() { global $wpc2; ?>
' . esc_html( get_the_author() ) . '' ); echo ' ' . $byline . ''; ?>
'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( 'wpcanvas2_categories', $all_the_cool_cats ); } if ( $all_the_cool_cats > 1 ) { // This blog has more than 1 category so wpcanvas2_categorized_blog should return true. return true; } else { // This blog has only 1 category so wpcanvas2_categorized_blog should return false. return false; } } endif; if ( ! function_exists( 'wpcanvas2_share_buttons' ) ) : function wpcanvas2_share_buttons() { $share_buttons = ''; ?>
' . esc_html( get_the_author() ) . '' ); ?> | '.__( 'Tags: ', 'wpcanvas2' ).'', ', ', '' ); ?>
|
', ']]>', $content ); $content = trim( $content ); $search[] = '/\\s*\\S+\<\/a\>\s*\<\/p\>/'; $search[] = '/\s*\\S+\<\/a\>\s*/'; $replace[] = ''; $replace[] = ''; $content = preg_replace( $search, $replace, $content ); $content = trim( $content ); echo $content; } endif; if ( ! function_exists( 'wpcanvas2_the_bottom_content' ) ) : /** * Show Tags and Categories * */ function wpcanvas2_the_bottom_content() { $content = get_the_content( null, true ); $content = apply_filters( 'the_content', $content ); $content = str_replace( ']]>', ']]>', $content ); $content = trim( $content ); $search[] = '/\\s*\\<\/span\>\s*\<\/p\>/'; $search[] = '/\s*\\<\/span\>\s*/'; $replace[] = ''; $replace[] = ''; $content = preg_replace( $search, $replace, $content ); $content = trim( $content ); echo $content; } endif;