From 55141154c083acc2d0397f4c62b4e0be1c7a19fa Mon Sep 17 00:00:00 2001 From: Bot Date: Tue, 3 Jan 2017 14:12:17 +0100 Subject: Replaced " with ' --- includes/sys_template.php | 72 +++++++++++++++++++++++------------------------ 1 file changed, 36 insertions(+), 36 deletions(-) (limited to 'includes/sys_template.php') diff --git a/includes/sys_template.php b/includes/sys_template.php index db5f1e29..9b85df59 100644 --- a/includes/sys_template.php +++ b/includes/sys_template.php @@ -4,11 +4,11 @@ * Liste der verfügbaren Themes */ $themes = [ - '4' => "Engelsystem 33c3 (2016)", - '3' => "Engelsystem 32c3 (2015)", - "2" => "Engelsystem cccamp15", - "0" => "Engelsystem light", - "1" => "Engelsystem dark" + '4' => 'Engelsystem 33c3 (2016)', + '3' => 'Engelsystem 32c3 (2015)', + '2' => 'Engelsystem cccamp15', + '0' => 'Engelsystem light', + '1' => 'Engelsystem dark' ]; /** @@ -82,7 +82,7 @@ function glyph_bool($boolean) * @param string $dom_id * @return string */ -function div($class, $content = [], $dom_id = "") +function div($class, $content = [], $dom_id = '') { if (is_array($content)) { $content = join("\n", $content); @@ -98,7 +98,7 @@ function div($class, $content = [], $dom_id = "") */ function heading($content, $number = 1) { - return "" . $content . ""; + return '' . $content . ''; } /** @@ -294,7 +294,7 @@ function render_table($columns, $rows, $data = true) * @param string $class * @return string */ -function button($href, $label, $class = "") +function button($href, $label, $class = '') { return '' . $label . ''; } @@ -307,7 +307,7 @@ function button($href, $label, $class = "") * @param string $class * @return string */ -function button_glyph($href, $glyph, $class = "") +function button_glyph($href, $glyph, $class = '') { return button($href, glyph($glyph), $class); } @@ -345,12 +345,12 @@ function template_render($file, $data) $template = file_get_contents($file); if (is_array($data)) { foreach ($data as $name => $content) { - $template = str_replace("%" . $name . "%", $content, $template); + $template = str_replace('%' . $name . '%', $content, $template); } } return $template; } - engelsystem_error("Cannot find template file «" . $file . "»."); + engelsystem_error('Cannot find template file «' . $file . '».'); return ''; } @@ -375,17 +375,17 @@ function shorten($str, $length = 50) */ function table_body($array) { - $html = ""; + $html = ''; foreach ($array as $line) { - $html .= ""; + $html .= ''; if (is_array($line)) { foreach ($line as $td) { - $html .= "" . $td . ""; + $html .= '' . $td . ''; } } else { - $html .= "" . $line . ""; + $html .= '' . $line . ''; } - $html .= ""; + $html .= ''; } return $html; } @@ -396,26 +396,26 @@ function table_body($array) */ function ReplaceSmilies($msg) { - $msg = str_replace(";o))", "", $msg); - $msg = str_replace(":-))", "", $msg); - $msg = str_replace(";o)", "", $msg); - $msg = str_replace(":)", "", $msg); - $msg = str_replace(":-)", "", $msg); - $msg = str_replace(":(", "", $msg); - $msg = str_replace(":-(", "", $msg); - $msg = str_replace(":o(", "", $msg); - $msg = str_replace(":o)", "", $msg); - $msg = str_replace(";o(", "", $msg); - $msg = str_replace(";(", "", $msg); - $msg = str_replace(";-(", "", $msg); - $msg = str_replace("8)", "", $msg); - $msg = str_replace("8o)", "", $msg); - $msg = str_replace(":P", "", $msg); - $msg = str_replace(":-P", "", $msg); - $msg = str_replace(":oP", "", $msg); - $msg = str_replace(";P", "", $msg); - $msg = str_replace(";oP", "", $msg); - $msg = str_replace("?)", "", $msg); + $msg = str_replace(';o))', '', $msg); + $msg = str_replace(':-))', '', $msg); + $msg = str_replace(';o)', '', $msg); + $msg = str_replace(':)', '', $msg); + $msg = str_replace(':-)', '', $msg); + $msg = str_replace(':(', '', $msg); + $msg = str_replace(':-(', '', $msg); + $msg = str_replace(':o(', '', $msg); + $msg = str_replace(':o)', '', $msg); + $msg = str_replace(';o(', '', $msg); + $msg = str_replace(';(', '', $msg); + $msg = str_replace(';-(', '', $msg); + $msg = str_replace('8)', '', $msg); + $msg = str_replace('8o)', '', $msg); + $msg = str_replace(':P', '', $msg); + $msg = str_replace(':-P', '', $msg); + $msg = str_replace(':oP', '', $msg); + $msg = str_replace(';P', '', $msg); + $msg = str_replace(';oP', '', $msg); + $msg = str_replace('?)', '', $msg); return $msg; } -- cgit v1.2.3-54-g00ecf