Class MyTheme

Description

A custom theme for K2 output

  • version: $Id$
  • copyright: 2008

Located in /system/themes/k2/theme.php (line 15)

Pluggable
   |
   --Theme
      |
      --MyTheme
Method Summary
void k2_comment_class ( $comment,  $post)
Variables
Methods
action_init_theme (line 20)

Execute on theme init to apply these filters to output

  • access: public
void action_init_theme ()
add_template_vars (line 51)

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.

  • access: public
void add_template_vars ()

Redefinition of:
Theme::add_template_vars()
Assign the default variables that would be used in every template
k2_comment_class (line 72)
  • access: public
void k2_comment_class ( $comment,  $post)
  • $comment
  • $post

Inherited Methods

Inherited From Theme

Theme::__construct()
Theme::act_display()
Theme::act_display_404()
Theme::act_display_date()
Theme::act_display_entries()
Theme::act_display_home()
Theme::act_display_post()
Theme::act_display_tag()
Theme::act_search()
Theme::add_template_vars()
Theme::assign()
Theme::display()
Theme::display_fallback()
Theme::end_buffer()
Theme::fetch()
Theme::fetch_unassigned()
Theme::info()
Theme::start_buffer()
Theme::template_exists()
Theme::theme_comment_form_action()
Theme::theme_content()
Theme::theme_feed_alternate()
Theme::theme_footer()
Theme::theme_header()
Theme::theme_next_page_link()
Theme::theme_page_selector()
Theme::theme_prev_page_link()
Theme::__call()
Theme::__get()
Theme::__isset()
Theme::__set()
Theme::__unset()

Inherited From Pluggable

Pluggable::__construct()
Pluggable::get_db_schema()
Pluggable::get_file()
Pluggable::get_url()
Pluggable::load()
Pluggable::load_text_domain()
Pluggable::plugin_id()

Documentation generated on Thu, 30 Oct 2008 20:31:29 +0100 by phpDocumentor 1.3.2