Issues (1834)

sites/all/features/teams/teams.pages_default.inc (1 issue)

Labels
Severity
1
<?php
2
3
/**
4
 * Implementation of hook_default_page_manager_pages().
5
 */
6
function teams_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 = 'create_team';
11
  $page->task = 'page';
12
  $page->admin_title = 'Create team form';
13
  $page->admin_description = '';
14
  $page->path = 'community/teams/add';
15
  $page->access = array(
16
    'plugins' => array(
17
      0 => array(
18
        'name' => 'perm',
19
        'settings' => array(
20
          'perm' => 'create boincteam',
21
        ),
22
        'context' => 'logged-in-user',
23
        'not' => FALSE,
24
      ),
25
    ),
26
    'logic' => 'and',
27
    'type' => 'none',
28
    'settings' => NULL,
29
  );
30
  $page->menu = array(
31
    'type' => 'none',
32
    'title' => 'Teams',
33
    'name' => 'navigation',
34
    'weight' => '10',
35
    'parent' => array(
36
      'type' => 'none',
37
      'title' => '',
38
      'name' => 'navigation',
39
      'weight' => '0',
40
    ),
41
  );
42
  $page->arguments = array();
43
  $page->conf = array();
44
  $page->default_handlers = array();
45
  $handler = new stdClass;
46
  $handler->disabled = FALSE; /* Edit this to true to make a default handler disabled initially */
47
  $handler->api_version = 1;
48
  $handler->name = 'page_create_team_panel_context';
49
  $handler->task = 'page';
50
  $handler->subtask = 'create_team';
51
  $handler->handler = 'panel_context';
52
  $handler->weight = 0;
53
  $handler->conf = array(
54
    'title' => 'Panel',
55
    'no_blocks' => 0,
56
    'pipeline' => 'standard',
57
    'css_id' => '',
58
    'css' => '',
59
    'contexts' => array(),
60
    'relationships' => array(),
61
  );
62
  $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...
63
  $display->layout = 'twocol_stacked';
64
  $display->layout_settings = array(
65
    'items' => array(
66
      'canvas' => array(
67
        'type' => 'row',
68
        'contains' => 'column',
69
        'children' => array(
70
          0 => 'main',
71
          1 => 2,
72
        ),
73
        'parent' => NULL,
74
      ),
75
      'main' => array(
76
        'type' => 'column',
77
        'width' => 50,
78
        'width_type' => '%',
79
        'children' => array(
80
          0 => 'main-row',
81
          1 => 1,
82
        ),
83
        'parent' => 'canvas',
84
      ),
85
      'main-row' => array(
86
        'type' => 'row',
87
        'contains' => 'region',
88
        'children' => array(
89
          0 => 'center',
90
        ),
91
        'parent' => 'main',
92
      ),
93
      'center' => array(
94
        'type' => 'region',
95
        'title' => 'Center',
96
        'width' => 100,
97
        'width_type' => '%',
98
        'parent' => 'main-row',
99
      ),
100
      1 => array(
101
        'type' => 'row',
102
        'contains' => 'region',
103
        'children' => array(
104
          0 => 'top_teams',
105
        ),
106
        'parent' => 'main',
107
        'class' => 'panel-primary container shadow',
108
      ),
109
      'top_teams' => array(
110
        'type' => 'region',
111
        'title' => 'Top teams',
112
        'width' => 100,
113
        'width_type' => '%',
114
        'parent' => '1',
115
        'class' => 'panel-primary container shadow',
116
      ),
117
      2 => array(
118
        'type' => 'column',
119
        'width' => 50,
120
        'width_type' => '%',
121
        'parent' => 'canvas',
122
        'children' => array(),
123
        'class' => '',
124
      ),
125
    ),
126
  );
127
  $display->panel_settings = array(
128
    'style_settings' => array(
129
      'default' => NULL,
130
      'center' => NULL,
131
      'top_teams' => NULL,
132
      'top' => NULL,
133
      'left' => NULL,
134
      'right' => NULL,
135
      'bottom' => NULL,
136
      'content' => NULL,
137
      'sidebar_first' => NULL,
138
    ),
139
  );
140
  $display->cache = array();
141
  $display->title = 'Teams';
142
  $display->storage_type = 'page_manager';
143
  $display->storage_id = 'page_create_team_panel_context';
144
  $display->content = array();
145
  $display->panels = array();
146
    $pane = new stdClass;
147
    $pane->pid = 'new-1';
148
    $pane->panel = 'left';
149
    $pane->type = 'custom';
150
    $pane->subtype = 'custom';
151
    $pane->shown = TRUE;
152
    $pane->access = array();
153
    $pane->configuration = array(
154
      'admin_title' => 'Create team form',
155
      'title' => '',
156
      'body' => '<?php echo boincteam_create_team_panel(); ?>',
157
      'format' => '3',
158
      'substitute' => TRUE,
159
    );
160
    $pane->cache = array();
161
    $pane->style = array(
162
      'settings' => NULL,
163
    );
164
    $pane->css = array(
165
      'css_id' => '',
166
      'css_class' => 'panel-primary container shadow',
167
    );
168
    $pane->extras = array();
169
    $pane->position = 0;
170
    $display->content['new-1'] = $pane;
171
    $display->panels['left'][0] = 'new-1';
172
    $pane = new stdClass;
173
    $pane->pid = 'new-2';
174
    $pane->panel = 'right';
175
    $pane->type = 'custom';
176
    $pane->subtype = 'custom';
177
    $pane->shown = TRUE;
178
    $pane->access = array();
179
    $pane->configuration = array(
180
      'admin_title' => 'Search teams',
181
      'title' => '',
182
      'body' => '<?php echo boincteam_search_panel(); ?>',
183
      'format' => '3',
184
      'substitute' => TRUE,
185
    );
186
    $pane->cache = array();
187
    $pane->style = array(
188
      'settings' => NULL,
189
    );
190
    $pane->css = array(
191
      'css_id' => '',
192
      'css_class' => 'panel-secondary container shadow',
193
    );
194
    $pane->extras = array();
195
    $pane->position = 0;
196
    $display->content['new-2'] = $pane;
197
    $display->panels['right'][0] = 'new-2';
198
  $display->hide_title = PANELS_TITLE_FIXED;
199
  $display->title_pane = 'new-1';
200
  $handler->conf['display'] = $display;
201
  $page->default_handlers[$handler->name] = $handler;
202
  $pages['create_team'] = $page;
203
204
  $page = new stdClass;
205
  $page->disabled = FALSE; /* Edit this to true to make a default page disabled initially */
206
  $page->api_version = 1;
207
  $page->name = 'teams_landing';
208
  $page->task = 'page';
209
  $page->admin_title = 'Teams';
210
  $page->admin_description = '';
211
  $page->path = 'community/teams';
212
  $page->access = array(
213
    'type' => 'none',
214
    'settings' => NULL,
215
  );
216
  $page->menu = array(
217
    'type' => 'normal',
218
    'title' => 'Teams',
219
    'name' => 'primary-links',
220
    'weight' => '10',
221
    'parent' => array(
222
      'type' => 'none',
223
      'title' => '',
224
      'name' => 'navigation',
225
      'weight' => '0',
226
    ),
227
  );
228
  $page->arguments = array();
229
  $page->conf = array();
230
  $page->default_handlers = array();
231
  $handler = new stdClass;
232
  $handler->disabled = FALSE; /* Edit this to true to make a default handler disabled initially */
233
  $handler->api_version = 1;
234
  $handler->name = 'page_teams_landing_panel_context';
235
  $handler->task = 'page';
236
  $handler->subtask = 'teams_landing';
237
  $handler->handler = 'panel_context';
238
  $handler->weight = 0;
239
  $handler->conf = array(
240
    'title' => 'Panel',
241
    'no_blocks' => 0,
242
    'pipeline' => 'standard',
243
    'css_id' => '',
244
    'css' => '',
245
    'contexts' => array(
246
      0 => array(
247
        'name' => 'user',
248
        'id' => 1,
249
        'identifier' => 'User',
250
        'keyword' => 'user',
251
        'context_settings' => array(
252
          'type' => 'current',
253
          'user' => '',
254
          'uid' => '',
255
        ),
256
      ),
257
    ),
258
    'relationships' => array(),
259
  );
260
  $display = new panels_display;
261
  $display->layout = 'twocol_stacked';
262
  $display->layout_settings = array(
263
    'items' => array(
264
      'canvas' => array(
265
        'type' => 'row',
266
        'contains' => 'column',
267
        'children' => array(
268
          0 => 'main',
269
          1 => 2,
270
        ),
271
        'parent' => NULL,
272
      ),
273
      'main' => array(
274
        'type' => 'column',
275
        'width' => 50,
276
        'width_type' => '%',
277
        'children' => array(
278
          0 => 'main-row',
279
          1 => 1,
280
        ),
281
        'parent' => 'canvas',
282
      ),
283
      'main-row' => array(
284
        'type' => 'row',
285
        'contains' => 'region',
286
        'children' => array(
287
          0 => 'center',
288
        ),
289
        'parent' => 'main',
290
      ),
291
      'center' => array(
292
        'type' => 'region',
293
        'title' => 'Center',
294
        'width' => 100,
295
        'width_type' => '%',
296
        'parent' => 'main-row',
297
      ),
298
      1 => array(
299
        'type' => 'row',
300
        'contains' => 'region',
301
        'children' => array(
302
          0 => 'top_teams',
303
        ),
304
        'parent' => 'main',
305
        'class' => 'panel-primary container shadow',
306
      ),
307
      'top_teams' => array(
308
        'type' => 'region',
309
        'title' => 'Top teams',
310
        'width' => 100,
311
        'width_type' => '%',
312
        'parent' => '1',
313
        'class' => 'panel-primary container shadow',
314
      ),
315
      2 => array(
316
        'type' => 'column',
317
        'width' => 50,
318
        'width_type' => '%',
319
        'parent' => 'canvas',
320
        'children' => array(),
321
        'class' => '',
322
      ),
323
    ),
324
  );
325
  $display->panel_settings = array(
326
    'style_settings' => array(
327
      'default' => NULL,
328
      'center' => NULL,
329
      'top_teams' => NULL,
330
      'top' => NULL,
331
      'left' => NULL,
332
      'right' => NULL,
333
      'bottom' => NULL,
334
      'content' => NULL,
335
      'sidebar_first' => NULL,
336
    ),
337
  );
338
  $display->cache = array();
339
  $display->title = 'Teams';
340
  $display->storage_type = 'page_manager';
341
  $display->storage_id = 'page_teams_landing_panel_context';
342
  $display->content = array();
343
  $display->panels = array();
344
    $pane = new stdClass;
345
    $pane->pid = 'new-1';
346
    $pane->panel = 'bottom';
347
    $pane->type = 'views_panes';
348
    $pane->subtype = 'boinc_teams-panel_pane_1';
349
    $pane->shown = TRUE;
350
    $pane->access = array();
351
    $pane->configuration = array(
352
      'link_to_view' => 0,
353
      'more_link' => 1,
354
      'use_pager' => 0,
355
      'pager_id' => '',
356
      'items_per_page' => '10',
357
      'override_title' => 1,
358
      'override_title_text' => 'Top teams',
359
    );
360
    $pane->cache = array();
361
    $pane->style = array(
362
      'settings' => NULL,
363
    );
364
    $pane->css = array(
365
      'css_id' => '',
366
      'css_class' => 'panel-primary container shadow',
367
    );
368
    $pane->extras = array();
369
    $pane->position = 0;
370
    $display->content['new-1'] = $pane;
371
    $display->panels['bottom'][0] = 'new-1';
372
    $pane = new stdClass;
373
    $pane->pid = 'new-2';
374
    $pane->panel = 'left';
375
    $pane->type = 'custom';
376
    $pane->subtype = 'custom';
377
    $pane->shown = TRUE;
378
    $pane->access = array();
379
    $pane->configuration = array(
380
      'admin_title' => 'General info on teams',
381
      'title' => '',
382
      'body' => '<?php echo boincteam_topic_overview_panel(); ?>',
383
      'format' => '3',
384
      'substitute' => TRUE,
385
    );
386
    $pane->cache = array();
387
    $pane->style = array(
388
      'settings' => NULL,
389
    );
390
    $pane->css = array(
391
      'css_id' => '',
392
      'css_class' => 'panel-primary container shadow balance-height',
393
    );
394
    $pane->extras = array();
395
    $pane->position = 0;
396
    $display->content['new-2'] = $pane;
397
    $display->panels['left'][0] = 'new-2';
398
    $pane = new stdClass;
399
    $pane->pid = 'new-3';
400
    $pane->panel = 'right';
401
    $pane->type = 'custom';
402
    $pane->subtype = 'custom';
403
    $pane->shown = TRUE;
404
    $pane->access = array(
405
      'plugins' => array(
406
        0 => array(
407
          'name' => 'php',
408
          'settings' => array(
409
            'description' => 'Already a team member',
410
            'php' => '$account = user_load($contexts[\'logged-in-user\']->data->uid);
411
return ($account->team > 0);',
412
          ),
413
          'not' => FALSE,
414
        ),
415
      ),
416
    );
417
    $pane->configuration = array(
418
      'admin_title' => 'Team member widget',
419
      'title' => '',
420
      'body' => '<?php echo boincteam_member_link_panel(); ?>',
421
      'format' => '3',
422
      'substitute' => 0,
423
    );
424
    $pane->cache = array();
425
    $pane->style = array(
426
      'settings' => NULL,
427
    );
428
    $pane->css = array(
429
      'css_id' => '',
430
      'css_class' => 'panel-secondary container shadow balance-height no-resize',
431
    );
432
    $pane->extras = array();
433
    $pane->position = 0;
434
    $display->content['new-3'] = $pane;
435
    $display->panels['right'][0] = 'new-3';
436
    $pane = new stdClass;
437
    $pane->pid = 'new-4';
438
    $pane->panel = 'right';
439
    $pane->type = 'custom';
440
    $pane->subtype = 'custom';
441
    $pane->shown = TRUE;
442
    $pane->access = array();
443
    $pane->configuration = array(
444
      'admin_title' => 'Search teams',
445
      'title' => '',
446
      'body' => '<?php echo boincteam_search_panel(); ?>',
447
      'format' => '3',
448
      'substitute' => TRUE,
449
    );
450
    $pane->cache = array();
451
    $pane->style = array(
452
      'settings' => NULL,
453
    );
454
    $pane->css = array(
455
      'css_id' => '',
456
      'css_class' => 'panel-secondary container shadow balance-height',
457
    );
458
    $pane->extras = array();
459
    $pane->position = 1;
460
    $display->content['new-4'] = $pane;
461
    $display->panels['right'][1] = 'new-4';
462
    $pane = new stdClass;
463
    $pane->pid = 'new-5';
464
    $pane->panel = 'right';
465
    $pane->type = 'custom';
466
    $pane->subtype = 'custom';
467
    $pane->shown = TRUE;
468
    $pane->access = array(
469
      'plugins' => array(
470
        0 => array(
471
          'name' => 'php',
472
          'settings' => array(
473
            'description' => 'Not in another team',
474
            'php' => '$account = user_load($contexts[\'logged-in-user\']->data->uid);
475
return ($account->team == 0);',
476
          ),
477
          'not' => FALSE,
478
        ),
479
      ),
480
    );
481
    $pane->configuration = array(
482
      'admin_title' => 'Create team widget',
483
      'title' => '',
484
      'body' => '<?php echo boincteam_create_team_link_panel(); ?>',
485
      'format' => '3',
486
      'substitute' => TRUE,
487
    );
488
    $pane->cache = array();
489
    $pane->style = array(
490
      'settings' => NULL,
491
    );
492
    $pane->css = array(
493
      'css_id' => '',
494
      'css_class' => 'panel-secondary container shadow balance-height no-resize',
495
    );
496
    $pane->extras = array();
497
    $pane->position = 2;
498
    $display->content['new-5'] = $pane;
499
    $display->panels['right'][2] = 'new-5';
500
  $display->hide_title = PANELS_TITLE_FIXED;
501
  $display->title_pane = 'new-2';
502
  $handler->conf['display'] = $display;
503
  $page->default_handlers[$handler->name] = $handler;
504
  $pages['teams_landing'] = $page;
505
506
  $page = new stdClass;
507
  $page->disabled = FALSE; /* Edit this to true to make a default page disabled initially */
508
  $page->api_version = 1;
509
  $page->name = 'view_team';
510
  $page->task = 'page';
511
  $page->admin_title = 'View team';
512
  $page->admin_description = '';
513
  $page->path = 'community/teams/%team_id/!section/!option';
514
  $page->access = array(
515
    'type' => 'none',
516
    'settings' => NULL,
517
  );
518
  $page->menu = array(
519
    'type' => 'none',
520
    'title' => 'Teams',
521
    'name' => 'navigation',
522
    'weight' => '10',
523
    'parent' => array(
524
      'type' => 'none',
525
      'title' => '',
526
      'name' => 'navigation',
527
      'weight' => '0',
528
    ),
529
  );
530
  $page->arguments = array(
531
    'team_id' => array(
532
      'id' => 1,
533
      'identifier' => 'Node: ID',
534
      'name' => 'nid',
535
      'settings' => array(),
536
    ),
537
    'section' => array(
538
      'id' => 1,
539
      'identifier' => 'Section',
540
      'name' => 'string',
541
      'settings' => array(
542
        'use_tail' => 0,
543
      ),
544
    ),
545
    'option' => array(
546
      'id' => 2,
547
      'identifier' => 'Option',
548
      'name' => 'string',
549
      'settings' => array(
550
        'use_tail' => 0,
551
      ),
552
    ),
553
  );
554
  $page->conf = array();
555
  $page->default_handlers = array();
556
  $handler = new stdClass;
557
  $handler->disabled = FALSE; /* Edit this to true to make a default handler disabled initially */
558
  $handler->api_version = 1;
559
  $handler->name = 'page_view_team_panel_context_2';
560
  $handler->task = 'page';
561
  $handler->subtask = 'view_team';
562
  $handler->handler = 'panel_context';
563
  $handler->weight = -30;
564
  $handler->conf = array(
565
    'title' => 'Edit team',
566
    'no_blocks' => 0,
567
    'pipeline' => 'standard',
568
    'css_id' => '',
569
    'css' => '',
570
    'contexts' => array(),
571
    'relationships' => array(),
572
    'access' => array(
573
      'plugins' => array(
574
        0 => array(
575
          'name' => 'path_visibility',
576
          'settings' => array(
577
            'visibility_setting' => '1',
578
            'paths' => 'community/teams/*/edit/info',
579
          ),
580
          'context' => 'empty',
581
          'not' => FALSE,
582
        ),
583
        3 => array(
584
          'name' => 'role',
585
          'settings' => array(
586
            'rids' => array(
587
              0 => 2,
588
            ),
589
          ),
590
          'context' => 'logged-in-user',
591
          'not' => FALSE,
592
        ),
593
        4 => array(
594
          'name' => 'php',
595
          'settings' => array(
596
            'description' => 'An admin of this team',
597
            'php' => '$team_id = $contexts[\'argument_nid_1\']->data->nid;
598
return (boincteam_is_founder($team_id) OR boincteam_is_admin($team_id));',
599
          ),
600
          'not' => FALSE,
601
        ),
602
      ),
603
      'logic' => 'and',
604
    ),
605
  );
606
  $display = new panels_display;
607
  $display->layout = 'twocol_stacked';
608
  $display->layout_settings = array();
609
  $display->panel_settings = array(
610
    'style_settings' => array(
611
      'default' => NULL,
612
      'left' => NULL,
613
      'right' => NULL,
614
      'top' => NULL,
615
      'bottom' => NULL,
616
    ),
617
  );
618
  $display->cache = array();
619
  $display->title = 'Teams';
620
  $display->storage_type = 'page_manager';
621
  $display->storage_id = 'page_view_team_panel_context_2';
622
  $display->content = array();
623
  $display->panels = array();
624
    $pane = new stdClass;
625
    $pane->pid = 'new-1';
626
    $pane->panel = 'left';
627
    $pane->type = 'custom';
628
    $pane->subtype = 'custom';
629
    $pane->shown = TRUE;
630
    $pane->access = array();
631
    $pane->configuration = array(
632
      'admin_title' => 'Edit team form',
633
      'title' => '',
634
      'body' => '<?php echo boincteam_edit_team_panel(%team_id:nid); ?>',
635
      'format' => '3',
636
      'substitute' => 1,
637
    );
638
    $pane->cache = array();
639
    $pane->style = array(
640
      'settings' => NULL,
641
    );
642
    $pane->css = array(
643
      'css_id' => '',
644
      'css_class' => 'panel-primary container shadow',
645
    );
646
    $pane->extras = array();
647
    $pane->position = 0;
648
    $display->content['new-1'] = $pane;
649
    $display->panels['left'][0] = 'new-1';
650
    $pane = new stdClass;
651
    $pane->pid = 'new-2';
652
    $pane->panel = 'right';
653
    $pane->type = 'custom';
654
    $pane->subtype = 'custom';
655
    $pane->shown = TRUE;
656
    $pane->access = array();
657
    $pane->configuration = array(
658
      'admin_title' => 'Manage team',
659
      'title' => '',
660
      'body' => '<?php echo boincteam_management_panel(%team_id:nid); ?>',
661
      'format' => '3',
662
      'substitute' => 1,
663
    );
664
    $pane->cache = array();
665
    $pane->style = array(
666
      'settings' => NULL,
667
    );
668
    $pane->css = array(
669
      'css_id' => 'team-management',
670
      'css_class' => 'panel-secondary container shadow',
671
    );
672
    $pane->extras = array();
673
    $pane->position = 0;
674
    $display->content['new-2'] = $pane;
675
    $display->panels['right'][0] = 'new-2';
676
  $display->hide_title = PANELS_TITLE_FIXED;
677
  $display->title_pane = '0';
678
  $handler->conf['display'] = $display;
679
  $page->default_handlers[$handler->name] = $handler;
680
  $handler = new stdClass;
681
  $handler->disabled = FALSE; /* Edit this to true to make a default handler disabled initially */
682
  $handler->api_version = 1;
683
  $handler->name = 'page_view_team_panel_context_8';
684
  $handler->task = 'page';
685
  $handler->subtask = 'view_team';
686
  $handler->handler = 'panel_context';
687
  $handler->weight = -29;
688
  $handler->conf = array(
689
    'title' => 'Manage members',
690
    'no_blocks' => 0,
691
    'pipeline' => 'standard',
692
    'css_id' => '',
693
    'css' => '',
694
    'contexts' => array(),
695
    'relationships' => array(),
696
    'access' => array(
697
      'plugins' => array(
698
        0 => array(
699
          'name' => 'path_visibility',
700
          'settings' => array(
701
            'visibility_setting' => '1',
702
            'paths' => 'community/teams/*/edit/members',
703
          ),
704
          'context' => 'empty',
705
          'not' => FALSE,
706
        ),
707
        3 => array(
708
          'name' => 'role',
709
          'settings' => array(
710
            'rids' => array(
711
              0 => 2,
712
            ),
713
          ),
714
          'context' => 'logged-in-user',
715
          'not' => FALSE,
716
        ),
717
        4 => array(
718
          'name' => 'php',
719
          'settings' => array(
720
            'description' => 'An admin of this team',
721
            'php' => '$team_id = $contexts[\'argument_nid_1\']->data->nid;
722
return (boincteam_is_founder($team_id) OR boincteam_is_admin($team_id));',
723
          ),
724
          'not' => FALSE,
725
        ),
726
      ),
727
      'logic' => 'and',
728
    ),
729
  );
730
  $display = new panels_display;
731
  $display->layout = 'onecol';
732
  $display->layout_settings = array();
733
  $display->panel_settings = array(
734
    'style_settings' => array(
735
      'default' => NULL,
736
      'left' => NULL,
737
      'right' => NULL,
738
      'top' => NULL,
739
      'bottom' => NULL,
740
      'middle' => NULL,
741
    ),
742
  );
743
  $display->cache = array();
744
  $display->title = 'Teams';
745
  $display->storage_type = 'page_manager';
746
  $display->storage_id = 'page_view_team_panel_context_8';
747
  $display->content = array();
748
  $display->panels = array();
749
    $pane = new stdClass;
750
    $pane->pid = 'new-1';
751
    $pane->panel = 'middle';
752
    $pane->type = 'views_panes';
753
    $pane->subtype = 'boinc_team_members-panel_pane_5';
754
    $pane->shown = TRUE;
755
    $pane->access = array();
756
    $pane->configuration = array(
757
      'items_per_page' => '25',
758
      'override_title' => 1,
759
      'override_title_text' => 'Remove members',
760
    );
761
    $pane->cache = array();
762
    $pane->style = array(
763
      'settings' => NULL,
764
    );
765
    $pane->css = array(
766
      'css_id' => '',
767
      'css_class' => 'section framing container shadow',
768
    );
769
    $pane->extras = array();
770
    $pane->position = 0;
771
    $display->content['new-1'] = $pane;
772
    $display->panels['middle'][0] = 'new-1';
773
  $display->hide_title = PANELS_TITLE_FIXED;
774
  $display->title_pane = '0';
775
  $handler->conf['display'] = $display;
776
  $page->default_handlers[$handler->name] = $handler;
777
  $handler = new stdClass;
778
  $handler->disabled = FALSE; /* Edit this to true to make a default handler disabled initially */
779
  $handler->api_version = 1;
780
  $handler->name = 'page_view_team_panel_context_4';
781
  $handler->task = 'page';
782
  $handler->subtask = 'view_team';
783
  $handler->handler = 'panel_context';
784
  $handler->weight = -28;
785
  $handler->conf = array(
786
    'title' => 'View emails',
787
    'no_blocks' => 0,
788
    'pipeline' => 'standard',
789
    'css_id' => '',
790
    'css' => '',
791
    'contexts' => array(),
792
    'relationships' => array(),
793
    'access' => array(
794
      'plugins' => array(
795
        0 => array(
796
          'name' => 'path_visibility',
797
          'settings' => array(
798
            'visibility_setting' => '1',
799
            'paths' => 'community/teams/*/members/email',
800
          ),
801
          'context' => 'empty',
802
          'not' => FALSE,
803
        ),
804
        3 => array(
805
          'name' => 'role',
806
          'settings' => array(
807
            'rids' => array(
808
              0 => 2,
809
            ),
810
          ),
811
          'context' => 'logged-in-user',
812
          'not' => FALSE,
813
        ),
814
        4 => array(
815
          'name' => 'php',
816
          'settings' => array(
817
            'description' => 'An admin of this team',
818
            'php' => '$team_id = $contexts[\'argument_nid_1\']->data->nid;
819
return (boincteam_is_founder($team_id) OR boincteam_is_admin($team_id));',
820
          ),
821
          'not' => FALSE,
822
        ),
823
      ),
824
      'logic' => 'and',
825
    ),
826
  );
827
  $display = new panels_display;
828
  $display->layout = 'onecol';
829
  $display->layout_settings = array();
830
  $display->panel_settings = array(
831
    'style_settings' => array(
832
      'default' => NULL,
833
      'left' => NULL,
834
      'right' => NULL,
835
      'top' => NULL,
836
      'bottom' => NULL,
837
      'middle' => NULL,
838
    ),
839
  );
840
  $display->cache = array();
841
  $display->title = 'Teams';
842
  $display->storage_type = 'page_manager';
843
  $display->storage_id = 'page_view_team_panel_context_4';
844
  $display->content = array();
845
  $display->panels = array();
846
    $pane = new stdClass;
847
    $pane->pid = 'new-1';
848
    $pane->panel = 'middle';
849
    $pane->type = 'views_panes';
850
    $pane->subtype = 'boinc_team_members-panel_pane_3';
851
    $pane->shown = TRUE;
852
    $pane->access = array();
853
    $pane->configuration = array(
854
      'items_per_page' => '25',
855
      'override_title' => 1,
856
      'override_title_text' => 'Email list',
857
    );
858
    $pane->cache = array();
859
    $pane->style = array(
860
      'settings' => NULL,
861
    );
862
    $pane->css = array(
863
      'css_id' => '',
864
      'css_class' => 'section framing container shadow',
865
    );
866
    $pane->extras = array();
867
    $pane->position = 0;
868
    $display->content['new-1'] = $pane;
869
    $display->panels['middle'][0] = 'new-1';
870
  $display->hide_title = PANELS_TITLE_FIXED;
871
  $display->title_pane = '0';
872
  $handler->conf['display'] = $display;
873
  $page->default_handlers[$handler->name] = $handler;
874
  $handler = new stdClass;
875
  $handler->disabled = FALSE; /* Edit this to true to make a default handler disabled initially */
876
  $handler->api_version = 1;
877
  $handler->name = 'page_view_team_panel_context_3';
878
  $handler->task = 'page';
879
  $handler->subtask = 'view_team';
880
  $handler->handler = 'panel_context';
881
  $handler->weight = -27;
882
  $handler->conf = array(
883
    'title' => 'View members',
884
    'no_blocks' => 0,
885
    'pipeline' => 'standard',
886
    'css_id' => '',
887
    'css' => '',
888
    'contexts' => array(),
889
    'relationships' => array(),
890
    'access' => array(
891
      'plugins' => array(
892
        0 => array(
893
          'name' => 'path_visibility',
894
          'settings' => array(
895
            'visibility_setting' => '1',
896
            'paths' => 'community/teams/*/members',
897
          ),
898
          'context' => 'empty',
899
          'not' => FALSE,
900
        ),
901
        3 => array(
902
          'name' => 'role',
903
          'settings' => array(
904
            'rids' => array(
905
              0 => 2,
906
            ),
907
          ),
908
          'context' => 'logged-in-user',
909
          'not' => FALSE,
910
        ),
911
      ),
912
      'logic' => 'and',
913
    ),
914
  );
915
  $display = new panels_display;
916
  $display->layout = 'onecol';
917
  $display->layout_settings = array();
918
  $display->panel_settings = array(
919
    'style_settings' => array(
920
      'default' => NULL,
921
      'left' => NULL,
922
      'right' => NULL,
923
      'top' => NULL,
924
      'bottom' => NULL,
925
      'middle' => NULL,
926
    ),
927
  );
928
  $display->cache = array();
929
  $display->title = 'Teams';
930
  $display->storage_type = 'page_manager';
931
  $display->storage_id = 'page_view_team_panel_context_3';
932
  $display->content = array();
933
  $display->panels = array();
934
    $pane = new stdClass;
935
    $pane->pid = 'new-1';
936
    $pane->panel = 'middle';
937
    $pane->type = 'views_panes';
938
    $pane->subtype = 'boinc_team_members-panel_pane_1';
939
    $pane->shown = TRUE;
940
    $pane->access = array(
941
      'plugins' => array(
942
        0 => array(
943
          'name' => 'php',
944
          'settings' => array(
945
            'description' => 'An admin of this team',
946
            'php' => '$team_id = $contexts[\'argument_nid_1\']->data->nid;
947
return (boincteam_is_founder($team_id) OR boincteam_is_admin($team_id));',
948
          ),
949
          'not' => TRUE,
950
        ),
951
      ),
952
    );
953
    $pane->configuration = array(
954
      'items_per_page' => '25',
955
      'override_title' => 1,
956
      'override_title_text' => 'Member list',
957
    );
958
    $pane->cache = array();
959
    $pane->style = array(
960
      'settings' => NULL,
961
    );
962
    $pane->css = array(
963
      'css_id' => '',
964
      'css_class' => 'section framing container shadow',
965
    );
966
    $pane->extras = array();
967
    $pane->position = 0;
968
    $display->content['new-1'] = $pane;
969
    $display->panels['middle'][0] = 'new-1';
970
    $pane = new stdClass;
971
    $pane->pid = 'new-2';
972
    $pane->panel = 'middle';
973
    $pane->type = 'views_panes';
974
    $pane->subtype = 'boinc_team_members-panel_pane_2';
975
    $pane->shown = TRUE;
976
    $pane->access = array(
977
      'plugins' => array(
978
        0 => array(
979
          'name' => 'php',
980
          'settings' => array(
981
            'description' => 'An admin of this team',
982
            'php' => '$team_id = $contexts[\'argument_nid_1\']->data->nid;
983
return (boincteam_is_founder($team_id) OR boincteam_is_admin($team_id));',
984
          ),
985
          'not' => FALSE,
986
        ),
987
      ),
988
    );
989
    $pane->configuration = array(
990
      'items_per_page' => '25',
991
      'override_title' => 1,
992
      'override_title_text' => 'Member list',
993
    );
994
    $pane->cache = array();
995
    $pane->style = array(
996
      'settings' => NULL,
997
    );
998
    $pane->css = array(
999
      'css_id' => '',
1000
      'css_class' => 'section framing container shadow',
1001
    );
1002
    $pane->extras = array();
1003
    $pane->position = 1;
1004
    $display->content['new-2'] = $pane;
1005
    $display->panels['middle'][1] = 'new-2';
1006
  $display->hide_title = PANELS_TITLE_FIXED;
1007
  $display->title_pane = '0';
1008
  $handler->conf['display'] = $display;
1009
  $page->default_handlers[$handler->name] = $handler;
1010
  $handler = new stdClass;
1011
  $handler->disabled = FALSE; /* Edit this to true to make a default handler disabled initially */
1012
  $handler->api_version = 1;
1013
  $handler->name = 'page_view_team_panel_context_5';
1014
  $handler->task = 'page';
1015
  $handler->subtask = 'view_team';
1016
  $handler->handler = 'panel_context';
1017
  $handler->weight = -26;
1018
  $handler->conf = array(
1019
    'title' => 'View history',
1020
    'no_blocks' => 0,
1021
    'pipeline' => 'standard',
1022
    'css_id' => '',
1023
    'css' => '',
1024
    'contexts' => array(),
1025
    'relationships' => array(),
1026
    'access' => array(
1027
      'plugins' => array(
1028
        0 => array(
1029
          'name' => 'path_visibility',
1030
          'settings' => array(
1031
            'visibility_setting' => '1',
1032
            'paths' => 'community/teams/*/history',
1033
          ),
1034
          'context' => 'empty',
1035
          'not' => FALSE,
1036
        ),
1037
        3 => array(
1038
          'name' => 'role',
1039
          'settings' => array(
1040
            'rids' => array(
1041
              0 => 2,
1042
            ),
1043
          ),
1044
          'context' => 'logged-in-user',
1045
          'not' => FALSE,
1046
        ),
1047
        4 => array(
1048
          'name' => 'php',
1049
          'settings' => array(
1050
            'description' => 'An admin of this team',
1051
            'php' => '$team_id = $contexts[\'argument_nid_1\']->data->nid;
1052
return (boincteam_is_founder($team_id) OR boincteam_is_admin($team_id));',
1053
          ),
1054
          'not' => FALSE,
1055
        ),
1056
      ),
1057
      'logic' => 'and',
1058
    ),
1059
  );
1060
  $display = new panels_display;
1061
  $display->layout = 'onecol';
1062
  $display->layout_settings = array();
1063
  $display->panel_settings = array(
1064
    'style_settings' => array(
1065
      'default' => NULL,
1066
      'left' => NULL,
1067
      'right' => NULL,
1068
      'top' => NULL,
1069
      'bottom' => NULL,
1070
      'middle' => NULL,
1071
    ),
1072
  );
1073
  $display->cache = array();
1074
  $display->title = 'Teams';
1075
  $display->storage_type = 'page_manager';
1076
  $display->storage_id = 'page_view_team_panel_context_5';
1077
  $display->content = array();
1078
  $display->panels = array();
1079
    $pane = new stdClass;
1080
    $pane->pid = 'new-1';
1081
    $pane->panel = 'middle';
1082
    $pane->type = 'views_panes';
1083
    $pane->subtype = 'boinc_teams-panel_pane_2';
1084
    $pane->shown = TRUE;
1085
    $pane->access = array();
1086
    $pane->configuration = array(
1087
      'items_per_page' => '25',
1088
      'override_title' => 1,
1089
      'override_title_text' => 'Team history',
1090
    );
1091
    $pane->cache = array();
1092
    $pane->style = array(
1093
      'settings' => NULL,
1094
    );
1095
    $pane->css = array(
1096
      'css_id' => '',
1097
      'css_class' => 'section framing container shadow',
1098
    );
1099
    $pane->extras = array();
1100
    $pane->position = 0;
1101
    $display->content['new-1'] = $pane;
1102
    $display->panels['middle'][0] = 'new-1';
1103
  $display->hide_title = PANELS_TITLE_FIXED;
1104
  $display->title_pane = '0';
1105
  $handler->conf['display'] = $display;
1106
  $page->default_handlers[$handler->name] = $handler;
1107
  $handler = new stdClass;
1108
  $handler->disabled = FALSE; /* Edit this to true to make a default handler disabled initially */
1109
  $handler->api_version = 1;
1110
  $handler->name = 'page_view_team_panel_context_6';
1111
  $handler->task = 'page';
1112
  $handler->subtask = 'view_team';
1113
  $handler->handler = 'panel_context';
1114
  $handler->weight = -25;
1115
  $handler->conf = array(
1116
    'title' => 'Manage admins',
1117
    'no_blocks' => 0,
1118
    'pipeline' => 'standard',
1119
    'css_id' => '',
1120
    'css' => '',
1121
    'contexts' => array(),
1122
    'relationships' => array(),
1123
    'access' => array(
1124
      'plugins' => array(
1125
        0 => array(
1126
          'name' => 'path_visibility',
1127
          'settings' => array(
1128
            'visibility_setting' => '1',
1129
            'paths' => 'community/teams/*/edit/admins',
1130
          ),
1131
          'context' => 'empty',
1132
          'not' => FALSE,
1133
        ),
1134
        3 => array(
1135
          'name' => 'role',
1136
          'settings' => array(
1137
            'rids' => array(
1138
              0 => 2,
1139
            ),
1140
          ),
1141
          'context' => 'logged-in-user',
1142
          'not' => FALSE,
1143
        ),
1144
        4 => array(
1145
          'name' => 'php',
1146
          'settings' => array(
1147
            'description' => 'User is team founder',
1148
            'php' => '$team_id = $contexts[\'argument_nid_1\']->data->nid;
1149
return boincteam_is_founder($team_id);',
1150
          ),
1151
          'not' => FALSE,
1152
        ),
1153
      ),
1154
      'logic' => 'and',
1155
    ),
1156
  );
1157
  $display = new panels_display;
1158
  $display->layout = 'twocol_stacked';
1159
  $display->layout_settings = array();
1160
  $display->panel_settings = array(
1161
    'style_settings' => array(
1162
      'default' => NULL,
1163
      'left' => NULL,
1164
      'right' => NULL,
1165
      'top' => NULL,
1166
      'bottom' => NULL,
1167
      'middle' => NULL,
1168
    ),
1169
  );
1170
  $display->cache = array();
1171
  $display->title = 'Teams';
1172
  $display->storage_type = 'page_manager';
1173
  $display->storage_id = 'page_view_team_panel_context_6';
1174
  $display->content = array();
1175
  $display->panels = array();
1176
    $pane = new stdClass;
1177
    $pane->pid = 'new-1';
1178
    $pane->panel = 'left';
1179
    $pane->type = 'views_panes';
1180
    $pane->subtype = 'boinc_teams-panel_pane_3';
1181
    $pane->shown = TRUE;
1182
    $pane->access = array();
1183
    $pane->configuration = array(
1184
      'items_per_page' => '10',
1185
      'override_title' => 1,
1186
      'override_title_text' => 'Manage team admins',
1187
    );
1188
    $pane->cache = array();
1189
    $pane->style = array(
1190
      'settings' => NULL,
1191
    );
1192
    $pane->css = array(
1193
      'css_id' => '',
1194
      'css_class' => 'panel-primary container shadow',
1195
    );
1196
    $pane->extras = array();
1197
    $pane->position = 0;
1198
    $display->content['new-1'] = $pane;
1199
    $display->panels['left'][0] = 'new-1';
1200
    $pane = new stdClass;
1201
    $pane->pid = 'new-2';
1202
    $pane->panel = 'right';
1203
    $pane->type = 'custom';
1204
    $pane->subtype = 'custom';
1205
    $pane->shown = TRUE;
1206
    $pane->access = array();
1207
    $pane->configuration = array(
1208
      'admin_title' => 'About team admins',
1209
      'title' => '',
1210
      'body' => '<?php echo boincteam_about_admins_panel(); ?>',
1211
      'format' => '3',
1212
      'substitute' => 1,
1213
    );
1214
    $pane->cache = array();
1215
    $pane->style = array(
1216
      'settings' => NULL,
1217
    );
1218
    $pane->css = array(
1219
      'css_id' => '',
1220
      'css_class' => 'panel-secondary container shadow',
1221
    );
1222
    $pane->extras = array();
1223
    $pane->position = 0;
1224
    $display->content['new-2'] = $pane;
1225
    $display->panels['right'][0] = 'new-2';
1226
  $display->hide_title = PANELS_TITLE_FIXED;
1227
  $display->title_pane = '0';
1228
  $handler->conf['display'] = $display;
1229
  $page->default_handlers[$handler->name] = $handler;
1230
  $handler = new stdClass;
1231
  $handler->disabled = FALSE; /* Edit this to true to make a default handler disabled initially */
1232
  $handler->api_version = 1;
1233
  $handler->name = 'page_view_team_panel_context_9';
1234
  $handler->task = 'page';
1235
  $handler->subtask = 'view_team';
1236
  $handler->handler = 'panel_context';
1237
  $handler->weight = -24;
1238
  $handler->conf = array(
1239
    'title' => 'Change founder',
1240
    'no_blocks' => 0,
1241
    'pipeline' => 'standard',
1242
    'css_id' => '',
1243
    'css' => '',
1244
    'contexts' => array(),
1245
    'relationships' => array(),
1246
    'access' => array(
1247
      'plugins' => array(
1248
        0 => array(
1249
          'name' => 'path_visibility',
1250
          'settings' => array(
1251
            'visibility_setting' => '1',
1252
            'paths' => 'community/teams/*/edit/founder',
1253
          ),
1254
          'context' => 'empty',
1255
          'not' => FALSE,
1256
        ),
1257
        3 => array(
1258
          'name' => 'role',
1259
          'settings' => array(
1260
            'rids' => array(
1261
              0 => 2,
1262
            ),
1263
          ),
1264
          'context' => 'logged-in-user',
1265
          'not' => FALSE,
1266
        ),
1267
        4 => array(
1268
          'name' => 'php',
1269
          'settings' => array(
1270
            'description' => 'User is team founder',
1271
            'php' => '$team_id = $contexts[\'argument_nid_1\']->data->nid;
1272
return boincteam_is_founder($team_id);',
1273
          ),
1274
          'not' => FALSE,
1275
        ),
1276
      ),
1277
      'logic' => 'and',
1278
    ),
1279
  );
1280
  $display = new panels_display;
1281
  $display->layout = 'twocol_stacked';
1282
  $display->layout_settings = array();
1283
  $display->panel_settings = array(
1284
    'style_settings' => array(
1285
      'default' => NULL,
1286
      'left' => NULL,
1287
      'right' => NULL,
1288
      'top' => NULL,
1289
      'bottom' => NULL,
1290
      'middle' => NULL,
1291
    ),
1292
  );
1293
  $display->cache = array();
1294
  $display->title = 'Teams';
1295
  $display->storage_type = 'page_manager';
1296
  $display->storage_id = 'page_view_team_panel_context_9';
1297
  $display->content = array();
1298
  $display->panels = array();
1299
    $pane = new stdClass;
1300
    $pane->pid = 'new-1';
1301
    $pane->panel = 'left';
1302
    $pane->type = 'custom';
1303
    $pane->subtype = 'custom';
1304
    $pane->shown = TRUE;
1305
    $pane->access = array();
1306
    $pane->configuration = array(
1307
      'admin_title' => 'Respond to foundership request',
1308
      'title' => '',
1309
      'body' => '<?php echo boincteam_request_foundership_response_panel(%team_id:nid); ?>',
1310
      'format' => '3',
1311
      'substitute' => 1,
1312
    );
1313
    $pane->cache = array();
1314
    $pane->style = array(
1315
      'settings' => NULL,
1316
    );
1317
    $pane->css = array(
1318
      'css_id' => '',
1319
      'css_class' => 'panel-primary container shadow',
1320
    );
1321
    $pane->extras = array();
1322
    $pane->position = 0;
1323
    $display->content['new-1'] = $pane;
1324
    $display->panels['left'][0] = 'new-1';
1325
    $pane = new stdClass;
1326
    $pane->pid = 'new-2';
1327
    $pane->panel = 'left';
1328
    $pane->type = 'views_panes';
1329
    $pane->subtype = 'boinc_team_members-panel_pane_4';
1330
    $pane->shown = TRUE;
1331
    $pane->access = array();
1332
    $pane->configuration = array(
1333
      'items_per_page' => '25',
1334
      'override_title' => 1,
1335
      'override_title_text' => 'Change founder',
1336
    );
1337
    $pane->cache = array();
1338
    $pane->style = array(
1339
      'settings' => NULL,
1340
    );
1341
    $pane->css = array(
1342
      'css_id' => '',
1343
      'css_class' => 'panel-primary container shadow',
1344
    );
1345
    $pane->extras = array();
1346
    $pane->position = 1;
1347
    $display->content['new-2'] = $pane;
1348
    $display->panels['left'][1] = 'new-2';
1349
    $pane = new stdClass;
1350
    $pane->pid = 'new-3';
1351
    $pane->panel = 'right';
1352
    $pane->type = 'custom';
1353
    $pane->subtype = 'custom';
1354
    $pane->shown = TRUE;
1355
    $pane->access = array();
1356
    $pane->configuration = array(
1357
      'admin_title' => 'About changing team founder',
1358
      'title' => '',
1359
      'body' => '<?php echo boincteam_about_founder_panel(); ?>',
1360
      'format' => '3',
1361
      'substitute' => 1,
1362
    );
1363
    $pane->cache = array();
1364
    $pane->style = array(
1365
      'settings' => NULL,
1366
    );
1367
    $pane->css = array(
1368
      'css_id' => '',
1369
      'css_class' => 'panel-secondary container shadow',
1370
    );
1371
    $pane->extras = array();
1372
    $pane->position = 0;
1373
    $display->content['new-3'] = $pane;
1374
    $display->panels['right'][0] = 'new-3';
1375
  $display->hide_title = PANELS_TITLE_FIXED;
1376
  $display->title_pane = '0';
1377
  $handler->conf['display'] = $display;
1378
  $page->default_handlers[$handler->name] = $handler;
1379
  $handler = new stdClass;
1380
  $handler->disabled = FALSE; /* Edit this to true to make a default handler disabled initially */
1381
  $handler->api_version = 1;
1382
  $handler->name = 'page_view_team_panel_context_7';
1383
  $handler->task = 'page';
1384
  $handler->subtask = 'view_team';
1385
  $handler->handler = 'panel_context';
1386
  $handler->weight = -23;
1387
  $handler->conf = array(
1388
    'title' => 'View forum',
1389
    'no_blocks' => 0,
1390
    'pipeline' => 'standard',
1391
    'css_id' => '',
1392
    'css' => '',
1393
    'contexts' => array(),
1394
    'relationships' => array(),
1395
    'access' => array(
1396
      'plugins' => array(
1397
        0 => array(
1398
          'name' => 'path_visibility',
1399
          'settings' => array(
1400
            'visibility_setting' => '1',
1401
            'paths' => 'community/teams/*/forum/*',
1402
          ),
1403
          'context' => 'empty',
1404
          'not' => FALSE,
1405
        ),
1406
        3 => array(
1407
          'name' => 'role',
1408
          'settings' => array(
1409
            'rids' => array(
1410
              0 => 2,
1411
            ),
1412
          ),
1413
          'context' => 'logged-in-user',
1414
          'not' => FALSE,
1415
        ),
1416
        4 => array(
1417
          'name' => 'php',
1418
          'settings' => array(
1419
            'description' => 'A member of this team or the forum is public',
1420
            'php' => '$team_id = $contexts[\'argument_nid_1\']->data->nid;
1421
$team_forum_id = $contexts[\'argument_string_2\']->data;
1422
return (boincteam_is_member($team_id) OR boincteam_forum_is_public($team_forum_id));',
1423
          ),
1424
          'not' => FALSE,
1425
        ),
1426
      ),
1427
      'logic' => 'and',
1428
    ),
1429
  );
1430
  $display = new panels_display;
1431
  $display->layout = 'onecol';
1432
  $display->layout_settings = array();
1433
  $display->panel_settings = array(
1434
    'style_settings' => array(
1435
      'default' => NULL,
1436
      'left' => NULL,
1437
      'right' => NULL,
1438
      'top' => NULL,
1439
      'bottom' => NULL,
1440
      'middle' => NULL,
1441
    ),
1442
  );
1443
  $display->cache = array();
1444
  $display->title = 'Teams';
1445
  $display->storage_type = 'page_manager';
1446
  $display->storage_id = 'page_view_team_panel_context_7';
1447
  $display->content = array();
1448
  $display->panels = array();
1449
    $pane = new stdClass;
1450
    $pane->pid = 'new-1';
1451
    $pane->panel = 'middle';
1452
    $pane->type = 'views_panes';
1453
    $pane->subtype = 'boinc_team_forum_topics-panel_pane_1';
1454
    $pane->shown = TRUE;
1455
    $pane->access = array();
1456
    $pane->configuration = array(
1457
      'override_title' => 0,
1458
      'override_title_text' => '',
1459
    );
1460
    $pane->cache = array();
1461
    $pane->style = array(
1462
      'settings' => NULL,
1463
    );
1464
    $pane->css = array(
1465
      'css_id' => '',
1466
      'css_class' => 'section framing container shadow',
1467
    );
1468
    $pane->extras = array();
1469
    $pane->position = 0;
1470
    $display->content['new-1'] = $pane;
1471
    $display->panels['middle'][0] = 'new-1';
1472
  $display->hide_title = PANELS_TITLE_FIXED;
1473
  $display->title_pane = '0';
1474
  $handler->conf['display'] = $display;
1475
  $page->default_handlers[$handler->name] = $handler;
1476
  $handler = new stdClass;
1477
  $handler->disabled = FALSE; /* Edit this to true to make a default handler disabled initially */
1478
  $handler->api_version = 1;
1479
  $handler->name = 'page_view_team_panel_context';
1480
  $handler->task = 'page';
1481
  $handler->subtask = 'view_team';
1482
  $handler->handler = 'panel_context';
1483
  $handler->weight = -22;
1484
  $handler->conf = array(
1485
    'title' => 'View team',
1486
    'no_blocks' => 0,
1487
    'pipeline' => 'standard',
1488
    'css_id' => '',
1489
    'css' => '',
1490
    'contexts' => array(),
1491
    'relationships' => array(),
1492
    'access' => array(
1493
      'plugins' => array(
1494
        0 => array(
1495
          'name' => 'node_access',
1496
          'settings' => array(
1497
            'type' => 'view',
1498
          ),
1499
          'context' => array(
1500
            0 => 'logged-in-user',
1501
            1 => 'argument_nid_1',
1502
          ),
1503
          'not' => FALSE,
1504
        ),
1505
      ),
1506
      'logic' => 'and',
1507
    ),
1508
  );
1509
  $display = new panels_display;
1510
  $display->layout = 'twocol_stacked';
1511
  $display->layout_settings = array(
1512
    'items' => array(
1513
      'canvas' => array(
1514
        'type' => 'row',
1515
        'contains' => 'column',
1516
        'children' => array(
1517
          0 => 'main',
1518
          1 => 2,
1519
        ),
1520
        'parent' => NULL,
1521
      ),
1522
      'main' => array(
1523
        'type' => 'column',
1524
        'width' => 50,
1525
        'width_type' => '%',
1526
        'children' => array(
1527
          0 => 'main-row',
1528
          1 => 1,
1529
        ),
1530
        'parent' => 'canvas',
1531
      ),
1532
      'main-row' => array(
1533
        'type' => 'row',
1534
        'contains' => 'region',
1535
        'children' => array(
1536
          0 => 'center',
1537
        ),
1538
        'parent' => 'main',
1539
      ),
1540
      'center' => array(
1541
        'type' => 'region',
1542
        'title' => 'Center',
1543
        'width' => 100,
1544
        'width_type' => '%',
1545
        'parent' => 'main-row',
1546
      ),
1547
      1 => array(
1548
        'type' => 'row',
1549
        'contains' => 'region',
1550
        'children' => array(
1551
          0 => 'top_teams',
1552
        ),
1553
        'parent' => 'main',
1554
        'class' => 'panel-primary container shadow',
1555
      ),
1556
      'top_teams' => array(
1557
        'type' => 'region',
1558
        'title' => 'Top teams',
1559
        'width' => 100,
1560
        'width_type' => '%',
1561
        'parent' => '1',
1562
        'class' => 'panel-primary container shadow',
1563
      ),
1564
      2 => array(
1565
        'type' => 'column',
1566
        'width' => 50,
1567
        'width_type' => '%',
1568
        'parent' => 'canvas',
1569
        'children' => array(),
1570
        'class' => '',
1571
      ),
1572
    ),
1573
  );
1574
  $display->panel_settings = array(
1575
    'style_settings' => array(
1576
      'default' => NULL,
1577
      'center' => NULL,
1578
      'top_teams' => NULL,
1579
      'top' => NULL,
1580
      'left' => NULL,
1581
      'right' => NULL,
1582
      'bottom' => NULL,
1583
      'content' => NULL,
1584
      'sidebar_first' => NULL,
1585
    ),
1586
  );
1587
  $display->cache = array();
1588
  $display->title = 'Teams';
1589
  $display->storage_type = 'page_manager';
1590
  $display->storage_id = 'page_view_team_panel_context';
1591
  $display->content = array();
1592
  $display->panels = array();
1593
    $pane = new stdClass;
1594
    $pane->pid = 'new-1';
1595
    $pane->panel = 'left';
1596
    $pane->type = 'custom';
1597
    $pane->subtype = 'custom';
1598
    $pane->shown = TRUE;
1599
    $pane->access = array();
1600
    $pane->configuration = array(
1601
      'admin_title' => 'Team details',
1602
      'title' => '',
1603
      'body' => '<?php echo boincteam_view_team_panel(%team_id:nid); ?>',
1604
      'format' => '3',
1605
      'substitute' => 1,
1606
    );
1607
    $pane->cache = array();
1608
    $pane->style = array(
1609
      'settings' => NULL,
1610
    );
1611
    $pane->css = array(
1612
      'css_id' => '',
1613
      'css_class' => 'panel-primary container shadow',
1614
    );
1615
    $pane->extras = array();
1616
    $pane->position = 0;
1617
    $display->content['new-1'] = $pane;
1618
    $display->panels['left'][0] = 'new-1';
1619
    $pane = new stdClass;
1620
    $pane->pid = 'new-2';
1621
    $pane->panel = 'right';
1622
    $pane->type = 'custom';
1623
    $pane->subtype = 'custom';
1624
    $pane->shown = TRUE;
1625
    $pane->access = array(
1626
      'plugins' => array(
1627
        0 => array(
1628
          'name' => 'php',
1629
          'settings' => array(
1630
            'description' => 'An admin of this team',
1631
            'php' => '$uid = $contexts[\'logged-in-user\']->data->uid;
1632
$team_id = $contexts[\'argument_nid_1\']->data->nid;
1633
return (boincteam_is_founder($team_id, $uid) OR boincteam_is_admin($team_id, $uid));',
1634
          ),
1635
          'not' => FALSE,
1636
        ),
1637
      ),
1638
    );
1639
    $pane->configuration = array(
1640
      'admin_title' => 'Manage team',
1641
      'title' => '',
1642
      'body' => '<?php echo boincteam_management_panel(%team_id:nid); ?>',
1643
      'format' => '3',
1644
      'substitute' => 1,
1645
    );
1646
    $pane->cache = array();
1647
    $pane->style = array(
1648
      'settings' => NULL,
1649
    );
1650
    $pane->css = array(
1651
      'css_id' => 'team-management',
1652
      'css_class' => 'panel-secondary container shadow',
1653
    );
1654
    $pane->extras = array();
1655
    $pane->position = 0;
1656
    $display->content['new-2'] = $pane;
1657
    $display->panels['right'][0] = 'new-2';
1658
    $pane = new stdClass;
1659
    $pane->pid = 'new-3';
1660
    $pane->panel = 'right';
1661
    $pane->type = 'custom';
1662
    $pane->subtype = 'custom';
1663
    $pane->shown = TRUE;
1664
    $pane->access = array(
1665
      'plugins' => array(
1666
        0 => array(
1667
          'name' => 'php',
1668
          'settings' => array(
1669
            'description' => 'A member of this team, the forum is public, or has global team moderation',
1670
            'php' => '$team_id = $contexts[\'argument_nid_1\']->data->nid;
1671
return (
1672
  (
1673
    boincteam_is_member($team_id) OR
1674
    boincteam_forum_is_any_public($team_id) OR
1675
    boincteam_forum_is_global_moderator()
1676
  ) AND (
1677
   boincteam_forum_list($team_id)
1678
  )
1679
);',
1680
          ),
1681
          'not' => FALSE,
1682
        ),
1683
      ),
1684
    );
1685
    $pane->configuration = array(
1686
      'admin_title' => 'Team forum',
1687
      'title' => '',
1688
      'body' => '<?php print boincteam_forum_link_panel(%team_id:nid); ?>',
1689
      'format' => '3',
1690
      'substitute' => 1,
1691
    );
1692
    $pane->cache = array();
1693
    $pane->style = array(
1694
      'settings' => NULL,
1695
    );
1696
    $pane->css = array(
1697
      'css_id' => '',
1698
      'css_class' => 'panel-secondary container shadow',
1699
    );
1700
    $pane->extras = array();
1701
    $pane->position = 1;
1702
    $display->content['new-3'] = $pane;
1703
    $display->panels['right'][1] = 'new-3';
1704
    $pane = new stdClass;
1705
    $pane->pid = 'new-4';
1706
    $pane->panel = 'right';
1707
    $pane->type = 'custom';
1708
    $pane->subtype = 'custom';
1709
    $pane->shown = TRUE;
1710
    $pane->access = array(
1711
      'plugins' => array(
1712
        0 => array(
1713
          'name' => 'php',
1714
          'settings' => array(
1715
            'description' => 'Not in another team',
1716
            'php' => '$account = user_load($contexts[\'logged-in-user\']->data->uid);
1717
return ($account->team == 0);',
1718
          ),
1719
          'not' => FALSE,
1720
        ),
1721
        1 => array(
1722
          'name' => 'perm',
1723
          'settings' => array(
1724
            'perm' => 'join boincteam',
1725
          ),
1726
          'context' => 'logged-in-user',
1727
          'not' => FALSE,
1728
        ),
1729
        2 => array(
1730
          'name' => 'php',
1731
          'settings' => array(
1732
            'description' => 'Team is open',
1733
            'php' => '$team_id = $contexts[\'argument_nid_1\']->data->nid;
1734
$boincteam = boincteam_load(boincteam_lookup_id($team_id));
1735
return $boincteam->joinable;',
1736
          ),
1737
          'not' => FALSE,
1738
        ),
1739
      ),
1740
    );
1741
    $pane->configuration = array(
1742
      'admin_title' => 'Join team',
1743
      'title' => '',
1744
      'body' => '<?php echo boincteam_join_team_panel(%team_id:nid); ?>',
1745
      'format' => '3',
1746
      'substitute' => 1,
1747
    );
1748
    $pane->cache = array();
1749
    $pane->style = array(
1750
      'settings' => NULL,
1751
    );
1752
    $pane->css = array(
1753
      'css_id' => '',
1754
      'css_class' => 'panel-secondary container shadow',
1755
    );
1756
    $pane->extras = array();
1757
    $pane->position = 2;
1758
    $display->content['new-4'] = $pane;
1759
    $display->panels['right'][2] = 'new-4';
1760
    $pane = new stdClass;
1761
    $pane->pid = 'new-5';
1762
    $pane->panel = 'right';
1763
    $pane->type = 'custom';
1764
    $pane->subtype = 'custom';
1765
    $pane->shown = TRUE;
1766
    $pane->access = array(
1767
      'plugins' => array(
1768
        0 => array(
1769
          'name' => 'php',
1770
          'settings' => array(
1771
            'description' => 'A member of this team',
1772
            'php' => '$account = user_load($contexts[\'logged-in-user\']->data->uid);
1773
return ($account->team == $contexts[\'argument_nid_1\']->data->nid);',
1774
          ),
1775
          'not' => FALSE,
1776
        ),
1777
      ),
1778
    );
1779
    $pane->configuration = array(
1780
      'admin_title' => 'Leave team',
1781
      'title' => '',
1782
      'body' => '<?php echo boincteam_leave_team_panel(%team_id:nid); ?>',
1783
      'format' => '3',
1784
      'substitute' => 1,
1785
    );
1786
    $pane->cache = array();
1787
    $pane->style = array(
1788
      'settings' => NULL,
1789
    );
1790
    $pane->css = array(
1791
      'css_id' => '',
1792
      'css_class' => 'panel-secondary container shadow',
1793
    );
1794
    $pane->extras = array();
1795
    $pane->position = 3;
1796
    $display->content['new-5'] = $pane;
1797
    $display->panels['right'][3] = 'new-5';
1798
    $pane = new stdClass;
1799
    $pane->pid = 'new-6';
1800
    $pane->panel = 'right';
1801
    $pane->type = 'custom';
1802
    $pane->subtype = 'custom';
1803
    $pane->shown = TRUE;
1804
    $pane->access = array(
1805
      'plugins' => array(
1806
        0 => array(
1807
          'name' => 'php',
1808
          'settings' => array(
1809
            'description' => 'A member of this team',
1810
            'php' => '$account = user_load($contexts[\'logged-in-user\']->data->uid);
1811
return ($account->team == $contexts[\'argument_nid_1\']->data->nid);',
1812
          ),
1813
          'not' => FALSE,
1814
        ),
1815
        1 => array(
1816
          'name' => 'php',
1817
          'settings' => array(
1818
            'description' => 'User is team founder',
1819
            'php' => '$uid = $contexts[\'logged-in-user\']->data->uid;
1820
$team_id = $contexts[\'argument_nid_1\']->data->nid;
1821
return boincteam_is_founder($team_id, $uid);',
1822
          ),
1823
          'not' => TRUE,
1824
        ),
1825
      ),
1826
    );
1827
    $pane->configuration = array(
1828
      'admin_title' => 'Request foundership',
1829
      'title' => '',
1830
      'body' => '<?php echo boincteam_request_foundership_panel(%team_id:nid); ?>',
1831
      'format' => '3',
1832
      'substitute' => 1,
1833
    );
1834
    $pane->cache = array();
1835
    $pane->style = array(
1836
      'settings' => NULL,
1837
    );
1838
    $pane->css = array(
1839
      'css_id' => '',
1840
      'css_class' => 'panel-secondary container shadow',
1841
    );
1842
    $pane->extras = array();
1843
    $pane->position = 4;
1844
    $display->content['new-6'] = $pane;
1845
    $display->panels['right'][4] = 'new-6';
1846
    $pane = new stdClass;
1847
    $pane->pid = 'new-7';
1848
    $pane->panel = 'right';
1849
    $pane->type = 'custom';
1850
    $pane->subtype = 'custom';
1851
    $pane->shown = TRUE;
1852
    $pane->access = array();
1853
    $pane->configuration = array(
1854
      'admin_title' => 'Search teams',
1855
      'title' => '',
1856
      'body' => '<?php echo boincteam_search_panel(); ?>',
1857
      'format' => '3',
1858
      'substitute' => TRUE,
1859
    );
1860
    $pane->cache = array();
1861
    $pane->style = array(
1862
      'settings' => NULL,
1863
    );
1864
    $pane->css = array(
1865
      'css_id' => '',
1866
      'css_class' => 'panel-secondary container shadow',
1867
    );
1868
    $pane->extras = array();
1869
    $pane->position = 5;
1870
    $display->content['new-7'] = $pane;
1871
    $display->panels['right'][5] = 'new-7';
1872
  $display->hide_title = PANELS_TITLE_FIXED;
1873
  $display->title_pane = 'new-1';
1874
  $handler->conf['display'] = $display;
1875
  $page->default_handlers[$handler->name] = $handler;
1876
  $pages['view_team'] = $page;
1877
1878
 return $pages;
1879
1880
}
1881