Plugin Directory

Changeset 3485138


Ignore:
Timestamp:
03/17/2026 10:05:40 PM (12 days ago)
Author:
holdbar
Message:

Update to version 1.8.5 from GitHub

Location:
understory
Files:
14 edited
1 copied

Legend:

Unmodified
Added
Removed
  • understory/tags/1.8.5/CLAUDE.md

    r3484337 r3485138  
    207207### Version Management
    208208
    209 Current version: 1.8.4 (defined in both `package.json` and `understory.php`)
     209Current version: 1.8.5 (defined in both `package.json` and `understory.php`)
  • understory/tags/1.8.5/includes/class-understory-settings.php

    r3369871 r3485138  
    8484        $storefront = self::get_storefront($company_id, $storefront_id);
    8585        return $storefront['experienceIds'] ?? [];
     86    }
     87
     88    /**
     89     * Get the showFromPrice preference for a specific storefront.
     90     *
     91     * @return bool Whether to show the "From" price prefix. Defaults to true.
     92     */
     93    public static function get_show_from_price(string $company_id, string $storefront_id): bool
     94    {
     95        $storefront = self::get_storefront($company_id, $storefront_id);
     96        return $storefront['preferences']['showFromPrice'] ?? true;
    8697    }
    8798
  • understory/tags/1.8.5/includes/utils/class-experience-card.php

    r3465724 r3485138  
    3535                    </div>
    3636                    <div class="understory-experience-item__prices">
     37                        <?php if ( ! empty( $price_prefix ) ) : ?>
    3738                        <span font-size="large"
    38                             class="understory-experience-item__price-prefix"><?php echo esc_html($price_prefix); ?></span><span
     39                            class="understory-experience-item__price-prefix"><?php echo esc_html($price_prefix); ?></span><?php endif; ?><span
    3940                            font-size="large"
    4041                            class="understory-experience-item__price-item"><?php echo esc_html($price_item); ?></span><span
  • understory/tags/1.8.5/includes/utils/class-experiences.php

    r3484337 r3485138  
    6767
    6868        $card_url_base_prefix  = ! empty( $language ) ? '/' . $language . '/experience/' : '/en/experience/';
    69         $price_prefix          = $translation['from'];
    7069        $fallback_price_suffix = $translation['person'];
    7170
     
    7675        $storefront_fqdn = $storefront['fqdn'];
    7776        $experience_ids  = $storefront['experienceIds'];
     77
     78        $show_from_price = $storefront['preferences']['showFromPrice'] ?? true;
     79        $price_prefix    = $show_from_price ? $translation['from'] : '';
    7880
    7981        // Fetch data from API with storefront filtering
  • understory/tags/1.8.5/package-lock.json

    r3484337 r3485138  
    11{
    22  "name": "understory",
    3   "version": "1.8.4",
     3  "version": "1.8.5",
    44  "lockfileVersion": 3,
    55  "requires": true,
     
    77    "": {
    88      "name": "understory",
    9       "version": "1.8.4",
     9      "version": "1.8.5",
    1010      "dependencies": {
    1111        "@mui/material": "6.4.2",
  • understory/tags/1.8.5/readme.txt

    r3484337 r3485138  
    44Requires at least: 5.0
    55Tested up to: 6.8
    6 Stable tag: 1.8.4
     6Stable tag: 1.8.5
    77Requires PHP: 7.0
    88License: GPLv2 or later
     
    7777
    7878== Changelog ==
     79
     80= 1.8.5 =
     81* Experiences widget: Added support for the "Show from prefix on prices" storefront setting. When disabled in the Understory backoffice, the "From" label is no longer shown before experience prices.
    7982
    8083= 1.8.4 =
  • understory/tags/1.8.5/understory.php

    r3484337 r3485138  
    33Plugin Name: Understory
    44Description: Connect your WordPress site with Understory, to easily add your booking widget to posts and pages.
    5 Version: 1.8.4
     5Version: 1.8.5
    66Author: Understory
    77Text Domain: understory
     
    1818define('UNDERSTORY_PLUGIN_URL', plugin_dir_url(__FILE__));
    1919define('UNDERSTORY_PLUGIN_SLUG', 'understory');
    20 define('UNDERSTORY_PLUGIN_VERSION', '1.8.4');
     20define('UNDERSTORY_PLUGIN_VERSION', '1.8.5');
    2121define('UNDERSTORY_OPTION_KEY', 'understory_options');
    2222define('UNDERSTORY_NONCE_KEY', 'understory_nonce');
  • understory/trunk/CLAUDE.md

    r3484337 r3485138  
    207207### Version Management
    208208
    209 Current version: 1.8.4 (defined in both `package.json` and `understory.php`)
     209Current version: 1.8.5 (defined in both `package.json` and `understory.php`)
  • understory/trunk/includes/class-understory-settings.php

    r3369871 r3485138  
    8484        $storefront = self::get_storefront($company_id, $storefront_id);
    8585        return $storefront['experienceIds'] ?? [];
     86    }
     87
     88    /**
     89     * Get the showFromPrice preference for a specific storefront.
     90     *
     91     * @return bool Whether to show the "From" price prefix. Defaults to true.
     92     */
     93    public static function get_show_from_price(string $company_id, string $storefront_id): bool
     94    {
     95        $storefront = self::get_storefront($company_id, $storefront_id);
     96        return $storefront['preferences']['showFromPrice'] ?? true;
    8697    }
    8798
  • understory/trunk/includes/utils/class-experience-card.php

    r3465724 r3485138  
    3535                    </div>
    3636                    <div class="understory-experience-item__prices">
     37                        <?php if ( ! empty( $price_prefix ) ) : ?>
    3738                        <span font-size="large"
    38                             class="understory-experience-item__price-prefix"><?php echo esc_html($price_prefix); ?></span><span
     39                            class="understory-experience-item__price-prefix"><?php echo esc_html($price_prefix); ?></span><?php endif; ?><span
    3940                            font-size="large"
    4041                            class="understory-experience-item__price-item"><?php echo esc_html($price_item); ?></span><span
  • understory/trunk/includes/utils/class-experiences.php

    r3484337 r3485138  
    6767
    6868        $card_url_base_prefix  = ! empty( $language ) ? '/' . $language . '/experience/' : '/en/experience/';
    69         $price_prefix          = $translation['from'];
    7069        $fallback_price_suffix = $translation['person'];
    7170
     
    7675        $storefront_fqdn = $storefront['fqdn'];
    7776        $experience_ids  = $storefront['experienceIds'];
     77
     78        $show_from_price = $storefront['preferences']['showFromPrice'] ?? true;
     79        $price_prefix    = $show_from_price ? $translation['from'] : '';
    7880
    7981        // Fetch data from API with storefront filtering
  • understory/trunk/package-lock.json

    r3484337 r3485138  
    11{
    22  "name": "understory",
    3   "version": "1.8.4",
     3  "version": "1.8.5",
    44  "lockfileVersion": 3,
    55  "requires": true,
     
    77    "": {
    88      "name": "understory",
    9       "version": "1.8.4",
     9      "version": "1.8.5",
    1010      "dependencies": {
    1111        "@mui/material": "6.4.2",
  • understory/trunk/readme.txt

    r3484337 r3485138  
    44Requires at least: 5.0
    55Tested up to: 6.8
    6 Stable tag: 1.8.4
     6Stable tag: 1.8.5
    77Requires PHP: 7.0
    88License: GPLv2 or later
     
    7777
    7878== Changelog ==
     79
     80= 1.8.5 =
     81* Experiences widget: Added support for the "Show from prefix on prices" storefront setting. When disabled in the Understory backoffice, the "From" label is no longer shown before experience prices.
    7982
    8083= 1.8.4 =
  • understory/trunk/understory.php

    r3484337 r3485138  
    33Plugin Name: Understory
    44Description: Connect your WordPress site with Understory, to easily add your booking widget to posts and pages.
    5 Version: 1.8.4
     5Version: 1.8.5
    66Author: Understory
    77Text Domain: understory
     
    1818define('UNDERSTORY_PLUGIN_URL', plugin_dir_url(__FILE__));
    1919define('UNDERSTORY_PLUGIN_SLUG', 'understory');
    20 define('UNDERSTORY_PLUGIN_VERSION', '1.8.4');
     20define('UNDERSTORY_PLUGIN_VERSION', '1.8.5');
    2121define('UNDERSTORY_OPTION_KEY', 'understory_options');
    2222define('UNDERSTORY_NONCE_KEY', 'understory_nonce');
Note: See TracChangeset for help on using the changeset viewer.