Show
Ignore:
Timestamp:
09/17/07 19:00:18 (15 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/header.php

    r814 r851  
    1313 <link rel="stylesheet" type="text/css" media="screen" href="<?php Site::out_url( 'theme' ); ?>/style.css"> 
    1414 
    15 <?php if ( $user ) { // Still needs to check for edit permissions ?> 
    16  <script type="text/javascript" src="<?php Site::out_url( 'habari' ); ?>/scripts/jquery.js"></script> 
    17 <?php } ?> 
     15<?php Theme::header() ?> 
    1816</head> 
    1917