27 if (!isset($menu[0][
'items']) || !is_array($menu[0][
'items']))
34 $menu[0][
'items'][] = self::getKnowledgeMenu();
46 private static function getKnowledgeMenu(): array
48 $componentId =
'knowledge.list';
49 $componentVersion = Janative\Manager::getComponentVersion(
56 'imageUrl' =>
'/bitrix/images/landing/mobile/knowledge.png?4',
60 ComponentHelper.openList({
61 name:
'{$componentId}',
63 version:
'{$componentVersion}',
64 widgetParams: {title: this.title, useSearch:
true}
75 private static function getLandingMenu(): array
79 $titleTabPage =
Loc::getMessage(
'LANDING_CONNECTOR_MB_LANDINGS_TAB_PAGE');
80 $titleTabStore =
Loc::getMessage(
'LANDING_CONNECTOR_MB_LANDINGS_TAB_STORE');
85 'imageUrl' =>
'/bitrix/images/landing/mobile/knowledge.png',
89 PageManager.openComponent(
'JSStackComponent', {
93 objectName:
'layoutWidget',
98 title:
'{$titleTabPage}',
100 name:
'JSStackComponent',
101 scriptPath:
'/mobileapp/jn/landing.list/?type=page&version={$version}',
102 params: { type:
'page' },
106 objectName:
'layoutWidget',
113 title:
'{$titleTabStore}',
115 name:
'JSStackComponent',
116 scriptPath:
'/mobileapp/jn/landing.list/?type=store&version={$version}',
117 params: { type:
'store' },
121 objectName:
'layoutWidget',
144 self::$isMobileHit =
true;
153 static $mobileHit =
null;
155 if (self::$isMobileHit)
160 if ($mobileHit ===
null)
162 $mobileHit = \Bitrix\Main\ModuleManager::isModuleInstalled(
'intranet')
175 if (self::isMobileHit())
178 \
Bitrix\Main\Loader::includeModule(
'mobile') &&
179 \
Bitrix\Main\Loader::includeModule(
'mobileapp')
182 if (!defined(
'SKIP_MOBILEAPP_INIT'))
188 Auth::setNotAuthorizedHeaders();
189 echo Json::encode(Auth::getNotAuthorizedResponse());
static loadMessages($file)
static getMessage($code, $replace=null, $language=null)