This function retrieves a branding file's path. The function searches the /usr/local/cpanel/base/appname/theme/branding/
directory, where:
appname
represents frontend
if you use a cPanel session, or webmail
if you use a Webmail session.theme
represents paper_lantern
, or the name of another cPanel theme on the server.Note: This function only works in the Paper Lantern theme. We deprecated Paper Lantern in cPanel & WHM version 100 and will remove the function in version 110. This function will not work in the Jupiter theme.
uapi --output=jsonpretty \ --user=username \ Branding \ file
{- "apiversion": 3,
- "func": "file",
- "module": "Branding",
- "result": {
- "data": {
- "path": "/usr/local/cpanel/base/frontend/paper_lantern/branding/local.css",
- "type": "cphtml",
- "uri": "/cPanel_magic_revision_1327526145/frontend/paper_lantern/branding/local.css"
}, - "errors": null,
- "messages": null,
- "metadata": { },
- "status": 1,
- "warnings": null
}
}