Issues (1834)

features/team_forums/team_forums.pages_default.inc (1 issue)

Labels
Severity
1
<?php
2
3
/**
4
 * Implementation of hook_default_page_manager_pages().
5
 */
6
function team_forums_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 = 'team_forums';
11
  $page->task = 'page';
12
  $page->admin_title = 'Team forums';
13
  $page->admin_description = '';
14
  $page->path = 'community/teams/%team_id/forum/!option_1/!option_2';
15
  $page->access = array(
16
    'plugins' => array(
17
      2 => array(
18
        'name' => 'role',
19
        'settings' => array(
20
          'rids' => array(
21
            0 => 2,
22
          ),
23
        ),
24
        'context' => 'logged-in-user',
25
        'not' => FALSE,
26
      ),
27
    ),
28
    'logic' => 'and',
29
    'type' => 'none',
30
    'settings' => NULL,
31
  );
32
  $page->menu = array(
33
    'type' => 'none',
34
    'title' => 'Teams',
35
    'name' => 'navigation',
36
    'weight' => '10',
37
    'parent' => array(
38
      'type' => 'none',
39
      'title' => '',
40
      'name' => 'navigation',
41
      'weight' => '0',
42
    ),
43
  );
44
  $page->arguments = array(
45
    'team_id' => array(
46
      'id' => 1,
47
      'identifier' => 'Node: ID',
48
      'name' => 'nid',
49
      'settings' => array(),
50
    ),
51
    'option_1' => array(
52
      'id' => 1,
53
      'identifier' => 'String',
54
      'name' => 'string',
55
      'settings' => array(
56
        'use_tail' => 0,
57
      ),
58
    ),
59
    'option_2' => array(
60
      'id' => 2,
61
      'identifier' => 'String 2',
62
      'name' => 'string',
63
      'settings' => array(
64
        'use_tail' => 0,
65
      ),
66
    ),
67
  );
68
  $page->conf = array();
69
  $page->default_handlers = array();
70
  $handler = new stdClass;
71
  $handler->disabled = FALSE; /* Edit this to true to make a default handler disabled initially */
72
  $handler->api_version = 1;
73
  $handler->name = 'page_team_forums_panel_context_2';
74
  $handler->task = 'page';
75
  $handler->subtask = 'team_forums';
76
  $handler->handler = 'panel_context';
77
  $handler->weight = -30;
78
  $handler->conf = array(
79
    'title' => 'Add team forum',
80
    'no_blocks' => 0,
81
    'pipeline' => 'standard',
82
    'css_id' => '',
83
    'css' => '',
84
    'contexts' => array(),
85
    'relationships' => array(),
86
    'access' => array(
87
      'plugins' => array(
88
        0 => array(
89
          'name' => 'path_visibility',
90
          'settings' => array(
91
            'visibility_setting' => '1',
92
            'paths' => 'community/teams/*/forum/add',
93
          ),
94
          'context' => 'empty',
95
          'not' => FALSE,
96
        ),
97
        1 => array(
98
          'name' => 'role',
99
          'settings' => array(
100
            'rids' => array(
101
              0 => 2,
102
            ),
103
          ),
104
          'context' => 'logged-in-user',
105
          'not' => FALSE,
106
        ),
107
        2 => array(
108
          'name' => 'php',
109
          'settings' => array(
110
            'description' => 'User is team founder',
111
            'php' => '$team_id = $contexts[\'argument_nid_1\']->data->nid;
112
return boincteam_is_founder($team_id);',
113
          ),
114
          'not' => FALSE,
115
        ),
116
      ),
117
      'logic' => 'and',
118
    ),
119
  );
120
  $display = new panels_display;
0 ignored issues
show
The type panels_display was not found. Maybe you did not declare it correctly or list all dependencies?

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:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
121
  $display->layout = 'twocol_stacked';
122
  $display->layout_settings = array(
123
    'items' => array(
124
      'canvas' => array(
125
        'type' => 'row',
126
        'contains' => 'column',
127
        'children' => array(
128
          0 => 'main',
129
          1 => 2,
130
        ),
131
        'parent' => NULL,
132
      ),
133
      'main' => array(
134
        'type' => 'column',
135
        'width' => 50,
136
        'width_type' => '%',
137
        'children' => array(
138
          0 => 'main-row',
139
          1 => 1,
140
        ),
141
        'parent' => 'canvas',
142
      ),
143
      'main-row' => array(
144
        'type' => 'row',
145
        'contains' => 'region',
146
        'children' => array(
147
          0 => 'center',
148
        ),
149
        'parent' => 'main',
150
      ),
151
      'center' => array(
152
        'type' => 'region',
153
        'title' => 'Center',
154
        'width' => 100,
155
        'width_type' => '%',
156
        'parent' => 'main-row',
157
      ),
158
      1 => array(
159
        'type' => 'row',
160
        'contains' => 'region',
161
        'children' => array(
162
          0 => 'top_teams',
163
        ),
164
        'parent' => 'main',
165
        'class' => 'panel-primary container shadow',
166
      ),
167
      'top_teams' => array(
168
        'type' => 'region',
169
        'title' => 'Top teams',
170
        'width' => 100,
171
        'width_type' => '%',
172
        'parent' => '1',
173
        'class' => 'panel-primary container shadow',
174
      ),
175
      2 => array(
176
        'type' => 'column',
177
        'width' => 50,
178
        'width_type' => '%',
179
        'parent' => 'canvas',
180
        'children' => array(),
181
        'class' => '',
182
      ),
183
    ),
184
  );
185
  $display->panel_settings = array(
186
    'style_settings' => array(
187
      'default' => NULL,
188
      'center' => NULL,
189
      'top_teams' => NULL,
190
      'top' => NULL,
191
      'left' => NULL,
192
      'right' => NULL,
193
      'bottom' => NULL,
194
      'content' => NULL,
195
      'sidebar_first' => NULL,
196
    ),
197
  );
198
  $display->cache = array();
199
  $display->title = 'Teams';
200
  $display->storage_type = 'page_manager';
201
  $display->storage_id = 'page_team_forums_panel_context_2';
202
  $display->content = array();
203
  $display->panels = array();
204
    $pane = new stdClass;
205
    $pane->pid = 'new-1';
206
    $pane->panel = 'left';
207
    $pane->type = 'custom';
208
    $pane->subtype = 'custom';
209
    $pane->shown = TRUE;
210
    $pane->access = array();
211
    $pane->configuration = array(
212
      'admin_title' => 'Create team forum form',
213
      'title' => '',
214
      'body' => '<?php echo boincteam_forum_create_form_panel(); ?>',
215
      'format' => '3',
216
      'substitute' => 1,
217
    );
218
    $pane->cache = array();
219
    $pane->style = array(
220
      'settings' => NULL,
221
    );
222
    $pane->css = array(
223
      'css_id' => '',
224
      'css_class' => 'panel-primary container shadow',
225
    );
226
    $pane->extras = array();
227
    $pane->position = 0;
228
    $display->content['new-1'] = $pane;
229
    $display->panels['left'][0] = 'new-1';
230
    $pane = new stdClass;
231
    $pane->pid = 'new-2';
232
    $pane->panel = 'right';
233
    $pane->type = 'custom';
234
    $pane->subtype = 'custom';
235
    $pane->shown = TRUE;
236
    $pane->access = array();
237
    $pane->configuration = array(
238
      'admin_title' => 'About team forums',
239
      'title' => '',
240
      'body' => '<?php echo boincteam_forum_topic_overview_panel(%team_id:nid); ?>',
241
      'format' => '3',
242
      'substitute' => 1,
243
    );
244
    $pane->cache = array();
245
    $pane->style = array(
246
      'settings' => NULL,
247
    );
248
    $pane->css = array(
249
      'css_id' => '',
250
      'css_class' => 'panel-secondary container shadow',
251
    );
252
    $pane->extras = array();
253
    $pane->position = 0;
254
    $display->content['new-2'] = $pane;
255
    $display->panels['right'][0] = 'new-2';
256
  $display->hide_title = PANELS_TITLE_FIXED;
257
  $display->title_pane = 'new-1';
258
  $handler->conf['display'] = $display;
259
  $page->default_handlers[$handler->name] = $handler;
260
  $handler = new stdClass;
261
  $handler->disabled = FALSE; /* Edit this to true to make a default handler disabled initially */
262
  $handler->api_version = 1;
263
  $handler->name = 'page_team_forums_panel_context_3';
264
  $handler->task = 'page';
265
  $handler->subtask = 'team_forums';
266
  $handler->handler = 'panel_context';
267
  $handler->weight = -29;
268
  $handler->conf = array(
269
    'title' => 'Edit team forum',
270
    'no_blocks' => 0,
271
    'pipeline' => 'standard',
272
    'css_id' => '',
273
    'css' => '',
274
    'contexts' => array(),
275
    'relationships' => array(),
276
    'access' => array(
277
      'plugins' => array(
278
        0 => array(
279
          'name' => 'path_visibility',
280
          'settings' => array(
281
            'visibility_setting' => '1',
282
            'paths' => 'community/teams/*/forum/*/edit',
283
          ),
284
          'context' => 'empty',
285
          'not' => FALSE,
286
        ),
287
        1 => array(
288
          'name' => 'role',
289
          'settings' => array(
290
            'rids' => array(
291
              0 => 2,
292
            ),
293
          ),
294
          'context' => 'logged-in-user',
295
          'not' => FALSE,
296
        ),
297
        2 => array(
298
          'name' => 'php',
299
          'settings' => array(
300
            'description' => 'User is team founder',
301
            'php' => '$team_id = $contexts[\'argument_nid_1\']->data->nid;
302
return boincteam_is_founder($team_id);',
303
          ),
304
          'not' => FALSE,
305
        ),
306
      ),
307
      'logic' => 'and',
308
    ),
309
  );
310
  $display = new panels_display;
311
  $display->layout = 'twocol_stacked';
312
  $display->layout_settings = array(
313
    'items' => array(
314
      'canvas' => array(
315
        'type' => 'row',
316
        'contains' => 'column',
317
        'children' => array(
318
          0 => 'main',
319
          1 => 2,
320
        ),
321
        'parent' => NULL,
322
      ),
323
      'main' => array(
324
        'type' => 'column',
325
        'width' => 50,
326
        'width_type' => '%',
327
        'children' => array(
328
          0 => 'main-row',
329
          1 => 1,
330
        ),
331
        'parent' => 'canvas',
332
      ),
333
      'main-row' => array(
334
        'type' => 'row',
335
        'contains' => 'region',
336
        'children' => array(
337
          0 => 'center',
338
        ),
339
        'parent' => 'main',
340
      ),
341
      'center' => array(
342
        'type' => 'region',
343
        'title' => 'Center',
344
        'width' => 100,
345
        'width_type' => '%',
346
        'parent' => 'main-row',
347
      ),
348
      1 => array(
349
        'type' => 'row',
350
        'contains' => 'region',
351
        'children' => array(
352
          0 => 'top_teams',
353
        ),
354
        'parent' => 'main',
355
        'class' => 'panel-primary container shadow',
356
      ),
357
      'top_teams' => array(
358
        'type' => 'region',
359
        'title' => 'Top teams',
360
        'width' => 100,
361
        'width_type' => '%',
362
        'parent' => '1',
363
        'class' => 'panel-primary container shadow',
364
      ),
365
      2 => array(
366
        'type' => 'column',
367
        'width' => 50,
368
        'width_type' => '%',
369
        'parent' => 'canvas',
370
        'children' => array(),
371
        'class' => '',
372
      ),
373
    ),
374
  );
375
  $display->panel_settings = array(
376
    'style_settings' => array(
377
      'default' => NULL,
378
      'center' => NULL,
379
      'top_teams' => NULL,
380
      'top' => NULL,
381
      'left' => NULL,
382
      'right' => NULL,
383
      'bottom' => NULL,
384
      'content' => NULL,
385
      'sidebar_first' => NULL,
386
    ),
387
  );
388
  $display->cache = array();
389
  $display->title = 'Teams';
390
  $display->storage_type = 'page_manager';
391
  $display->storage_id = 'page_team_forums_panel_context_3';
392
  $display->content = array();
393
  $display->panels = array();
394
    $pane = new stdClass;
395
    $pane->pid = 'new-1';
396
    $pane->panel = 'left';
397
    $pane->type = 'custom';
398
    $pane->subtype = 'custom';
399
    $pane->shown = TRUE;
400
    $pane->access = array();
401
    $pane->configuration = array(
402
      'admin_title' => 'Edit team forum form',
403
      'title' => '',
404
      'body' => '<?php echo boincteam_forum_edit_form_panel(%option_1:raw); ?>',
405
      'format' => '3',
406
      'substitute' => 1,
407
    );
408
    $pane->cache = array();
409
    $pane->style = array(
410
      'settings' => NULL,
411
    );
412
    $pane->css = array(
413
      'css_id' => '',
414
      'css_class' => 'panel-primary container shadow',
415
    );
416
    $pane->extras = array();
417
    $pane->position = 0;
418
    $display->content['new-1'] = $pane;
419
    $display->panels['left'][0] = 'new-1';
420
    $pane = new stdClass;
421
    $pane->pid = 'new-2';
422
    $pane->panel = 'right';
423
    $pane->type = 'custom';
424
    $pane->subtype = 'custom';
425
    $pane->shown = TRUE;
426
    $pane->access = array();
427
    $pane->configuration = array(
428
      'admin_title' => 'About team forums',
429
      'title' => '',
430
      'body' => '<?php echo boincteam_forum_topic_overview_panel(); ?>',
431
      'format' => '3',
432
      'substitute' => 1,
433
    );
434
    $pane->cache = array();
435
    $pane->style = array(
436
      'settings' => NULL,
437
    );
438
    $pane->css = array(
439
      'css_id' => '',
440
      'css_class' => 'panel-secondary container shadow',
441
    );
442
    $pane->extras = array();
443
    $pane->position = 0;
444
    $display->content['new-2'] = $pane;
445
    $display->panels['right'][0] = 'new-2';
446
  $display->hide_title = PANELS_TITLE_FIXED;
447
  $display->title_pane = 'new-1';
448
  $handler->conf['display'] = $display;
449
  $page->default_handlers[$handler->name] = $handler;
450
  $handler = new stdClass;
451
  $handler->disabled = FALSE; /* Edit this to true to make a default handler disabled initially */
452
  $handler->api_version = 1;
453
  $handler->name = 'page_team_forums_panel_context';
454
  $handler->task = 'page';
455
  $handler->subtask = 'team_forums';
456
  $handler->handler = 'panel_context';
457
  $handler->weight = -28;
458
  $handler->conf = array(
459
    'title' => 'View team forum',
460
    'no_blocks' => 0,
461
    'pipeline' => 'standard',
462
    'css_id' => '',
463
    'css' => '',
464
    'contexts' => array(),
465
    'relationships' => array(),
466
    'access' => array(
467
      'plugins' => array(
468
        0 => array(
469
          'name' => 'path_visibility',
470
          'settings' => array(
471
            'visibility_setting' => '1',
472
            'paths' => 'community/teams/*/forum/*',
473
          ),
474
          'context' => 'empty',
475
          'not' => FALSE,
476
        ),
477
        1 => array(
478
          'name' => 'role',
479
          'settings' => array(
480
            'rids' => array(
481
              0 => 2,
482
            ),
483
          ),
484
          'context' => 'logged-in-user',
485
          'not' => FALSE,
486
        ),
487
        2 => array(
488
          'name' => 'php',
489
          'settings' => array(
490
            'description' => 'A member of this team, the forum is public, or has global team moderation',
491
            'php' => '$team_id = $contexts[\'argument_nid_1\']->data->nid;
492
$team_forum_id = $contexts[\'argument_string_1\']->data;
493
if ($team_id == boincteam_forum_lookup_nid($team_forum_id)) {
494
  return (
495
    boincteam_is_member($team_id) OR
496
    boincteam_forum_is_public($team_forum_id) OR
497
    boincteam_forum_is_global_moderator()
498
  );
499
}
500
return FALSE;',
501
          ),
502
          'not' => FALSE,
503
        ),
504
      ),
505
      'logic' => 'and',
506
    ),
507
  );
508
  $display = new panels_display;
509
  $display->layout = 'onecol';
510
  $display->layout_settings = array(
511
    'items' => array(
512
      'canvas' => array(
513
        'type' => 'row',
514
        'contains' => 'column',
515
        'children' => array(
516
          0 => 'main',
517
          1 => 2,
518
        ),
519
        'parent' => NULL,
520
      ),
521
      'main' => array(
522
        'type' => 'column',
523
        'width' => 50,
524
        'width_type' => '%',
525
        'children' => array(
526
          0 => 'main-row',
527
          1 => 1,
528
        ),
529
        'parent' => 'canvas',
530
      ),
531
      'main-row' => array(
532
        'type' => 'row',
533
        'contains' => 'region',
534
        'children' => array(
535
          0 => 'center',
536
        ),
537
        'parent' => 'main',
538
      ),
539
      'center' => array(
540
        'type' => 'region',
541
        'title' => 'Center',
542
        'width' => 100,
543
        'width_type' => '%',
544
        'parent' => 'main-row',
545
      ),
546
      1 => array(
547
        'type' => 'row',
548
        'contains' => 'region',
549
        'children' => array(
550
          0 => 'top_teams',
551
        ),
552
        'parent' => 'main',
553
        'class' => 'panel-primary container shadow',
554
      ),
555
      'top_teams' => array(
556
        'type' => 'region',
557
        'title' => 'Top teams',
558
        'width' => 100,
559
        'width_type' => '%',
560
        'parent' => '1',
561
        'class' => 'panel-primary container shadow',
562
      ),
563
      2 => array(
564
        'type' => 'column',
565
        'width' => 50,
566
        'width_type' => '%',
567
        'parent' => 'canvas',
568
        'children' => array(),
569
        'class' => '',
570
      ),
571
    ),
572
  );
573
  $display->panel_settings = array(
574
    'style_settings' => array(
575
      'default' => NULL,
576
      'center' => NULL,
577
      'top_teams' => NULL,
578
      'top' => NULL,
579
      'left' => NULL,
580
      'right' => NULL,
581
      'bottom' => NULL,
582
      'content' => NULL,
583
      'sidebar_first' => NULL,
584
      'middle' => NULL,
585
    ),
586
  );
587
  $display->cache = array();
588
  $display->title = 'Team Forums';
589
  $display->storage_type = 'page_manager';
590
  $display->storage_id = 'page_team_forums_panel_context';
591
  $display->content = array();
592
  $display->panels = array();
593
    $pane = new stdClass;
594
    $pane->pid = 'new-1';
595
    $pane->panel = 'middle';
596
    $pane->type = 'views_panes';
597
    $pane->subtype = 'boinc_team_forum_topics-panel_pane_1';
598
    $pane->shown = TRUE;
599
    $pane->access = array();
600
    $pane->configuration = array(
601
      'override_title' => 0,
602
      'override_title_text' => '',
603
    );
604
    $pane->cache = array();
605
    $pane->style = array(
606
      'settings' => NULL,
607
    );
608
    $pane->css = array(
609
      'css_id' => '',
610
      'css_class' => 'section framing container shadow',
611
    );
612
    $pane->extras = array();
613
    $pane->position = 0;
614
    $display->content['new-1'] = $pane;
615
    $display->panels['middle'][0] = 'new-1';
616
  $display->hide_title = PANELS_TITLE_FIXED;
617
  $display->title_pane = '0';
618
  $handler->conf['display'] = $display;
619
  $page->default_handlers[$handler->name] = $handler;
620
  $pages['team_forums'] = $page;
621
622
 return $pages;
623
624
}
625