58.3. Theme Functions
In Webmin versions 0.92 and above, a theme can override some of the common HTML-generating functions by adding a line like functions=theme.pl to the config file and creating a theme.pl script in the theme's directory that contains one or more of the following functions:
theme_header This function will be called instead of the standard header function, with all the same parameters. It must handle all those parameters properly and output whatever HTML you want to use for the page titles and so on.
theme_footer Called instead of the standard footer function, with the same parameters. If your theme_header function opens an HTML table for layout purposes, this function must close it so that the HTML is properly complete.
theme_error ...
Get Managing Linux® Systems with Webmin™ System Administration and Module Development now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.