59.4. The theme_footer Function

This function is much simpler and not very different from the standard footer function from web-lib.pl. It just prints HTML to close the table started by theme_header (unless $theme_no_table is set), followed by links to previous pages as specified in the parameters. Finally, the required </body> and </html> tags are produced to properly end the page.

When overriding the footer function in your own theme, make sure that it properly processes all of the parameters, as multiple pairs of return links and titles can be provided. If your theme's main menu categorizes modules, any link to / should be replaced with a link like /?cat=$module_info{'category'} so that the current module's category is displayed when such ...

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.