placeholder table action buttons

This commit is contained in:
2018-07-28 18:37:51 +02:00
parent b9fed14465
commit dc5ec5db95
14 changed files with 338 additions and 202 deletions
+11 -2
View File
@@ -49,11 +49,20 @@ class AppServiceProvider extends ServiceProvider
$classes = trim($classes);
$title = trim($title);
$notooltip = false;
if (strpos($title, 'sr:') === 0) {
$notooltip = true;
$title = substr($title, 3);
}
$sr = str_replace('~', ' ', e($title));
$tit = str_replace('~', '', e(trim($title, ' \r\n\t:,')));
$tit = str_replace('~', '', e(trim($title, " \r\n\t:,")));
return '<span class="sr-only">' . $sr . '</span>' .
'<i class="' . e($classes) . '" title="' . $tit . '" aria-hidden=true></i>';
'<i class="' . e($classes) . '" '.
($notooltip ? '' : 'title="' . $tit . '"') .
' aria-hidden=true></i>';
} else {
return '<i class="' . e(trim($arg)) . '" aria-hidden=true></i>';
}