SF.net SVN: postfixadmin:[1092] trunk
Brought to you by:
christian_boltz,
gingerdog
From: <chr...@us...> - 2011-07-19 20:24:47
|
Revision: 1092 http://postfixadmin.svn.sourceforge.net/postfixadmin/?rev=1092&view=rev Author: christian_boltz Date: 2011-07-19 20:24:41 +0000 (Tue, 19 Jul 2011) Log Message: ----------- 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 Modified Paths: -------------- trunk/config.inc.php trunk/templates/header.tpl Modified: trunk/config.inc.php =================================================================== --- trunk/config.inc.php 2011-07-19 20:01:57 UTC (rev 1091) +++ trunk/config.inc.php 2011-07-19 20:24:41 UTC (rev 1092) @@ -417,6 +417,9 @@ // 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 Modified: trunk/templates/header.tpl =================================================================== --- trunk/templates/header.tpl 2011-07-19 20:01:57 UTC (rev 1091) +++ trunk/templates/header.tpl 2011-07-19 20:24:41 UTC (rev 1092) @@ -13,6 +13,9 @@ <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <link rel="stylesheet" type="text/css" href="{$CONF.theme_css}" /> +{if $CONF.theme_custom_css} + <link rel="stylesheet" type="text/css" href="{$CONF.theme_custom_css}" /> +{/if} <title>Postfix Admin - {$smarty.server.HTTP_HOST}</title> </head> <body class="lang-{$smarty.session.lang}"> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |