137 \
Bitrix\
Iblock\InheritedProperty\BaseTemplate $ipropTemplates,
138 string $templateName,
143 if (!isset($file[
'name']))
148 if (preg_match(
"/^(.+)(\\.[a-zA-Z0-9]+)\$/", $file[
"name"], $fileName))
150 if (!isset($fields[
"IPROPERTY_TEMPLATES"]) || $fields[
"IPROPERTY_TEMPLATES"][$templateName] ==
"")
152 $templates = $ipropTemplates->findTemplates();
153 $TEMPLATE = ($templates[$templateName][
"TEMPLATE"] ??
'');
157 $TEMPLATE = $fields[
"IPROPERTY_TEMPLATES"][$templateName];
165 $values = $ipropTemplates->getValuesEntity();
166 $entity = $values->createTemplateEntity();
167 $entity->setFields($fields);
168 return \Bitrix\Iblock\Template\Engine::process($entity, $TEMPLATE).$fileName[2];
170 elseif ($modifiers !=
"")
174 $simpleTemplate->setModifiers($modifiers);
176 return $simpleTemplate->process($baseEntity).$fileName[2];
181 return $file[
"name"];