Description
This function searches for a file within a theme and returns its URL.
Warning:
- UAPI (recommended) —
Branding::file
—Error rendering macro 'excerpt-include' : No link could be created for 'UAPI Functions - Branding::file'. - cPanel API 2 —
Branding::resolve_file
—Error rendering macro 'excerpt-include' : No link could be created for 'cPanel API 2 Functions - Branding::resolve_file'.
Examples
/cPanel_magic_revision_1267840609/branding/contactinfo_include.html |
Parameters
Parameter |
Type |
Description |
Possible values |
Example |
file |
string |
Required The file's name. |
Any valid filename. |
/mytheme |
isvar |
boolean |
Required This is a legacy parameter.
|
Warning: Always set this value to 0 or null. |
0 |
pkg |
string |
Required The style for which to search. |
Any valid style name. |
my_theme |
inline |
boolean |
Required Whether to print the file's contents. |
|
1 |
needfile |
boolean |
Required This is a legacy parameter.
|
Warning: Always set this value to 0 or null. |
0 |
skipdefault |
boolean |
Required This is a legacy parameter.
|
Warning: Always set this value to 0 or null. |
0 |
checkmain |
boolean |
Required Whether the function should search the account's /cpanelbrading directory. |
|
1 |
Returns
This function's return varies based on the input parameter's values.