Skip to content

Commit a795558

Browse files
committed
Update
1 parent 314b50c commit a795558

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{varType Nette\Application\UI\Presenter $presenter}
2-
{define lang-switch, string $lang, string $name}
3-
<a n:href="this, 'lang' => $lang" n:class="$presenter->isLinkCurrent() ? 'fw-semibold'">
2+
{define lang-switch, string $lang, string $name, ?string $class = null}
3+
<a n:href="this, 'lang' => $lang" n:class="$presenter->isLinkCurrent() ? $class ? $class : 'fw-semibold'">
44
{$name}
55
</a>
66
{/define}

0 commit comments

Comments
 (0)