• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/classes/general/component_template.php
  • Класс: CBitrixComponentTemplate
  • Вызов: CBitrixComponentTemplate::addExternalCss
public function addExternalCss($cssPath)
{
	/** @global CMain $APPLICATION */
	global $APPLICATION;
	$this->externalCss[] = $cssPath;
	$APPLICATION->SetAdditionalCSS($cssPath);
	//Check if parent component exists and plug css it to it's "collection"
	if ($this->__component && $this->__component->__parent)
		$this->__component->__parent->addChildCSS($cssPath);
}