__( 'Availability', 'abogo-booking' ), 'features' => array( __( 'Bookings per date', 'abogo-booking' ) => __( 'Never sell the same dates twice: set how many customers can book the same date.', 'abogo-booking' ), __( 'Departure day', 'abogo-booking' ) => __( 'Free the departure day of a stay for the next arrival.', 'abogo-booking' ), __( 'Closed dates', 'abogo-booking' ) => __( 'Close a day of the week, a date or a period, once or every year.', 'abogo-booking' ), ), ); $locked['prices'] = array( 'title' => __( 'Prices', 'abogo-booking' ), 'features' => array( __( 'Prices by date', 'abogo-booking' ) => __( 'Charge a weekend rate or a season, or raise or lower the price on some days.', 'abogo-booking' ), __( 'Prices by length of stay', 'abogo-booking' ) => __( 'Give a discount or add a surcharge for stays of a given length.', 'abogo-booking' ), ), ); $locked['filter'] = array( 'title' => __( 'Shop filter', 'abogo-booking' ), 'features' => array( __( 'Date filter', 'abogo-booking' ) => __( 'Customers pick their dates on the shop and see only the products free on them.', 'abogo-booking' ), ), ); return $locked; } /** * Print the paid buttons of the bookings screen, locked. * * @since 1.1.0 */ public function bookings_actions() { $actions = array( __( 'Add booking', 'abogo-booking' ) => __( 'Enter a booking taken by telephone or on another platform.', 'abogo-booking' ), __( 'Import', 'abogo-booking' ) => __( 'Load bookings from a CSV file.', 'abogo-booking' ), __( 'Export CSV', 'abogo-booking' ) => __( 'Download the bookings the list shows, as a CSV file.', 'abogo-booking' ), ); foreach ( $actions as $label => $line ) { printf( '%s %s', esc_url( self::url() ), esc_attr( $line ), esc_html( $label ), self::badge() // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Static markup. ); } } /** * Print the paid rules of a product, locked, at the end of its Booking tab. * * @since 1.1.0 */ public function product_panel() { echo '
' . esc_html__( 'Bookings per date, closed dates, prices by date and by length of stay', 'abogo-booking' ) . ' ' . self::badge() . '
'; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Static markup. echo '' . esc_html__( 'Give this product its own limits, closed dates and prices.', 'abogo-booking' ) . '
'; self::button(); echo '