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 / style1.php

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

48 lines 2.2 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 $i++;
4 $class = ($i %2 == 0) ? 'left-half' : 'right-half';
5
6 if(has_post_thumbnail($accomodation_id)) {
7 $thumbnail_url = get_the_post_thumbnail_url( $accomodation_id, 'full');
8 } else {
9 $thumbnail_url = ESHB_DIR_URL . 'public/assets/img/placeholder.png';
10 }
11
12 ?>
13 <div class="grid-item container-fluid position-relative half-fluid" style="background-size: cover; background-repeat: no-repeat;">
14 <div class="container" style="background-size: cover; background-repeat: no-repeat;">
15 <div class="eshb-row" style="background-size: cover; background-repeat: no-repeat;">
16 <!-- Image -->
17 <div class="thumbnail-col col-lg-6 col-sm-12 col-12 position-lg-absolute <?php echo esc_attr( $class )?> eshb-h-100" style="background-size: cover; background-repeat: no-repeat;">
18 <div class="image bgcustom" data-bgimage="url(<?php echo esc_url($thumbnail_url) ?>) center" style="background: url(<?php echo esc_url($thumbnail_url) ?>) center center / cover no-repeat;"></div>
19 </div>
20 <!-- Text -->
21 <div class="contents-col col-lg-6 col-sm-12 col-12 py-5 pe-lg-5" style="background-size: cover; background-repeat: no-repeat;">
22
23 <h3 class="p-title"><a href="<?php echo esc_url(get_the_permalink($accomodation_id)); ?>"><?php echo esc_html(get_the_title($accomodation_id)); ?></a></h3>
24 <div class="capacities fs-14 mb-3" style="background-size: cover; background-repeat: no-repeat;">
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="capacity me-4">
33 <?php echo esc_html($group['info_title']); ?>
34 </span>
35 <?php }
36 }
37 do_action( 'eshb_after_capacities_info_html', $accomodation_id, $eshb_settings );
38 ?>
39 </div>
40 <p class="desc pe-lg-5"><?php echo esc_html($excerpt) ?></p>
41 <a class="details-btn rts-btn btn-main mt-2" href="<?php echo esc_url( $booking_url ); ?>"><?php echo esc_html( $btn_text ); ?></a>
42
43 </div>
44 </div>
45 </div>
46 </div>
47
48