PluginProbe
WPCasa – Real Estate for WordPress / trunk
WPCasa – Real Estate for WordPress vtrunk
1.5.5 1.5.4 1.5.3 1.5.2 1.5.1 1.5.1.1 trunk 1.2.0 1.2.1 1.2.10 1.2.10.1 1.2.11 1.2.12 1.2.13 1.2.2 1.2.3 1.2.4 1.2.5 1.2.6 1.2.7 1.2.8 1.2.9 1.2.9.1 1.2.9.2 1.3.0 All 31 releases
wpcasa / templates / listing-single.php

listing-single.php in WPCasa – Real Estate for WordPress trunk, at templates/listing-single.php

49 lines 1.5 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly ?>
2
3 <?php
4 /**
5 * Template: Single Listing
6 */
7 global $listing; ?>
8
9 <div class="wpsight-listing wpsight-listing-<?php echo esc_attr( $listing->ID ); ?> entry-content" itemscope itemtype="https://schema.org/Product">
10
11 <meta itemprop="name" content="<?php echo esc_attr( $listing->post_title ); ?>" />
12
13 <?php if ( $listing->post_status == 'expired' ) : ?>
14
15 <div class="wpsight-alert wpsight-alert-expired">
16 <?php echo esc_html__( 'This listing has expired.', 'wpcasa' ); ?>
17 </div>
18
19 <?php endif; ?>
20
21 <?php if ( $listing->post_status != 'expired' || wpsight_user_can_edit_listing( $listing->ID ) ) : ?>
22
23 <div itemprop="offers" itemscope itemtype="https://schema.org/Offer">
24
25 <?php do_action( 'wpsight_listing_single_before', $listing->ID ); ?>
26
27 <?php wpsight_get_template( 'listing-single-title.php' ); ?>
28
29 <?php wpsight_get_template( 'listing-single-image.php' ); ?>
30
31 <?php wpsight_get_template( 'listing-single-info.php' ); ?>
32
33 <?php wpsight_get_template( 'listing-single-details.php' ); ?>
34
35 <?php wpsight_get_template( 'listing-single-description.php' ); ?>
36
37 <?php wpsight_get_template( 'listing-single-features.php' ); ?>
38
39 <?php wpsight_get_template( 'listing-single-location.php' ); ?>
40
41 <?php wpsight_get_template( 'listing-single-agent.php' ); ?>
42
43 <?php do_action( 'wpsight_listing_single_after', $listing->ID ); ?>
44
45 </div>
46
47 <?php endif; ?>
48
49 </div><!-- .wpsight-listing-<?php echo esc_attr( $listing->ID ); ?> -->