There was an error while loading. Please reload this page.
1 parent 314b50c commit a795558Copy full SHA for a795558
1 file changed
src/Drago/assets/latte/@lang-switch.latte
@@ -1,6 +1,6 @@
1
{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'">
+{define lang-switch, string $lang, string $name, ?string $class = null}
+ <a n:href="this, 'lang' => $lang" n:class="$presenter->isLinkCurrent() ? $class ? $class : 'fw-semibold'">
4
{$name}
5
</a>
6
{/define}
0 commit comments