[cvs] [Wiki] changed: ThemesHowTo

Jan Schneider jan at horde.org
Wed Sep 1 02:24:37 PDT 2004


jan  Wed,  1 Sep 2004 02:24:37 -0700

Modified page: http://wiki.horde.org/display.php?page=ThemesHowTo
New Revision:  1.3

@@ -2,21 +2,21 @@
 
 Creating a new theme for Horde is as simple as creating a new PHP file in {{horde/config/themes/}} **not** beginning with {{html-}}.
 This file only needs to contain a single line:
 
-<php>
+<code type="php">
 <?php
 $theme_name = _("My Theme Name");
-</php>
+</code>
 
 This is the theme name as it will appear in the theme list in the users' display options. The internally used theme name that you can use to set a default theme in {{horde/config/prefs.php}} is determined from the file name you use.
 
 Let's say you store this code in {{horde/config/themes/mytheme.php}}, then the internal name of this 
 theme would be "mytheme" while the users will see it as "My Theme Name".
 
 If you want to contribute your theme to the Horde Project or make it publically available elsewhere, you should add some comments to the file header to explain where the theme comes from:
 
-<php>
+<code type="php">
 <?php
 /**
  * This is my personal theme.
  * It is based on the colors of my bike when I was five.
@@ -24,9 +24,9 @@
  * Copyright 2004 John Doe
  */
 
 $theme_name = _("My Theme Name");
-</php>
+</code>
 
 ++ Defining theme colors and styles
 
 This alone doesn't make a theme of course, now you want to create you own set of colors and styles for your theme. These are defined in a PHP array in the file {{html-mytheme.php}}. You can see this file name is simply created by prefixing your internal style name with "html-".
@@ -38,9 +38,9 @@
 If you want to add custom icons to your theme you first need to create a folder named after your theme in the directory {{horde/graphics/themes/}}, in our example theme this would be {{horde/graphics/themes/mytheme/}}. Then you need to copy **all** existing icons from {{horde/graphics/}} **including** the subdirectories but **without** the {{themes/}} directory into your theme folder.
 
 Then extend your theme file with a line so that it looks like:
 
-<php>
+<code type="php">
 <?php
 /**
  * This is my personal theme.
  * It is based on the colors of my bike when I was five.
@@ -49,13 +49,13 @@
  */
 
 $theme_name = _("My Theme Name");
 $theme_icons = array('horde');
-</php>
+</code>
 
 Now start replacing the icons in your theme folder with your own ones.
 
 If you want to create custom icons for other applications, simply create folders in the application's {{graphics/themes/}} directory as well. Then add the application name to the {{$theme_icons}} list, for example:
 
-<php>
+<code type="php">
 $theme_icons = array('horde', 'imp');
-</php>
+</code>


More information about the cvs mailing list