1<!-- {$smarty.template} -->
2<footer class="footer">
3    <div class="container text-center">
4        {if !isset($smarty.session.sessid.username)}
5            {* see: https://github.com/postfixadmin/postfixadmin/issues/517 - only expose version number if logged in *}
6            <a target="_blank" rel="noopener" href="https://github.com/postfixadmin/postfixadmin/">PostfixAdmin</a>
7        {else}
8            <a target="_blank" rel="noopener" href="https://github.com/postfixadmin/postfixadmin/">Postfix
9                Admin {$version}</a>
10            <span id="update-check">&nbsp;|&nbsp;
11                <a target="_blank" rel="noopener"
12                   href="http://postfixadmin.sf.net/update-check.php?version={$version|escape:"url"}">
13                    {$PALANG.check_update}
14                </a>
15            </span>
16            {if isset($smarty.session.sessid)}
17                {if $smarty.session.sessid.username}
18                    &nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;
19                    {$PALANG.pFooter_logged_as|replace:"%s":$smarty.session.sessid.username}
20                {/if}
21            {/if}
22        {/if}
23        {if $CONF.show_footer_text == 'YES' && $CONF.footer_link}
24            &nbsp;&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;
25            <a href="{$CONF.footer_link}" rel="noopener">{$CONF.footer_text}</a>
26        {/if}
27    </div>
28</footer>
29</body>
30</html>
31