Plugin Directory

Changeset 3294812


Ignore:
Timestamp:
05/16/2025 01:51:51 PM (11 months ago)
Author:
slopeit
Message:

Release widget version 4.3.1

Location:
slope-widgets/trunk
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • slope-widgets/trunk/includes/admin/GlobalSettings.php

    r3289147 r3294812  
    7777        // TODO: Maybe we should build a normalizer to ensure that the data stored in the settings is in the correct
    7878        //  format (in this case a boolean).
    79         $validatedData['book_target'] = isset($input['book_target']) && trim($input['book_target']) !== '';
     79        $validatedData['book_target'] = !empty($input['book_target'])
     80            && is_string($input['book_target'])
     81            && trim($input['book_target']) !== '';
    8082
    8183        if ($validator->hasErrors()) {
  • slope-widgets/trunk/includes/admin/Promotions.php

    r3289147 r3294812  
    300300        // NOTE: `hide_description` is a checkbox and it is not present in the input if it is not checked. So we need to
    301301        // set it to false if it is not present in the input.
    302         $validatedData['hide_description'] = isset($input['hide_description']) && trim($input['hide_description']) !== '';
     302        $validatedData['hide_description'] = !empty($input['hide_description'])
     303            && is_string($input['hide_description'])
     304            && trim($input['hide_description']) !== '';
    303305
    304306        if ($validator->hasErrors()) {
  • slope-widgets/trunk/includes/pages/global-settings/partials/form.php

    r3289147 r3294812  
    5454
    5555        <div class="col-9">
    56             <input <?php echo esc_attr($openLinksOnANewTabAttribute); ?> id="slp-open-new-tab" name="slope_global_settings[book_target]" type="checkbox">
     56            <input <?php echo esc_attr($openLinksOnANewTabAttribute); ?>
     57                type="checkbox"
     58                id="slp-open-new-tab"
     59                name="slope_global_settings[book_target]"
     60                value="1">
    5761            <label for="slp-open-new-tab">
    5862                <?php esc_html_e('Selezionando questa casella, il booking engine verrà aperto in una nuova scheda del browser.', 'slope-widgets'); ?>
  • slope-widgets/trunk/includes/pages/promotions/partials/layout-section.php

    r3289147 r3294812  
    9696                    id='slope_promotions_is_description_hidden'
    9797                    name='slope_promo[hide_description]'
    98                     type='checkbox'>
     98                    type='checkbox'
     99                    value="1">
    99100            </div>
    100101            <div class="col-3">
  • slope-widgets/trunk/includes/pages/welcome/index.php

    r3289147 r3294812  
    5353            <div class="slp-row">
    5454                <div class="col-12">
    55                     <input type="checkbox" id="slope-terms">
     55                    <input type="checkbox" id="slope-terms" value="1">
    5656                    <label for="slope-terms">
    5757                        <?php esc_html_e('Dichiaro di aver letto ed accettato l’', 'slope-widgets') ?>
  • slope-widgets/trunk/js/slope-promotions.js

    r3289147 r3294812  
    66  var slopePromotionsShortcodes = document.querySelectorAll('[data-role="slope-promo"]');
    77  slopePromotionsShortcodes.forEach(function (slopePromotionsShortcode) {
    8     var language = slopePromotionsShortcode.getAttribute("data-language");
     8    var language = slopePromotionsShortcode.getAttribute("data-lang");
    99    var ajaxUrl = slpWidgetObj.ajax_url;
    1010    var nonce = slpWidgetObj.nonce;
     
    6161    promotionCards.forEach(function (card) {
    6262      var promotionId = card.dataset.promotionId;
    63       var modal = document.getElementById("modal-".concat(promotionId));
     63      var modal = shortcodeElement.getElementById("modal-".concat(promotionId));
    6464      var openButtons = card.querySelectorAll('[data-action="open-modal"]');
    6565      var closeButton = modal.querySelector('.slp-close-modal-button'); // Open modal handlers
  • slope-widgets/trunk/readme.txt

    r3289147 r3294812  
    66Requires PHP: 7.0
    77Tested up to: 6.8
    8 Stable tag: 4.3.0
     8Stable tag: 4.3.1
    99License: GPLv2 or later
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    4040== Changelog ==
    4141
     42= 4.3.1 =
     43* Correzioni minori
     44
    4245= 4.3.0 =
    4346* Nuova versione del widget delle promozioni
  • slope-widgets/trunk/slope-widgets.php

    r3289147 r3294812  
    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.3.0
     5* Version: 4.3.1
    66* Author: Slope
    77* Author URI: https://www.slope.it/
     
    1616
    1717// We use this constant to invalidate the cache of the plugin's assets
    18 const SLOPE_WIDGETS_CACHE_BUST_VERSION = '4.3.0';
     18const SLOPE_WIDGETS_CACHE_BUST_VERSION = '4.3.1';
    1919
    2020// Current version of the database schema. It is used to check if the database schema needs to be updated.
Note: See TracChangeset for help on using the changeset viewer.