Inheritance diagram for Mzingi:
Collaboration diagram for Mzingi:Public Member Functions | |
| action_init_theme () | |
| add_template_vars () | |
| act_display_home ($user_filters=array()) | |
| action_form_comment ($form) | |
A custom theme for mzingi output
Definition at line 17 of file theme.php.
| Mzingi::act_display_home | ( | $ | user_filters = array() |
) |
| Mzingi::action_form_comment | ( | $ | form | ) |
| Mzingi::add_template_vars | ( | ) |
Add additional template variables to the template output.
You can assign additional output values in the template here, instead of having the PHP execute directly in the template. The advantage is that you would easily be able to switch between template types (RawPHP/Smarty) without having to port code from one to the other.
You could use this area to provide "recent comments" data to the template, for instance.
Note that the variables added here should possibly *always* be added, especially 'user'.
Also, this function gets executed *after* regular data is assigned to the template. So the values here, unless checked, will overwrite any existing values.
Reimplemented from Theme.
1.7.1