function smarty_resource_custom_timestamp($tpl_name, &$tpl_timestamp, LiveCartSmarty $smarty_obj) { if ($file = smarty_custom_get_path($tpl_name, $smarty_obj)) { $tpl_timestamp = filemtime($file); return true; } return false; }
/** * Get the compile path for this resource * * @param string $resource_name * @return string results of {@link _get_auto_filename()} */ public function _get_compile_path($resource_name) { if (substr($resource_name, 0, 7) == 'custom:') { if (!function_exists('smarty_custom_get_path')) { include ClassLoader::getRealPath('application.helper.smarty.') . 'resource.custom.php'; } $resource_name = smarty_custom_get_path(substr($resource_name, 7), $this); } return $this->_get_auto_filename($this->compile_dir, $resource_name, $this->_compile_id) . '.php'; }