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-agent.php

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

74 lines 3.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php if ( ! defined('ABSPATH')) {
2 exit;
3 } // Exit if accessed directly
4
5 /**
6 * Template: Single Listing Agent
7 */
8 global $listing; ?>
9
10 <div class="wpsight-listing-section wpsight-listing-section-agent" itemprop="seller" itemscope itemtype="https://schema.org/RealEstateAgent">
11
12 <?php do_action( 'wpsight_listing_single_agent_before', $listing->ID ); ?>
13
14 <div class="wpsight-listing-agent clearfix">
15
16 <?php if( wpsight_get_listing_agent_image( $listing->ID ) ) : ?>
17
18 <div class="wpsight-listing-agent-image">
19
20 <span itemprop="image"><?php wpsight_listing_agent_image( $listing->ID ); ?></span>
21
22 </div><!-- .wpsight-listing-agent-image -->
23
24 <?php endif; ?>
25
26 <div class="wpsight-listing-agent-info">
27
28 <div class="wpsight-listing-agent-name" itemprop="name">
29
30 <?php wpsight_listing_agent_name( $listing->ID ); ?>
31
32 <?php if( wpsight_get_listing_agent_company( $listing->ID ) ) : ?>
33 <span class="wpsight-listing-agent-company">(<?php wpsight_listing_agent_company( $listing->ID ); ?>)</span>
34 <?php endif; ?>
35
36 <?php if( wpsight_get_listing_agent_phone( $listing->ID ) ) : ?>
37 <span class="wpsight-listing-agent-phone"><?php wpsight_listing_agent_phone( $listing->ID ); ?></span>
38 <?php endif; ?>
39
40 </div>
41
42 <div class="wpsight-listing-agent-links">
43
44 <?php if( wpsight_get_listing_agent_website( $listing->ID ) ) : ?>
45 <a href="<?php wpsight_listing_agent_website( $listing->ID ); ?>" class="agent-website" title="<?php echo esc_attr( wpsight_get_listing_agent_website( $listing->ID ) ); ?>" itemprop="url" target="_blank" rel="nofollow"><?php echo esc_html__( 'Website', 'wpcasa' ); ?></a>
46 <?php endif; ?>
47
48 <?php if( wpsight_get_listing_agent_twitter( $listing->ID ) ) : ?>
49 <a href="<?php wpsight_listing_agent_twitter( $listing->ID, 'url' ); ?>" class="agent-twitter" title="@<?php echo esc_attr( wpsight_get_listing_agent_twitter( $listing->ID ) ); ?>" target="_blank" rel="nofollow"><?php echo esc_html__( 'X', 'wpcasa' ); ?></a>
50 <?php endif; ?>
51
52 <?php if( wpsight_get_listing_agent_facebook( $listing->ID ) ) : ?>
53 <a href="<?php wpsight_listing_agent_facebook( $listing->ID, 'url' ); ?>" class="agent-facebook" title="<?php echo esc_attr( wpsight_get_listing_agent_facebook( $listing->ID ) ); ?>" target="_blank" rel="nofollow"><?php echo esc_html__( 'Facebook', 'wpcasa' ); ?></a>
54 <?php endif; ?>
55
56 </div>
57
58 <div class="wpsight-listing-agent-description" itemprop="description">
59 <?php wpsight_listing_agent_description( $listing->ID ); ?>
60 </div>
61
62 <?php if( wpsight_get_listing_agent_archive( $listing->ID ) ) : ?>
63 <div class="wpsight-listing-agent-archive">
64 <a href="<?php wpsight_listing_agent_archive( $listing->ID ); ?>"><?php echo esc_html__( 'My Listings', 'wpcasa' ); ?></a>
65 </div>
66 <?php endif; ?>
67
68 </div><!-- .wpsight-listing-agent-info -->
69
70 </div><!-- .wpsight-listing-agent -->
71
72 <?php do_action( 'wpsight_listing_single_agent_after', $listing->ID ); ?>
73
74 </div><!-- .wpsight-listing-section-agent -->