/
var
/
www
/
barefootlaw.org
/
wp-content
/
themes
/
barefoot
/
Upload File
HOME
<?php /** * The template for displaying all single posts * * @package Aisconverse * @subpackage Covercase * @since Covercase 1.0 */ get_header(); ?> <?php if ( function_exists( 'basement_revslider' ) ) { /** * Displays Slider Revolution. * * @package Aisconverse * @subpackage Covercase * @since Covercase 1.0 */ basement_revslider(); } ?> <?php do_action( 'basement_before_wrap_content' ); ?> <div class="content"> <!-- CONTAINER --> <div class="container"> <div class="row"> <?php /** * basement_before_content basement framework hook. * * @hooked basement_output_left_sidebar - 20 (outputs left sidebar) * @hooked basement_output_content_wrapper - 21 (outputs opening divs for the content) * * @package Aisconverse * @subpackage Covercase * @since Covercase 1.0 */ do_action( 'basement_before_content' ); ?> <?php while ( have_posts() ) : the_post(); ?> <div class="single-post-container"> <div class="single-post-container__body"> <?php the_content(); ?> </div> <?php wp_link_pages( array( 'before' => '<div class="single-post-container__links"><span class="page-links-title">' . esc_html__( 'Pages:', 'covercase' ) . '</span>', 'after' => '</div>', 'link_before' => '<span>', 'link_after' => '</span>', 'pagelink' => '<span class="screen-reader-text">' . esc_html__( 'Page', 'covercase' ) . ' </span>%', 'separator' => '<span class="screen-reader-text">, </span>', ) ); ?> <?php edit_post_link( esc_html__( 'Edit', 'covercase' ), '<div class="single-post-container__edit"><span class="edit-link">', '</span></div>' ); ?> <div class="single-post-container__meta <?php echo 'yes' === get_post_meta( get_the_ID(), '_basement_meta_blog_sharing', true ) ? 'single-post-container__meta--with-share' : ''; ?>"> <div class="single-post-container__tags"> <?php the_tags( '', '', '' ); ?> </div> <div class="single-post-container__share"> <?php if ( function_exists( 'basement_post_share' ) ) { /** * Displays Share Block For Single Post * * @package Aisconverse * @subpackage Covercase * @since Covercase 1.0 */ basement_post_share(); } ?> </div> </div> </div> <?php if ( is_single() && get_the_author_meta( 'description' ) ) { // Author bio. ?> <div class="single-post-biography"> <div class="single-post-biography__overlay js-stretch-overlay"></div> <!-- Overlay for Biography section --> <div class="single-post-biography__body"> <div class="single-post-biography__userpic"> <?php echo get_avatar( get_the_author_meta( 'user_email' ), 93 ) ?> </div> <div class="single-post-biography__info"> <div class="row align-items-center"> <div class="col-md-8 col-lg-9"> <div class="single-post-biography__username"><?php echo get_the_author(); ?></div> <div class="single-post-biography__shortinfo"><?php the_author_meta( 'description' ); ?></div> </div> <div class="col-md-4 col-lg-3 text-md-right"> <a class="single-post-biography__more" href="<?php echo esc_url( get_author_posts_url( get_the_author_meta( 'ID' ) ) ); ?>" title="<?php echo esc_attr( __( 'All Posts', 'covercase' ) ); ?>"><?php echo esc_html( __( 'All Posts', 'covercase' ) ); ?></a> </div> </div> </div> </div> </div> <?php } ?> <?php // If comments are open or we have at least one comment, load up the comment template. if ( comments_open() || get_comments_number() ) : comments_template(); endif; ?> <?php endwhile; ?> <?php /** * basement_after_content basement framework hook. * * @hooked basement_output_content_wrapper_end - 19 (outputs closing divs for the content) * @hooked basement_output_right_sidebar - 20 (outputs right sidebar) * * @package Aisconverse * @subpackage Covercase * @since Covercase 1.0 */ do_action( 'basement_after_content' ); ?> </div> </div> <!-- /.container --> </div> <?php // 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 ); $prev_id = isset($previous->ID) ? $previous->ID : ''; $next_id = isset($next->ID) ? $next->ID : ''; if ( $next || $previous ) { ?> <div class="single-post-pagination"> <div class="row align-items-center"> <div class="col-md-5 text-center text-md-left" id="single-prev-<?php echo esc_attr($prev_id); ?>"> <?php if ( $previous ) { ?> <div class="single-post-pagination__meta"> <div class="single-post-pagination__categories"><?php the_category( '<ins>—</ins>', '', $prev_id ); ?></div> <div class="single-post-pagination__comments"><?php covercase_comments($prev_id, true); ?></div> </div> <div class="single-post-pagination__title"> <?php previous_post_link( '%link', _x( '%title', 'Previous', 'covercase' ) ); ?> </div> <?php } ?> </div> <div class="col-md-2 single-post-pagination__nav-grid text-center"> <?php if ( 'page' === get_option( 'show_on_front' ) ) { if ( get_option( 'page_for_posts' ) ) { echo '<a href="' . esc_url( get_permalink( get_option( 'page_for_posts' ) ) ) . '" title="' . __( 'Go to Blog Grid', 'covercase' ) . '"><i aria-hidden="true" class="cov-simple-menu"></i></a>'; } else { echo '<a href="' . esc_url( home_url( '/?post_type=post' ) ) . '" title="' . __( 'Go to Blog Grid', 'covercase' ) . '"><i aria-hidden="true" class="cov-simple-menu"></i></a>'; } } else { echo '<a href="' . esc_url( home_url( '/' ) ) . '" title="' . __( 'Go to Blog Grid', 'covercase' ) . '"><i aria-hidden="true" class="cov-simple-menu"></i></a>'; } ?> </div> <div class="col-md-5 text-center text-md-right" id="single-next-<?php echo esc_attr($next_id); ?>"> <?php if ( $next ) { ?> <div class="single-post-pagination__meta single-post-pagination__meta--inverse"> <div class="single-post-pagination__comments"><?php covercase_comments($next_id, true); ?></div> <div class="single-post-pagination__categories"><?php the_category( '<ins>—</ins>', '', $next_id ); ?></div> </div> <div class="single-post-pagination__title"> <?php next_post_link( '%link', _x( '%title', 'Next', 'covercase' ) ); ?> </div> <?php } ?> </div> </div> </div> <?php } ?> <?php do_action( 'basement_after_wrap_content' ); ?> <?php get_footer();