...
- CSV a file parameters.csv with fields
- "Name" - a parameter name, for example "BackgroundColor",
- "Default" - value of a variable by default, that follows to generation of a standard theme
- "Value" - the value entered at last change of a theme
- to Each file which should be changed at theme change, there should correspond a file in the "parameters" folder.
- For example if it is necessary to change a file style.css there should be a file parameters/inc/style.css in which color constants and names of fonts are replaced by a code designating what variable it is necessary to substitute.
- If a theme contains color images which should correspond to the chosen color parametres, them it is possible automatically generate.
For example, if there will be a file parameters/inc/blue_line.gif it is possible at automatic change of a theme on the basis of this file, preset values of color parameters and default values of color parameters in a theme generate a ile inc/blue_line.gif where color of each pixel will be calculated under the formula. It probably to make with GD library (functions imagecolorset, imagecolorat).
...