Opal-Estate-Pro/templates/content-property-list.php

69 lines
2.2 KiB
PHP
Raw Permalink Normal View History

2019-09-10 06:27:33 +02:00
<?php
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
$property = opalesetate_property( get_the_ID() );
global $property, $post;
?>
<article itemscope itemtype="http://schema.org/Property" <?php post_class('property-list-style-v1'); ?>>
<div class="property-list container-cols-3">
<header class="property-list__header">
<div class="property-group-label">
<?php opalestate_property_label(); ?>
</div>
<div class="property-group-status">
<?php opalestate_property_status(); ?>
</div>
<div class="property-meta-bottom clearfix">
<div class="meta-item"><?php echo wp_kses_post( $property->render_author_link() ); ?></div>
<div class="meta-item">
<?php echo do_shortcode('[opalestate_favorite_button property_id='.get_the_ID() .']'); ?>
</div>
</div>
<?php opalestate_get_loop_thumbnail( opalestate_get_option('loop_image_size','large') ); ?>
</header>
<div class="abs-col-item">
<div class="entry-content">
<?php the_title( '<h5 class="entry-title"><a href="' . esc_url( get_permalink() ) . '" rel="bookmark">', '</a></h5>' ); ?>
<div class="property-address">
<?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-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>
<?php opalestate_property_loop_price(); ?>
</div><!-- .entry-content -->
2019-09-28 06:09:04 +02:00
<?php opalestate_get_loop_short_meta(); ?>
2019-09-10 06:27:33 +02:00
</div>
<div class="entry-summary">
<h5><?php echo esc_html__( 'Description', 'opalestate-pro' ); ?></h5>
<?php echo wp_trim_words( get_the_excerpt(), 30, '...' ); ?>
</div><!-- .entry-summary -->
</div>
<?php do_action( 'opalestate_after_property_loop_item' ); ?>
<meta itemprop="url" content="<?php the_permalink(); ?>" />
</article><!-- #post-## -->