Public Member Functions

Mzingi Class Reference

Inheritance diagram for Mzingi:
Collaboration diagram for Mzingi:

List of all members.

Public Member Functions

 action_init_theme ()
 add_template_vars ()
 act_display_home ($user_filters=array())
 action_form_comment ($form)

Detailed Description

Todo:
This stuff needs to move into the custom theme class:

A custom theme for mzingi output

Definition at line 17 of file theme.php.


Member Function Documentation

Mzingi::act_display_home ( user_filters = array()  ) 

Helper function: Displays the home page

Parameters:
array $user_filters Additional arguments used to get the page content

Reimplemented from Theme.

Definition at line 77 of file theme.php.

Mzingi::action_form_comment ( form  ) 

Customize comment form layout with fieldsets.

Definition at line 86 of file theme.php.

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.

Definition at line 53 of file theme.php.


The documentation for this class was generated from the following file: