• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/page/asset.php
  • Класс: BitrixMainPageAsset
  • Вызов: Asset::addTemplateCss
private function addTemplateCss()
{
	if (
		!$this->ajax
		&& (!defined("ADMIN_SECTION") || ADMIN_SECTION !== true)
		&& $this->templateExists
	)
	{
		$this->css[$this->templatePath . '/styles.css']['TARGET'][] = 'TEMPLATE';
		$this->css[$this->templatePath . '/styles.css']['ADDITIONAL'] = false;

		$this->css[$this->templatePath . '/template_styles.css']['TARGET'][] = 'TEMPLATE';
		$this->css[$this->templatePath . '/template_styles.css']['ADDITIONAL'] = false;
	}
}