mirror of
https://github.com/dwaxweiler/connector-mobilizon
synced 2025-06-05 21:59:25 +02:00
wip
This commit is contained in:
21
source/includes/SiteSettings.php
Normal file
21
source/includes/SiteSettings.php
Normal 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();
|
||||
}
|
||||
|
||||
}
|
Reference in New Issue
Block a user