1 | <?php |
||
2 | |||
3 | /** |
||
4 | * Implementation of hook_default_page_manager_pages(). |
||
5 | */ |
||
6 | function boinc_standard_default_page_manager_pages() { |
||
7 | $page = new stdClass; |
||
8 | $page->disabled = FALSE; /* Edit this to true to make a default page disabled initially */ |
||
9 | $page->api_version = 1; |
||
10 | $page->name = 'about_us'; |
||
11 | $page->task = 'page'; |
||
12 | $page->admin_title = 'About Us'; |
||
13 | $page->admin_description = ''; |
||
14 | $page->path = 'about.fail'; |
||
15 | $page->access = array( |
||
16 | 'type' => 'none', |
||
17 | 'settings' => NULL, |
||
18 | ); |
||
19 | $page->menu = array(); |
||
20 | $page->arguments = array(); |
||
21 | $page->conf = array(); |
||
22 | $page->default_handlers = array(); |
||
23 | $pages['about_us'] = $page; |
||
24 | |||
25 | $page = new stdClass; |
||
26 | $page->disabled = FALSE; /* Edit this to true to make a default page disabled initially */ |
||
27 | $page->api_version = 1; |
||
28 | $page->name = 'account_dashboard'; |
||
29 | $page->task = 'page'; |
||
30 | $page->admin_title = 'Dashboard'; |
||
31 | $page->admin_description = ''; |
||
32 | $page->path = 'dashboard'; |
||
33 | $page->access = array( |
||
34 | 'plugins' => array( |
||
35 | 1 => array( |
||
36 | 'name' => 'role', |
||
37 | 'settings' => array( |
||
38 | 'rids' => array( |
||
39 | 0 => 2, |
||
40 | ), |
||
41 | ), |
||
42 | 'context' => 'logged-in-user', |
||
43 | 'not' => FALSE, |
||
44 | ), |
||
45 | ), |
||
46 | 'logic' => 'and', |
||
47 | 'type' => 'none', |
||
48 | 'settings' => NULL, |
||
49 | ); |
||
50 | $page->menu = array( |
||
51 | 'type' => 'none', |
||
52 | 'title' => 'Dashboard', |
||
53 | 'name' => 'navigation', |
||
54 | 'weight' => '0', |
||
55 | 'parent' => array( |
||
56 | 'type' => 'normal', |
||
57 | 'title' => 'Account', |
||
58 | 'name' => 'navigation', |
||
59 | 'weight' => '0', |
||
60 | ), |
||
61 | ); |
||
62 | $page->arguments = array(); |
||
63 | $page->conf = array(); |
||
64 | $page->default_handlers = array(); |
||
65 | $handler = new stdClass; |
||
66 | $handler->disabled = FALSE; /* Edit this to true to make a default handler disabled initially */ |
||
67 | $handler->api_version = 1; |
||
68 | $handler->name = 'page_account_dashboard_panel_context'; |
||
69 | $handler->task = 'page'; |
||
70 | $handler->subtask = 'account_dashboard'; |
||
71 | $handler->handler = 'panel_context'; |
||
72 | $handler->weight = 0; |
||
73 | $handler->conf = array( |
||
74 | 'title' => 'Landing page', |
||
75 | 'no_blocks' => FALSE, |
||
76 | 'pipeline' => 'ipe', |
||
77 | 'css_id' => '', |
||
78 | 'css' => '', |
||
79 | 'contexts' => array( |
||
80 | 0 => array( |
||
81 | 'name' => 'user', |
||
82 | 'id' => 1, |
||
83 | 'identifier' => 'User', |
||
84 | 'keyword' => 'user', |
||
85 | 'context_settings' => array( |
||
86 | 'type' => 'current', |
||
87 | 'user' => '', |
||
88 | 'uid' => '', |
||
89 | ), |
||
90 | ), |
||
91 | ), |
||
92 | 'relationships' => array(), |
||
93 | 'access' => array( |
||
94 | 'plugins' => array(), |
||
95 | 'logic' => 'and', |
||
96 | ), |
||
97 | ); |
||
98 | $display = new panels_display; |
||
0 ignored issues
–
show
|
|||
99 | $display->layout = 'one_sidebar_second'; |
||
100 | $display->layout_settings = array(); |
||
101 | $display->panel_settings = array( |
||
102 | 'style_settings' => array( |
||
103 | 'default' => NULL, |
||
104 | 'content' => NULL, |
||
105 | 'sidebar_first' => NULL, |
||
106 | ), |
||
107 | ); |
||
108 | $display->cache = array(); |
||
109 | $display->title = 'Dashboard'; |
||
110 | $display->storage_type = 'page_manager'; |
||
111 | $display->storage_id = 'page_account_dashboard_panel_context'; |
||
112 | $display->content = array(); |
||
113 | $display->panels = array(); |
||
114 | $pane = new stdClass; |
||
115 | $pane->pid = 'new-1'; |
||
116 | $pane->panel = 'content'; |
||
117 | $pane->type = 'panels_mini'; |
||
118 | $pane->subtype = 'dashboard_tables'; |
||
119 | $pane->shown = TRUE; |
||
120 | $pane->access = array(); |
||
121 | $pane->configuration = array( |
||
122 | 'override_title' => 1, |
||
123 | 'override_title_text' => 'My stats', |
||
124 | ); |
||
125 | $pane->cache = array(); |
||
126 | $pane->style = array( |
||
127 | 'settings' => NULL, |
||
128 | ); |
||
129 | $pane->css = array( |
||
130 | 'css_id' => '', |
||
131 | 'css_class' => 'panel-primary container shadow', |
||
132 | ); |
||
133 | $pane->extras = array(); |
||
134 | $pane->position = 0; |
||
135 | $display->content['new-1'] = $pane; |
||
136 | $display->panels['content'][0] = 'new-1'; |
||
137 | $pane = new stdClass; |
||
138 | $pane->pid = 'new-2'; |
||
139 | $pane->panel = 'content'; |
||
140 | $pane->type = 'views_panes'; |
||
141 | $pane->subtype = 'subscriptions-panel_pane_1'; |
||
142 | $pane->shown = TRUE; |
||
143 | $pane->access = array(); |
||
144 | $pane->configuration = array(); |
||
145 | $pane->cache = array(); |
||
146 | $pane->style = array( |
||
147 | 'settings' => NULL, |
||
148 | ); |
||
149 | $pane->css = array( |
||
150 | 'css_id' => '', |
||
151 | 'css_class' => 'panel-primary container shadow', |
||
152 | ); |
||
153 | $pane->extras = array(); |
||
154 | $pane->position = 1; |
||
155 | $display->content['new-2'] = $pane; |
||
156 | $display->panels['content'][1] = 'new-2'; |
||
157 | $pane = new stdClass; |
||
158 | $pane->pid = 'new-3'; |
||
159 | $pane->panel = 'sidebar_first'; |
||
160 | $pane->type = 'custom'; |
||
161 | $pane->subtype = 'custom'; |
||
162 | $pane->shown = TRUE; |
||
163 | $pane->access = array( |
||
164 | 'plugins' => array( |
||
165 | 1 => array( |
||
166 | 'name' => 'perm', |
||
167 | 'settings' => array( |
||
168 | 'perm' => 'edit any profile content', |
||
169 | ), |
||
170 | 'context' => 'context_user_1', |
||
171 | 'not' => FALSE, |
||
172 | ), |
||
173 | ), |
||
174 | ); |
||
175 | $pane->configuration = array( |
||
176 | 'admin_title' => 'Moderation overview', |
||
177 | 'title' => '', |
||
178 | 'body' => '<?php print boinccore_moderation_overview_panel(); ?>', |
||
179 | 'format' => '3', |
||
180 | 'substitute' => 1, |
||
181 | ); |
||
182 | $pane->cache = array(); |
||
183 | $pane->style = array( |
||
184 | 'settings' => NULL, |
||
185 | ); |
||
186 | $pane->css = array( |
||
187 | 'css_id' => '', |
||
188 | 'css_class' => 'panel-secondary container shadow', |
||
189 | ); |
||
190 | $pane->extras = array(); |
||
191 | $pane->position = 0; |
||
192 | $display->content['new-3'] = $pane; |
||
193 | $display->panels['sidebar_first'][0] = 'new-3'; |
||
194 | $pane = new stdClass; |
||
195 | $pane->pid = 'new-4'; |
||
196 | $pane->panel = 'sidebar_first'; |
||
197 | $pane->type = 'panels_mini'; |
||
198 | $pane->subtype = 'user_mail_summary'; |
||
199 | $pane->shown = TRUE; |
||
200 | $pane->access = array(); |
||
201 | $pane->configuration = array( |
||
202 | 'override_title' => 0, |
||
203 | 'override_title_text' => '', |
||
204 | ); |
||
205 | $pane->cache = array(); |
||
206 | $pane->style = array( |
||
207 | 'settings' => NULL, |
||
208 | ); |
||
209 | $pane->css = array( |
||
210 | 'css_id' => '', |
||
211 | 'css_class' => 'panel-secondary container shadow', |
||
212 | ); |
||
213 | $pane->extras = array(); |
||
214 | $pane->position = 1; |
||
215 | $display->content['new-4'] = $pane; |
||
216 | $display->panels['sidebar_first'][1] = 'new-4'; |
||
217 | $pane = new stdClass; |
||
218 | $pane->pid = 'new-5'; |
||
219 | $pane->panel = 'sidebar_first'; |
||
220 | $pane->type = 'custom'; |
||
221 | $pane->subtype = 'custom'; |
||
222 | $pane->shown = TRUE; |
||
223 | $pane->access = array(); |
||
224 | $pane->configuration = array( |
||
225 | 'admin_title' => 'Team summary', |
||
226 | 'title' => '', |
||
227 | 'body' => '<?php |
||
228 | if (module_exists(\'boincteam\')) { |
||
229 | echo boincteam_dashboard_panel(); |
||
230 | } |
||
231 | ?>', |
||
232 | 'format' => '3', |
||
233 | 'substitute' => 1, |
||
234 | ); |
||
235 | $pane->cache = array(); |
||
236 | $pane->style = array( |
||
237 | 'settings' => NULL, |
||
238 | ); |
||
239 | $pane->css = array( |
||
240 | 'css_id' => 'team-dashboard-pane', |
||
241 | 'css_class' => 'panel-secondary container shadow', |
||
242 | ); |
||
243 | $pane->extras = array(); |
||
244 | $pane->position = 2; |
||
245 | $display->content['new-5'] = $pane; |
||
246 | $display->panels['sidebar_first'][2] = 'new-5'; |
||
247 | $pane = new stdClass; |
||
248 | $pane->pid = 'new-6'; |
||
249 | $pane->panel = 'sidebar_first'; |
||
250 | $pane->type = 'custom'; |
||
251 | $pane->subtype = 'custom'; |
||
252 | $pane->shown = TRUE; |
||
253 | $pane->access = array(); |
||
254 | $pane->configuration = array( |
||
255 | 'admin_title' => 'User activity summary', |
||
256 | 'title' => '', |
||
257 | 'body' => '<?php |
||
258 | |||
259 | global $user; |
||
260 | $uid = $user->uid; |
||
261 | $account = user_load($uid); |
||
262 | echo \'<h2 class="pane-title compound-heading">\' . l(bts(\'Posts contributed\', array(), NULL, \'boinc:account-dashboard\'), "account/{$uid}/posts") . \'</h2>\'; |
||
263 | echo \'<div class="item-count-wrapper"><div class="item-count">\' . $account->post_count . \'</div></div>\'; |
||
264 | |||
265 | ?>', |
||
266 | 'format' => '3', |
||
267 | 'substitute' => 1, |
||
268 | ); |
||
269 | $pane->cache = array(); |
||
270 | $pane->style = array( |
||
271 | 'settings' => NULL, |
||
272 | ); |
||
273 | $pane->css = array( |
||
274 | 'css_id' => '', |
||
275 | 'css_class' => 'panel-secondary container shadow', |
||
276 | ); |
||
277 | $pane->extras = array(); |
||
278 | $pane->position = 3; |
||
279 | $display->content['new-6'] = $pane; |
||
280 | $display->panels['sidebar_first'][3] = 'new-6'; |
||
281 | $pane = new stdClass; |
||
282 | $pane->pid = 'new-7'; |
||
283 | $pane->panel = 'sidebar_first'; |
||
284 | $pane->type = 'views'; |
||
285 | $pane->subtype = 'boinc_friends'; |
||
286 | $pane->shown = TRUE; |
||
287 | $pane->access = array(); |
||
288 | $pane->configuration = array( |
||
289 | 'override_pager_settings' => 0, |
||
290 | 'use_pager' => 0, |
||
291 | 'nodes_per_page' => '6', |
||
292 | 'pager_id' => '', |
||
293 | 'offset' => '0', |
||
294 | 'more_link' => 1, |
||
295 | 'feed_icons' => 0, |
||
296 | 'panel_args' => 0, |
||
297 | 'link_to_view' => 0, |
||
298 | 'args' => '', |
||
299 | 'url' => '', |
||
300 | 'display' => 'block_1', |
||
301 | 'context' => array( |
||
302 | 0 => 'context_user_1.uid', |
||
303 | ), |
||
304 | 'override_title' => 0, |
||
305 | 'override_title_text' => '', |
||
306 | ); |
||
307 | $pane->cache = array(); |
||
308 | $pane->style = array( |
||
309 | 'settings' => NULL, |
||
310 | ); |
||
311 | $pane->css = array( |
||
312 | 'css_id' => '', |
||
313 | 'css_class' => 'panel-secondary container shadow', |
||
314 | ); |
||
315 | $pane->extras = array(); |
||
316 | $pane->position = 4; |
||
317 | $display->content['new-7'] = $pane; |
||
318 | $display->panels['sidebar_first'][4] = 'new-7'; |
||
319 | $display->hide_title = PANELS_TITLE_FIXED; |
||
320 | $display->title_pane = 'new-1'; |
||
321 | $handler->conf['display'] = $display; |
||
322 | $page->default_handlers[$handler->name] = $handler; |
||
323 | $pages['account_dashboard'] = $page; |
||
324 | |||
325 | $page = new stdClass; |
||
326 | $page->disabled = FALSE; /* Edit this to true to make a default page disabled initially */ |
||
327 | $page->api_version = 1; |
||
328 | $page->name = 'boinc_user'; |
||
329 | $page->task = 'page'; |
||
330 | $page->admin_title = 'User profile template (boinc)'; |
||
331 | $page->admin_description = ''; |
||
332 | $page->path = 'account/%user'; |
||
333 | $page->access = array( |
||
334 | 'type' => 'none', |
||
335 | 'settings' => NULL, |
||
336 | ); |
||
337 | $page->menu = array(); |
||
338 | $page->arguments = array( |
||
339 | 'user' => array( |
||
340 | 'id' => 1, |
||
341 | 'identifier' => 'User: ID', |
||
342 | 'name' => 'uid', |
||
343 | 'settings' => array(), |
||
344 | ), |
||
345 | ); |
||
346 | $page->conf = array(); |
||
347 | $page->default_handlers = array(); |
||
348 | $handler = new stdClass; |
||
349 | $handler->disabled = FALSE; /* Edit this to true to make a default handler disabled initially */ |
||
350 | $handler->api_version = 1; |
||
351 | $handler->name = 'page_boinc_user_panel_context_2'; |
||
352 | $handler->task = 'page'; |
||
353 | $handler->subtask = 'boinc_user'; |
||
354 | $handler->handler = 'panel_context'; |
||
355 | $handler->weight = 1; |
||
356 | $handler->conf = array( |
||
357 | 'title' => 'Panel', |
||
358 | 'no_blocks' => 0, |
||
359 | 'pipeline' => 'standard', |
||
360 | 'css_id' => '', |
||
361 | 'css' => '', |
||
362 | 'contexts' => array(), |
||
363 | 'relationships' => array(), |
||
364 | 'access' => array( |
||
365 | 'plugins' => array( |
||
366 | 0 => array( |
||
367 | 'name' => 'php', |
||
368 | 'settings' => array( |
||
369 | 'description' => 'if user status then show profile', |
||
370 | 'php' => '$account = $contexts[\'argument_uid_1\']->data; |
||
371 | return ($account->status); |
||
372 | ', |
||
373 | ), |
||
374 | 'not' => FALSE, |
||
375 | ), |
||
376 | ), |
||
377 | 'logic' => 'and', |
||
378 | ), |
||
379 | ); |
||
380 | $display = new panels_display; |
||
381 | $display->layout = 'one_sidebar_second'; |
||
382 | $display->layout_settings = array(); |
||
383 | $display->panel_settings = array( |
||
384 | 'style_settings' => array( |
||
385 | 'default' => NULL, |
||
386 | 'content' => NULL, |
||
387 | 'sidebar_first' => NULL, |
||
388 | ), |
||
389 | ); |
||
390 | $display->cache = array(); |
||
391 | $display->title = 'Account'; |
||
392 | $display->storage_type = 'page_manager'; |
||
393 | $display->storage_id = 'page_boinc_user_panel_context_2'; |
||
394 | $display->content = array(); |
||
395 | $display->panels = array(); |
||
396 | $pane = new stdClass; |
||
397 | $pane->pid = 'new-1'; |
||
398 | $pane->panel = 'content'; |
||
399 | $pane->type = 'panels_mini'; |
||
400 | $pane->subtype = 'user_profile'; |
||
401 | $pane->shown = TRUE; |
||
402 | $pane->access = array(); |
||
403 | $pane->configuration = array( |
||
404 | 'context' => array( |
||
405 | 0 => 'argument_uid_1', |
||
406 | ), |
||
407 | 'override_title' => 0, |
||
408 | 'override_title_text' => '', |
||
409 | ); |
||
410 | $pane->cache = array(); |
||
411 | $pane->style = array( |
||
412 | 'settings' => NULL, |
||
413 | ); |
||
414 | $pane->css = array( |
||
415 | 'css_id' => '', |
||
416 | 'css_class' => 'panel-primary container shadow', |
||
417 | ); |
||
418 | $pane->extras = array(); |
||
419 | $pane->position = 0; |
||
420 | $display->content['new-1'] = $pane; |
||
421 | $display->panels['content'][0] = 'new-1'; |
||
422 | $pane = new stdClass; |
||
423 | $pane->pid = 'new-2'; |
||
424 | $pane->panel = 'sidebar_first'; |
||
425 | $pane->type = 'views_panes'; |
||
426 | $pane->subtype = 'boinc_account_stats-panel_pane_2'; |
||
427 | $pane->shown = TRUE; |
||
428 | $pane->access = array(); |
||
429 | $pane->configuration = array( |
||
430 | 'override_title' => 0, |
||
431 | 'override_title_text' => '', |
||
432 | ); |
||
433 | $pane->cache = array(); |
||
434 | $pane->style = array( |
||
435 | 'settings' => NULL, |
||
436 | ); |
||
437 | $pane->css = array( |
||
438 | 'css_id' => '', |
||
439 | 'css_class' => 'panel-secondary container shadow', |
||
440 | ); |
||
441 | $pane->extras = array(); |
||
442 | $pane->position = 0; |
||
443 | $display->content['new-2'] = $pane; |
||
444 | $display->panels['sidebar_first'][0] = 'new-2'; |
||
445 | $pane = new stdClass; |
||
446 | $pane->pid = 'new-3'; |
||
447 | $pane->panel = 'sidebar_first'; |
||
448 | $pane->type = 'custom'; |
||
449 | $pane->subtype = 'custom'; |
||
450 | $pane->shown = TRUE; |
||
451 | $pane->access = array(); |
||
452 | $pane->configuration = array( |
||
453 | 'admin_title' => 'Team summary', |
||
454 | 'title' => '', |
||
455 | 'body' => '<?php |
||
456 | if (module_exists(\'boincteam\')) { |
||
457 | echo boincteam_dashboard_panel(%user:uid); |
||
458 | } |
||
459 | ?>', |
||
460 | 'format' => '3', |
||
461 | 'substitute' => 1, |
||
462 | ); |
||
463 | $pane->cache = array(); |
||
464 | $pane->style = array( |
||
465 | 'settings' => NULL, |
||
466 | ); |
||
467 | $pane->css = array( |
||
468 | 'css_id' => 'team-dashboard-pane', |
||
469 | 'css_class' => 'panel-secondary container shadow', |
||
470 | ); |
||
471 | $pane->extras = array(); |
||
472 | $pane->position = 1; |
||
473 | $display->content['new-3'] = $pane; |
||
474 | $display->panels['sidebar_first'][1] = 'new-3'; |
||
475 | $pane = new stdClass; |
||
476 | $pane->pid = 'new-4'; |
||
477 | $pane->panel = 'sidebar_first'; |
||
478 | $pane->type = 'custom'; |
||
479 | $pane->subtype = 'custom'; |
||
480 | $pane->shown = TRUE; |
||
481 | $pane->access = array(); |
||
482 | $pane->configuration = array( |
||
483 | 'admin_title' => 'User activity summary', |
||
484 | 'title' => '', |
||
485 | 'body' => '<?php |
||
486 | |||
487 | $uid = arg(1); |
||
488 | $account = user_load($uid); |
||
489 | echo \'<h2 class="pane-title compound-heading">\' . l(bts(\'Posts contributed\', array(), NULL, \'boinc:account-dashboard\'), "account/{$uid}/posts") . \'</h2>\'; |
||
490 | echo \'<div class="item-count-wrapper"><div class="item-count">\' . $account->post_count . \'</div></div>\'; |
||
491 | |||
492 | ?>', |
||
493 | 'format' => '3', |
||
494 | 'substitute' => 0, |
||
495 | ); |
||
496 | $pane->cache = array(); |
||
497 | $pane->style = array( |
||
498 | 'settings' => NULL, |
||
499 | ); |
||
500 | $pane->css = array( |
||
501 | 'css_id' => '', |
||
502 | 'css_class' => 'panel-secondary container shadow', |
||
503 | ); |
||
504 | $pane->extras = array(); |
||
505 | $pane->position = 2; |
||
506 | $display->content['new-4'] = $pane; |
||
507 | $display->panels['sidebar_first'][2] = 'new-4'; |
||
508 | $pane = new stdClass; |
||
509 | $pane->pid = 'new-5'; |
||
510 | $pane->panel = 'sidebar_first'; |
||
511 | $pane->type = 'views'; |
||
512 | $pane->subtype = 'boinc_friends'; |
||
513 | $pane->shown = TRUE; |
||
514 | $pane->access = array(); |
||
515 | $pane->configuration = array( |
||
516 | 'override_pager_settings' => 0, |
||
517 | 'use_pager' => 0, |
||
518 | 'nodes_per_page' => '6', |
||
519 | 'pager_id' => '', |
||
520 | 'offset' => '0', |
||
521 | 'more_link' => 0, |
||
522 | 'feed_icons' => 0, |
||
523 | 'panel_args' => 0, |
||
524 | 'link_to_view' => 0, |
||
525 | 'args' => '', |
||
526 | 'url' => '', |
||
527 | 'display' => 'block_1', |
||
528 | 'context' => array( |
||
529 | 0 => 'argument_uid_1.uid', |
||
530 | ), |
||
531 | 'override_title' => 0, |
||
532 | 'override_title_text' => '', |
||
533 | ); |
||
534 | $pane->cache = array(); |
||
535 | $pane->style = array( |
||
536 | 'settings' => NULL, |
||
537 | ); |
||
538 | $pane->css = array( |
||
539 | 'css_id' => '', |
||
540 | 'css_class' => 'panel-secondary container shadow', |
||
541 | ); |
||
542 | $pane->extras = array(); |
||
543 | $pane->position = 3; |
||
544 | $display->content['new-5'] = $pane; |
||
545 | $display->panels['sidebar_first'][3] = 'new-5'; |
||
546 | $pane = new stdClass; |
||
547 | $pane->pid = 'new-6'; |
||
548 | $pane->panel = 'sidebar_first'; |
||
549 | $pane->type = 'custom'; |
||
550 | $pane->subtype = 'custom'; |
||
551 | $pane->shown = TRUE; |
||
552 | $pane->access = array(); |
||
553 | $pane->configuration = array( |
||
554 | 'admin_title' => 'Project list', |
||
555 | 'title' => 'Projects', |
||
556 | 'body' => '<?php echo boincuser_get_projects_table(%user:uid); ?>', |
||
557 | 'format' => '3', |
||
558 | 'substitute' => 1, |
||
559 | ); |
||
560 | $pane->cache = array(); |
||
561 | $pane->style = array( |
||
562 | 'settings' => NULL, |
||
563 | ); |
||
564 | $pane->css = array( |
||
565 | 'css_id' => '', |
||
566 | 'css_class' => 'panel-secondary container shadow', |
||
567 | ); |
||
568 | $pane->extras = array(); |
||
569 | $pane->position = 4; |
||
570 | $display->content['new-6'] = $pane; |
||
571 | $display->panels['sidebar_first'][4] = 'new-6'; |
||
572 | $display->hide_title = PANELS_TITLE_FIXED; |
||
573 | $display->title_pane = '0'; |
||
574 | $handler->conf['display'] = $display; |
||
575 | $page->default_handlers[$handler->name] = $handler; |
||
576 | $pages['boinc_user'] = $page; |
||
577 | |||
578 | $page = new stdClass; |
||
579 | $page->disabled = FALSE; /* Edit this to true to make a default page disabled initially */ |
||
580 | $page->api_version = 1; |
||
581 | $page->name = 'home'; |
||
582 | $page->task = 'page'; |
||
583 | $page->admin_title = 'Home page'; |
||
584 | $page->admin_description = ''; |
||
585 | $page->path = 'home'; |
||
586 | $page->access = array( |
||
587 | 'type' => 'none', |
||
588 | 'settings' => NULL, |
||
589 | ); |
||
590 | $page->menu = array( |
||
591 | 'type' => 'normal', |
||
592 | 'title' => 'Home', |
||
593 | 'name' => 'navigation', |
||
594 | 'weight' => '0', |
||
595 | 'parent' => array( |
||
596 | 'type' => 'none', |
||
597 | 'title' => '', |
||
598 | 'name' => 'navigation', |
||
599 | 'weight' => '0', |
||
600 | ), |
||
601 | ); |
||
602 | $page->arguments = array(); |
||
603 | $page->conf = array(); |
||
604 | $page->default_handlers = array(); |
||
605 | $handler = new stdClass; |
||
606 | $handler->disabled = FALSE; /* Edit this to true to make a default handler disabled initially */ |
||
607 | $handler->api_version = 1; |
||
608 | $handler->name = 'page_home_panel_context'; |
||
609 | $handler->task = 'page'; |
||
610 | $handler->subtask = 'home'; |
||
611 | $handler->handler = 'panel_context'; |
||
612 | $handler->weight = 0; |
||
613 | $handler->conf = array( |
||
614 | 'title' => 'Landing page', |
||
615 | 'no_blocks' => FALSE, |
||
616 | 'pipeline' => 'ipe', |
||
617 | 'css_id' => '', |
||
618 | 'css' => '', |
||
619 | 'contexts' => array(), |
||
620 | 'relationships' => array(), |
||
621 | ); |
||
622 | $display = new panels_display; |
||
623 | $display->layout = 'one_sidebar_second'; |
||
624 | $display->layout_settings = array(); |
||
625 | $display->panel_settings = array( |
||
626 | 'style_settings' => array( |
||
627 | 'default' => NULL, |
||
628 | 'content' => NULL, |
||
629 | 'sidebar_first' => NULL, |
||
630 | ), |
||
631 | ); |
||
632 | $display->cache = array(); |
||
633 | $display->title = ''; |
||
634 | $display->storage_type = 'page_manager'; |
||
635 | $display->storage_id = 'page_home_panel_context'; |
||
636 | $display->content = array(); |
||
637 | $display->panels = array(); |
||
638 | $pane = new stdClass; |
||
639 | $pane->pid = 'new-1'; |
||
640 | $pane->panel = 'content'; |
||
641 | $pane->type = 'custom'; |
||
642 | $pane->subtype = 'custom'; |
||
643 | $pane->shown = TRUE; |
||
644 | $pane->access = array( |
||
645 | 'plugins' => array(), |
||
646 | ); |
||
647 | $pane->configuration = array( |
||
648 | 'admin_title' => 'BOINC overview', |
||
649 | 'title' => '', |
||
650 | 'body' => '<?php print boincuser_home_page(); ?>', |
||
651 | 'format' => '3', |
||
652 | 'substitute' => TRUE, |
||
653 | ); |
||
654 | $pane->cache = array(); |
||
655 | $pane->style = array( |
||
656 | 'settings' => NULL, |
||
657 | ); |
||
658 | $pane->css = array( |
||
659 | 'css_id' => '', |
||
660 | 'css_class' => 'panel-primary container shadow', |
||
661 | ); |
||
662 | $pane->extras = array(); |
||
663 | $pane->position = 0; |
||
664 | $display->content['new-1'] = $pane; |
||
665 | $display->panels['content'][0] = 'new-1'; |
||
666 | $pane = new stdClass; |
||
667 | $pane->pid = 'new-2'; |
||
668 | $pane->panel = 'sidebar_first'; |
||
669 | $pane->type = 'panels_mini'; |
||
670 | $pane->subtype = 'project_stats_overview'; |
||
671 | $pane->shown = TRUE; |
||
672 | $pane->access = array(); |
||
673 | $pane->configuration = array( |
||
674 | 'override_title' => 0, |
||
675 | 'override_title_text' => '', |
||
676 | ); |
||
677 | $pane->cache = array(); |
||
678 | $pane->style = array( |
||
679 | 'settings' => NULL, |
||
680 | ); |
||
681 | $pane->css = array( |
||
682 | 'css_id' => '', |
||
683 | 'css_class' => 'panel-secondary container shadow balance-height-front no-resize', |
||
684 | ); |
||
685 | $pane->extras = array(); |
||
686 | $pane->position = 0; |
||
687 | $display->content['new-2'] = $pane; |
||
688 | $display->panels['sidebar_first'][0] = 'new-2'; |
||
689 | $pane = new stdClass; |
||
690 | $pane->pid = 'new-3'; |
||
691 | $pane->panel = 'sidebar_first'; |
||
692 | $pane->type = 'views'; |
||
693 | $pane->subtype = 'news'; |
||
694 | $pane->shown = TRUE; |
||
695 | $pane->access = array(); |
||
696 | $pane->configuration = array( |
||
697 | 'override_pager_settings' => 1, |
||
698 | 'use_pager' => 0, |
||
699 | 'nodes_per_page' => '2', |
||
700 | 'pager_id' => '', |
||
701 | 'offset' => '0', |
||
702 | 'more_link' => 1, |
||
703 | 'feed_icons' => 1, |
||
704 | 'panel_args' => 0, |
||
705 | 'link_to_view' => 0, |
||
706 | 'args' => '', |
||
707 | 'url' => '', |
||
708 | 'display' => 'page_2', |
||
709 | 'override_title' => 1, |
||
710 | 'override_title_text' => '', |
||
711 | ); |
||
712 | $pane->cache = array(); |
||
713 | $pane->style = array( |
||
714 | 'settings' => NULL, |
||
715 | ); |
||
716 | $pane->css = array( |
||
717 | 'css_id' => '', |
||
718 | 'css_class' => 'panel-secondary container shadow balance-height-front', |
||
719 | ); |
||
720 | $pane->extras = array(); |
||
721 | $pane->position = 1; |
||
722 | $display->content['new-3'] = $pane; |
||
723 | $display->panels['sidebar_first'][1] = 'new-3'; |
||
724 | $display->hide_title = PANELS_TITLE_NONE; |
||
725 | $display->title_pane = '0'; |
||
726 | $handler->conf['display'] = $display; |
||
727 | $page->default_handlers[$handler->name] = $handler; |
||
728 | $pages['home'] = $page; |
||
729 | |||
730 | return $pages; |
||
731 | |||
732 | } |
||
733 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths