1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-07 23:27:17 +02:00

Move icons to CSS

This commit is contained in:
Jakub Vrana
2025-03-26 00:08:16 +01:00
parent 67fa4c2a6f
commit cd207238b7
12 changed files with 64 additions and 90 deletions

View File

@@ -534,3 +534,14 @@ function edit_form($table, $fields, $row, $update) {
echo input_token();
echo "</form>\n";
}
/** Get button with icon
* @param string
* @param string
* @param string
* @param string
* @return string
*/
function icon($icon, $name, $html, $title) {
return "<button type='submit' name='$name' title='" . h($title) . "' class='icon icon-$icon'><span>$html</span></button>";
}