data('types'); $types = $types==''? array('announcement'):$types; $max = $widget->data('notification-number'); $max = $max =="" ? 5 : $max ; $maxlength = $widget->data('notification-length'); $maxlength = $maxlength =="" ? 250 : $maxlength ; $userNotifications = UserNotification::byUser($myUser,array( 'limit' => $max, 'unread' => false, 'types' => $types, )); ?>
Alertes