summaryrefslogtreecommitdiff
path: root/includes/theme.inc
diff options
context:
space:
mode:
authorDries Buytaert <dries@buytaert.net>2004-01-26 19:05:21 +0000
committerDries Buytaert <dries@buytaert.net>2004-01-26 19:05:21 +0000
commit667022830ee203a5779ca44d82e2a9d93a1b21f8 (patch)
tree25e32f751a772e033f68b6be0c563169339c60fb /includes/theme.inc
parenta2055ae9d9b28b011d4c8253eee7eaa4240b2f2a (diff)
downloadbrdo-667022830ee203a5779ca44d82e2a9d93a1b21f8.tar.gz
brdo-667022830ee203a5779ca44d82e2a9d93a1b21f8.tar.bz2
- Patch 5140 by Moshe: removed the theme("header") and theme("footer") functions.
Diffstat (limited to 'includes/theme.inc')
-rw-r--r--includes/theme.inc68
1 files changed, 21 insertions, 47 deletions
diff --git a/includes/theme.inc b/includes/theme.inc
index 0bd2416bf..25c504883 100644
--- a/includes/theme.inc
+++ b/includes/theme.inc
@@ -117,22 +117,26 @@ function path_to_theme() {
return dirname($themes[$theme]->filename);
}
+
/**
- * @defgroup themeable Themeable functions
- * @{
+ * Returns an entire Drupal page displaying the supplied content.
*
- * Themeable functions - functions that can be styled differently in themes.
+ * @param $content a string containing the content to display
+ * @param $title (optional) page title (\<head>\<title>)
+ * @param $breadcrumb (optional) page breadcrumb
*
- * @see theme
- * @see theme.inc
- */
-
-/**
- * Returns the theme header.
+ * @see drupal_breadcrumb
*
- * @return a string containing the @a header output.
+ * @return a string containing the @a page output.
*/
-function theme_header() {
+function theme_page($content, $title = NULL, $breadcrumb = NULL) {
+ if (isset($title)) {
+ drupal_set_title($title);
+ }
+ if (isset($breadcrumb)) {
+ drupal_set_breadcrumb($breadcrumb);
+ }
+
$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>";
@@ -156,31 +160,13 @@ function theme_header() {
$output .= "<small>$help</small><hr />";
}
- return $output;
-}
-
-/**
- * Returns an entire Drupal page displaying the supplied content.
- *
- * @param $content a string containing the content to display
- * @param $title (optional) page title (\<head>\<title>)
- * @param $breadcrumb (optional) page breadcrumb
- *
- * @see drupal_breadcrumb
- *
- * @return a string containing the @a page output.
- */
-function theme_page($content, $title = NULL, $breadcrumb = NULL) {
- if (isset($title)) {
- drupal_set_title($title);
- }
- if (isset($breadcrumb)) {
- drupal_set_breadcrumb($breadcrumb);
- }
-
- $output = theme("header");
+ $output .= "\n<!-- begin content -->\n";
$output .= $content;
- $output .= theme("footer");
+ $output .= "\n<!-- end content -->\n";
+
+ $output .= "</td></tr></table>";
+ $output .= theme_closure();
+ $output .= "</body></html>";
return $output;
}
@@ -395,18 +381,6 @@ function theme_block($block) {
}
/**
- * Returns themed page footer.
- *
- * @return a string containing the @a footer output.
- */
-function theme_footer() {
- $output = "</td></tr></table>";
- $output .= theme_closure();
- $output .= "</body></html>";
- return $output;
-}
-
-/**
* Returns themed marker, useful for marking new comments or required form
* elements.
*