Exemple #1
0
    $countCommentPending = Comment::getCountPending();
    $bageComments = $countCommentPending > 0 ? "&nbsp<span class=\"badge\">{$countCommentPending}</span>" : '';
}
$bageComplain = '';
if (issetModule('apartmentsComplain')) {
    $countComplainPending = ApartmentsComplain::getCountPending();
    $bageComplain = $countComplainPending > 0 ? "&nbsp<span class=\"badge\">{$countComplainPending}</span>" : '';
}
$bageReviews = '';
if (issetModule('reviews')) {
    $countReviewsPending = Reviews::getCountModeration();
    $bageReviews = $countReviewsPending > 0 ? "&nbsp<span class=\"badge\">{$countReviewsPending}</span>" : '';
}
$bageVacancy = '';
if (issetModule('vacancy')) {
    $countVacancyPending = Vacancy::getCountModeration();
    $bageVacancy = $countVacancyPending > 0 ? "&nbsp<span class=\"badge\">{$countVacancyPending}</span>" : '';
}
$bageBooking = '';
if (issetModule('bookingtable')) {
    $countNewPending = Bookingtable::getCountNew();
    $bageBooking = $countNewPending > 0 ? "&nbsp<span class=\"badge\">{$countNewPending}</span>" : '';
}
$bageMessages = '';
if (issetModule('messages')) {
    $countMessagesUnread = Messages::getCountUnread(Yii::app()->user->id);
    $bageMessages = $countMessagesUnread > 0 ? "&nbsp<span class=\"badge\">{$countMessagesUnread}</span>" : '';
}
?>

<div class="bootnavbar-delimiter"></div>