• Модуль: subscribe
  • Путь к файлу: ~/bitrix/modules/subscribe/classes/general/template.php
  • Класс: CPostingTemplate
  • Вызов: CPostingTemplate::GetByID
static function GetByID($path="")
{
	global $MESS;

	if(!CPostingTemplate::IsExists($path))
		return false;

	$arTemplate = array();

	$strFileName= $_SERVER["DOCUMENT_ROOT"]."/".$path."/lang/".LANGUAGE_ID."/description.php";
	if(file_exists($strFileName))
		include($strFileName);

	$strFileName= $_SERVER["DOCUMENT_ROOT"]."/".$path."/description.php";
	if(file_exists($strFileName))
		include($strFileName);

	$arTemplate["PATH"] = $path;
	return $arTemplate;
}