','

' ); } endif; if ( ! function_exists( 'amy_posted_on' ) ) : /** * Prints HTML with meta information for the current post-date/time and author. */ function amy_posted_on() { $time_string = ''; if ( get_the_time( 'U' ) !== get_the_modified_time( 'U' ) ) { $time_string .= ''; } $time_string = sprintf( $time_string, esc_attr( get_the_date( 'c' ) ), esc_html( get_the_date() ), esc_attr( get_the_modified_date( 'c' ) ), esc_html( get_the_modified_date() ) ); printf( '%1$s | %2$s', sprintf( '%2$s', esc_url( get_permalink() ), $time_string ), sprintf( '%2$s', esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ), esc_html( get_the_author() ) ) ); } endif; /* * Return the post format, linked to the post format archive */ function amy_post_format() { $format = get_post_format(); $formats = get_theme_support( 'post-formats' ); //If the post has no format, or if it's not a format supported by the theme, return if ( ! $format || ! has_post_format( $formats[0] ) ) return; printf( '%3$s | ', esc_url( get_post_format_link( $format ) ), esc_attr( sprintf( __( 'All %s posts', 'amy' ), get_post_format_string( $format ) ) ), get_post_format_string( $format ) ); } if ( ! function_exists( 'amy_entry_footer' ) ) : /** * Prints HTML with meta information for the categories, tags and comments. */ function amy_entry_footer() { // Hide category and tag text for pages. if ( 'post' === get_post_type() ) : /* translators: used between list items, there is a space after the comma */ $categories_list = get_the_category_list( ', ' ); if ( $categories_list && amy_categorized_blog() ) { printf( '' . esc_html__( 'Posted in %1$s', 'amy' ) . '', $categories_list ); } $tags_list = get_the_tag_list( '', '' ); if ( $tags_list ) { printf( '%1$s', $tags_list ); } endif; } endif; if ( ! function_exists( 'amy_post_thumbnail' ) ) : /** * Displays an optional post thumbnail. * * Wraps the post thumbnail in an anchor element on index views, or a div * element when on single views. */ function amy_post_thumbnail() { if ( post_password_required() || is_attachment() || ! has_post_thumbnail() ) { return; } if ( ! is_singular() ) : ?> '; echo '
'; dynamic_sidebar( 'sidebar-content' ); echo '
'; echo ''; } } endif;