Description
This function retrieves a branding image's URL.
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 |
imagefile |
string |
The image name. If you do not specify a value, the needfile parameter's value determines the function's action. |
Any valid image name, without the path or the extension. |
image |
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 |
reqext |
string |
The image's file extension. |
|
.png |
skip_logo_check |
Boolean |
Whether to only return the filename. This parameter defaults to 0. |
|
0 |
nomagic |
Boolean |
Whether to include the cPanel_magic_revision_########## prefix in the uri image path. This parameter defaults to 0. |
|
0 |
Returns
Return |
Type |
Description |
Possible values |
path |
string |
The path to the image. |
Note: If you use the x3 theme, the image exists in the /usr/local/cpanel/base/frontend/x3 directory. |
uri |
string |
The relative path to the image. |
A valid path and image filename, relative to the base directory. |