Additional comments re user-provided stylesheets
authorstevetruckstuff <stevetruckstuff@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 2 Oct 2006 16:26:37 +0000 (16:26 +0000)
committerstevetruckstuff <stevetruckstuff@7612ce4b-ef26-0410-bec9-ea0150e637f0>
Mon, 2 Oct 2006 16:26:37 +0000 (16:26 +0000)
git-svn-id: https://svn.code.sf.net/p/squirrelmail/code/trunk/squirrelmail@11808 7612ce4b-ef26-0410-bec9-ea0150e637f0

functions/page_header.php

index a08c5e5fff0660fbd864d59878473bd21b5b3bcd..700d2210ce5ad6063bd502d67f84f9714d20714f 100644 (file)
@@ -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';
     }