[cvs] [Wiki] changed: Doc/Dev/Themes

Jan Schneider jan at horde.org
Thu Feb 28 09:33:14 UTC 2008


jan  Thu, 28 Feb 2008 04:33:14 -0500

Modified page: http://wiki.horde.org/Doc/Dev/Themes
New Revision:  1.16
Change log:  Update for changed theme icons specifications

@@ -50,29 +50,11 @@
 ++ Adding icon sets

 If you want to add custom icons to your theme you first need to create a
{{graphics/}} folder in your theme's directory, in our example theme this
would be {{horde/themes/mytheme/graphics/}}. Then you need to copy **all**
the existing icons from the default theme directory
{{horde/themes/horde/graphics/}}, **including** any subdirectories, into
your theme folder.

-Now you need to extend your theme file with a line so that it looks like:
-
-<code type="php">
-/**
- * This is my personal theme.
- * It is based on the colors of my bike when I was five.
- *
- * Copyright 2004 John Doe <john at example.com>
- */
-
-$theme_name = _("My Theme Name");
-$theme_icons = array('horde');
-</code>
+Now you need to create a file called {{themed_graphics}} in any of your new
theme folders that are going to contain theme icons. If you are going to
provide theme icons for Horde and IMP, you would create the files
{{horde/themes/mytheme/themed_graphics}} and
{{horde/imp/themes/mytheme/themed_graphics}}. The {{themed_graphics}} files
can be empty.

 Now start replacing the icons in your theme folder with your own ones. You
may want to periodically run the script {{horde/scripts/themes_check.php}}
which will highlight any new icons that may have been added to the base
theme that are missing in the other themes.
-
-The {{$theme_icons}} variable is an array which will indicate to Horde that
there are replacement icons available for the listed modules. So if you want
to create custom icons for other applications, simply create similar folders
in the application's {{themes/}} directory as well, for example
{{imp/themes/mytheme/graphics/}}. Then add the application name to the
{{$theme_icons}} list, for example:
-
-<code type="php">
-$theme_icons = array('horde', 'imp');
-</code>


 ++ Interesting Links


More information about the cvs mailing list