Overview
Tiki uses the Smarty template engine, so pages generally have a PHP file (.php) and a Smarty template (.tpl) associated with them. These produce the XHTML for the page, which is then given visual styles with CSS. The CSS is provided by a combination of some feature-specific stylesheets, default layout and design stylesheets, and theme stylesheets.
[+] Concept (Tiki14)
There are several features that determine which theme is displayed for a given screen. See also http://doc.tiki.org/Themes
Site theme
Site theme setting can be made at the Look and Feel settings panel. Themes can have options.
Overrides:
- none
Overridden by:
- user theme
- theme control
- perspective
- group theme
User theme
If preference change_theme is enabled than users are allowed to change theme. It is possible to limit the themes users can pick from using the available_themes preference.
Overrides:
- site theme
- perspective
Overridden by:
- theme control
- group theme
- admin theme
Limited by:
- available themes
Admin themes
Themes for the settings control panels. (tiki-admin.php?page=XXX) . Can have options too.
Overrides:
- site theme
- theme control
Overridden by:
- user theme
- perspective setting
Available themes
Limit the list of the themes users can pick from when changing theme is allowed. All theme options of the allowed themes are available for selection.
Overrides:
- none
Overridden by:
- none
Theme Control feature
Allows to have a specific theme for objects, categories and sections, see Documentation
Overrides:
- user theme
- site theme
Overridden by:
- admin theme
Perspective feature
Perspectives are to override a preference, see Documentation
Overrides:
- site theme
- admin theme
Overridden by:
- user theme
Group theme feature
Define a theme for a group (tiki-admingroups.php)
Overrides:
- ?
Overridden by:
- ?
How does Tiki determine which theme should be displayed?
If Theme Control feature is enabled:
- If a theme is assigned to the individual object that theme is used
- If not then if a theme is assigned to the object's category that theme is used
- If not then a theme for the section is used
- If none of the above was selected the user theme is used
- Finally if the user didn't select a theme the default theme is used
[+] Theme related CSS files
Customizaton of Tiki themes and options
If you want to slightly modify (change some colors, backgrounds, etc) a theme or a theme option shipped with Tiki than it is better for you, if you don't edit the theme files directly, but create a custom.css file in the same directory of the theme or theme option and store your customizations there. Your customizations will override the rules of the theme like this:
- For a main theme Tiki gets first the theme's main css file (eg: from themes/mytheme/css/tiki.css), than a custom.css file containing local customizations if found in the theme's css folder (eg: /themes/mytheme/css/custom.css)
- If a theme option is enabled, than Tiki gets first the theme's main css file (eg: from "themes/jqui/css/tiki.css") than get the option's css file ("themes/jqui/options/myoption/css/tiki.css"), than finally the custom.css file containing local customizations if found in the option's folder (eg: "themes/jqui/options/myoption/css/custom.css")
[+] Developer info