</a></li> </ul> </div> <div class="pull-right"> <span class="price"> <?php //procedurizzare $range_id = get_post_meta($post->ID, 'type', true); $term = get_term($range_id[0], 'types'); $checkin = isset($_GET['checkin']) ? $_GET['checkin'] : date('d/m/Y'); $checkout = isset($_GET['checkout']) ? $_GET['checkout'] : date('d/m/Y'); $people = isset($_GET['people']) ? $_GET['people'] : 2; $room_number = isset($_GET['room_number']) ? $_GET['room_number'] : 1; $people = $people > 2 ? $people / $room_number : $people; $allotment = isset($_GET['room']) ? $_GET['room'] : default_allotment($term->slug, $people); if (!is_wp_error($term)) { ?> € <?php echo check_price($checkin, $checkout, $allotment, $room_number); } ?> </span> </div> </header> <div class="listing-facitilities"> <div class="row"> <div class="col-md-3 col-sm-12"> <ul class="facilities-list custom-list"> <?php
<?php } wp_reset_query(); ?> </select> </span> <?php if ($_GET['checkin']) { ?> <h5><?php _e('Price', 'bookingwp'); ?> <span> € <?php echo check_price($_GET['checkin'], $_GET['checkout'], default_allotment('superior', $people), 1); ?> </span></h5> <?php } ?> <button class="btn btn-transparent-gray" id="book-single-button" data-toggle="modal" data-target="#myModal"><?php _e('Book now', 'bookingwp'); ?> </button> </form> </aside> </div>