Description
This function displays a branding image's URL.
Warning:
- UAPI (recommended) —
Branding::image
— This function retrieves a branding image's URL. - cPanel API 2 — None.
Examples
/cPanel_magic_revision_1161741169/frontend/x3/branding/image.jpg
Parameters
Parameter |
Type |
Description |
Possible values |
Example |
imagefile |
string |
Required The image filename. |
A valid image name, without the file's path or extension. |
image |
isvar |
Boolean |
Whether to return the full URL. Important: Only use this parameter when you call the function from a Perl script. This value defaults to 0. |
|
0 |
pkg |
string |
Required The name of the branding package to search. |
A valid branding package name. |
package1 |
needfile |
Boolean |
Required Whether to return the cPanel_magic_revision URL. |
|
1 |
nomagic |
Boolean |
Required Whether to return the image file's absolute path. |
|
0 |
needboth |
Boolean |
Whether to return both the file and the URL. Important: Only use this parameter when you call the function from a Perl script. This value defaults to 0.
|
|
0 |
reqext |
Boolean |
Required Whether to return the image's filename extension. |
|
1 |
skip_logo_check |
Boolean |
Required Whether to return the file. |
|
0 |
Returns
This function returns a URL to the image file, a full file path, or an image file.