@@ -12,11 +12,11 @@ |
||
12 | 12 | */ |
13 | 13 | $entity_type = $vars['entity_type']; |
14 | 14 | $number_per = $vars['number_per']; |
15 | -if($entity_type == 'candidate') { |
|
16 | - $number_array = array(10,25,50,100); |
|
15 | +if ($entity_type == 'candidate') { |
|
16 | + $number_array = array(10, 25, 50, 100); |
|
17 | 17 | } |
18 | 18 | else { |
19 | - $number_array = array(9,18,30,60,120); |
|
19 | + $number_array = array(9, 18, 30, 60, 120); |
|
20 | 20 | } |
21 | 21 | |
22 | 22 | $input_per_page = elgg_view('input/dropdown', array( |
@@ -14,8 +14,7 @@ |
||
14 | 14 | $number_per = $vars['number_per']; |
15 | 15 | if($entity_type == 'candidate') { |
16 | 16 | $number_array = array(10,25,50,100); |
17 | -} |
|
18 | -else { |
|
17 | +} else { |
|
19 | 18 | $number_array = array(9,18,30,60,120); |
20 | 19 | } |
21 | 20 |
@@ -28,28 +28,28 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 |
@@ -19,15 +19,15 @@ discard block |
||
19 | 19 | 'missions:deadline' => elgg_echo('missions:deadline'), |
20 | 20 | 'missions:opportunity_type' => elgg_echo('missions:opportunity_type') |
21 | 21 | ); |
22 | -if($vars['mission_sort_archive']) { |
|
22 | +if ($vars['mission_sort_archive']) { |
|
23 | 23 | $options_array = array( |
24 | 24 | 'missions:date_closed' => elgg_echo('missions:date_closed'), |
25 | 25 | 'missions:opportunity_type' => elgg_echo('missions:opportunity_type') |
26 | 26 | ); |
27 | 27 | } |
28 | 28 | |
29 | -$opp_types = explode(',',elgg_get_plugin_setting('opportunity_type_string', 'missions')); |
|
30 | -foreach($opp_types as $k => $v){ |
|
29 | +$opp_types = explode(',', elgg_get_plugin_setting('opportunity_type_string', 'missions')); |
|
30 | +foreach ($opp_types as $k => $v) { |
|
31 | 31 | //Nick - Put the things in an elgg echo |
32 | 32 | $opp_types2[elgg_echo($v)] = $opp_types[$k]; |
33 | 33 | } |
@@ -80,7 +80,7 @@ discard block |
||
80 | 80 | <div class="" style="margin:4px;"> |
81 | 81 | <div class="dropdown"> |
82 | 82 | <button id="missions-sort-missions-type-field-text-input" type="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" class="form-control"> |
83 | - <?php echo elgg_echo('missions:type');?> |
|
83 | + <?php echo elgg_echo('missions:type'); ?> |
|
84 | 84 | <span class="caret"></span> |
85 | 85 | </button> |
86 | 86 | <div class="dropdown-menu " aria-labelledby="missions-sort-missions-type-field-text-input"> |
@@ -146,37 +146,37 @@ discard block |
||
146 | 146 | |
147 | 147 | <?php |
148 | 148 | |
149 | -echo ($opp_type_field || $role_type_field || $sort_field || $order_field)?'<div class="col-sm-11 mrgn-tp-lg"><strong>'.elgg_echo('missions:filter').'</strong>':''; |
|
149 | +echo ($opp_type_field || $role_type_field || $sort_field || $order_field) ? '<div class="col-sm-11 mrgn-tp-lg"><strong>' . elgg_echo('missions:filter') . '</strong>' : ''; |
|
150 | 150 | |
151 | -echo ($opp_type_field)?'<strong>Type: </strong>':''; |
|
151 | +echo ($opp_type_field) ? '<strong>Type: </strong>' : ''; |
|
152 | 152 | |
153 | 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).' '; |
|
154 | + if ($value != end($opp_type_field)) { |
|
155 | + echo elgg_echo($value) . ', '; |
|
156 | + } else { |
|
157 | + echo elgg_echo($value) . ' '; |
|
158 | 158 | } |
159 | 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 | -echo ($role_type_field)?'<strong>'. $role.' </strong>':''; |
|
164 | +echo ($role_type_field) ? '<strong>' . $role . ' </strong>' : ''; |
|
165 | 165 | |
166 | 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).' '; |
|
167 | + if ($value != end($role_type_field)) { |
|
168 | + echo elgg_echo($value) . ', '; |
|
169 | + } else { |
|
170 | + echo elgg_echo($value) . ' '; |
|
171 | 171 | |
172 | 172 | } |
173 | 173 | } |
174 | -echo ($sort_field)?'<strong>'.$opportunities.': </strong>':''; |
|
175 | -echo elgg_echo($sort_field).' '; |
|
174 | +echo ($sort_field) ? '<strong>' . $opportunities . ': </strong>' : ''; |
|
175 | +echo elgg_echo($sort_field) . ' '; |
|
176 | 176 | |
177 | -echo ($order_field)?'<strong>'.$order.': </strong>':''; |
|
178 | -echo elgg_echo($order_field).' '; |
|
179 | -echo ($opp_type_field || $role_type_field || $sort_field || $order_field)?'</div>':''; |
|
177 | +echo ($order_field) ? '<strong>' . $order . ': </strong>' : ''; |
|
178 | +echo elgg_echo($order_field) . ' '; |
|
179 | +echo ($opp_type_field || $role_type_field || $sort_field || $order_field) ? '</div>' : ''; |
|
180 | 180 | |
181 | 181 | ?> |
182 | 182 |
@@ -153,7 +153,7 @@ discard block |
||
153 | 153 | foreach ($opp_type_field as $value) { |
154 | 154 | if ($value != end($opp_type_field)){ |
155 | 155 | echo elgg_echo($value).', '; |
156 | - }else{ |
|
156 | + } else{ |
|
157 | 157 | echo elgg_echo($value).' '; |
158 | 158 | } |
159 | 159 | } |
@@ -166,7 +166,7 @@ discard block |
||
166 | 166 | foreach ($role_type_field as $value) { |
167 | 167 | if ($value != end($role_type_field)){ |
168 | 168 | echo elgg_echo($value).', '; |
169 | - }else{ |
|
169 | + } else{ |
|
170 | 170 | echo elgg_echo($value).' '; |
171 | 171 | |
172 | 172 | } |
@@ -18,8 +18,8 @@ |
||
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) { |
@@ -22,11 +22,11 @@ discard block |
||
22 | 22 | elgg_clear_sticky_form('intervalfill'); |
23 | 23 | } |
24 | 24 | |
25 | -if(!$end_month) { |
|
25 | +if (!$end_month) { |
|
26 | 26 | $end_month = date('m'); |
27 | 27 | } |
28 | 28 | |
29 | -if(!$end_year) { |
|
29 | +if (!$end_year) { |
|
30 | 30 | $end_year = date('Y'); |
31 | 31 | } |
32 | 32 | |
@@ -82,7 +82,7 @@ discard block |
||
82 | 82 | $years = array(); |
83 | 83 | $current_year = date('Y'); |
84 | 84 | $count = 0; |
85 | -for($i=$current_year;$i>=2000;$i--) { |
|
85 | +for ($i = $current_year; $i >= 2000; $i--) { |
|
86 | 86 | $years[$count] = $i; |
87 | 87 | $count++; |
88 | 88 | } |
@@ -42,9 +42,9 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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); |
@@ -22,23 +22,23 @@ discard block |
||
22 | 22 | $progenitor = get_entity($ancestor_array[0]); |
23 | 23 | |
24 | 24 | $department_abbr = $progenitor->abbr; |
25 | -if(get_current_language() == 'fr') { |
|
25 | +if (get_current_language() == 'fr') { |
|
26 | 26 | $department_abbr = $progenitor->abbr_french; |
27 | 27 | } |
28 | 28 | |
29 | 29 | $remotely = false; |
30 | -if($mission->remotely == 'on') { |
|
30 | +if ($mission->remotely == 'on') { |
|
31 | 31 | $remotely = true; |
32 | 32 | } |
33 | 33 | $openess = false; |
34 | -if($mission->openess == 'on') { |
|
34 | +if ($mission->openess == 'on') { |
|
35 | 35 | $openess = true; |
36 | 36 | } |
37 | 37 | |
38 | 38 | $max_applicants = elgg_get_plugin_setting('mission_max_applicants', 'missions'); |
39 | 39 | $max_array = array(); |
40 | -for($i=1;$i<=$max_applicants;$i++) { |
|
41 | - $max_array[$i-1] = $i; |
|
40 | +for ($i = 1; $i <= $max_applicants; $i++) { |
|
41 | + $max_array[$i - 1] = $i; |
|
42 | 42 | } |
43 | 43 | |
44 | 44 | $input_name = elgg_view('input/text', array( |
@@ -74,8 +74,8 @@ discard block |
||
74 | 74 | 'id' => 'post-mission-role-radio-input', |
75 | 75 | 'value' => $mission->role_type, |
76 | 76 | 'options' => array( |
77 | - '<span style="font-weight:normal;"> '.elgg_echo('missions:opportunity_role:offering').'</span>' => 'missions:offering', |
|
78 | - '<span style="font-weight:normal;"> '.elgg_echo('missions:opportunity_role:seeking').'</span>' => 'missions:seeking' |
|
77 | + '<span style="font-weight:normal;"> ' . elgg_echo('missions:opportunity_role:offering') . '</span>' => 'missions:offering', |
|
78 | + '<span style="font-weight:normal;"> ' . elgg_echo('missions:opportunity_role:seeking') . '</span>' => 'missions:seeking' |
|
79 | 79 | ) |
80 | 80 | ) |
81 | 81 | ); |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | $sort_areas = mm_echo_explode_setting_string(elgg_get_plugin_setting('program_area_string', 'missions')); |
91 | 91 | asort($sort_areas); |
92 | 92 | $sort_areas['missions:other'] = elgg_echo('missions:other'); |
93 | -if(array_key_exists($mission->program_area, $sort_areas)) { |
|
93 | +if (array_key_exists($mission->program_area, $sort_areas)) { |
|
94 | 94 | $initial_value = $mission->program_area; |
95 | 95 | $other_value = ''; |
96 | 96 | } |
@@ -202,7 +202,7 @@ discard block |
||
202 | 202 | |
203 | 203 | $skill_set = ''; |
204 | 204 | $skill_array = explode(', ', $mission->key_skills); |
205 | -foreach($skill_array as $skill) { |
|
205 | +foreach ($skill_array as $skill) { |
|
206 | 206 | $skill_set .= elgg_view('missions/add-skill', array('value' => $skill)); |
207 | 207 | } |
208 | 208 | |
@@ -217,7 +217,7 @@ discard block |
||
217 | 217 | |
218 | 218 | $time_content = elgg_view('page/elements/time-table', $vars); |
219 | 219 | |
220 | -if($department_abbr) { |
|
220 | +if ($department_abbr) { |
|
221 | 221 | $openess_string = elgg_echo('missions:openess_sentence', array(strtoupper($department_abbr))); |
222 | 222 | } |
223 | 223 | else { |
@@ -245,12 +245,12 @@ discard block |
||
245 | 245 | : |
246 | 246 | </label> |
247 | 247 | <div class="col-sm-5"> |
248 | - <?php echo $input_title;?> |
|
248 | + <?php echo $input_title; ?> |
|
249 | 249 | </div> |
250 | 250 | </div> |
251 | 251 | <div class="form-group"> |
252 | 252 | <label for='post-mission-role-radio-input' class="col-sm-3 text-right required" aria-required="true"> |
253 | - <?php echo elgg_echo('missions:opportunity_role') . ':';?> |
|
253 | + <?php echo elgg_echo('missions:opportunity_role') . ':'; ?> |
|
254 | 254 | <strong class="required" aria-required="true"> |
255 | 255 | <?php echo elgg_echo('missions:required'); ?> |
256 | 256 | </strong> |
@@ -261,18 +261,18 @@ discard block |
||
261 | 261 | </div> |
262 | 262 | <div class="form-group"> |
263 | 263 | <label class="col-sm-3" for="edit-mission-type-dropdown-input" style="text-align:right;"> |
264 | - <?php echo elgg_echo('missions:opportunity_type') . ':';?> |
|
264 | + <?php echo elgg_echo('missions:opportunity_type') . ':'; ?> |
|
265 | 265 | </label> |
266 | 266 | <div class="col-sm-3"> |
267 | - <?php echo $input_type;?> |
|
267 | + <?php echo $input_type; ?> |
|
268 | 268 | </div> |
269 | 269 | </div> |
270 | 270 | <div class="form-group"> |
271 | 271 | <label class="col-sm-3" for="edit-mission-description-plaintext-input" style="text-align:right;"> |
272 | - <?php echo elgg_echo('missions:opportunity_description') . ':';?> |
|
272 | + <?php echo elgg_echo('missions:opportunity_description') . ':'; ?> |
|
273 | 273 | </label> |
274 | 274 | <div class="col-sm-7"> |
275 | - <?php echo $input_description;?> |
|
275 | + <?php echo $input_description; ?> |
|
276 | 276 | </div> |
277 | 277 | </div> |
278 | 278 | <br> |
@@ -281,46 +281,46 @@ discard block |
||
281 | 281 | </div> |
282 | 282 | <div class="form-group"> |
283 | 283 | <label class="col-sm-3 required" for="edit-mission-name-text-input" style="text-align:right;" aria-required="true"> |
284 | - <?php echo elgg_echo('missions:manager_name');?> |
|
284 | + <?php echo elgg_echo('missions:manager_name'); ?> |
|
285 | 285 | <strong class="required" aria-required="true"> |
286 | 286 | <?php echo elgg_echo('missions:required'); ?> |
287 | 287 | </strong> |
288 | 288 | : |
289 | 289 | </label> |
290 | 290 | <div class="col-sm-3"> |
291 | - <?php echo $input_name;?> |
|
291 | + <?php echo $input_name; ?> |
|
292 | 292 | </div> |
293 | 293 | </div> |
294 | 294 | <div class="form-group"> |
295 | 295 | <label class="col-sm-3 required" style="text-align:right;" aria-required="true"> |
296 | - <?php echo elgg_echo('missions:department');?> |
|
296 | + <?php echo elgg_echo('missions:department'); ?> |
|
297 | 297 | <strong class="required" aria-required="true"> |
298 | 298 | <?php echo elgg_echo('missions:required'); ?> |
299 | 299 | </strong> |
300 | 300 | : |
301 | 301 | </label> |
302 | 302 | <div class="col-sm-5"> |
303 | - <?php echo $input_department;?> |
|
303 | + <?php echo $input_department; ?> |
|
304 | 304 | </div> |
305 | 305 | </div> |
306 | 306 | <div class="form-group"> |
307 | 307 | <label class="col-sm-3 required" for="edit-mission-email-text-input" style="text-align:right;" aria-required="true"> |
308 | - <?php echo elgg_echo('missions:manager_email');?> |
|
308 | + <?php echo elgg_echo('missions:manager_email'); ?> |
|
309 | 309 | <strong class="required" aria-required="true"> |
310 | 310 | <?php echo elgg_echo('missions:required'); ?> |
311 | 311 | </strong> |
312 | 312 | : |
313 | 313 | </label> |
314 | 314 | <div class="col-sm-3"> |
315 | - <?php echo $input_email;?> |
|
315 | + <?php echo $input_email; ?> |
|
316 | 316 | </div> |
317 | 317 | </div> |
318 | 318 | <div class="form-group"> |
319 | 319 | <label class="col-sm-3" for="edit-mission-phone-text-input" style="text-align:right;"> |
320 | - <?php echo elgg_echo('missions:your_phone') . ':';?> |
|
320 | + <?php echo elgg_echo('missions:your_phone') . ':'; ?> |
|
321 | 321 | </label> |
322 | 322 | <div class="col-sm-3"> |
323 | - <?php echo $input_phone;?> |
|
323 | + <?php echo $input_phone; ?> |
|
324 | 324 | </div> |
325 | 325 | </div> |
326 | 326 | <br> |
@@ -330,7 +330,7 @@ discard block |
||
330 | 330 | </div> |
331 | 331 | <div class="form-group"> |
332 | 332 | <label for='post-mission-gl-group' class="col-sm-3" style="text-align:right;"> |
333 | - <?php echo elgg_echo('missions:groupandlevel') . ':';?> |
|
333 | + <?php echo elgg_echo('missions:groupandlevel') . ':'; ?> |
|
334 | 334 | </label> |
335 | 335 | <div class="col-sm-3"> |
336 | 336 | <div class="col-sm-6"> |
@@ -354,7 +354,7 @@ discard block |
||
354 | 354 | |
355 | 355 | <div class="form-group"> |
356 | 356 | <label for='edit-mission-area-dropdown-input' class="col-sm-3" style="text-align:right;"> |
357 | - <?php echo elgg_echo('missions:program_area') . ':';?> |
|
357 | + <?php echo elgg_echo('missions:program_area') . ':'; ?> |
|
358 | 358 | </label> |
359 | 359 | <div class="col-sm-3"> |
360 | 360 | <?php echo $input_area; ?> |
@@ -363,58 +363,58 @@ discard block |
||
363 | 363 | </div> |
364 | 364 | <div class="form-group"> |
365 | 365 | <label class="col-sm-3" for="edit-mission-number-dropdown-input" style="text-align:right;"> |
366 | - <?php echo elgg_echo('missions:opportunity_number') . ':';?> |
|
366 | + <?php echo elgg_echo('missions:opportunity_number') . ':'; ?> |
|
367 | 367 | </label> |
368 | 368 | <div class="col-sm-3"> |
369 | - <?php echo $input_number_of;?> |
|
369 | + <?php echo $input_number_of; ?> |
|
370 | 370 | </div> |
371 | 371 | </div> |
372 | 372 | <div class="form-group"> |
373 | 373 | <label class="col-sm-3 required" for="edit-mission-start-date-input" style="text-align:right;" aria-required="true"> |
374 | - <?php echo elgg_echo('missions:ideal_start_date');?> |
|
374 | + <?php echo elgg_echo('missions:ideal_start_date'); ?> |
|
375 | 375 | <strong class="required" aria-required="true"> |
376 | 376 | <?php echo elgg_echo('missions:required'); ?> |
377 | 377 | </strong> |
378 | 378 | : |
379 | 379 | </label> |
380 | 380 | <div class="col-sm-3"> |
381 | - <?php echo $input_start_date;?> |
|
381 | + <?php echo $input_start_date; ?> |
|
382 | 382 | </div> |
383 | 383 | <div class="fa fa-calendar fa-lg"></div> |
384 | 384 | </div> |
385 | 385 | <div class="form-group"> |
386 | 386 | <label class="col-sm-3" for="edit-mission-completion-date-input" style="text-align:right;"> |
387 | - <?php echo elgg_echo('missions:ideal_completion_date') . ':';?> |
|
387 | + <?php echo elgg_echo('missions:ideal_completion_date') . ':'; ?> |
|
388 | 388 | </label> |
389 | 389 | <div class="col-sm-3"> |
390 | - <?php echo $input_completion_date;?> |
|
390 | + <?php echo $input_completion_date; ?> |
|
391 | 391 | </div> |
392 | 392 | <div class="fa fa-calendar fa-lg"></div> |
393 | 393 | </div> |
394 | 394 | <div class="form-group"> |
395 | 395 | <label class="col-sm-3 required" for="edit-mission-deadline-date-input" style="text-align:right;" aria-required="true"> |
396 | - <?php echo elgg_echo('missions:deadline');?> |
|
396 | + <?php echo elgg_echo('missions:deadline'); ?> |
|
397 | 397 | <strong class="required" aria-required="true"> |
398 | 398 | <?php echo elgg_echo('missions:required'); ?> |
399 | 399 | </strong> |
400 | 400 | : |
401 | 401 | </label> |
402 | 402 | <div class="col-sm-3"> |
403 | - <?php echo $input_deadline;?> |
|
403 | + <?php echo $input_deadline; ?> |
|
404 | 404 | </div> |
405 | 405 | <div class="fa fa-calendar fa-lg"></div> |
406 | 406 | </div> |
407 | 407 | <div class="form-group"> |
408 | 408 | <label class="col-sm-3" for="edit-mission-remotely-checkbox-input" style="text-align:right;"> |
409 | - <?php echo elgg_echo('missions:work_remotely') . ':';?> |
|
409 | + <?php echo elgg_echo('missions:work_remotely') . ':'; ?> |
|
410 | 410 | </label> |
411 | 411 | <div class="col-sm-3"> |
412 | - <?php echo $input_remotely;?> |
|
412 | + <?php echo $input_remotely; ?> |
|
413 | 413 | </div> |
414 | 414 | </div> |
415 | 415 | <div class="form-group"> |
416 | 416 | <label for='edit-mission-openess-checkbox-input' class="col-sm-3" style="text-align:right;"> |
417 | - <?php echo $openess_string;?> |
|
417 | + <?php echo $openess_string; ?> |
|
418 | 418 | </label> |
419 | 419 | <div class="col-sm-7"> |
420 | 420 | <?php echo $input_openess; ?> |
@@ -422,27 +422,27 @@ discard block |
||
422 | 422 | </div> |
423 | 423 | <div class="form-group"> |
424 | 424 | <label class="col-sm-3 required" for="edit-mission-location-dropdown-input" style="text-align:right;" aria-required="true"> |
425 | - <?php echo elgg_echo('missions:location') . ':';?> |
|
425 | + <?php echo elgg_echo('missions:location') . ':'; ?> |
|
426 | 426 | <strong class="required" aria-required="true"> |
427 | 427 | <?php echo elgg_echo('missions:required'); ?> |
428 | 428 | </strong> |
429 | 429 | : |
430 | 430 | </label> |
431 | 431 | <div class="col-sm-3"> |
432 | - <?php echo $input_location;?> |
|
432 | + <?php echo $input_location; ?> |
|
433 | 433 | </div> |
434 | 434 | </div> |
435 | 435 | <div class="form-group"> |
436 | 436 | <label class="col-sm-3" for="edit-mission-security-dropdown-input" style="text-align:right;"> |
437 | - <?php echo elgg_echo('missions:security_level') . ':';?> |
|
437 | + <?php echo elgg_echo('missions:security_level') . ':'; ?> |
|
438 | 438 | </label> |
439 | 439 | <div class="col-sm-3"> |
440 | - <?php echo $input_security;?> |
|
440 | + <?php echo $input_security; ?> |
|
441 | 441 | </div> |
442 | 442 | </div> |
443 | 443 | <div class="form-group"> |
444 | 444 | <label class="col-sm-3" style="text-align:right;"> |
445 | - <?php echo elgg_echo('missions:skills') . ':';?> |
|
445 | + <?php echo elgg_echo('missions:skills') . ':'; ?> |
|
446 | 446 | </label> |
447 | 447 | <div class="col-sm-9"> |
448 | 448 | <div id="mission-skill-container" style="display:inline-block;"> |
@@ -456,17 +456,17 @@ discard block |
||
456 | 456 | </div> |
457 | 457 | <br> |
458 | 458 | <div> |
459 | - <h3 class='h5'><?php echo elgg_echo('missions:language_requirements') . ':';?></h3> |
|
459 | + <h3 class='h5'><?php echo elgg_echo('missions:language_requirements') . ':'; ?></h3> |
|
460 | 460 | <div class="form group"> |
461 | - <?php echo $languages;?> |
|
461 | + <?php echo $languages; ?> |
|
462 | 462 | </div> |
463 | 463 | </div> |
464 | 464 | <br> |
465 | 465 | <div> |
466 | - <h3 class='h5'><?php echo elgg_echo('missions:scheduling_requirements') . ':';?></h3> |
|
466 | + <h3 class='h5'><?php echo elgg_echo('missions:scheduling_requirements') . ':'; ?></h3> |
|
467 | 467 | <div class="form-group"> |
468 | 468 | <label class="col-sm-3 required" for="edit-mission-time-commitment-text-input" style="text-align:right;" aria-required="true"> |
469 | - <?php echo elgg_echo('missions:time_in_hours');?> |
|
469 | + <?php echo elgg_echo('missions:time_in_hours'); ?> |
|
470 | 470 | <strong class="required" aria-required="true"> |
471 | 471 | <?php echo elgg_echo('missions:required'); ?> |
472 | 472 | </strong> |
@@ -481,10 +481,10 @@ discard block |
||
481 | 481 | </div> |
482 | 482 | <div class="form-group"> |
483 | 483 | <label class="col-sm-3" for="edit-mission-timezone-dropdown-input" style="text-align:right;"> |
484 | - <?php echo elgg_echo('missions:timezone') . ':';?> |
|
484 | + <?php echo elgg_echo('missions:timezone') . ':'; ?> |
|
485 | 485 | </label> |
486 | 486 | <div class="col-sm-3"> |
487 | - <?php echo $input_timezone;?> |
|
487 | + <?php echo $input_timezone; ?> |
|
488 | 488 | </div> |
489 | 489 | </div> |
490 | 490 | </div> |
@@ -93,8 +93,7 @@ discard block |
||
93 | 93 | if(array_key_exists($mission->program_area, $sort_areas)) { |
94 | 94 | $initial_value = $mission->program_area; |
95 | 95 | $other_value = ''; |
96 | -} |
|
97 | -else { |
|
96 | +} else { |
|
98 | 97 | $initial_value = 'missions:other'; |
99 | 98 | $other_value = $mission->program_area; |
100 | 99 | } |
@@ -219,8 +218,7 @@ discard block |
||
219 | 218 | |
220 | 219 | if($department_abbr) { |
221 | 220 | $openess_string = elgg_echo('missions:openess_sentence', array(strtoupper($department_abbr))); |
222 | -} |
|
223 | -else { |
|
221 | +} else { |
|
224 | 222 | $openess_string = elgg_echo('missions:openess_sentence_generic'); |
225 | 223 | } |
226 | 224 |
@@ -17,7 +17,7 @@ discard block |
||
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 |
||
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 |
||
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', |
@@ -14,33 +14,33 @@ discard block |
||
14 | 14 | $phone = get_input('fp'); |
15 | 15 | $disclaimer = get_input('fd'); |
16 | 16 | |
17 | -if(elgg_is_sticky_form('firstfill')) { |
|
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 | 20 | extract($temp_form); |
21 | 21 | } |
22 | 22 | |
23 | -if($disclaimer == 'YES' && !$disclaimer_uncheck) { |
|
23 | +if ($disclaimer == 'YES' && !$disclaimer_uncheck) { |
|
24 | 24 | $disclaimer = true; |
25 | 25 | } |
26 | 26 | else { |
27 | 27 | $disclaimer = false; |
28 | 28 | } |
29 | 29 | |
30 | -if(!elgg_is_sticky_form('firstfill')) { |
|
30 | +if (!elgg_is_sticky_form('firstfill')) { |
|
31 | 31 | $user = get_entity(elgg_get_logged_in_user_guid()); |
32 | - if(!$name) { |
|
32 | + if (!$name) { |
|
33 | 33 | $name = $user->name; |
34 | 34 | } |
35 | - if(!$extracted_org) { |
|
35 | + if (!$extracted_org) { |
|
36 | 36 | $exploded_department = explode('/', $user->department); |
37 | 37 | $department_name = trim($exploded_department[0]); |
38 | 38 | $extracted_org = mo_format_input_node(mo_get_department_next_to_root($department_name)); |
39 | 39 | } |
40 | - if(!$email) { |
|
40 | + if (!$email) { |
|
41 | 41 | $email = $user->email; |
42 | 42 | } |
43 | - if(!$phone) { |
|
43 | + if (!$phone) { |
|
44 | 44 | $phone = $user->phone; |
45 | 45 | } |
46 | 46 | } |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | <h2 class='h4'><?php echo elgg_echo('missions:first_post_form_title'); ?></h2><br> |
78 | 78 | <div class="form-group"> |
79 | 79 | <label for='post-mission-name-text-input' class="col-sm-3 required text-right" aria-required="true"> |
80 | - <?php echo elgg_echo('missions:your_name');?> |
|
80 | + <?php echo elgg_echo('missions:your_name'); ?> |
|
81 | 81 | <strong class="required" aria-required="true"> |
82 | 82 | <?php echo elgg_echo('missions:required'); ?> |
83 | 83 | </strong> |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | </div> |
90 | 90 | <div class="form-group"> |
91 | 91 | <label class="col-sm-3 required text-right" aria-required="true"> |
92 | - <?php echo elgg_echo('missions:your_department');?> |
|
92 | + <?php echo elgg_echo('missions:your_department'); ?> |
|
93 | 93 | <strong class="required" aria-required="true"> |
94 | 94 | <?php echo elgg_echo('missions:required'); ?> |
95 | 95 | </strong> |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | </div> |
103 | 103 | <div class="form-group"> |
104 | 104 | <label for='post-mission-email-text-input' class="col-sm-3 required text-right" aria-required="true"> |
105 | - <?php echo elgg_echo('missions:your_email');?> |
|
105 | + <?php echo elgg_echo('missions:your_email'); ?> |
|
106 | 106 | <strong class="required" aria-required="true"> |
107 | 107 | <?php echo elgg_echo('missions:required'); ?> |
108 | 108 | </strong> |
@@ -114,7 +114,7 @@ discard block |
||
114 | 114 | </div> |
115 | 115 | <div class="form-group"> |
116 | 116 | <label for='post-mission-phone-text-input' class="col-sm-3 text-right"> |
117 | - <?php echo elgg_echo('missions:your_phone') . ':';?> |
|
117 | + <?php echo elgg_echo('missions:your_phone') . ':'; ?> |
|
118 | 118 | </label> |
119 | 119 | <div class="col-sm-4"> |
120 | 120 | <?php echo $input_phone; ?> |
@@ -126,7 +126,7 @@ discard block |
||
126 | 126 | <div class="form-group"> |
127 | 127 | <div class="col-sm-7 col-md-offset-3"> |
128 | 128 | <label for='post-mission-disclaimer-checkbox-input' style="font-weight:normal;"> |
129 | - <?php echo $input_disclaimer;?> |
|
129 | + <?php echo $input_disclaimer; ?> |
|
130 | 130 | <?php echo elgg_echo('missions:post_disclaimer'); ?> |
131 | 131 | <strong class="required" aria-required="true"> |
132 | 132 | <?php echo elgg_echo('missions:required'); ?> |
@@ -22,8 +22,7 @@ |
||
22 | 22 | |
23 | 23 | if($disclaimer == 'YES' && !$disclaimer_uncheck) { |
24 | 24 | $disclaimer = true; |
25 | -} |
|
26 | -else { |
|
25 | +} else { |
|
27 | 26 | $disclaimer = false; |
28 | 27 | } |
29 | 28 |
@@ -14,16 +14,16 @@ |
||
14 | 14 | |
15 | 15 | $invitable_missions = mm_get_invitable_missions($user_guid); |
16 | 16 | |
17 | -if(!empty($invitable_missions) && !is_array($invitable_missions)) { |
|
17 | +if (!empty($invitable_missions) && !is_array($invitable_missions)) { |
|
18 | 18 | $invitable_missions = array($invitable_missions); |
19 | 19 | $invitable_missions = mm_get_invitable_missions($user_guid); |
20 | 20 | } |
21 | 21 | |
22 | -foreach($invitable_missions as $guid => $mission) { |
|
22 | +foreach ($invitable_missions as $guid => $mission) { |
|
23 | 23 | break; |
24 | 24 | } |
25 | 25 | |
26 | -if(!empty($invitable_missions)) { |
|
26 | +if (!empty($invitable_missions)) { |
|
27 | 27 | $input_mission = elgg_view('input/dropdown', array( |
28 | 28 | 'name' => 'mission_guid', |
29 | 29 | 'value' => $guid, |
@@ -22,9 +22,9 @@ discard block |
||
22 | 22 | }*/ |
23 | 23 | |
24 | 24 | $input_email_body = elgg_view('input/plaintext', array( |
25 | - 'name' => 'mission_email_body', |
|
26 | - 'value' => '', |
|
27 | - 'id' => 'apply-mission-body-text-input' |
|
25 | + 'name' => 'mission_email_body', |
|
26 | + 'value' => '', |
|
27 | + 'id' => 'apply-mission-body-text-input' |
|
28 | 28 | )); |
29 | 29 | |
30 | 30 | $input_manager_permission = elgg_view('input/checkbox', array( |
@@ -36,9 +36,9 @@ discard block |
||
36 | 36 | 'id' => 'apply-to-mission-email-manager-checkbox-input' |
37 | 37 | )); |
38 | 38 | $input_email = elgg_view('input/text', array( |
39 | - 'name' => 'email', |
|
40 | - 'value' => $email, |
|
41 | - 'id' => 'apply-to-mission-email-text-input' |
|
39 | + 'name' => 'email', |
|
40 | + 'value' => $email, |
|
41 | + 'id' => 'apply-to-mission-email-text-input' |
|
42 | 42 | )); |
43 | 43 | ?> |
44 | 44 |
@@ -51,11 +51,11 @@ |
||
51 | 51 | $reshare_input .= elgg_view("thewire_tools/reshare_source", array("entity" => $reshare)); |
52 | 52 | |
53 | 53 | if (!empty($reshare->title)) { |
54 | - $post_value = gc_explode_translation($reshare->title,$lang); |
|
54 | + $post_value = gc_explode_translation($reshare->title, $lang); |
|
55 | 55 | } elseif (!empty($reshare->name)) { |
56 | - $post_value = gc_explode_translation($reshare->name,$lang); |
|
56 | + $post_value = gc_explode_translation($reshare->name, $lang); |
|
57 | 57 | } elseif (!empty($reshare->description)) { |
58 | - $post_value = elgg_get_excerpt(gc_explode_translation($reshare->description,$lang), 140); |
|
58 | + $post_value = elgg_get_excerpt(gc_explode_translation($reshare->description, $lang), 140); |
|
59 | 59 | } |
60 | 60 | } |
61 | 61 |
@@ -15,19 +15,19 @@ |
||
15 | 15 | |
16 | 16 | $button_text = ''; |
17 | 17 | $label_text = ''; |
18 | -if(check_entity_relationship($mission->guid, 'mission_tentative', $applicant_guid)) { |
|
18 | +if (check_entity_relationship($mission->guid, 'mission_tentative', $applicant_guid)) { |
|
19 | 19 | $button_text = elgg_echo('missions:decline'); |
20 | 20 | $label_text = 'missions:reason_to_decline_invite'; |
21 | 21 | } |
22 | -else if(check_entity_relationship($mission->guid, 'mission_offered', $applicant_guid)) { |
|
22 | +else if (check_entity_relationship($mission->guid, 'mission_offered', $applicant_guid)) { |
|
23 | 23 | $button_text = elgg_echo('missions:decline'); |
24 | 24 | $label_text = 'missions:reason_to_decline_offer'; |
25 | 25 | } |
26 | -else if(check_entity_relationship($mission->guid, 'mission_applied', $applicant_guid)) { |
|
26 | +else if (check_entity_relationship($mission->guid, 'mission_applied', $applicant_guid)) { |
|
27 | 27 | $button_text = elgg_echo('missions:withdraw'); |
28 | 28 | $label_text = 'missions:reason_to_withdraw_application'; |
29 | 29 | } |
30 | -else if(check_entity_relationship($mission->guid, 'mission_accepted', $applicant_guid)) { |
|
30 | +else if (check_entity_relationship($mission->guid, 'mission_accepted', $applicant_guid)) { |
|
31 | 31 | $button_text = elgg_echo('missions:withdraw'); |
32 | 32 | $label_text = 'missions:reason_to_withdraw_participation'; |
33 | 33 | } |
@@ -18,16 +18,13 @@ |
||
18 | 18 | if(check_entity_relationship($mission->guid, 'mission_tentative', $applicant_guid)) { |
19 | 19 | $button_text = elgg_echo('missions:decline'); |
20 | 20 | $label_text = 'missions:reason_to_decline_invite'; |
21 | -} |
|
22 | -else if(check_entity_relationship($mission->guid, 'mission_offered', $applicant_guid)) { |
|
21 | +} else if(check_entity_relationship($mission->guid, 'mission_offered', $applicant_guid)) { |
|
23 | 22 | $button_text = elgg_echo('missions:decline'); |
24 | 23 | $label_text = 'missions:reason_to_decline_offer'; |
25 | -} |
|
26 | -else if(check_entity_relationship($mission->guid, 'mission_applied', $applicant_guid)) { |
|
24 | +} else if(check_entity_relationship($mission->guid, 'mission_applied', $applicant_guid)) { |
|
27 | 25 | $button_text = elgg_echo('missions:withdraw'); |
28 | 26 | $label_text = 'missions:reason_to_withdraw_application'; |
29 | -} |
|
30 | -else if(check_entity_relationship($mission->guid, 'mission_accepted', $applicant_guid)) { |
|
27 | +} else if(check_entity_relationship($mission->guid, 'mission_accepted', $applicant_guid)) { |
|
31 | 28 | $button_text = elgg_echo('missions:withdraw'); |
32 | 29 | $label_text = 'missions:reason_to_withdraw_participation'; |
33 | 30 | } |