Selaa lähdekoodia

updated the config file for themable support, and added 2 themes

Luke Ehresman 25 vuotta sitten
vanhempi
commit
513f3bcb86
3 muutettua tiedostoa jossa 44 lisäystä ja 12 poistoa
  1. 6 12
      config/config.php
  2. 19 0
      config/default_theme.php
  3. 19 0
      config/tan_theme.php

+ 6 - 12
config/config.php

@@ -27,18 +27,12 @@
     $motd = "  Welcome to OM's webmail system, SquirrelMail.  We are currently in beta, and have not yet released a full version of SquirrelMail.  Please feel free to look around, and please report any bugs to <A HREF=\"mailto:nathan@usa.om.org\">Nathan</A> or <A HREF=\"mailto:luke@usa.om.org\">Luke</A>.";
 
 //  Customizable colors
-    $color[0]   = "DCDCDC"; // Light Gray
-    $color[1]   = "800000"; // Red
-    $color[2]   = "CC0000"; // Light Red
-    $color[3]   = "A0B8C8"; // Left Background
-    $color[4]   = "FFFFFF"; // Background
-    $color[5]   = "FFFFCC"; // Light Yellow
-    $color[6]   = "000000"; // Left Text
-    $color[7]   = "0000CC"; // Link
-    $color[8]   = "000000"; // Text
-    $color[9]   = "ABABAB"; // Darker light gray
-    $color[10]  = "666666"; // Darker light gray
-    $color[11]  = "770000"; // Special folder color
+//     You can define your own theme and put it in this directory.  You must
+//     call it as the example below.  You can name the theme whatever you
+//     want.  For an example of a theme, see the ones included in the config
+//     directory.
+//   Example:   require("../config/default_theme.php");
+    require("../config/default_theme.php");
 
 //  Whether or not to use $color[11] for special folders.  If not, special
 //  folders will be the same color as the other folders

+ 19 - 0
config/default_theme.php

@@ -0,0 +1,19 @@
+<?
+   /** This is the default theme that comes standard with SquirrelMail.
+       Most of the colors were taken from mail.yahoo.com's theme on their
+       site.
+    **/
+
+    $color[0]   = "DCDCDC"; // Light Gray
+    $color[1]   = "800000"; // Red
+    $color[2]   = "CC0000"; // Light Red
+    $color[3]   = "A0B8C8"; // Left Background
+    $color[4]   = "FFFFFF"; // Background
+    $color[5]   = "FFFFCC"; // Light Yellow
+    $color[6]   = "000000"; // Left Text
+    $color[7]   = "0000CC"; // Link
+    $color[8]   = "000000"; // Text
+    $color[9]   = "ABABAB"; // Darker light gray
+    $color[10]  = "666666"; // Darker light gray
+    $color[11]  = "770000"; // Special folder color
+?>

+ 19 - 0
config/tan_theme.php

@@ -0,0 +1,19 @@
+<?
+   /** TAN THEME
+       By Luke Ehresman   Jan 02, 2000
+
+       These are tan colors
+    **/
+   $color[0]   = "9F8666"; // Light Gray
+   $color[1]   = "800000"; // Red
+   $color[2]   = "CC0000"; // Light Red
+   $color[3]   = "B79F7D"; // Left Background
+   $color[4]   = "D7BB93"; // Background
+   $color[5]   = "FFFFCC"; // Light Yellow
+   $color[6]   = "000000"; // Left Text
+   $color[7]   = "774712"; // Link
+   $color[8]   = "000000"; // Text
+   $color[9]   = "8B6E50"; // Darker light gray
+   $color[10]  = "666666"; // Darker light gray
+   $color[11]  = "770000"; // Special folder color
+?>