Changeset 851
- Timestamp:
- 09/17/07 19:00:18 (4 years ago)
- Location:
- trunk/htdocs
- Files:
-
- 4 edited
-
system/classes/theme.php (modified) (1 diff)
-
user/themes/k2/footer.php (modified) (1 diff)
-
user/themes/k2/header.php (modified) (1 diff)
-
user/themes/k2/theme.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/htdocs/system/classes/theme.php
r849 r851 357 357 } 358 358 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 359 389 /** 360 390 * Detects if a variable is assigned to the template engine for use in -
trunk/htdocs/user/themes/k2/footer.php
r839 r851 11 11 </p> 12 12 13 <?php Theme::footer(); ?> 14 13 15 <?php 14 16 // Uncomment this to view your DB profiling info -
trunk/htdocs/user/themes/k2/header.php
r814 r851 13 13 <link rel="stylesheet" type="text/css" media="screen" href="<?php Site::out_url( 'theme' ); ?>/style.css"> 14 14 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() ?> 18 16 </head> 19 17 -
trunk/htdocs/user/themes/k2/theme.php
r808 r851 63 63 } 64 64 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 65 72 } 66 73
Note: See TracChangeset
for help on using the changeset viewer.
