Origin commit
This commit is contained in:
113
templates/content-single-property-v3.php
Executable file
113
templates/content-single-property-v3.php
Executable file
@@ -0,0 +1,113 @@
|
||||
<?php global $property, $post;
|
||||
$property = opalesetate_property( get_the_ID() );
|
||||
$header = apply_filters( 'opalestate_single_show_heading', true );
|
||||
?>
|
||||
<div class="property-single-top">
|
||||
<?php
|
||||
/**
|
||||
* opalestate_before_single_property_summary hook
|
||||
*/
|
||||
do_action( 'opalestate_single_property_preview' );
|
||||
?>
|
||||
|
||||
<div class="property-single-stick-bars keep-top-bars ">
|
||||
<div class="container">
|
||||
<ul class="list-inline">
|
||||
<li class="list-inline__favorite">
|
||||
<?php echo do_shortcode( '[opalestate_favorite_button property_id=' . get_the_ID() . ']' ); ?>
|
||||
</li>
|
||||
|
||||
<li class="list-inline__print">
|
||||
<?php opalestate_property_print_button( $property->get_id() ); ?>
|
||||
</li>
|
||||
|
||||
<li class="list-inline__request-viewing single-property-buttons">
|
||||
<?php opalestate_property_request_viewing_button(); ?>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="property-single-content container">
|
||||
<article id="property-<?php the_ID(); ?>" itemscope itemtype="http://schema.org/Property" <?php post_class( "opalestate-single-property opalestate-single-property--version-3" ); ?>>
|
||||
<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="single-price-content"><?php opalestate_property_loop_price(); ?></div>
|
||||
<div class="group-items">
|
||||
<?php the_title( '<h2 class="entry-title">', '</h2>' ); ?>
|
||||
<?php opalestate_property_label(); ?>
|
||||
<?php opalestate_property_status(); ?>
|
||||
|
||||
<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">
|
||||
<span class="property-address__view-map property-view-map"><i class="fa fa-map-marker"></i></span>
|
||||
</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>
|
||||
</header>
|
||||
<?php endif; ?>
|
||||
<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">
|
||||
<div class="property-id">
|
||||
<?php if ( $property->get_sku() ) : ?>
|
||||
<span><?php esc_html_e( 'Property ID: ', 'opalestate-pro' ) ?></span>
|
||||
<span class="property-sku"><?php echo esc_html( $property->get_sku() ); ?></span>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</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>
|
||||
<div class="col-lg-4 col-md-4 col-sm-12 single-property-sidebar">
|
||||
<?php do_action( 'opalestate_single_property_sidebar' ); ?>
|
||||
</div>
|
||||
</div>
|
||||
<div class="clear clearfix"></div>
|
||||
</article><!-- #post-## -->
|
||||
</div>
|
||||
Reference in New Issue
Block a user