Global: Allow localization of custom links in the menu

To do this, add the "@" symbol to the beginning of the link name
This commit is contained in:
Maxim Leshchenko 2021-12-17 17:28:21 +02:00
parent e65d6231a1
commit 18cb0fe5b5
No known key found for this signature in database
GPG key ID: BB9C44A8733FBEEE

View file

@ -187,7 +187,7 @@
n:foreach="OPENVK_ROOT_CONF['openvk']['preferences']['menu']['links'] as $menuItem"
href="{$menuItem['url']}"
target="_blank"
class="link">{$menuItem["name"]}</a>
class="link">{strpos($menuItem["name"], "@") === 0 ? tr(substr($menuItem["name"], 1)) : $menuItem["name"]}</a>
<div id="_groupListPinnedGroups">
<div n:if="$thisUser->getPinnedClubCount() > 0" class="menu_divider"></div>
<a