add links list style
This commit is contained in:
parent
100fd301ee
commit
0d60b9289f
4 changed files with 45 additions and 6 deletions
6
site/snippets/a.php
Normal file
6
site/snippets/a.php
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
<?php
|
||||
$target = str_contains($url, $site->url()) ? '' : ' target="_blank"';
|
||||
$title = isset($title) ? $title : '';
|
||||
$text = isset($text) ? $text : '';
|
||||
?>
|
||||
<a href="<?= $url ?>"<?= $target ?>><?= $text ?></a>
|
||||
Loading…
Add table
Add a link
Reference in a new issue