From 75a9aabc707d42ba6cd1a24ff8a478a6bfce6077 Mon Sep 17 00:00:00 2001 From: Christian Boltz Date: Tue, 19 Jul 2011 20:24:41 +0000 Subject: [PATCH] config.inc.php: - new config option $CONF['theme_custom_css']. This allows to add another CSS file that is loaded after $CONF['theme_css']. Useful if someone wants to do some small changes, but doesn't want to edit default.css templates/header.tpl: - include $CONF[theme_custom_css] if set Changes compared to Dale's patch: - $CONF['theme_custom_css'] is empty by default - only include $CONF[theme_custom_css] if not empty This commit is part of the huge cleanup patch by Dale Blount (lnxus@SF), https://sourceforge.net/tracker/?func=detail&atid=937966&aid=3370510&group_id=191583 git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@1092 a1433add-5e2c-0410-b055-b7f2511e0802 --- config.inc.php | 3 +++ templates/header.tpl | 3 +++ 2 files changed, 6 insertions(+) diff --git a/config.inc.php b/config.inc.php index 2e4af6e6..1518b423 100644 --- a/config.inc.php +++ b/config.inc.php @@ -417,6 +417,9 @@ $CONF['new_quota_table'] = 'NO'; // Specify your own logo and CSS file $CONF['theme_logo'] = 'images/logo-default.png'; $CONF['theme_css'] = 'css/default.css'; +// If you want to customize some styles without editing the $CONF['theme_css'] file, +// you can add a custom CSS file. It will be included after $CONF['theme_css']. +$CONF['theme_custom_css'] = ''; // XMLRPC Interface. // This should be only of use if you wish to use e.g the diff --git a/templates/header.tpl b/templates/header.tpl index c973d0a4..a2422037 100644 --- a/templates/header.tpl +++ b/templates/header.tpl @@ -13,6 +13,9 @@ +{if $CONF.theme_custom_css} + +{/if} Postfix Admin - {$smarty.server.HTTP_HOST}