<?php
/**
 * Lana Template
 * The template for displaying posts in the Gallery post format
 */
?>

    <div <?php post_class( 'panel-body' ); ?>>
        <div class="media">
			<?php if ( is_sticky() ) : ?>
                <div class="sticky-icon">
                    <span class="glyphicon glyphicon-pushpin" aria-hidden="true"></span>
                </div>
			<?php endif; ?>
            <div class="media-body">

				<?php if ( has_post_thumbnail() && ! post_password_required() ) : ?>
                    <a class="thumbnail pull-left" href="<?php the_permalink(); ?>"
                       title="<?php the_title_attribute(); ?>">
						<?php the_post_thumbnail( 'thumbnail', array( 'class' => 'img-responsive' ) ); ?>
                        <div class="caption">
                        <span class="label label-primary label-block">
                            <?php _e( 'gallery', 'lana-site' ); ?>
                        </span>
                        </div>
                    </a>
				<?php endif; ?>

                <h2 class="media-heading">
                    <a href="<?php the_permalink(); ?>">
						<?php the_title(); ?>
                    </a>
                </h2>

                <hr/>

                <div class="media-meta">
                    <p class="meta-info meta-date">
                        <span class="glyphicon glyphicon-time"></span>
                        <a href="<?php the_permalink(); ?>">
							<?php echo get_the_date(); ?>
                        </a>
                    </p>

					<?php if ( ! post_password_required() ) : ?>
                        <p class="meta-info meta-comment">
                            <span class="glyphicon glyphicon-comment"></span>
							<?php comments_popup_link( __( 'No Comments', 'lana-site' ), __( '1 Comment', 'lana-site' ), __( '% Comments', 'lana-site' ) ); ?>
                        </p>
					<?php endif; ?>
                    <p class="meta-info meta-user pull-right">
                        <span class="glyphicon glyphicon-user"></span>
						<?php the_author_posts_link(); ?>
                    </p>
                </div>
                <hr/>
                <div class="clearfix"></div>
				<?php lana_site_post_content(); ?>

                <hr/>

                <div class="media-meta">
                    <p class="meta-info meta-category">
                        <span class="glyphicon glyphicon-folder-open"></span>
						<?php the_category( ', ' ); ?>
                    </p>
					<?php edit_post_link( __( 'Edit', 'lana-site' ), '<span class="edit-link pull-right"><span class="glyphicon glyphicon-pencil"></span>', '</span>' ); ?>
                </div>
            </div>
        </div>
    </div>

<?php wp_link_pages(); ?>