Changeset 3485138
- Timestamp:
- 03/17/2026 10:05:40 PM (12 days ago)
- Location:
- understory
- Files:
-
- 14 edited
- 1 copied
-
tags/1.8.5 (copied) (copied from understory/trunk)
-
tags/1.8.5/CLAUDE.md (modified) (1 diff)
-
tags/1.8.5/includes/class-understory-settings.php (modified) (1 diff)
-
tags/1.8.5/includes/utils/class-experience-card.php (modified) (1 diff)
-
tags/1.8.5/includes/utils/class-experiences.php (modified) (2 diffs)
-
tags/1.8.5/package-lock.json (modified) (2 diffs)
-
tags/1.8.5/readme.txt (modified) (2 diffs)
-
tags/1.8.5/understory.php (modified) (2 diffs)
-
trunk/CLAUDE.md (modified) (1 diff)
-
trunk/includes/class-understory-settings.php (modified) (1 diff)
-
trunk/includes/utils/class-experience-card.php (modified) (1 diff)
-
trunk/includes/utils/class-experiences.php (modified) (2 diffs)
-
trunk/package-lock.json (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
-
trunk/understory.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
understory/tags/1.8.5/CLAUDE.md
r3484337 r3485138 207 207 ### Version Management 208 208 209 Current version: 1.8. 4(defined in both `package.json` and `understory.php`)209 Current version: 1.8.5 (defined in both `package.json` and `understory.php`) -
understory/tags/1.8.5/includes/class-understory-settings.php
r3369871 r3485138 84 84 $storefront = self::get_storefront($company_id, $storefront_id); 85 85 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; 86 97 } 87 98 -
understory/tags/1.8.5/includes/utils/class-experience-card.php
r3465724 r3485138 35 35 </div> 36 36 <div class="understory-experience-item__prices"> 37 <?php if ( ! empty( $price_prefix ) ) : ?> 37 38 <span font-size="large" 38 class="understory-experience-item__price-prefix"><?php echo esc_html($price_prefix); ?></span>< span39 class="understory-experience-item__price-prefix"><?php echo esc_html($price_prefix); ?></span><?php endif; ?><span 39 40 font-size="large" 40 41 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 67 67 68 68 $card_url_base_prefix = ! empty( $language ) ? '/' . $language . '/experience/' : '/en/experience/'; 69 $price_prefix = $translation['from'];70 69 $fallback_price_suffix = $translation['person']; 71 70 … … 76 75 $storefront_fqdn = $storefront['fqdn']; 77 76 $experience_ids = $storefront['experienceIds']; 77 78 $show_from_price = $storefront['preferences']['showFromPrice'] ?? true; 79 $price_prefix = $show_from_price ? $translation['from'] : ''; 78 80 79 81 // Fetch data from API with storefront filtering -
understory/tags/1.8.5/package-lock.json
r3484337 r3485138 1 1 { 2 2 "name": "understory", 3 "version": "1.8. 4",3 "version": "1.8.5", 4 4 "lockfileVersion": 3, 5 5 "requires": true, … … 7 7 "": { 8 8 "name": "understory", 9 "version": "1.8. 4",9 "version": "1.8.5", 10 10 "dependencies": { 11 11 "@mui/material": "6.4.2", -
understory/tags/1.8.5/readme.txt
r3484337 r3485138 4 4 Requires at least: 5.0 5 5 Tested up to: 6.8 6 Stable tag: 1.8. 46 Stable tag: 1.8.5 7 7 Requires PHP: 7.0 8 8 License: GPLv2 or later … … 77 77 78 78 == 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. 79 82 80 83 = 1.8.4 = -
understory/tags/1.8.5/understory.php
r3484337 r3485138 3 3 Plugin Name: Understory 4 4 Description: Connect your WordPress site with Understory, to easily add your booking widget to posts and pages. 5 Version: 1.8. 45 Version: 1.8.5 6 6 Author: Understory 7 7 Text Domain: understory … … 18 18 define('UNDERSTORY_PLUGIN_URL', plugin_dir_url(__FILE__)); 19 19 define('UNDERSTORY_PLUGIN_SLUG', 'understory'); 20 define('UNDERSTORY_PLUGIN_VERSION', '1.8. 4');20 define('UNDERSTORY_PLUGIN_VERSION', '1.8.5'); 21 21 define('UNDERSTORY_OPTION_KEY', 'understory_options'); 22 22 define('UNDERSTORY_NONCE_KEY', 'understory_nonce'); -
understory/trunk/CLAUDE.md
r3484337 r3485138 207 207 ### Version Management 208 208 209 Current version: 1.8. 4(defined in both `package.json` and `understory.php`)209 Current version: 1.8.5 (defined in both `package.json` and `understory.php`) -
understory/trunk/includes/class-understory-settings.php
r3369871 r3485138 84 84 $storefront = self::get_storefront($company_id, $storefront_id); 85 85 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; 86 97 } 87 98 -
understory/trunk/includes/utils/class-experience-card.php
r3465724 r3485138 35 35 </div> 36 36 <div class="understory-experience-item__prices"> 37 <?php if ( ! empty( $price_prefix ) ) : ?> 37 38 <span font-size="large" 38 class="understory-experience-item__price-prefix"><?php echo esc_html($price_prefix); ?></span>< span39 class="understory-experience-item__price-prefix"><?php echo esc_html($price_prefix); ?></span><?php endif; ?><span 39 40 font-size="large" 40 41 class="understory-experience-item__price-item"><?php echo esc_html($price_item); ?></span><span -
understory/trunk/includes/utils/class-experiences.php
r3484337 r3485138 67 67 68 68 $card_url_base_prefix = ! empty( $language ) ? '/' . $language . '/experience/' : '/en/experience/'; 69 $price_prefix = $translation['from'];70 69 $fallback_price_suffix = $translation['person']; 71 70 … … 76 75 $storefront_fqdn = $storefront['fqdn']; 77 76 $experience_ids = $storefront['experienceIds']; 77 78 $show_from_price = $storefront['preferences']['showFromPrice'] ?? true; 79 $price_prefix = $show_from_price ? $translation['from'] : ''; 78 80 79 81 // Fetch data from API with storefront filtering -
understory/trunk/package-lock.json
r3484337 r3485138 1 1 { 2 2 "name": "understory", 3 "version": "1.8. 4",3 "version": "1.8.5", 4 4 "lockfileVersion": 3, 5 5 "requires": true, … … 7 7 "": { 8 8 "name": "understory", 9 "version": "1.8. 4",9 "version": "1.8.5", 10 10 "dependencies": { 11 11 "@mui/material": "6.4.2", -
understory/trunk/readme.txt
r3484337 r3485138 4 4 Requires at least: 5.0 5 5 Tested up to: 6.8 6 Stable tag: 1.8. 46 Stable tag: 1.8.5 7 7 Requires PHP: 7.0 8 8 License: GPLv2 or later … … 77 77 78 78 == 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. 79 82 80 83 = 1.8.4 = -
understory/trunk/understory.php
r3484337 r3485138 3 3 Plugin Name: Understory 4 4 Description: Connect your WordPress site with Understory, to easily add your booking widget to posts and pages. 5 Version: 1.8. 45 Version: 1.8.5 6 6 Author: Understory 7 7 Text Domain: understory … … 18 18 define('UNDERSTORY_PLUGIN_URL', plugin_dir_url(__FILE__)); 19 19 define('UNDERSTORY_PLUGIN_SLUG', 'understory'); 20 define('UNDERSTORY_PLUGIN_VERSION', '1.8. 4');20 define('UNDERSTORY_PLUGIN_VERSION', '1.8.5'); 21 21 define('UNDERSTORY_OPTION_KEY', 'understory_options'); 22 22 define('UNDERSTORY_NONCE_KEY', 'understory_nonce');
Note: See TracChangeset
for help on using the changeset viewer.