Changeset 3294812
- Timestamp:
- 05/16/2025 01:51:51 PM (11 months ago)
- Location:
- slope-widgets/trunk
- Files:
-
- 8 edited
-
includes/admin/GlobalSettings.php (modified) (1 diff)
-
includes/admin/Promotions.php (modified) (1 diff)
-
includes/pages/global-settings/partials/form.php (modified) (1 diff)
-
includes/pages/promotions/partials/layout-section.php (modified) (1 diff)
-
includes/pages/welcome/index.php (modified) (1 diff)
-
js/slope-promotions.js (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
-
slope-widgets.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
slope-widgets/trunk/includes/admin/GlobalSettings.php
r3289147 r3294812 77 77 // TODO: Maybe we should build a normalizer to ensure that the data stored in the settings is in the correct 78 78 // 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']) !== ''; 80 82 81 83 if ($validator->hasErrors()) { -
slope-widgets/trunk/includes/admin/Promotions.php
r3289147 r3294812 300 300 // NOTE: `hide_description` is a checkbox and it is not present in the input if it is not checked. So we need to 301 301 // 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']) !== ''; 303 305 304 306 if ($validator->hasErrors()) { -
slope-widgets/trunk/includes/pages/global-settings/partials/form.php
r3289147 r3294812 54 54 55 55 <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"> 57 61 <label for="slp-open-new-tab"> 58 62 <?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 96 96 id='slope_promotions_is_description_hidden' 97 97 name='slope_promo[hide_description]' 98 type='checkbox'> 98 type='checkbox' 99 value="1"> 99 100 </div> 100 101 <div class="col-3"> -
slope-widgets/trunk/includes/pages/welcome/index.php
r3289147 r3294812 53 53 <div class="slp-row"> 54 54 <div class="col-12"> 55 <input type="checkbox" id="slope-terms" >55 <input type="checkbox" id="slope-terms" value="1"> 56 56 <label for="slope-terms"> 57 57 <?php esc_html_e('Dichiaro di aver letto ed accettato l’', 'slope-widgets') ?> -
slope-widgets/trunk/js/slope-promotions.js
r3289147 r3294812 6 6 var slopePromotionsShortcodes = document.querySelectorAll('[data-role="slope-promo"]'); 7 7 slopePromotionsShortcodes.forEach(function (slopePromotionsShortcode) { 8 var language = slopePromotionsShortcode.getAttribute("data-lang uage");8 var language = slopePromotionsShortcode.getAttribute("data-lang"); 9 9 var ajaxUrl = slpWidgetObj.ajax_url; 10 10 var nonce = slpWidgetObj.nonce; … … 61 61 promotionCards.forEach(function (card) { 62 62 var promotionId = card.dataset.promotionId; 63 var modal = document.getElementById("modal-".concat(promotionId));63 var modal = shortcodeElement.getElementById("modal-".concat(promotionId)); 64 64 var openButtons = card.querySelectorAll('[data-action="open-modal"]'); 65 65 var closeButton = modal.querySelector('.slp-close-modal-button'); // Open modal handlers -
slope-widgets/trunk/readme.txt
r3289147 r3294812 6 6 Requires PHP: 7.0 7 7 Tested up to: 6.8 8 Stable tag: 4.3. 08 Stable tag: 4.3.1 9 9 License: GPLv2 or later 10 10 License URI: http://www.gnu.org/licenses/gpl-2.0.html … … 40 40 == Changelog == 41 41 42 = 4.3.1 = 43 * Correzioni minori 44 42 45 = 4.3.0 = 43 46 * Nuova versione del widget delle promozioni -
slope-widgets/trunk/slope-widgets.php
r3289147 r3294812 3 3 * Plugin Name: Slope Widgets 4 4 * 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. 05 * Version: 4.3.1 6 6 * Author: Slope 7 7 * Author URI: https://www.slope.it/ … … 16 16 17 17 // We use this constant to invalidate the cache of the plugin's assets 18 const SLOPE_WIDGETS_CACHE_BUST_VERSION = '4.3. 0';18 const SLOPE_WIDGETS_CACHE_BUST_VERSION = '4.3.1'; 19 19 20 20 // 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.