| 1 | <?php |
|---|
| 2 | // adapted from TwentyEleven |
|---|
| 3 | get_header(); ?> |
|---|
| 4 | |
|---|
| 5 | <div id="primary"> |
|---|
| 6 | <div id="content" role="main"> |
|---|
| 7 | |
|---|
| 8 | <?php while ( have_posts() ) : the_post(); ?> |
|---|
| 9 | |
|---|
| 10 | <nav id="nav-single"> |
|---|
| 11 | <h3 class="assistive-text"><?php _e('Post navigation', 'twentyeleven'); ?></h3> |
|---|
| 12 | <span class="nav-previous"><?php previous_post_link('%link', __('<span class="meta-nav">←</span> Previous', 'twentyeleven')); ?></span> |
|---|
| 13 | <span class="nav-next"><?php next_post_link('%link', __('Next <span class="meta-nav">→</span>', 'twentyeleven')); ?></span> |
|---|
| 14 | </nav><!-- #nav-single --> |
|---|
| 15 | |
|---|
| 16 | <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> |
|---|
| 17 | <header class="entry-header"> |
|---|
| 18 | <h1 class="entry-title"><?php the_title(); ?></h1> |
|---|
| 19 | <h2 class="entry-people"><?php the_people(); ?></h2> |
|---|
| 20 | </header><!-- .entry-header --> |
|---|
| 21 | |
|---|
| 22 | <div class="entry-content"> |
|---|
| 23 | <a href="<?php the_product_link(); ?>"><img src="<?php the_product_image(); ?>" alt="<?php the_title() ?>" /></a> |
|---|
| 24 | </div><!-- .entry-content --> |
|---|
| 25 | |
|---|
| 26 | <footer class="entry-meta"> |
|---|
| 27 | <?php printf( |
|---|
| 28 | __('This product is classified in %s. Bookmark the <a href="%s" title="Permalink to %s" rel="bookmark">permalink</a>.', 'media-libraries'), |
|---|
| 29 | get_the_product_type(), |
|---|
| 30 | esc_url(get_permalink()), |
|---|
| 31 | get_the_title() |
|---|
| 32 | ); ?> |
|---|
| 33 | <?php edit_post_link( __('Edit', 'twentyeleven'), '<span class="edit-link">', '</span>'); ?> |
|---|
| 34 | </footer><!-- .entry-meta --> |
|---|
| 35 | |
|---|
| 36 | <!-- reviews --> |
|---|
| 37 | <?php if ( have_reviews() ) : ?> |
|---|
| 38 | <h3 id="reviews"><?php printf( _n( 'One Response to %2$s', '%1$s Responses to %2$s', get_reviews_number() ), |
|---|
| 39 | number_format_i18n( get_reviews_number() ), '“' . get_the_title() . '”' ); ?></h3> |
|---|
| 40 | |
|---|
| 41 | <div class="navigation"> |
|---|
| 42 | <div class="alignleft"><?php previous_reviews_link() ?></div> |
|---|
| 43 | <div class="alignright"><?php next_reviews_link() ?></div> |
|---|
| 44 | </div> |
|---|
| 45 | |
|---|
| 46 | <ol class="reviewlist"> |
|---|
| 47 | <?php wp_list_reviews();?> |
|---|
| 48 | </ol> |
|---|
| 49 | |
|---|
| 50 | <div class="navigation"> |
|---|
| 51 | <div class="alignleft"><?php previous_reviews_link() ?></div> |
|---|
| 52 | <div class="alignright"><?php next_reviews_link() ?></div> |
|---|
| 53 | </div> |
|---|
| 54 | <?php endif;?> |
|---|
| 55 | |
|---|
| 56 | <!-- reading stats (restrict to $_REQUEST['user_id'] if it exists) --> |
|---|
| 57 | </article><!-- #post-<?php the_ID(); ?> --> |
|---|
| 58 | <?php endwhile; // end of the loop. ?> |
|---|
| 59 | |
|---|
| 60 | </div><!-- #content --> |
|---|
| 61 | </div><!-- #primary --> |
|---|
| 62 | |
|---|
| 63 | <?php get_footer(); ?> |
|---|