a
<?php /** * The template for displaying single image attachments. * * While this is for a single content item the header and footer * are not loaded since this is loaded via a modal overlay. * * @package Listify */ get_header(); ?> <div <?php echo apply_filters( 'listify_cover', 'page-cover' ); ?>> <h1 class="page-title cover-wrapper screen-reader-text"><?php echo the_title(); ?></h1> </div> <?php do_action( 'listify_page_before' ); ?> <div id="primary" class="container"> <div class="row content-area"> <main id="main" class="site-main col-md-8 offset-md-2" role="main"> <?php while ( have_posts() ) : the_post(); ?> <?php if ( get_post()->post_parent != 0 ) : ?> <p class="back-to-listing"> <a href="<?php echo get_permalink( get_post()->post_parent ); ?>" class="ion-chevron-left"><?php printf( __( 'Back to %s', 'listify' ), get_the_title( get_post()->post_parent ) ); ?></a> </p> <?php endif; ?> <div class="single-job_listing-attachment"> <?php echo wp_get_attachment_image( get_the_ID(), 'fullsize' ); ?> </div> <?php if ( '' != get_the_content() ) : ?> <div class="single-job_listing-description"> <?php the_content(); ?> </div> <?php endif; ?> <?php if ( 'job_listing' == get_post_type( get_post()->post_parent ) && get_theme_mod( 'gallery-comments', true ) && comments_open( get_the_ID() ) || apply_filters( 'listify_force_listing_gallery_comments', false ) && comments_open( get_the_ID() ) ) : ?> <div class="gallery-comments widget"> <?php comments_template(); ?> </div> <?php endif; ?> <?php endwhile; ?> </main> </div> </div> <?php get_footer(); ?>