| 1 |
<?php if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly ?> |
| 2 |
|
| 3 |
<div class="wpsight-listing-teaser entry-content" itemscope itemtype="https://schema.org/Product"> |
| 4 |
|
| 5 |
<meta itemprop="name" content="<?php echo esc_attr( $post->post_title ); ?>" /> |
| 6 |
|
| 7 |
<div itemprop="offers" class="clearfix" itemscope itemtype="https://schema.org/Offer"> |
| 8 |
|
| 9 |
<?php do_action( 'wpsight_listing_teaser_before' ); ?> |
| 10 |
|
| 11 |
<div class="wpsight-listing-left"> |
| 12 |
|
| 13 |
<meta itemprop="image" content="<?php echo esc_attr( wpsight_listing_thumbnail_url( $post->ID, 'large' ) ); ?>" /> |
| 14 |
|
| 15 |
<div class="wpsight-listing-image"> |
| 16 |
<a href="<?php the_permalink(); ?>" rel="bookmark"> |
| 17 |
<?php wpsight_listing_thumbnail( $post->ID, array( 75, 75 ) ); ?> |
| 18 |
</a> |
| 19 |
</div> |
| 20 |
|
| 21 |
</div> |
| 22 |
|
| 23 |
<div class="wpsight-listing-right"> |
| 24 |
|
| 25 |
<div class="wpsight-listing-title clearfix"> |
| 26 |
|
| 27 |
<div class="alignleft"> |
| 28 |
<h3 class="entry-title"> |
| 29 |
<a href="<?php echo esc_url( get_permalink( $post->ID ) ); ?>" rel="bookmark"><?php echo esc_html( get_the_title( $post->ID ) ); ?></a> |
| 30 |
</h3> |
| 31 |
</div> |
| 32 |
|
| 33 |
<div class="alignright"> |
| 34 |
<div class="wpsight-listing-status"> |
| 35 |
<?php wpsight_listing_offer( $post->ID ); ?> |
| 36 |
</div> |
| 37 |
</div> |
| 38 |
|
| 39 |
</div> |
| 40 |
|
| 41 |
<div class="wpsight-listing-info clearfix"> |
| 42 |
<div class="alignleft"> |
| 43 |
<?php wpsight_listing_summary( $post->ID ); ?> |
| 44 |
</div> |
| 45 |
<div class="alignright"> |
| 46 |
<?php wpsight_listing_price( $post->ID ); ?> |
| 47 |
</div> |
| 48 |
</div> |
| 49 |
|
| 50 |
</div> |
| 51 |
|
| 52 |
<?php do_action( 'wpsight_listing_teaser_after' ); ?> |
| 53 |
|
| 54 |
</div> |
| 55 |
|
| 56 |
</div><!-- .wpsight-listing --> |