From 42721e95726559b4a601240bb5b0fe4e5d755b2a Mon Sep 17 00:00:00 2001 From: Igor Scheller Date: Wed, 27 Nov 2019 23:43:21 +0100 Subject: Added Schedule parsing and replaced old Fahrplan importer Resolves #553 (Change Frab Import from xCal to XML) Resolves #538 (Feature Request: Multi Frab Import) --- includes/sys_template.php | 36 ------------------------------------ 1 file changed, 36 deletions(-) (limited to 'includes/sys_template.php') diff --git a/includes/sys_template.php b/includes/sys_template.php index fad207a9..cf4c64aa 100644 --- a/includes/sys_template.php +++ b/includes/sys_template.php @@ -409,42 +409,6 @@ function table_buttons($buttons = []) return '
' . join(' ', $buttons) . '
'; } -/** - * @param string $str - * @param int $length - * @return string - */ -function shorten($str, $length = 50) -{ - if (strlen($str) < $length) { - return $str; - } - return '' - . substr($str, 0, $length - 3) - . '...'; -} - -/** - * @param array[] $array - * @return string - */ -function table_body($array) -{ - $html = ''; - foreach ($array as $line) { - $html .= ''; - if (is_array($line)) { - foreach ($line as $td) { - $html .= '' . $td . ''; - } - } else { - $html .= '' . $line . ''; - } - $html .= ''; - } - return $html; -} - /** * @param string $msg * @return mixed -- cgit v1.2.3-54-g00ecf