Changeset 3419489
- Timestamp:
- 12/14/2025 05:58:03 PM (2 months ago)
- Location:
- keiste-solar-report/trunk
- Files:
-
- 10 deleted
- 8 edited
-
.gitignore (deleted)
-
assets/js/solar-calculator-main.js (modified) (1 diff)
-
assets/pages/backup/ie-commercial.html (modified) (1 diff)
-
assets/pages/backup/ie-residential.html (modified) (1 diff)
-
assets/pages/backup/uk-commercial.html (deleted)
-
assets/pages/backup/uk-residential.html (deleted)
-
assets/pages/backup/us-commercial.html (deleted)
-
assets/pages/backup/us-residential.html (deleted)
-
assets/pages/ie-commercial.html (modified) (1 diff)
-
assets/pages/ie-residential.html (modified) (1 diff)
-
assets/pages/uk-commercial.html (deleted)
-
assets/pages/uk-residential.html (deleted)
-
assets/pages/us-commercial.html (deleted)
-
assets/pages/us-residential.html (deleted)
-
assets/webfonts (deleted)
-
docs/index.html (modified) (1 diff)
-
includes/admin-settings.php (modified) (7 diffs)
-
includes/class-ksrad-admin.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
keiste-solar-report/trunk/assets/js/solar-calculator-main.js
r3419453 r3419489 34 34 const DEFAULT_PANELS = 0; 35 35 const DEFAULT_EXPORT_PERCENT = 0.10; // 10% of production exported 36 const DEFAULT_RETAIL_RATE = 0. 35; // €/kWh – sensible default if blank36 const DEFAULT_RETAIL_RATE = 0.17; // €/kWh – sensible default if blank 37 37 const DEFAULT_FEED_IN_TARIFF = FEED_IN_TARIFF_DEFAULT; 38 38 const DEFAULT_APR = LOAN_APR_DEFAULT; -
keiste-solar-report/trunk/assets/pages/backup/ie-commercial.html
r3415762 r3419489 866 866 const DEFAULT_PANELS = 0; 867 867 const DEFAULT_EXPORT_PERCENT = 0.4; // 40% of production exported (assumption if no slider) 868 const DEFAULT_RETAIL_RATE = 0. 35; // €/kWh – sensible default if blank868 const DEFAULT_RETAIL_RATE = 0.17; // €/kWh – sensible default if blank 869 869 const DEFAULT_FEED_IN_TARIFF = FEED_IN_TARIFF_DEFAULT; 870 870 const DEFAULT_APR = LOAN_APR_DEFAULT; -
keiste-solar-report/trunk/assets/pages/backup/ie-residential.html
r3415762 r3419489 866 866 const DEFAULT_PANELS = 0; 867 867 const DEFAULT_EXPORT_PERCENT = 0.4; // 40% of production exported (assumption if no slider) 868 const DEFAULT_RETAIL_RATE = 0. 35; // €/kWh – sensible default if blank868 const DEFAULT_RETAIL_RATE = 0.17; // €/kWh – sensible default if blank 869 869 const DEFAULT_FEED_IN_TARIFF = FEED_IN_TARIFF_DEFAULT; 870 870 const DEFAULT_APR = LOAN_APR_DEFAULT; -
keiste-solar-report/trunk/assets/pages/ie-commercial.html
r3415762 r3419489 866 866 const DEFAULT_PANELS = 0; 867 867 const DEFAULT_EXPORT_PERCENT = 0.4; // 40% of production exported (assumption if no slider) 868 const DEFAULT_RETAIL_RATE = 0. 35; // €/kWh – sensible default if blank868 const DEFAULT_RETAIL_RATE = 0.17; // €/kWh – sensible default if blank 869 869 const DEFAULT_FEED_IN_TARIFF = FEED_IN_TARIFF_DEFAULT; 870 870 const DEFAULT_APR = LOAN_APR_DEFAULT; -
keiste-solar-report/trunk/assets/pages/ie-residential.html
r3415762 r3419489 866 866 const DEFAULT_PANELS = 0; 867 867 const DEFAULT_EXPORT_PERCENT = 0.4; // 40% of production exported (assumption if no slider) 868 const DEFAULT_RETAIL_RATE = 0. 35; // €/kWh – sensible default if blank868 const DEFAULT_RETAIL_RATE = 0.17; // €/kWh – sensible default if blank 869 869 const DEFAULT_FEED_IN_TARIFF = FEED_IN_TARIFF_DEFAULT; 870 870 const DEFAULT_APR = LOAN_APR_DEFAULT; -
keiste-solar-report/trunk/docs/index.html
r3415762 r3419489 866 866 const DEFAULT_PANELS = 0; 867 867 const DEFAULT_EXPORT_PERCENT = 0.4; // 40% of production exported (assumption if no slider) 868 const DEFAULT_RETAIL_RATE = 0. 35; // €/kWh – sensible default if blank868 const DEFAULT_RETAIL_RATE = 0.17; // €/kWh – sensible default if blank 869 869 const DEFAULT_FEED_IN_TARIFF = FEED_IN_TARIFF_DEFAULT; 870 870 const DEFAULT_APR = LOAN_APR_DEFAULT; -
keiste-solar-report/trunk/includes/admin-settings.php
r3419476 r3419489 253 253 add_settings_field( 254 254 'default_electricity_rate', 255 'Default Electricity Rate ( €/kWh)',255 'Default Electricity Rate (cost/kWh)', 256 256 array($this, 'default_electricity_rate_callback'), 257 257 'keiste-solar-admin', … … 269 269 add_settings_field( 270 270 'default_feed_in_tariff', 271 'Feed-in Tariff ( €/kWh)',271 'Feed-in Tariff (cost/kWh)', 272 272 array($this, 'default_feed_in_tariff_callback'), 273 273 'keiste-solar-admin', … … 459 459 if (isset($input['default_electricity_rate'])) { 460 460 $rate = floatval($input['default_electricity_rate']); 461 $new_input['default_electricity_rate'] = ($rate >= 0 && $rate <= 10) ? $rate : 0. 35;461 $new_input['default_electricity_rate'] = ($rate >= 0 && $rate <= 10) ? $rate : 0.17; 462 462 } 463 463 … … 498 498 'Canada' => '$' 499 499 ); 500 $new_input['currency'] = isset($currency_map[$new_input['country']]) ? $currency_map[$new_input['country']] : ' €';500 $new_input['currency'] = isset($currency_map[$new_input['country']]) ? $currency_map[$new_input['country']] : '$'; 501 501 } 502 502 … … 711 711 printf( 712 712 '<input type="number" step="0.01" id="default_electricity_rate" name="ksrad_options[default_electricity_rate]" value="%s" />', 713 isset($this->options['default_electricity_rate']) ? esc_attr($this->options['default_electricity_rate']) : '0. 35'714 ); 715 echo ' <span class="description"> €/kWh (e.g., 0.35 for €0.35/kWh)</span>';713 isset($this->options['default_electricity_rate']) ? esc_attr($this->options['default_electricity_rate']) : '0.17' 714 ); 715 echo ' <span class="description">per kWh (e.g., 0.17 for 0.17/kWh)</span>'; 716 716 } 717 717 … … 729 729 isset($this->options['default_feed_in_tariff']) ? esc_attr($this->options['default_feed_in_tariff']) : '0.15' 730 730 ); 731 echo ' <span class="description"> €/kWh</span>';731 echo ' <span class="description">per kWh</span>'; 732 732 } 733 733 … … 1190 1190 $countries = array('United States', 'Canada', 'United Kingdom', 'Rep. of Ireland'); 1191 1191 $building_types = array('Residential', 'Commercial Small', 'Commercial Medium', 'Commercial Large'); 1192 $currency = isset($this->options['currency']) ? $this->options['currency'] : ' €';1192 $currency = isset($this->options['currency']) ? $this->options['currency'] : '$'; 1193 1193 ?> 1194 1194 <div class="system-size-table-wrapper"> -
keiste-solar-report/trunk/includes/class-ksrad-admin.php
r3415762 r3419489 289 289 290 290 // Validate and sanitize electricity rate (0.01 to 10.00) 291 $electricity_rate = isset($_POST['ksrad_default_electricity_rate']) ? floatval($_POST['ksrad_default_electricity_rate']) : 0.1 3;291 $electricity_rate = isset($_POST['ksrad_default_electricity_rate']) ? floatval($_POST['ksrad_default_electricity_rate']) : 0.17; 292 292 if ($electricity_rate > 0 && $electricity_rate <= 10) { 293 293 update_option('ksrad_default_electricity_rate', $electricity_rate); … … 312 312 $notification_email = get_option('ksrad_notification_email', get_option('admin_email')); 313 313 $send_confirmation = get_option('ksrad_send_confirmation', '1'); 314 $electricity_rate = get_option('ksrad_default_electricity_rate', '0.1 3');314 $electricity_rate = get_option('ksrad_default_electricity_rate', '0.17'); 315 315 $cost_per_watt = get_option('ksrad_cost_per_watt', '2.75'); 316 316 $tax_credit = get_option('ksrad_tax_credit', '0.30');
Note: See TracChangeset
for help on using the changeset viewer.