' . __( 'Sticky', THEMEORA_THEME_NAME ) . ''; if ( ! has_post_format( 'link' ) && 'post' == get_post_type() ) { echo '
'; } } /** * 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', THEMEORA_THEME_NAME ); else $format_prefix = '%2$s'; $date = sprintf( '', esc_url( get_permalink() ), esc_attr( sprintf( __( 'Permalink to %s', THEMEORA_THEME_NAME ), 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; } /** * Displays navigation to next/previous post when applicable. * @since themeora 1.0 * @return next and prev posts links */ function themeora_post_nav() { global $post; global $themeora_options; 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( '