Пример формирования ссылок «Выйти» и «Регистрация» - alma-com/wiki-bitrix GitHub Wiki

Пример формирование ссылок "Logout" и "Регистрация"

    <?if ($USER->IsAuthorized()):?>

     <a href="<?echo $APPLICATION->GetCurPageParam("logout=yes", array(
     "login",
     "logout",
     "register",
     "forgot_password",
     "change_password"));?>">Выйти</a>

    <?else:?>
 
     <a href="<?echo $APPLICATION->GetCurPageParam("register=yes", array(
     "login",
     "logout",
     "forgot_password",
     "change_password"));?>">Регистрация</a>

    <?endif;?>
⚠️ **GitHub.com Fallback** ⚠️