Skip to content
Ilia edited this page Apr 17, 2022 · 8 revisions

This API documentation is created for Webmin module developers for better interaction with the theme core.

/*
 * Get theme version
 * theme.api.version([full], [long]);
 * @return string
 */
theme.api.version();

/*
 * Refresh page if allowed
 * theme.api.page.refresh();
 * @return string
 */
theme.api.page.refresh();

/*
 * Refresh page forcefully
 * theme.api.page.refreshForce();
 * @return string
 */
theme.api.page.refreshForce();

/*
 * Get all headers from the latest call
 * theme.api.page.headers.getAll();
 * @return object
 */
theme.api.page.headers.getAll();
Clone this wiki locally