Description
This function retrieves a branding file's path.
The function searches the /usr/local/cpanel/base/$appname/$theme/branding/
directory, where:
$appname
isfrontend
if you use a cPanel session, orwebmail
if you use a Webmail session.$theme
isx3
,x3mail
, orpaper_lantern
.
Examples
Note:
Use cPanel's API Shell interface (Home >> Advanced >> API Shell) to directly test cPanel API calls.
Parameters
Parameter |
Type |
Description |
Possible values |
Example |
file |
string |
The file name. If you do not specify a value, the function returns the path to the branding directory. |
Any valid filename. |
local.css |
needfile |
Boolean |
Whether to return the /unprotected/broken.gif image () with a failure message when the requested file does not exist. This parameter defaults to 0. |
|
0 |
skipdefault |
Boolean |
Whether to ignore the default theme. This parameter defaults to 0. |
|
0 |
checkmain |
Boolean |
Whether the function should search the account's /cpanelbranding directory. This parameter defaults to 0. |
|
1 |
nomagic |
Boolean |
Whether to include the cPanel_magic_revision_########## prefix in the uri file path. This parameter defaults to 0. |
|
0 |
a
Returns
Return
|
Type
|
Description
|
Possible values
|
Example
|
---|---|---|---|---|
type |
string | The file type. |
|
cphtml |
path |
string | The path to the file. |
Note: If you use the x3 theme, the file exists in the |
|
uri |
string | The relative path to the file. | A valid path and filename, relative to the base directory. |