{template="pageHeader" group="global" params="\IPS\Member::loggedIn()->language()->addToStack('notification_options')"}

{lang="what_notifications_you_receive"}

    {{foreach $categories as $k => $enabled}} {template="notificationSettingsIndexRow" group="system" params="$k, $enabled"} {{endforeach}}

{lang="where_you_receive_notifications"}

{lang="member_notifications_inline"}

{lang="member_notifications_inline_desc"}

{{if \IPS\Notification::webPushEnabled() || \count( \IPS\Member::loggedIn()->getPwaAuths() )}}

{lang="member_notifications_push"}

{lang="member_notifications_push_desc"}

{{endif}}

{lang="member_notifications_email"}

{lang="member_notifications_email_desc" sprintf="\IPS\Member::loggedIn()->email"}

{{if \IPS\core\Stream\Subscription::hasSubscribedStreams() }}

{lang='stream_subscriptions'}

{{foreach \IPS\core\Stream\Subscription::getSubscribedStreams() as $stream }} {{endforeach}}
{{endif}}