- Модуль: intranet
- Путь к файлу: ~/bitrix/modules/intranet/lib/integration/templates/bitrix24/themepicker.php
- Класс: BitrixIntranetIntegrationTemplatesBitrix24ThemePicker
- Вызов: ThemePicker::showHeadAssets
public function showHeadAssets(): void
{
$this->registerJsExtension();
$this->registerCss();
$theme = $this->getCurrentTheme();
$theme = $theme ?: [];
$options = CUtil::phpToJSObject(
array(
"templateId" => $this->getTemplateId(),
"siteId" => $this->getSiteId(),
"themeId" => $this->getCurrentThemeId(),
"theme" => $theme,
"maxUploadSize" => static::getMaxUploadSize(),
"ajaxHandlerPath" => $this->getAjaxHandlerPath(),
"isAdmin" => static::isAdmin(),
"allowSetDefaultTheme" => static::canSetDefaultTheme(),
"isVideo" => isset($theme["video"]),
'entityType' => $this->getEntityType(),
'entityId' => $this->getEntityId(),
'behaviour' => $this->getBehaviour(),
),
false,
false,
true
);
Asset::getInstance()->addString(
"",
false,
AssetLocation::AFTER_JS
);
}