function language_attributes($xhtml = 0) { bb_log_deprecated('function', __FUNCTION__, 'bb_language_attributes'); bb_language_attributes($xhtml); }
function bb_install_header($title = '', $header = false, $logo = false) { if (empty($title)) { if (function_exists('__')) { $title = __('bbPress'); } else { $title = 'bbPress'; } } $uri = false; if (function_exists('bb_get_uri') && !BB_INSTALLING) { $uri = bb_get_uri(); $uri_stylesheet = bb_get_uri('bb-admin/install.css', null, BB_URI_CONTEXT_LINK_STYLESHEET_HREF + BB_URI_CONTEXT_BB_INSTALLER); $uri_stylesheet_rtl = bb_get_uri('bb-admin/install-rtl.css', null, BB_URI_CONTEXT_LINK_STYLESHEET_HREF + BB_URI_CONTEXT_BB_INSTALLER); $uri_logo = bb_get_uri('bb-admin/images/bbpress-logo.png', null, BB_URI_CONTEXT_IMG_SRC + BB_URI_CONTEXT_BB_INSTALLER); } if (!$uri) { $uri = preg_replace('|(/bb-admin)?/[^/]+?$|', '/', $_SERVER['PHP_SELF']); $uri_stylesheet = $uri . 'bb-admin/install.css'; $uri_stylesheet_rtl = $uri . 'bb-admin/install-rtl.css'; $uri_logo = $uri . 'bb-admin/images/bbpress-logo.png'; } header('Content-Type: text/html; charset=utf-8'); ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"<?php if (function_exists('bb_language_attributes')) { bb_language_attributes(); } ?> > <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title><?php echo $title; ?> </title> <meta name="robots" content="noindex, nofollow" /> <link rel="stylesheet" href="<?php echo $uri_stylesheet; ?> " type="text/css" /> <?php if (function_exists('bb_get_option') && 'rtl' == bb_get_option('text_direction')) { ?> <link rel="stylesheet" href="<?php echo $uri_stylesheet_rtl; ?> " type="text/css" /> <?php } ?> </head> <body> <div id="container"> <?php if ($logo) { ?> <div class="logo"> <img src="<?php echo $uri_logo; ?> " alt="bbPress" /> </div> <?php } if (!empty($header)) { ?> <h1> <?php echo $header; ?> </h1> <?php } }
<?php $_head_profile_attr = ''; if (bb_is_profile()) { global $self; if (!$self) { $_head_profile_attr = ' profile="http://www.w3.org/2006/03/hcard"'; } } ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"<?php bb_language_attributes('1.1'); ?> > <head<?php echo $_head_profile_attr; ?> > <meta http-equiv="X-UA-Compatible" content="IE=8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title><?php bb_title(); ?> </title> <link rel="stylesheet" href="<?php bb_stylesheet_uri(); ?> " type="text/css" /> <?php if ('rtl' == bb_get_option('text_direction')) {