<?php
/**
 * The template for displaying image attachments
 *
 * @package WordPress
 * @subpackage menda
 * @since menda Theme 1.0
 */

get_header(); ?>

<div id="primary" class="container-fluid">
	<div  class="row" role="main">
		<header class="entry-header">
		<?php the_title( '<h1 class="entry-title">', '</h1>' ); ?>
		</header><!-- .entry-header -->

		<?php
			// Start the loop.
			while ( have_posts() ) : the_post();
		?>
		<div class="col-sm-6 col-md-3 col-xs-12">
			<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
				
				<div class="entry-content">

					<div class="entry-attachment">
						<?php
							/**
							 * Filter the default menda image attachment size.
							 *
							 * @since menda Theme 1.0
							 *
							 * @param string $image_size Image size. Default 'large'.
							 */
							$image_size = apply_filters( 'ebid_attachment_size', 'large' );

							echo wp_get_attachment_image( get_the_ID(), $image_size );
						?>

						<?php ebid_excerpt( 'entry-caption' ); ?>

					</div><!-- .entry-attachment -->

					
				</div><!-- .entry-content -->

				
			</article><!-- #post-## -->
		</div>
		<div class="col-sm-6 col-md-9 col-xs-12">
			<?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();
				}

				// Parent post navigation.
				the_post_navigation( array(
					'prev_text' => __( '<span class="meta-nav">Published in</span><span class="post-title">%title</span>', 'menda'),
				) );
			// End the loop.
			endwhile;
		?>

		</div><!-- .site-main -->
	</div><!-- .content-area -->
</div>
<?php get_footer(); ?>