0
0
mirror of https://github.com/postfixadmin/postfixadmin.git synced 2024-09-20 03:36:20 +02:00
postfixadmin/templates/index.tpl
Christian Boltz 3dcd56c77a Replaced motd*.txt with $CONF[motd_*] options
config.inc.php:
- new config options $CONF['motd_user'], $CONF['motd_admin'] and
  $CONF['motd_superadmin']

templates/index.tpl:
- added $CONF[motd_*] handling

css/default.css:
- new style #motd

templates/users_menu.tpl, templates/menu.tpl:
- removed inclusion of motd-users.txt / $motd_file

smarty.inc.php:
- removed handling for motd*.txt files

templates/motd-users.txt, templates/motd.txt:
- deleted


git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1142 a1433add-5e2c-0410-b055-b7f2511e0802
2011-07-29 20:34:36 +00:00

30 lines
827 B
Smarty

<!-- {$smarty.template} -->
{strip}
{include file="header.tpl"}
{if $smarty_template != 'login'}
{config_load file="menu.conf" section=$smarty_template}
{if $authentication_has_role.user}
{include file='users_menu.tpl'}
{else}
{include file='menu.tpl'}
{/if}
{/if}
<br clear="all" />
{if $authentication_has_role.user && $CONF.motd_user}
<div id="motd">{$CONF.motd_user}</div>
{elseif $authentication_has_role.global_admin && $CONF.motd_superadmin}
<div id="motd">{$CONF.motd_superadmin}</div>
{elseif $authentication_has_role.admin && $CONF.motd_admin}
<div id="motd">{$CONF.motd_admin}</div>
{/if}
{include file='flash_error.tpl'}
{if $smarty_template}
{include file="$smarty_template.tpl"}
{else}
<h3>Template not found</h3>({php}print $_SERVER ['PHP_SELF'];{/php})
{/if}
{include file='footer.tpl'}
{/strip}