Wiki
Clone wikiShortcode Ultimate V2 / Inner API / addFile()
To add new file in head tag you can use addFile() function.
Example
#!php <?php suAsset::addFile('css', 'heading.css', __FUNCTION__); suAsset::addFile('js', 'heading.js', __FUNCTION__); ?>
Params
Param Name | Type | Description |
---|---|---|
css/js | string | You can put here only css or js. "css" for adding any css file and "js" for adding javascript file in head tag |
filename.css or filename.js | string | Name of the file that you want to add. |
__FUNCTION__ | string | This param use for file location, for example: file will be loaded from /templates/your default template /html/plg_bdthemes_shortcodes/shortcodes/new_heading/css or js folder. If you not include this param so function search file in plugin css/js folder("\plugins\system\bdthemes_shortcodes\css or js") |
Updated