• Модуль: intranet
  • Путь к файлу: ~/bitrix/modules/intranet/lib/integration/templates/bitrix24/themepicker.php
  • Класс: BitrixIntranetIntegrationTemplatesBitrix24ThemePicker
  • Вызов: ThemePicker::getStandardThemes
public function getStandardThemes()
{
	$themes = array();
	$config = static::getConfig();

	if (is_array($config) && isset($config["subThemes"]) && is_array($config["subThemes"]))
	{
		$defaultThemeId = $this->getDefaultThemeId();
		foreach (array_keys($config["subThemes"]) as $index => $themeId)
		{
			$theme = $this->getStandardTheme($themeId);
			if ($theme !== null)
			{
				$theme["sort"] = $index + 200;
				$theme["default"] = $defaultThemeId === $themeId;
				$themes[] = $theme;
			}
		}
	}

	return $themes;
}