1
0
mirror of https://github.com/dwaxweiler/connector-mobilizon synced 2025-06-05 21:59:25 +02:00
This commit is contained in:
Daniel Waxweiler
2025-05-25 22:48:55 +02:00
parent b8c918db67
commit 6af81bf53d
18 changed files with 182 additions and 192 deletions

View File

@ -0,0 +1,21 @@
<?php
namespace MobilizonConnector;
class SiteSettings {
private static $OPTION_NAME_DATE_FORMAT = 'date_format';
private static $OPTION_NAME_TIME_FORMAT = 'time_format';
public static function getDateFormat() {
return get_option(self::$OPTION_NAME_DATE_FORMAT);
}
public static function getTimeFormat() {
return get_option(self::$OPTION_NAME_TIME_FORMAT);
}
public static function getTimeZone() {
return wp_timezone();
}
}