Skip to content

Instantly share code, notes, and snippets.

View SeRGei93's full-sized avatar

Sergei Stefanovich SeRGei93

View GitHub Profile
@SeRGei93
SeRGei93 / Битрикс полезные функции
Last active February 8, 2023 13:06
Битрикс полезные функции
https://estrin.pw/bitrix-d7-snippets/s/current-user-is-authorized/
if(\Bitrix\Main\Engine\CurrentUser::get()->getId())
{}
\Bitrix\Main\Engine\CurrentUser::get()->isAdmin()
\Bitrix\Main\Engine\CurrentUser::get()->getLogin()
//лого без ссылки на главной
<? $isIndex = ($APPLICATION->GetCurPage(false) == SITE_DIR)?>
<?if (!$isIndex):?>