• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/classes/general/grids.php
  • Класс: CGridOptions
  • Вызов: CGridOptions::GetTheme
static function GetTheme($grid_id)
{
	$aOptions = CUserOptions::GetOption("main.interface.grid", $grid_id, array());
	if($aOptions["theme"] == '')
	{
		$aGlobalOptions = CUserOptions::GetOption("main.interface", "global", array(), 0);
		if($aGlobalOptions["theme_template"][SITE_TEMPLATE_ID] <> '')
			$theme = $aGlobalOptions["theme_template"][SITE_TEMPLATE_ID];
		else
			$theme = "";
	}
	else
	{
		$theme = $aOptions["theme"];
	}
	if($theme <> '')
	{
		$theme = preg_replace("/[^a-z0-9_.-]/i", "", $theme);
	}
	return $theme;
}