Opal-Estate-Pro/templates/content-single-property-v4.php

117 lines
5.4 KiB
PHP
Raw Permalink Normal View History

2019-09-10 06:27:33 +02:00
<?php global $property, $post;
$property = opalesetate_property( get_the_ID() );
$header = apply_filters( 'opalestate_single_show_heading', true );
?>
<div class="container">
<article id="property-<?php the_ID(); ?>" itemscope itemtype="http://schema.org/Property" <?php post_class( "opalestate-single-property opalestate-single-property--version-4" ); ?>>
<div class="opal-row">
<div class="col-lg-8 col-md-8 col-sm-12">
<?php if ( $header ): ?>
<header class="property-single-header">
<div class="property-single-info">
<div class="group-items">
2019-11-08 02:41:22 +01:00
<?php do_action( 'opalestate_before_single_property_title' ); ?>
2019-09-10 06:27:33 +02:00
<?php the_title( '<h2 class="entry-title">', '</h2>' ); ?>
<?php opalestate_property_label(); ?>
<?php opalestate_property_status(); ?>
2019-11-08 02:41:22 +01:00
<?php do_action( 'opalestate_after_single_property_title' ); ?>
2019-09-10 06:27:33 +02:00
<div class="property-meta">
<div class="property-meta__list">
<?php opalestate_property_types_list(); ?>
<?php opalestate_property_categories_list(); ?>
</div>
<div class="property-address clearfix">
<?php if ( $property->latitude && $property->longitude ) : ?>
<a href="<?php echo esc_url( $property->get_google_map_link() ); ?>" rel="nofollow" target="_blank">
2019-09-28 09:21:28 +02:00
<span class="property-address__view-map property-view-map"><i class="fas fa-map-marker-alt"></i></span>
2019-09-10 06:27:33 +02:00
</a>
<?php endif; ?>
<?php if ( $property->get_address() ) : ?>
<span class="property-address__text"><?php echo esc_html( $property->get_address() ); ?></span>
<?php endif; ?>
</div>
<div class="property-date">
<?php
printf(
/* translators: %s: property date */
__( 'Posted: %s', 'opalestate-pro' ),
esc_html( $property->get_posted() )
);
?>
</div>
</div>
</div>
<div class="single-price-content"><?php opalestate_property_loop_price(); ?></div>
</div>
</header>
<?php endif; ?>
<?php
/**
* opalestate_before_single_property_summary hook
*/
do_action( 'opalestate_single_property_preview' );
?>
<div class="opalestate-box-content">
<h4 class="outbox-title"><?php esc_html_e( 'Property Description', 'opalestate-pro' ); ?></h4>
<div class="summary entry-summary opalestate-rows">
<div class="property-meta-top">
<ul class="list-inline property-meta-top__list">
2019-11-08 02:41:22 +01:00
<?php do_action( 'opalestate_before_property_meta_top_list' ); ?>
2019-09-10 06:27:33 +02:00
<?php if ( $property->get_sku() ) : ?>
<li class="list-inline__sku">
<span><?php esc_html_e( 'Property ID: ', 'opalestate-pro' ) ?></span>
<span class="property-sku"><?php echo esc_html( $property->get_sku() ); ?></span>
</li>
<?php endif; ?>
<li class="list-inline__request-viewing">
<?php opalestate_property_request_viewing_button( true ); ?>
</li>
<li class="list-inline__print property-meta-top__button">
<?php opalestate_property_print_button( $property->get_id() ); ?>
</li>
<li class="list-inline__favorite property-meta-top__button">
<?php echo do_shortcode( '[opalestate_favorite_button property_id=' . get_the_ID() . ']' ); ?>
</li>
2019-11-08 02:41:22 +01:00
<?php do_action( 'opalestate_after_property_meta_top_list' ); ?>
2019-09-10 06:27:33 +02:00
</ul>
</div>
<?php
/**
* opalestate_single_property_summary hook
*/
do_action( 'opalestate_single_property_summary' );
?>
<div class="content-bottom">
<?php do_action( 'opalestate_single_content_bottom' ); ?>
</div>
</div><!-- .summary -->
</div>
<meta itemprop="url" content="<?php the_permalink(); ?>"/>
<?php
/**
* opalestate_after_single_property_summary hook
*/
do_action( 'opalestate_after_single_property_summary' );
?>
<div class="clear clearfix"></div>
</div>
<div class="col-lg-4 col-md-4 col-sm-12 single-property-sidebar opalestate-sticky-column">
<div class="inner">
<?php do_action( 'opalestate_single_property_sidebar' ); ?>
</div>
</div>
</div>
</article><!-- #post-## -->
</div>