Description
This function retrieves another file's contents for display.
Warning:
This function is for the x3 theme only. You cannot call it successfully from the Paper Lantern theme. Because of this, we strongly recommend that you do not use this function.
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 |
Required The file. |
A file path, relative to the/usr/local/cpanel/base/appname/theme/brandingdirectory, where:
|
dynamiccontent.html |
|
skip_default |
Boolean |
Whether to search only custom themes. This parameter defaults to 0. |
|
0 |
|
raw |
Boolean |
Whether to process the file's contents. This parameter defaults to 0. |
|
0 |
Returns
|
Return |
Type |
Description |
Possible values |
Example |
|
data |
string |
The file's contents. |
The full contents of the file parameter's file. |
My file's contents.\n |
