Show
Ignore:
Timestamp:
09/17/07 19:00:18 (14 months ago)
Author:
freakerz
Message:

First pass at implementing header and footer aggregation functions.

Theme::header() and Theme::footer() are the new functions.

They call THEME_CLASS::header() and THEME_CLASS::footer, plus:

New plugin hooks: template_header, template_footer.

New Stack names: template_stylesheet, template_header_javascript and template_footer_javascript.

-

Moved the K2 header verification for jQuery to the K2 theme.php file.

Comment/Suggestions?

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/htdocs/user/themes/k2/theme.php

    r808 r851  
    6363    } 
    6464     
     65    public function header() 
     66    { 
     67        if ( $this->user instanceof User ) { 
     68            Stack::add( 'template_header_javascript', Site::get_url('scripts') . '/jquery.js', 'jquery' ); 
     69        } 
     70    } 
     71     
    6572} 
    6673