summaryrefslogtreecommitdiff
path: root/includes/sys_template.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/sys_template.php')
-rw-r--r--includes/sys_template.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/includes/sys_template.php b/includes/sys_template.php
index 0f030e86..a120bb2d 100644
--- a/includes/sys_template.php
+++ b/includes/sys_template.php
@@ -233,4 +233,9 @@ function html_select_key($id, $name, $rows, $selected) {
$html .= '</select>';
return $html;
}
+
+function img_button($link, $icon, $text, $extra_text = '') {
+ $translation = empty($text)? '' : Get_Text($text);
+ return '<a href="' . htmlspecialchars($link) . '"><img src="pic/icons/' . htmlspecialchars($icon) . '.png" alt="' . $translation . '" ' . (empty($translation)? '' : 'title="' . $translation . '"') . '>' . (empty($extra_text)? '' : ' ' . $extra_text) . '</a>';
+}
?>