} if (!$this->__component->__parent || $this->__component->__parent->__name != "bitrix:webdav") { $GLOBALS['APPLICATION']->SetAdditionalCSS(BX_ROOT . '/components/bitrix/webdav/templates/.default/style.css'); $GLOBALS['APPLICATION']->AddHeadScript(BX_ROOT . '/components/bitrix/webdav/templates/.default/script.js'); } $GLOBALS['APPLICATION']->SetAdditionalCSS('/bitrix/panel/main/admin-public.css'); $GLOBALS['APPLICATION']->AddHeadScript('/bitrix/js/main/utils.js'); $GLOBALS['APPLICATION']->AddHeadScript('/bitrix/js/main/public_tools.js'); CJSCore::Init(array('access', 'dd', 'socnetlogdest')); global $USER; $isDiskNotInstall = $showUserBannerDisk = null; $isLibToCurrentUser = !empty($arParams['OBJECT']->attributes['user_id']) && $USER->getId() == $arParams['OBJECT']->attributes['user_id']; ?> <?php if ($isLibToCurrentUser && ($showUserBannerDisk = CWebDavTools::getShowOfferBannerForCurrentUser('disk')) && !CWebDavTools::isDesktopInstall()) { ?> <div> <a style="text-decoration: none" id="wd-banner-disk-install-offer" onclick="WDDownloadDesktop();" href="javascript:void(0)" class="wd-banner_section"> <table class="wd-banner_table"> <tr> <td class="wd-banner_table_<?php echo $isDiskNotInstall === true ? 'two' : 'one'; ?> <?php echo LANGUAGE_ID; ?> "><?php echo GetMessage('WD_OFFER_INSTALL_B24_TITLE'); ?> </td>
private function getDesktopDiskStatus() { if (!\CWebDavTools::isDesktopInstall()) { return self::DESKTOP_DISK_STATUS_NOT_INSTALLED; } elseif (!\CWebDavTools::isDesktopDiskInstall()) { return self::DESKTOP_DISK_STATUS_NOT_ENABLED; } elseif (\CWebDavTools::isDesktopDiskOnline()) { return self::DESKTOP_DISK_STATUS_ONLINE; } else { return self::DESKTOP_DISK_STATUS_NOT_INSTALLED; } }