get_notifications(); $UseNoty = $NotificationsManager->use_noty(); $NewSubscriptions = false; $NotificationSpans = array(); foreach ($Notifications as $Type => $Notification) { if ($Type === NotificationsManager::SUBSCRIPTIONS) { $NewSubscriptions = true; } if ($UseNoty) { $NotificationSpans[] = "$Notification[message]"; } } if ($UseNoty && !empty($NotificationSpans)) { NotificationsManagerView::load_js(); } if ($NotificationsManager->is_skipped(NotificationsManager::SUBSCRIPTIONS)) { $NewSubscriptions = Subscriptions::has_new_subscriptions(); } ?>