// check runtime cache
$_cache_key = 'template|' .
$unique_resource_name;
if ($smarty->compile_id
) { $_cache_key .= '|' .
$smarty->compile_id;
} if (isset(self::
$sources[$_cache_key])) { return self::
$sources[$_cache_key];
} // create source
$source =
new Smarty_Template_Source($resource,
$smarty,
$template_resource,
$type,
$name,
$unique_resource_name);
$resource->
populate($source,
$_template);
// runtime cache
self::
$sources[$_cache_key] =
$source;
return $source;
} /**
* initialize Config Source Object for given resource
*
* @param Smarty_Internal_Config $_config config object
*
* @return Smarty_Config_Source Source Object
*/