update
This commit is contained in:
@@ -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.
|
||||
*
|
||||
|
||||
Reference in New Issue
Block a user