|
Server IP : 10.131.40.8 / Your IP : 216.73.216.37 Web Server : Apache System : Linux webd008.cluster131.gra.hosting.ovh.net 5.15.167-ovh-vps-grsec-zfs-classid #1 SMP Tue Sep 17 08:14:20 UTC 2024 x86_64 User : ludmqhh ( 137773) PHP Version : 8.4.10 Disable Function : _dyuweyrj4,_dyuweyrj4r,dl MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON Directory (0705) : /home/ludmqhh/www/hotel-forum/wp-content/plugins/wp-hotelier/templates/reservation/ |
| [ Home ] | [ C0mmand ] | [ Upload File ] |
|---|
<?php
/**
* Reservation item details
*
* This template can be overridden by copying it to yourtheme/hotelier/reservation/item.php.
*
* @author Benito Lopez <hello@lopezb.com>
* @package Hotelier/Templates
* @version 2.6.0
*/
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
?>
<tr class="reservation-table__row reservation-table__row--body">
<td class="reservation-table__room-name reservation-table__room-name--body"><?php
do_action( 'hotelier_reservation_received_table_before_room_name', $room, $item );
$is_visible = $room && $room->is_visible( true );
echo $is_visible ? sprintf( '<a class="reservation-table__room-link" href="%s">%s</a>', get_permalink( $item[ 'room_id' ] ), $item[ 'name' ] ) : $item[ 'name' ];
if ( isset( $item[ 'rate_name' ] ) ) : ?>
<small class="reservation-table__room-rate"><?php printf( esc_html__( 'Rate: %s', 'wp-hotelier' ), htl_get_formatted_room_rate( $item[ 'rate_name' ] ) ); ?></small>
<?php endif;
if ( ! $item[ 'is_cancellable' ] ) : ?>
<span class="reservation-table__room-non-cancellable"><?php echo esc_html_e( 'Non-refundable', 'wp-hotelier' ); ?></span>
<?php endif;
// Show adults/children guests
htl_get_template( 'reservation/item-guests.php', array(
'quantity' => $item[ 'qty' ],
'adults' => maybe_unserialize( $item[ 'adults' ] ),
'children' => maybe_unserialize( $item[ 'children' ] ),
) );
// Allow other plugins to add additional room information here
do_action( 'hotelier_reservation_item_meta', $item_id, $item, $reservation );
?>
</td>
<td class="reservation-table__room-qty reservation-table__room-qty--body"><?php echo esc_html( $item[ 'qty' ] ); ?></td>
<td class="reservation-table__room-cost reservation-table__room-cost--body">
<?php echo $reservation->get_formatted_line_total( $item ); ?>
<?php do_action( 'hotelier_reservation_item_after_price', $room, $item ); ?>
</td>
</tr>
<?php
// Show extras
htl_get_template( 'reservation/item-extras.php', array(
'room' => $room,
'item' => $item,
) );
