In the smarty tpl files, the variable {if $validLogin} is used, which I understand.
My question is: Is it possible to also check if {if $validLogin} is an Administrator?
Thank you.
EDIT:
I am referring to the index.tpl file in adm_themes/simple/templates/
In the following navbar block, I want to add <a>Mylink</a>... but only if the user is an Admin.
Code: Alles auswählen
<ul class="navbar-nav ml-auto">
{if $validLogin}
<li class="nav-item">
<a class="nav-link" href="{$urlAdmidio}/adm_program/modules/profile/profile.php">{$l10n->get('SYS_MY_PROFILE')}</a>
</li>
<li class="nav-item">
<a class="nav-link" href="{$urlAdmidio}/adm_program/system/logout.php">{$l10n->get('SYS_LOGOUT')}</a>
</li>
{else}
<li class="nav-item">
<a class="nav-link" href="{$urlAdmidio}/adm_program/system/login.php">{$l10n->get('SYS_LOGIN')}</a>
</li>
{if $registrationEnabled}
<li class="nav-item">
<a class="nav-link" href="{$urlAdmidio}/adm_program/modules/registration/registration.php">{$l10n->get('SYS_REGISTRATION')}</a>
</li>
{/if}
{/if}
</ul>