| @@ 150-154 (lines=5) @@ | ||
| 147 | ||
| 148 | if (count($nosessionUsersList) == 0) { |
|
| 149 | $friends = SocialManager::get_friends(api_get_user_id()); |
|
| 150 | if ($friends == 0) { |
|
| 151 | $social_right_content .= Display::return_message(get_lang('YouNeedToHaveFriendsInYourSocialNetwork'), 'warning'); |
|
| 152 | } else { |
|
| 153 | $social_right_content .= Display::return_message(get_lang('YouAlreadyInviteAllYourContacts'), 'info'); |
|
| 154 | } |
|
| 155 | $social_right_content .= '<div>'; |
|
| 156 | $social_right_content .= '<a href="search.php" class="btn btn-default btn-sm">'.Display::returnFontAwesomeIcon('search').' '.get_lang('TryAndFindSomeFriends').'</a>'; |
|
| 157 | $social_right_content .= '</div>'; |
|
| @@ 647-657 (lines=11) @@ | ||
| 644 | $user_id |
|
| 645 | ); |
|
| 646 | ||
| 647 | if ($daysLeft >= 0) { |
|
| 648 | $additonalBlocks .= Display::return_message( |
|
| 649 | sprintf(get_lang('SessionDurationXDaysLeft'), $daysLeft), |
|
| 650 | 'information' |
|
| 651 | ); |
|
| 652 | } else { |
|
| 653 | $additonalBlocks .= Display::return_message( |
|
| 654 | get_lang('YourSessionTimeHasExpired'), |
|
| 655 | 'warning' |
|
| 656 | ); |
|
| 657 | } |
|
| 658 | } |
|
| 659 | break; |
|
| 660 | } |
|