placeholder table action buttons
This commit is contained in:
@@ -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>';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user