| 1 | <?php |
|---|
| 2 | // adapted from TwentyEleven |
|---|
| 3 | ?> |
|---|
| 4 | <article id="post-<?php the_ID(); ?>" <?php post_class(); ?>> |
|---|
| 5 | <header class="entry-header"> |
|---|
| 6 | <h1 class="entry-title"><?php the_title(); ?></h1> |
|---|
| 7 | <h2 class="entry-people"><?php the_people(); ?></h2> |
|---|
| 8 | </header><!-- .entry-header --> |
|---|
| 9 | |
|---|
| 10 | <div class="entry-content"> |
|---|
| 11 | <a href="<?php the_product_link(); ?>"><img src="<?php the_product_image(); ?>" alt="<?php the_title() ?>" /></a> |
|---|
| 12 | </div><!-- .entry-content --> |
|---|
| 13 | |
|---|
| 14 | <footer class="entry-meta"> |
|---|
| 15 | <?php printf( |
|---|
| 16 | __('This product is classified in %s. Bookmark the <a href="%s" title="Permalink to %s" rel="bookmark">permalink</a>.', 'media-libraries'), |
|---|
| 17 | get_the_product_type(), |
|---|
| 18 | esc_url(get_permalink()), |
|---|
| 19 | get_the_title() |
|---|
| 20 | ); ?> |
|---|
| 21 | <?php edit_post_link( __('Edit', 'twentyeleven'), '<span class="edit-link">', '</span>'); ?> |
|---|
| 22 | </footer><!-- .entry-meta --> |
|---|
| 23 | |
|---|
| 24 | <!-- reviews --> |
|---|
| 25 | <?php if ( have_reviews() ) : ?> |
|---|
| 26 | <h3 id="reviews"><?php printf( _n( 'One Response to %2$s', '%1$s Responses to %2$s', get_reviews_number() ), |
|---|
| 27 | number_format_i18n( get_reviews_number() ), '“' . get_the_title() . '”' ); ?></h3> |
|---|
| 28 | |
|---|
| 29 | <div class="navigation"> |
|---|
| 30 | <div class="alignleft"><?php previous_reviews_link() ?></div> |
|---|
| 31 | <div class="alignright"><?php next_reviews_link() ?></div> |
|---|
| 32 | </div> |
|---|
| 33 | |
|---|
| 34 | <ol class="reviewlist"> |
|---|
| 35 | <?php wp_list_reviews();?> |
|---|
| 36 | </ol> |
|---|
| 37 | |
|---|
| 38 | <div class="navigation"> |
|---|
| 39 | <div class="alignleft"><?php previous_reviews_link() ?></div> |
|---|
| 40 | <div class="alignright"><?php next_reviews_link() ?></div> |
|---|
| 41 | </div> |
|---|
| 42 | <?php endif;?> |
|---|
| 43 | |
|---|
| 44 | <!-- reading stats (restrict to $_REQUEST['user_id'] if it exists) --> |
|---|
| 45 | </article><!-- #post-<?php the_ID(); ?> --> |
|---|