Quellcode durchsuchen

Changed the width of the text for the description in the group CT#444

Arthur Portugal vor 15 Jahren
Ursprung
Commit
479e35c75b
1 geänderte Dateien mit 6 neuen und 4 gelöschten Zeilen
  1. 6 4
      main/social/groups.php

+ 6 - 4
main/social/groups.php

@@ -157,10 +157,10 @@ if ($group_id != 0 ) {
 			if ($result['relation_type'] == GROUP_USER_PERMISSION_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
 	if (api_get_setting('allow_students_to_create_groups_in_social') == 'true') {
 		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) {		
 		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'];
 		$url_open  = '<a href="groups.php?id='.$id.'">';
 		$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) {
 		echo '<h1>'.get_lang('Newest').'</h1>';	
@@ -206,7 +208,7 @@ if ($group_id != 0 ) {
 			$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) {
 		echo '<h1>'.get_lang('Popular').'</h1>';