mirror of
https://git.friendi.ca/friendica/friendica-addons.git
synced 2025-07-09 18:08:49 +00:00
Heavily refactored, including multiple calendars per user and recurring events. Not in an installable state yet, though
This commit is contained in:
parent
4a5e30ec84
commit
fefee23e90
78 changed files with 8026 additions and 1205 deletions
|
@ -40,6 +40,13 @@ abstract class wdcal_local
|
|||
return $format;
|
||||
}
|
||||
|
||||
/**
|
||||
* @static
|
||||
* @abstract
|
||||
* @return string
|
||||
*/
|
||||
abstract static function getLanguageCode();
|
||||
|
||||
/**
|
||||
* @abstract
|
||||
* @static
|
||||
|
@ -77,6 +84,13 @@ abstract class wdcal_local
|
|||
*/
|
||||
abstract function date_timestamp2local($ts);
|
||||
|
||||
/**
|
||||
* @abstract
|
||||
* @param int $ts
|
||||
* @return string
|
||||
*/
|
||||
abstract function date_timestamp2localDate($ts);
|
||||
|
||||
/**
|
||||
* @abstract
|
||||
* @return int
|
||||
|
@ -119,6 +133,14 @@ abstract class wdcal_local
|
|||
|
||||
class wdcal_local_us extends wdcal_local {
|
||||
|
||||
/**
|
||||
* @static
|
||||
* @return string
|
||||
*/
|
||||
static function getLanguageCode() {
|
||||
return "en";
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
|
@ -152,6 +174,14 @@ class wdcal_local_us extends wdcal_local {
|
|||
return date("m/d/Y H:i", $ts);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param int $ts
|
||||
* @return string
|
||||
*/
|
||||
function date_timestamp2localDate($ts) {
|
||||
return date("l, F jS Y", $ts);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
|
@ -198,6 +228,14 @@ class wdcal_local_us extends wdcal_local {
|
|||
|
||||
class wdcal_local_de extends wdcal_local {
|
||||
|
||||
/**
|
||||
* @static
|
||||
* @return string
|
||||
*/
|
||||
static function getLanguageCode() {
|
||||
return "de";
|
||||
}
|
||||
|
||||
/**
|
||||
* @return string
|
||||
*/
|
||||
|
@ -231,6 +269,14 @@ class wdcal_local_de extends wdcal_local {
|
|||
return date("d.m.Y H:i", $ts);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param int $ts
|
||||
* @return string
|
||||
*/
|
||||
function date_timestamp2localDate($ts) {
|
||||
return date("l, j. F Y", $ts);
|
||||
}
|
||||
|
||||
/**
|
||||
* @return int
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue