|
|
|
@ -138,9 +138,14 @@ $who_is_on_line = get_lang('UsersOnline').' '.count(WhoIsOnline(api_get_setting( |
|
|
|
|
|
|
|
|
|
echo '<div class="actions-title-groups">'; |
|
|
|
|
//echo get_lang('Groups'); |
|
|
|
|
echo '<table width="100%"><tr><td width="150px" bgcolor="#32578b"><center><span class="menuTex1">'.strtoupper(get_lang('Menu')).'</span></center></td> |
|
|
|
|
<td width="15px"> </td><td bgcolor="#32578b">'.Display::return_icon('whoisonline.png','',array('hspace'=>'6')).'<a href="#" ><span class="menuTex1">'.$who_is_on_line.'</span></a></td> |
|
|
|
|
</tr></table>'; |
|
|
|
|
|
|
|
|
|
/* |
|
|
|
|
echo '<div class="menuTitle" align="center"><span class="menuTex1">'.get_lang('Menu').'</span></div>'; |
|
|
|
|
echo '<div class="TitleRigth">'.Display::return_icon('whoisonline.png','',array('hspace'=>'6')).'<a href="#" ><span class="menuTex1">'.$who_is_on_line.'</span></a></div>'; |
|
|
|
|
|
|
|
|
|
*/ |
|
|
|
|
echo '</div>'; |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -148,11 +153,17 @@ echo '<div id="socialContent">'; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
echo '<div id="socialContentLeft">'; |
|
|
|
|
//this include the social menu div |
|
|
|
|
SocialManager::show_social_menu('groups'); |
|
|
|
|
//this include the social menu div |
|
|
|
|
if ($group_id != 0 ) { |
|
|
|
|
SocialManager::show_social_menu('group_messages',$group_id); |
|
|
|
|
} else { |
|
|
|
|
SocialManager::show_social_menu('groups'); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
echo '</div>'; |
|
|
|
|
|
|
|
|
|
echo '<div id="socialContentRigth">'; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if ($group_id != 0 ) { |
|
|
|
@ -184,7 +195,7 @@ if ($group_id != 0 ) { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
//-- Shows left column |
|
|
|
|
echo GroupPortalManager::show_group_column_information($group_id, api_get_user_id()); |
|
|
|
|
//echo GroupPortalManager::show_group_column_information($group_id, api_get_user_id()); |
|
|
|
|
//--- |
|
|
|
|
|
|
|
|
|
//-- Show message groups |
|
|
|
@ -214,11 +225,11 @@ if ($group_id != 0 ) { |
|
|
|
|
$url_open = '<a href="groups.php?id='.$id.'">'; |
|
|
|
|
$url_close = '</a>'; |
|
|
|
|
|
|
|
|
|
$name = cut($result['name'],30,true); |
|
|
|
|
$name = strtoupper(cut($result['name'],25,true)); |
|
|
|
|
if ($result['relation_type'] == GROUP_USER_PERMISSION_ADMIN) { |
|
|
|
|
$name .= Display::return_icon('admin_star.png', get_lang('Admin')); |
|
|
|
|
$name .= Display::return_icon('admin_star.png', get_lang('Admin'), array('style'=>'vertical-align:middle')); |
|
|
|
|
} elseif ($result['relation_type'] == GROUP_USER_PERMISSION_MODERATOR) { |
|
|
|
|
$name .= Display::return_icon('moderator_star.png', get_lang('Moderator')); |
|
|
|
|
$name .= Display::return_icon('moderator_star.png', get_lang('Moderator'), array('style'=>'vertical-align:middle')); |
|
|
|
|
} |
|
|
|
|
$count_users_group = count(GroupPortalManager::get_all_users_by_group($id)); |
|
|
|
|
if ($count_users_group == 1 ) { |
|
|
|
@ -230,8 +241,8 @@ if ($group_id != 0 ) { |
|
|
|
|
$result['picture_uri'] = '<img class="imageGroups" src="'.$result['picture_uri'].'" hspace="4" height="50" border="2" align="left" width="50" />'; |
|
|
|
|
$grid_item_1 = Display::return_icon('boxmygroups.jpg'); |
|
|
|
|
$item_1 = '<div>'.$url_open.$result['picture_uri'].'<p class="groupTex1"><strong>'.$name.'<br />('.$count_users_group.')</strong></p>'.$url_close.Display::return_icon('linegroups.jpg').'</div>'; |
|
|
|
|
$item_2 = '<div class="box_description_group_title" ><span class="groupText2">'.get_lang('DescriptionGroup').'</span></div>'; |
|
|
|
|
$item_3 = '<div class="box_description_group_content" >'.cut($result['description'],120,true).'</div>'; |
|
|
|
|
$item_2 = '<div class="box_description_group_title" ><span class="groupText2">'.strtoupper(get_lang('DescriptionGroup')).'</span></div>'; |
|
|
|
|
$item_3 = '<div class="box_description_group_content" >'.cut($result['description'],100,true).'</div>'; |
|
|
|
|
$item_4 = '<div class="box_description_group_actions" >'.$url_open.get_lang('SeeMore').$url_close.'</div>'; |
|
|
|
|
$grid_item_2 = $item_1.$item_2.$item_3.$item_4; |
|
|
|
|
$grid_my_groups[]= array($grid_item_1,$grid_item_2); |
|
|
|
@ -252,12 +263,12 @@ if ($group_id != 0 ) { |
|
|
|
|
$count_users_group = $count_users_group.' '.get_lang('Members'); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
$name = cut($result['name'],30,true); |
|
|
|
|
$name = strtoupper(cut($result['name'],30,true)); |
|
|
|
|
$result['picture_uri'] = '<img class="imageGroups" src="'.$result['picture_uri'].'" hspace="4" height="50" border="2" align="left" width="50" />'; |
|
|
|
|
$grid_item_1 = Display::return_icon('boxmygroups.jpg'); |
|
|
|
|
$item_1 = '<div>'.$url_open.$result['picture_uri'].'<p class="groupTex1"><strong>'.$name.'<br />('.$count_users_group.')</strong></p>'.$url_close.Display::return_icon('linegroups.jpg').'</div>'; |
|
|
|
|
$item_2 = '<div class="box_description_group_title" ><span class="groupText2">'.get_lang('DescriptionGroup').'</span></div>'; |
|
|
|
|
$item_3 = '<div class="box_description_group_content" >'.cut($result['description'],120,true).'</div>'; |
|
|
|
|
$item_2 = '<div class="box_description_group_title" ><span class="groupText2">'.strtoupper(get_lang('DescriptionGroup')).'</span></div>'; |
|
|
|
|
$item_3 = '<div class="box_description_group_content" >'.cut($result['description'],100,true).'</div>'; |
|
|
|
|
$item_4 = '<div class="box_description_group_actions" >'.$url_open.get_lang('SeeMore').$url_close.'</div>'; |
|
|
|
|
$grid_item_2 = $item_1.$item_2.$item_3.$item_4; |
|
|
|
|
|
|
|
|
@ -278,12 +289,12 @@ if ($group_id != 0 ) { |
|
|
|
|
} |
|
|
|
|
$count_users_group = $result['count']; |
|
|
|
|
|
|
|
|
|
$name = cut($result['name'],30,true); |
|
|
|
|
$name = strtoupper(cut($result['name'],30,true)); |
|
|
|
|
$result['picture_uri'] = '<img class="imageGroups" src="'.$result['picture_uri'].'" hspace="4" height="50" border="2" align="left" width="50" />'; |
|
|
|
|
$grid_item_1 = Display::return_icon('boxmygroups.jpg'); |
|
|
|
|
$item_1 = '<div>'.$url_open.$result['picture_uri'].'<p class="groupTex1"><strong>'.$name.'<br />('.$count_users_group.')</strong></p>'.$url_close.Display::return_icon('linegroups.jpg').'</div>'; |
|
|
|
|
$item_2 = '<div class="box_description_group_title" ><span class="groupText2">'.get_lang('DescriptionGroup').'</span></div>'; |
|
|
|
|
$item_3 = '<div class="box_description_group_content" >'.cut($result['description'],120,true).'</div>'; |
|
|
|
|
$item_2 = '<div class="box_description_group_title" ><span class="groupText2">'.strtoupper(get_lang('DescriptionGroup')).'</span></div>'; |
|
|
|
|
$item_3 = '<div class="box_description_group_content" >'.cut($result['description'],100,true).'</div>'; |
|
|
|
|
$item_4 = '<div class="box_description_group_actions" >'.$url_open.get_lang('SeeMore').$url_close.'</div>'; |
|
|
|
|
$grid_item_2 = $item_1.$item_2.$item_3.$item_4; |
|
|
|
|
|
|
|
|
@ -292,16 +303,16 @@ if ($group_id != 0 ) { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
echo '<div id="boxmyGroups">'; |
|
|
|
|
echo '<h1>'.get_lang('MyGroups').'</h1>'; |
|
|
|
|
echo '<div class="groupText3">'.strtoupper(get_lang('MyGroups')).'</div>'; |
|
|
|
|
if (count($grid_my_groups) > 0) { |
|
|
|
|
Display::display_sortable_grid('mygroups', array(), $grid_my_groups, array('hide_navigation'=>true, 'per_page' => 2), $query_vars, false, array(true, true, true,false)); |
|
|
|
|
} |
|
|
|
|
if (count($grid_newest_groups) > 0) { |
|
|
|
|
echo '<h1>'.get_lang('Newest').'</h1>'; |
|
|
|
|
echo '<div class="groupText3">'.strtoupper(get_lang('Newest')).'</div>'; |
|
|
|
|
Display::display_sortable_grid('newest', array(), $grid_newest_groups, array('hide_navigation'=>true, 'per_page' => 100), $query_vars, false, array(true, true, true,false)); |
|
|
|
|
} |
|
|
|
|
if (count($grid_pop_groups) > 0) { |
|
|
|
|
echo '<h1>'.get_lang('Popular').'</h1>'; |
|
|
|
|
echo '<div class="groupText3">'.strtoupper(get_lang('Popular')).'</div>'; |
|
|
|
|
Display::display_sortable_grid('popular', array(), $grid_pop_groups, array('hide_navigation'=>true, 'per_page' => 100), $query_vars, false, array(true, true, true,true,true)); |
|
|
|
|
} |
|
|
|
|
echo '</div>'; |
|
|
|
@ -311,4 +322,5 @@ if ($group_id != 0 ) { |
|
|
|
|
|
|
|
|
|
echo '</div>'; |
|
|
|
|
Display :: display_footer(); |
|
|
|
|
?> |
|
|
|
|
?> |
|
|
|
|
|
|
|
|
|