Changeset 841 in ExiteCMS for trunk/includes/theme_functions.php
- Timestamp:
- 09/26/07 16:21:28 (5 years ago)
- File:
-
- 1 edited
-
trunk/includes/theme_functions.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/includes/theme_functions.php
r834 r841 54 54 // Register the panel template resource 55 55 $template->register_resource('panel', array('resource_panel_source', 'resource_panel_timestamp', 'resource_panel_secure', 'resource_panel_trusted')); 56 57 // Register the string template resource 58 $template->register_resource('string', array('resource_string_source', 'resource_string_timestamp', 'resource_string_secure', 'resource_string_trusted')); 56 59 57 60 // Array to store panels … … 382 385 // not used for templates 383 386 } 387 388 /*-----------------------------------------------------+ 389 | resource_string - Smarty string resource callbacks | 390 +-----------------------------------------------------*/ 391 function resource_string_source($tpl_name, &$tpl_source, &$smarty) { 392 393 $tpl_source = $tpl_name; 394 return true; 395 } 396 397 function resource_string_timestamp($tpl_name, &$tpl_timestamp, &$smarty) { 398 399 $tpl_timestamp = time(); 400 return true; 401 } 402 403 function resource_string_secure($tpl_name, &$smarty) { 404 405 // assume all templates are secure 406 return true; 407 } 408 409 function resource_string_trusted($tpl_name, &$smarty) { 410 411 // not used for templates 412 } 384 413 ?>
Note: See TracChangeset
for help on using the changeset viewer.
