Opal-Estate-Pro/templates/user/favorite-properties.php

30 lines
965 B
PHP
Raw Normal View History

2019-09-10 06:27:33 +02:00
<?php if( $loop->have_posts() ): ?>
<div class="property-listing my-favorite">
<div class="box-content">
2020-05-04 10:53:09 +02:00
<div class="opalestate-rows">
2019-09-10 06:27:33 +02:00
<div class="<?php echo apply_filters('opalestate_row_container_class', 'opal-row');?>">
<?php $cnt=0; while ( $loop->have_posts() ) : $loop->the_post(); global $post; ?>
2020-05-04 10:53:09 +02:00
2019-09-10 06:27:33 +02:00
<div class="col-lg-4 col-md-4">
<?php echo opalestate_load_template_path( 'content-property-grid' ); ?>
</div>
2020-05-04 10:53:09 +02:00
2019-09-10 06:27:33 +02:00
<?php endwhile; ?>
</div>
2020-05-04 10:53:09 +02:00
</div>
2019-09-10 06:27:33 +02:00
<?php opalestate_pagination( $loop->max_num_pages ); ?>
2020-05-04 10:53:09 +02:00
</div>
2019-09-10 06:27:33 +02:00
</div>
<?php else : ?>
2020-05-04 10:53:09 +02:00
<div class="opalestate-box">
2019-09-10 06:27:33 +02:00
<div class="box-content">
<div class="opalestate-message">
2020-05-04 10:53:09 +02:00
<h3><?php esc_html_e( 'No item in your favorite', 'opalestate-pro' ) ;?></h3>
2019-09-10 06:27:33 +02:00
<p><?php esc_html_e( 'You have not added any property as favorite.', 'opalestate-pro' ) ;?></p>
</div>
2020-05-04 10:53:09 +02:00
</div>
</div>
2019-09-10 06:27:33 +02:00
<?php endif; ?>
2020-05-04 10:53:09 +02:00
<?php wp_reset_postdata(); ?>