This commit is contained in:
2026-05-07 14:57:59 +02:00
parent c4a485e530
commit 811069a25c
35 changed files with 2980 additions and 30 deletions

View File

@@ -113,6 +113,20 @@ class Settings {
return trim( number_format_i18n( (float) $amount, 2 ) . ' ' . self::get_currency_symbol() );
}
/**
* Get iCal sync mode.
*
* Tryb synchronizacji iCal:
* - per_yacht: import po prefiksie SUMMARY ("Nazwa - opis"), wpisy do availability
* - global: wszystkie eventy zapisane jako wspólne wydarzenia kalendarza, bez wpływu na availability
*
* @return string
*/
public static function get_ical_sync_mode() {
$mode = get_option( 'yacht_booking_ical_sync_mode', 'per_yacht' );
return in_array( $mode, array( 'per_yacht', 'global' ), true ) ? $mode : 'per_yacht';
}
/**
* Get terms page ID.
*