Same name and namespace in other branches
- 4.7.x includes/theme.inc \theme_page()
- 5.x includes/theme.inc \theme_page()
- 6.x developer/theme.php \theme_page()
Return an entire Drupal page displaying the supplied content.
Parameters
$content: A string to display in the main content area of the page.
Return value
A string containing the entire HTML page.
Related topics
94 theme calls to theme_page()
- aggregator_admin_edit_category in modules/
aggregator.module - Menu callback; displays the category edit form, or saves changes and redirects to the overview page.
- aggregator_admin_edit_feed in modules/
aggregator.module - Menu callback; displays the feed edit form.
- aggregator_admin_overview in modules/
aggregator.module - Menu callback; displays the aggregator administration page.
- aggregator_edit in modules/
aggregator.module - aggregator_page_categories in modules/
aggregator.module - Menu callback; displays all the categories used by the aggregator.
File
- includes/
theme.inc, line 375 - The theme system, which controls the output of Drupal.
Code
function theme_page($content) {
$output = "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n";
$output .= '<html xmlns="http://www.w3.org/1999/xhtml">';
$output .= '<head>';
$output .= ' <title>' . (drupal_get_title() ? strip_tags(drupal_get_title()) : variable_get('site_name', 'drupal')) . '</title>';
$output .= drupal_get_html_head();
$output .= theme_get_styles();
$output .= ' </head>';
$output .= ' <body style="background-color: #fff; color: #000;"' . theme('onload_attribute') . '">';
$output .= '<table border="0" cellspacing="4" cellpadding="4"><tr><td style="vertical-align: top; width: 170px;">';
$output .= theme('blocks', 'all');
$output .= '</td><td style="vertical-align: top;">';
$output .= theme('breadcrumb', drupal_get_breadcrumb());
$output .= '<h1>' . drupal_get_title() . '</h1>';
if ($tabs = theme('menu_local_tasks')) {
$output .= $tabs;
}
if ($help = menu_get_active_help()) {
$output .= '<small>' . $help . '</small><hr />';
}
$output .= theme_status_messages();
$output .= "\n<!-- begin content -->\n";
$output .= $content;
$output .= "\n<!-- end content -->\n";
$output .= '</td></tr></table>';
$output .= theme_closure();
$output .= '</body></html>';
return $output;
}