Plugin Directory

Changeset 3384702


Ignore:
Timestamp:
10/26/2025 11:11:36 AM (4 months ago)
Author:
myappy
Message:

Tagging version 1.2.8

Location:
crs-booker
Files:
3 edited
33 copied

Legend:

Unmodified
Added
Removed
  • crs-booker/tags/1.2.8/crs_booker.js

    r3367707 r3384702  
    55 * Author: My Appy
    66 * Author URI: http://www.myappy.it/
    7  * Version: 1.2.7
     7 * Version: 1.2.8
    88 * Text Domain: crs-booker
    99 * License: GPLv2 or later
     
    21492149
    21502150                                var priority = null;
    2151                                 for (var i = 0; i < crsbkr_array_get(data, 'base_opening_hours', []).length; i++)
     2151                                for (var ii = 0; ii < crsbkr_array_get(data, 'base_opening_hours', []).length; ii++)
    21522152                                {
    21532153                                    // Is it for this base and with at least the same priority as the last valid block?
    2154                                     var hours = data.base_opening_hours[i];
     2154                                    var hours = data.base_opening_hours[ii];
    21552155                                    if (crsbkr_array_get(hours, 'base_ids', []).indexOf('' + thisBase.uid) == -1 || priority !== null && parseInt(crsbkr_array_get(hours, 'priority', 0)) < parseInt(priority))
    21562156                                    {
     
    21602160                                    // Is it for the right period?
    21612161                                    var found = false;
    2162                                     for (var ii = 0; ii < crsbkr_array_get(hours, 'validity', []).length; ii++)
     2162                                    for (var iii = 0; iii < crsbkr_array_get(hours, 'validity', []).length; iii++)
    21632163                                    {
    2164                                         if (crsbkr_array_get(hours.validity[ii], 'date_from', '') <= dateStr && dateStr <= crsbkr_array_get(hours.validity[ii], 'date_to', ''))
     2164                                        if (crsbkr_array_get(hours.validity[iii], 'date_from', '') <= dateStr && dateStr <= crsbkr_array_get(hours.validity[iii], 'date_to', ''))
    21652165                                        {
    21662166                                            found = true;
     
    30523052            span.innerHTML = crsbkr_format_date(quote.checkin_time, false, 'datetime');
    30533053
    3054             var p = crsbkr_en('p');
    3055             summary.appendChild(p);
    3056             p.className = 'km_limit';
    3057             p.innerHTML = CRSBKR_STRINGS['quote.km_limit'];
    3058 
    3059             var span = crsbkr_en('span');
    3060             p.appendChild(span);
    3061             span.innerHTML = crsbkr_array_get(quote, 'km_max', 0) == 0 ? CRSBKR_STRINGS['quote.km_limit.unlimited'] : quote.km_max + '/' + CRSBKR_STRINGS['quote.km_limit.day'];
     3054            if (crsbkr_array_get(quote, 'user.platform', 'crs') == 'crs')
     3055            {
     3056                var p = crsbkr_en('p');
     3057                summary.appendChild(p);
     3058                p.className = 'km_limit';
     3059                p.innerHTML = CRSBKR_STRINGS['quote.km_limit'];
     3060
     3061                var span = crsbkr_en('span');
     3062                p.appendChild(span);
     3063                span.innerHTML = crsbkr_array_get(quote, 'km_max', 0) == 0 ? CRSBKR_STRINGS['quote.km_limit.unlimited'] : quote.km_max + '/' + CRSBKR_STRINGS['quote.km_limit.day'];
     3064            }
    30623065
    30633066            var costsDiv = crsbkr_en('div');
     
    41454148                        submitButton.style.display = 'none';
    41464149                        submitLoading.style.display = 'block';
     4150
     4151                        if (input.client)
     4152                        {
     4153                            var keys = Object.keys(input.client);
     4154                            for (var kk = 0; kk < keys.length; kk++)
     4155                            {
     4156                                if (crsbkr_array_get(input.client, keys[kk], '') == '')
     4157                                {
     4158                                    delete input.client[keys[kk]];
     4159                                }
     4160                            }
     4161
     4162                            var keys = Object.keys(input.client);
     4163                            if (keys.length == 0 || keys.length == 1 && keys[0] == 'type')
     4164                            {
     4165                                input.client = null;
     4166                            }
     4167                        }
    41474168
    41484169                        var submitParams =
     
    46784699
    46794700                    // Print the km limit only if it's the same for all options.
    4680                     if (quote.hasOwnProperty('km_max'))
     4701                    if (crsbkr_array_get(quote, 'user.platform', 'crs') == 'crs' && quote.hasOwnProperty('km_max'))
    46814702                    {
    46824703                        var limit = quote.km_max;
  • crs-booker/tags/1.2.8/crs_booker.php

    r3367707 r3384702  
    77 * Author: My Appy
    88 * Author URI: http://www.myappy.it/
    9  * Version: 1.2.7
     9 * Version: 1.2.8
    1010 * Text Domain: crs-booker
    1111 * License: GPLv2 or later
     
    4040if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
    4141
    42 define('CRSBKR_VERSION', '1.2.7');
     42define('CRSBKR_VERSION', '1.2.8');
    4343
    4444class CRSBKR_BOOKER
  • crs-booker/tags/1.2.8/readme.txt

    r3367707 r3384702  
    33Requires at least: 5.8
    44Tested up to: 6.8
    5 Stable tag: 1.2.7
     5Stable tag: 1.2.8
    66License: GPLv2 or later
    77
     
    3535
    3636== Changelog ==
     37
     38= 1.2.8 =
     39* Release Date - 26 October 2025
     40* Bugfixes
    3741
    3842= 1.2.7 =
  • crs-booker/trunk/crs_booker.js

    r3367707 r3384702  
    55 * Author: My Appy
    66 * Author URI: http://www.myappy.it/
    7  * Version: 1.2.7
     7 * Version: 1.2.8
    88 * Text Domain: crs-booker
    99 * License: GPLv2 or later
     
    21492149
    21502150                                var priority = null;
    2151                                 for (var i = 0; i < crsbkr_array_get(data, 'base_opening_hours', []).length; i++)
     2151                                for (var ii = 0; ii < crsbkr_array_get(data, 'base_opening_hours', []).length; ii++)
    21522152                                {
    21532153                                    // Is it for this base and with at least the same priority as the last valid block?
    2154                                     var hours = data.base_opening_hours[i];
     2154                                    var hours = data.base_opening_hours[ii];
    21552155                                    if (crsbkr_array_get(hours, 'base_ids', []).indexOf('' + thisBase.uid) == -1 || priority !== null && parseInt(crsbkr_array_get(hours, 'priority', 0)) < parseInt(priority))
    21562156                                    {
     
    21602160                                    // Is it for the right period?
    21612161                                    var found = false;
    2162                                     for (var ii = 0; ii < crsbkr_array_get(hours, 'validity', []).length; ii++)
     2162                                    for (var iii = 0; iii < crsbkr_array_get(hours, 'validity', []).length; iii++)
    21632163                                    {
    2164                                         if (crsbkr_array_get(hours.validity[ii], 'date_from', '') <= dateStr && dateStr <= crsbkr_array_get(hours.validity[ii], 'date_to', ''))
     2164                                        if (crsbkr_array_get(hours.validity[iii], 'date_from', '') <= dateStr && dateStr <= crsbkr_array_get(hours.validity[iii], 'date_to', ''))
    21652165                                        {
    21662166                                            found = true;
     
    30523052            span.innerHTML = crsbkr_format_date(quote.checkin_time, false, 'datetime');
    30533053
    3054             var p = crsbkr_en('p');
    3055             summary.appendChild(p);
    3056             p.className = 'km_limit';
    3057             p.innerHTML = CRSBKR_STRINGS['quote.km_limit'];
    3058 
    3059             var span = crsbkr_en('span');
    3060             p.appendChild(span);
    3061             span.innerHTML = crsbkr_array_get(quote, 'km_max', 0) == 0 ? CRSBKR_STRINGS['quote.km_limit.unlimited'] : quote.km_max + '/' + CRSBKR_STRINGS['quote.km_limit.day'];
     3054            if (crsbkr_array_get(quote, 'user.platform', 'crs') == 'crs')
     3055            {
     3056                var p = crsbkr_en('p');
     3057                summary.appendChild(p);
     3058                p.className = 'km_limit';
     3059                p.innerHTML = CRSBKR_STRINGS['quote.km_limit'];
     3060
     3061                var span = crsbkr_en('span');
     3062                p.appendChild(span);
     3063                span.innerHTML = crsbkr_array_get(quote, 'km_max', 0) == 0 ? CRSBKR_STRINGS['quote.km_limit.unlimited'] : quote.km_max + '/' + CRSBKR_STRINGS['quote.km_limit.day'];
     3064            }
    30623065
    30633066            var costsDiv = crsbkr_en('div');
     
    41454148                        submitButton.style.display = 'none';
    41464149                        submitLoading.style.display = 'block';
     4150
     4151                        if (input.client)
     4152                        {
     4153                            var keys = Object.keys(input.client);
     4154                            for (var kk = 0; kk < keys.length; kk++)
     4155                            {
     4156                                if (crsbkr_array_get(input.client, keys[kk], '') == '')
     4157                                {
     4158                                    delete input.client[keys[kk]];
     4159                                }
     4160                            }
     4161
     4162                            var keys = Object.keys(input.client);
     4163                            if (keys.length == 0 || keys.length == 1 && keys[0] == 'type')
     4164                            {
     4165                                input.client = null;
     4166                            }
     4167                        }
    41474168
    41484169                        var submitParams =
     
    46784699
    46794700                    // Print the km limit only if it's the same for all options.
    4680                     if (quote.hasOwnProperty('km_max'))
     4701                    if (crsbkr_array_get(quote, 'user.platform', 'crs') == 'crs' && quote.hasOwnProperty('km_max'))
    46814702                    {
    46824703                        var limit = quote.km_max;
  • crs-booker/trunk/crs_booker.php

    r3367707 r3384702  
    77 * Author: My Appy
    88 * Author URI: http://www.myappy.it/
    9  * Version: 1.2.7
     9 * Version: 1.2.8
    1010 * Text Domain: crs-booker
    1111 * License: GPLv2 or later
     
    4040if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
    4141
    42 define('CRSBKR_VERSION', '1.2.7');
     42define('CRSBKR_VERSION', '1.2.8');
    4343
    4444class CRSBKR_BOOKER
  • crs-booker/trunk/readme.txt

    r3367707 r3384702  
    33Requires at least: 5.8
    44Tested up to: 6.8
    5 Stable tag: 1.2.7
     5Stable tag: 1.2.8
    66License: GPLv2 or later
    77
     
    3535
    3636== Changelog ==
     37
     38= 1.2.8 =
     39* Release Date - 26 October 2025
     40* Bugfixes
    3741
    3842= 1.2.7 =
Note: See TracChangeset for help on using the changeset viewer.