| 1 |
<?php |
| 2 |
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly |
| 3 |
?> |
| 4 |
<div class="grid-item relative eshb-text-center wow fadeInUp animated" data-wow-delay="<?php echo esc_attr( $animation_delay )?>s"> |
| 5 |
<div class="relative overflow-hidden"> |
| 6 |
<div class="p-0 px-3 abs fw-600 ms-3 mt-3 best-seller"> |
| 7 |
<?php |
| 8 |
if(isset($eshb_accomodation_metaboxes['is_best_seller']) && $eshb_accomodation_metaboxes['is_best_seller'] == true){ |
| 9 |
echo esc_html__('Best Seller', 'easy-hotel'); |
| 10 |
}; |
| 11 |
?> |
| 12 |
</div> |
| 13 |
<?php |
| 14 |
if(has_post_thumbnail($accomodation_id)) { |
| 15 |
$thumbnail_url = get_the_post_thumbnail_url( $accomodation_id, $thumbnail_size); |
| 16 |
} else { |
| 17 |
$thumbnail_url = ESHB_DIR_URL . 'public/assets/img/placeholder.png'; |
| 18 |
} |
| 19 |
?> |
| 20 |
<img src="<?php echo esc_url( $thumbnail_url ); ?>" alt="Thumbnail" class="thumbnail"> |
| 21 |
</div> |
| 22 |
<div class="p-3 pb-1 w-100 eshb-text-center"> |
| 23 |
<h4 class="mt-2 eshb-mb-0 p-title"><?php echo esc_html(get_the_title($accomodation_id)); ?></h4> |
| 24 |
<div class="eshb-text-center mb-3"> |
| 25 |
<?php |
| 26 |
if( ! empty( $accomodation_info_group ) && is_array($accomodation_info_group) && count($accomodation_info_group) > 0){ |
| 27 |
$x = 0; |
| 28 |
foreach ( $accomodation_info_group as $group ) { |
| 29 |
$x++; |
| 30 |
if($x >= 3) break; |
| 31 |
?> |
| 32 |
<span class="mx-2 capacity"> |
| 33 |
<?php echo esc_html($group['info_title']); ?> |
| 34 |
</span> |
| 35 |
<?php } |
| 36 |
?> |
| 37 |
<?php |
| 38 |
if(!empty($numeric_price)){ |
| 39 |
?> |
| 40 |
<span class="mx-2 capacity"><?php echo wp_kses_post($price); ?><div class="label"> / <?php echo esc_html( eshb_get_translated_string($perodicity_string) );?></div></span> |
| 41 |
<?php |
| 42 |
} |
| 43 |
?> |
| 44 |
|
| 45 |
<?php } |
| 46 |
do_action( 'eshb_after_capacities_info_html', $accomodation_id, $eshb_settings ); |
| 47 |
?> |
| 48 |
</div> |
| 49 |
|
| 50 |
</div> |
| 51 |
<a class="details-btn rts-btn btn-main w-100" href="<?php echo esc_url( $booking_url ); ?>"><?php echo esc_html( $btn_text )?></a> |
| 52 |
</div> |