Index: includes/theme.inc =================================================================== --- includes/theme.inc (revision 5) +++ includes/theme.inc (working copy) @@ -710,19 +710,24 @@ } /** - * Return a themed box. + * Return a string wrapped in HTML, often referred to as a box. * * @param $title - * The subject of the box. + * The subject of the wrapper, optional. * @param $content - * The content of the box. - * @param $region - * The region in which the box is displayed. + * The content of wrapper, mandatory. + * @param $id + * The ID of the wrapper. This must be defined in the following way: + * modulename-uniquenumber or filename-uniquenumber * @return - * A string containing the box output. + * A string containing the wrapped output. */ -function theme_box($title, $content, $region = 'main') { - $output = '

'. $title .'

'. $content .'
'; +function theme_wrapper($title = NULL, $content, $id, $class = NULL) { + $class ? $class = " $class": NULL; //add a space + $output = "
\n"; + $title ? $output .= "

$title

\n" : NULL; + $output .= $content; + $output .= "\n
\n"; return $output; }