summaryrefslogtreecommitdiff
path: root/includes/sys_template.php
diff options
context:
space:
mode:
authormsquare <msquare@notrademark.de>2017-07-20 20:48:57 +0200
committerGitHub <noreply@github.com>2017-07-20 20:48:57 +0200
commit3406967ab4bf60fd00a22541a6b5a8155121cbad (patch)
treeab10822d61e7a2549be99bf2e7964351ddda484b /includes/sys_template.php
parent37d4edcd9ace5021b6eb02761a9c3865c5607f33 (diff)
parente1762e7764d4ee4f37757ecd2630f62a440dbf0e (diff)
Merge pull request #329 from MyIgel/renderer
Added renderer
Diffstat (limited to 'includes/sys_template.php')
-rw-r--r--includes/sys_template.php33
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 &laquo;' . $file . '&raquo;.');
- return '';
-}
-
-/**
* @param string $str
* @param int $length
* @return string