diff options
Diffstat (limited to 'includes/sys_template.php')
-rw-r--r-- | includes/sys_template.php | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/includes/sys_template.php b/includes/sys_template.php index 1d3943b7..a659a7f3 100644 --- a/includes/sys_template.php +++ b/includes/sys_template.php @@ -1,17 +1,6 @@ <?php /** - * Liste der verfügbaren Themes - */ -$themes = [ - '4' => 'Engelsystem 33c3 (2016)', - '3' => 'Engelsystem 32c3 (2015)', - '2' => 'Engelsystem cccamp15', - '0' => 'Engelsystem light', - '1' => 'Engelsystem dark' -]; - -/** * Display muted (grey) text. * * @param string $text @@ -333,28 +322,6 @@ function table_buttons($buttons = []) } /** - * Load and render template - * - * @param string $file - * @param string[] $data - * @return string - */ -function template_render($file, $data = []) -{ - if (file_exists($file)) { - $template = file_get_contents($file); - if (is_array($data)) { - foreach ($data as $name => $content) { - $template = str_replace('%' . $name . '%', $content, $template); - } - } - return $template; - } - engelsystem_error('Cannot find template file «' . $file . '».'); - return ''; -} - -/** * @param string $str * @param int $length * @return string |