Completed
Push — gcconnex ( ee5ffc...718fe4 )
by Ilia
09:37 queued 04:29
created
mod/wet4/views/default/input/friendspicker.php 3 patches
Indentation   +26 added lines, -26 removed lines patch added patch discarded remove patch
@@ -153,11 +153,11 @@  discard block
 block discarded – undo
153 153
 	$letpos = 0;
154 154
 
155 155
             
156
-    $collTable = '';
156
+	$collTable = '';
157 157
     
158 158
 	while (1 == 1) {
159 159
 
160
-        unset($collRow);
160
+		unset($collRow);
161 161
 
162 162
 		if (isset($users[$letter])) {
163 163
 			ksort($users[$letter]);
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
 
184 184
 				if (in_array($friend->getGUID(),$vars['value'])) {
185 185
 					$checked = "checked = \"checked\"";
186
-                    $checkedValues .= '<input type="checkbox"' . $checked . 'name="' . $name . '[]" id="' . $name . '[]" value="' . $options[$label] . '" />';
186
+					$checkedValues .= '<input type="checkbox"' . $checked . 'name="' . $name . '[]" id="' . $name . '[]" value="' . $options[$label] . '" />';
187 187
 					if (!in_array($letter,$activeletters) && $vars['highlight'] == 'default') {
188 188
 						$activeletters[] = $letter;
189 189
 					}
@@ -194,7 +194,7 @@  discard block
 block discarded – undo
194 194
 
195 195
 				//$collRow .= '<div class="col-xs-1">';
196 196
 
197
-                $checkedBox = '<div  class="mrgn-tp-sm"><input type="checkbox"' . $checked . 'name="' . $name . '[]" id="' . $name . '[]" value="' . $options[$label] . '" /></div>';
197
+				$checkedBox = '<div  class="mrgn-tp-sm"><input type="checkbox"' . $checked . 'name="' . $name . '[]" id="' . $name . '[]" value="' . $options[$label] . '" /></div>';
198 198
 
199 199
 				$collRow .= '
200 200
 
@@ -207,7 +207,7 @@  discard block
 block discarded – undo
207 207
 				$collRow .=	'</div>
208 208
 				</div>
209 209
 				<div class="col-xs-10">';
210
-                $collRow .= $friend->name;
210
+				$collRow .= $friend->name;
211 211
 				$collRow .= '</div>';
212 212
 				
213 213
 				$col++;
@@ -216,32 +216,32 @@  discard block
 block discarded – undo
216 216
 					$col = 0;
217 217
 				//}
218 218
 
219
-                    if ($col < 3) {
220
-                        $collRow .= "</div>";
221
-                    }
219
+					if ($col < 3) {
220
+						$collRow .= "</div>";
221
+					}
222 222
 
223
-                    //stick items in <td> element
224
-                    $list_items = elgg_format_element('td', ['class' => 'data-table-list-item '], $checkedBox);
225
-                    $list_items .= elgg_format_element('td', ['class' => 'data-table-list-item '], $collRow);
226
-                    //stick <td> elements in <tr>
227
-                    $tR .= elgg_format_element('tr', ['class' => '',], $list_items);
223
+					//stick items in <td> element
224
+					$list_items = elgg_format_element('td', ['class' => 'data-table-list-item '], $checkedBox);
225
+					$list_items .= elgg_format_element('td', ['class' => 'data-table-list-item '], $collRow);
226
+					//stick <td> elements in <tr>
227
+					$tR .= elgg_format_element('tr', ['class' => '',], $list_items);
228 228
 
229
-                    $collRow = '';
229
+					$collRow = '';
230 230
 
231 231
 			}
232 232
 			
233 233
 
234 234
 		}
235 235
 
236
-        if(isset($collRow)){
236
+		if(isset($collRow)){
237 237
 
238
-            //$collTable .= '<tr><td>' . $collRow . '</tr></td>';
238
+			//$collTable .= '<tr><td>' . $collRow . '</tr></td>';
239 239
 
240
-            //stick items in <td> element
241
-            //$list_items = elgg_format_element('td', ['class' => 'data-table-list-item '], $collRow);
242
-            //stick <td> elements in <tr>
243
-            //$tR .= elgg_format_element('tr', ['class' => 'testing',], $list_items);
244
-        }
240
+			//stick items in <td> element
241
+			//$list_items = elgg_format_element('td', ['class' => 'data-table-list-item '], $collRow);
242
+			//stick <td> elements in <tr>
243
+			//$tR .= elgg_format_element('tr', ['class' => 'testing',], $list_items);
244
+		}
245 245
 
246 246
 			$substr = elgg_substr($chararray, elgg_strlen($chararray) - 1, 1);
247 247
 			if ($letter == $substr) {
@@ -254,13 +254,13 @@  discard block
 block discarded – undo
254 254
             
255 255
 		}
256 256
 
257
-    //create table body
258
-    $tBody = elgg_format_element('tbody', ['class' => ''], $tR);
257
+	//create table body
258
+	$tBody = elgg_format_element('tbody', ['class' => ''], $tR);
259 259
 
260
-    //create table head
261
-    $tHead = elgg_format_element('thead', ['class' => ''], '<tr><th class="thCheck"><input type="checkbox" name="select_all" value="Toggle All" id="table-select-all"></th> <th class="data-table-head"> ' . elgg_echo('friends') . '</th> </tr>');
260
+	//create table head
261
+	$tHead = elgg_format_element('thead', ['class' => ''], '<tr><th class="thCheck"><input type="checkbox" name="select_all" value="Toggle All" id="table-select-all"></th> <th class="data-table-head"> ' . elgg_echo('friends') . '</th> </tr>');
262 262
 
263
-    echo elgg_format_element('table', ['class' => ' wb-tables table friendpickerTable', "data-wb-tables"=>"{ \"ordering\" : false, \"lengthMenu\": [[25, 50, 100, 250], [25, 50, 100, 250]], \"columns\": [ { \"orderable\": false }, null], \"aoColumnDefs\": [ { \"bSearchable\": false, \"aTargets\": [ 0 ] } ] }", 'id' => ''], $tHead . $tBody);
263
+	echo elgg_format_element('table', ['class' => ' wb-tables table friendpickerTable', "data-wb-tables"=>"{ \"ordering\" : false, \"lengthMenu\": [[25, 50, 100, 250], [25, 50, 100, 250]], \"columns\": [ { \"orderable\": false }, null], \"aoColumnDefs\": [ { \"bSearchable\": false, \"aTargets\": [ 0 ] } ] }", 'id' => ''], $tHead . $tBody);
264 264
 
265 265
 
266 266
 
Please login to merge, or discard this patch.
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
 
82 82
 // Sort users by letter
83 83
 if (is_array($vars['entities']) && sizeof($vars['entities'])) {
84
-	foreach($vars['entities'] as $user) {
84
+	foreach ($vars['entities'] as $user) {
85 85
 		$letter = elgg_strtoupper(elgg_substr($user->name, 0, 1));
86 86
 
87 87
 		if (!elgg_substr_count($chararray, $letter)) {
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
 
165 165
 			$col = 0;
166 166
 
167
-			foreach($users[$letter] as $friend) {
167
+			foreach ($users[$letter] as $friend) {
168 168
                
169 169
 				if ($col == 0) {
170 170
 					$collRow .= "<div class='col-xs-12'>";
@@ -176,15 +176,15 @@  discard block
 block discarded – undo
176 176
 				$label = elgg_view_entity_icon($friend, 'small', array('use_hover' => false, 'class' => 'img-responsive'));
177 177
 				$options[$label] = $friend->getGUID();
178 178
 
179
-				if ($vars['highlight'] == 'all' && !in_array($letter,$activeletters)) {
179
+				if ($vars['highlight'] == 'all' && !in_array($letter, $activeletters)) {
180 180
 					$activeletters[] = $letter;
181 181
 				}
182 182
 
183 183
 
184
-				if (in_array($friend->getGUID(),$vars['value'])) {
184
+				if (in_array($friend->getGUID(), $vars['value'])) {
185 185
 					$checked = "checked = \"checked\"";
186 186
                     $checkedValues .= '<input type="checkbox"' . $checked . 'name="' . $name . '[]" id="' . $name . '[]" value="' . $options[$label] . '" />';
187
-					if (!in_array($letter,$activeletters) && $vars['highlight'] == 'default') {
187
+					if (!in_array($letter, $activeletters) && $vars['highlight'] == 'default') {
188 188
 						$activeletters[] = $letter;
189 189
 					}
190 190
 				} else {
@@ -204,7 +204,7 @@  discard block
 block discarded – undo
204 204
 				
205 205
 					$collRow .= $label;
206 206
 				
207
-				$collRow .=	'</div>
207
+				$collRow .= '</div>
208 208
 				</div>
209 209
 				<div class="col-xs-10">';
210 210
                 $collRow .= $friend->name;
@@ -224,7 +224,7 @@  discard block
 block discarded – undo
224 224
                     $list_items = elgg_format_element('td', ['class' => 'data-table-list-item '], $checkedBox);
225 225
                     $list_items .= elgg_format_element('td', ['class' => 'data-table-list-item '], $collRow);
226 226
                     //stick <td> elements in <tr>
227
-                    $tR .= elgg_format_element('tr', ['class' => '',], $list_items);
227
+                    $tR .= elgg_format_element('tr', ['class' => '', ], $list_items);
228 228
 
229 229
                     $collRow = '';
230 230
 
@@ -233,7 +233,7 @@  discard block
 block discarded – undo
233 233
 
234 234
 		}
235 235
 
236
-        if(isset($collRow)){
236
+        if (isset($collRow)) {
237 237
 
238 238
             //$collTable .= '<tr><td>' . $collRow . '</tr></td>';
239 239
 
@@ -275,7 +275,7 @@  discard block
 block discarded – undo
275 275
                 </div>
276 276
             </div>
277 277
                 <div id="storedArea" class="hidden">
278
-        <?php echo $checkedValues;?>
278
+        <?php echo $checkedValues; ?>
279 279
             <script>
280 280
 
281 281
         $('#table-select-all').on('click', function(){
@@ -346,7 +346,7 @@  discard block
 block discarded – undo
346 346
 
347 347
 
348 348
     <div id="storedArea" class="hidden">
349
-        <?php echo $checkedValues;?>
349
+        <?php echo $checkedValues; ?>
350 350
             <script>
351 351
 
352 352
         $('#table-select-all').on('click', function(){
Please login to merge, or discard this patch.
Braces   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -266,8 +266,9 @@  discard block
 block discarded – undo
266 266
 
267 267
 if ($formtarget) {
268 268
 
269
-	if (isset($vars['formcontents']))
270
-		echo $vars['formcontents'];
269
+	if (isset($vars['formcontents'])) {
270
+			echo $vars['formcontents'];
271
+	}
271 272
 
272 273
 ?>
273 274
 
@@ -340,8 +341,7 @@  discard block
 block discarded – undo
340 341
 
341 342
 <?php
342 343
 
343
-}
344
-else {
344
+} else {
345 345
 ?>
346 346
 
347 347
 
Please login to merge, or discard this patch.
mod/wet4/views/default/input/button.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
 	case 'reset':
31 31
 	case 'submit':
32 32
 	case 'image':
33
-    case 'group_search':
33
+	case 'group_search':
34 34
 		break;
35 35
 	default:
36 36
 		$vars['type'] = 'button';
@@ -44,11 +44,11 @@  discard block
 block discarded – undo
44 44
 //Nick I modified the button input to test for group search button so I can put the icon in the button.
45 45
 //Existing buttons should not be affected
46 46
 if($vars['type'] == 'group_search'){
47
-    $button_input ='<button type="submit" '.elgg_format_attributes($vars).'><i class="fa fa-search" aria-hidden="true"></i></button>';
47
+	$button_input ='<button type="submit" '.elgg_format_attributes($vars).'><i class="fa fa-search" aria-hidden="true"></i></button>';
48 48
 } else if($vars['type'] == 'submit'){
49 49
 		  $button_input ='<button type="submit" '.elgg_format_attributes($vars).'>'.$vars['value'].'</button>';
50 50
 } else{
51
-    $button_input = '<input '.elgg_format_attributes($vars).'>';
51
+	$button_input = '<input '.elgg_format_attributes($vars).'>';
52 52
 }
53 53
 
54 54
 echo $button_input;
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -43,12 +43,12 @@
 block discarded – undo
43 43
 }
44 44
 //Nick I modified the button input to test for group search button so I can put the icon in the button.
45 45
 //Existing buttons should not be affected
46
-if($vars['type'] == 'group_search'){
47
-    $button_input ='<button type="submit" '.elgg_format_attributes($vars).'><i class="fa fa-search" aria-hidden="true"></i></button>';
48
-} else if($vars['type'] == 'submit'){
49
-		  $button_input ='<button type="submit" '.elgg_format_attributes($vars).'>'.$vars['value'].'</button>';
50
-} else{
51
-    $button_input = '<input '.elgg_format_attributes($vars).'>';
46
+if ($vars['type'] == 'group_search') {
47
+    $button_input = '<button type="submit" ' . elgg_format_attributes($vars) . '><i class="fa fa-search" aria-hidden="true"></i></button>';
48
+} else if ($vars['type'] == 'submit') {
49
+		  $button_input = '<button type="submit" ' . elgg_format_attributes($vars) . '>' . $vars['value'] . '</button>';
50
+} else {
51
+    $button_input = '<input ' . elgg_format_attributes($vars) . '>';
52 52
 }
53 53
 
54 54
 echo $button_input;
Please login to merge, or discard this patch.
mod/wet4/views/default/event_calendar/show_events_calendar.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
 		// show the empty calendar
44 44
 		$event_list = elgg_view('event_calendar/full_calendar_view', $vars);
45 45
 	} else {
46
-		$event_list = '<p>'.elgg_echo('event_calendar:no_events_found').'</p>';
46
+		$event_list = '<p>' . elgg_echo('event_calendar:no_events_found') . '</p>';
47 47
 		
48 48
 	}
49 49
 }
Please login to merge, or discard this patch.
mod/wet4/views/default/event_calendar/reminder_section.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -10,15 +10,15 @@
 block discarded – undo
10 10
 	} else {
11 11
 		$body .= elgg_view('input/checkbox', array('name' => 'send_reminder', 'value' => 1));
12 12
 	}
13
-	$body .= elgg_echo('elgg_calendar:send_reminder_label'). ' ';
13
+	$body .= elgg_echo('elgg_calendar:send_reminder_label') . ' ';
14 14
 	$numbers = array();
15
-	for ($i=1;$i<60;$i++) {
15
+	for ($i = 1; $i < 60; $i++) {
16 16
 		$numbers[$i] = $i;
17 17
 	}
18 18
 	$intervals = array(
19 19
 		1 => elgg_echo('event_calendar:interval:minute'),
20 20
 		60 => elgg_echo('event_calendar:interval:hour'),
21
-		60*24 => elgg_echo('event_calendar:interval:day'),
21
+		60 * 24 => elgg_echo('event_calendar:interval:day'),
22 22
 	);
23 23
 	
24 24
 	$body .= elgg_view('input/dropdown', array('name' => 'reminder_number', 'options_values' => $numbers, 'value' => $fd['reminder_number'], 'style' => 'display:inline-block; width:auto'));
Please login to merge, or discard this patch.
mod/wet4/views/default/event_calendar/share_section.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -3,22 +3,22 @@
 block discarded – undo
3 3
 $fd = $vars['form_data'];
4 4
 $event_calendar_hide_access = elgg_get_plugin_setting('hide_access', 'event_calendar');
5 5
 $body = '<div class="event-calendar-edit-form-block event-calendar-edit-form-share-block">';
6
-$body .= '<h2>'.elgg_echo('event_calendar:permissions:header').'</h2>';
7
-if($event_calendar_hide_access == 'yes') {
6
+$body .= '<h2>' . elgg_echo('event_calendar:permissions:header') . '</h2>';
7
+if ($event_calendar_hide_access == 'yes') {
8 8
 	$event_calendar_default_access = elgg_get_plugin_setting('default_access', 'event_calendar');
9
-	if($event_calendar_default_access) {
9
+	if ($event_calendar_default_access) {
10 10
 		$body .= elgg_view("input/hidden", array('name' => 'access_id', 'value' => $event_calendar_default_access));
11 11
 	} else {
12 12
 		$body .= elgg_view("input/hidden", array('name' => 'access_id', 'value' => ACCESS_DEFAULT));
13 13
 	}
14 14
 } else {
15
-	$body .= '<p><label>'.elgg_echo('event_calendar:read_access').'</label>';
15
+	$body .= '<p><label>' . elgg_echo('event_calendar:read_access') . '</label>';
16 16
 	$body .= elgg_view("input/access", array('name' => 'access_id', 'value' => $fd['access_id'], 'entity' => get_entity($vars['guid'])));
17 17
 	$body .= '</p>';
18 18
 }
19 19
 if (elgg_is_active_plugin('entity_admins')) {
20
-	$body .= '<div class="event-calendar-edit-form-share"><label>'.elgg_echo("event_calendar:share_ownership:label").'</label>';
21
-	$body .= '<br>'.elgg_echo('event_calendar:share_ownership:description');
20
+	$body .= '<div class="event-calendar-edit-form-share"><label>' . elgg_echo("event_calendar:share_ownership:label") . '</label>';
21
+	$body .= '<br>' . elgg_echo('event_calendar:share_ownership:description');
22 22
 	$body .= elgg_view('input/entity_admins_dropdown', array('entity' => $vars['event']));
23 23
 	$body .= '</div>';
24 24
 }
Please login to merge, or discard this patch.
mod/wet4/views/default/event_calendar/personal_manage_section.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
 		'private' => elgg_echo('event_calendar:personal_manage:by_event:private'),
12 12
 	);
13 13
 	$body .= '<div class="event-calendar-edit-form-block event-calendar-edit-form-membership-block">';
14
-	$body .= '<h2>'.elgg_echo('event_calendar:personal_manage:label').'</h2>';
14
+	$body .= '<h2>' . elgg_echo('event_calendar:personal_manage:label') . '</h2>';
15 15
 	$body .= elgg_view("input/select", array('name' => 'personal_manage', 'value' => $fd['personal_manage'], 'options_values' => $personal_manage_options, 'class' => 'list-unstyled'));
16 16
 	$body .= '<br clear="both" />';
17 17
 	$body .= '</div>';
Please login to merge, or discard this patch.
mod/wet4/views/default/event_calendar/show_events.php 3 patches
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -65,16 +65,16 @@
 block discarded – undo
65 65
 	if(elgg_instanceof($owner, 'group')) { // add guid to the link if it a group
66 66
 
67 67
 		$new_link = elgg_view('output/url', array(
68
-        'href' => "event_calendar/add/$owner->guid",
69
-        'text' => elgg_echo('event_calendar:new'),
70
-        'class' => 'btn btn-primary pull-right',
71
-    	));
68
+		'href' => "event_calendar/add/$owner->guid",
69
+		'text' => elgg_echo('event_calendar:new'),
70
+		'class' => 'btn btn-primary pull-right',
71
+		));
72 72
 	}else{
73 73
 		$new_link = elgg_view('output/url', array(
74
-        'href' => "event_calendar/add",
75
-        'text' => elgg_echo('event_calendar:new'),
76
-        'class' => 'btn btn-primary pull-right',
77
-    	));
74
+		'href' => "event_calendar/add",
75
+		'text' => elgg_echo('event_calendar:new'),
76
+		'class' => 'btn btn-primary pull-right',
77
+		));
78 78
 	}
79 79
 
80 80
 		 echo'<h2 class="h3">'.elgg_echo('event_calendar:comming').'</h2>';
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
 		// show the empty calendar
44 44
 		$event_list = elgg_view('event_calendar/full_calendar_view', $vars);
45 45
 	} else {
46
-		$event_list = '<p>'.elgg_echo('event_calendar:no_events_found').'</p>';
46
+		$event_list = '<p>' . elgg_echo('event_calendar:no_events_found') . '</p>';
47 47
 	}
48 48
 }
49 49
 if ($listing_format == 'paged' || $listing_format == 'full') {
@@ -62,14 +62,14 @@  discard block
 block discarded – undo
62 62
 	$event_list = elgg_view_entity_list($vars['events'], $options);
63 63
 
64 64
 	$owner = elgg_get_page_owner_entity();
65
-	if(elgg_instanceof($owner, 'group')) { // add guid to the link if it a group
65
+	if (elgg_instanceof($owner, 'group')) { // add guid to the link if it a group
66 66
 
67 67
 		$new_link = elgg_view('output/url', array(
68 68
         'href' => "event_calendar/add/$owner->guid",
69 69
         'text' => elgg_echo('event_calendar:new'),
70 70
         'class' => 'btn btn-primary pull-right',
71 71
     	));
72
-	}else{
72
+	} else {
73 73
 		$new_link = elgg_view('output/url', array(
74 74
         'href' => "event_calendar/add",
75 75
         'text' => elgg_echo('event_calendar:new'),
@@ -77,11 +77,11 @@  discard block
 block discarded – undo
77 77
     	));
78 78
 	}
79 79
 
80
-		 echo'<h2 class="h3">'.elgg_echo('event_calendar:comming').'</h2>';
80
+		 echo'<h2 class="h3">' . elgg_echo('event_calendar:comming') . '</h2>';
81 81
 		 echo $new_link;
82 82
 	if (empty($event_list)) {
83 83
 		// show the empty calendar
84
-		$event_list = '<p>'.elgg_echo('event_calendar:no_events_found').'</p>';
84
+		$event_list = '<p>' . elgg_echo('event_calendar:no_events_found') . '</p>';
85 85
 		echo $event_list;
86 86
 	} else {
87 87
 		//show the list of event
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
69 69
         'text' => elgg_echo('event_calendar:new'),
70 70
         'class' => 'btn btn-primary pull-right',
71 71
     	));
72
-	}else{
72
+	} else{
73 73
 		$new_link = elgg_view('output/url', array(
74 74
         'href' => "event_calendar/add",
75 75
         'text' => elgg_echo('event_calendar:new'),
Please login to merge, or discard this patch.
mod/wet4/views/default/event_calendar/add_info.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
 $count = event_calendar_get_users_for_event($vars['entity']->guid, 0, 0, true);
9 9
 		if ($count == 1) {
10 10
 			//$calendar_text = '<i class="fa fa-calendar fa-lg icon-unsel"><span class="wb-inv"></span></i> (1)';
11
-            $calendar_text = elgg_echo('event_calendar:personal_event_calendars_link_one');
11
+			$calendar_text = elgg_echo('event_calendar:personal_event_calendars_link_one');
12 12
 		} else {
13 13
 			$calendar_text = elgg_echo('event_calendar:personal_event_calendars_link', array($count));
14 14
 			//$number = $count;
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -15,13 +15,13 @@
 block discarded – undo
15 15
 			//$calendar_text = '<i class="fa fa-calendar fa-lg icon-unsel"><span class="wb-inv"></span></i> ('. $number.')';
16 16
 		}
17 17
 
18
-		echo '<a href="../../../event_calendar/display_users/'.$vars["entity"]->guid.'"> '.$calendar_text.' </a><br><br>';
18
+		echo '<a href="../../../event_calendar/display_users/' . $vars["entity"]->guid . '"> ' . $calendar_text . ' </a><br><br>';
19 19
 
20
-echo '<b>Organizer:</b> '.$vars['entity']->contact.'<br>';
21
-echo '<b>Email:</b> '.'<a href="mailto:'. $vars['entity']->contact_email.'">'.$vars['entity']->contact_email.'</a><br>';
22
-echo '<b>Phone:</b> '.$vars['entity']->contact_phone.'<br>';
23
-echo '<b>Fees:</b> '.$vars['entity']->fees.'<br>';
24
-echo '<b>Language:</b> '.$vars['entity']->language.'<br>';
20
+echo '<b>Organizer:</b> ' . $vars['entity']->contact . '<br>';
21
+echo '<b>Email:</b> ' . '<a href="mailto:' . $vars['entity']->contact_email . '">' . $vars['entity']->contact_email . '</a><br>';
22
+echo '<b>Phone:</b> ' . $vars['entity']->contact_phone . '<br>';
23
+echo '<b>Fees:</b> ' . $vars['entity']->fees . '<br>';
24
+echo '<b>Language:</b> ' . $vars['entity']->language . '<br>';
25 25
 
26 26
 	echo'</p></div>
27 27
 </section>';
Please login to merge, or discard this patch.
mod/wet4/views/default/event_calendar/groupprofile_calendar.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -24,17 +24,17 @@
 block discarded – undo
24 24
 	$num = 4;
25 25
 	// Get the upcoming events
26 26
 	$start_date = time(); // now
27
-	$end_date = $start_date + 60*60*24*365*2; // maximum is two years from now
27
+	$end_date = $start_date + 60 * 60 * 24 * 365 * 2; // maximum is two years from now
28 28
 	$events = event_calendar_get_events_between($start_date, $end_date, false, $num, 0, elgg_get_page_owner_guid());
29 29
 	//elgg_view('event_calendar/show_events_calendar');
30 30
 	// If there are any events to view, view them
31 31
 	if (is_array($events) && sizeof($events) > 0) {
32 32
 
33
-		foreach($events as $event) {
33
+		foreach ($events as $event) {
34 34
 			echo elgg_view("object/event_calendar", array('entity' => $event['event']));
35 35
 		}
36 36
 
37
-	}else{
37
+	} else {
38 38
 
39 39
 		echo elgg_echo('event_calendar:no_events_found');
40 40
 	}
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
 			echo elgg_view("object/event_calendar", array('entity' => $event['event']));
35 35
 		}
36 36
 
37
-	}else{
37
+	} else{
38 38
 
39 39
 		echo elgg_echo('event_calendar:no_events_found');
40 40
 	}
Please login to merge, or discard this patch.