Skip to content

Instantly share code, notes, and snippets.

@sedaghatfar
Created September 5, 2016 23:55
Show Gist options
  • Save sedaghatfar/821fba87933caeb1a88ccf394183fb89 to your computer and use it in GitHub Desktop.
Save sedaghatfar/821fba87933caeb1a88ccf394183fb89 to your computer and use it in GitHub Desktop.
<?php
/**
* The template for displaying image attachments
*
*
* @package i_spirit
* @since i-spirit 1.0
*/
get_header(); ?>
<div id="primary" class="content-area">
<div id="content" class="site-content" role="main">
<article id="post-<?php the_ID(); ?>" <?php post_class( 'image-attachment' ); ?>>
<header class="entry-header">
</div><!-- .entry-meta -->
</header><!-- .entry-header -->
<div class="entry-content">
<nav id="image-navigation" class="navigation image-navigation" role="navigation">
<span class="nav-previous"><?php previous_image_link( false, __( '<span class="meta-nav">&lt;</span> Previous', 'ispirit' ) ); ?></span>
<span class="nav-next"><?php next_image_link( false, __( 'Next <span class="meta-nav">&gt;</span>', 'ispirit' ) ); ?></span>
</nav><!-- #image-navigation -->
<div class="entry-attachment">
<div class="attachment">
<?php ispirit_the_attached_image(); ?>
<?php if ( has_excerpt() ) : ?>
<div class="entry-caption">
<?php the_excerpt(); ?>
</div>
<?php endif; ?>
</div><!-- .attachment -->
</div><!-- .entry-attachment -->
<?php if ( ! empty( $post->post_content ) ) : ?>
<div class="entry-description">
<?php the_content(); ?>
</div><!-- .entry-description -->
<?php endif; ?>
</div><!-- .entry-content -->
</article><!-- #post -->
<?php get_footer(); ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment