| | 359 | |
| | 360 | /** |
| | 361 | * Aggregates and echos the additional header code by combining Plugins and Stack calls. |
| | 362 | */ |
| | 363 | public function header() { |
| | 364 | Plugins::act( 'template_header' ); |
| | 365 | if ( is_callable( array( THEME_CLASS, 'header' ) ) ) { |
| | 366 | call_user_func( array( THEME_CLASS, 'header' ) ); |
| | 367 | } |
| | 368 | $header= Stack::get( 'template_stylesheet', ' <link rel="stylesheet" type="text/css" href="%s" media="%s">'."\r\n" ); |
| | 369 | $header.= Stack::get( 'template_header_javascript', ' <script src="%s" type="text/javascript"></script>'."\r\n" ); |
| | 370 | if ( $header != '' ) { |
| | 371 | echo $header; |
| | 372 | } |
| | 373 | } |
| | 374 | |
| | 375 | /** |
| | 376 | * Aggregates and echos the additional footer code by combining Plugins and Stack calls. |
| | 377 | */ |
| | 378 | public function footer() { |
| | 379 | Plugins::act( 'template_footer' ); |
| | 380 | if ( is_callable( array( THEME_CLASS, 'footer' ) ) ) { |
| | 381 | call_user_func( array( THEME_CLASS, 'footer' ) ); |
| | 382 | } |
| | 383 | $footer= Stack::get( 'template_footer_javascript', ' <script src="%s" type="text/javascript"></script>'."\r\n" ); |
| | 384 | if ( $footer != '' ) { |
| | 385 | echo $footer; |
| | 386 | } |
| | 387 | } |
| | 388 | |