|
@@ -157,10 +157,10 @@ if ($group_id != 0 ) {
|
|
if ($result['relation_type'] == GROUP_USER_PERMISSION_MODERATOR) {
|
|
if ($result['relation_type'] == GROUP_USER_PERMISSION_MODERATOR) {
|
|
$result['name'].= Display::return_icon('moderator_star.png', get_lang('Moderator'));
|
|
$result['name'].= Display::return_icon('moderator_star.png', get_lang('Moderator'));
|
|
}
|
|
}
|
|
- $groups[]= array($url_open.$result['picture_uri'].$url_close, $url_open.$result['name'].$url_close,cut($result['description'],140));
|
|
|
|
|
|
+ $groups[]= array($url_open.$result['picture_uri'].$url_close, $url_open.$result['name'].$url_close,cut($result['description'],70));
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- echo '<h1>'.get_lang('MyGroups').'</h1>';
|
|
|
|
|
|
+ echo '<br/>';
|
|
// Everybody can create groups
|
|
// Everybody can create groups
|
|
if (api_get_setting('allow_students_to_create_groups_in_social') == 'true') {
|
|
if (api_get_setting('allow_students_to_create_groups_in_social') == 'true') {
|
|
echo '<a href="group_add.php">'.get_lang('CreateAgroup').'</a>';
|
|
echo '<a href="group_add.php">'.get_lang('CreateAgroup').'</a>';
|
|
@@ -171,6 +171,8 @@ if ($group_id != 0 ) {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ echo '<h1>'.get_lang('MyGroups').'</h1>';
|
|
|
|
+
|
|
if (count($groups) > 0) {
|
|
if (count($groups) > 0) {
|
|
Display::display_sortable_grid('groups', array(), $groups, array('hide_navigation'=>true, 'per_page' => 100), $query_vars, false, array(true, true, true,false));
|
|
Display::display_sortable_grid('groups', array(), $groups, array('hide_navigation'=>true, 'per_page' => 100), $query_vars, false, array(true, true, true,false));
|
|
}
|
|
}
|
|
@@ -184,7 +186,7 @@ if ($group_id != 0 ) {
|
|
$id = $result['id'];
|
|
$id = $result['id'];
|
|
$url_open = '<a href="groups.php?id='.$id.'">';
|
|
$url_open = '<a href="groups.php?id='.$id.'">';
|
|
$url_close = '</a>';
|
|
$url_close = '</a>';
|
|
- $groups[]= array($url_open.$result['picture_uri'].$url_close, $url_open.$result['name'].$url_close,cut($result['description'],140));
|
|
|
|
|
|
+ $groups[]= array($url_open.$result['picture_uri'].$url_close, $url_open.$result['name'].$url_close,cut($result['description'],70));
|
|
}
|
|
}
|
|
if (count($groups) > 0) {
|
|
if (count($groups) > 0) {
|
|
echo '<h1>'.get_lang('Newest').'</h1>';
|
|
echo '<h1>'.get_lang('Newest').'</h1>';
|
|
@@ -206,7 +208,7 @@ if ($group_id != 0 ) {
|
|
$result['count'] = $result['count'].' '.get_lang('Members');
|
|
$result['count'] = $result['count'].' '.get_lang('Members');
|
|
}
|
|
}
|
|
|
|
|
|
- $groups[]= array($url_open.$result['picture_uri'].$url_close, $url_open.$result['name'].$url_close,$result['count'],cut($result['description'],140));
|
|
|
|
|
|
+ $groups[]= array($url_open.$result['picture_uri'].$url_close, $url_open.$result['name'].$url_close,$result['count'],cut($result['description'],70));
|
|
}
|
|
}
|
|
if (count($groups) > 0) {
|
|
if (count($groups) > 0) {
|
|
echo '<h1>'.get_lang('Popular').'</h1>';
|
|
echo '<h1>'.get_lang('Popular').'</h1>';
|