Test Setup Failed
Pull Request — gcconnex (#1459)
by Ilia
05:10
created
mod/missions/views/default/page/elements/language-dropdown.php 1 patch
Indentation   +26 added lines, -26 removed lines patch added patch discarded remove patch
@@ -22,51 +22,51 @@
 block discarded – undo
22 22
 $language_oral_proficiency_french = $vars['mission_metadata']['lop_french'];
23 23
 
24 24
 if (elgg_is_sticky_form('ldropfill')) {
25
-    extract(elgg_get_sticky_values('ldropfill'));
26
-    // elgg_clear_sticky_form('thirdfill');
25
+	extract(elgg_get_sticky_values('ldropfill'));
26
+	// elgg_clear_sticky_form('thirdfill');
27 27
 }
28 28
 
29 29
 $input_english_written_comprehension = elgg_view('input/dropdown', array(
30
-    'name' => 'lwc_english',
31
-    'value' => $language_written_comprehension_english,
32
-    'options' => $array,
30
+	'name' => 'lwc_english',
31
+	'value' => $language_written_comprehension_english,
32
+	'options' => $array,
33 33
 	'style' => 'min-width:63px;margin:auto;',
34
-    'id' => 'english-language-written-comprehension-dropdown-input'
34
+	'id' => 'english-language-written-comprehension-dropdown-input'
35 35
 ));
36 36
 $input_french_written_comprehension = elgg_view('input/dropdown', array(
37
-    'name' => 'lwc_french',
38
-    'value' => $language_written_comprehension_french,
39
-    'options' => $array,
37
+	'name' => 'lwc_french',
38
+	'value' => $language_written_comprehension_french,
39
+	'options' => $array,
40 40
 	'style' => 'min-width:63px;margin:auto;',
41
-    'id' => 'french-language-written-comprehension-dropdown-input'
41
+	'id' => 'french-language-written-comprehension-dropdown-input'
42 42
 ));
43 43
 $input_english_written_expression = elgg_view('input/dropdown', array(
44
-    'name' => 'lwe_english',
45
-    'value' => $language_written_expression_english,
46
-    'options' => $array,
44
+	'name' => 'lwe_english',
45
+	'value' => $language_written_expression_english,
46
+	'options' => $array,
47 47
 	'style' => 'min-width:63px;margin:auto;',
48
-    'id' => 'english-language-written-expression-dropdown-input'
48
+	'id' => 'english-language-written-expression-dropdown-input'
49 49
 ));
50 50
 $input_french_written_expression = elgg_view('input/dropdown', array(
51
-    'name' => 'lwe_french',
52
-    'value' => $language_written_expression_french,
53
-    'options' => $array,
51
+	'name' => 'lwe_french',
52
+	'value' => $language_written_expression_french,
53
+	'options' => $array,
54 54
 	'style' => 'min-width:63px;margin:auto;',
55
-    'id' => 'french-language-written-expression-dropdown-input'
55
+	'id' => 'french-language-written-expression-dropdown-input'
56 56
 ));
57 57
 $input_english_oral_proficiency = elgg_view('input/dropdown', array(
58
-    'name' => 'lop_english',
59
-    'value' => $language_oral_proficiency_english,
60
-    'options' => $array,
58
+	'name' => 'lop_english',
59
+	'value' => $language_oral_proficiency_english,
60
+	'options' => $array,
61 61
 	'style' => 'min-width:63px;margin:auto;',
62
-    'id' => 'english-language-oral-proficiency-dropdown-input'
62
+	'id' => 'english-language-oral-proficiency-dropdown-input'
63 63
 ));
64 64
 $input_french_oral_proficiency = elgg_view('input/dropdown', array(
65
-    'name' => 'lop_french',
66
-    'value' => $language_oral_proficiency_french,
67
-    'options' => $array,
65
+	'name' => 'lop_french',
66
+	'value' => $language_oral_proficiency_french,
67
+	'options' => $array,
68 68
 	'style' => 'min-width:63px;margin:auto;',
69
-    'id' => 'french-language-oral-proficiency-dropdown-input'
69
+	'id' => 'french-language-oral-proficiency-dropdown-input'
70 70
 ));
71 71
 ?>
72 72
 
Please login to merge, or discard this patch.
mod/missions/views/default/page/elements/main-find.php 1 patch
Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -74,8 +74,8 @@  discard block
 block discarded – undo
74 74
 		'limit' => $max,
75 75
 		'pagination' => true,
76 76
 		'list_type' => 'gallery',
77
-        'gallery_class'=>'wb-eqht clearfix',
78
-        'item_class'=>'col-sm-6 col-md-4 hght-inhrt',
77
+		'gallery_class'=>'wb-eqht clearfix',
78
+		'item_class'=>'col-sm-6 col-md-4 hght-inhrt',
79 79
 		
80 80
 		'mission_full_view' => false
81 81
 ), $offset, $max);
@@ -96,24 +96,24 @@  discard block
 block discarded – undo
96 96
 $role_type_field = $_SESSION['missions_role_field_value'];
97 97
 
98 98
 if ($opp_type_field || $role_type_field) {
99
-    $clear_link = elgg_view('output/url', array(
100
-        'text' => elgg_echo('missions:clear_filter'),
101
-        'href' => 'action/missions/sort-missions-form?opp_filter=&role_filter=',
102
-        'class' => 'mrgn-lft-sm',
103
-        'is_action' => true,
104
-        'is_trusted' => true,
105
-    ));
99
+	$clear_link = elgg_view('output/url', array(
100
+		'text' => elgg_echo('missions:clear_filter'),
101
+		'href' => 'action/missions/sort-missions-form?opp_filter=&role_filter=',
102
+		'class' => 'mrgn-lft-sm',
103
+		'is_action' => true,
104
+		'is_trusted' => true,
105
+	));
106 106
 }
107 107
 
108 108
 // Links to the post opportunity pages.
109 109
 //if($last_segment != 'members' && $last_segment != 'archive' && $last_segment != 'analytics') {
110 110
 $create_button .= elgg_view('output/url', array(
111
-        'href' => elgg_get_site_url() . 'action/missions/pre-create-opportunity',
112
-        'text' => elgg_echo('missions:create_opportunity'),
113
-        'is_action' => true,
114
-        'class' => 'elgg-button btn btn-primary',
115
-        'style' => 'float:right;',
116
-        'id' => 'mission-create-opportunity-button'
111
+		'href' => elgg_get_site_url() . 'action/missions/pre-create-opportunity',
112
+		'text' => elgg_echo('missions:create_opportunity'),
113
+		'is_action' => true,
114
+		'class' => 'elgg-button btn btn-primary',
115
+		'style' => 'float:right;',
116
+		'id' => 'mission-create-opportunity-button'
117 117
 )) . '</br>';
118 118
 	//}
119 119
 
@@ -123,17 +123,17 @@  discard block
 block discarded – undo
123 123
 
124 124
 <div class="col-sm-12">
125 125
     <?php
126
-    /* Nick - just testing what the job type actually outputs
126
+	/* Nick - just testing what the job type actually outputs
127 127
 foreach($entity_list as $entity){
128 128
     echo $entity->job_type . ' - ';  
129 129
 }*/
130
-    ?>
130
+	?>
131 131
     <div class="col-sm-8">
132 132
 	<h2 class="h4 mrgn-tp-md mrgn-bttm-0"><?php echo elgg_echo('missions:search_for_opportunities') . ':'; ?></h2>
133 133
 	<?php 
134 134
 		//echo $simple_search_form;
135 135
 		echo $advanced_field;
136
-    ?>
136
+	?>
137 137
     </div>
138 138
 
139 139
     <div class="col-sm-4">
Please login to merge, or discard this patch.
mod/missions/views/default/page/elements/mission-manager-info.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -78,8 +78,8 @@
 block discarded – undo
78 78
 		<div>
79 79
 			<span name="mission-manager-department">
80 80
             <?php //echo ucwords(strtolower($department));
81
-            echo $job_title;
82
-            ?></span>
81
+			echo $job_title;
82
+			?></span>
83 83
 		</div>
84 84
 	</div>
85 85
 </div>
Please login to merge, or discard this patch.
mod/missions/views/default/missions/element-select.php 1 patch
Indentation   +164 added lines, -164 removed lines patch added patch discarded remove patch
@@ -35,200 +35,200 @@
 block discarded – undo
35 35
 // This handles input fields for mission and candidate searching.
36 36
 if($second == 'true') {
37 37
 	// This section handles second javascript type selection.
38
-    switch ($dropdown_value) {
39
-        case elgg_echo('missions:publication_date'):
40
-        case elgg_echo('missions:end_year'):
41
-            $content .= '<div>' . elgg_view('input/dropdown', array(
42
-                'name' => $dropdown_name . '_operand',
43
-                'value' => '=',
44
-                'options' => array('=', '>=', '<=')
45
-            )) . '</div>';
38
+	switch ($dropdown_value) {
39
+		case elgg_echo('missions:publication_date'):
40
+		case elgg_echo('missions:end_year'):
41
+			$content .= '<div>' . elgg_view('input/dropdown', array(
42
+				'name' => $dropdown_name . '_operand',
43
+				'value' => '=',
44
+				'options' => array('=', '>=', '<=')
45
+			)) . '</div>';
46 46
             
47
-            $content .= '<div>' . elgg_view('input/date', array(
48
-            		'name' => $dropdown_name . '_value',
49
-            		'value' => ''
50
-            )) . '</div>';
51
-            break;
47
+			$content .= '<div>' . elgg_view('input/date', array(
48
+					'name' => $dropdown_name . '_value',
49
+					'value' => ''
50
+			)) . '</div>';
51
+			break;
52 52
             
53
-        default:
54
-            $content .= elgg_view('input/text', array(
55
-                'name' => $dropdown_name . '_value',
56
-                'value' => ''
57
-            ));
58
-            break;
59
-    }
53
+		default:
54
+			$content .= elgg_view('input/text', array(
55
+				'name' => $dropdown_name . '_value',
56
+				'value' => ''
57
+			));
58
+			break;
59
+	}
60 60
 }
61 61
 else {
62 62
 	// This section handles first javascript type selection.
63
-    switch ($dropdown_value) {
64
-        case '':
65
-            break;
63
+	switch ($dropdown_value) {
64
+		case '':
65
+			break;
66 66
         
67
-        /*case 'missions:user_department':
67
+		/*case 'missions:user_department':
68 68
         	
69 69
         	break;*/
70 70
             
71
-        case elgg_echo('missions:portfolio'):
72
-            $content .= elgg_view('input/dropdown', array(
73
-                'name' => $dropdown_name . '_element',
74
-                'value' => '',
75
-                'options' => array('', elgg_echo('missions:title'), /*elgg_echo('missions:publication_date')*/),
76
-                'onchange' => 'element_switch(this)'
77
-            ));
78
-            break;
71
+		case elgg_echo('missions:portfolio'):
72
+			$content .= elgg_view('input/dropdown', array(
73
+				'name' => $dropdown_name . '_element',
74
+				'value' => '',
75
+				'options' => array('', elgg_echo('missions:title'), /*elgg_echo('missions:publication_date')*/),
76
+				'onchange' => 'element_switch(this)'
77
+			));
78
+			break;
79 79
             
80
-        case elgg_echo('missions:education'):
81
-            $content .= elgg_view('input/dropdown', array(
82
-                'name' => $dropdown_name . '_element',
83
-                'value' => '',
84
-                'options' => array('', elgg_echo('missions:title'), elgg_echo('missions:degree'), elgg_echo('missions:field'), elgg_echo('missions:end_year')),
85
-                'onchange' => 'element_switch(this)'
86
-            ));
87
-            break;
80
+		case elgg_echo('missions:education'):
81
+			$content .= elgg_view('input/dropdown', array(
82
+				'name' => $dropdown_name . '_element',
83
+				'value' => '',
84
+				'options' => array('', elgg_echo('missions:title'), elgg_echo('missions:degree'), elgg_echo('missions:field'), elgg_echo('missions:end_year')),
85
+				'onchange' => 'element_switch(this)'
86
+			));
87
+			break;
88 88
             
89
-        case elgg_echo('missions:experience'):
90
-            $content .= elgg_view('input/dropdown', array(
91
-                'name' => $dropdown_name . '_element',
92
-                'value' => '',
93
-                'options' => array('', elgg_echo('missions:title'), elgg_echo('missions:organization'), elgg_echo('missions:end_year')),
94
-                'onchange' => 'element_switch(this)'
95
-            ));
96
-            break;
89
+		case elgg_echo('missions:experience'):
90
+			$content .= elgg_view('input/dropdown', array(
91
+				'name' => $dropdown_name . '_element',
92
+				'value' => '',
93
+				'options' => array('', elgg_echo('missions:title'), elgg_echo('missions:organization'), elgg_echo('missions:end_year')),
94
+				'onchange' => 'element_switch(this)'
95
+			));
96
+			break;
97 97
         
98
-        case elgg_echo('missions:duration'):
99
-        case elgg_echo('missions:start_time'):
100
-        	$content .= elgg_view('input/dropdown', array(
101
-        			'name' => $dropdown_name . '_operand',
102
-        			'value' => htmlspecialchars_decode($all_values['operand']),
103
-        			'options' => array('=', '>=', '<='),
104
-        			'style' => 'display:inline-block'
105
-        	));
98
+		case elgg_echo('missions:duration'):
99
+		case elgg_echo('missions:start_time'):
100
+			$content .= elgg_view('input/dropdown', array(
101
+					'name' => $dropdown_name . '_operand',
102
+					'value' => htmlspecialchars_decode($all_values['operand']),
103
+					'options' => array('=', '>=', '<='),
104
+					'style' => 'display:inline-block'
105
+			));
106 106
         	
107
-            $content .= elgg_view('input/text', array(
108
-                	'name' => $dropdown_name . '_element',
109
-                	'value' => $all_values['value_answer'],
110
-                	'placeholder' => 'HH:mm',
111
-        			'style' => 'display:inline-block'
112
-            ));
107
+			$content .= elgg_view('input/text', array(
108
+					'name' => $dropdown_name . '_element',
109
+					'value' => $all_values['value_answer'],
110
+					'placeholder' => 'HH:mm',
111
+					'style' => 'display:inline-block'
112
+			));
113 113
             
114
-            $content .= elgg_view('input/dropdown', array(
115
-            		'name' => $dropdown_name . '_element_day',
116
-            		'value' => $all_values['day'],
117
-            		'options' => $array_day
118
-            ));
119
-            break;
114
+			$content .= elgg_view('input/dropdown', array(
115
+					'name' => $dropdown_name . '_element_day',
116
+					'value' => $all_values['day'],
117
+					'options' => $array_day
118
+			));
119
+			break;
120 120
             
121
-        case elgg_echo('missions:time'):
122
-        	$content .= elgg_view('input/dropdown', array(
123
-        			'name' => $dropdown_name . '_operand',
124
-        			'value' => htmlspecialchars_decode($all_values['operand']),
125
-        			'options' => array('=', '>=', '<='),
126
-        			'style' => 'display:inline-block'
127
-        	));
121
+		case elgg_echo('missions:time'):
122
+			$content .= elgg_view('input/dropdown', array(
123
+					'name' => $dropdown_name . '_operand',
124
+					'value' => htmlspecialchars_decode($all_values['operand']),
125
+					'options' => array('=', '>=', '<='),
126
+					'style' => 'display:inline-block'
127
+			));
128 128
         	 
129
-        	$content .= elgg_view('input/text', array(
130
-        			'name' => $dropdown_name . '_element',
131
-        			'value' => $all_values['value_answer'],
132
-        			'style' => 'display:inline-block'
133
-        	));
134
-        	break;
129
+			$content .= elgg_view('input/text', array(
130
+					'name' => $dropdown_name . '_element',
131
+					'value' => $all_values['value_answer'],
132
+					'style' => 'display:inline-block'
133
+			));
134
+			break;
135 135
         	
136
-        case elgg_echo('missions:period'):
137
-        	$content .= elgg_view('input/dropdown', array(
138
-        			'name' => $dropdown_name . '_element',
139
-        			'value' => $all_values['value_answer'],
140
-        			'options_values' => mm_echo_explode_setting_string(elgg_get_plugin_setting('time_rate_string', 'missions'))
141
-        	));
142
-        	break;
136
+		case elgg_echo('missions:period'):
137
+			$content .= elgg_view('input/dropdown', array(
138
+					'name' => $dropdown_name . '_element',
139
+					'value' => $all_values['value_answer'],
140
+					'options_values' => mm_echo_explode_setting_string(elgg_get_plugin_setting('time_rate_string', 'missions'))
141
+			));
142
+			break;
143 143
         
144
-        case elgg_echo('missions:language'):
145
-            $content .= elgg_view('input/dropdown', array(
146
-                'name' => $dropdown_name . '_element',
147
-                'value' => $all_values['value_answer'],
148
-                'options' => array( elgg_echo('missions:english'),elgg_echo('missions:french'))
149
-            ));
150
-            $content .= '<br>';
144
+		case elgg_echo('missions:language'):
145
+			$content .= elgg_view('input/dropdown', array(
146
+				'name' => $dropdown_name . '_element',
147
+				'value' => $all_values['value_answer'],
148
+				'options' => array( elgg_echo('missions:english'),elgg_echo('missions:french'))
149
+			));
150
+			$content .= '<br>';
151 151
             
152
-            $content .= '<div class="col-sm-6">' . elgg_echo('missions:reading') . ':</div>';
153
-            $content .= '<div class="col-sm-6">' . elgg_view('input/dropdown', array(
154
-                'name' => $dropdown_name . '_element_lwc',
155
-                'value' => $all_values['reading'],
156
-                'options_values' => $array_lang
157
-            )) . '</div>';
152
+			$content .= '<div class="col-sm-6">' . elgg_echo('missions:reading') . ':</div>';
153
+			$content .= '<div class="col-sm-6">' . elgg_view('input/dropdown', array(
154
+				'name' => $dropdown_name . '_element_lwc',
155
+				'value' => $all_values['reading'],
156
+				'options_values' => $array_lang
157
+			)) . '</div>';
158 158
             
159
-            $content .= '<div class="col-sm-6">' . elgg_echo('missions:writing') . ':</div>';
160
-            $content .= '<div class="col-sm-6">' . elgg_view('input/dropdown', array(
161
-                'name' => $dropdown_name . '_element_lwe',
162
-                'value' => $all_values['writing'],
163
-                'options_values' => $array_lang
164
-            )) . '</div>';
159
+			$content .= '<div class="col-sm-6">' . elgg_echo('missions:writing') . ':</div>';
160
+			$content .= '<div class="col-sm-6">' . elgg_view('input/dropdown', array(
161
+				'name' => $dropdown_name . '_element_lwe',
162
+				'value' => $all_values['writing'],
163
+				'options_values' => $array_lang
164
+			)) . '</div>';
165 165
             
166
-            $content .= '<div class="col-sm-6">' . elgg_echo('missions:oral') . ':</div>';
167
-            $content .= '<div class="col-sm-6">' . elgg_view('input/dropdown', array(
168
-                'name' => $dropdown_name . '_element_lop',
169
-                'value' => $all_values['oral'],
170
-                'options_values' => $array_lang
171
-            )) . '</div>';
172
-            break;
166
+			$content .= '<div class="col-sm-6">' . elgg_echo('missions:oral') . ':</div>';
167
+			$content .= '<div class="col-sm-6">' . elgg_view('input/dropdown', array(
168
+				'name' => $dropdown_name . '_element_lop',
169
+				'value' => $all_values['oral'],
170
+				'options_values' => $array_lang
171
+			)) . '</div>';
172
+			break;
173 173
         
174
-        case elgg_echo('missions:security_clearance'):
175
-            $content .= elgg_view('input/dropdown', array(
176
-                'name' => $dropdown_name . '_element',
177
-                'value' => $all_values['value_answer'],
178
-                'options_values' => $array_sec
179
-            ));
180
-            break;
174
+		case elgg_echo('missions:security_clearance'):
175
+			$content .= elgg_view('input/dropdown', array(
176
+				'name' => $dropdown_name . '_element',
177
+				'value' => $all_values['value_answer'],
178
+				'options_values' => $array_sec
179
+			));
180
+			break;
181 181
             
182
-        case elgg_echo('missions:type'):
183
-        	$content .= elgg_view('input/dropdown', array(
184
-        			'name' => $dropdown_name . '_element',
185
-        			'value' => '',
186
-        			'options_values' => mm_echo_explode_setting_string(elgg_get_plugin_setting('opportunity_type_string', 'missions'))
187
-        	));
188
-        	break;
182
+		case elgg_echo('missions:type'):
183
+			$content .= elgg_view('input/dropdown', array(
184
+					'name' => $dropdown_name . '_element',
185
+					'value' => '',
186
+					'options_values' => mm_echo_explode_setting_string(elgg_get_plugin_setting('opportunity_type_string', 'missions'))
187
+			));
188
+			break;
189 189
             
190
-        case elgg_echo('missions:program_area'):
191
-        	$content .= elgg_view('input/dropdown', array(
192
-        			'name' => $dropdown_name . '_element',
193
-        			'value' => $all_values['value_answer'],
194
-        			'options_values' => mm_echo_explode_setting_string(elgg_get_plugin_setting('program_area_string', 'missions'))
195
-        	));
196
-        	break;
190
+		case elgg_echo('missions:program_area'):
191
+			$content .= elgg_view('input/dropdown', array(
192
+					'name' => $dropdown_name . '_element',
193
+					'value' => $all_values['value_answer'],
194
+					'options_values' => mm_echo_explode_setting_string(elgg_get_plugin_setting('program_area_string', 'missions'))
195
+			));
196
+			break;
197 197
             
198
-        case elgg_echo('missions:work_remotely'):
199
-        if ($all_values['value_answer'] == 'on')
200
-            $checked = 'checked';
198
+		case elgg_echo('missions:work_remotely'):
199
+		if ($all_values['value_answer'] == 'on')
200
+			$checked = 'checked';
201 201
         
202
-        	$content .= elgg_view('input/checkbox', array(
203
-        			'name' => $dropdown_name . '_element',
204
-                    'checked' => $checked
205
-        	));
206
-        	break;
202
+			$content .= elgg_view('input/checkbox', array(
203
+					'name' => $dropdown_name . '_element',
204
+					'checked' => $checked
205
+			));
206
+			break;
207 207
             
208
-        case elgg_echo('missions:location'):
209
-        	$content .= elgg_view('input/dropdown', array(
210
-        			'name' => $dropdown_name . '_element',
211
-				    'value' => $all_values['value_answer'],
212
-				    'options_values' => mm_echo_explode_setting_string(elgg_get_plugin_setting('province_string', 'missions')),
213
-        	));
214
-        	break;
208
+		case elgg_echo('missions:location'):
209
+			$content .= elgg_view('input/dropdown', array(
210
+					'name' => $dropdown_name . '_element',
211
+					'value' => $all_values['value_answer'],
212
+					'options_values' => mm_echo_explode_setting_string(elgg_get_plugin_setting('province_string', 'missions')),
213
+			));
214
+			break;
215 215
             
216
-        case elgg_echo('missions:skill'):
217
-        case elgg_echo('missions:key_skills'):
218
-        	$content .= elgg_view('missions/add-skill', array(
219
-        			'name_override' => $dropdown_name . '_element',
220
-        			'no_delete' => true,
221
-                    'value' => $all_values['value_answer'],
222
-        	));
223
-        	break;
216
+		case elgg_echo('missions:skill'):
217
+		case elgg_echo('missions:key_skills'):
218
+			$content .= elgg_view('missions/add-skill', array(
219
+					'name_override' => $dropdown_name . '_element',
220
+					'no_delete' => true,
221
+					'value' => $all_values['value_answer'],
222
+			));
223
+			break;
224 224
         
225
-        default:
225
+		default:
226 226
 
227
-            $content .= elgg_view('input/text', array(
228
-                'name' => $dropdown_name . '_element',
229
-                'value' => $all_values['value_answer'],
230
-            ));
231
-    }
227
+			$content .= elgg_view('input/text', array(
228
+				'name' => $dropdown_name . '_element',
229
+				'value' => $all_values['value_answer'],
230
+			));
231
+	}
232 232
 }
233 233
 
234 234
 echo $content;
235 235
\ No newline at end of file
Please login to merge, or discard this patch.
mod/missions/views/default/user/mission-candidate.php 1 patch
Indentation   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -34,8 +34,8 @@  discard block
 block discarded – undo
34 34
 }
35 35
 
36 36
 $user_link = elgg_view('output/url', array(
37
-	    'href' => $user->getURL(),
38
-	    'text' => $user->name
37
+		'href' => $user->getURL(),
38
+		'text' => $user->name
39 39
 ));
40 40
 
41 41
 // Displays search feedback from simple search.
@@ -43,14 +43,14 @@  discard block
 block discarded – undo
43 43
 if($feedback_string != '') {
44 44
 	$feedback_content = '<h4 class="mrgn-tp-sm mrgn-bttm-0">' . elgg_echo('missions:user_matched_by') . ':</h4>';
45 45
 	$count = 1;
46
-    $feedback_array = explode(',', $feedback_string);
46
+	$feedback_array = explode(',', $feedback_string);
47 47
     
48
-    foreach($feedback_array as $feedback) {
49
-        if($feedback) {
50
-            $feedback_content .= '<div class="user-found-by" name="search-feedback-' . $count . '">' . $feedback . '</div>';
51
-        }
52
-        $count++;
53
-    }
48
+	foreach($feedback_array as $feedback) {
49
+		if($feedback) {
50
+			$feedback_content .= '<div class="user-found-by" name="search-feedback-' . $count . '">' . $feedback . '</div>';
51
+		}
52
+		$count++;
53
+	}
54 54
 }
55 55
 
56 56
 $options['type'] = 'object';
@@ -67,12 +67,12 @@  discard block
 block discarded – undo
67 67
 	$count++;
68 68
 }
69 69
 if(count($user_skils >4)){
70
-    $count =1;
71
-    foreach($user_skills as $skill) {
70
+	$count =1;
71
+	foreach($user_skills as $skill) {
72 72
     
73 73
 	$skill_set_more .= '<span name="user-skill-' . $count . '" class="mission-skills" title="'.$skill->title.'">' . $skill->title . '</span>';
74 74
 	$count++;
75
-    }
75
+	}
76 76
 }
77 77
 
78 78
 
@@ -87,19 +87,19 @@  discard block
 block discarded – undo
87 87
 					&& !check_entity_relationship($mission->guid, 'mission_applied', $user->guid)
88 88
 					&& !check_entity_relationship($mission->guid, 'mission_accepted', $user->guid)) {
89 89
 				$button_content = elgg_view('output/url', array(
90
-				        'href' => elgg_get_site_url() . 'action/missions/invite-user?aid=' . $user->guid . '&mid=' . $mission_guid,
91
-				        'text' => elgg_echo('missions:invite_user_to_mission'),
90
+						'href' => elgg_get_site_url() . 'action/missions/invite-user?aid=' . $user->guid . '&mid=' . $mission_guid,
91
+						'text' => elgg_echo('missions:invite_user_to_mission'),
92 92
 						'is_action' => true,
93
-				        'class' => 'elgg-button btn btn-default'
94
-			    ));
93
+						'class' => 'elgg-button btn btn-default'
94
+				));
95 95
 			}
96 96
 			else {
97 97
 				$button_content .= elgg_view('output/url', array(
98
-				        'href' => '',
99
-				        'text' => elgg_echo('missions:already_invited'),
100
-				        'class' => 'elgg-button btn btn-default center-block',
98
+						'href' => '',
99
+						'text' => elgg_echo('missions:already_invited'),
100
+						'class' => 'elgg-button btn btn-default center-block',
101 101
 						'disabled' => true
102
-			    ));
102
+				));
103 103
 			}
104 104
 		}
105 105
 	}
@@ -111,9 +111,9 @@  discard block
 block discarded – undo
111 111
 					'class' => 'elgg-button btn btn-default'
112 112
 			));*/
113 113
 			$button_content = elgg_view_form('missions/mission-invite-selector', array(
114
-			    	'class' => 'form-horizontal'
114
+					'class' => 'form-horizontal'
115 115
 			), array(
116
-			    	'candidate_guid' => $user->guid
116
+					'candidate_guid' => $user->guid
117 117
 			));
118 118
 		}
119 119
 	}
@@ -131,9 +131,9 @@  discard block
 block discarded – undo
131 131
 	<div class="col-xs-12 user-info-content clearfix">
132 132
 		<div class="col-xs-12 user-avatar">
133 133
 			<?php echo elgg_view_entity_icon($user, 'medium', array(
134
-                'use_hover' => false,
135
-                'show_badge' => false,
136
-            )); ?>
134
+				'use_hover' => false,
135
+				'show_badge' => false,
136
+			)); ?>
137 137
 		</div>
138 138
 		<div class="col-xs-12 mrgn-bttm-sm">
139 139
 			<h3 name="user-name" class="mrgn-tp-sm"><?php echo $user_link; ?></h3>
Please login to merge, or discard this patch.
mod/missions/views/default/forms/missions/sort-missions-form.php 1 patch
Indentation   +36 added lines, -36 removed lines patch added patch discarded remove patch
@@ -28,28 +28,28 @@  discard block
 block discarded – undo
28 28
 
29 29
 $opp_types = explode(',',elgg_get_plugin_setting('opportunity_type_string', 'missions'));
30 30
 foreach($opp_types as $k => $v){
31
-    //Nick - Put the things in an elgg echo
32
-     $opp_types2[elgg_echo($v)] = $opp_types[$k];   
31
+	//Nick - Put the things in an elgg echo
32
+	 $opp_types2[elgg_echo($v)] = $opp_types[$k];   
33 33
 }
34 34
 
35 35
 $input_opp_types_filter = elgg_view('input/checkboxes', array(
36
-    'name'=>'opp_filter',
37
-    'value'=>$opp_type_field,
38
-    'options'=> $opp_types2,
39
-    'class'=>' list-unstyled filter-opp-type-list',
40
-    'multiple'=>true,
41
-    'checked'=>false,
42
-    'id' => 'missions-sort-missions-type-field-text-input'
36
+	'name'=>'opp_filter',
37
+	'value'=>$opp_type_field,
38
+	'options'=> $opp_types2,
39
+	'class'=>' list-unstyled filter-opp-type-list',
40
+	'multiple'=>true,
41
+	'checked'=>false,
42
+	'id' => 'missions-sort-missions-type-field-text-input'
43 43
 ));
44 44
 
45 45
 $input_role_types_filter = elgg_view('input/checkboxes', array(
46
-    'name' => 'role_filter',
47
-    'value' => $role_type_field,
48
-    'options' => [elgg_echo('missions:filter:opportunity_role:offering') => 'missions:offering', elgg_echo('missions:filter:opportunity_role:seeking') => 'missions:seeking'],
49
-    'class' =>' list-unstyled filter-opp-type-list',
50
-    'multiple' => true,
51
-    'checked' => false,
52
-    'id' => 'missions-sort-missions-role-field-text-input'
46
+	'name' => 'role_filter',
47
+	'value' => $role_type_field,
48
+	'options' => [elgg_echo('missions:filter:opportunity_role:offering') => 'missions:offering', elgg_echo('missions:filter:opportunity_role:seeking') => 'missions:seeking'],
49
+	'class' =>' list-unstyled filter-opp-type-list',
50
+	'multiple' => true,
51
+	'checked' => false,
52
+	'id' => 'missions-sort-missions-role-field-text-input'
53 53
 ));
54 54
 
55 55
 $input_sort_field = elgg_view('input/dropdown', array(
@@ -85,10 +85,10 @@  discard block
 block discarded – undo
85 85
                 </button>
86 86
                 <div class="dropdown-menu " aria-labelledby="missions-sort-missions-type-field-text-input">
87 87
                     <?php
88
-                        echo $input_opp_types_filter;
89
-                        //echo $opp_types2;
90
-                        //echo $opp_types;
91
-                    ?>
88
+						echo $input_opp_types_filter;
89
+						//echo $opp_types2;
90
+						//echo $opp_types;
91
+					?>
92 92
                 </div>
93 93
               </div>
94 94
 		  </div>		
@@ -105,8 +105,8 @@  discard block
 block discarded – undo
105 105
                 </button>
106 106
                 <div class="dropdown-menu " aria-labelledby="missions-sort-missions-role-field-text-input">
107 107
                     <?php
108
-                        echo $input_role_types_filter;
109
-                    ?>
108
+						echo $input_role_types_filter;
109
+					?>
110 110
                 </div>
111 111
               </div>
112 112
           </div>        
@@ -150,27 +150,27 @@  discard block
 block discarded – undo
150 150
 
151 151
 echo ($opp_type_field)?'<strong>Type: </strong>':'';
152 152
 
153
-    foreach ($opp_type_field as $value) {
154
-        if ($value != end($opp_type_field)){
155
-            echo elgg_echo($value).', ';
156
-        }else{
157
-            echo elgg_echo($value).' ';
158
-        }
159
-    }
153
+	foreach ($opp_type_field as $value) {
154
+		if ($value != end($opp_type_field)){
155
+			echo elgg_echo($value).', ';
156
+		}else{
157
+			echo elgg_echo($value).' ';
158
+		}
159
+	}
160 160
 $role = elgg_echo("missions:filter:role");
161 161
 $opportunities = elgg_echo('missions:sort_by');
162 162
 $order = elgg_echo('mission:following_order');
163 163
 
164 164
 echo ($role_type_field)?'<strong>'. $role.' </strong>':'';
165 165
 
166
-    foreach ($role_type_field as $value) {
167
-        if ($value != end($role_type_field)){
168
-            echo elgg_echo($value).', ';
169
-        }else{
170
-            echo elgg_echo($value).' ';
166
+	foreach ($role_type_field as $value) {
167
+		if ($value != end($role_type_field)){
168
+			echo elgg_echo($value).', ';
169
+		}else{
170
+			echo elgg_echo($value).' ';
171 171
 
172
-        }
173
-    }
172
+		}
173
+	}
174 174
 echo ($sort_field)?'<strong>'.$opportunities.': </strong>':'';
175 175
 echo elgg_echo($sort_field).' ';
176 176
 
Please login to merge, or discard this patch.
mod/missions/views/default/forms/missions/graph-interval-form.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,8 +18,8 @@
 block discarded – undo
18 18
 $graph = get_input('gig');
19 19
 
20 20
 if (elgg_is_sticky_form('intervalfill')) {
21
-    extract(elgg_get_sticky_values('intervalfill'));
22
-    elgg_clear_sticky_form('intervalfill');
21
+	extract(elgg_get_sticky_values('intervalfill'));
22
+	elgg_clear_sticky_form('intervalfill');
23 23
 }
24 24
 
25 25
 if(!$end_month) {
Please login to merge, or discard this patch.
mod/missions/views/default/forms/missions/change-mission-form.php 1 patch
Indentation   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -42,9 +42,9 @@  discard block
 block discarded – undo
42 42
 }
43 43
 
44 44
 $input_name = elgg_view('input/text', array(
45
-	    'name' => 'name',
46
-	    'value' => $mission->name,
47
-	    'id' => 'edit-mission-name-text-input'
45
+		'name' => 'name',
46
+		'value' => $mission->name,
47
+		'id' => 'edit-mission-name-text-input'
48 48
 ));
49 49
 
50 50
 $input_department = elgg_view('page/elements/organization-input', array(
@@ -52,15 +52,15 @@  discard block
 block discarded – undo
52 52
 ));
53 53
 
54 54
 $input_email = elgg_view('input/text', array(
55
-	    'name' => 'email',
56
-	    'value' => $mission->email,
57
-	    'id' => 'edit-mission-email-text-input'
55
+		'name' => 'email',
56
+		'value' => $mission->email,
57
+		'id' => 'edit-mission-email-text-input'
58 58
 ));
59 59
 
60 60
 $input_phone = elgg_view('input/text', array(
61
-    	'name' => 'phone',
62
-	    'value' => $mission->phone,
63
-	    'id' => 'edit-mission-phone-text-input'
61
+		'name' => 'phone',
62
+		'value' => $mission->phone,
63
+		'id' => 'edit-mission-phone-text-input'
64 64
 ));
65 65
 
66 66
 $input_title = elgg_view('input/text', array(
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
 	'options' => array(
77 77
 		'<span style="font-weight:normal;"> '.elgg_echo('missions:opportunity_role:offering').'</span>' => 'missions:offering',
78 78
 		'<span style="font-weight:normal;"> '.elgg_echo('missions:opportunity_role:seeking').'</span>' => 'missions:seeking'
79
-    	)
79
+		)
80 80
  	)
81 81
 );
82 82
 
@@ -99,10 +99,10 @@  discard block
 block discarded – undo
99 99
 	$other_value = $mission->program_area;
100 100
 }
101 101
 $input_area = elgg_view('input/dropdown', array(
102
-	    'name' => 'job_area',
103
-	    'value' => $initial_value,
102
+		'name' => 'job_area',
103
+		'value' => $initial_value,
104 104
 		'options_values' => $sort_areas,
105
-	    'id' => 'edit-mission-area-dropdown-input'
105
+		'id' => 'edit-mission-area-dropdown-input'
106 106
 ));
107 107
 $input_other_area = elgg_view('page/elements/other-text-input', array(
108 108
 		'parent_id' => 'edit-mission-area-dropdown-input',
@@ -144,9 +144,9 @@  discard block
 block discarded – undo
144 144
 ));
145 145
 
146 146
 $input_openess = elgg_view('input/checkbox', array(
147
-	    'name' => 'openess',
148
-	    'checked' => $openess,
149
-	    'id' => 'edit-mission-openess-checkbox-input'
147
+		'name' => 'openess',
148
+		'checked' => $openess,
149
+		'id' => 'edit-mission-openess-checkbox-input'
150 150
 ));
151 151
 
152 152
 $input_remotely = elgg_view('input/checkbox', array(
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
 $input_location = elgg_view('input/dropdown', array(
159 159
 		'name' => 'location',
160 160
 		'value' => $mission->location,
161
-	    'options_values' => mm_echo_explode_setting_string(elgg_get_plugin_setting('province_string', 'missions')),
161
+		'options_values' => mm_echo_explode_setting_string(elgg_get_plugin_setting('province_string', 'missions')),
162 162
 		'id' => 'edit-mission-location-dropdown-input'
163 163
 ));
164 164
 
@@ -225,8 +225,8 @@  discard block
 block discarded – undo
225 225
 }
226 226
 
227 227
 $hidden_guid = elgg_view('input/hidden', array(
228
-    'name' => 'hidden_guid',
229
-    'value' => $mission->guid
228
+	'name' => 'hidden_guid',
229
+	'value' => $mission->guid
230 230
 ));
231 231
 
232 232
 $button_set = mm_create_button_set_full($mission);
Please login to merge, or discard this patch.
mod/missions/views/default/forms/missions/post-mission-first-form.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
 if(elgg_is_sticky_form('firstfill')) {
18 18
 	$temp_form = elgg_get_sticky_values('firstfill');
19 19
 	$extracted_org = mo_get_last_input_node($temp_form);
20
-    extract($temp_form);
20
+	extract($temp_form);
21 21
 }
22 22
 
23 23
 if($disclaimer == 'YES' && !$disclaimer_uncheck) {
@@ -47,9 +47,9 @@  discard block
 block discarded – undo
47 47
 
48 48
 
49 49
 $input_name = elgg_view('input/text', array(
50
-    'name' => 'name',
51
-    'value' => $name,
52
-    'id' => 'post-mission-name-text-input'
50
+	'name' => 'name',
51
+	'value' => $name,
52
+	'id' => 'post-mission-name-text-input'
53 53
 ));
54 54
 
55 55
 $input_department = elgg_view('page/elements/organization-input', array(
@@ -57,14 +57,14 @@  discard block
 block discarded – undo
57 57
 ));
58 58
 
59 59
 $input_email = elgg_view('input/text', array(
60
-    'name' => 'email',
61
-    'value' => $email,
62
-    'id' => 'post-mission-email-text-input'
60
+	'name' => 'email',
61
+	'value' => $email,
62
+	'id' => 'post-mission-email-text-input'
63 63
 ));
64 64
 $input_phone = elgg_view('input/text', array(
65
-    'name' => 'phone',
66
-    'value' => $phone,
67
-    'id' => 'post-mission-phone-text-input'
65
+	'name' => 'phone',
66
+	'value' => $phone,
67
+	'id' => 'post-mission-phone-text-input'
68 68
 ));
69 69
 $input_disclaimer = elgg_view('input/checkbox', array(
70 70
 		'name' => 'disclaimer',
Please login to merge, or discard this patch.