• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/lib/page/asset.php
  • Класс: BitrixMainPageAsset
  • Вызов: Asset::getStrings
public function getStrings($location = AssetLocation::AFTER_JS_KERNEL)
{
	static $firstExec = true;
	if ($firstExec)
	{
		$this->prepareString();
		$firstExec = false;
	}

	$res = '';
	if ($location == AssetLocation::AFTER_CSS && CJSCore::IsCoreLoaded())
	{
		$res = "n";
	}

	if (isset($this->strings[$location]))
	{
		foreach ($this->strings[$location] as $item)
		{
			if ($this->mode & $item['MODE'])
			{
				$res .= $item['CONTENT']."n";
			}
		}
	}

	return ($res == '') ? '' : $res."n";
}