Advertisement
Guest User

wp-travel-customize

a guest
Aug 8th, 2018
201
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 18.96 KB | None | 0 0
  1. <?php
  2. /**
  3.  * Itinerary Pricing Options Template
  4.  *
  5.  * This template can be overridden by copying it to yourtheme/wp-travel/content-pricing-options.php.
  6.  *
  7.  * HOWEVER, on occasion wp-travel will need to update template files and you (the theme developer).
  8.  * will need to copy the new files to your theme to maintain compatibility. We try to do this.
  9.  * as little as possible, but it does happen. When this occurs the version of the template file will.
  10.  * be bumped and the readme will list any important changes.
  11.  *
  12.  * @see         http://docs.wensolutions.com/document/template-structure/
  13.  * @author      WenSolutions
  14.  * @package     wp-travel/Templates
  15.  * @since       1.1.5
  16.  */
  17. global $post;
  18. global $wp_travel_itinerary;
  19.  
  20. $trip_id = $post->ID;
  21.  
  22. $no_details_found_message = '<p class="wp-travel-no-detail-found-msg">' . __( 'No details found.', 'wp-travel' ) . '</p>';
  23. $trip_content   = $wp_travel_itinerary->get_content() ? $wp_travel_itinerary->get_content() : $no_details_found_message;
  24. $trip_outline   = $wp_travel_itinerary->get_outline() ? $wp_travel_itinerary->get_outline() : $no_details_found_message;
  25. $trip_include   = $wp_travel_itinerary->get_trip_include() ? $wp_travel_itinerary->get_trip_include() : $no_details_found_message;
  26. $trip_exclude   = $wp_travel_itinerary->get_trip_exclude() ? $wp_travel_itinerary->get_trip_exclude() : $no_details_found_message;
  27. $gallery_ids    = $wp_travel_itinerary->get_gallery_ids();
  28.  
  29. $wp_travel_itinerary_tabs = wp_travel_get_frontend_tabs();
  30.  
  31. $fixed_departure = get_post_meta( $trip_id, 'wp_travel_fixed_departure', true );
  32.  
  33. $trip_start_date = get_post_meta( $trip_id, 'wp_travel_start_date', true );
  34. $trip_end_date   = get_post_meta( $trip_id, 'wp_travel_end_date', true );
  35. $trip_price      = wp_travel_get_trip_price( $trip_id );
  36. $enable_sale     = get_post_meta( $trip_id, 'wp_travel_enable_sale', true );
  37.  
  38. $trip_duration = get_post_meta( $trip_id, 'wp_travel_trip_duration', true );
  39. $trip_duration = ( $trip_duration ) ? $trip_duration : 0;
  40. $trip_duration_night = get_post_meta( $trip_id, 'wp_travel_trip_duration_night', true );
  41. $trip_duration_night = ( $trip_duration_night ) ? $trip_duration_night : 0;
  42.  
  43. $settings = wp_travel_get_settings();
  44. $currency_code  = ( isset( $settings['currency'] ) ) ? $settings['currency'] : '';
  45.  
  46. $currency_symbol = wp_travel_get_currency_symbol( $currency_code );
  47. $per_person_text = wp_travel_get_price_per_text( $trip_id );
  48. $sale_price      = wp_travel_get_trip_sale_price( $trip_id );
  49.  
  50. $wp_travel_enable_pricing_options = get_post_meta( $trip_id, 'wp_travel_enable_pricing_options', true ); ?>
  51.  
  52. <div id="<?php echo isset( $tab_key ) ? esc_attr( $tab_key ) : 'booking'; ?>" class="tab-list-content">
  53. <?php
  54. $enable_checkout = apply_filters( 'wp_travel_enable_checkout', true );
  55. $available_pax = false;
  56. $booked_pax = false;
  57. $pax_limit = false;
  58. $general_sold_out = false;
  59.  
  60. if ( $enable_checkout && wp_travel_is_payment_enabled() && 0 !== $trip_price ) :
  61.  
  62.     $status_column = false;
  63.     $status_col = false;
  64.  
  65.     if( class_exists( 'WP_Travel_Util_Inventory' ) ) {
  66.  
  67.         $inventory = new WP_Travel_Util_Inventory();
  68.    
  69.         $status_col = get_post_meta( $trip_id, 'status_column_enable', true );
  70.  
  71.         $status_col = ( $status_col && 'no' === $status_col ) ? false : true;
  72.  
  73.        
  74.         $available_pax = $inventory->get_available_pax( $trip_id );
  75.         $booked_pax = $inventory->get_booking_pax_count( $trip_id );
  76.         $pax_limit = $inventory->get_pax_limit( $trip_id );
  77.        
  78.         $status_msg = get_post_meta( $trip_id, 'wp_travel_inventory_status_message_format', true );
  79.  
  80.         $inventory_enabled_for_option = $inventory->is_inventory_enabled( $trip_id );
  81.        
  82.         if ( ! $status_msg ) {
  83.             $status_msg = __('Pax Available: {available_pax} / {pax_limit}', 'wp-travel');
  84.         }
  85.        
  86.         if ( ! $inventory_enabled_for_option || 0 === $pax_limit ) {
  87.  
  88.             $status_msg = __( 'N/A', 'wp-travel' );
  89.  
  90.         }
  91.         $general_status_tags = array(
  92.  
  93.             '{available_pax}' => $available_pax,
  94.             '{booked_pax}' => $booked_pax,
  95.             '{pax_limit}' => $pax_limit,
  96.            
  97.         );
  98.  
  99.         $general_status_msg = str_replace( array_keys( $general_status_tags ), $general_status_tags, $status_msg );
  100.  
  101.         $general_sold_out = $available_pax === 0 ? true : false;
  102.  
  103.         $wp_travel_inventory_sold_out_action = get_post_meta( $trip_id, 'wp_travel_inventory_sold_out_action', true );
  104.  
  105.         $sold_out_btn_rep_msg = get_post_meta( $trip_id, 'wp_travel_inventory_sold_out_message', true );
  106.        
  107.         if ( 'allow_trip_enquiry' === $wp_travel_inventory_sold_out_action ) {
  108.             $sold_out_btn_rep_msg = wp_travel_utilities__get_inquiry_link();
  109.         }
  110.  
  111.     }
  112.    
  113.     $trip_pricing_options_data = get_post_meta( $post->ID, 'wp_travel_pricing_options', true );
  114.  
  115.     if ( 'yes' === $wp_travel_enable_pricing_options && is_array( $trip_pricing_options_data ) && count( $trip_pricing_options_data ) !== 0 ) :
  116.  
  117.         if ( is_array( $trip_pricing_options_data ) && count( $trip_pricing_options_data ) !== 0 ) : ?>
  118.             <div id="wp-travel-date-price" class="detail-content">
  119.                 <div class="availabily-wrapper">
  120.                     <ul class="availabily-list additional-col">
  121.                         <li class="availabily-heading clearfix">
  122.                                 <div class="date-from">
  123.                                     <?php echo esc_html__( 'Pricing Name', 'wp-travel' ); ?>
  124.                                 </div>
  125.                             <div class="status">
  126.                                 <?php echo esc_html__( 'Min Group Size', 'wp-travel' ); ?>
  127.                             </div>
  128.                             <div class="status">
  129.                                 <?php echo esc_html__( 'Max Group Size', 'wp-travel' ); ?>
  130.                             </div>
  131.                             <?php if( $status_col ) : ?>
  132.  
  133.                                 <div class="status">
  134.                                     <?php echo esc_html__( 'Status', 'wp-travel' ); ?>
  135.                                 </div>
  136.  
  137.                             <?php endif; ?>
  138.                             <div class="price">
  139.                                 <?php echo esc_html__( 'Price', 'wp-travel' ); ?>
  140.                             </div>
  141.                             <div class="action">
  142.                                 &nbsp;
  143.                             </div>
  144.                         </li>
  145.                         <?php foreach ( $trip_pricing_options_data as $price_key => $pricing ) :
  146.                             // Set Vars.
  147.                             $pricing_name         = isset( $pricing['pricing_name'] ) ? $pricing['pricing_name'] : '';
  148.                             $price_key          = isset( $pricing['price_key'] ) ? $pricing['price_key'] : '';
  149.                             $pricing_type         = isset( $pricing['type'] ) ? $pricing['type'] : '';
  150.                             $pricing_custom_label = isset( $pricing['custom_label'] ) ? $pricing['custom_label'] : '';
  151.                             $pricing_option_price = isset( $pricing['price'] ) ? $pricing['price'] : '';
  152.                             $pricing_sale_enabled = isset( $pricing['enable_sale'] ) ? $pricing['enable_sale'] : '';
  153.                             $pricing_sale_price   = isset( $pricing['sale_price'] ) ? $pricing['sale_price'] : '';
  154.                             $pricing_min_pax      = isset( $pricing['min_pax'] ) ? $pricing['min_pax'] : '';
  155.                             $pricing_max_pax      = isset( $pricing['max_pax'] ) ? $pricing['max_pax'] : '';
  156.  
  157.                             $available_dates = wp_travel_get_pricing_variation_start_dates( $post->ID, $price_key );
  158.  
  159.                             $pricing_sold_out = false;
  160.  
  161.                             if( class_exists( 'WP_Travel_Util_Inventory' ) ) {
  162.  
  163.                                 $available_pax = $inventory->get_available_pax( $trip_id, $price_key );
  164.                                 $booked_pax = $inventory->get_booking_pax_count( $trip_id, $price_key );
  165.                                 $pax_limit = $inventory->get_pricing_option_pax_limit( $trip_id, $price_key );
  166.  
  167.                                 $pricing_status_tags = array(
  168.  
  169.                                     '{available_pax}' => $available_pax,
  170.                                     '{booked_pax}' => $booked_pax,
  171.                                     '{pax_limit}' => $pax_limit,
  172.                                    
  173.                                 );
  174.  
  175.                                 //Admin message.
  176.                                 $pricing_status_msg = str_replace( array_keys( $pricing_status_tags ), $pricing_status_tags, $status_msg );
  177.  
  178.                                 $inventory_enabled_for_option = $inventory->is_inventory_enabled( $trip_id, $price_key );
  179.  
  180.                                 if ( ! $inventory_enabled_for_option ) {
  181.  
  182.                                     $pricing_status_msg = __( 'N/A', 'wp-travel' );
  183.  
  184.                                 }
  185.  
  186.                                 $pricing_sold_out = $available_pax === 0 ? true : false;
  187.                                
  188.                             }
  189.  
  190.                         ?>
  191.                         <li id="pricing-<?php echo esc_attr( $price_key ); ?>" class="availabily-content clearfix">
  192.                             <div class="date-from">
  193.                                 <span class="availabily-heading-label"><?php echo esc_html__( 'Pricing Name:', 'wp-travel' ); ?></span> <span><?php echo esc_html( $pricing_name ); ?></span>
  194.                             </div>
  195.                             <div class="status">
  196.                                 <span class="availabily-heading-label"><?php echo esc_html__( 'Min Group Size:', 'wp-travel' ); ?></span>
  197.                                 <span><?php echo ! empty( $pricing_min_pax ) ? esc_html( $pricing_min_pax . ' People' ) : esc_html__( 'No size limit', 'wp-travel' ); ?></span>
  198.                             </div>
  199.                             <div class="status">
  200.                                 <span class="availabily-heading-label"><?php echo esc_html__( 'Max Group Size:', 'wp-travel' ); ?></span>
  201.                                 <span><?php echo ! empty( $pricing_max_pax ) ? esc_html( $pricing_max_pax . ' People' ) : esc_html__( 'No size limit', 'wp-travel' ); ?></span>
  202.                             </div>
  203.                             <?php if( $status_col ) : ?>
  204.  
  205.                             <div class="status">
  206.                                 <span class="availabily-heading-label"><?php echo esc_html__( 'Status:', 'wp-travel' ); ?></span>
  207.                                 <span><?php echo esc_html( $pricing_status_msg ); ?></span>
  208.                             </div>
  209.  
  210.                             <?php endif; ?>
  211.                             <div class="price">
  212.                                 <span class="availabily-heading-label"><?php echo esc_html__( 'price:', 'wp-travel' ); ?></span>
  213.                                 <?php if ( '' !== $pricing_option_price || '0' !== $pricing_option_price ) : ?>
  214.  
  215.                                     <?php if ( 'yes' === $pricing_sale_enabled ) : ?>
  216.                                         <del>
  217.                                             <span><?php echo apply_filters( 'wp_travel_itinerary_price', sprintf( ' %s %s ', $currency_symbol, $pricing_option_price ), $currency_symbol, $pricing_option_price ); ?></span>
  218.                                         </del>
  219.                                     <?php endif; ?>
  220.                                         <span class="person-count">
  221.                                             <ins>
  222.                                                 <span>
  223.                                                     <?php
  224.                                                     if ( 'yes' === $pricing_sale_enabled ) {
  225.                                                         echo apply_filters( 'wp_travel_itinerary_sale_price', sprintf( ' %s %s', $currency_symbol, $pricing_sale_price ), $currency_symbol, $pricing_sale_price );
  226.                                                     } else {
  227.                                                         echo apply_filters( 'wp_travel_itinerary_price', sprintf( ' %s %s ', $currency_symbol, $pricing_option_price ), $currency_symbol, $pricing_option_price );
  228.                                                     }
  229.                                                     ?>
  230.                                                 </span>
  231.                                             </ins>/<?php echo esc_html( $per_person_text ); ?>
  232.                                         </span>
  233.                                 <?php endif; ?>
  234.                             </div>
  235.                             <div class="action">
  236.                            
  237.                                 <?php if ( $pricing_sold_out ) : ?>
  238.                                    
  239.                                     <p class="wp-travel-sold-out"><?php echo $sold_out_btn_rep_msg; ?></p>
  240.                                    
  241.                                 <?php else : ?>
  242.                                     <a href="#0" class="btn btn-primary btn-sm btn-inverse show-booking-row"><?php echo esc_html__( 'Select', 'wp-travel' ); ?></a>
  243.                                 <?php endif; ?>
  244.                             </div>
  245.                             <div class="wp-travel-booking-row">
  246.                                 <div class="wp-travel-calender-column no-padding ">
  247.                                 <?php if ( $available_dates ) : ?>
  248.                                     <label for=""><?php echo esc_html__( 'Select a Date:', 'wp-travel' ); ?></label>
  249.                                     <input name="trip_date" type="text" data-available-dates="<?php echo esc_attr( wp_json_encode( $available_dates ) ); ?>" readonly class="wp-travel-pricing-dates" required data-parsley-trigger="change" data-parsley-required-message="<?php echo esc_attr__( 'Please Select a Date', 'wp-travel' ); ?>">
  250.                                 <?php
  251.                                 else : ?>
  252.                                     <label for=""><?php echo esc_html__( 'Select a Date:', 'wp-travel' ); ?></label>
  253.                                     <input name="trip_date" type="text" readonly class="wp-travel-pricing-dates" required data-parsley-trigger="change" data-parsley-required-message="<?php echo esc_attr__( 'Please Select a Date', 'wp-travel' ); ?>">
  254.                                 <?php endif;
  255.                                 ?>
  256.                                 </div>
  257.                                 <div class="wp-travel-calender-aside">
  258.                                 <?php
  259.                                 $pricing_default_types = wp_travel_get_pricing_variation_options();
  260.  
  261.                                 $pricing_type_label = ( 'custom' === $pricing_type ) ? $pricing_custom_label : $pricing_default_types[ $pricing_type ];
  262.  
  263.                                 $max_attr = '';
  264.                                 $min_attr = 'min=1';
  265.                                 if ( '' !== $pricing_max_pax ) {
  266.  
  267.                                     $max_attr = 'max=' . $pricing_max_pax;
  268.                                 }
  269.                                 if ( '' !== $pricing_min_pax ) {
  270.                                     $min_attr = 'min=' . $pricing_min_pax;
  271.                                 }
  272.  
  273.                                 ?>
  274.                                     <div class="col-sm-3">
  275.                                         <label for=""><?php echo esc_html( ucfirst( $pricing_type_label ) ); ?></label>
  276.                                         <input name="pax" type="number" <?php echo esc_attr( $min_attr ); ?> <?php echo esc_attr( $max_attr ); ?> placeholder="<?php echo esc_attr__( 'size', 'wp-travel' ); ?>" required data-parsley-trigger="change">
  277.                                     </div>
  278.                                     <div class="add-to-cart">
  279.                                             <input type="hidden" name="trip_id" value="<?php echo esc_attr( get_the_ID() ) ?>" />
  280.                                             <input type="hidden" name="price_key" value="<?php echo esc_attr( $price_key ) ?>" />
  281.                                     <?php
  282.                                         $button = '<a href="%s" data-parent-id="pricing-'.esc_attr( $price_key ).'" class="btn add-to-cart-btn btn-primary btn-sm btn-inverse">%s</a>';
  283.                                         $cart_url = add_query_arg( 'trip_id', get_the_ID(), wp_travel_get_cart_url() );
  284.                                         if ( 'yes' !== $fixed_departure ) :
  285.                                             $cart_url = add_query_arg( 'trip_duration', $trip_duration, $cart_url ); ?>
  286.                                             <input type="hidden" name="trip_duration" value="<?php echo esc_attr( $trip_duration ) ?>" />
  287.                                         <?php                                      
  288.                                         endif;
  289.                                        
  290.                                         $cart_url = add_query_arg( 'price_key', $price_key, $cart_url );
  291.                                         printf( $button, esc_url( $cart_url ), esc_html__( 'Book now', 'wp-travel' ) );
  292.                                     ?>
  293.                                     </div>
  294.                                 </div>
  295.                             </div>
  296.                         </li>
  297.                     <?php endforeach; ?>
  298.                     </ul>
  299.                 </div>
  300.             </div>
  301.         <?php endif; ?>
  302.     <?php else : ?>
  303.         <div id="wp-travel-date-price" class="detail-content">
  304.             <div class="availabily-wrapper">
  305.                 <ul class="availabily-list <?php echo 'yes' === $fixed_departure ? 'additional-col' : ''; ?>">
  306.                     <li class="availabily-heading clearfix">
  307.                         <?php if ( 'yes' == $fixed_departure ) : ?>
  308.                             <div class="date-from">
  309.                                 <?php echo esc_html__( 'Start', 'wp-travel' ); ?>
  310.                             </div>
  311.                             <div class="date-to">
  312.                                 <?php echo esc_html__( 'End', 'wp-travel' ); ?>
  313.                             </div>
  314.                         <?php else :?>
  315.                             <div class="date-from">
  316.                                 <?php echo esc_html__( 'Trip Duration', 'wp-travel' ); ?>
  317.                             </div>
  318.                         <?php endif; ?>
  319.  
  320.                         <div class="status">
  321.                             <?php echo esc_html__( 'Group Size', 'wp-travel' ); ?>
  322.                         </div>
  323.                         <?php if( $status_col ) : ?>
  324.  
  325.                                 <div class="status">
  326.                                     <?php echo esc_html__( 'Status', 'wp-travel' ); ?>
  327.                                 </div>
  328.  
  329.                             <?php endif; ?>
  330.                         <div class="price">
  331.                             <?php echo esc_html__( 'Price', 'wp-travel' ); ?>
  332.                         </div>
  333.                         <div class="action">
  334.                             &nbsp;
  335.                         </div>
  336.                     </li>
  337.                     <li class="availabily-content clearfix" id="trip-duration-content">
  338.                         <?php if ( 'yes' == $fixed_departure ) : ?>
  339.                             <div class="date-from">
  340.                                 <span class="availabily-heading-label"><?php echo esc_html__( 'start:', 'wp-travel' ); ?></span>
  341.                                 <?php echo esc_html( date_i18n( 'l', strtotime( $trip_start_date ) ) );  ?>
  342.                                 <?php $date_format = get_option( 'date_format' ); ?>
  343.                                 <?php if ( ! $date_format ) : ?>
  344.                                     <?php $date_format = 'jS M, Y'; ?>
  345.                                 <?php endif; ?>
  346.                                 <span><?php echo esc_html( date_i18n( $date_format, strtotime( $trip_start_date ) ) );  ?></span>
  347.                             </div>
  348.                             <div class="date-to">
  349.                                 <span class="availabily-heading-label"><?php echo esc_html__( 'end:', 'wp-travel' ); ?></span>
  350.                                 <?php echo esc_html( date_i18n( 'l', strtotime( $trip_end_date ) ) );  ?>
  351.                                 <span><?php echo esc_html( date_i18n( $date_format, strtotime( $trip_end_date ) ) );  ?></span>
  352.                             </div>
  353.                         <?php else : ?>
  354.                             <div class="date-from">
  355.                                 <span><?php esc_html_e( 'Day(s):', 'wp-travel' ); ?> <?php echo esc_html( $trip_duration ); ?> </span>
  356.  
  357.                                 <span><?php esc_html_e( 'Night(s):', 'wp-travel' ); ?> <?php echo esc_html( $trip_duration_night ); ?> </span>
  358.                             </div>
  359.                         <?php endif; ?>
  360.                         <div class="status">
  361.                             <span class="availabily-heading-label"><?php echo esc_html__( 'Group Size:', 'wp-travel' ); ?></span>
  362.                             <span><?php echo esc_html( wp_travel_get_group_size() ); ?></span>
  363.                         </div>
  364.                         <?php if( $status_col ) : ?>
  365.  
  366.                             <div class="status">
  367.                                 <span class="availabily-heading-label"><?php echo esc_html__( 'Status:', 'wp-travel' ); ?></span>
  368.                                 <span><?php echo esc_html( $general_status_msg ); ?></span>
  369.                             </div>
  370.  
  371.                             <?php endif; ?>
  372.                         <div class="price">
  373.                             <span class="availabily-heading-label"><?php echo esc_html__( 'price:', 'wp-travel' ); ?></span>
  374.                             <?php if ( '' != $trip_price || '0' != $trip_price ) : ?>
  375.  
  376.                                 <?php if ( $enable_sale ) : ?>
  377.                                     <del>
  378.                                         <span><?php echo apply_filters( 'wp_travel_itinerary_price', sprintf( ' %s %s ', $currency_symbol, $trip_price ), $currency_symbol, $trip_price ); ?></span>
  379.                                     </del>
  380.                                 <?php endif; ?>
  381.                                     <span class="person-count">
  382.                                         <ins>
  383.                                             <span>
  384.                                                 <?php
  385.                                                 if ( $enable_sale ) {
  386.                                                     echo apply_filters( 'wp_travel_itinerary_sale_price', sprintf( ' %s %s', $currency_symbol, $sale_price ), $currency_symbol, $sale_price );
  387.                                                 } else {
  388.                                                     echo apply_filters( 'wp_travel_itinerary_price', sprintf( ' %s %s ', $currency_symbol, $trip_price ), $currency_symbol, $trip_price );
  389.                                                 }
  390.                                                 ?>
  391.                                             </span>
  392.                                         </ins>/<?php echo esc_html( $per_person_text ); ?>
  393.                                     </span>
  394.                             <?php endif; ?>
  395.                         </div>
  396.                         <div class="action">
  397.                             <?php if ( $general_sold_out ) : ?>
  398.                                        
  399.                                 <p class="wp-travel-sold-out"><?php echo $sold_out_btn_rep_msg; ?></p>
  400.                                        
  401.                             <?php else : ?>
  402.                                 <?php
  403.                                 $pax = 1;
  404.                                 // $price_per_text = strtolower( wp_travel_get_price_per_text($trip_id) );
  405.                                 // if ( 'person' == $price_per_text ) {
  406.                                 //  $wp_travel_itinerary = new WP_Travel_Itinerary( get_post( $post_id ) );
  407.                                 //  $group_size = $wp_travel_itinerary->get_group_size();
  408.                                 //  if ( $group_size ) {
  409.                                 //      $pax = $group_size;
  410.                                 //  }
  411.                                 // }
  412.                                 ?>
  413.                                 <input type="hidden" name="trip_id" value="<?php echo esc_attr( $trip_id ) ?>">
  414.                                 <input type="hidden" name="pax" value="<?php echo esc_attr( $pax ) ?>">
  415.                                 <input type="hidden" name="trip_duration" value="<?php echo esc_attr( $trip_duration ) ?>">
  416.                                 <input type="hidden" name="trip_duration_night" value="<?php echo esc_attr( $trip_duration_night ) ?>">
  417.                                 <?php
  418.                                     $button = '<a href="%s" class="btn btn-primary add-to-cart-btn btn-sm btn-inverse" data-parent-id="trip-duration-content">%s</a>';
  419.                                     $cart_url = add_query_arg( 'trip_id', get_the_ID(), wp_travel_get_cart_url() );
  420.                                     if ( 'yes' !== $fixed_departure ) :
  421.                                         $cart_url = add_query_arg( 'trip_duration', $trip_duration, $cart_url );
  422.                                     endif;
  423.                                     printf( $button, esc_url( $cart_url ), esc_html__( 'Book now', 'wp-travel' ) );
  424.                                 ?>
  425.                             <?php endif; ?>
  426.                         </div>
  427.                     </li>
  428.                 </ul>
  429.             </div>
  430.         </div>
  431.     <?php endif; ?>
  432. <?php else : ?>
  433.     <?php  echo wp_travel_get_booking_form(); ?>
  434. <?php endif; ?>
  435. </div>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement