From 1f04b83be337cc91a3fabcf4e574e2306f3d2eaa Mon Sep 17 00:00:00 2001 From: Freya Murphy Date: Sat, 30 Mar 2024 12:14:42 -0400 Subject: refactor --- web/helper/lang.php | 77 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 77 insertions(+) create mode 100644 web/helper/lang.php (limited to 'web/helper/lang.php') diff --git a/web/helper/lang.php b/web/helper/lang.php new file mode 100644 index 0000000..96944da --- /dev/null +++ b/web/helper/lang.php @@ -0,0 +1,77 @@ + $attr) { + echo $key . '="' . $attr . '" '; + } + echo '> '; + if ($icon) { + echo ''; + if ($content) { + echo $content; + } + echo ''; + } + if ($text) { + echo '' . $text . ''; + } + if ($click) { + echo ''; + } else { + echo ''; + } +} -- cgit v1.2.3-freya