From 78228623e0d758bc2a82aa2e5767e59254e88c25 Mon Sep 17 00:00:00 2001 From: stevetruckstuff Date: Mon, 2 Oct 2006 16:26:37 +0000 Subject: [PATCH] Additional comments re user-provided stylesheets git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11808 7612ce4b-ef26-0410-bec9-ea0150e637f0 --- functions/page_header.php | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/functions/page_header.php b/functions/page_header.php index a08c5e5f..700d2210 100644 --- a/functions/page_header.php +++ b/functions/page_header.php @@ -74,6 +74,15 @@ function displayHtmlHeader( $title = 'SquirrelMail', $xtra = '', $do_hook = TRUE // $aUserStyles[] = getPref($data_dir, $username, 'sUserStyle', ''); // Steve, can you please document what u_ means? Will it work with the // new template inheritance system and auto-detection of alternate sheets? +/** + * Stylesheets beginning with a "u_" == user provided stylesheets, e.g. those + * in SM_PATH/css/. Template provided stylesheets (TEMPLATE_DIR/css/alternatives/) + * should begin with 't_'. This was the initial path I took to get it working + * since I wasn't sure what mods to the Template class would be used to handle + * template-provided alt stylesheets. + * + * TODO: Re-evaluate this naming convetion. + */ if (!empty($chosen_theme) && substr($chosen_theme, 0, 2) == 'u_') { $aUserStyles[] = substr($chosen_theme, 2) .'default.css'; } -- 2.25.1