' . __( 'Sticky', 'atwood' ) . ''; if ( 'post' == get_post_type() ) { echo '
'; echo __('Posted on', 'atwood') . ' '; echo get_the_time('jS') . ' ' . get_the_time('F') . ', ' . __('by', 'atwood') . ' ' ; the_author_posts_link(); if ( !$shorten ) { echo ' ' . __('in', 'atwood') . ' '; the_category(', ') . ' ' ; } ?> '; } } endif; if ( ! function_exists( 'themeora_entry_date' ) ) : /** * Prints HTML with date information for current post. * @since themeora 1.0 * @param boolean $echo Whether to echo the date. Default true. * @return string The HTML-formatted post date. */ function themeora_entry_date( $echo = true ) { if ( has_post_format( array( 'chat', 'status' ) ) ) $format_prefix = _x( '%1$s on %2$s', '1: post format name. 2: date', 'atwood' ); else $format_prefix = '%2$s'; $date = sprintf( '', esc_url( get_permalink() ), esc_attr( sprintf( __( 'Permalink to %s', 'atwood' ), the_title_attribute( 'echo=0' ) ) ), esc_attr( get_the_date( 'c' ) ), esc_html( sprintf( $format_prefix, get_post_format_string( get_post_format() ), get_the_date() ) ) ); if ( $echo ) echo $date; return $date; } endif; if ( ! function_exists( 'themeora_post_nav' ) ) : /** * Displays navigation to next/previous post when applicable. * @since themeora 1.0 * @return next and prev posts links */ function themeora_post_nav() { global $post; if( get_theme_mod( 'post_pagination' ) == true ) { // Don't print empty markup if there's nowhere to navigate. $previous = ( is_attachment() ) ? get_post( $post->post_parent ) : get_adjacent_post( false, '', true ); $next = get_adjacent_post( false, '', false ); if ( ! $next && ! $previous ) return; ?> '; echo the_tags( '

' . __('Tagged As', 'atwood') . '

', '', '' ); echo '
'; } } endif; if ( ! function_exists( 'themeora_post_author_meta' ) ) : /** * Displays author information under posts * @since themeora 1.0 * @return block of html to display author info */ function themeora_post_author_meta() { if( get_theme_mod( 'show_author_bio' ) == true ) { if ( 'post' == get_post_type() && get_the_author_meta('first_name') != '' && get_the_author_meta('last_name') != '') { ?>

:

.
max_num_pages < 2 ) return; ?>
'. __('...read more', 'atwood') . ''; } endif; add_filter( 'excerpt_more', 'themeora_excerpt_more' ); if ( ! function_exists( 'themeora_default_page_loop' ) ) : /** * Default loop * * Run a loop based off the provided page id. If no id is passed in, just do a standard loop. * Used to return various pages for the single page template. * @param int $page. The id of the page * @param boolean $sidebar. Should the sidebar be shown * @return the page structure for full width or default page */ function themeora_default_page_loop( $page = null, $sidebar = null ) { $col_span = $sidebar === true ? 'col-md-8' : 'col-md-12'; $template = get_page_template_slug( $page ); ?>