PATH:
home
/
letacommog
/
rdvenunclick.fr1
/
wp-content
/
plugins
/
woocommerce-bookings
/
includes
/
admin
/
views
<?php if ( ! defined( 'ABSPATH' ) ) { exit; } ?> <div id="bookings_availability" class="panel woocommerce_options_panel"> <div class="options_group"> <?php $min_date = $bookable_product->get_min_date_value( 'edit' ); $min_date_unit = $bookable_product->get_min_date_unit( 'edit' ); $max_date = 0 === $bookable_product->get_max_date_value( 'edit' ) ? 1 : $bookable_product->get_max_date_value( 'edit' ); $max_date_unit = $bookable_product->get_max_date_unit( 'edit' ); woocommerce_wp_text_input( array( 'id' => '_wc_booking_qty', 'label' => __( 'Max bookings per block', 'woocommerce-bookings' ), 'description' => __( 'The maximum bookings allowed for each block. Can be overridden at resource level.', 'woocommerce-bookings' ), 'value' => $bookable_product->get_qty( 'edit' ), 'desc_tip' => true, 'type' => 'number', 'custom_attributes' => array( 'min' => '', 'step' => '1', ), ) ); ?> <p class="form-field"> <label for="_wc_booking_min_date"><?php esc_html_e( 'Minimum block bookable', 'woocommerce-bookings' ); ?></label> <input type="number" name="_wc_booking_min_date" id="_wc_booking_min_date" value="<?php echo esc_attr( $min_date ); ?>" step="1" min="0" style="margin-right: 7px; width: 4em;"> <select name="_wc_booking_min_date_unit" id="_wc_booking_min_date_unit" class="short" style="margin-right: 7px;"> <option value="month" <?php selected( $min_date_unit, 'month' ); ?>><?php esc_html_e( 'Month(s)', 'woocommerce-bookings' ); ?></option> <option value="week" <?php selected( $min_date_unit, 'week' ); ?>><?php esc_html_e( 'Week(s)', 'woocommerce-bookings' ); ?></option> <option value="day" <?php selected( $min_date_unit, 'day' ); ?>><?php esc_html_e( 'Day(s)', 'woocommerce-bookings' ); ?></option> <option value="hour" <?php selected( $min_date_unit, 'hour' ); ?>><?php esc_html_e( 'Hour(s)', 'woocommerce-bookings' ); ?></option> </select> <?php esc_html_e( 'into the future', 'woocommerce-bookings' ); ?> </p> <p class="form-field"> <label for="_wc_booking_max_date"><?php esc_html_e( 'Maximum block bookable', 'woocommerce-bookings' ); ?></label> <input type="number" name="_wc_booking_max_date" id="_wc_booking_max_date" value="<?php echo esc_attr( $max_date ); ?>" step="1" min="1" style="margin-right: 7px; width: 4em;"> <select name="_wc_booking_max_date_unit" id="_wc_booking_max_date_unit" class="short" style="margin-right: 7px;"> <option value="month" <?php selected( $max_date_unit, 'month' ); ?>><?php esc_html_e( 'Month(s)', 'woocommerce-bookings' ); ?></option> <option value="week" <?php selected( $max_date_unit, 'week' ); ?>><?php esc_html_e( 'Week(s)', 'woocommerce-bookings' ); ?></option> <option value="day" <?php selected( $max_date_unit, 'day' ); ?>><?php esc_html_e( 'Day(s)', 'woocommerce-bookings' ); ?></option> <option value="hour" <?php selected( $max_date_unit, 'hour' ); ?>><?php esc_html_e( 'Hour(s)', 'woocommerce-bookings' ); ?></option> </select> <?php esc_html_e( 'into the future', 'woocommerce-bookings' ); ?> </p> <p class="form-field _wc_booking_buffer_period"> <label for="_wc_booking_buffer_period"><?php esc_html_e( 'Require a buffer period of', 'woocommerce-bookings' ); ?></label> <input type="number" name="_wc_booking_buffer_period" id="_wc_booking_buffer_period" value="<?php echo esc_attr( $bookable_product->get_buffer_period( 'edit' ) ); ?>" step="1" min="0" style="margin-right: 7px; width: 4em;"> <span class='_wc_booking_buffer_period_unit'></span> <?php esc_html_e( 'between bookings', 'woocommerce-bookings' ); ?> </p> <?php woocommerce_wp_checkbox( array( 'id' => '_wc_booking_apply_adjacent_buffer', 'value' => $bookable_product->get_apply_adjacent_buffer( 'edit' ) ? 'yes' : 'no', 'label' => __( 'Adjacent Buffering?', 'woocommerce-bookings' ), 'description' => __( 'By default buffer period applies forward into the future of a booking. Enabling this option will apply adjacently (before and after Bookings).', 'woocommerce-bookings' ), ) ); woocommerce_wp_select( array( 'id' => '_wc_booking_default_date_availability', 'label' => __( 'All dates are...', 'woocommerce-bookings' ), 'description' => '', 'value' => $bookable_product->get_default_date_availability( 'edit' ), 'options' => array( 'available' => __( 'available by default', 'woocommerce-bookings' ), 'non-available' => __( 'not-available by default', 'woocommerce-bookings' ), ), 'description' => __( 'This option affects how you use the rules below.', 'woocommerce-bookings' ), ) ); woocommerce_wp_select( array( 'id' => '_wc_booking_check_availability_against', 'label' => __( 'Check rules against...', 'woocommerce-bookings' ), 'description' => '', 'value' => $bookable_product->get_check_start_block_only( 'edit' ) ? 'start' : '', 'options' => array( '' => __( 'All blocks being booked', 'woocommerce-bookings' ), 'start' => __( 'The starting block only', 'woocommerce-bookings' ), ), 'description' => __( 'This option affects how bookings are checked for availability.', 'woocommerce-bookings' ), ) ); ?> <p class="form-field _wc_booking_first_block_time_field"> <label for="_wc_booking_first_block_time"><?php esc_html_e( 'First block starts at...', 'woocommerce-bookings' ); ?></label> <input type="time" name="_wc_booking_first_block_time" id="_wc_booking_first_block_time" value="<?php echo esc_attr( $bookable_product->get_first_block_time( 'edit' ) ); ?>" placeholder="HH:MM" /> </p> <?php $more_info_link = ' <a href="https://docs.woocommerce.com/document/creating-a-bookable-product/#section-12">' . esc_html__( 'view our documentation here.', 'woocommerce-booking' ) . '</a>'; woocommerce_wp_checkbox( array( 'id' => '_wc_booking_has_restricted_days', 'value' => $bookable_product->has_restricted_days( 'edit' ) ? 'yes' : 'no', 'label' => __( 'Restrict selectable days?', 'woocommerce-bookings' ), 'description' => __( 'Restrict the days of the week that are able to be selected on the calendar; this will not affect your availability. For more information on restricting start and end days you can', 'woocommerce-bookings' ) . $more_info_link, ) ); ?> <div class="booking-day-restriction"> <table class="widefat"> <tbody> <tr> <td> </td> <?php $weekdays = array( __( 'Sunday', 'woocommerce-bookings' ), __( 'Monday', 'woocommerce-bookings' ), __( 'Tuesday', 'woocommerce-bookings' ), __( 'Wednesday', 'woocommerce-bookings' ), __( 'Thursday', 'woocommerce-bookings' ), __( 'Friday', 'woocommerce-bookings' ), __( 'Saturday', 'woocommerce-bookings' ), ); for ( $i = 0; $i < 7; $i++ ) { ?> <td> <label class="checkbox" for="_wc_booking_restricted_days[<?php echo esc_attr( $i ); ?>]"><?php echo esc_html( $weekdays[ $i ] ); ?> </label> <input type="checkbox" class="checkbox" name="_wc_booking_restricted_days[<?php echo esc_attr( $i ); ?>]" id="_wc_booking_restricted_days[<?php echo esc_attr( $i ); ?>]" value="<?php echo esc_attr( $i ); ?>" <?php checked( $restricted_days[ $i ], $i ); ?>> </td> <?php } ?> <td> </td> </tr> </tbody> </table> </div> </div> <div class="options_group"> <div class="table_grid"> <table class="widefat"> <thead> <tr> <th class="sort" width="1%"> </th> <th><?php esc_html_e( 'Range type', 'woocommerce-bookings' ); ?></th> <th><?php esc_html_e( 'Range', 'woocommerce-bookings' ); ?></th> <th></th> <th></th> <th><?php esc_html_e( 'Bookable', 'woocommerce-bookings' ); ?> <a class="tips" data-tip="<?php esc_attr_e( 'If not bookable, users won\'t be able to choose this block for their booking.', 'woocommerce-bookings' ); ?>">[?]</a></th> <th><?php esc_html_e( 'Priority', 'woocommerce-bookings' ); ?> <a class="tips" data-tip="<?php echo esc_attr( get_wc_booking_priority_explanation() ); ?>">[?]</a></th> <th class="remove" width="1%"> </th> </tr> </thead> <tfoot> <tr> <th colspan="6"> <a href="#" class="button add_row" data-row="<?php ob_start(); include 'html-booking-availability-fields.php'; $html = ob_get_clean(); echo esc_attr( $html ); ?>"><?php esc_html_e( 'Add Range', 'woocommerce-bookings' ); ?></a> <span class="description"><?php echo esc_html( get_wc_booking_rules_explanation() ); ?></span> </th> </tr> </tfoot> <tbody id="availability_rows"> <?php $values = $bookable_product->get_availability( 'edit' ); if ( ! empty( $values ) && is_array( $values ) ) { foreach ( $values as $availability ) { include 'html-booking-availability-fields.php'; } } ?> </tbody> </table> </div> </div> </div>
[+]
..
[-] html-notifications-page.php
[edit]
[-] html-booking-pricing-fields.php
[edit]
[-] html-booking-availability-fields.php
[edit]
[-] html-calendar-month.php
[edit]
[-] html-booking-persons.php
[edit]
[-] html-settings-page.php
[edit]
[-] html-availability-nav.php
[edit]
[-] html-classic-availability-settings.php
[edit]
[-] html-booking-tab.php
[edit]
[-] html-availability-views-nav.php
[edit]
[-] html-booking-resources.php
[edit]
[-] html-calendar-nav.php
[edit]
[-] html-store-availability-settings.php
[edit]
[-] html-booking-resource.php
[edit]
[-] html-booking-data.php
[edit]
[-] html-calendar-schedule.php
[edit]
[-] html-booking-person.php
[edit]
[-] html-booking-pricing.php
[edit]
[-] html-create-booking-page.php
[edit]
[-] html-booking-availability.php
[edit]
[-] html-calendar-day.php
[edit]
[-] html-create-booking-page-2.php
[edit]