* * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License * as published by the Free Software Foundation; either version 2 * of the License, or (at your option) any later version. */ use OpenEMR\Core\Header; /** * Smarty {assetsTemplate} function plugin. * * Basically is headerTemplate without any autoloaded assets * * Type: function
* Name: assetsTemplate
* Purpose: assetsTemplate in OpenEMR - Smarty templates
* * @param array * @param Smarty */ function smarty_function_assetsTemplate($params, &$smarty) { $assets = []; if (!empty($params['assets'])) { $assets = explode('|', $params['assets']); } return Header::setupAssets($assets); }