/bp-forums/bbpress/bb-admin/admin-header.php

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> 
  2. <html xmlns="http://www.w3.org/1999/xhtml"<?php bb_language_attributes( '1.1' ); ?>> 
  3. <head> 
  4. <meta http-equiv="X-UA-Compatible" content="IE=8" /> 
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> 
  6. <title><?php bb_admin_title() ?></title> 
  7. <link rel="stylesheet" href="<?php bb_uri('bb-admin/style.css', null, BB_URI_CONTEXT_LINK_STYLESHEET_HREF + BB_URI_CONTEXT_BB_ADMIN); ?>" type="text/css" /> 
  8. <?php if ( 'rtl' == bb_get_option( 'text_direction' ) ) : ?> 
  9. <link rel="stylesheet" href="<?php bb_uri('bb-admin/style-rtl.css', null, BB_URI_CONTEXT_LINK_STYLESHEET_HREF + BB_URI_CONTEXT_BB_ADMIN); ?>" type="text/css" /> 
  10. <?php endif; do_action('bb_admin_print_scripts'); ?> 
  11. <!--[if IE 6]> 
  12. <style type="text/css"> 
  13. ul#bbAdminMenu{ margin: 15px 5px 15px -85px; } body.bb-menu-folded div#bbBody{ margin-left: 110px; } 
  14. </style> 
  15. <![endif]--> 
  16. <link rel="shortcut icon" type="image/ico" href="<?php bb_uri('bb-admin/images/favicon.ico', null, BB_URI_CONTEXT_BB_ADMIN); ?>" /> 
  17. <script type="text/javascript"> 
  18. //<![CDATA[ 
  19. addLoadEvent = function(func) {if(typeof jQuery!="undefined")jQuery(document).ready(func);else if(typeof wpOnload!='function') {wpOnload=func;}else{var oldonload=wpOnload;wpOnload=function() {oldonload();func();}}}; 
  20. var userSettings = {'url':'<?php echo $bb->cookie_path; ?>', 'uid':'<?php if ( ! isset($bb_current_user) ) $bb_current_user = bb_get_current_user(); echo $bb_current_user->ID; ?>', 'time':'<?php echo time(); ?>'}; 
  21. //]]> 
  22. </script> 
  23. <?php do_action( 'bb_admin_head' ); ?> 
  24. </head> 
  25.  
  26. <?php 
  27. global $bb_admin_body_class; 
  28. if ( 'f' == bb_get_user_setting( 'fm' ) ) { 
  29. $bb_admin_body_class .= ' bb-menu-folded'; 
  30. ?> 
  31.  
  32. <body class="bb-admin no-js <?php echo trim( $bb_admin_body_class ); ?>"> 
  33. <script type="text/javascript"> 
  34. //<![CDATA[ 
  35. (function() { 
  36. var c = document.body.className; 
  37. c = c.replace(/no-js/, 'js'); 
  38. document.body.className = c; 
  39. })(); 
  40. //]]> 
  41. </script> 
  42. <div id="bbWrap"> 
  43. <div id="bbContent"> 
  44. <div id="bbHead"> 
  45. <h1><a href="<?php bb_uri(); ?>"><span><?php bb_option('name'); ?></span> <em><?php _e('Visit Site'); ?></em></a></h1> 
  46. <div id="bbUserInfo"> 
  47. <p> 
  48. <?php printf( __('Howdy, %1$s'), bb_get_profile_link( array( 'text' => bb_get_current_user_info( 'name' ) ) ) );?> 
  49. | <?php bb_logout_link( array( 'redirect' => bb_get_uri( null, null, BB_URI_CONTEXT_HEADER ) ) ); ?> 
  50. </p> 
  51. </div> 
  52. </div> 
  53.  
  54. <div id="bbBody"> 
  55.  
  56. <?php bb_admin_menu(); ?> 
.