if ( $images ) : $total_images = count( $images ); $large_image = array_shift( $images ); $image_img_tag = wp_get_attachment_image( $large_image->ID, 'large' ); ?> <div class="img-gallery"> <div class="gallery-large"> <a href="<?php the_permalink(); ?>"><?php echo $image_img_tag; ?></a> </div><!-- .gallery-large --> </div><!-- .img-gallery --> <p class="gallery-info"><em><?php printf( _n( 'This gallery contains <a %1$s>%2$s photo</a>.', 'This gallery contains <a %1$s>%2$s photos</a>.', $total_images, 'bouquet' ), 'href="' . esc_url( get_permalink() ) . '" title="' . esc_attr( sprintf( __( 'Permalink to %s', 'bouquet' ), the_title_attribute( 'echo=0' ) ) ) . '" rel="bookmark"', number_format_i18n( $total_images ) ); ?></em></p> <?php endif; ?> <?php endif; ?> <?php wp_link_pages( array( 'before' => '<div class="page-link">' . __( 'Pages:', 'bouquet' ), 'after' => '</div>' ) ); ?> </div><!-- .entry-content --> <?php endif; ?> <footer class="entry-meta"> <?php bouquet_post_meta(); ?> <?php if ( comments_open() || ( '0' != get_comments_number() && ! comments_open() ) ) : ?> <span class="comments-link"><?php comments_popup_link( __( 'Leave a comment', 'bouquet' ), __( '1 Comment', 'bouquet' ), __( '% Comments', 'bouquet' ) ); ?></span> <?php endif; ?> <?php edit_post_link( __( '(Edit)', 'bouquet' ), '<span class="edit-link">', '</span>' ); ?> </footer><!-- #entry-meta --> </article><!-- #post-<?php the_ID(); ?> -->
} ?> <?php } ?> <?php wp_link_pages(array('before' => '<div class="page-link">' . __('Pages:', 'bouquet'), 'after' => '</div>')); ?> </div><!-- .entry-content --> <?php } ?> <footer class="entry-meta"> <?php bouquet_post_meta(); ?> <?php if (comments_open() || '0' != get_comments_number() && !comments_open()) { ?> <span class="comments-link"><?php comments_popup_link(__('Leave a comment', 'bouquet'), __('1 Comment', 'bouquet'), __('% Comments', 'bouquet')); ?> </span> <?php } ?> <?php edit_post_link(__('Edit', 'bouquet'), '<span class="edit-link">', '</span>'); ?> </footer><!-- #entry-meta -->