Public Member Functions

K2 Class Reference

Inheritance diagram for K2:
Collaboration diagram for K2:

List of all members.

Public Member Functions

 action_theme_activated ()
 action_init_theme ()
 add_template_vars ()
 k2_comment_class ($comment, $post)
 comments_link ($post)
 action_form_comment ($form)
 filter_block_list ($block_list)
 action_block_content_k2_menu ($block, $theme)

Detailed Description

A custom theme for K2 output

Definition at line 13 of file theme.php.


Member Function Documentation

K2::action_block_content_k2_menu ( block,
theme 
)

Produce a menu for the K2 menu block from all of the available pages

Definition at line 147 of file theme.php.

K2::action_form_comment ( form  ) 

Customize comment form layout. Needs thorough commenting.

Definition at line 124 of file theme.php.

K2::action_init_theme (  ) 

Execute on theme init to apply these filters to output

Definition at line 35 of file theme.php.

K2::action_theme_activated (  ) 

Add the K2 menu block to the nav area upon theme activation if there's nothing already there

Definition at line 18 of file theme.php.

K2::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 64 of file theme.php.

K2::comments_link ( post  ) 

If comments are enabled, or there are comments on the post already, output a link to the comments.

Definition at line 112 of file theme.php.

K2::filter_block_list ( block_list  ) 

Add a k2_menu block to the list of available blocks

Definition at line 138 of file theme.php.


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