Changeset 3468783
- Timestamp:
- 02/24/2026 04:59:23 PM (5 weeks ago)
- Location:
- domilocus/trunk
- Files:
-
- 5 edited
-
domilocus.php (modified) (2 diffs)
-
includes/admin/class-domilocus-admin-menus.php (modified) (4 diffs)
-
includes/admin/class-domilocus-bookings-list-table.php (modified) (5 diffs)
-
includes/class-domilocus-calendar.php (modified) (2 diffs)
-
readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
domilocus/trunk/domilocus.php
r3465655 r3468783 4 4 * Plugin URI: https://domilocus.consulinfo.it 5 5 * Description: Complete booking and property management solution for vacation rentals, apartments, and accommodations with backend administration. 6 * Version: 1.0. 96 * Version: 1.0.10 7 7 * Author: ConsulInfo 8 8 * Author URI: https://domilocus.consulinfo.it … … 23 23 24 24 // Define plugin constants 25 define('DOMILOCUS_VERSION', '1.0. 9');25 define('DOMILOCUS_VERSION', '1.0.10'); 26 26 define('DOMILOCUS_PLUGIN_FILE', __FILE__); 27 27 define('DOMILOCUS_PLUGIN_DIR', plugin_dir_path(__FILE__)); -
domilocus/trunk/includes/admin/class-domilocus-admin-menus.php
r3464318 r3468783 135 135 // Hidden fallback pages for add-ons (avoid 404 if add-on is missing). 136 136 add_submenu_page( 137 null,137 'domilocus', 138 138 __('Funzionalità non disponibile', 'domilocus'), 139 139 '', … … 143 143 ); 144 144 add_submenu_page( 145 null,145 'domilocus', 146 146 __('Funzionalità non disponibile', 'domilocus'), 147 147 '', … … 151 151 ); 152 152 add_submenu_page( 153 null,153 'domilocus', 154 154 __('Funzionalità non disponibile', 'domilocus'), 155 155 '', … … 158 158 array(__CLASS__, 'addon_missing_page') 159 159 ); 160 161 remove_submenu_page('domilocus', 'domilocus-statistics'); 162 remove_submenu_page('domilocus', 'domilocus-frontend-license'); 163 remove_submenu_page('domilocus', 'domilocus-license'); 160 164 161 165 // Settings -
domilocus/trunk/includes/admin/class-domilocus-bookings-list-table.php
r3403909 r3468783 123 123 'pending' => '#f0ad4e', 124 124 'confirmed' => '#5cb85c', 125 'pending-payment' => '#ff9800', 125 126 'cancelled' => '#d9534f', 126 127 'completed' => '#5bc0de' … … 130 131 'pending' => __('Pending', 'domilocus'), 131 132 'confirmed' => __('Confirmed', 'domilocus'), 133 'pending-payment' => __('In attesa integrazione', 'domilocus'), 132 134 'cancelled' => __('Cancelled', 'domilocus'), 133 135 'completed' => __('Completed', 'domilocus') … … 148 150 'pending' => '#f0ad4e', 149 151 'paid' => '#5cb85c', 152 'partial' => '#ff9800', 150 153 'failed' => '#d9534f', 151 154 'refunded' => '#5bc0de' … … 155 158 'pending' => __('Pending', 'domilocus'), 156 159 'paid' => __('Pagato', 'domilocus'), 160 'partial' => __('Parziale', 'domilocus'), 157 161 'failed' => __('Fallito', 'domilocus'), 158 162 'refunded' => __('Rimborsato', 'domilocus') … … 162 166 $label = $labels[$item->payment_status] ?? ucfirst($item->payment_status); 163 167 168 $difference_due = 0.0; 169 if (function_exists('domilocus_get_booking_meta')) { 170 $difference_due = (float) domilocus_get_booking_meta((int) $item->id, '_domilocus_additional_payment_due', true); 171 if ($difference_due <= 0) { 172 $difference_due = (float) domilocus_get_booking_meta((int) $item->id, '_domilocus_last_modification_difference_due', true); 173 } 174 } 175 176 $difference_html = ''; 177 if ($difference_due > 0) { 178 $difference_html = '<br><small style="color:#b45309;font-weight:600;">' . sprintf( 179 esc_html__('Integrazione: %s', 'domilocus'), 180 wp_strip_all_tags(Domilocus_Settings::format_price($difference_due)) 181 ) . '</small>'; 182 } 183 164 184 return sprintf( 165 '<span style="color: %s; font-weight: bold;">%s</span><br><small>%s</small> ',185 '<span style="color: %s; font-weight: bold;">%s</span><br><small>%s</small>%s', 166 186 $color, 167 187 $label, 168 $item->payment_method ? esc_html(ucfirst($item->payment_method)) : '' 188 $item->payment_method ? esc_html(ucfirst($item->payment_method)) : '', 189 $difference_html 169 190 ); 170 191 } -
domilocus/trunk/includes/class-domilocus-calendar.php
r3464318 r3468783 100 100 101 101 $dynamic_pricing_enabled = class_exists('Domilocus_Pricing_Manager') 102 && method_exists('Domilocus_Pricing_Manager', 'is_dynamic_pricing_enabled') 102 103 && Domilocus_Pricing_Manager::is_dynamic_pricing_enabled($apartment_id); 103 104 … … 128 129 129 130 // Always try to get dynamic price (includes events even without dynamic pricing enabled) 130 if (class_exists('Domilocus_Pricing_Manager') ) {131 if (class_exists('Domilocus_Pricing_Manager') && method_exists('Domilocus_Pricing_Manager', 'get_dynamic_price')) { 131 132 $price_for_day = Domilocus_Pricing_Manager::get_dynamic_price($apartment_id, $date_string, $base_price); 132 133 } -
domilocus/trunk/readme.txt
r3465655 r3468783 5 5 Tested up to: 6.9 6 6 Requires PHP: 8.0 7 Stable tag: 1.0. 97 Stable tag: 1.0.10 8 8 License: GPLv2 or later 9 9 License URI: https://www.gnu.org/licenses/gpl-2.0.html … … 181 181 == Changelog == 182 182 183 = 1.0.10 = 184 * Added: admin visibility for booking date-change payment integrations in Bookings list. 185 * Added: improved status labels for pending payment integrations after booking modifications. 186 * Improved: compatibility with Starter add-on date modification flow while keeping core free release stable. 187 183 188 = 1.0.8 = 184 189 * Added: `domilocus_calculated_price` filter hook to allow pricing addons (Professional) to modify the final calculation.
Note: See TracChangeset
for help on using the changeset viewer.