Add page publication history and reusable blocks
This commit is contained in:
@@ -9,9 +9,10 @@ $label ??= match ($icon) {
|
||||
default => '打开链接',
|
||||
};
|
||||
$showLabel ??= false;
|
||||
$hint = $e($label . '(在新标签页打开)');
|
||||
$newTab ??= true;
|
||||
$hint = $e($label . ($newTab ? '(在新标签页打开)' : ''));
|
||||
?>
|
||||
<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 ?>">
|
||||
href="<?= $e($href) ?>"<?= $newTab ? ' 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