@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | $role_type_field = $_SESSION['missions_role_field_value']; |
29 | 29 | |
30 | 30 | if ($opp_type_field || $role_type_field) { |
31 | - $clear_link = elgg_view('output/url', array( |
|
31 | + $clear_link = elgg_view('output/url', array( |
|
32 | 32 | 'text' => elgg_echo('missions:clear_filter'), |
33 | 33 | 'href' => 'action/missions/sort-missions-form?opp_filter=&role_filter=', |
34 | 34 | 'class' => 'mrgn-lft-sm', |
@@ -71,9 +71,9 @@ discard block |
||
71 | 71 | $list_class = ''; |
72 | 72 | $item_class = ''; |
73 | 73 | if($search_typing == 'mission') { |
74 | - $list_typing = 'gallery'; |
|
75 | - $list_class = 'mission-gallery wb-eqht clearfix'; |
|
76 | - $item_class = 'col-sm-4'; |
|
74 | + $list_typing = 'gallery'; |
|
75 | + $list_class = 'mission-gallery wb-eqht clearfix'; |
|
76 | + $item_class = 'col-sm-4'; |
|
77 | 77 | } |
78 | 78 | |
79 | 79 | // Function which sorts the search set according to a given value in ascending or descending order. |
@@ -102,36 +102,36 @@ discard block |
||
102 | 102 | } |
103 | 103 | |
104 | 104 | $search_fields = array( |
105 | - //'' => 'Choose', |
|
106 | - '', |
|
107 | - elgg_echo('missions:title'), |
|
108 | - elgg_echo('missions:type'), |
|
109 | - elgg_echo('missions:department'), |
|
110 | - elgg_echo('missions:key_skills'), |
|
111 | - elgg_echo('missions:security_clearance'), |
|
112 | - elgg_echo('missions:location'), |
|
113 | - elgg_echo('missions:language'), |
|
114 | - elgg_echo('missions:time'), |
|
115 | - elgg_echo('missions:period'), |
|
116 | - elgg_echo('missions:start_time'), |
|
117 | - elgg_echo('missions:duration'), |
|
118 | - elgg_echo('missions:work_remotely'), |
|
119 | - elgg_echo('missions:program_area') |
|
120 | - ); |
|
105 | + //'' => 'Choose', |
|
106 | + '', |
|
107 | + elgg_echo('missions:title'), |
|
108 | + elgg_echo('missions:type'), |
|
109 | + elgg_echo('missions:department'), |
|
110 | + elgg_echo('missions:key_skills'), |
|
111 | + elgg_echo('missions:security_clearance'), |
|
112 | + elgg_echo('missions:location'), |
|
113 | + elgg_echo('missions:language'), |
|
114 | + elgg_echo('missions:time'), |
|
115 | + elgg_echo('missions:period'), |
|
116 | + elgg_echo('missions:start_time'), |
|
117 | + elgg_echo('missions:duration'), |
|
118 | + elgg_echo('missions:work_remotely'), |
|
119 | + elgg_echo('missions:program_area') |
|
120 | + ); |
|
121 | 121 | |
122 | 122 | if ($advanced_form){ |
123 | 123 | |
124 | - $content .='<div class="mrgn-bttm-sm"><strong>'.elgg_echo('missions:search_value').':</strong> '; |
|
124 | + $content .='<div class="mrgn-bttm-sm"><strong>'.elgg_echo('missions:search_value').':</strong> '; |
|
125 | 125 | for ($s = 0; $s < $number_of_rows; $s ++) { |
126 | - if ($advanced_form['selection_'.$s]){ |
|
126 | + if ($advanced_form['selection_'.$s]){ |
|
127 | 127 | |
128 | - $content .= '<span class="mrgn-rght-md"><strong>'.elgg_echo($advanced_form['selection_'.$s]).':</strong> '.elgg_echo($advanced_form['selection_'.$s.'_element']).' </span> '; |
|
128 | + $content .= '<span class="mrgn-rght-md"><strong>'.elgg_echo($advanced_form['selection_'.$s]).':</strong> '.elgg_echo($advanced_form['selection_'.$s.'_element']).' </span> '; |
|
129 | 129 | |
130 | - } |
|
131 | - } |
|
130 | + } |
|
131 | + } |
|
132 | 132 | |
133 | - $content .= "</div>"; |
|
134 | - $content .= elgg_view('output/url', array( |
|
133 | + $content .= "</div>"; |
|
134 | + $content .= elgg_view('output/url', array( |
|
135 | 135 | 'text' => elgg_echo('missions:clear_search'), |
136 | 136 | 'href' => 'missions/main?clear=true&search='.$advanced_form, |
137 | 137 | 'class' => 'mrgn-lft-sm', |
@@ -139,7 +139,7 @@ discard block |
||
139 | 139 | 'is_trusted' => true, |
140 | 140 | )); |
141 | 141 | |
142 | - // Advanced search form which gets hidden. |
|
142 | + // Advanced search form which gets hidden. |
|
143 | 143 | $advanced_search_form = elgg_view_form('missions/advanced-search-form', array( |
144 | 144 | 'class' => 'form-horizontal' |
145 | 145 | )); |
@@ -162,13 +162,13 @@ discard block |
||
162 | 162 | |
163 | 163 | // Displays the missions as a list with custom class mission-gallery |
164 | 164 | $content .= '<div class="col-sm-12 clearfix">' . elgg_view_entity_list(array_slice($search_set, $offset, $max), array( |
165 | - 'count' => $count, |
|
166 | - 'offset' => $offset, |
|
167 | - 'limit' => $max, |
|
168 | - 'pagination' => true, |
|
169 | - 'list_type' => $list_typing, |
|
170 | - 'gallery_class' => $list_class, |
|
171 | - 'item_class'=>$item_class, |
|
165 | + 'count' => $count, |
|
166 | + 'offset' => $offset, |
|
167 | + 'limit' => $max, |
|
168 | + 'pagination' => true, |
|
169 | + 'list_type' => $list_typing, |
|
170 | + 'gallery_class' => $list_class, |
|
171 | + 'item_class'=>$item_class, |
|
172 | 172 | 'missions_full_view' => false |
173 | 173 | ), $offset, $max) . '</div>'; |
174 | 174 |
@@ -16,7 +16,7 @@ discard block |
||
16 | 16 | $advanced_form = elgg_get_sticky_values('advancedfill'); |
17 | 17 | $number_of_rows = elgg_get_plugin_setting('advanced_element_limit', 'missions'); |
18 | 18 | |
19 | -if($_SESSION[$search_typing . '_entities_per_page']) { |
|
19 | +if ($_SESSION[$search_typing . '_entities_per_page']) { |
|
20 | 20 | $entities_per_page = $_SESSION[$search_typing . '_entities_per_page']; |
21 | 21 | } |
22 | 22 | |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | } |
39 | 39 | |
40 | 40 | $title = elgg_echo('missions:display_search_results'); |
41 | -if($search_typing == 'candidate') { |
|
41 | +if ($search_typing == 'candidate') { |
|
42 | 42 | $title = elgg_echo('missions:display_find_results'); |
43 | 43 | } |
44 | 44 | |
@@ -48,7 +48,7 @@ discard block |
||
48 | 48 | // Variables to help set up pagination |
49 | 49 | $count = $_SESSION[$search_typing . '_count']; |
50 | 50 | $offset = (int) get_input('offset', 0); |
51 | -if($entities_per_page) { |
|
51 | +if ($entities_per_page) { |
|
52 | 52 | $max = $entities_per_page; |
53 | 53 | } |
54 | 54 | else { |
@@ -57,7 +57,7 @@ discard block |
||
57 | 57 | |
58 | 58 | // Calls a limited amount of missions for display |
59 | 59 | $search_set = array(); |
60 | -if(time() > ($_SESSION[$search_typing . '_search_set_timestamp'] + elgg_get_plugin_setting('mission_session_variable_timeout', 'missions')) |
|
60 | +if (time() > ($_SESSION[$search_typing . '_search_set_timestamp'] + elgg_get_plugin_setting('mission_session_variable_timeout', 'missions')) |
|
61 | 61 | && $_SESSION[$search_typing . '_search_set_timestamp'] != '') { |
62 | 62 | system_message(elgg_echo('missions:last_results_have_expired')); |
63 | 63 | unset($_SESSION[$search_typing . '_search_set']); |
@@ -70,7 +70,7 @@ discard block |
||
70 | 70 | $list_typing = 'list'; |
71 | 71 | $list_class = ''; |
72 | 72 | $item_class = ''; |
73 | -if($search_typing == 'mission') { |
|
73 | +if ($search_typing == 'mission') { |
|
74 | 74 | $list_typing = 'gallery'; |
75 | 75 | $list_class = 'mission-gallery wb-eqht clearfix'; |
76 | 76 | $item_class = 'col-sm-4'; |
@@ -78,27 +78,27 @@ discard block |
||
78 | 78 | |
79 | 79 | // Function which sorts the search set according to a given value in ascending or descending order. |
80 | 80 | $search_set = mm_sort_mission_decider($_SESSION['missions_sort_field_value'], $_SESSION['missions_order_field_value'], $search_set, $_SESSION['missions_type_field_value'], $_SESSION['missions_role_field_value']); |
81 | -$count = count($search_set); // count the filtered list |
|
82 | -if ( $offset >= $count ) // reset offset if it no longer makes sense after filtering |
|
81 | +$count = count($search_set); // count the filtered list |
|
82 | +if ($offset >= $count) // reset offset if it no longer makes sense after filtering |
|
83 | 83 | $offset = 0; |
84 | 84 | |
85 | 85 | $max_reached = ''; |
86 | -if(($offset + $max) >= elgg_get_plugin_setting('search_limit', 'missions') && $count >= elgg_get_plugin_setting('search_limit', 'missions')) { |
|
86 | +if (($offset + $max) >= elgg_get_plugin_setting('search_limit', 'missions') && $count >= elgg_get_plugin_setting('search_limit', 'missions')) { |
|
87 | 87 | $max_reached = '<div class="col-sm-12" style="font-style:italic;">' . elgg_echo('missions:reached_maximum_entities') . '</div>'; |
88 | 88 | } |
89 | 89 | |
90 | 90 | $content = elgg_view_title($title); |
91 | 91 | |
92 | -if($_SESSION['missions_from_skill_match']) { |
|
92 | +if ($_SESSION['missions_from_skill_match']) { |
|
93 | 93 | unset($_SESSION['missions_from_skill_match']); |
94 | 94 | $content .= '<div>' . elgg_echo('missions:placeholder_e') . '</div>'; |
95 | 95 | } |
96 | 96 | |
97 | 97 | $content .= elgg_view('page/elements/mission-tabs') . $max_reached; |
98 | 98 | |
99 | -if ($search_form ) { |
|
99 | +if ($search_form) { |
|
100 | 100 | |
101 | - $content .= '<div style="clear:both">'.elgg_view_form('missions/search-simple').'</div>'; |
|
101 | + $content .= '<div style="clear:both">' . elgg_view_form('missions/search-simple') . '</div>'; |
|
102 | 102 | } |
103 | 103 | |
104 | 104 | $search_fields = array( |
@@ -119,13 +119,13 @@ discard block |
||
119 | 119 | elgg_echo('missions:program_area') |
120 | 120 | ); |
121 | 121 | |
122 | -if ($advanced_form){ |
|
122 | +if ($advanced_form) { |
|
123 | 123 | |
124 | - $content .='<div class="mrgn-bttm-sm"><strong>'.elgg_echo('missions:search_value').':</strong> '; |
|
125 | - for ($s = 0; $s < $number_of_rows; $s ++) { |
|
126 | - if ($advanced_form['selection_'.$s]){ |
|
124 | + $content .= '<div class="mrgn-bttm-sm"><strong>' . elgg_echo('missions:search_value') . ':</strong> '; |
|
125 | + for ($s = 0; $s < $number_of_rows; $s++) { |
|
126 | + if ($advanced_form['selection_' . $s]) { |
|
127 | 127 | |
128 | - $content .= '<span class="mrgn-rght-md"><strong>'.elgg_echo($advanced_form['selection_'.$s]).':</strong> '.elgg_echo($advanced_form['selection_'.$s.'_element']).' </span> '; |
|
128 | + $content .= '<span class="mrgn-rght-md"><strong>' . elgg_echo($advanced_form['selection_' . $s]) . ':</strong> ' . elgg_echo($advanced_form['selection_' . $s . '_element']) . ' </span> '; |
|
129 | 129 | |
130 | 130 | } |
131 | 131 | } |
@@ -133,7 +133,7 @@ discard block |
||
133 | 133 | $content .= "</div>"; |
134 | 134 | $content .= elgg_view('output/url', array( |
135 | 135 | 'text' => elgg_echo('missions:clear_search'), |
136 | - 'href' => 'missions/main?clear=true&search='.$advanced_form, |
|
136 | + 'href' => 'missions/main?clear=true&search=' . $advanced_form, |
|
137 | 137 | 'class' => 'mrgn-lft-sm', |
138 | 138 | 'is_action' => true, |
139 | 139 | 'is_trusted' => true, |
@@ -143,7 +143,7 @@ discard block |
||
143 | 143 | $advanced_search_form = elgg_view_form('missions/advanced-search-form', array( |
144 | 144 | 'class' => 'form-horizontal' |
145 | 145 | )); |
146 | -$content .= '<br>'.elgg_view('page/elements/hidden-field', array( |
|
146 | +$content .= '<br>' . elgg_view('page/elements/hidden-field', array( |
|
147 | 147 | 'toggle_text' => elgg_echo('missions:search:Refine'), |
148 | 148 | 'toggle_text_hidden' => elgg_echo('close'), |
149 | 149 | 'toggle_id' => 'advanced-search', |
@@ -154,7 +154,7 @@ discard block |
||
154 | 154 | } |
155 | 155 | |
156 | 156 | // Only displays sort form if the search set is missions. |
157 | -if($search_typing == 'mission') { |
|
157 | +if ($search_typing == 'mission') { |
|
158 | 158 | $content .= '<div class="col-sm-12 mrgn-tp-lg">' . $sort_missions_form . $clear_link . '</div>'; |
159 | 159 | } |
160 | 160 |
@@ -50,8 +50,7 @@ discard block |
||
50 | 50 | $offset = (int) get_input('offset', 0); |
51 | 51 | if($entities_per_page) { |
52 | 52 | $max = $entities_per_page; |
53 | -} |
|
54 | -else { |
|
53 | +} else { |
|
55 | 54 | $max = elgg_get_plugin_setting('search_result_per_page', 'missions'); |
56 | 55 | } |
57 | 56 | |
@@ -62,8 +61,7 @@ discard block |
||
62 | 61 | system_message(elgg_echo('missions:last_results_have_expired')); |
63 | 62 | unset($_SESSION[$search_typing . '_search_set']); |
64 | 63 | unset($_SESSION[$search_typing . '_search_set_timestamp']); |
65 | -} |
|
66 | -else { |
|
64 | +} else { |
|
67 | 65 | $search_set = $_SESSION[$search_typing . '_search_set']; |
68 | 66 | } |
69 | 67 | |
@@ -79,8 +77,10 @@ discard block |
||
79 | 77 | // Function which sorts the search set according to a given value in ascending or descending order. |
80 | 78 | $search_set = mm_sort_mission_decider($_SESSION['missions_sort_field_value'], $_SESSION['missions_order_field_value'], $search_set, $_SESSION['missions_type_field_value'], $_SESSION['missions_role_field_value']); |
81 | 79 | $count = count($search_set); // count the filtered list |
82 | -if ( $offset >= $count ) // reset offset if it no longer makes sense after filtering |
|
80 | +if ( $offset >= $count ) { |
|
81 | + // reset offset if it no longer makes sense after filtering |
|
83 | 82 | $offset = 0; |
83 | +} |
|
84 | 84 | |
85 | 85 | $max_reached = ''; |
86 | 86 | if(($offset + $max) >= elgg_get_plugin_setting('search_limit', 'missions') && $count >= elgg_get_plugin_setting('search_limit', 'missions')) { |
@@ -24,108 +24,108 @@ discard block |
||
24 | 24 | elgg_register_js('missions_flot_navigation', 'mod/missions/vendors/flot_extra/jquery.flot.navigation.nrc.js'); |
25 | 25 | elgg_register_js('missions_flot_time', 'mod/missions/vendors/flot_extra/jquery.flot.time.min.js'); |
26 | 26 | |
27 | - // Register the custom library of methods for use in the plugin |
|
28 | - elgg_register_library('elgg:missions', elgg_get_plugins_path() . 'missions/lib/missions.php'); |
|
29 | - elgg_register_library('elgg:missions-searching', elgg_get_plugins_path() . 'missions/lib/missions-searching.php'); |
|
30 | - elgg_register_library('elgg:missions-errors', elgg_get_plugins_path() . 'missions/lib/missions-errors.php'); |
|
31 | - elgg_register_library('elgg:missions-analytics', elgg_get_plugins_path() . 'missions/lib/missions-analytics.php'); |
|
32 | - elgg_load_library('elgg:missions'); |
|
33 | - elgg_load_library('elgg:missions-searching'); |
|
34 | - elgg_load_library('elgg:missions-errors'); |
|
35 | - elgg_load_library('elgg:missions-analytics'); |
|
27 | + // Register the custom library of methods for use in the plugin |
|
28 | + elgg_register_library('elgg:missions', elgg_get_plugins_path() . 'missions/lib/missions.php'); |
|
29 | + elgg_register_library('elgg:missions-searching', elgg_get_plugins_path() . 'missions/lib/missions-searching.php'); |
|
30 | + elgg_register_library('elgg:missions-errors', elgg_get_plugins_path() . 'missions/lib/missions-errors.php'); |
|
31 | + elgg_register_library('elgg:missions-analytics', elgg_get_plugins_path() . 'missions/lib/missions-analytics.php'); |
|
32 | + elgg_load_library('elgg:missions'); |
|
33 | + elgg_load_library('elgg:missions-searching'); |
|
34 | + elgg_load_library('elgg:missions-errors'); |
|
35 | + elgg_load_library('elgg:missions-analytics'); |
|
36 | 36 | |
37 | 37 | elgg_load_library('elgg:missions-organization'); |
38 | 38 | |
39 | - //Register to run unit tests |
|
39 | + //Register to run unit tests |
|
40 | 40 | elgg_register_plugin_hook_handler('unit_test', 'system', 'missions_unit_tests'); |
41 | 41 | |
42 | - // Register a handler for page navigation. |
|
43 | - elgg_register_page_handler('missions', 'missions_main_page_handler'); |
|
42 | + // Register a handler for page navigation. |
|
43 | + elgg_register_page_handler('missions', 'missions_main_page_handler'); |
|
44 | 44 | |
45 | - // Extends the original ELGG CSS with our own |
|
46 | - elgg_extend_view('css/elgg', 'css/all-mission-css'); |
|
45 | + // Extends the original ELGG CSS with our own |
|
46 | + elgg_extend_view('css/elgg', 'css/all-mission-css'); |
|
47 | 47 | |
48 | - // Register our action files found in missions/action/ |
|
49 | - elgg_register_action("missions/post-mission-first-form", elgg_get_plugins_path() . "missions/actions/missions/post-mission-first-form.php"); |
|
50 | - elgg_register_action("missions/post-mission-second-form", elgg_get_plugins_path() . "missions/actions/missions/post-mission-second-form.php"); |
|
51 | - elgg_register_action("missions/post-mission-third-form", elgg_get_plugins_path() . "missions/actions/missions/post-mission-third-form.php"); |
|
52 | - elgg_register_action("missions/delete-mission", elgg_get_plugins_path() . "missions/actions/missions/delete-mission.php"); |
|
53 | - elgg_register_action("missions/search-simple", elgg_get_plugins_path() . "missions/actions/missions/search-simple.php"); |
|
54 | - elgg_register_action("missions/advanced-search-form", elgg_get_plugins_path() . "missions/actions/missions/advanced-search-form.php"); |
|
55 | - elgg_register_action("missions/application-form", elgg_get_plugins_path() . "missions/actions/missions/application-form.php"); |
|
56 | - elgg_register_action("missions/remove-applicant", elgg_get_plugins_path() . "missions/actions/missions/remove-applicant.php"); |
|
57 | - elgg_register_action("missions/accept-invite", elgg_get_plugins_path() . "missions/actions/missions/accept-invite.php"); |
|
58 | - elgg_register_action("missions/decline-invite", elgg_get_plugins_path() . "missions/actions/missions/decline-invite.php"); |
|
59 | - elgg_register_action("missions/invite-user", elgg_get_plugins_path() . "missions/actions/missions/invite-user.php"); |
|
60 | - elgg_register_action("missions/change-mission-form", elgg_get_plugins_path() . "missions/actions/missions/change-mission-form.php"); |
|
61 | - elgg_register_action("missions/feedback-form", elgg_get_plugins_path() . "missions/actions/missions/feedback-form.php"); |
|
62 | - elgg_register_action("missions/complete-mission", elgg_get_plugins_path() . "missions/actions/missions/complete-mission.php"); |
|
63 | - elgg_register_action("missions/cancel-mission", elgg_get_plugins_path() . "missions/actions/missions/cancel-mission.php"); |
|
64 | - elgg_register_action("missions/reopen-mission", elgg_get_plugins_path() . "missions/actions/missions/reopen-mission.php"); |
|
65 | - elgg_register_action("missions/refine-my-missions-form", elgg_get_plugins_path() . "missions/actions/missions/refine-my-missions-form.php"); |
|
66 | - elgg_register_action("missions/wire-post", elgg_get_plugins_path() . "missions/actions/missions/wire-post.php"); |
|
67 | - elgg_register_action("missions/mission-offer", elgg_get_plugins_path() . "missions/actions/missions/mission-offer.php"); |
|
68 | - elgg_register_action("missions/duplicate-mission", elgg_get_plugins_path() . "missions/actions/missions/duplicate-mission.php"); |
|
69 | - elgg_register_action("missions/mission-invite-selector", elgg_get_plugins_path() . "missions/actions/missions/mission-invite-selector.php"); |
|
70 | - elgg_register_action("missions/change-entities-per-page", elgg_get_plugins_path() . "missions/actions/missions/change-entities-per-page.php"); |
|
71 | - elgg_register_action("missions/admin-form", elgg_get_plugins_path() . "missions/actions/missions/admin-form.php"); |
|
72 | - elgg_register_action("missions/endorse-user", elgg_get_plugins_path() . "missions/actions/missions/endorse-user.php"); |
|
73 | - elgg_register_action("missions/post-mission-skill-match", elgg_get_plugins_path() . "missions/actions/missions/post-mission-skill-match.php"); |
|
74 | - elgg_register_action("missions/pre-create-opportunity", elgg_get_plugins_path() . "missions/actions/missions/pre-create-opportunity.php"); |
|
75 | - elgg_register_action("missions/finalize-offer", elgg_get_plugins_path() . "missions/actions/missions/finalize-offer.php"); |
|
76 | - elgg_register_action("missions/message-user-form", elgg_get_plugins_path() . "missions/actions/missions/message-user-form.php"); |
|
77 | - elgg_register_action("missions/sort-missions-form", elgg_get_plugins_path() . "missions/actions/missions/sort-missions-form.php"); |
|
78 | - elgg_register_action("missions/opt-in-splash", elgg_get_plugins_path() . "missions/actions/missions/opt-in-splash.php"); |
|
48 | + // Register our action files found in missions/action/ |
|
49 | + elgg_register_action("missions/post-mission-first-form", elgg_get_plugins_path() . "missions/actions/missions/post-mission-first-form.php"); |
|
50 | + elgg_register_action("missions/post-mission-second-form", elgg_get_plugins_path() . "missions/actions/missions/post-mission-second-form.php"); |
|
51 | + elgg_register_action("missions/post-mission-third-form", elgg_get_plugins_path() . "missions/actions/missions/post-mission-third-form.php"); |
|
52 | + elgg_register_action("missions/delete-mission", elgg_get_plugins_path() . "missions/actions/missions/delete-mission.php"); |
|
53 | + elgg_register_action("missions/search-simple", elgg_get_plugins_path() . "missions/actions/missions/search-simple.php"); |
|
54 | + elgg_register_action("missions/advanced-search-form", elgg_get_plugins_path() . "missions/actions/missions/advanced-search-form.php"); |
|
55 | + elgg_register_action("missions/application-form", elgg_get_plugins_path() . "missions/actions/missions/application-form.php"); |
|
56 | + elgg_register_action("missions/remove-applicant", elgg_get_plugins_path() . "missions/actions/missions/remove-applicant.php"); |
|
57 | + elgg_register_action("missions/accept-invite", elgg_get_plugins_path() . "missions/actions/missions/accept-invite.php"); |
|
58 | + elgg_register_action("missions/decline-invite", elgg_get_plugins_path() . "missions/actions/missions/decline-invite.php"); |
|
59 | + elgg_register_action("missions/invite-user", elgg_get_plugins_path() . "missions/actions/missions/invite-user.php"); |
|
60 | + elgg_register_action("missions/change-mission-form", elgg_get_plugins_path() . "missions/actions/missions/change-mission-form.php"); |
|
61 | + elgg_register_action("missions/feedback-form", elgg_get_plugins_path() . "missions/actions/missions/feedback-form.php"); |
|
62 | + elgg_register_action("missions/complete-mission", elgg_get_plugins_path() . "missions/actions/missions/complete-mission.php"); |
|
63 | + elgg_register_action("missions/cancel-mission", elgg_get_plugins_path() . "missions/actions/missions/cancel-mission.php"); |
|
64 | + elgg_register_action("missions/reopen-mission", elgg_get_plugins_path() . "missions/actions/missions/reopen-mission.php"); |
|
65 | + elgg_register_action("missions/refine-my-missions-form", elgg_get_plugins_path() . "missions/actions/missions/refine-my-missions-form.php"); |
|
66 | + elgg_register_action("missions/wire-post", elgg_get_plugins_path() . "missions/actions/missions/wire-post.php"); |
|
67 | + elgg_register_action("missions/mission-offer", elgg_get_plugins_path() . "missions/actions/missions/mission-offer.php"); |
|
68 | + elgg_register_action("missions/duplicate-mission", elgg_get_plugins_path() . "missions/actions/missions/duplicate-mission.php"); |
|
69 | + elgg_register_action("missions/mission-invite-selector", elgg_get_plugins_path() . "missions/actions/missions/mission-invite-selector.php"); |
|
70 | + elgg_register_action("missions/change-entities-per-page", elgg_get_plugins_path() . "missions/actions/missions/change-entities-per-page.php"); |
|
71 | + elgg_register_action("missions/admin-form", elgg_get_plugins_path() . "missions/actions/missions/admin-form.php"); |
|
72 | + elgg_register_action("missions/endorse-user", elgg_get_plugins_path() . "missions/actions/missions/endorse-user.php"); |
|
73 | + elgg_register_action("missions/post-mission-skill-match", elgg_get_plugins_path() . "missions/actions/missions/post-mission-skill-match.php"); |
|
74 | + elgg_register_action("missions/pre-create-opportunity", elgg_get_plugins_path() . "missions/actions/missions/pre-create-opportunity.php"); |
|
75 | + elgg_register_action("missions/finalize-offer", elgg_get_plugins_path() . "missions/actions/missions/finalize-offer.php"); |
|
76 | + elgg_register_action("missions/message-user-form", elgg_get_plugins_path() . "missions/actions/missions/message-user-form.php"); |
|
77 | + elgg_register_action("missions/sort-missions-form", elgg_get_plugins_path() . "missions/actions/missions/sort-missions-form.php"); |
|
78 | + elgg_register_action("missions/opt-in-splash", elgg_get_plugins_path() . "missions/actions/missions/opt-in-splash.php"); |
|
79 | 79 | |
80 | - // Register a new subtype of object for categorizing our mission object. |
|
81 | - elgg_register_entity_type('object', 'mission'); |
|
82 | - elgg_register_entity_type('object', 'mission-feedback'); |
|
83 | - elgg_register_entity_type('object', 'mission-declination'); |
|
84 | - elgg_register_entity_type('object', 'mission-wasoffered'); |
|
85 | - elgg_register_entity_type('object', 'mission-inprogress'); |
|
86 | - elgg_register_entity_type('object', 'mission-posted'); |
|
87 | - elgg_register_entity_type('object', 'mission-cancelled'); |
|
88 | - elgg_register_entity_type('object', 'mission-completed'); |
|
80 | + // Register a new subtype of object for categorizing our mission object. |
|
81 | + elgg_register_entity_type('object', 'mission'); |
|
82 | + elgg_register_entity_type('object', 'mission-feedback'); |
|
83 | + elgg_register_entity_type('object', 'mission-declination'); |
|
84 | + elgg_register_entity_type('object', 'mission-wasoffered'); |
|
85 | + elgg_register_entity_type('object', 'mission-inprogress'); |
|
86 | + elgg_register_entity_type('object', 'mission-posted'); |
|
87 | + elgg_register_entity_type('object', 'mission-cancelled'); |
|
88 | + elgg_register_entity_type('object', 'mission-completed'); |
|
89 | 89 | |
90 | - // Register an ajax view for the advanced search page. |
|
91 | - elgg_register_ajax_view('missions/element-select'); |
|
90 | + // Register an ajax view for the advanced search page. |
|
91 | + elgg_register_ajax_view('missions/element-select'); |
|
92 | 92 | |
93 | - // Register an ajax view for adding a skill input field. |
|
94 | - elgg_register_ajax_view('missions/add-skill'); |
|
93 | + // Register an ajax view for adding a skill input field. |
|
94 | + elgg_register_ajax_view('missions/add-skill'); |
|
95 | 95 | |
96 | - // |
|
97 | - elgg_register_ajax_view('missions/analytics-inputs'); |
|
96 | + // |
|
97 | + elgg_register_ajax_view('missions/analytics-inputs'); |
|
98 | 98 | |
99 | - // Register an ajax view for generating an analytics graph. |
|
100 | - elgg_register_ajax_view('missions/analytics-generator'); |
|
99 | + // Register an ajax view for generating an analytics graph. |
|
100 | + elgg_register_ajax_view('missions/analytics-generator'); |
|
101 | 101 | |
102 | - // Register an ajax view for the opt in on splash |
|
103 | - elgg_register_ajax_view('missions/opt_in_splash'); |
|
102 | + // Register an ajax view for the opt in on splash |
|
103 | + elgg_register_ajax_view('missions/opt_in_splash'); |
|
104 | 104 | |
105 | - //Hook which sets the url for object entities upon creation. |
|
106 | - elgg_register_plugin_hook_handler('entity:url', 'object', 'mission_set_url'); |
|
105 | + //Hook which sets the url for object entities upon creation. |
|
106 | + elgg_register_plugin_hook_handler('entity:url', 'object', 'mission_set_url'); |
|
107 | 107 | |
108 | - // Hook which changes how user entities are displayed. |
|
109 | - elgg_register_plugin_hook_handler('view', 'user/default', 'alter_mission_user_view'); |
|
108 | + // Hook which changes how user entities are displayed. |
|
109 | + elgg_register_plugin_hook_handler('view', 'user/default', 'alter_mission_user_view'); |
|
110 | 110 | |
111 | - // Changes the manager's owner block in the mission view. |
|
112 | - elgg_register_plugin_hook_handler('view', 'page/elements/owner_block', 'alter_mission_owner_block'); |
|
111 | + // Changes the manager's owner block in the mission view. |
|
112 | + elgg_register_plugin_hook_handler('view', 'page/elements/owner_block', 'alter_mission_owner_block'); |
|
113 | 113 | |
114 | - // Adds a menu item to the site menu (top bar). |
|
115 | - elgg_register_menu_item('site', array( |
|
116 | - 'name' => 'mission_main', |
|
117 | - 'href' => elgg_get_site_url() . 'missions/main', |
|
118 | - 'text' => elgg_echo('missions:micromissions_menu') |
|
119 | - )); |
|
114 | + // Adds a menu item to the site menu (top bar). |
|
115 | + elgg_register_menu_item('site', array( |
|
116 | + 'name' => 'mission_main', |
|
117 | + 'href' => elgg_get_site_url() . 'missions/main', |
|
118 | + 'text' => elgg_echo('missions:micromissions_menu') |
|
119 | + )); |
|
120 | 120 | |
121 | - // Adds a menu item to the admin page under the administer section in the right hand bar. |
|
122 | - elgg_register_menu_item('page', array( |
|
123 | - 'name' => 'mission_admin_tool', |
|
124 | - 'href' => elgg_get_site_url() . 'admin/missions/main', |
|
125 | - 'text' => elgg_echo('missions:admin_tool'), |
|
126 | - 'section' => 'administer', |
|
127 | - 'contexts' => array('admin') |
|
128 | - )); |
|
121 | + // Adds a menu item to the admin page under the administer section in the right hand bar. |
|
122 | + elgg_register_menu_item('page', array( |
|
123 | + 'name' => 'mission_admin_tool', |
|
124 | + 'href' => elgg_get_site_url() . 'admin/missions/main', |
|
125 | + 'text' => elgg_echo('missions:admin_tool'), |
|
126 | + 'section' => 'administer', |
|
127 | + 'contexts' => array('admin') |
|
128 | + )); |
|
129 | 129 | } |
130 | 130 | |
131 | 131 | /* |
@@ -133,58 +133,58 @@ discard block |
||
133 | 133 | */ |
134 | 134 | function missions_main_page_handler($segments) |
135 | 135 | { |
136 | - switch ($segments[0]) { |
|
137 | - case 'main': |
|
138 | - include elgg_get_plugins_path() . 'missions/pages/missions/main.php'; |
|
139 | - break; |
|
140 | - case 'display-search-set': |
|
141 | - include elgg_get_plugins_path() . 'missions/pages/missions/display-search-set.php'; |
|
142 | - break; |
|
143 | - case 'mission-application': |
|
144 | - include elgg_get_plugins_path() . 'missions/pages/missions/mission-application.php'; |
|
145 | - break; |
|
146 | - case 'mission-edit': |
|
147 | - include elgg_get_plugins_path() . 'missions/pages/missions/mission-edit.php'; |
|
148 | - break; |
|
149 | - case 'view': |
|
150 | - include elgg_get_plugins_path() . 'missions/pages/missions/mission-view.php'; |
|
151 | - break; |
|
152 | - case 'mission-feedback': |
|
153 | - include elgg_get_plugins_path() . 'missions/pages/missions/mission-feedback.php'; |
|
154 | - break; |
|
155 | - case 'message-share': |
|
156 | - include elgg_get_plugins_path() . 'missions/pages/missions/message-share.php'; |
|
157 | - break; |
|
158 | - case 'mission-post': |
|
159 | - include elgg_get_plugins_path() . 'missions/pages/missions/mission-post.php'; |
|
160 | - break; |
|
161 | - case 'mission-candidate-search': |
|
162 | - include elgg_get_plugins_path() . 'missions/pages/missions/mission-candidate-search.php'; |
|
163 | - break; |
|
164 | - case 'mission-offer': |
|
165 | - include elgg_get_plugins_path() . 'missions/pages/missions/mission-offer.php'; |
|
166 | - break; |
|
167 | - case 'reason-to-decline': |
|
168 | - include elgg_get_plugins_path() . 'missions/pages/missions/reason-to-decline.php'; |
|
169 | - break; |
|
136 | + switch ($segments[0]) { |
|
137 | + case 'main': |
|
138 | + include elgg_get_plugins_path() . 'missions/pages/missions/main.php'; |
|
139 | + break; |
|
140 | + case 'display-search-set': |
|
141 | + include elgg_get_plugins_path() . 'missions/pages/missions/display-search-set.php'; |
|
142 | + break; |
|
143 | + case 'mission-application': |
|
144 | + include elgg_get_plugins_path() . 'missions/pages/missions/mission-application.php'; |
|
145 | + break; |
|
146 | + case 'mission-edit': |
|
147 | + include elgg_get_plugins_path() . 'missions/pages/missions/mission-edit.php'; |
|
148 | + break; |
|
149 | + case 'view': |
|
150 | + include elgg_get_plugins_path() . 'missions/pages/missions/mission-view.php'; |
|
151 | + break; |
|
152 | + case 'mission-feedback': |
|
153 | + include elgg_get_plugins_path() . 'missions/pages/missions/mission-feedback.php'; |
|
154 | + break; |
|
155 | + case 'message-share': |
|
156 | + include elgg_get_plugins_path() . 'missions/pages/missions/message-share.php'; |
|
157 | + break; |
|
158 | + case 'mission-post': |
|
159 | + include elgg_get_plugins_path() . 'missions/pages/missions/mission-post.php'; |
|
160 | + break; |
|
161 | + case 'mission-candidate-search': |
|
162 | + include elgg_get_plugins_path() . 'missions/pages/missions/mission-candidate-search.php'; |
|
163 | + break; |
|
164 | + case 'mission-offer': |
|
165 | + include elgg_get_plugins_path() . 'missions/pages/missions/mission-offer.php'; |
|
166 | + break; |
|
167 | + case 'reason-to-decline': |
|
168 | + include elgg_get_plugins_path() . 'missions/pages/missions/reason-to-decline.php'; |
|
169 | + break; |
|
170 | 170 | |
171 | - case 'api': |
|
172 | - if (count($segments) >= 3) { |
|
173 | - if ($segments[1] == 'v0') { |
|
174 | - include elgg_get_plugins_path() . 'missions/api/v0/export.php'; |
|
175 | - $object_type = strtolower($segments[2]); |
|
176 | - if ($object_type == 'subtypes') { |
|
177 | - $export = new NRC\subtypeExport(); |
|
178 | - $export->getJSON(); |
|
179 | - } else { |
|
180 | - $subtype = ($object_type == 'user') ? false : $segments[3]; |
|
181 | - $guid = ($object_type == 'user') ? $segments[3] : $segments[4]; |
|
182 | - $export = new NRC\export($object_type, $subtype, $guid); |
|
183 | - $export->getJSON(); |
|
184 | - } |
|
185 | - } |
|
186 | - } |
|
187 | - } |
|
171 | + case 'api': |
|
172 | + if (count($segments) >= 3) { |
|
173 | + if ($segments[1] == 'v0') { |
|
174 | + include elgg_get_plugins_path() . 'missions/api/v0/export.php'; |
|
175 | + $object_type = strtolower($segments[2]); |
|
176 | + if ($object_type == 'subtypes') { |
|
177 | + $export = new NRC\subtypeExport(); |
|
178 | + $export->getJSON(); |
|
179 | + } else { |
|
180 | + $subtype = ($object_type == 'user') ? false : $segments[3]; |
|
181 | + $guid = ($object_type == 'user') ? $segments[3] : $segments[4]; |
|
182 | + $export = new NRC\export($object_type, $subtype, $guid); |
|
183 | + $export->getJSON(); |
|
184 | + } |
|
185 | + } |
|
186 | + } |
|
187 | + } |
|
188 | 188 | } |
189 | 189 | |
190 | 190 | |
@@ -215,42 +215,42 @@ discard block |
||
215 | 215 | |
216 | 216 | // Changes the view of the user entity if the context is 'mission'. |
217 | 217 | function alter_mission_user_view($hook, $type, $returnvalue, $params) { |
218 | - $current_uri = $_SERVER['REQUEST_URI']; |
|
218 | + $current_uri = $_SERVER['REQUEST_URI']; |
|
219 | 219 | |
220 | - if(strpos($current_uri, 'missions') === false) { |
|
221 | - return $returnvalue; |
|
222 | - } |
|
223 | - else { |
|
224 | - if(strpos($current_uri, 'missions/view') === false && |
|
225 | - strpos($current_uri, 'missions/mission-invitation') === false && |
|
226 | - strpos($current_uri, 'missions/mission-edit') === false && |
|
227 | - strpos($current_uri, 'missions/mission-offer') === false) { |
|
228 | - return elgg_view('user/mission-candidate', array('user' => $params['vars']['entity'])); |
|
229 | - } |
|
230 | - else { |
|
231 | - return $returnvalue; |
|
232 | - } |
|
233 | - } |
|
220 | + if(strpos($current_uri, 'missions') === false) { |
|
221 | + return $returnvalue; |
|
222 | + } |
|
223 | + else { |
|
224 | + if(strpos($current_uri, 'missions/view') === false && |
|
225 | + strpos($current_uri, 'missions/mission-invitation') === false && |
|
226 | + strpos($current_uri, 'missions/mission-edit') === false && |
|
227 | + strpos($current_uri, 'missions/mission-offer') === false) { |
|
228 | + return elgg_view('user/mission-candidate', array('user' => $params['vars']['entity'])); |
|
229 | + } |
|
230 | + else { |
|
231 | + return $returnvalue; |
|
232 | + } |
|
233 | + } |
|
234 | 234 | } |
235 | 235 | |
236 | 236 | // Changes the owner block for the mission entity view. |
237 | 237 | function alter_mission_owner_block($hook, $type, $returnvalue, $params) { |
238 | - $is_mission = $params['vars']['is_mission']; |
|
239 | - if(!$is_mission) { |
|
240 | - return $returnvalue; |
|
241 | - } |
|
242 | - else { |
|
243 | - $owner = elgg_get_page_owner_entity(); |
|
238 | + $is_mission = $params['vars']['is_mission']; |
|
239 | + if(!$is_mission) { |
|
240 | + return $returnvalue; |
|
241 | + } |
|
242 | + else { |
|
243 | + $owner = elgg_get_page_owner_entity(); |
|
244 | 244 | |
245 | - if ($owner instanceof ElggGroup || ($owner instanceof ElggUser && $owner->getGUID() != elgg_get_logged_in_user_guid())) { |
|
246 | - $header = '<h3>' . elgg_echo('missions:managed_by') . ':</h3>'; |
|
247 | - $header .= elgg_view_entity($owner, array('full_view' => false)); |
|
245 | + if ($owner instanceof ElggGroup || ($owner instanceof ElggUser && $owner->getGUID() != elgg_get_logged_in_user_guid())) { |
|
246 | + $header = '<h3>' . elgg_echo('missions:managed_by') . ':</h3>'; |
|
247 | + $header .= elgg_view_entity($owner, array('full_view' => false)); |
|
248 | 248 | |
249 | - return elgg_view('page/components/module', array( |
|
250 | - 'header' => $header, |
|
251 | - 'body' => '', |
|
252 | - 'class' => 'elgg-owner-block' |
|
253 | - )); |
|
254 | - } |
|
255 | - } |
|
249 | + return elgg_view('page/components/module', array( |
|
250 | + 'header' => $header, |
|
251 | + 'body' => '', |
|
252 | + 'class' => 'elgg-owner-block' |
|
253 | + )); |
|
254 | + } |
|
255 | + } |
|
256 | 256 | } |
@@ -208,7 +208,7 @@ discard block |
||
208 | 208 | |
209 | 209 | function mission_set_url($hook, $type, $returnvalue, $params) { |
210 | 210 | $entity = $params['entity']; |
211 | - if(elgg_instanceof($entity, 'object', 'mission')) { |
|
211 | + if (elgg_instanceof($entity, 'object', 'mission')) { |
|
212 | 212 | return 'missions/view/' . $entity->guid; |
213 | 213 | } |
214 | 214 | } |
@@ -217,11 +217,11 @@ discard block |
||
217 | 217 | function alter_mission_user_view($hook, $type, $returnvalue, $params) { |
218 | 218 | $current_uri = $_SERVER['REQUEST_URI']; |
219 | 219 | |
220 | - if(strpos($current_uri, 'missions') === false) { |
|
220 | + if (strpos($current_uri, 'missions') === false) { |
|
221 | 221 | return $returnvalue; |
222 | 222 | } |
223 | 223 | else { |
224 | - if(strpos($current_uri, 'missions/view') === false && |
|
224 | + if (strpos($current_uri, 'missions/view') === false && |
|
225 | 225 | strpos($current_uri, 'missions/mission-invitation') === false && |
226 | 226 | strpos($current_uri, 'missions/mission-edit') === false && |
227 | 227 | strpos($current_uri, 'missions/mission-offer') === false) { |
@@ -236,7 +236,7 @@ discard block |
||
236 | 236 | // Changes the owner block for the mission entity view. |
237 | 237 | function alter_mission_owner_block($hook, $type, $returnvalue, $params) { |
238 | 238 | $is_mission = $params['vars']['is_mission']; |
239 | - if(!$is_mission) { |
|
239 | + if (!$is_mission) { |
|
240 | 240 | return $returnvalue; |
241 | 241 | } |
242 | 242 | else { |
@@ -219,15 +219,13 @@ discard block |
||
219 | 219 | |
220 | 220 | if(strpos($current_uri, 'missions') === false) { |
221 | 221 | return $returnvalue; |
222 | - } |
|
223 | - else { |
|
222 | + } else { |
|
224 | 223 | if(strpos($current_uri, 'missions/view') === false && |
225 | 224 | strpos($current_uri, 'missions/mission-invitation') === false && |
226 | 225 | strpos($current_uri, 'missions/mission-edit') === false && |
227 | 226 | strpos($current_uri, 'missions/mission-offer') === false) { |
228 | 227 | return elgg_view('user/mission-candidate', array('user' => $params['vars']['entity'])); |
229 | - } |
|
230 | - else { |
|
228 | + } else { |
|
231 | 229 | return $returnvalue; |
232 | 230 | } |
233 | 231 | } |
@@ -238,8 +236,7 @@ discard block |
||
238 | 236 | $is_mission = $params['vars']['is_mission']; |
239 | 237 | if(!$is_mission) { |
240 | 238 | return $returnvalue; |
241 | - } |
|
242 | - else { |
|
239 | + } else { |
|
243 | 240 | $owner = elgg_get_page_owner_entity(); |
244 | 241 | |
245 | 242 | if ($owner instanceof ElggGroup || ($owner instanceof ElggUser && $owner->getGUID() != elgg_get_logged_in_user_guid())) { |
@@ -47,16 +47,16 @@ discard block |
||
47 | 47 | $time_rate_string = 'missions:total' . ',' . 'missions:per_day' . ',' . 'missions:per_week' . ',' . 'missions:per_month'; |
48 | 48 | elgg_set_plugin_setting('time_rate_string', $time_rate_string, 'missions'); |
49 | 49 | |
50 | -$opportunity_role_string = 'missions:offering' . ',' .'missions:seeking'; |
|
50 | +$opportunity_role_string = 'missions:offering' . ',' . 'missions:seeking'; |
|
51 | 51 | elgg_set_plugin_setting('opportunity_role_string', $opportunity_role_string, 'missions'); |
52 | 52 | |
53 | 53 | /*$opportunity_type_string = 'missions:micro_mission' . ',' . 'missions:job_swap' . ',' . 'missions:mentoring' . ',' |
54 | 54 | . 'missions:shadowing' . ',' . 'missions:peer_coaching' . ',' . 'missions:skill_sharing' . ',' |
55 | 55 | . 'missions:job_sharing';*/ |
56 | -$opportunity_type_string = 'missions:micro_mission' . ',' . 'missions:mentoring' . ',' . 'missions:job_swap' . ',' . 'missions:job_shadowing' .','. 'missions:assignment' .','. 'missions:deployment' .','. 'missions:job_rotation' .','. 'missions:skill_share' .','. 'missions:peer_coaching' .','. 'missions:job_share'; |
|
56 | +$opportunity_type_string = 'missions:micro_mission' . ',' . 'missions:mentoring' . ',' . 'missions:job_swap' . ',' . 'missions:job_shadowing' . ',' . 'missions:assignment' . ',' . 'missions:deployment' . ',' . 'missions:job_rotation' . ',' . 'missions:skill_share' . ',' . 'missions:peer_coaching' . ',' . 'missions:job_share'; |
|
57 | 57 | elgg_set_plugin_setting('opportunity_type_string', $opportunity_type_string, 'missions'); |
58 | 58 | |
59 | -$opportunity_status_string = 'missions:posted' . ',' .'missions:completed' . ',' . 'missions:cancelled'; |
|
59 | +$opportunity_status_string = 'missions:posted' . ',' . 'missions:completed' . ',' . 'missions:cancelled'; |
|
60 | 60 | elgg_set_plugin_setting('opportunity_status_string', $opportunity_status_string, 'missions'); |
61 | 61 | |
62 | 62 | $province_string = ',' . 'missions:alberta' . ',' . 'missions:british_columbia' . ',' . 'missions:manitoba' . ',' |
@@ -72,10 +72,10 @@ discard block |
||
72 | 72 | . 'missions:client_service'; |
73 | 73 | elgg_set_plugin_setting('program_area_string', $program_area_string, 'missions'); |
74 | 74 | |
75 | -$decline_reason_string = ',' . 'missions:decline:workload' . ',' . 'missions:decline:interest' . ',' . 'missions:decline:engagement' . ',' |
|
76 | - . 'missions:decline:approval' . ',' . 'missions:other'; |
|
75 | +$decline_reason_string = ',' . 'missions:decline:workload' . ',' . 'missions:decline:interest' . ',' . 'missions:decline:engagement' . ',' |
|
76 | + . 'missions:decline:approval' . ',' . 'missions:other'; |
|
77 | 77 | elgg_set_plugin_setting('decline_reason_string', $decline_reason_string, 'missions'); |
78 | 78 | |
79 | 79 | //Nick - adding string for group classification |
80 | -$gl_group_string = ',' .'AC,AG,AI,AO,AR,AS,AU,BI,CH,CM,CO,CR,CS,CX,DA,DD,DE,DS,EC,ED,EG,EL,EN,EU,EX,FB,FI,FO,FR,FS,GL,GS,GT,HP,HR,HS,IS,LC,LI,LP,LS,MA,MD,MT,ND,NU,OE,OM,OP,PC,PE,PG,PH,PI,PM,PO,PR(NON-S),PR(S),PS,PY,RO,SC,SE,SG,SO,SR(C),SR(E),SR(W),ST,SW,TI,TR,UT,VM,WP,'; |
|
80 | +$gl_group_string = ',' . 'AC,AG,AI,AO,AR,AS,AU,BI,CH,CM,CO,CR,CS,CX,DA,DD,DE,DS,EC,ED,EG,EL,EN,EU,EX,FB,FI,FO,FR,FS,GL,GS,GT,HP,HR,HS,IS,LC,LI,LP,LS,MA,MD,MT,ND,NU,OE,OM,OP,PC,PE,PG,PH,PI,PM,PO,PR(NON-S),PR(S),PS,PY,RO,SC,SE,SG,SO,SR(C),SR(E),SR(W),ST,SW,TI,TR,UT,VM,WP,'; |
|
81 | 81 | elgg_set_plugin_setting('gl_group_string', $gl_group_string, 'missions'); |
@@ -18,30 +18,30 @@ |
||
18 | 18 | $language_oral_proficiency = get_input('ilop'); |
19 | 19 | |
20 | 20 | if (elgg_is_sticky_form('lsdropfill')) { |
21 | - extract(elgg_get_sticky_values('lsdropfill')); |
|
22 | - // elgg_clear_sticky_form('thirdfill'); |
|
21 | + extract(elgg_get_sticky_values('lsdropfill')); |
|
22 | + // elgg_clear_sticky_form('thirdfill'); |
|
23 | 23 | } |
24 | 24 | |
25 | 25 | $input_written_comprehension = elgg_view('input/dropdown', array( |
26 | - 'name' => 'lwc', |
|
27 | - 'value' => $language_written_comprehension, |
|
28 | - 'options' => $array, |
|
29 | - 'class' => 'language-dropdown', |
|
30 | - 'id' => 'single-language-written-comprehension-dropdown-input' |
|
26 | + 'name' => 'lwc', |
|
27 | + 'value' => $language_written_comprehension, |
|
28 | + 'options' => $array, |
|
29 | + 'class' => 'language-dropdown', |
|
30 | + 'id' => 'single-language-written-comprehension-dropdown-input' |
|
31 | 31 | )); |
32 | 32 | $input_written_expression = elgg_view('input/dropdown', array( |
33 | - 'name' => 'lwe', |
|
34 | - 'value' => $language_written_expression, |
|
35 | - 'options' => $array, |
|
36 | - 'class' => 'language-dropdown', |
|
37 | - 'id' => 'single-language-written-expression-dropdown-input' |
|
33 | + 'name' => 'lwe', |
|
34 | + 'value' => $language_written_expression, |
|
35 | + 'options' => $array, |
|
36 | + 'class' => 'language-dropdown', |
|
37 | + 'id' => 'single-language-written-expression-dropdown-input' |
|
38 | 38 | )); |
39 | 39 | $input_oral_proficiency = elgg_view('input/dropdown', array( |
40 | - 'name' => 'lop', |
|
41 | - 'value' => $language_oral_proficiency, |
|
42 | - 'options' => $array, |
|
43 | - 'class' => 'language-dropdown', |
|
44 | - 'id' => 'single-language-oral-proficiency-dropdown-input' |
|
40 | + 'name' => 'lop', |
|
41 | + 'value' => $language_oral_proficiency, |
|
42 | + 'options' => $array, |
|
43 | + 'class' => 'language-dropdown', |
|
44 | + 'id' => 'single-language-oral-proficiency-dropdown-input' |
|
45 | 45 | )); |
46 | 46 | ?> |
47 | 47 |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | |
48 | 48 | <table class="mission-post-table-two"> |
49 | 49 | <tr> |
50 | - <td class="mission-post-table-lefty"><label for='single-language-written-comprehension-dropdown-input'><?php echo elgg_echo('missions:written_comprehension') . ':';?></label><br /> |
|
50 | + <td class="mission-post-table-lefty"><label for='single-language-written-comprehension-dropdown-input'><?php echo elgg_echo('missions:written_comprehension') . ':'; ?></label><br /> |
|
51 | 51 | </td> |
52 | 52 | <td class="mission-post-table-center"> |
53 | 53 | <div> |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | </td> |
57 | 57 | </tr> |
58 | 58 | <tr> |
59 | - <td class="mission-post-table-lefty"><label for='single-language-written-expression-dropdown-input'><?php echo elgg_echo('missions:written_expression') . ':';?></label><br /> |
|
59 | + <td class="mission-post-table-lefty"><label for='single-language-written-expression-dropdown-input'><?php echo elgg_echo('missions:written_expression') . ':'; ?></label><br /> |
|
60 | 60 | </td> |
61 | 61 | <td class="mission-post-table-center"> |
62 | 62 | <div> |
@@ -65,7 +65,7 @@ discard block |
||
65 | 65 | </td> |
66 | 66 | </tr> |
67 | 67 | <tr> |
68 | - <td class="mission-post-table-lefty"><label for='single-language-oral-proficiency-dropdown-input'><?php echo elgg_echo('missions:oral_proficiency') . ':';?></label><br /> |
|
68 | + <td class="mission-post-table-lefty"><label for='single-language-oral-proficiency-dropdown-input'><?php echo elgg_echo('missions:oral_proficiency') . ':'; ?></label><br /> |
|
69 | 69 | </td> |
70 | 70 | <td class="mission-post-table-center"> |
71 | 71 | <div> |
@@ -32,8 +32,8 @@ discard block |
||
32 | 32 | if ($applicant_relation->relationship == 'mission_accepted') { |
33 | 33 | $accepted .= '<div class="col-sm-12" style="display:inline-block;" name="mission-participant" id="mission-participant-' . $applicant_relation->guid_two . '">' . elgg_view_entity(get_user($applicant_relation->guid_two)) . '</div>'; |
34 | 34 | |
35 | - if($mission->state == 'posted') { |
|
36 | - if(elgg_get_logged_in_user_guid() == $mission->owner_guid || elgg_get_logged_in_user_guid() == $mission->account) { |
|
35 | + if ($mission->state == 'posted') { |
|
36 | + if (elgg_get_logged_in_user_guid() == $mission->owner_guid || elgg_get_logged_in_user_guid() == $mission->account) { |
|
37 | 37 | // Removal button for the candidate. |
38 | 38 | $accepted .= '<div class="col-sm-12">' . elgg_view('output/url', array( |
39 | 39 | 'href' => elgg_get_site_url() . 'action/missions/remove-applicant?aid=' . $applicant_relation->guid_two . '&mid=' . $mission->guid, |
@@ -49,11 +49,11 @@ discard block |
||
49 | 49 | else { |
50 | 50 | $accepted .= '<div class="col-sm-4">'; |
51 | 51 | |
52 | - if(elgg_get_logged_in_user_guid() == $mission->owner_guid || elgg_get_logged_in_user_guid() == $mission->account) { |
|
52 | + if (elgg_get_logged_in_user_guid() == $mission->owner_guid || elgg_get_logged_in_user_guid() == $mission->account) { |
|
53 | 53 | $owner = $mission->owner_guid; |
54 | 54 | $target = $applicant_relation->guid_two; |
55 | 55 | } |
56 | - else if(elgg_get_logged_in_user_guid() == $applicant_relation->guid_two) { |
|
56 | + else if (elgg_get_logged_in_user_guid() == $applicant_relation->guid_two) { |
|
57 | 57 | $owner = $applicant_relation->guid_two; |
58 | 58 | $target = $mission->owner_guid; |
59 | 59 | } |
@@ -69,10 +69,10 @@ discard block |
||
69 | 69 | ) |
70 | 70 | )); |
71 | 71 | |
72 | - if(elgg_get_logged_in_user_guid() == $mission->owner_guid || elgg_get_logged_in_user_guid() == $mission->account |
|
72 | + if (elgg_get_logged_in_user_guid() == $mission->owner_guid || elgg_get_logged_in_user_guid() == $mission->account |
|
73 | 73 | || elgg_get_logged_in_user_guid() == $applicant_relation->guid_two) { |
74 | - if(count($feedback_search)) { |
|
75 | - if($feedback_search[0]->endorsement != 'on') { |
|
74 | + if (count($feedback_search)) { |
|
75 | + if ($feedback_search[0]->endorsement != 'on') { |
|
76 | 76 | $accepted .= elgg_view('output/url', array( |
77 | 77 | 'href' => elgg_get_site_url() . 'action/missions/endorse-user?fid=' . $feedback_search[0]->guid, |
78 | 78 | 'text' => elgg_echo('missions:endorse'), |
@@ -102,12 +102,12 @@ discard block |
||
102 | 102 | } |
103 | 103 | // Candidates which have been sent an invitation to the mission. |
104 | 104 | if ($applicant_relation->relationship == 'mission_applied' || $applicant_relation->relationship == 'mission_offered') { |
105 | - if($mission->state == 'posted') { |
|
106 | - if(elgg_get_logged_in_user_guid() == $mission->owner_guid || elgg_get_logged_in_user_guid() == $mission->account |
|
105 | + if ($mission->state == 'posted') { |
|
106 | + if (elgg_get_logged_in_user_guid() == $mission->owner_guid || elgg_get_logged_in_user_guid() == $mission->account |
|
107 | 107 | || elgg_get_logged_in_user_guid() == $applicant_relation->guid_two || elgg_is_admin_logged_in()) { |
108 | 108 | $tentative .= '<div class="col-sm-12" style="display:inline-block;" name="mission-applicant" id="mission-applicant-' . $applicant_relation->guid_two . '">' . elgg_view_entity(get_user($applicant_relation->guid_two)) . '</div>'; |
109 | 109 | |
110 | - if(elgg_get_logged_in_user_guid() == $mission->owner_guid || elgg_get_logged_in_user_guid() == $mission->account || elgg_is_admin_logged_in()) { |
|
110 | + if (elgg_get_logged_in_user_guid() == $mission->owner_guid || elgg_get_logged_in_user_guid() == $mission->account || elgg_is_admin_logged_in()) { |
|
111 | 111 | $tentative .= '<div class="col-sm-12">'; |
112 | 112 | $tentative .= mm_offer_button($mission, get_user($applicant_relation->guid_two)); |
113 | 113 | |
@@ -132,15 +132,15 @@ discard block |
||
132 | 132 | } |
133 | 133 | } |
134 | 134 | // Display something if there are no applicants. |
135 | -if($applicants_none_accepted) { |
|
135 | +if ($applicants_none_accepted) { |
|
136 | 136 | $accepted .= '<div name="no-accepted-candidate" class="col-sm-12">' . elgg_echo('missions:nobody') . '</div>'; |
137 | 137 | } |
138 | -if($applicants_none_tentative && $applicant_count == 0) { |
|
138 | +if ($applicants_none_tentative && $applicant_count == 0) { |
|
139 | 139 | $tentative .= '<div name="no-tentative-candidate" class="col-sm-12">' . elgg_echo('missions:nobody') . '</div>'; |
140 | 140 | } |
141 | 141 | else { |
142 | 142 | $s_or_not = ''; |
143 | - if($applicant_count > 1) { |
|
143 | + if ($applicant_count > 1) { |
|
144 | 144 | $s_or_not = 's'; |
145 | 145 | } |
146 | 146 |
@@ -45,15 +45,13 @@ discard block |
||
45 | 45 | 'confirm' => elgg_echo('missions:placeholder_i') |
46 | 46 | )) . '</div>'; |
47 | 47 | } |
48 | - } |
|
49 | - else { |
|
48 | + } else { |
|
50 | 49 | $accepted .= '<div class="col-sm-4">'; |
51 | 50 | |
52 | 51 | if(elgg_get_logged_in_user_guid() == $mission->owner_guid || elgg_get_logged_in_user_guid() == $mission->account) { |
53 | 52 | $owner = $mission->owner_guid; |
54 | 53 | $target = $applicant_relation->guid_two; |
55 | - } |
|
56 | - else if(elgg_get_logged_in_user_guid() == $applicant_relation->guid_two) { |
|
54 | + } else if(elgg_get_logged_in_user_guid() == $applicant_relation->guid_two) { |
|
57 | 55 | $owner = $applicant_relation->guid_two; |
58 | 56 | $target = $mission->owner_guid; |
59 | 57 | } |
@@ -82,8 +80,7 @@ discard block |
||
82 | 80 | 'id' => 'fill-mission-applicant-' . $applicant_relation->guid_two . '-endorse-button' |
83 | 81 | )); |
84 | 82 | } |
85 | - } |
|
86 | - else { |
|
83 | + } else { |
|
87 | 84 | $accepted .= elgg_view('output/url', array( |
88 | 85 | 'href' => elgg_get_site_url() . 'missions/mission-feedback/' . $mission->guid, |
89 | 86 | 'text' => elgg_echo('missions:feedback'), |
@@ -137,8 +134,7 @@ discard block |
||
137 | 134 | } |
138 | 135 | if($applicants_none_tentative && $applicant_count == 0) { |
139 | 136 | $tentative .= '<div name="no-tentative-candidate" class="col-sm-12">' . elgg_echo('missions:nobody') . '</div>'; |
140 | -} |
|
141 | -else { |
|
137 | +} else { |
|
142 | 138 | $s_or_not = ''; |
143 | 139 | if($applicant_count > 1) { |
144 | 140 | $s_or_not = 's'; |
@@ -56,8 +56,8 @@ |
||
56 | 56 | 'limit' => $max, |
57 | 57 | 'pagination' => true, |
58 | 58 | 'list_type' => 'gallery', |
59 | - 'gallery_class'=>'wb-eqht', |
|
60 | - 'item_class'=>'col-sm-6 col-md-4 ', |
|
59 | + 'gallery_class'=>'wb-eqht', |
|
60 | + 'item_class'=>'col-sm-6 col-md-4 ', |
|
61 | 61 | |
62 | 62 | 'mission_full_view' => false |
63 | 63 | ), $offset, $max) . '</div>'; |
@@ -11,7 +11,7 @@ discard block |
||
11 | 11 | * Page content related to the user's missions. |
12 | 12 | */ |
13 | 13 | $user = elgg_get_logged_in_user_entity(); |
14 | -if($_SESSION['mission_entities_per_page']) { |
|
14 | +if ($_SESSION['mission_entities_per_page']) { |
|
15 | 15 | $entities_per_page = $_SESSION['mission_entities_per_page']; |
16 | 16 | } |
17 | 17 | |
@@ -30,9 +30,9 @@ discard block |
||
30 | 30 | $entity_list = array_merge($temp_array_one, $temp_array_two); |
31 | 31 | $entity_list_original = $entity_list; |
32 | 32 | |
33 | -if(!$user->show_closed_missions) { |
|
34 | - foreach($entity_list as $key => $entity) { |
|
35 | - if($entity->state == 'completed' || $entity->state == 'cancelled') { |
|
33 | +if (!$user->show_closed_missions) { |
|
34 | + foreach ($entity_list as $key => $entity) { |
|
35 | + if ($entity->state == 'completed' || $entity->state == 'cancelled') { |
|
36 | 36 | unset($entity_list[$key]); |
37 | 37 | } |
38 | 38 | } |
@@ -42,7 +42,7 @@ discard block |
||
42 | 42 | |
43 | 43 | $count = count($entity_list); |
44 | 44 | $offset = (int) get_input('offset', 0); |
45 | -if($entities_per_page) { |
|
45 | +if ($entities_per_page) { |
|
46 | 46 | $max = $entities_per_page; |
47 | 47 | } |
48 | 48 | else { |
@@ -44,8 +44,7 @@ |
||
44 | 44 | $offset = (int) get_input('offset', 0); |
45 | 45 | if($entities_per_page) { |
46 | 46 | $max = $entities_per_page; |
47 | -} |
|
48 | -else { |
|
47 | +} else { |
|
49 | 48 | $max = elgg_get_plugin_setting('search_result_per_page', 'missions'); |
50 | 49 | } |
51 | 50 |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | 'class' => 'gcconnex-opt-in-access' |
24 | 24 | ); |
25 | 25 | //echo elgg_view ( 'input/access', $params ); |
26 | - echo elgg_view('input/hidden', $params); |
|
26 | + echo elgg_view('input/hidden', $params); |
|
27 | 27 | |
28 | 28 | // Decides whether or not the checkbox should start checked. |
29 | 29 | |
@@ -42,27 +42,27 @@ discard block |
||
42 | 42 | <ul class="brdr-lft clearfix mrgn-lft-md list-unstyled"> |
43 | 43 | <li class="clearfix pull-left mrgn-lft-md"> |
44 | 44 | <?php |
45 | - echo elgg_view ( "input/checkbox", array ( |
|
46 | - 'name' => 'mission_check', |
|
47 | - 'checked' => true, |
|
48 | - 'id' => 'gcconnex-opt-in-mission-check', |
|
49 | - 'class'=>'pull-left', |
|
50 | - 'label'=>elgg_echo ( 'gcconnex_profile:opt:participants' ), |
|
51 | - )); |
|
45 | + echo elgg_view ( "input/checkbox", array ( |
|
46 | + 'name' => 'mission_check', |
|
47 | + 'checked' => true, |
|
48 | + 'id' => 'gcconnex-opt-in-mission-check', |
|
49 | + 'class'=>'pull-left', |
|
50 | + 'label'=>elgg_echo ( 'gcconnex_profile:opt:participants' ), |
|
51 | + )); |
|
52 | 52 | |
53 | - ?> |
|
53 | + ?> |
|
54 | 54 | </li> |
55 | 55 | <li class="clearfix pull-left mrgn-lft-md"> |
56 | 56 | <?php |
57 | - echo elgg_view ( "input/checkbox", array ( |
|
58 | - 'name' => 'missioncreate_check', |
|
59 | - 'checked' => true, |
|
60 | - 'id' => 'gcconnex-opt-in-mentoringcreater-check', |
|
61 | - 'class'=>'pull-left', |
|
62 | - 'label'=>elgg_echo ( 'gcconnex_profile:opt:host' ), |
|
63 | - )); |
|
57 | + echo elgg_view ( "input/checkbox", array ( |
|
58 | + 'name' => 'missioncreate_check', |
|
59 | + 'checked' => true, |
|
60 | + 'id' => 'gcconnex-opt-in-mentoringcreater-check', |
|
61 | + 'class'=>'pull-left', |
|
62 | + 'label'=>elgg_echo ( 'gcconnex_profile:opt:host' ), |
|
63 | + )); |
|
64 | 64 | |
65 | - ?> |
|
65 | + ?> |
|
66 | 66 | </li> |
67 | 67 | </ul> |
68 | 68 | </li> |
@@ -73,27 +73,27 @@ discard block |
||
73 | 73 | <ul class="clearfix brdr-lft mrgn-lft-md list-unstyled"> |
74 | 74 | <li class="clearfix pull-left mrgn-lft-md"> |
75 | 75 | <?php |
76 | - echo elgg_view ( "input/checkbox", array ( |
|
77 | - 'name' => 'assignseek_check', |
|
78 | - 'checked' => true, |
|
79 | - 'id' => 'gcconnex-opt-in-swap-check', |
|
80 | - 'class'=>'pull-left', |
|
81 | - 'label'=>elgg_echo ( 'gcconnex_profile:opt:participants' ), |
|
82 | - )); |
|
76 | + echo elgg_view ( "input/checkbox", array ( |
|
77 | + 'name' => 'assignseek_check', |
|
78 | + 'checked' => true, |
|
79 | + 'id' => 'gcconnex-opt-in-swap-check', |
|
80 | + 'class'=>'pull-left', |
|
81 | + 'label'=>elgg_echo ( 'gcconnex_profile:opt:participants' ), |
|
82 | + )); |
|
83 | 83 | |
84 | - ?> |
|
84 | + ?> |
|
85 | 85 | </li> |
86 | 86 | <li class="clearfix pull-left mrgn-lft-md"> |
87 | 87 | <?php |
88 | - echo elgg_view ( "input/checkbox", array ( |
|
89 | - 'name' => 'assigncreate_check', |
|
90 | - 'checked' => true, |
|
91 | - 'id' => 'gcconnex-opt-in-swap-check', |
|
92 | - 'class'=>'pull-left', |
|
93 | - 'label'=>elgg_echo ( 'gcconnex_profile:opt:host' ), |
|
94 | - )); |
|
88 | + echo elgg_view ( "input/checkbox", array ( |
|
89 | + 'name' => 'assigncreate_check', |
|
90 | + 'checked' => true, |
|
91 | + 'id' => 'gcconnex-opt-in-swap-check', |
|
92 | + 'class'=>'pull-left', |
|
93 | + 'label'=>elgg_echo ( 'gcconnex_profile:opt:host' ), |
|
94 | + )); |
|
95 | 95 | |
96 | - ?> |
|
96 | + ?> |
|
97 | 97 | </li> |
98 | 98 | </ul> |
99 | 99 | </li> |
@@ -104,55 +104,55 @@ discard block |
||
104 | 104 | <ul class="clearfix brdr-lft mrgn-lft-md list-unstyled"> |
105 | 105 | <li class="clearfix pull-left mrgn-lft-md"> |
106 | 106 | <?php |
107 | - echo elgg_view ( "input/checkbox", array ( |
|
108 | - 'name' => 'deploymentseek_check', |
|
109 | - 'checked' => true, |
|
110 | - 'id' => 'gcconnex-opt-in-swap-check', |
|
111 | - 'class'=>'pull-left', |
|
112 | - 'label'=>elgg_echo ( 'gcconnex_profile:opt:participants' ), |
|
113 | - )); |
|
107 | + echo elgg_view ( "input/checkbox", array ( |
|
108 | + 'name' => 'deploymentseek_check', |
|
109 | + 'checked' => true, |
|
110 | + 'id' => 'gcconnex-opt-in-swap-check', |
|
111 | + 'class'=>'pull-left', |
|
112 | + 'label'=>elgg_echo ( 'gcconnex_profile:opt:participants' ), |
|
113 | + )); |
|
114 | 114 | |
115 | - ?> |
|
115 | + ?> |
|
116 | 116 | </li> |
117 | 117 | <li class="clearfix pull-left mrgn-lft-md"> |
118 | 118 | <?php |
119 | - echo elgg_view ( "input/checkbox", array ( |
|
120 | - 'name' => 'deploymentcreate_check', |
|
121 | - 'checked' => true, |
|
122 | - 'id' => 'gcconnex-opt-in-swap-check', |
|
123 | - 'class'=>'pull-left', |
|
124 | - 'label'=>elgg_echo ( 'gcconnex_profile:opt:host' ), |
|
125 | - )); |
|
119 | + echo elgg_view ( "input/checkbox", array ( |
|
120 | + 'name' => 'deploymentcreate_check', |
|
121 | + 'checked' => true, |
|
122 | + 'id' => 'gcconnex-opt-in-swap-check', |
|
123 | + 'class'=>'pull-left', |
|
124 | + 'label'=>elgg_echo ( 'gcconnex_profile:opt:host' ), |
|
125 | + )); |
|
126 | 126 | |
127 | - ?> |
|
127 | + ?> |
|
128 | 128 | </li> |
129 | 129 | </ul> |
130 | 130 | </li> |
131 | 131 | |
132 | 132 | <li class="clearfix"> |
133 | 133 | <?php |
134 | - echo elgg_view ( "input/checkbox", array ( |
|
135 | - 'name' => 'swap_check', |
|
136 | - 'checked' => true, |
|
137 | - 'id' => 'gcconnex-opt-in-swap-check', |
|
138 | - 'class'=>'pull-left', |
|
139 | - 'label'=>elgg_echo ( 'gcconnex_profile:opt:job_swap' ), |
|
140 | - )); |
|
134 | + echo elgg_view ( "input/checkbox", array ( |
|
135 | + 'name' => 'swap_check', |
|
136 | + 'checked' => true, |
|
137 | + 'id' => 'gcconnex-opt-in-swap-check', |
|
138 | + 'class'=>'pull-left', |
|
139 | + 'label'=>elgg_echo ( 'gcconnex_profile:opt:job_swap' ), |
|
140 | + )); |
|
141 | 141 | |
142 | - ?> |
|
142 | + ?> |
|
143 | 143 | </li> |
144 | 144 | |
145 | 145 | <li class="clearfix"> |
146 | 146 | <?php |
147 | - echo elgg_view ( "input/checkbox", array ( |
|
148 | - 'name' => 'rotation_check', |
|
149 | - 'checked' => true, |
|
150 | - 'id' => 'gcconnex-opt-in-swap-check', |
|
151 | - 'class'=>'pull-left', |
|
152 | - 'label'=>elgg_echo ( 'missions:job_rotation' ), |
|
153 | - )); |
|
147 | + echo elgg_view ( "input/checkbox", array ( |
|
148 | + 'name' => 'rotation_check', |
|
149 | + 'checked' => true, |
|
150 | + 'id' => 'gcconnex-opt-in-swap-check', |
|
151 | + 'class'=>'pull-left', |
|
152 | + 'label'=>elgg_echo ( 'missions:job_rotation' ), |
|
153 | + )); |
|
154 | 154 | |
155 | - ?> |
|
155 | + ?> |
|
156 | 156 | </li> |
157 | 157 | |
158 | 158 | |
@@ -170,28 +170,28 @@ discard block |
||
170 | 170 | <ul class="clearfix brdr-lft mrgn-lft-md list-unstyled"> |
171 | 171 | <li class="clearfix pull-left mrgn-lft-md"> |
172 | 172 | <?php |
173 | - echo elgg_view ( "input/checkbox", array ( |
|
174 | - 'name' => 'mentored_check', |
|
175 | - 'checked' => true, |
|
176 | - 'id' => 'gcconnex-opt-in-mentoring-check', |
|
177 | - 'class'=>'pull-left', |
|
178 | - 'label'=>elgg_echo ( 'gcconnex_profile:opt:mentored' ), |
|
179 | - )); |
|
173 | + echo elgg_view ( "input/checkbox", array ( |
|
174 | + 'name' => 'mentored_check', |
|
175 | + 'checked' => true, |
|
176 | + 'id' => 'gcconnex-opt-in-mentoring-check', |
|
177 | + 'class'=>'pull-left', |
|
178 | + 'label'=>elgg_echo ( 'gcconnex_profile:opt:mentored' ), |
|
179 | + )); |
|
180 | 180 | |
181 | - ?> |
|
181 | + ?> |
|
182 | 182 | </li> |
183 | 183 | |
184 | 184 | <li class="clearfix pull-left mrgn-lft-md"> |
185 | 185 | <?php |
186 | - echo elgg_view ( "input/checkbox", array ( |
|
187 | - 'name' => 'mentoring_check', |
|
188 | - 'checked' => true, |
|
189 | - 'id' => 'gcconnex-opt-in-mentored-check', |
|
190 | - 'class'=>'pull-left', |
|
191 | - 'label'=>elgg_echo ( 'gcconnex_profile:opt:mentoring' ), |
|
192 | - )); |
|
186 | + echo elgg_view ( "input/checkbox", array ( |
|
187 | + 'name' => 'mentoring_check', |
|
188 | + 'checked' => true, |
|
189 | + 'id' => 'gcconnex-opt-in-mentored-check', |
|
190 | + 'class'=>'pull-left', |
|
191 | + 'label'=>elgg_echo ( 'gcconnex_profile:opt:mentoring' ), |
|
192 | + )); |
|
193 | 193 | |
194 | - ?> |
|
194 | + ?> |
|
195 | 195 | </li> |
196 | 196 | </ul> |
197 | 197 | </li> |
@@ -202,28 +202,28 @@ discard block |
||
202 | 202 | <ul class="clearfix brdr-lft mrgn-lft-md list-unstyled"> |
203 | 203 | <li class="clearfix pull-left mrgn-lft-md"> |
204 | 204 | <?php |
205 | - echo elgg_view ( "input/checkbox", array ( |
|
206 | - 'name' => 'shadowing_check', |
|
207 | - 'checked' => true, |
|
208 | - 'id' => 'gcconnex-opt-in-shadowing-check', |
|
209 | - 'class'=>'pull-left', |
|
210 | - 'label'=>elgg_echo ( 'gcconnex_profile:opt:participants' ), |
|
211 | - )); |
|
205 | + echo elgg_view ( "input/checkbox", array ( |
|
206 | + 'name' => 'shadowing_check', |
|
207 | + 'checked' => true, |
|
208 | + 'id' => 'gcconnex-opt-in-shadowing-check', |
|
209 | + 'class'=>'pull-left', |
|
210 | + 'label'=>elgg_echo ( 'gcconnex_profile:opt:participants' ), |
|
211 | + )); |
|
212 | 212 | |
213 | - ?> |
|
213 | + ?> |
|
214 | 214 | </li> |
215 | 215 | |
216 | 216 | <li class="clearfix pull-left mrgn-lft-md"> |
217 | 217 | <?php |
218 | - echo elgg_view ( "input/checkbox", array ( |
|
219 | - 'name' => 'shadowed_check', |
|
220 | - 'checked' => true, |
|
221 | - 'id' => 'gcconnex-opt-in-shadowed-check', |
|
222 | - 'class'=>'pull-left', |
|
223 | - 'label'=>elgg_echo ( 'gcconnex_profile:opt:host' ), |
|
224 | - )); |
|
218 | + echo elgg_view ( "input/checkbox", array ( |
|
219 | + 'name' => 'shadowed_check', |
|
220 | + 'checked' => true, |
|
221 | + 'id' => 'gcconnex-opt-in-shadowed-check', |
|
222 | + 'class'=>'pull-left', |
|
223 | + 'label'=>elgg_echo ( 'gcconnex_profile:opt:host' ), |
|
224 | + )); |
|
225 | 225 | |
226 | - ?> |
|
226 | + ?> |
|
227 | 227 | </li> |
228 | 228 | </ul> |
229 | 229 | </li> |
@@ -235,28 +235,28 @@ discard block |
||
235 | 235 | <ul class="brdr-lft clearfix mrgn-lft-md list-unstyled"> |
236 | 236 | <li class="clearfix pull-left mrgn-lft-md"> |
237 | 237 | <?php |
238 | - echo elgg_view ( "input/checkbox", array ( |
|
239 | - 'name' => 'skillseeker_check', |
|
240 | - 'checked' => true, |
|
241 | - 'id' => 'gcconnex-opt-in-shadowing-check', |
|
242 | - 'class'=>'pull-left', |
|
243 | - 'label'=>elgg_echo ( 'gcconnex_profile:opt:participants' ), |
|
244 | - )); |
|
238 | + echo elgg_view ( "input/checkbox", array ( |
|
239 | + 'name' => 'skillseeker_check', |
|
240 | + 'checked' => true, |
|
241 | + 'id' => 'gcconnex-opt-in-shadowing-check', |
|
242 | + 'class'=>'pull-left', |
|
243 | + 'label'=>elgg_echo ( 'gcconnex_profile:opt:participants' ), |
|
244 | + )); |
|
245 | 245 | |
246 | - ?> |
|
246 | + ?> |
|
247 | 247 | </li> |
248 | 248 | |
249 | 249 | <li class="clearfix pull-left mrgn-lft-md"> |
250 | 250 | <?php |
251 | - echo elgg_view ( "input/checkbox", array ( |
|
252 | - 'name' => 'skillcreator_check', |
|
253 | - 'checked' => true, |
|
254 | - 'id' => 'gcconnex-opt-in-shadowing-check', |
|
255 | - 'class'=>'pull-left', |
|
256 | - 'label'=>elgg_echo ( 'gcconnex_profile:opt:host' ), |
|
257 | - )); |
|
251 | + echo elgg_view ( "input/checkbox", array ( |
|
252 | + 'name' => 'skillcreator_check', |
|
253 | + 'checked' => true, |
|
254 | + 'id' => 'gcconnex-opt-in-shadowing-check', |
|
255 | + 'class'=>'pull-left', |
|
256 | + 'label'=>elgg_echo ( 'gcconnex_profile:opt:host' ), |
|
257 | + )); |
|
258 | 258 | |
259 | - ?> |
|
259 | + ?> |
|
260 | 260 | </li> |
261 | 261 | </ul> |
262 | 262 | </li> |
@@ -268,42 +268,42 @@ discard block |
||
268 | 268 | <ul class="clearfix brdr-lft mrgn-lft-md list-unstyled"> |
269 | 269 | <li class="clearfix pull-left mrgn-lft-md"> |
270 | 270 | <?php |
271 | - echo elgg_view ( "input/checkbox", array ( |
|
272 | - 'name' => 'coachseek_check', |
|
273 | - 'checked' => true, |
|
274 | - 'id' => 'gcconnex-opt-in-seekCoach-check', |
|
275 | - 'class'=>'pull-left', |
|
276 | - 'label'=>elgg_echo ( 'gcconnex_profile:opt:participants' ), |
|
277 | - )); |
|
271 | + echo elgg_view ( "input/checkbox", array ( |
|
272 | + 'name' => 'coachseek_check', |
|
273 | + 'checked' => true, |
|
274 | + 'id' => 'gcconnex-opt-in-seekCoach-check', |
|
275 | + 'class'=>'pull-left', |
|
276 | + 'label'=>elgg_echo ( 'gcconnex_profile:opt:participants' ), |
|
277 | + )); |
|
278 | 278 | |
279 | - ?> |
|
279 | + ?> |
|
280 | 280 | </li> |
281 | 281 | <li class="clearfix pull-left mrgn-lft-md"> |
282 | 282 | <?php |
283 | - echo elgg_view ( "input/checkbox", array ( |
|
284 | - 'name' => 'coachcreate_check', |
|
285 | - 'checked' => true, |
|
286 | - 'id' => 'gcconnex-opt-in-becomeCoach-check', |
|
287 | - 'class'=>'pull-left', |
|
288 | - 'label'=>elgg_echo ( 'gcconnex_profile:opt:host' ), |
|
289 | - )); |
|
283 | + echo elgg_view ( "input/checkbox", array ( |
|
284 | + 'name' => 'coachcreate_check', |
|
285 | + 'checked' => true, |
|
286 | + 'id' => 'gcconnex-opt-in-becomeCoach-check', |
|
287 | + 'class'=>'pull-left', |
|
288 | + 'label'=>elgg_echo ( 'gcconnex_profile:opt:host' ), |
|
289 | + )); |
|
290 | 290 | |
291 | - ?> |
|
291 | + ?> |
|
292 | 292 | </li> |
293 | 293 | </ul> |
294 | 294 | </li> |
295 | 295 | |
296 | 296 | <li class="clearfix"> |
297 | 297 | <?php |
298 | - echo elgg_view ( "input/checkbox", array ( |
|
299 | - 'name' => 'jobshare_check', |
|
300 | - 'checked' => true, |
|
301 | - 'id' => 'gcconnex-opt-in-shadowing-check', |
|
302 | - 'class'=>'pull-left', |
|
303 | - 'label'=>elgg_echo ( 'missions:job_share' ), |
|
304 | - )); |
|
298 | + echo elgg_view ( "input/checkbox", array ( |
|
299 | + 'name' => 'jobshare_check', |
|
300 | + 'checked' => true, |
|
301 | + 'id' => 'gcconnex-opt-in-shadowing-check', |
|
302 | + 'class'=>'pull-left', |
|
303 | + 'label'=>elgg_echo ( 'missions:job_share' ), |
|
304 | + )); |
|
305 | 305 | |
306 | - ?> |
|
306 | + ?> |
|
307 | 307 | </li> |
308 | 308 | |
309 | 309 | </ul> |
@@ -14,10 +14,10 @@ discard block |
||
14 | 14 | if (elgg_is_xhr) { |
15 | 15 | |
16 | 16 | $user_guid = elgg_get_logged_in_user_guid(); |
17 | - $user = get_user ( $user_guid ); |
|
17 | + $user = get_user($user_guid); |
|
18 | 18 | |
19 | 19 | $access_id = $user->optaccess; |
20 | - $params = array ( |
|
20 | + $params = array( |
|
21 | 21 | 'name' => "accesslevel['optaccess']", |
22 | 22 | 'value' => '-2', |
23 | 23 | 'class' => 'gcconnex-opt-in-access' |
@@ -38,28 +38,28 @@ discard block |
||
38 | 38 | <h4 class="mrgn-tp-0"><?php echo elgg_echo('gcconnex_profile:opt:atlevel'); ?></h4> |
39 | 39 | <ul class="list-unstyled"> |
40 | 40 | <li class="clearfix"> |
41 | - <?php echo elgg_echo ( 'missions:micro_mission' );?> |
|
41 | + <?php echo elgg_echo('missions:micro_mission'); ?> |
|
42 | 42 | <ul class="brdr-lft clearfix mrgn-lft-md list-unstyled"> |
43 | 43 | <li class="clearfix pull-left mrgn-lft-md"> |
44 | 44 | <?php |
45 | - echo elgg_view ( "input/checkbox", array ( |
|
45 | + echo elgg_view("input/checkbox", array( |
|
46 | 46 | 'name' => 'mission_check', |
47 | 47 | 'checked' => true, |
48 | 48 | 'id' => 'gcconnex-opt-in-mission-check', |
49 | 49 | 'class'=>'pull-left', |
50 | - 'label'=>elgg_echo ( 'gcconnex_profile:opt:participants' ), |
|
50 | + 'label'=>elgg_echo('gcconnex_profile:opt:participants'), |
|
51 | 51 | )); |
52 | 52 | |
53 | 53 | ?> |
54 | 54 | </li> |
55 | 55 | <li class="clearfix pull-left mrgn-lft-md"> |
56 | 56 | <?php |
57 | - echo elgg_view ( "input/checkbox", array ( |
|
57 | + echo elgg_view("input/checkbox", array( |
|
58 | 58 | 'name' => 'missioncreate_check', |
59 | 59 | 'checked' => true, |
60 | 60 | 'id' => 'gcconnex-opt-in-mentoringcreater-check', |
61 | 61 | 'class'=>'pull-left', |
62 | - 'label'=>elgg_echo ( 'gcconnex_profile:opt:host' ), |
|
62 | + 'label'=>elgg_echo('gcconnex_profile:opt:host'), |
|
63 | 63 | )); |
64 | 64 | |
65 | 65 | ?> |
@@ -68,29 +68,29 @@ discard block |
||
68 | 68 | </li> |
69 | 69 | |
70 | 70 | <li class="clearfix"> |
71 | - <?php echo elgg_echo('missions:assignment');?> |
|
71 | + <?php echo elgg_echo('missions:assignment'); ?> |
|
72 | 72 | |
73 | 73 | <ul class="clearfix brdr-lft mrgn-lft-md list-unstyled"> |
74 | 74 | <li class="clearfix pull-left mrgn-lft-md"> |
75 | 75 | <?php |
76 | - echo elgg_view ( "input/checkbox", array ( |
|
76 | + echo elgg_view("input/checkbox", array( |
|
77 | 77 | 'name' => 'assignseek_check', |
78 | 78 | 'checked' => true, |
79 | 79 | 'id' => 'gcconnex-opt-in-swap-check', |
80 | 80 | 'class'=>'pull-left', |
81 | - 'label'=>elgg_echo ( 'gcconnex_profile:opt:participants' ), |
|
81 | + 'label'=>elgg_echo('gcconnex_profile:opt:participants'), |
|
82 | 82 | )); |
83 | 83 | |
84 | 84 | ?> |
85 | 85 | </li> |
86 | 86 | <li class="clearfix pull-left mrgn-lft-md"> |
87 | 87 | <?php |
88 | - echo elgg_view ( "input/checkbox", array ( |
|
88 | + echo elgg_view("input/checkbox", array( |
|
89 | 89 | 'name' => 'assigncreate_check', |
90 | 90 | 'checked' => true, |
91 | 91 | 'id' => 'gcconnex-opt-in-swap-check', |
92 | 92 | 'class'=>'pull-left', |
93 | - 'label'=>elgg_echo ( 'gcconnex_profile:opt:host' ), |
|
93 | + 'label'=>elgg_echo('gcconnex_profile:opt:host'), |
|
94 | 94 | )); |
95 | 95 | |
96 | 96 | ?> |
@@ -99,29 +99,29 @@ discard block |
||
99 | 99 | </li> |
100 | 100 | |
101 | 101 | <li class="clearfix"> |
102 | - <?php echo elgg_echo('missions:deployment');?> |
|
102 | + <?php echo elgg_echo('missions:deployment'); ?> |
|
103 | 103 | |
104 | 104 | <ul class="clearfix brdr-lft mrgn-lft-md list-unstyled"> |
105 | 105 | <li class="clearfix pull-left mrgn-lft-md"> |
106 | 106 | <?php |
107 | - echo elgg_view ( "input/checkbox", array ( |
|
107 | + echo elgg_view("input/checkbox", array( |
|
108 | 108 | 'name' => 'deploymentseek_check', |
109 | 109 | 'checked' => true, |
110 | 110 | 'id' => 'gcconnex-opt-in-swap-check', |
111 | 111 | 'class'=>'pull-left', |
112 | - 'label'=>elgg_echo ( 'gcconnex_profile:opt:participants' ), |
|
112 | + 'label'=>elgg_echo('gcconnex_profile:opt:participants'), |
|
113 | 113 | )); |
114 | 114 | |
115 | 115 | ?> |
116 | 116 | </li> |
117 | 117 | <li class="clearfix pull-left mrgn-lft-md"> |
118 | 118 | <?php |
119 | - echo elgg_view ( "input/checkbox", array ( |
|
119 | + echo elgg_view("input/checkbox", array( |
|
120 | 120 | 'name' => 'deploymentcreate_check', |
121 | 121 | 'checked' => true, |
122 | 122 | 'id' => 'gcconnex-opt-in-swap-check', |
123 | 123 | 'class'=>'pull-left', |
124 | - 'label'=>elgg_echo ( 'gcconnex_profile:opt:host' ), |
|
124 | + 'label'=>elgg_echo('gcconnex_profile:opt:host'), |
|
125 | 125 | )); |
126 | 126 | |
127 | 127 | ?> |
@@ -131,12 +131,12 @@ discard block |
||
131 | 131 | |
132 | 132 | <li class="clearfix"> |
133 | 133 | <?php |
134 | - echo elgg_view ( "input/checkbox", array ( |
|
134 | + echo elgg_view("input/checkbox", array( |
|
135 | 135 | 'name' => 'swap_check', |
136 | 136 | 'checked' => true, |
137 | 137 | 'id' => 'gcconnex-opt-in-swap-check', |
138 | 138 | 'class'=>'pull-left', |
139 | - 'label'=>elgg_echo ( 'gcconnex_profile:opt:job_swap' ), |
|
139 | + 'label'=>elgg_echo('gcconnex_profile:opt:job_swap'), |
|
140 | 140 | )); |
141 | 141 | |
142 | 142 | ?> |
@@ -144,12 +144,12 @@ discard block |
||
144 | 144 | |
145 | 145 | <li class="clearfix"> |
146 | 146 | <?php |
147 | - echo elgg_view ( "input/checkbox", array ( |
|
147 | + echo elgg_view("input/checkbox", array( |
|
148 | 148 | 'name' => 'rotation_check', |
149 | 149 | 'checked' => true, |
150 | 150 | 'id' => 'gcconnex-opt-in-swap-check', |
151 | 151 | 'class'=>'pull-left', |
152 | - 'label'=>elgg_echo ( 'missions:job_rotation' ), |
|
152 | + 'label'=>elgg_echo('missions:job_rotation'), |
|
153 | 153 | )); |
154 | 154 | |
155 | 155 | ?> |
@@ -165,17 +165,17 @@ discard block |
||
165 | 165 | |
166 | 166 | |
167 | 167 | <li class="clearfix"> |
168 | - <?php echo elgg_echo('missions:mentoring');?> |
|
168 | + <?php echo elgg_echo('missions:mentoring'); ?> |
|
169 | 169 | |
170 | 170 | <ul class="clearfix brdr-lft mrgn-lft-md list-unstyled"> |
171 | 171 | <li class="clearfix pull-left mrgn-lft-md"> |
172 | 172 | <?php |
173 | - echo elgg_view ( "input/checkbox", array ( |
|
173 | + echo elgg_view("input/checkbox", array( |
|
174 | 174 | 'name' => 'mentored_check', |
175 | 175 | 'checked' => true, |
176 | 176 | 'id' => 'gcconnex-opt-in-mentoring-check', |
177 | 177 | 'class'=>'pull-left', |
178 | - 'label'=>elgg_echo ( 'gcconnex_profile:opt:mentored' ), |
|
178 | + 'label'=>elgg_echo('gcconnex_profile:opt:mentored'), |
|
179 | 179 | )); |
180 | 180 | |
181 | 181 | ?> |
@@ -183,12 +183,12 @@ discard block |
||
183 | 183 | |
184 | 184 | <li class="clearfix pull-left mrgn-lft-md"> |
185 | 185 | <?php |
186 | - echo elgg_view ( "input/checkbox", array ( |
|
186 | + echo elgg_view("input/checkbox", array( |
|
187 | 187 | 'name' => 'mentoring_check', |
188 | 188 | 'checked' => true, |
189 | 189 | 'id' => 'gcconnex-opt-in-mentored-check', |
190 | 190 | 'class'=>'pull-left', |
191 | - 'label'=>elgg_echo ( 'gcconnex_profile:opt:mentoring' ), |
|
191 | + 'label'=>elgg_echo('gcconnex_profile:opt:mentoring'), |
|
192 | 192 | )); |
193 | 193 | |
194 | 194 | ?> |
@@ -197,17 +197,17 @@ discard block |
||
197 | 197 | </li> |
198 | 198 | |
199 | 199 | <li class="clearfix"> |
200 | - <?php echo elgg_echo ( 'missions:job_shadowing' ); ?> |
|
200 | + <?php echo elgg_echo('missions:job_shadowing'); ?> |
|
201 | 201 | |
202 | 202 | <ul class="clearfix brdr-lft mrgn-lft-md list-unstyled"> |
203 | 203 | <li class="clearfix pull-left mrgn-lft-md"> |
204 | 204 | <?php |
205 | - echo elgg_view ( "input/checkbox", array ( |
|
205 | + echo elgg_view("input/checkbox", array( |
|
206 | 206 | 'name' => 'shadowing_check', |
207 | 207 | 'checked' => true, |
208 | 208 | 'id' => 'gcconnex-opt-in-shadowing-check', |
209 | 209 | 'class'=>'pull-left', |
210 | - 'label'=>elgg_echo ( 'gcconnex_profile:opt:participants' ), |
|
210 | + 'label'=>elgg_echo('gcconnex_profile:opt:participants'), |
|
211 | 211 | )); |
212 | 212 | |
213 | 213 | ?> |
@@ -215,12 +215,12 @@ discard block |
||
215 | 215 | |
216 | 216 | <li class="clearfix pull-left mrgn-lft-md"> |
217 | 217 | <?php |
218 | - echo elgg_view ( "input/checkbox", array ( |
|
218 | + echo elgg_view("input/checkbox", array( |
|
219 | 219 | 'name' => 'shadowed_check', |
220 | 220 | 'checked' => true, |
221 | 221 | 'id' => 'gcconnex-opt-in-shadowed-check', |
222 | 222 | 'class'=>'pull-left', |
223 | - 'label'=>elgg_echo ( 'gcconnex_profile:opt:host' ), |
|
223 | + 'label'=>elgg_echo('gcconnex_profile:opt:host'), |
|
224 | 224 | )); |
225 | 225 | |
226 | 226 | ?> |
@@ -230,17 +230,17 @@ discard block |
||
230 | 230 | |
231 | 231 | |
232 | 232 | <li class="clearfix"> |
233 | - <?php echo elgg_echo( 'missions:skill_share' ); ?> |
|
233 | + <?php echo elgg_echo('missions:skill_share'); ?> |
|
234 | 234 | |
235 | 235 | <ul class="brdr-lft clearfix mrgn-lft-md list-unstyled"> |
236 | 236 | <li class="clearfix pull-left mrgn-lft-md"> |
237 | 237 | <?php |
238 | - echo elgg_view ( "input/checkbox", array ( |
|
238 | + echo elgg_view("input/checkbox", array( |
|
239 | 239 | 'name' => 'skillseeker_check', |
240 | 240 | 'checked' => true, |
241 | 241 | 'id' => 'gcconnex-opt-in-shadowing-check', |
242 | 242 | 'class'=>'pull-left', |
243 | - 'label'=>elgg_echo ( 'gcconnex_profile:opt:participants' ), |
|
243 | + 'label'=>elgg_echo('gcconnex_profile:opt:participants'), |
|
244 | 244 | )); |
245 | 245 | |
246 | 246 | ?> |
@@ -248,12 +248,12 @@ discard block |
||
248 | 248 | |
249 | 249 | <li class="clearfix pull-left mrgn-lft-md"> |
250 | 250 | <?php |
251 | - echo elgg_view ( "input/checkbox", array ( |
|
251 | + echo elgg_view("input/checkbox", array( |
|
252 | 252 | 'name' => 'skillcreator_check', |
253 | 253 | 'checked' => true, |
254 | 254 | 'id' => 'gcconnex-opt-in-shadowing-check', |
255 | 255 | 'class'=>'pull-left', |
256 | - 'label'=>elgg_echo ( 'gcconnex_profile:opt:host' ), |
|
256 | + 'label'=>elgg_echo('gcconnex_profile:opt:host'), |
|
257 | 257 | )); |
258 | 258 | |
259 | 259 | ?> |
@@ -263,29 +263,29 @@ discard block |
||
263 | 263 | |
264 | 264 | |
265 | 265 | <li class="clearfix"> |
266 | - <?php echo elgg_echo( 'missions:peer_coaching' ); ?> |
|
266 | + <?php echo elgg_echo('missions:peer_coaching'); ?> |
|
267 | 267 | |
268 | 268 | <ul class="clearfix brdr-lft mrgn-lft-md list-unstyled"> |
269 | 269 | <li class="clearfix pull-left mrgn-lft-md"> |
270 | 270 | <?php |
271 | - echo elgg_view ( "input/checkbox", array ( |
|
271 | + echo elgg_view("input/checkbox", array( |
|
272 | 272 | 'name' => 'coachseek_check', |
273 | 273 | 'checked' => true, |
274 | 274 | 'id' => 'gcconnex-opt-in-seekCoach-check', |
275 | 275 | 'class'=>'pull-left', |
276 | - 'label'=>elgg_echo ( 'gcconnex_profile:opt:participants' ), |
|
276 | + 'label'=>elgg_echo('gcconnex_profile:opt:participants'), |
|
277 | 277 | )); |
278 | 278 | |
279 | 279 | ?> |
280 | 280 | </li> |
281 | 281 | <li class="clearfix pull-left mrgn-lft-md"> |
282 | 282 | <?php |
283 | - echo elgg_view ( "input/checkbox", array ( |
|
283 | + echo elgg_view("input/checkbox", array( |
|
284 | 284 | 'name' => 'coachcreate_check', |
285 | 285 | 'checked' => true, |
286 | 286 | 'id' => 'gcconnex-opt-in-becomeCoach-check', |
287 | 287 | 'class'=>'pull-left', |
288 | - 'label'=>elgg_echo ( 'gcconnex_profile:opt:host' ), |
|
288 | + 'label'=>elgg_echo('gcconnex_profile:opt:host'), |
|
289 | 289 | )); |
290 | 290 | |
291 | 291 | ?> |
@@ -295,12 +295,12 @@ discard block |
||
295 | 295 | |
296 | 296 | <li class="clearfix"> |
297 | 297 | <?php |
298 | - echo elgg_view ( "input/checkbox", array ( |
|
298 | + echo elgg_view("input/checkbox", array( |
|
299 | 299 | 'name' => 'jobshare_check', |
300 | 300 | 'checked' => true, |
301 | 301 | 'id' => 'gcconnex-opt-in-shadowing-check', |
302 | 302 | 'class'=>'pull-left', |
303 | - 'label'=>elgg_echo ( 'missions:job_share' ), |
|
303 | + 'label'=>elgg_echo('missions:job_share'), |
|
304 | 304 | )); |
305 | 305 | |
306 | 306 | ?> |
@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | |
79 | 79 | <div class="col-sm-12" style="margin:4px;"> |
80 | 80 | <label for='data-analytics-separator-dropdown-input' class="col-sm-3" style="text-align:right;"> |
81 | - <?php echo elgg_echo('missions:separate_missions_by') . ':';?> |
|
81 | + <?php echo elgg_echo('missions:separate_missions_by') . ':'; ?> |
|
82 | 82 | </label> |
83 | 83 | <div class="col-sm-3"> |
84 | 84 | <?php echo $input_separator; ?> |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | </div> |
87 | 87 | <div class="col-sm-12" style="margin:4px;"> |
88 | 88 | <label for='data-analytics-start-date-input' class="col-sm-3" style="text-align:right;""> |
89 | - <?php echo elgg_echo('missions:start_date') . ':';?> |
|
89 | + <?php echo elgg_echo('missions:start_date') . ':'; ?> |
|
90 | 90 | </label> |
91 | 91 | <div class="col-sm-3"> |
92 | 92 | <?php echo $input_start_date; ?> |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | </div> |
96 | 96 | <div class="col-sm-12" style="margin:4px;"> |
97 | 97 | <label for='data-analytics-end-date-input' class="col-sm-3" style="text-align:right;"> |
98 | - <?php echo elgg_echo('missions:end_date') . ':';?> |
|
98 | + <?php echo elgg_echo('missions:end_date') . ':'; ?> |
|
99 | 99 | </label> |
100 | 100 | <div class="col-sm-3"> |
101 | 101 | <?php echo $input_end_date; ?> |
@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | </div> |
105 | 105 | <div class="col-sm-12" style="margin:4px;"> |
106 | 106 | <label for='data-analytics-interval-dropdown-input' class="col-sm-3" style="text-align:right;"> |
107 | - <?php echo elgg_echo('missions:time_interval') . ':';?> |
|
107 | + <?php echo elgg_echo('missions:time_interval') . ':'; ?> |
|
108 | 108 | </label> |
109 | 109 | <div class="col-sm-3"> |
110 | 110 | <?php echo $input_interval; ?> |
@@ -112,7 +112,7 @@ discard block |
||
112 | 112 | </div> |
113 | 113 | <div class="col-sm-12" style="margin:4px;"> |
114 | 114 | <label for='data-analytics-target-mission-date-dropdown-input' class="col-sm-3" style="text-align:right;"> |
115 | - <?php echo elgg_echo('missions:target_date') . ':';?> |
|
115 | + <?php echo elgg_echo('missions:target_date') . ':'; ?> |
|
116 | 116 | </label> |
117 | 117 | <div class="col-sm-3"> |
118 | 118 | <?php echo $input_target_mission_date; ?> |
@@ -34,8 +34,8 @@ discard block |
||
34 | 34 | 'limit' => $max, |
35 | 35 | 'pagination' => true, |
36 | 36 | 'list_type' => 'gallery', |
37 | - 'gallery_class'=>'wb-eqht', |
|
38 | - 'item_class'=>'col-sm-6 col-md-4 ', |
|
37 | + 'gallery_class'=>'wb-eqht', |
|
38 | + 'item_class'=>'col-sm-6 col-md-4 ', |
|
39 | 39 | |
40 | 40 | 'mission_full_view' => false |
41 | 41 | ), $offset, $max); |
@@ -122,10 +122,10 @@ discard block |
||
122 | 122 | |
123 | 123 | <div> |
124 | 124 | <?php |
125 | - echo elgg_view_form('missions/opt-in-splash'); |
|
125 | + echo elgg_view_form('missions/opt-in-splash'); |
|
126 | 126 | |
127 | 127 | |
128 | - ?> |
|
128 | + ?> |
|
129 | 129 | </div> |
130 | 130 | |
131 | 131 |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | <div class="clearfix"> |
109 | 109 | <div class="pull-right clearfix"> |
110 | 110 | |
111 | - <a href ="#" type="button" class="" data-dismiss="modal"><i class="fa fa-times fa-lg" aria-hidden="true"></i><span class="wb-inv"><?php echo elgg_echo('close');?></span></a> |
|
111 | + <a href ="#" type="button" class="" data-dismiss="modal"><i class="fa fa-times fa-lg" aria-hidden="true"></i><span class="wb-inv"><?php echo elgg_echo('close'); ?></span></a> |
|
112 | 112 | |
113 | 113 | </div> |
114 | 114 | <div> |
@@ -140,7 +140,7 @@ discard block |
||
140 | 140 | |
141 | 141 | |
142 | 142 | <div class="brdr-tp mrgn-tp-md clearfix col-sm-12"> |
143 | - <h2 class='h4'><?php echo elgg_echo('missions:splash:missions_right_now') ; ?></h2> |
|
143 | + <h2 class='h4'><?php echo elgg_echo('missions:splash:missions_right_now'); ?></h2> |
|
144 | 144 | <?php |
145 | 145 | //echo $simple_search_form; |
146 | 146 | //Nick - Removing search from splash page as user still needs to opt in |