Plugin Directory

Changeset 3771908


Ignore:
Timestamp:
10/29/2026 12:42:03 AM (3 days ago)
Author:
kibian
Message:

Version 0.11.6

Location:
kibian-reservations
Files:
2 added
6 edited

Legend:

Unmodified
Added
Removed
  • kibian-reservations/trunk/includes/class-kibian-reservations-form.php

    r3771842 r3771908  
    101101         */
    102102        private function enqueue( $o ) {
     103                // Block themes render the content before wp_enqueue_scripts runs, so register here too.
     104                if ( ! wp_script_is( 'kr-form', 'registered' ) ) {
     105                        $this->register_assets();
     106                }
     107
    103108                wp_enqueue_style( 'kr-form' );
    104109                wp_enqueue_script( 'kr-form' );
  • kibian-reservations/trunk/includes/class-kibian-reservations-requests.php

    r3771842 r3771908  
    511511                                        $nights = (int) round( ( strtotime( $out . ' UTC' ) - strtotime( $in . ' UTC' ) ) / DAY_IN_SECONDS );
    512512                                        if ( $nights > 0 ) {
    513                                                 $label = function_exists( 'mb_strtolower' ) ? mb_strtolower( __( 'Nights', 'kibian-reservations' ) ) : strtolower( __( 'Nights', 'kibian-reservations' ) );
     513                                                $word  = 1 === $nights ? __( 'Night', 'kibian-reservations' ) : __( 'Nights', 'kibian-reservations' );
     514                                                $label = function_exists( 'mb_strtolower' ) ? mb_strtolower( $word ) : strtolower( $word );
    514515                                                echo '<span class="kr-chip-nights">' . esc_html( $nights . ' ' . $label ) . '</span>';
    515516                                        }
  • kibian-reservations/trunk/kibian-reservations.php

    r3771842 r3771908  
    33 * Plugin Name:       Kibian Reservations
    44 * Description:       Booking request form for tourism and hospitality. The guest fills it in and WhatsApp opens with the message already written. Request inbox included.
    5  * Version:           0.11.5
     5 * Version:           0.11.6
    66 * Requires at least: 6.0
    77 * Requires PHP:      7.4
    … …  
    1919}
    2020
    21 define( 'KIBIAN_RESERVATIONS_VERSION', '0.11.5' );
     21define( 'KIBIAN_RESERVATIONS_VERSION', '0.11.6' );
    2222define( 'KIBIAN_RESERVATIONS_FILE', __FILE__ );
    2323define( 'KIBIAN_RESERVATIONS_PATH', plugin_dir_path( __FILE__ ) );
  • kibian-reservations/trunk/languages/kibian-reservations-es_ES.po

    r3771842 r3771908  
    346346msgstr "Noches"
    347347
     348msgid "Night"
     349msgstr "Noche"
     350
    348351msgid "View all requests:"
    349352msgstr "Ver todas las solicitudes:"
  • kibian-reservations/trunk/readme.txt

    r3771842 r3771908  
    55Tested up to: 7.1
    66Requires PHP: 7.4
    7 Stable tag: 0.11.5
     7Stable tag: 0.11.6
    88License: GPLv2 or later
    99License URI: https://www.gnu.org/licenses/gpl-2.0.html
    … …  
    8888== Changelog ==
    8989
     90= 0.11.6 =
     91* Fixed: in block themes the calendar and form script did not start (the form was not interactive).
     92* Fixed: the inbox showed "1 nights" for one-night stays.
     93
    9094= 0.11.5 =
    9195* Removed the custom CSS setting. Colors, corner radius and texts are still editable from the settings page.
    … …  
    174178== Upgrade Notice ==
    175179
     180= 0.11.6 =
     181Fixes the form not working in block themes (such as the default WordPress themes) and a nights label in the inbox.
     182
    176183= 0.11.5 =
    177184The custom CSS box was removed. Use your theme's CSS editor (Appearance > Customize > Additional CSS) for extra styling.
Note: See TracChangeset for help on using the changeset viewer.