59.3. The theme_header Function

The theme_header function in theme.pl in the mscstyle3 directory effectively replaces the standard header function that almost all Webmin CGI programs call. Unlike the standard header, this one produces HTML for a list of module category icons at the top of most pages, allowing the user to easily switch to a different category. It also outputs HTML for a link to www.webmin.com, logout and feedback buttons, and the standard links like Module Index and Module Config. Finally, HTML is produced that puts the rest of the page inside the white table box that you can see on almost every page.

The table of categories is generated by calling get_available_module_infos, checking to see which categories actually exist, reading ...

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.