3 +--------------------------------------------------------------------+
4 | Copyright CiviCRM LLC. All rights reserved. |
6 | This work is published under the GNU AGPLv3 license with some |
7 | permitted exceptions and without any warranty. For full license |
8 | and copyright information, see https://civicrm.org/licensing |
9 +--------------------------------------------------------------------+
15 * @copyright CiviCRM LLC https://civicrm.org/licensing
24 function civicrm_smarty_resource_string_get_template($tpl_name, &$tpl_source, &$smarty_obj) {
25 $tpl_source = $tpl_name;
30 * @param string $tpl_name
31 * @param $tpl_timestamp
32 * @param CRM_Core_Smarty $smarty_obj
36 function civicrm_smarty_resource_string_get_timestamp($tpl_name, &$tpl_timestamp, &$smarty_obj) {
37 $tpl_timestamp = time();
42 * @param string $tpl_name
43 * @param CRM_Core_Smarty $smarty_obj
47 function civicrm_smarty_resource_string_get_secure($tpl_name, &$smarty_obj) {
52 * @param string $tpl_name
53 * @param CRM_Core_Smarty $smarty_obj
55 function civicrm_smarty_resource_string_get_trusted($tpl_name, &$smarty_obj) {
59 function civicrm_smarty_register_string_resource() {
60 $template = CRM_Core_Smarty
::singleton();
61 $template->register_resource('string', [
62 'civicrm_smarty_resource_string_get_template',
63 'civicrm_smarty_resource_string_get_timestamp',
64 'civicrm_smarty_resource_string_get_secure',
65 'civicrm_smarty_resource_string_get_trusted',