__( 'Main Widget Area', 'agilespirit' ), 'id' => 'sidebar-1', 'description' => __( 'Appears in the left side-bar section of the site.', 'agilespirit' ), 'before_widget' => '
', 'after_widget' => '
', 'before_title' => '
', 'after_title' => '
', ) ); } add_action( 'widgets_init', 'agilespirit_widgets_init' ); if ( ! function_exists( 'agilespirit_paging_nav' ) ) : /** * Displays navigation to next/previous set of posts when applicable. * * @since Agile Spirit 1.0 * * @return void */ function agilespirit_paging_nav() { global $wp_query; // Don't print empty markup if there's only one page. if ( $wp_query->max_num_pages < 2 ) return; ?> post_parent ) : get_adjacent_post( false, '', true ); $next = get_adjacent_post( false, '', false ); if ( ! $next && ! $previous ) return; ?> ', esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ), esc_attr( sprintf( __( 'View all posts by %s', 'agilespirit' ), get_the_author() ) ), get_the_author() ); } } endif; if ( ! function_exists( 'agilespirit_entry_date' ) ) : /** * Prints HTML with date information for current post. * * Create your own agilespirit_entry_date() to override in a child theme. * * @since Agile Spirit 1.0 * * @param boolean $echo Whether to echo the date. Default true. * @return string The HTML-formatted post date. */ function agilespirit_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', 'agilespirit' ); else $format_prefix = '%2$s'; $date = sprintf( '' . __('Published on ', 'agilespirit') . '', 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; ?>