forked from laysense/laysite
Expand admin system information and license notices
This commit is contained in:
@@ -6,7 +6,12 @@ $label ??= match ($icon) {
|
||||
'external' => '查看公开页面',
|
||||
'preview' => '打开预览',
|
||||
'globe' => '访问网站',
|
||||
default => '打开链接',
|
||||
};
|
||||
$showLabel ??= false;
|
||||
$hint = $e($label . '(在新标签页打开)');
|
||||
?>
|
||||
<a class="button button-outline admin-view-link admin-view-link-<?= $e($icon) ?>" href="<?= $e($href) ?>" target="_blank" rel="noopener" aria-label="<?= $hint ?>" title="<?= $hint ?>"><?= View::fragment('studio-icon', compact('icon')) ?></a>
|
||||
<a class="button button-outline admin-view-link admin-view-link-<?= $e($icon) ?><?= $showLabel ? ' admin-view-link-labelled' : '' ?>"
|
||||
href="<?= $e($href) ?>" target="_blank" rel="noopener noreferrer" aria-label="<?= $hint ?>" title="<?= $hint ?>">
|
||||
<?= View::fragment('studio-icon', compact('icon')) ?><?php if ($showLabel): ?><span><?= $e($label) ?></span><?php endif ?>
|
||||
</a>
|
||||
|
||||
Reference in New Issue
Block a user