summaryrefslogtreecommitdiff
path: root/includes/sys_template.php
diff options
context:
space:
mode:
authorIgor Scheller <igor.scheller@igorshp.de>2019-11-27 23:43:21 +0100
committerIgor Scheller <igor.scheller@igorshp.de>2019-12-08 02:20:48 +0100
commit42721e95726559b4a601240bb5b0fe4e5d755b2a (patch)
tree6810e05f845ca787acc1d02fa82d3df15cd0ef9b /includes/sys_template.php
parent377b390c97afb9106fd9a139819d00306f996f24 (diff)
Added Schedule parsing and replaced old Fahrplan importer
Resolves #553 (Change Frab Import from xCal to XML) Resolves #538 (Feature Request: Multi Frab Import)
Diffstat (limited to 'includes/sys_template.php')
-rw-r--r--includes/sys_template.php36
1 files changed, 0 insertions, 36 deletions
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
@@ -410,42 +410,6 @@ function table_buttons($buttons = [])
}
/**
- * @param string $str
- * @param int $length
- * @return string
- */
-function shorten($str, $length = 50)
-{
- if (strlen($str) < $length) {
- return $str;
- }
- return '<span title="' . htmlentities($str, ENT_COMPAT, 'UTF-8') . '">'
- . substr($str, 0, $length - 3)
- . '...</span>';
-}
-
-/**
- * @param array[] $array
- * @return string
- */
-function table_body($array)
-{
- $html = '';
- foreach ($array as $line) {
- $html .= '<tr>';
- if (is_array($line)) {
- foreach ($line as $td) {
- $html .= '<td>' . $td . '</td>';
- }
- } else {
- $html .= '<td>' . $line . '</td>';
- }
- $html .= '</tr>';
- }
- return $html;
-}
-
-/**
* @param string $msg
* @return mixed
*/