PluginProbe
Easy Hotel – Powerful Hotel Booking / 2.0.2
Easy Hotel – Powerful Hotel Booking v2.0.2
2.0.8 2.0.7 2.0.6 2.0.5 2.0.4 2.0.3 2.0.2 2.0.1 2.0.0 1.9.9 1.9.8 1.9.7 1.9.6 1.9.5 1.9.4 1.9.3 1.9.2 1.8.1 1.8.2 1.8.3 1.8.4 1.8.5 1.8.6 1.8.7 1.8.8 All 110 releases
easy-hotel / public / includes / widgets / room-grid / style3.php

style3.php in Easy Hotel – Powerful Hotel Booking 2.0.2, at public/includes/widgets/room-grid/style3.php

52 lines 2.4 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
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>