Description
This function lists sprite information and locations. Sprites store the cPanel interface's icons as a single image to conserve bandwidth.
Warning:
We strongly recommend that you use the following UAPI function instead of this function:
-
Branding::spritelist
— This function retrieves a sprite URL.
Note:
cPanel API 2's Branding
module only modifies data for the x3 theme.
Examples
Note:
Use cPanel's API Shell interface (Home >> Advanced >> API Shell) to directly test cPanel API calls.
Parameters
Input |
Type |
Description |
Possible values |
Example |
image |
string |
Set this parameter toheading to force output. |
heading |
heading |
img |
string |
Required The image's branding object's name. |
The name of a branding object, from thedynamicui.conf file. |
getstart |
imgtype |
string |
Required The image type. |
If you use this parameter, you mustsupply a value of icon. The x3 theme does not support group images. |
icon |
method |
string |
Required The method to use to generate sprites. |
|
only_filetype_gif |
skipgroups |
boolean |
Whether to return information for images that begin with group_. This value defaults to 0. |
The x3 theme does not support group images. |
0 |
subtype |
string |
Required The image subtype. |
|
img |
Returns
Return |
Type |
Description |
Possible values |
Example |
images |
string |
The list of images. |
One or more image names. |
|
spriteurl |
string |
The sprite's path. |
The sprite's path, relative to the user's home directory. |
/cPanel_magic_revision/ |
result |
boolean |
Whether the function succeeded. |
|
1 |