function theme_shoutbox_page in Shoutbox 6.2
Same name and namespace in other branches
- 5 shoutbox.module \theme_shoutbox_page()
- 6 shoutbox.module \theme_shoutbox_page()
- 7.2 shoutbox.theme.inc \theme_shoutbox_page()
- 7 shoutbox.theme.inc \theme_shoutbox_page()
Theme function for displaying the shoutbox page.
Parameters
$output: The shout output data. See shoutbox_display_posts()
Return value
String containing HTML formatted page.
1 theme call to theme_shoutbox_page()
- shoutbox_view in ./
shoutbox.module - View the shoutbox
File
- ./
shoutbox.theme.inc, line 127 - Theme callbacks for the shoutbox module.
Code
function theme_shoutbox_page($output) {
$shouts = $output['rows'];
if (!empty($shouts)) {
$shouts = theme('table', NULL, $shouts);
}
else {
$shouts = t('There are currently no shouts');
}
return "<div id=\"shoutbox-body\">\n" . $shouts . "</div>\n";
}