Plugin Directory

Changeset 2806537


Ignore:
Timestamp:
10/28/2022 12:49:19 PM (3 years ago)
Author:
slopeit
Message:

Release widget version 4.2.11

Location:
slope-widgets/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • slope-widgets/trunk/js/slope-modules.js

    r2584313 r2806537  
    15021502    }, [el('span', {
    15031503      className: 'slope-rooms-label'
    1504     }, 'Stanze'), el('span', {
     1504    }, 'Alloggi'), el('span', {
    15051505      className: 'slope-rooms-count'
    15061506    }, '1')]);
  • slope-widgets/trunk/readme.txt

    r2714664 r2806537  
    44Tags: slope, hotel, prenotazioni, viaggi, agriturismo, gestionale, B&B, crm, booking engine
    55Requires at least: 4.3
    6 Tested up to: 5.9
    7 Stable tag: 4.2.10
     6Tested up to: 6.0
     7Stable tag: 4.2.11
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    3737
    3838== Changelog ==
     39
     40= 4.2.11 =
     41* Correzioni minori alle traduzioni
     42* Compatibilità con WordPress 6.0
    3943
    4044= 4.2.10 =
  • slope-widgets/trunk/slope-reservations.php

    r2714664 r2806537  
    206206    switch ($lang) {
    207207        case 'en':
    208             // In case of unsupported language, fall back to English
    209         default:
     208        default: // In case of unsupported language, fall back to English
    210209            $strings = [
    211210                'adults' => 'Adults',
    212211                'book_now' => 'Book now',
    213                 'button_value' => '',
    214212                'check-in' => 'Check-In',
    215213                'check-out' => 'Check-Out',
    216214                'children' => 'Children',
    217                 'children_age' => 'Children (age',
    218215                'guests' => 'Guests',
    219216                'lang_code' => 'en',
    220                 'room' => 'Room',
    221                 'rooms' => 'Rooms',
     217                'lodging' => 'Lodging',
     218                'lodgings' => 'Lodgings',
    222219                'save' => 'Save',
    223220                'cancel' => 'Cancel',
    224221                'years' => 'years',
    225222            ];
    226             $strings['button_value'] = (isset($options['button_value_en']) && ($options['button_value_en'] != '')) ? $options['button_value_en'] : $strings['book_now'];
     223            $strings['button_value'] = (isset($options['button_value_en']) && ($options['button_value_en'] != ''))
     224                ? $options['button_value_en']
     225                : $strings['book_now'];
    227226            break;
    228227        case 'fr':
     
    230229                'adults' => 'Adulte',
    231230                'book_now' => 'Réserver',
    232                 'button_value' => '',
    233231                'check-in' => 'Arrivée',
    234232                'check-out' => 'Départ',
    235233                'children' => 'Enfants',
    236                 'children_age' => 'Enfants (âge',
    237                 'guests' => 'Invités',
     234                'guests' => 'Client',
    238235                'lang_code' => 'fr',
    239                 'room' => 'Chambre',
    240                 'rooms' => 'Chambres',
     236                'lodging' => 'Hébergement',
     237                'lodgings' => 'Hébergements',
    241238                'save' => 'Sauver',
    242                 'cancel' => 'Annulation',
     239                'cancel' => 'Annuler',
    243240                'years' => 'âge',
    244241            ];
    245             $strings['button_value'] = (isset($options['button_value_fr']) && ($options['button_value_fr'] != '')) ? $options['button_value_fr'] : $strings['book_now'];
     242            $strings['button_value'] = (isset($options['button_value_fr']) && ($options['button_value_fr'] != ''))
     243                ? $options['button_value_fr']
     244                : $strings['book_now'];
    246245            break;
    247246        case 'de':
     
    249248                'adults' => 'Erwachsene',
    250249                'book_now' => 'Buchen',
    251                 'button_value' => '',
    252250                'check-in' => 'Ankunft',
    253251                'check-out' => 'Abreise',
    254252                'children' => 'Kinder',
    255                 'children_age' => 'Kinder (Alter',
    256253                'guests' => 'Gäste',
    257254                'lang_code' => 'de',
    258                 'room' => 'Zimmer',
    259                 'rooms' => 'Zimmer',
     255                'lodging' => 'Unterkunft',
     256                'lodgings' => 'Unterkünfte',
    260257                'save' => 'Speichern',
    261                 'cancel' => 'Cancelling',
     258                'cancel' => 'Stornieren',
    262259                'years' => 'alter',
    263260            ];
    264             $strings['button_value'] = (isset($options['button_value_de']) && ($options['button_value_de'] != '')) ? $options['button_value_de'] : $strings['book_now'];
     261            $strings['button_value'] = (isset($options['button_value_de']) && ($options['button_value_de'] != ''))
     262                ? $options['button_value_de']
     263                : $strings['book_now'];
    265264            break;
    266265        case 'it':
     
    268267                'adults' => 'Adulti',
    269268                'book_now' => 'Prenota ora',
    270                 'button_value' => '',
    271269                'check-in' => 'Check-In',
    272270                'check-out' => 'Check-Out',
    273271                'children' => 'Bambini',
    274                 'children_age' => 'Bambini (età',
    275272                'guests' => 'Ospiti',
    276273                'lang_code' => 'it',
    277                 'room' => 'Stanza',
    278                 'rooms' => 'Stanze',
     274                'lodging' => 'Alloggio',
     275                'lodgings' => 'Alloggi',
    279276                'save' => 'Salva',
    280277                'cancel' => 'Annulla',
    281278                'years' => 'anni',
    282279            ];
    283             $strings['button_value'] = (isset($options['button_value']) && ($options['button_value'] != '')) ? $options['button_value'] : $strings['book_now'];
     280            $strings['button_value'] = (isset($options['button_value']) && ($options['button_value'] != ''))
     281                ? $options['button_value']
     282                : $strings['book_now'];
    284283            break;
    285284    }
     
    291290    $fontColor = (isset($options['text_color']) && ($options['text_color'] != '') ? $options['text_color'] : $defaultFontColor);
    292291    $fontWeightBold = (isset($options['select_font_weight']) && $options['select_font_weight']) ? 'font-weight:800;' : '';
    293     $childrenMaxAge = (isset($options['children_age_max']) ? $options['children_age_max'] : $defaultChildrenMaxAge);
     292    $childrenMaxAge = (isset($options['children_age_max']) && $options['children_age_max'] !== '')
     293        ? $options['children_age_max']
     294        : $defaultChildrenMaxAge;
    294295    $childrenVisibility = (isset($options['show_children']) && $options['show_children']) ? '' : "hidden";
    295296    $minDays = (isset($options['min_days']) ? $options['min_days'] : $defaultMinDays);
     
    446447                  <input class="slope-stepper-value" type="hidden" data-input="children" value="' . $childrenMaxAge . '">
    447448                  <div class="slope-rooms-count-container">
    448                     <span class="slope-rooms-label">' . $strings['rooms'] . '</span>
     449                    <span class="slope-rooms-label">' . $strings['lodgings'] . '</span>
    449450                    <span class="slope-rooms-count" data-sync-value="rooms"></span>
    450451                  </div>
     
    462463                <div class="slope-stepper-container">
    463464                  <div class="slope-rooms-stepper-container" data-container="room">
    464                     <span class="slope-rooms-label">' . $strings['rooms'] . '</span>
     465                    <span class="slope-rooms-label">' . $strings['lodgings'] . '</span>
    465466                    <div class="slope-rooms-stepper">
    466467                      <div class="slope-decrement-button" data-decrement="rooms"><span>-</span></div>
     
    471472                  <div class="slope-room-container" data-container="guests">
    472473                  <div class="slope-horizontal-separator"></div>
    473                     <label class="slope-room-label" data-label="room">' . $strings['room'] . ' 1</label>
     474                    <label class="slope-room-label" data-label="room">' . $strings['lodging'] . ' 1</label>
    474475                    <div class="slope-guests-count-row slope-padding-top">
    475476                      <span class="slope-adults-label">' . $strings['adults'] . '</span>
     
    504505      </div>';
    505506
    506     return $html . '';
     507    return $html;
    507508}
    508509
  • slope-widgets/trunk/slope-widgets.php

    r2714664 r2806537  
    33* Plugin Name: Slope Widgets
    44* Description: Aggiungi i widget di Slope al sito web WordPress della tua struttura ricettiva! Questo plugin ti permette di mostrare la barra delle prenotazioni, i pacchetti e le promozioni tramite shortcode personalizzabili.
    5 * Version: 4.2.10
     5* Version: 4.2.11
    66* Author: Slope
    77* Author URI: https://www.slope.it/
Note: See TracChangeset for help on using the changeset viewer.