Fonts, Travel Program

This commit is contained in:
Kevin Adametz 2023-01-25 12:47:23 +01:00
parent 93d1bea8e3
commit 561c5875a7
173 changed files with 12359 additions and 1070 deletions

View file

@ -52,6 +52,16 @@ class HTMLHelper
6 => 'Samstag',
];
private static $shortDays = [
0 => 'So',
1 => 'Mo',
2 => 'Di',
3 => 'Mi',
4 => 'Do',
5 => 'Fr',
6 => 'Sa',
];
public static $de_days = [
1 => 'Montag',
2 => 'Dienstag',
@ -89,6 +99,10 @@ class HTMLHelper
return self::$days[$i];
}
public static function getShortDay($i){
return self::$shortDays[$i];
}
public static function getDeDays(){
return self::$de_days;
}
@ -409,13 +423,18 @@ class HTMLHelper
return $ret;
}
public static function getWeekdaysString($weekdays = []){
public static function getWeekdaysString($weekdays = [], $short = false){
$ret = "";
if(is_array($weekdays) && count($weekdays)){
foreach($weekdays as $weekday){
if($weekday !== NULL){
$ret .= self::getDay($weekday).', ';
if($short){
$ret .= self::getShortDay($weekday).', ';
}else{
$ret .= self::getDay($weekday).', ';
}
}
}
if($ret != ""){