@@ 145-161 (lines=17) @@ | ||
142 | } |
|
143 | } |
|
144 | ||
145 | if (questions_is_expert()) { |
|
146 | $items[] = ElggMenuItem::factory([ |
|
147 | 'name' => 'todo', |
|
148 | 'text' => elgg_echo('questions:menu:filter:todo'), |
|
149 | 'href' => 'questions/todo', |
|
150 | 'priority' => 700, |
|
151 | ]); |
|
152 | ||
153 | if ($page_owner instanceof ElggGroup) { |
|
154 | $items[] = ElggMenuItem::factory([ |
|
155 | 'name' => 'todo_group', |
|
156 | 'text' => elgg_echo('questions:menu:filter:todo_group'), |
|
157 | 'href' => "questions/todo/{$page_owner->getGUID()}", |
|
158 | 'priority' => 710, |
|
159 | ]); |
|
160 | } |
|
161 | } |
|
162 | ||
163 | if (questions_experts_enabled()) { |
|
164 | $experts_href = 'questions/experts'; |
@@ 2204-2220 (lines=17) @@ | ||
2201 | } |
|
2202 | } |
|
2203 | ||
2204 | if (questions_is_expert()) { |
|
2205 | $items[] = ElggMenuItem::factory([ |
|
2206 | 'name' => 'todo', |
|
2207 | 'text' => elgg_echo('questions:menu:filter:todo'), |
|
2208 | 'href' => 'questions/todo', |
|
2209 | 'priority' => 700, |
|
2210 | ]); |
|
2211 | ||
2212 | if ($page_owner instanceof ElggGroup) { |
|
2213 | $items[] = ElggMenuItem::factory([ |
|
2214 | 'name' => 'todo_group', |
|
2215 | 'text' => elgg_echo('questions:menu:filter:todo_group'), |
|
2216 | 'href' => "questions/todo/{$page_owner->getGUID()}", |
|
2217 | 'priority' => 710, |
|
2218 | ]); |
|
2219 | } |
|
2220 | } |
|
2221 | ||
2222 | if (questions_experts_enabled()) { |
|
2223 | $experts_href = 'questions/experts'; |