@@ -5,7 +5,7 @@ discard block |
||
5 | 5 | */ |
6 | 6 | function boinc_standard_default_page_manager_pages() { |
7 | 7 | $page = new stdClass; |
8 | - $page->disabled = FALSE; /* Edit this to true to make a default page disabled initially */ |
|
8 | + $page->disabled = false; /* Edit this to true to make a default page disabled initially */ |
|
9 | 9 | $page->api_version = 1; |
10 | 10 | $page->name = 'about_us'; |
11 | 11 | $page->task = 'page'; |
@@ -14,7 +14,7 @@ discard block |
||
14 | 14 | $page->path = 'about.fail'; |
15 | 15 | $page->access = array( |
16 | 16 | 'type' => 'none', |
17 | - 'settings' => NULL, |
|
17 | + 'settings' => null, |
|
18 | 18 | ); |
19 | 19 | $page->menu = array(); |
20 | 20 | $page->arguments = array(); |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | $pages['about_us'] = $page; |
24 | 24 | |
25 | 25 | $page = new stdClass; |
26 | - $page->disabled = FALSE; /* Edit this to true to make a default page disabled initially */ |
|
26 | + $page->disabled = false; /* Edit this to true to make a default page disabled initially */ |
|
27 | 27 | $page->api_version = 1; |
28 | 28 | $page->name = 'account_dashboard'; |
29 | 29 | $page->task = 'page'; |
@@ -40,12 +40,12 @@ discard block |
||
40 | 40 | ), |
41 | 41 | ), |
42 | 42 | 'context' => 'logged-in-user', |
43 | - 'not' => FALSE, |
|
43 | + 'not' => false, |
|
44 | 44 | ), |
45 | 45 | ), |
46 | 46 | 'logic' => 'and', |
47 | 47 | 'type' => 'none', |
48 | - 'settings' => NULL, |
|
48 | + 'settings' => null, |
|
49 | 49 | ); |
50 | 50 | $page->menu = array( |
51 | 51 | 'type' => 'none', |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | $page->conf = array(); |
64 | 64 | $page->default_handlers = array(); |
65 | 65 | $handler = new stdClass; |
66 | - $handler->disabled = FALSE; /* Edit this to true to make a default handler disabled initially */ |
|
66 | + $handler->disabled = false; /* Edit this to true to make a default handler disabled initially */ |
|
67 | 67 | $handler->api_version = 1; |
68 | 68 | $handler->name = 'page_account_dashboard_panel_context'; |
69 | 69 | $handler->task = 'page'; |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | $handler->weight = 0; |
73 | 73 | $handler->conf = array( |
74 | 74 | 'title' => 'Landing page', |
75 | - 'no_blocks' => FALSE, |
|
75 | + 'no_blocks' => false, |
|
76 | 76 | 'pipeline' => 'ipe', |
77 | 77 | 'css_id' => '', |
78 | 78 | 'css' => '', |
@@ -100,9 +100,9 @@ discard block |
||
100 | 100 | $display->layout_settings = array(); |
101 | 101 | $display->panel_settings = array( |
102 | 102 | 'style_settings' => array( |
103 | - 'default' => NULL, |
|
104 | - 'content' => NULL, |
|
105 | - 'sidebar_first' => NULL, |
|
103 | + 'default' => null, |
|
104 | + 'content' => null, |
|
105 | + 'sidebar_first' => null, |
|
106 | 106 | ), |
107 | 107 | ); |
108 | 108 | $display->cache = array(); |
@@ -114,7 +114,7 @@ discard block |
||
114 | 114 | $pane->panel = 'content'; |
115 | 115 | $pane->type = 'panels_mini'; |
116 | 116 | $pane->subtype = 'dashboard_tables'; |
117 | - $pane->shown = TRUE; |
|
117 | + $pane->shown = true; |
|
118 | 118 | $pane->access = array(); |
119 | 119 | $pane->configuration = array( |
120 | 120 | 'override_title' => 1, |
@@ -122,7 +122,7 @@ discard block |
||
122 | 122 | ); |
123 | 123 | $pane->cache = array(); |
124 | 124 | $pane->style = array( |
125 | - 'settings' => NULL, |
|
125 | + 'settings' => null, |
|
126 | 126 | ); |
127 | 127 | $pane->css = array( |
128 | 128 | 'css_id' => '', |
@@ -137,12 +137,12 @@ discard block |
||
137 | 137 | $pane->panel = 'content'; |
138 | 138 | $pane->type = 'views_panes'; |
139 | 139 | $pane->subtype = 'subscriptions-panel_pane_1'; |
140 | - $pane->shown = TRUE; |
|
140 | + $pane->shown = true; |
|
141 | 141 | $pane->access = array(); |
142 | 142 | $pane->configuration = array(); |
143 | 143 | $pane->cache = array(); |
144 | 144 | $pane->style = array( |
145 | - 'settings' => NULL, |
|
145 | + 'settings' => null, |
|
146 | 146 | ); |
147 | 147 | $pane->css = array( |
148 | 148 | 'css_id' => '', |
@@ -157,7 +157,7 @@ discard block |
||
157 | 157 | $pane->panel = 'sidebar_first'; |
158 | 158 | $pane->type = 'custom'; |
159 | 159 | $pane->subtype = 'custom'; |
160 | - $pane->shown = TRUE; |
|
160 | + $pane->shown = true; |
|
161 | 161 | $pane->access = array( |
162 | 162 | 'plugins' => array( |
163 | 163 | 1 => array( |
@@ -166,7 +166,7 @@ discard block |
||
166 | 166 | 'perm' => 'edit any profile content', |
167 | 167 | ), |
168 | 168 | 'context' => 'context_user_1', |
169 | - 'not' => FALSE, |
|
169 | + 'not' => false, |
|
170 | 170 | ), |
171 | 171 | ), |
172 | 172 | ); |
@@ -179,7 +179,7 @@ discard block |
||
179 | 179 | ); |
180 | 180 | $pane->cache = array(); |
181 | 181 | $pane->style = array( |
182 | - 'settings' => NULL, |
|
182 | + 'settings' => null, |
|
183 | 183 | ); |
184 | 184 | $pane->css = array( |
185 | 185 | 'css_id' => '', |
@@ -194,7 +194,7 @@ discard block |
||
194 | 194 | $pane->panel = 'sidebar_first'; |
195 | 195 | $pane->type = 'panels_mini'; |
196 | 196 | $pane->subtype = 'user_mail_summary'; |
197 | - $pane->shown = TRUE; |
|
197 | + $pane->shown = true; |
|
198 | 198 | $pane->access = array(); |
199 | 199 | $pane->configuration = array( |
200 | 200 | 'override_title' => 0, |
@@ -202,7 +202,7 @@ discard block |
||
202 | 202 | ); |
203 | 203 | $pane->cache = array(); |
204 | 204 | $pane->style = array( |
205 | - 'settings' => NULL, |
|
205 | + 'settings' => null, |
|
206 | 206 | ); |
207 | 207 | $pane->css = array( |
208 | 208 | 'css_id' => '', |
@@ -217,7 +217,7 @@ discard block |
||
217 | 217 | $pane->panel = 'sidebar_first'; |
218 | 218 | $pane->type = 'custom'; |
219 | 219 | $pane->subtype = 'custom'; |
220 | - $pane->shown = TRUE; |
|
220 | + $pane->shown = true; |
|
221 | 221 | $pane->access = array(); |
222 | 222 | $pane->configuration = array( |
223 | 223 | 'admin_title' => 'Team summary', |
@@ -232,7 +232,7 @@ discard block |
||
232 | 232 | ); |
233 | 233 | $pane->cache = array(); |
234 | 234 | $pane->style = array( |
235 | - 'settings' => NULL, |
|
235 | + 'settings' => null, |
|
236 | 236 | ); |
237 | 237 | $pane->css = array( |
238 | 238 | 'css_id' => 'team-dashboard-pane', |
@@ -247,7 +247,7 @@ discard block |
||
247 | 247 | $pane->panel = 'sidebar_first'; |
248 | 248 | $pane->type = 'custom'; |
249 | 249 | $pane->subtype = 'custom'; |
250 | - $pane->shown = TRUE; |
|
250 | + $pane->shown = true; |
|
251 | 251 | $pane->access = array(); |
252 | 252 | $pane->configuration = array( |
253 | 253 | 'admin_title' => 'User activity summary', |
@@ -266,7 +266,7 @@ discard block |
||
266 | 266 | ); |
267 | 267 | $pane->cache = array(); |
268 | 268 | $pane->style = array( |
269 | - 'settings' => NULL, |
|
269 | + 'settings' => null, |
|
270 | 270 | ); |
271 | 271 | $pane->css = array( |
272 | 272 | 'css_id' => '', |
@@ -281,7 +281,7 @@ discard block |
||
281 | 281 | $pane->panel = 'sidebar_first'; |
282 | 282 | $pane->type = 'views'; |
283 | 283 | $pane->subtype = 'boinc_friends'; |
284 | - $pane->shown = TRUE; |
|
284 | + $pane->shown = true; |
|
285 | 285 | $pane->access = array(); |
286 | 286 | $pane->configuration = array( |
287 | 287 | 'override_pager_settings' => 0, |
@@ -304,7 +304,7 @@ discard block |
||
304 | 304 | ); |
305 | 305 | $pane->cache = array(); |
306 | 306 | $pane->style = array( |
307 | - 'settings' => NULL, |
|
307 | + 'settings' => null, |
|
308 | 308 | ); |
309 | 309 | $pane->css = array( |
310 | 310 | 'css_id' => '', |
@@ -321,7 +321,7 @@ discard block |
||
321 | 321 | $pages['account_dashboard'] = $page; |
322 | 322 | |
323 | 323 | $page = new stdClass; |
324 | - $page->disabled = FALSE; /* Edit this to true to make a default page disabled initially */ |
|
324 | + $page->disabled = false; /* Edit this to true to make a default page disabled initially */ |
|
325 | 325 | $page->api_version = 1; |
326 | 326 | $page->name = 'boinc_user'; |
327 | 327 | $page->task = 'page'; |
@@ -330,7 +330,7 @@ discard block |
||
330 | 330 | $page->path = 'account/%user'; |
331 | 331 | $page->access = array( |
332 | 332 | 'type' => 'none', |
333 | - 'settings' => NULL, |
|
333 | + 'settings' => null, |
|
334 | 334 | ); |
335 | 335 | $page->menu = array(); |
336 | 336 | $page->arguments = array( |
@@ -344,7 +344,7 @@ discard block |
||
344 | 344 | $page->conf = array(); |
345 | 345 | $page->default_handlers = array(); |
346 | 346 | $handler = new stdClass; |
347 | - $handler->disabled = FALSE; /* Edit this to true to make a default handler disabled initially */ |
|
347 | + $handler->disabled = false; /* Edit this to true to make a default handler disabled initially */ |
|
348 | 348 | $handler->api_version = 1; |
349 | 349 | $handler->name = 'page_boinc_user_panel_context_2'; |
350 | 350 | $handler->task = 'page'; |
@@ -365,9 +365,9 @@ discard block |
||
365 | 365 | $display->layout_settings = array(); |
366 | 366 | $display->panel_settings = array( |
367 | 367 | 'style_settings' => array( |
368 | - 'default' => NULL, |
|
369 | - 'content' => NULL, |
|
370 | - 'sidebar_first' => NULL, |
|
368 | + 'default' => null, |
|
369 | + 'content' => null, |
|
370 | + 'sidebar_first' => null, |
|
371 | 371 | ), |
372 | 372 | ); |
373 | 373 | $display->cache = array(); |
@@ -379,7 +379,7 @@ discard block |
||
379 | 379 | $pane->panel = 'content'; |
380 | 380 | $pane->type = 'panels_mini'; |
381 | 381 | $pane->subtype = 'user_profile'; |
382 | - $pane->shown = TRUE; |
|
382 | + $pane->shown = true; |
|
383 | 383 | $pane->access = array(); |
384 | 384 | $pane->configuration = array( |
385 | 385 | 'context' => array( |
@@ -390,7 +390,7 @@ discard block |
||
390 | 390 | ); |
391 | 391 | $pane->cache = array(); |
392 | 392 | $pane->style = array( |
393 | - 'settings' => NULL, |
|
393 | + 'settings' => null, |
|
394 | 394 | ); |
395 | 395 | $pane->css = array( |
396 | 396 | 'css_id' => '', |
@@ -405,7 +405,7 @@ discard block |
||
405 | 405 | $pane->panel = 'sidebar_first'; |
406 | 406 | $pane->type = 'views_panes'; |
407 | 407 | $pane->subtype = 'boinc_account_stats-panel_pane_2'; |
408 | - $pane->shown = TRUE; |
|
408 | + $pane->shown = true; |
|
409 | 409 | $pane->access = array(); |
410 | 410 | $pane->configuration = array( |
411 | 411 | 'override_title' => 0, |
@@ -413,7 +413,7 @@ discard block |
||
413 | 413 | ); |
414 | 414 | $pane->cache = array(); |
415 | 415 | $pane->style = array( |
416 | - 'settings' => NULL, |
|
416 | + 'settings' => null, |
|
417 | 417 | ); |
418 | 418 | $pane->css = array( |
419 | 419 | 'css_id' => '', |
@@ -428,7 +428,7 @@ discard block |
||
428 | 428 | $pane->panel = 'sidebar_first'; |
429 | 429 | $pane->type = 'custom'; |
430 | 430 | $pane->subtype = 'custom'; |
431 | - $pane->shown = TRUE; |
|
431 | + $pane->shown = true; |
|
432 | 432 | $pane->access = array(); |
433 | 433 | $pane->configuration = array( |
434 | 434 | 'admin_title' => 'Team summary', |
@@ -443,7 +443,7 @@ discard block |
||
443 | 443 | ); |
444 | 444 | $pane->cache = array(); |
445 | 445 | $pane->style = array( |
446 | - 'settings' => NULL, |
|
446 | + 'settings' => null, |
|
447 | 447 | ); |
448 | 448 | $pane->css = array( |
449 | 449 | 'css_id' => 'team-dashboard-pane', |
@@ -458,7 +458,7 @@ discard block |
||
458 | 458 | $pane->panel = 'sidebar_first'; |
459 | 459 | $pane->type = 'custom'; |
460 | 460 | $pane->subtype = 'custom'; |
461 | - $pane->shown = TRUE; |
|
461 | + $pane->shown = true; |
|
462 | 462 | $pane->access = array(); |
463 | 463 | $pane->configuration = array( |
464 | 464 | 'admin_title' => 'User activity summary', |
@@ -476,7 +476,7 @@ discard block |
||
476 | 476 | ); |
477 | 477 | $pane->cache = array(); |
478 | 478 | $pane->style = array( |
479 | - 'settings' => NULL, |
|
479 | + 'settings' => null, |
|
480 | 480 | ); |
481 | 481 | $pane->css = array( |
482 | 482 | 'css_id' => '', |
@@ -491,7 +491,7 @@ discard block |
||
491 | 491 | $pane->panel = 'sidebar_first'; |
492 | 492 | $pane->type = 'views'; |
493 | 493 | $pane->subtype = 'boinc_friends'; |
494 | - $pane->shown = TRUE; |
|
494 | + $pane->shown = true; |
|
495 | 495 | $pane->access = array(); |
496 | 496 | $pane->configuration = array( |
497 | 497 | 'override_pager_settings' => 0, |
@@ -514,7 +514,7 @@ discard block |
||
514 | 514 | ); |
515 | 515 | $pane->cache = array(); |
516 | 516 | $pane->style = array( |
517 | - 'settings' => NULL, |
|
517 | + 'settings' => null, |
|
518 | 518 | ); |
519 | 519 | $pane->css = array( |
520 | 520 | 'css_id' => '', |
@@ -529,7 +529,7 @@ discard block |
||
529 | 529 | $pane->panel = 'sidebar_first'; |
530 | 530 | $pane->type = 'custom'; |
531 | 531 | $pane->subtype = 'custom'; |
532 | - $pane->shown = TRUE; |
|
532 | + $pane->shown = true; |
|
533 | 533 | $pane->access = array(); |
534 | 534 | $pane->configuration = array( |
535 | 535 | 'admin_title' => 'Project list', |
@@ -540,7 +540,7 @@ discard block |
||
540 | 540 | ); |
541 | 541 | $pane->cache = array(); |
542 | 542 | $pane->style = array( |
543 | - 'settings' => NULL, |
|
543 | + 'settings' => null, |
|
544 | 544 | ); |
545 | 545 | $pane->css = array( |
546 | 546 | 'css_id' => '', |
@@ -557,7 +557,7 @@ discard block |
||
557 | 557 | $pages['boinc_user'] = $page; |
558 | 558 | |
559 | 559 | $page = new stdClass; |
560 | - $page->disabled = FALSE; /* Edit this to true to make a default page disabled initially */ |
|
560 | + $page->disabled = false; /* Edit this to true to make a default page disabled initially */ |
|
561 | 561 | $page->api_version = 1; |
562 | 562 | $page->name = 'home'; |
563 | 563 | $page->task = 'page'; |
@@ -566,7 +566,7 @@ discard block |
||
566 | 566 | $page->path = 'home'; |
567 | 567 | $page->access = array( |
568 | 568 | 'type' => 'none', |
569 | - 'settings' => NULL, |
|
569 | + 'settings' => null, |
|
570 | 570 | ); |
571 | 571 | $page->menu = array( |
572 | 572 | 'type' => 'normal', |
@@ -584,7 +584,7 @@ discard block |
||
584 | 584 | $page->conf = array(); |
585 | 585 | $page->default_handlers = array(); |
586 | 586 | $handler = new stdClass; |
587 | - $handler->disabled = FALSE; /* Edit this to true to make a default handler disabled initially */ |
|
587 | + $handler->disabled = false; /* Edit this to true to make a default handler disabled initially */ |
|
588 | 588 | $handler->api_version = 1; |
589 | 589 | $handler->name = 'page_home_panel_context'; |
590 | 590 | $handler->task = 'page'; |
@@ -593,7 +593,7 @@ discard block |
||
593 | 593 | $handler->weight = 0; |
594 | 594 | $handler->conf = array( |
595 | 595 | 'title' => 'Landing page', |
596 | - 'no_blocks' => FALSE, |
|
596 | + 'no_blocks' => false, |
|
597 | 597 | 'pipeline' => 'ipe', |
598 | 598 | 'css_id' => '', |
599 | 599 | 'css' => '', |
@@ -605,9 +605,9 @@ discard block |
||
605 | 605 | $display->layout_settings = array(); |
606 | 606 | $display->panel_settings = array( |
607 | 607 | 'style_settings' => array( |
608 | - 'default' => NULL, |
|
609 | - 'content' => NULL, |
|
610 | - 'sidebar_first' => NULL, |
|
608 | + 'default' => null, |
|
609 | + 'content' => null, |
|
610 | + 'sidebar_first' => null, |
|
611 | 611 | ), |
612 | 612 | ); |
613 | 613 | $display->cache = array(); |
@@ -619,7 +619,7 @@ discard block |
||
619 | 619 | $pane->panel = 'content'; |
620 | 620 | $pane->type = 'custom'; |
621 | 621 | $pane->subtype = 'custom'; |
622 | - $pane->shown = TRUE; |
|
622 | + $pane->shown = true; |
|
623 | 623 | $pane->access = array( |
624 | 624 | 'plugins' => array(), |
625 | 625 | ); |
@@ -628,11 +628,11 @@ discard block |
||
628 | 628 | 'title' => '', |
629 | 629 | 'body' => '<?php print boincuser_home_page(); ?>', |
630 | 630 | 'format' => '3', |
631 | - 'substitute' => TRUE, |
|
631 | + 'substitute' => true, |
|
632 | 632 | ); |
633 | 633 | $pane->cache = array(); |
634 | 634 | $pane->style = array( |
635 | - 'settings' => NULL, |
|
635 | + 'settings' => null, |
|
636 | 636 | ); |
637 | 637 | $pane->css = array( |
638 | 638 | 'css_id' => '', |
@@ -647,7 +647,7 @@ discard block |
||
647 | 647 | $pane->panel = 'sidebar_first'; |
648 | 648 | $pane->type = 'panels_mini'; |
649 | 649 | $pane->subtype = 'project_stats_overview'; |
650 | - $pane->shown = TRUE; |
|
650 | + $pane->shown = true; |
|
651 | 651 | $pane->access = array(); |
652 | 652 | $pane->configuration = array( |
653 | 653 | 'override_title' => 0, |
@@ -655,7 +655,7 @@ discard block |
||
655 | 655 | ); |
656 | 656 | $pane->cache = array(); |
657 | 657 | $pane->style = array( |
658 | - 'settings' => NULL, |
|
658 | + 'settings' => null, |
|
659 | 659 | ); |
660 | 660 | $pane->css = array( |
661 | 661 | 'css_id' => '', |
@@ -670,7 +670,7 @@ discard block |
||
670 | 670 | $pane->panel = 'sidebar_first'; |
671 | 671 | $pane->type = 'views'; |
672 | 672 | $pane->subtype = 'news'; |
673 | - $pane->shown = TRUE; |
|
673 | + $pane->shown = true; |
|
674 | 674 | $pane->access = array(); |
675 | 675 | $pane->configuration = array( |
676 | 676 | 'override_pager_settings' => 1, |
@@ -690,7 +690,7 @@ discard block |
||
690 | 690 | ); |
691 | 691 | $pane->cache = array(); |
692 | 692 | $pane->style = array( |
693 | - 'settings' => NULL, |
|
693 | + 'settings' => null, |
|
694 | 694 | ); |
695 | 695 | $pane->css = array( |
696 | 696 | 'css_id' => '', |
@@ -4,113 +4,113 @@ discard block |
||
4 | 4 | * Implementation of hook_default_page_manager_pages(). |
5 | 5 | */ |
6 | 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( |
|
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 | 16 | 'type' => 'none', |
17 | 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; |
|
18 | + ); |
|
19 | + $page->menu = array(); |
|
20 | + $page->arguments = array(); |
|
21 | + $page->conf = array(); |
|
22 | + $page->default_handlers = array(); |
|
23 | + $pages['about_us'] = $page; |
|
24 | 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( |
|
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 | 34 | 'plugins' => array( |
35 | - 1 => array( |
|
35 | + 1 => array( |
|
36 | 36 | 'name' => 'role', |
37 | 37 | 'settings' => array( |
38 | - 'rids' => array( |
|
38 | + 'rids' => array( |
|
39 | 39 | 0 => 2, |
40 | - ), |
|
40 | + ), |
|
41 | 41 | ), |
42 | 42 | 'context' => 'logged-in-user', |
43 | 43 | 'not' => FALSE, |
44 | - ), |
|
44 | + ), |
|
45 | 45 | ), |
46 | 46 | 'logic' => 'and', |
47 | 47 | 'type' => 'none', |
48 | 48 | 'settings' => NULL, |
49 | - ); |
|
50 | - $page->menu = array( |
|
49 | + ); |
|
50 | + $page->menu = array( |
|
51 | 51 | 'type' => 'none', |
52 | 52 | 'title' => 'Dashboard', |
53 | 53 | 'name' => 'navigation', |
54 | 54 | 'weight' => '0', |
55 | 55 | 'parent' => array( |
56 | - 'type' => 'normal', |
|
57 | - 'title' => 'Account', |
|
58 | - 'name' => 'navigation', |
|
59 | - 'weight' => '0', |
|
56 | + 'type' => 'normal', |
|
57 | + 'title' => 'Account', |
|
58 | + 'name' => 'navigation', |
|
59 | + 'weight' => '0', |
|
60 | 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( |
|
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 | 74 | 'title' => 'Landing page', |
75 | 75 | 'no_blocks' => FALSE, |
76 | 76 | 'pipeline' => 'ipe', |
77 | 77 | 'css_id' => '', |
78 | 78 | 'css' => '', |
79 | 79 | 'contexts' => array( |
80 | - 0 => array( |
|
80 | + 0 => array( |
|
81 | 81 | 'name' => 'user', |
82 | 82 | 'id' => 1, |
83 | 83 | 'identifier' => 'User', |
84 | 84 | 'keyword' => 'user', |
85 | 85 | 'context_settings' => array( |
86 | - 'type' => 'current', |
|
87 | - 'user' => '', |
|
88 | - 'uid' => '', |
|
86 | + 'type' => 'current', |
|
87 | + 'user' => '', |
|
88 | + 'uid' => '', |
|
89 | + ), |
|
89 | 90 | ), |
90 | - ), |
|
91 | 91 | ), |
92 | 92 | 'relationships' => array(), |
93 | 93 | 'access' => array( |
94 | - 'plugins' => array(), |
|
95 | - 'logic' => 'and', |
|
94 | + 'plugins' => array(), |
|
95 | + 'logic' => 'and', |
|
96 | 96 | ), |
97 | - ); |
|
98 | - $display = new panels_display; |
|
99 | - $display->layout = 'one_sidebar_second'; |
|
100 | - $display->layout_settings = array(); |
|
101 | - $display->panel_settings = array( |
|
97 | + ); |
|
98 | + $display = new panels_display; |
|
99 | + $display->layout = 'one_sidebar_second'; |
|
100 | + $display->layout_settings = array(); |
|
101 | + $display->panel_settings = array( |
|
102 | 102 | 'style_settings' => array( |
103 | - 'default' => NULL, |
|
104 | - 'content' => NULL, |
|
105 | - 'sidebar_first' => NULL, |
|
103 | + 'default' => NULL, |
|
104 | + 'content' => NULL, |
|
105 | + 'sidebar_first' => NULL, |
|
106 | 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(); |
|
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 | 114 | $pane = new stdClass; |
115 | 115 | $pane->pid = 'new-1'; |
116 | 116 | $pane->panel = 'content'; |
@@ -119,16 +119,16 @@ discard block |
||
119 | 119 | $pane->shown = TRUE; |
120 | 120 | $pane->access = array(); |
121 | 121 | $pane->configuration = array( |
122 | - 'override_title' => 1, |
|
123 | - 'override_title_text' => 'My stats', |
|
122 | + 'override_title' => 1, |
|
123 | + 'override_title_text' => 'My stats', |
|
124 | 124 | ); |
125 | 125 | $pane->cache = array(); |
126 | 126 | $pane->style = array( |
127 | - 'settings' => NULL, |
|
127 | + 'settings' => NULL, |
|
128 | 128 | ); |
129 | 129 | $pane->css = array( |
130 | - 'css_id' => '', |
|
131 | - 'css_class' => 'panel-primary container shadow', |
|
130 | + 'css_id' => '', |
|
131 | + 'css_class' => 'panel-primary container shadow', |
|
132 | 132 | ); |
133 | 133 | $pane->extras = array(); |
134 | 134 | $pane->position = 0; |
@@ -144,11 +144,11 @@ discard block |
||
144 | 144 | $pane->configuration = array(); |
145 | 145 | $pane->cache = array(); |
146 | 146 | $pane->style = array( |
147 | - 'settings' => NULL, |
|
147 | + 'settings' => NULL, |
|
148 | 148 | ); |
149 | 149 | $pane->css = array( |
150 | - 'css_id' => '', |
|
151 | - 'css_class' => 'panel-primary container shadow', |
|
150 | + 'css_id' => '', |
|
151 | + 'css_class' => 'panel-primary container shadow', |
|
152 | 152 | ); |
153 | 153 | $pane->extras = array(); |
154 | 154 | $pane->position = 1; |
@@ -161,31 +161,31 @@ discard block |
||
161 | 161 | $pane->subtype = 'custom'; |
162 | 162 | $pane->shown = TRUE; |
163 | 163 | $pane->access = array( |
164 | - 'plugins' => array( |
|
164 | + 'plugins' => array( |
|
165 | 165 | 1 => array( |
166 | - 'name' => 'perm', |
|
167 | - 'settings' => array( |
|
166 | + 'name' => 'perm', |
|
167 | + 'settings' => array( |
|
168 | 168 | 'perm' => 'edit any profile content', |
169 | - ), |
|
170 | - 'context' => 'context_user_1', |
|
171 | - 'not' => FALSE, |
|
169 | + ), |
|
170 | + 'context' => 'context_user_1', |
|
171 | + 'not' => FALSE, |
|
172 | + ), |
|
172 | 173 | ), |
173 | - ), |
|
174 | 174 | ); |
175 | 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, |
|
176 | + 'admin_title' => 'Moderation overview', |
|
177 | + 'title' => '', |
|
178 | + 'body' => '<?php print boinccore_moderation_overview_panel(); ?>', |
|
179 | + 'format' => '3', |
|
180 | + 'substitute' => 1, |
|
181 | 181 | ); |
182 | 182 | $pane->cache = array(); |
183 | 183 | $pane->style = array( |
184 | - 'settings' => NULL, |
|
184 | + 'settings' => NULL, |
|
185 | 185 | ); |
186 | 186 | $pane->css = array( |
187 | - 'css_id' => '', |
|
188 | - 'css_class' => 'panel-secondary container shadow', |
|
187 | + 'css_id' => '', |
|
188 | + 'css_class' => 'panel-secondary container shadow', |
|
189 | 189 | ); |
190 | 190 | $pane->extras = array(); |
191 | 191 | $pane->position = 0; |
@@ -199,16 +199,16 @@ discard block |
||
199 | 199 | $pane->shown = TRUE; |
200 | 200 | $pane->access = array(); |
201 | 201 | $pane->configuration = array( |
202 | - 'override_title' => 0, |
|
203 | - 'override_title_text' => '', |
|
202 | + 'override_title' => 0, |
|
203 | + 'override_title_text' => '', |
|
204 | 204 | ); |
205 | 205 | $pane->cache = array(); |
206 | 206 | $pane->style = array( |
207 | - 'settings' => NULL, |
|
207 | + 'settings' => NULL, |
|
208 | 208 | ); |
209 | 209 | $pane->css = array( |
210 | - 'css_id' => '', |
|
211 | - 'css_class' => 'panel-secondary container shadow', |
|
210 | + 'css_id' => '', |
|
211 | + 'css_class' => 'panel-secondary container shadow', |
|
212 | 212 | ); |
213 | 213 | $pane->extras = array(); |
214 | 214 | $pane->position = 1; |
@@ -222,23 +222,23 @@ discard block |
||
222 | 222 | $pane->shown = TRUE; |
223 | 223 | $pane->access = array(); |
224 | 224 | $pane->configuration = array( |
225 | - 'admin_title' => 'Team summary', |
|
226 | - 'title' => '', |
|
227 | - 'body' => '<?php |
|
225 | + 'admin_title' => 'Team summary', |
|
226 | + 'title' => '', |
|
227 | + 'body' => '<?php |
|
228 | 228 | if (module_exists(\'boincteam\')) { |
229 | 229 | echo boincteam_dashboard_panel(); |
230 | 230 | } |
231 | 231 | ?>', |
232 | - 'format' => '3', |
|
233 | - 'substitute' => 1, |
|
232 | + 'format' => '3', |
|
233 | + 'substitute' => 1, |
|
234 | 234 | ); |
235 | 235 | $pane->cache = array(); |
236 | 236 | $pane->style = array( |
237 | - 'settings' => NULL, |
|
237 | + 'settings' => NULL, |
|
238 | 238 | ); |
239 | 239 | $pane->css = array( |
240 | - 'css_id' => 'team-dashboard-pane', |
|
241 | - 'css_class' => 'panel-secondary container shadow', |
|
240 | + 'css_id' => 'team-dashboard-pane', |
|
241 | + 'css_class' => 'panel-secondary container shadow', |
|
242 | 242 | ); |
243 | 243 | $pane->extras = array(); |
244 | 244 | $pane->position = 2; |
@@ -252,9 +252,9 @@ discard block |
||
252 | 252 | $pane->shown = TRUE; |
253 | 253 | $pane->access = array(); |
254 | 254 | $pane->configuration = array( |
255 | - 'admin_title' => 'User activity summary', |
|
256 | - 'title' => '', |
|
257 | - 'body' => '<?php |
|
255 | + 'admin_title' => 'User activity summary', |
|
256 | + 'title' => '', |
|
257 | + 'body' => '<?php |
|
258 | 258 | |
259 | 259 | global $user; |
260 | 260 | $uid = $user->uid; |
@@ -263,16 +263,16 @@ discard block |
||
263 | 263 | echo \'<div class="item-count-wrapper"><div class="item-count">\' . $account->post_count . \'</div></div>\'; |
264 | 264 | |
265 | 265 | ?>', |
266 | - 'format' => '3', |
|
267 | - 'substitute' => 1, |
|
266 | + 'format' => '3', |
|
267 | + 'substitute' => 1, |
|
268 | 268 | ); |
269 | 269 | $pane->cache = array(); |
270 | 270 | $pane->style = array( |
271 | - 'settings' => NULL, |
|
271 | + 'settings' => NULL, |
|
272 | 272 | ); |
273 | 273 | $pane->css = array( |
274 | - 'css_id' => '', |
|
275 | - 'css_class' => 'panel-secondary container shadow', |
|
274 | + 'css_id' => '', |
|
275 | + 'css_class' => 'panel-secondary container shadow', |
|
276 | 276 | ); |
277 | 277 | $pane->extras = array(); |
278 | 278 | $pane->position = 3; |
@@ -286,74 +286,74 @@ discard block |
||
286 | 286 | $pane->shown = TRUE; |
287 | 287 | $pane->access = array(); |
288 | 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( |
|
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 | 302 | 0 => 'context_user_1.uid', |
303 | - ), |
|
304 | - 'override_title' => 0, |
|
305 | - 'override_title_text' => '', |
|
303 | + ), |
|
304 | + 'override_title' => 0, |
|
305 | + 'override_title_text' => '', |
|
306 | 306 | ); |
307 | 307 | $pane->cache = array(); |
308 | 308 | $pane->style = array( |
309 | - 'settings' => NULL, |
|
309 | + 'settings' => NULL, |
|
310 | 310 | ); |
311 | 311 | $pane->css = array( |
312 | - 'css_id' => '', |
|
313 | - 'css_class' => 'panel-secondary container shadow', |
|
312 | + 'css_id' => '', |
|
313 | + 'css_class' => 'panel-secondary container shadow', |
|
314 | 314 | ); |
315 | 315 | $pane->extras = array(); |
316 | 316 | $pane->position = 4; |
317 | 317 | $display->content['new-7'] = $pane; |
318 | 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; |
|
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 | 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( |
|
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 | 334 | 'type' => 'none', |
335 | 335 | 'settings' => NULL, |
336 | - ); |
|
337 | - $page->menu = array(); |
|
338 | - $page->arguments = array( |
|
336 | + ); |
|
337 | + $page->menu = array(); |
|
338 | + $page->arguments = array( |
|
339 | 339 | 'user' => array( |
340 | - 'id' => 1, |
|
341 | - 'identifier' => 'User: ID', |
|
342 | - 'name' => 'uid', |
|
343 | - 'settings' => array(), |
|
340 | + 'id' => 1, |
|
341 | + 'identifier' => 'User: ID', |
|
342 | + 'name' => 'uid', |
|
343 | + 'settings' => array(), |
|
344 | 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( |
|
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 | 357 | 'title' => 'Panel', |
358 | 358 | 'no_blocks' => 0, |
359 | 359 | 'pipeline' => 'standard', |
@@ -361,23 +361,23 @@ discard block |
||
361 | 361 | 'css' => '', |
362 | 362 | 'contexts' => array(), |
363 | 363 | 'relationships' => array(), |
364 | - ); |
|
365 | - $display = new panels_display; |
|
366 | - $display->layout = 'one_sidebar_second'; |
|
367 | - $display->layout_settings = array(); |
|
368 | - $display->panel_settings = array( |
|
364 | + ); |
|
365 | + $display = new panels_display; |
|
366 | + $display->layout = 'one_sidebar_second'; |
|
367 | + $display->layout_settings = array(); |
|
368 | + $display->panel_settings = array( |
|
369 | 369 | 'style_settings' => array( |
370 | - 'default' => NULL, |
|
371 | - 'content' => NULL, |
|
372 | - 'sidebar_first' => NULL, |
|
370 | + 'default' => NULL, |
|
371 | + 'content' => NULL, |
|
372 | + 'sidebar_first' => NULL, |
|
373 | 373 | ), |
374 | - ); |
|
375 | - $display->cache = array(); |
|
376 | - $display->title = 'Account'; |
|
377 | - $display->storage_type = 'page_manager'; |
|
378 | - $display->storage_id = 'page_boinc_user_panel_context_2'; |
|
379 | - $display->content = array(); |
|
380 | - $display->panels = array(); |
|
374 | + ); |
|
375 | + $display->cache = array(); |
|
376 | + $display->title = 'Account'; |
|
377 | + $display->storage_type = 'page_manager'; |
|
378 | + $display->storage_id = 'page_boinc_user_panel_context_2'; |
|
379 | + $display->content = array(); |
|
380 | + $display->panels = array(); |
|
381 | 381 | $pane = new stdClass; |
382 | 382 | $pane->pid = 'new-1'; |
383 | 383 | $pane->panel = 'content'; |
@@ -386,19 +386,19 @@ discard block |
||
386 | 386 | $pane->shown = TRUE; |
387 | 387 | $pane->access = array(); |
388 | 388 | $pane->configuration = array( |
389 | - 'context' => array( |
|
389 | + 'context' => array( |
|
390 | 390 | 0 => 'argument_uid_1', |
391 | - ), |
|
392 | - 'override_title' => 0, |
|
393 | - 'override_title_text' => '', |
|
391 | + ), |
|
392 | + 'override_title' => 0, |
|
393 | + 'override_title_text' => '', |
|
394 | 394 | ); |
395 | 395 | $pane->cache = array(); |
396 | 396 | $pane->style = array( |
397 | - 'settings' => NULL, |
|
397 | + 'settings' => NULL, |
|
398 | 398 | ); |
399 | 399 | $pane->css = array( |
400 | - 'css_id' => '', |
|
401 | - 'css_class' => 'panel-primary container shadow', |
|
400 | + 'css_id' => '', |
|
401 | + 'css_class' => 'panel-primary container shadow', |
|
402 | 402 | ); |
403 | 403 | $pane->extras = array(); |
404 | 404 | $pane->position = 0; |
@@ -412,16 +412,16 @@ discard block |
||
412 | 412 | $pane->shown = TRUE; |
413 | 413 | $pane->access = array(); |
414 | 414 | $pane->configuration = array( |
415 | - 'override_title' => 0, |
|
416 | - 'override_title_text' => '', |
|
415 | + 'override_title' => 0, |
|
416 | + 'override_title_text' => '', |
|
417 | 417 | ); |
418 | 418 | $pane->cache = array(); |
419 | 419 | $pane->style = array( |
420 | - 'settings' => NULL, |
|
420 | + 'settings' => NULL, |
|
421 | 421 | ); |
422 | 422 | $pane->css = array( |
423 | - 'css_id' => '', |
|
424 | - 'css_class' => 'panel-secondary container shadow', |
|
423 | + 'css_id' => '', |
|
424 | + 'css_class' => 'panel-secondary container shadow', |
|
425 | 425 | ); |
426 | 426 | $pane->extras = array(); |
427 | 427 | $pane->position = 0; |
@@ -435,23 +435,23 @@ discard block |
||
435 | 435 | $pane->shown = TRUE; |
436 | 436 | $pane->access = array(); |
437 | 437 | $pane->configuration = array( |
438 | - 'admin_title' => 'Team summary', |
|
439 | - 'title' => '', |
|
440 | - 'body' => '<?php |
|
438 | + 'admin_title' => 'Team summary', |
|
439 | + 'title' => '', |
|
440 | + 'body' => '<?php |
|
441 | 441 | if (module_exists(\'boincteam\')) { |
442 | 442 | echo boincteam_dashboard_panel(%user:uid); |
443 | 443 | } |
444 | 444 | ?>', |
445 | - 'format' => '3', |
|
446 | - 'substitute' => 1, |
|
445 | + 'format' => '3', |
|
446 | + 'substitute' => 1, |
|
447 | 447 | ); |
448 | 448 | $pane->cache = array(); |
449 | 449 | $pane->style = array( |
450 | - 'settings' => NULL, |
|
450 | + 'settings' => NULL, |
|
451 | 451 | ); |
452 | 452 | $pane->css = array( |
453 | - 'css_id' => 'team-dashboard-pane', |
|
454 | - 'css_class' => 'panel-secondary container shadow', |
|
453 | + 'css_id' => 'team-dashboard-pane', |
|
454 | + 'css_class' => 'panel-secondary container shadow', |
|
455 | 455 | ); |
456 | 456 | $pane->extras = array(); |
457 | 457 | $pane->position = 1; |
@@ -465,9 +465,9 @@ discard block |
||
465 | 465 | $pane->shown = TRUE; |
466 | 466 | $pane->access = array(); |
467 | 467 | $pane->configuration = array( |
468 | - 'admin_title' => 'User activity summary', |
|
469 | - 'title' => '', |
|
470 | - 'body' => '<?php |
|
468 | + 'admin_title' => 'User activity summary', |
|
469 | + 'title' => '', |
|
470 | + 'body' => '<?php |
|
471 | 471 | |
472 | 472 | $uid = arg(1); |
473 | 473 | $account = user_load($uid); |
@@ -475,16 +475,16 @@ discard block |
||
475 | 475 | echo \'<div class="item-count-wrapper"><div class="item-count">\' . $account->post_count . \'</div></div>\'; |
476 | 476 | |
477 | 477 | ?>', |
478 | - 'format' => '3', |
|
479 | - 'substitute' => 0, |
|
478 | + 'format' => '3', |
|
479 | + 'substitute' => 0, |
|
480 | 480 | ); |
481 | 481 | $pane->cache = array(); |
482 | 482 | $pane->style = array( |
483 | - 'settings' => NULL, |
|
483 | + 'settings' => NULL, |
|
484 | 484 | ); |
485 | 485 | $pane->css = array( |
486 | - 'css_id' => '', |
|
487 | - 'css_class' => 'panel-secondary container shadow', |
|
486 | + 'css_id' => '', |
|
487 | + 'css_class' => 'panel-secondary container shadow', |
|
488 | 488 | ); |
489 | 489 | $pane->extras = array(); |
490 | 490 | $pane->position = 2; |
@@ -498,31 +498,31 @@ discard block |
||
498 | 498 | $pane->shown = TRUE; |
499 | 499 | $pane->access = array(); |
500 | 500 | $pane->configuration = array( |
501 | - 'override_pager_settings' => 0, |
|
502 | - 'use_pager' => 0, |
|
503 | - 'nodes_per_page' => '6', |
|
504 | - 'pager_id' => '', |
|
505 | - 'offset' => '0', |
|
506 | - 'more_link' => 0, |
|
507 | - 'feed_icons' => 0, |
|
508 | - 'panel_args' => 0, |
|
509 | - 'link_to_view' => 0, |
|
510 | - 'args' => '', |
|
511 | - 'url' => '', |
|
512 | - 'display' => 'block_1', |
|
513 | - 'context' => array( |
|
501 | + 'override_pager_settings' => 0, |
|
502 | + 'use_pager' => 0, |
|
503 | + 'nodes_per_page' => '6', |
|
504 | + 'pager_id' => '', |
|
505 | + 'offset' => '0', |
|
506 | + 'more_link' => 0, |
|
507 | + 'feed_icons' => 0, |
|
508 | + 'panel_args' => 0, |
|
509 | + 'link_to_view' => 0, |
|
510 | + 'args' => '', |
|
511 | + 'url' => '', |
|
512 | + 'display' => 'block_1', |
|
513 | + 'context' => array( |
|
514 | 514 | 0 => 'argument_uid_1.uid', |
515 | - ), |
|
516 | - 'override_title' => 0, |
|
517 | - 'override_title_text' => '', |
|
515 | + ), |
|
516 | + 'override_title' => 0, |
|
517 | + 'override_title_text' => '', |
|
518 | 518 | ); |
519 | 519 | $pane->cache = array(); |
520 | 520 | $pane->style = array( |
521 | - 'settings' => NULL, |
|
521 | + 'settings' => NULL, |
|
522 | 522 | ); |
523 | 523 | $pane->css = array( |
524 | - 'css_id' => '', |
|
525 | - 'css_class' => 'panel-secondary container shadow', |
|
524 | + 'css_id' => '', |
|
525 | + 'css_class' => 'panel-secondary container shadow', |
|
526 | 526 | ); |
527 | 527 | $pane->extras = array(); |
528 | 528 | $pane->position = 3; |
@@ -536,66 +536,66 @@ discard block |
||
536 | 536 | $pane->shown = TRUE; |
537 | 537 | $pane->access = array(); |
538 | 538 | $pane->configuration = array( |
539 | - 'admin_title' => 'Project list', |
|
540 | - 'title' => 'Projects', |
|
541 | - 'body' => '<?php echo boincuser_get_projects_table(%user:uid); ?>', |
|
542 | - 'format' => '3', |
|
543 | - 'substitute' => 1, |
|
539 | + 'admin_title' => 'Project list', |
|
540 | + 'title' => 'Projects', |
|
541 | + 'body' => '<?php echo boincuser_get_projects_table(%user:uid); ?>', |
|
542 | + 'format' => '3', |
|
543 | + 'substitute' => 1, |
|
544 | 544 | ); |
545 | 545 | $pane->cache = array(); |
546 | 546 | $pane->style = array( |
547 | - 'settings' => NULL, |
|
547 | + 'settings' => NULL, |
|
548 | 548 | ); |
549 | 549 | $pane->css = array( |
550 | - 'css_id' => '', |
|
551 | - 'css_class' => 'panel-secondary container shadow', |
|
550 | + 'css_id' => '', |
|
551 | + 'css_class' => 'panel-secondary container shadow', |
|
552 | 552 | ); |
553 | 553 | $pane->extras = array(); |
554 | 554 | $pane->position = 4; |
555 | 555 | $display->content['new-6'] = $pane; |
556 | 556 | $display->panels['sidebar_first'][4] = 'new-6'; |
557 | - $display->hide_title = PANELS_TITLE_FIXED; |
|
558 | - $display->title_pane = '0'; |
|
559 | - $handler->conf['display'] = $display; |
|
560 | - $page->default_handlers[$handler->name] = $handler; |
|
561 | - $pages['boinc_user'] = $page; |
|
557 | + $display->hide_title = PANELS_TITLE_FIXED; |
|
558 | + $display->title_pane = '0'; |
|
559 | + $handler->conf['display'] = $display; |
|
560 | + $page->default_handlers[$handler->name] = $handler; |
|
561 | + $pages['boinc_user'] = $page; |
|
562 | 562 | |
563 | - $page = new stdClass; |
|
564 | - $page->disabled = FALSE; /* Edit this to true to make a default page disabled initially */ |
|
565 | - $page->api_version = 1; |
|
566 | - $page->name = 'home'; |
|
567 | - $page->task = 'page'; |
|
568 | - $page->admin_title = 'Home page'; |
|
569 | - $page->admin_description = ''; |
|
570 | - $page->path = 'home'; |
|
571 | - $page->access = array( |
|
563 | + $page = new stdClass; |
|
564 | + $page->disabled = FALSE; /* Edit this to true to make a default page disabled initially */ |
|
565 | + $page->api_version = 1; |
|
566 | + $page->name = 'home'; |
|
567 | + $page->task = 'page'; |
|
568 | + $page->admin_title = 'Home page'; |
|
569 | + $page->admin_description = ''; |
|
570 | + $page->path = 'home'; |
|
571 | + $page->access = array( |
|
572 | 572 | 'type' => 'none', |
573 | 573 | 'settings' => NULL, |
574 | - ); |
|
575 | - $page->menu = array( |
|
574 | + ); |
|
575 | + $page->menu = array( |
|
576 | 576 | 'type' => 'normal', |
577 | 577 | 'title' => 'Home', |
578 | 578 | 'name' => 'navigation', |
579 | 579 | 'weight' => '0', |
580 | 580 | 'parent' => array( |
581 | - 'type' => 'none', |
|
582 | - 'title' => '', |
|
583 | - 'name' => 'navigation', |
|
584 | - 'weight' => '0', |
|
581 | + 'type' => 'none', |
|
582 | + 'title' => '', |
|
583 | + 'name' => 'navigation', |
|
584 | + 'weight' => '0', |
|
585 | 585 | ), |
586 | - ); |
|
587 | - $page->arguments = array(); |
|
588 | - $page->conf = array(); |
|
589 | - $page->default_handlers = array(); |
|
590 | - $handler = new stdClass; |
|
591 | - $handler->disabled = FALSE; /* Edit this to true to make a default handler disabled initially */ |
|
592 | - $handler->api_version = 1; |
|
593 | - $handler->name = 'page_home_panel_context'; |
|
594 | - $handler->task = 'page'; |
|
595 | - $handler->subtask = 'home'; |
|
596 | - $handler->handler = 'panel_context'; |
|
597 | - $handler->weight = 0; |
|
598 | - $handler->conf = array( |
|
586 | + ); |
|
587 | + $page->arguments = array(); |
|
588 | + $page->conf = array(); |
|
589 | + $page->default_handlers = array(); |
|
590 | + $handler = new stdClass; |
|
591 | + $handler->disabled = FALSE; /* Edit this to true to make a default handler disabled initially */ |
|
592 | + $handler->api_version = 1; |
|
593 | + $handler->name = 'page_home_panel_context'; |
|
594 | + $handler->task = 'page'; |
|
595 | + $handler->subtask = 'home'; |
|
596 | + $handler->handler = 'panel_context'; |
|
597 | + $handler->weight = 0; |
|
598 | + $handler->conf = array( |
|
599 | 599 | 'title' => 'Landing page', |
600 | 600 | 'no_blocks' => FALSE, |
601 | 601 | 'pipeline' => 'ipe', |
@@ -603,23 +603,23 @@ discard block |
||
603 | 603 | 'css' => '', |
604 | 604 | 'contexts' => array(), |
605 | 605 | 'relationships' => array(), |
606 | - ); |
|
607 | - $display = new panels_display; |
|
608 | - $display->layout = 'one_sidebar_second'; |
|
609 | - $display->layout_settings = array(); |
|
610 | - $display->panel_settings = array( |
|
606 | + ); |
|
607 | + $display = new panels_display; |
|
608 | + $display->layout = 'one_sidebar_second'; |
|
609 | + $display->layout_settings = array(); |
|
610 | + $display->panel_settings = array( |
|
611 | 611 | 'style_settings' => array( |
612 | - 'default' => NULL, |
|
613 | - 'content' => NULL, |
|
614 | - 'sidebar_first' => NULL, |
|
612 | + 'default' => NULL, |
|
613 | + 'content' => NULL, |
|
614 | + 'sidebar_first' => NULL, |
|
615 | 615 | ), |
616 | - ); |
|
617 | - $display->cache = array(); |
|
618 | - $display->title = ''; |
|
619 | - $display->storage_type = 'page_manager'; |
|
620 | - $display->storage_id = 'page_home_panel_context'; |
|
621 | - $display->content = array(); |
|
622 | - $display->panels = array(); |
|
616 | + ); |
|
617 | + $display->cache = array(); |
|
618 | + $display->title = ''; |
|
619 | + $display->storage_type = 'page_manager'; |
|
620 | + $display->storage_id = 'page_home_panel_context'; |
|
621 | + $display->content = array(); |
|
622 | + $display->panels = array(); |
|
623 | 623 | $pane = new stdClass; |
624 | 624 | $pane->pid = 'new-1'; |
625 | 625 | $pane->panel = 'content'; |
@@ -627,22 +627,22 @@ discard block |
||
627 | 627 | $pane->subtype = 'custom'; |
628 | 628 | $pane->shown = TRUE; |
629 | 629 | $pane->access = array( |
630 | - 'plugins' => array(), |
|
630 | + 'plugins' => array(), |
|
631 | 631 | ); |
632 | 632 | $pane->configuration = array( |
633 | - 'admin_title' => 'BOINC overview', |
|
634 | - 'title' => '', |
|
635 | - 'body' => '<?php print boincuser_home_page(); ?>', |
|
636 | - 'format' => '3', |
|
637 | - 'substitute' => TRUE, |
|
633 | + 'admin_title' => 'BOINC overview', |
|
634 | + 'title' => '', |
|
635 | + 'body' => '<?php print boincuser_home_page(); ?>', |
|
636 | + 'format' => '3', |
|
637 | + 'substitute' => TRUE, |
|
638 | 638 | ); |
639 | 639 | $pane->cache = array(); |
640 | 640 | $pane->style = array( |
641 | - 'settings' => NULL, |
|
641 | + 'settings' => NULL, |
|
642 | 642 | ); |
643 | 643 | $pane->css = array( |
644 | - 'css_id' => '', |
|
645 | - 'css_class' => 'panel-primary container shadow', |
|
644 | + 'css_id' => '', |
|
645 | + 'css_class' => 'panel-primary container shadow', |
|
646 | 646 | ); |
647 | 647 | $pane->extras = array(); |
648 | 648 | $pane->position = 0; |
@@ -656,16 +656,16 @@ discard block |
||
656 | 656 | $pane->shown = TRUE; |
657 | 657 | $pane->access = array(); |
658 | 658 | $pane->configuration = array( |
659 | - 'override_title' => 0, |
|
660 | - 'override_title_text' => '', |
|
659 | + 'override_title' => 0, |
|
660 | + 'override_title_text' => '', |
|
661 | 661 | ); |
662 | 662 | $pane->cache = array(); |
663 | 663 | $pane->style = array( |
664 | - 'settings' => NULL, |
|
664 | + 'settings' => NULL, |
|
665 | 665 | ); |
666 | 666 | $pane->css = array( |
667 | - 'css_id' => '', |
|
668 | - 'css_class' => 'panel-secondary container shadow balance-height-front no-resize', |
|
667 | + 'css_id' => '', |
|
668 | + 'css_class' => 'panel-secondary container shadow balance-height-front no-resize', |
|
669 | 669 | ); |
670 | 670 | $pane->extras = array(); |
671 | 671 | $pane->position = 0; |
@@ -679,39 +679,39 @@ discard block |
||
679 | 679 | $pane->shown = TRUE; |
680 | 680 | $pane->access = array(); |
681 | 681 | $pane->configuration = array( |
682 | - 'override_pager_settings' => 1, |
|
683 | - 'use_pager' => 0, |
|
684 | - 'nodes_per_page' => '2', |
|
685 | - 'pager_id' => '', |
|
686 | - 'offset' => '0', |
|
687 | - 'more_link' => 1, |
|
688 | - 'feed_icons' => 1, |
|
689 | - 'panel_args' => 0, |
|
690 | - 'link_to_view' => 0, |
|
691 | - 'args' => '', |
|
692 | - 'url' => '', |
|
693 | - 'display' => 'page_2', |
|
694 | - 'override_title' => 1, |
|
695 | - 'override_title_text' => '', |
|
682 | + 'override_pager_settings' => 1, |
|
683 | + 'use_pager' => 0, |
|
684 | + 'nodes_per_page' => '2', |
|
685 | + 'pager_id' => '', |
|
686 | + 'offset' => '0', |
|
687 | + 'more_link' => 1, |
|
688 | + 'feed_icons' => 1, |
|
689 | + 'panel_args' => 0, |
|
690 | + 'link_to_view' => 0, |
|
691 | + 'args' => '', |
|
692 | + 'url' => '', |
|
693 | + 'display' => 'page_2', |
|
694 | + 'override_title' => 1, |
|
695 | + 'override_title_text' => '', |
|
696 | 696 | ); |
697 | 697 | $pane->cache = array(); |
698 | 698 | $pane->style = array( |
699 | - 'settings' => NULL, |
|
699 | + 'settings' => NULL, |
|
700 | 700 | ); |
701 | 701 | $pane->css = array( |
702 | - 'css_id' => '', |
|
703 | - 'css_class' => 'panel-secondary container shadow balance-height-front', |
|
702 | + 'css_id' => '', |
|
703 | + 'css_class' => 'panel-secondary container shadow balance-height-front', |
|
704 | 704 | ); |
705 | 705 | $pane->extras = array(); |
706 | 706 | $pane->position = 1; |
707 | 707 | $display->content['new-3'] = $pane; |
708 | 708 | $display->panels['sidebar_first'][1] = 'new-3'; |
709 | - $display->hide_title = PANELS_TITLE_NONE; |
|
710 | - $display->title_pane = '0'; |
|
711 | - $handler->conf['display'] = $display; |
|
712 | - $page->default_handlers[$handler->name] = $handler; |
|
713 | - $pages['home'] = $page; |
|
709 | + $display->hide_title = PANELS_TITLE_NONE; |
|
710 | + $display->title_pane = '0'; |
|
711 | + $handler->conf['display'] = $display; |
|
712 | + $page->default_handlers[$handler->name] = $handler; |
|
713 | + $pages['home'] = $page; |
|
714 | 714 | |
715 | - return $pages; |
|
715 | + return $pages; |
|
716 | 716 | |
717 | 717 | } |
@@ -67,13 +67,13 @@ discard block |
||
67 | 67 | * Implementation of HOOK_theme(). |
68 | 68 | */ |
69 | 69 | function boinc_theme(&$existing, $type, $theme, $path) { |
70 | - $hooks = zen_theme($existing, $type, $theme, $path); |
|
71 | - // Add your theme hooks like this: |
|
72 | - /* |
|
70 | + $hooks = zen_theme($existing, $type, $theme, $path); |
|
71 | + // Add your theme hooks like this: |
|
72 | + /* |
|
73 | 73 | $hooks['hook_name_here'] = array( // Details go here ); |
74 | 74 | */ |
75 | - // @TODO: Needs detailed comments. Patches welcome! |
|
76 | - return $hooks; |
|
75 | + // @TODO: Needs detailed comments. Patches welcome! |
|
76 | + return $hooks; |
|
77 | 77 | } |
78 | 78 | |
79 | 79 | |
@@ -81,43 +81,43 @@ discard block |
||
81 | 81 | * Adjust the rendering of the menu |
82 | 82 | */ |
83 | 83 | function boinc_links__system_main_menu($links, $menu, $element) { |
84 | - $html .= '<ul id="' . $menu['id'] . '" class="' . $menu['class'] . '">' . "\n"; |
|
85 | - $item_count = count($links); |
|
86 | - $i = 1; |
|
87 | - foreach ($links as $key => $link) { |
|
84 | + $html .= '<ul id="' . $menu['id'] . '" class="' . $menu['class'] . '">' . "\n"; |
|
85 | + $item_count = count($links); |
|
86 | + $i = 1; |
|
87 | + foreach ($links as $key => $link) { |
|
88 | 88 | $classes = array($key); |
89 | 89 | if (strpos($key, 'active-trail')) $classes[] = 'active'; |
90 | 90 | if ($i == 1) $classes[] = 'first'; |
91 | 91 | if ($i == $item_count) $classes[] = 'last'; |
92 | 92 | $html .= '<li class="' . implode(' ', $classes) .'">'; |
93 | 93 | if ($link['title'] == 'Home') { |
94 | - $link['title'] = bts('Home', array(), NULL, 'boinc:menu-link'); |
|
94 | + $link['title'] = bts('Home', array(), NULL, 'boinc:menu-link'); |
|
95 | 95 | } |
96 | 96 | if (module_exists('privatemsg')) { |
97 | - // Put a new mail notification next to the Account menu item |
|
98 | - if ($link['href'] == 'dashboard') { |
|
97 | + // Put a new mail notification next to the Account menu item |
|
98 | + if ($link['href'] == 'dashboard') { |
|
99 | 99 | $item_count = privatemsg_unread_count(); |
100 | 100 | if ($item_count) { |
101 | - $link['title'] .= '</a> <a href="' . url('messages') . '" class="compound secondary"><div class="item-count-wrapper"><span class="item-count">' . $item_count . '</span></div>'; |
|
102 | - $link['html'] = TRUE; |
|
103 | - $link['attributes']['class'] = 'compound'; |
|
101 | + $link['title'] .= '</a> <a href="' . url('messages') . '" class="compound secondary"><div class="item-count-wrapper"><span class="item-count">' . $item_count . '</span></div>'; |
|
102 | + $link['html'] = TRUE; |
|
103 | + $link['attributes']['class'] = 'compound'; |
|
104 | + } |
|
104 | 105 | } |
105 | - } |
|
106 | 106 | } |
107 | 107 | // Put a count of items on the Moderation menu item |
108 | 108 | if ($link['href'] == 'moderate') { |
109 | - $item_count = boincuser_moderation_queue_count(); |
|
110 | - if ($item_count) { |
|
109 | + $item_count = boincuser_moderation_queue_count(); |
|
110 | + if ($item_count) { |
|
111 | 111 | $link['title'] .= ' <div class="item-count-wrapper"><span class="item-count">' . $item_count . '</span></div>'; |
112 | 112 | $link['html'] = TRUE; |
113 | - } |
|
113 | + } |
|
114 | 114 | } |
115 | 115 | $html .= l($link['title'], $link['href'], $link); |
116 | 116 | $html .= '</li>'; |
117 | 117 | $i++; |
118 | - } |
|
119 | - $html .= '</ul>' . "\n"; |
|
120 | - return $html; |
|
118 | + } |
|
119 | + $html .= '</ul>' . "\n"; |
|
120 | + return $html; |
|
121 | 121 | } |
122 | 122 | |
123 | 123 | |
@@ -125,14 +125,14 @@ discard block |
||
125 | 125 | * Remove undesired local task tabs |
126 | 126 | */ |
127 | 127 | function boinc_menu_local_task($link, $active = FALSE) { |
128 | - if (strpos($link, 'admin/build/pages') !== FALSE |
|
128 | + if (strpos($link, 'admin/build/pages') !== FALSE |
|
129 | 129 | AND strpos($link, 'Edit Panel')) { |
130 | 130 | // Remove Edit Panel tab |
131 | 131 | return ''; |
132 | - } |
|
133 | - else { |
|
132 | + } |
|
133 | + else { |
|
134 | 134 | return '<li '. ($active ? 'class="active" ' : '') .'>'. $link ."</li>\n"; |
135 | - } |
|
135 | + } |
|
136 | 136 | } |
137 | 137 | |
138 | 138 | |
@@ -168,99 +168,99 @@ discard block |
||
168 | 168 | * The name of the template being rendered ("page" in this case.) |
169 | 169 | */ |
170 | 170 | function boinc_preprocess_page(&$vars, $hook) { |
171 | - // Responsive Design: Add viewport meta tag to HTML head |
|
172 | - drupal_set_html_head('<meta name="viewport" content="width=device-width, initial-scale=1.0" />'); |
|
173 | - $vars['head'] = drupal_get_html_head(); |
|
174 | - //dpm($vars['head'], "preprocess (all) vars[head]"); |
|
175 | - |
|
176 | - // Expose comments to template files; this is needed so that comments can be |
|
177 | - // rendered in locations other than directly below the node content |
|
178 | - $vars['comments'] = $vars['comment_form'] = ''; |
|
179 | - if (module_exists('comment') && isset($vars['node'])) { |
|
171 | + // Responsive Design: Add viewport meta tag to HTML head |
|
172 | + drupal_set_html_head('<meta name="viewport" content="width=device-width, initial-scale=1.0" />'); |
|
173 | + $vars['head'] = drupal_get_html_head(); |
|
174 | + //dpm($vars['head'], "preprocess (all) vars[head]"); |
|
175 | + |
|
176 | + // Expose comments to template files; this is needed so that comments can be |
|
177 | + // rendered in locations other than directly below the node content |
|
178 | + $vars['comments'] = $vars['comment_form'] = ''; |
|
179 | + if (module_exists('comment') && isset($vars['node'])) { |
|
180 | 180 | $vars['comments'] = comment_render($vars['node']); |
181 | 181 | $vars['comment_form'] = drupal_get_form('comment_form', array('nid' => $vars['node']->nid)); |
182 | - } |
|
182 | + } |
|
183 | 183 | |
184 | - // Determine locale region code so the correct flag is displayed in footer |
|
185 | - global $language; |
|
186 | - global $theme_path; |
|
187 | - $locality = $language->language; |
|
188 | - if (strpos($language->language, '-')) { |
|
184 | + // Determine locale region code so the correct flag is displayed in footer |
|
185 | + global $language; |
|
186 | + global $theme_path; |
|
187 | + $locality = $language->language; |
|
188 | + if (strpos($language->language, '-')) { |
|
189 | 189 | $flag_icon = "{$theme_path}/images/flags/{$language->language}.png"; |
190 | 190 | if (!file_exists($flag_icon)) { |
191 | - $lang_code = explode('-', $language->language); |
|
192 | - $locality = $lang_code[0]; |
|
191 | + $lang_code = explode('-', $language->language); |
|
192 | + $locality = $lang_code[0]; |
|
193 | 193 | } |
194 | - } |
|
195 | - $vars['flag_path'] = base_path() . path_to_theme() . "/images/flags/{$locality}.png"; |
|
194 | + } |
|
195 | + $vars['flag_path'] = base_path() . path_to_theme() . "/images/flags/{$locality}.png"; |
|
196 | 196 | |
197 | - $server_status_url = variable_get('boinc_server_status_url', ''); |
|
198 | - if (!$server_status_url) { |
|
197 | + $server_status_url = variable_get('boinc_server_status_url', ''); |
|
198 | + if (!$server_status_url) { |
|
199 | 199 | $server_status_url = 'server_status.php'; |
200 | - } |
|
201 | - $vars['server_status_url'] = $server_status_url; |
|
200 | + } |
|
201 | + $vars['server_status_url'] = $server_status_url; |
|
202 | 202 | |
203 | - $app_list_url = variable_get('boinc_app_list_url', ''); |
|
204 | - if (!$app_list_url) { |
|
203 | + $app_list_url = variable_get('boinc_app_list_url', ''); |
|
204 | + if (!$app_list_url) { |
|
205 | 205 | $app_list_url = 'apps.php'; |
206 | - } |
|
207 | - $vars['app_list_url'] = $app_list_url; |
|
208 | - |
|
209 | - // Remove title from certain pages using URL. |
|
210 | - // This is a kludge to remove the title of the page but not the |
|
211 | - // "head_title" which is placed in the HTML <head> section. Most of |
|
212 | - // these pages are defined in the Page Manager module. |
|
213 | - // See: https://dev.gridrepublic.org/browse/DBOINC-65 |
|
214 | - if (arg(0) == 'search') { |
|
206 | + } |
|
207 | + $vars['app_list_url'] = $app_list_url; |
|
208 | + |
|
209 | + // Remove title from certain pages using URL. |
|
210 | + // This is a kludge to remove the title of the page but not the |
|
211 | + // "head_title" which is placed in the HTML <head> section. Most of |
|
212 | + // these pages are defined in the Page Manager module. |
|
213 | + // See: https://dev.gridrepublic.org/browse/DBOINC-65 |
|
214 | + if (arg(0) == 'search') { |
|
215 | 215 | unset($vars['title']); |
216 | - } |
|
217 | - else if ( (arg(0)=='account') AND (is_numeric(arg(1))) AND (empty(arg(2))) ) { |
|
216 | + } |
|
217 | + else if ( (arg(0)=='account') AND (is_numeric(arg(1))) AND (empty(arg(2))) ) { |
|
218 | 218 | unset($vars['title']); |
219 | - } |
|
220 | - else if ( (arg(0)=='account') AND (arg(1)=='profile') ) { |
|
219 | + } |
|
220 | + else if ( (arg(0)=='account') AND (arg(1)=='profile') ) { |
|
221 | 221 | unset($vars['title']); |
222 | - } |
|
223 | - else if ( (arg(0)=='dashboard') ) { |
|
222 | + } |
|
223 | + else if ( (arg(0)=='dashboard') ) { |
|
224 | 224 | unset($vars['title']); |
225 | - } |
|
226 | - else if ( (arg(0)=='community') AND ( (arg(1)=='teams') OR (arg(1)=='stats') ) ) { |
|
225 | + } |
|
226 | + else if ( (arg(0)=='community') AND ( (arg(1)=='teams') OR (arg(1)=='stats') ) ) { |
|
227 | 227 | unset($vars['title']); |
228 | - } |
|
228 | + } |
|
229 | 229 | |
230 | - // Apply classes to tabs to allow for better styling options |
|
231 | - $tabs = explode("\n", $vars['tabs']); |
|
232 | - array_pop($tabs); |
|
233 | - end($tabs); |
|
234 | - $last_key = key($tabs); |
|
235 | - |
|
236 | - foreach ($tabs as $key => &$tab) { |
|
237 | - if (strpos($tab, 'li class=')) { |
|
238 | - if ($key == 0) { |
|
239 | - $tab = str_replace('li class="', 'li class="first ', $tab); |
|
240 | - } |
|
241 | - if ($key == $last_key) { |
|
242 | - $tab = str_replace('li class="', 'li class="last ', $tab) . '</ul>'; |
|
243 | - } |
|
244 | - } |
|
245 | - elseif (strpos($tab, 'li ')) { |
|
246 | - if ($key == 0) { |
|
247 | - $tab = str_replace('li ', 'li class="first" ', $tab); |
|
248 | - } |
|
249 | - if ($key == $last_key) { |
|
250 | - $tab = str_replace('li ', 'li class="last" ', $tab) . '</ul>'; |
|
251 | - } |
|
252 | - } |
|
253 | - } |
|
254 | - $vars['tabs'] = implode("\n", $tabs); |
|
230 | + // Apply classes to tabs to allow for better styling options |
|
231 | + $tabs = explode("\n", $vars['tabs']); |
|
232 | + array_pop($tabs); |
|
233 | + end($tabs); |
|
234 | + $last_key = key($tabs); |
|
235 | + |
|
236 | + foreach ($tabs as $key => &$tab) { |
|
237 | + if (strpos($tab, 'li class=')) { |
|
238 | + if ($key == 0) { |
|
239 | + $tab = str_replace('li class="', 'li class="first ', $tab); |
|
240 | + } |
|
241 | + if ($key == $last_key) { |
|
242 | + $tab = str_replace('li class="', 'li class="last ', $tab) . '</ul>'; |
|
243 | + } |
|
244 | + } |
|
245 | + elseif (strpos($tab, 'li ')) { |
|
246 | + if ($key == 0) { |
|
247 | + $tab = str_replace('li ', 'li class="first" ', $tab); |
|
248 | + } |
|
249 | + if ($key == $last_key) { |
|
250 | + $tab = str_replace('li ', 'li class="last" ', $tab) . '</ul>'; |
|
251 | + } |
|
252 | + } |
|
253 | + } |
|
254 | + $vars['tabs'] = implode("\n", $tabs); |
|
255 | 255 | |
256 | - // Get the main menu but only for the branch the page is on. |
|
257 | - $vars['menu_tree_onlyactive'] = menu_tree('primary-links'); |
|
256 | + // Get the main menu but only for the branch the page is on. |
|
257 | + $vars['menu_tree_onlyactive'] = menu_tree('primary-links'); |
|
258 | 258 | |
259 | - // Create tertiary menu |
|
260 | - $vars['tertiary_links'] = menu_navigation_links(variable_get('menu_primary_links_source', 'primary-links'), 2); |
|
259 | + // Create tertiary menu |
|
260 | + $vars['tertiary_links'] = menu_navigation_links(variable_get('menu_primary_links_source', 'primary-links'), 2); |
|
261 | 261 | |
262 | - // Create action links |
|
263 | - $vars['action_links'] = _boinc_action_links(); |
|
262 | + // Create action links |
|
263 | + $vars['action_links'] = _boinc_action_links(); |
|
264 | 264 | } |
265 | 265 | |
266 | 266 | /** |
@@ -273,76 +273,76 @@ discard block |
||
273 | 273 | */ |
274 | 274 | function boinc_preprocess_node(&$vars, $hook) { |
275 | 275 | |
276 | - //$vars['sample_variable'] = t('Lorem ipsum.'); |
|
276 | + //$vars['sample_variable'] = t('Lorem ipsum.'); |
|
277 | 277 | |
278 | - // Detach subscribe link from the links list. Subscribe link will be placed |
|
279 | - // on page separately from links. |
|
280 | - if (!empty($vars['node']->links['flag-subscriptions']['title'])) { |
|
278 | + // Detach subscribe link from the links list. Subscribe link will be placed |
|
279 | + // on page separately from links. |
|
280 | + if (!empty($vars['node']->links['flag-subscriptions']['title'])) { |
|
281 | 281 | $vars['subscribe_link'] = $vars['node']->links['flag-subscriptions']['title']; |
282 | 282 | unset($vars['node']->links['flag-subscriptions']); |
283 | - } |
|
283 | + } |
|
284 | 284 | |
285 | - // Optionally, run node-type-specific preprocess functions, like |
|
286 | - // boinc_preprocess_node_page() or boinc_preprocess_node_story(). |
|
287 | - $function = __FUNCTION__ . '_' . $vars['node']->type; |
|
288 | - if (function_exists($function)) { |
|
285 | + // Optionally, run node-type-specific preprocess functions, like |
|
286 | + // boinc_preprocess_node_page() or boinc_preprocess_node_story(). |
|
287 | + $function = __FUNCTION__ . '_' . $vars['node']->type; |
|
288 | + if (function_exists($function)) { |
|
289 | 289 | $function($vars, $hook); |
290 | - } |
|
290 | + } |
|
291 | 291 | } |
292 | 292 | |
293 | 293 | /** |
294 | 294 | * Preprocessing for forum lists |
295 | 295 | */ |
296 | 296 | function boinc_preprocess_forums(&$vars, $hook) { |
297 | - // Add a link to mark all forums as read |
|
298 | - module_load_include('inc', 'forum_tweaks', 'includes/mark-read'); |
|
299 | - forum_tweaks_get_mark_read_link($vars['tid'], $vars['links']); |
|
300 | - if (!$vars['parents']) { |
|
297 | + // Add a link to mark all forums as read |
|
298 | + module_load_include('inc', 'forum_tweaks', 'includes/mark-read'); |
|
299 | + forum_tweaks_get_mark_read_link($vars['tid'], $vars['links']); |
|
300 | + if (!$vars['parents']) { |
|
301 | 301 | // Remove the "Post new forum topic" link from the top level forum list |
302 | 302 | unset($vars['links']['forum']); |
303 | 303 | // Add a link to manage subscriptions for the user |
304 | 304 | $vars['links']['subscriptions'] = array( |
305 | - 'title' => bts('Manage subscriptions', array(), NULL, 'boinc:forum-footer'), |
|
306 | - 'href' => 'account/prefs/subscriptions', |
|
305 | + 'title' => bts('Manage subscriptions', array(), NULL, 'boinc:forum-footer'), |
|
306 | + 'href' => 'account/prefs/subscriptions', |
|
307 | 307 | ); |
308 | - } |
|
308 | + } |
|
309 | 309 | } |
310 | 310 | |
311 | 311 | /** |
312 | 312 | * Preprocessing for forum type nodes |
313 | 313 | */ |
314 | 314 | function boinc_preprocess_node_forum(&$vars, $hook) { |
315 | - global $language; |
|
316 | - global $user; |
|
315 | + global $language; |
|
316 | + global $user; |
|
317 | 317 | |
318 | - // Locality |
|
319 | - $vars['locality'] = $language->language; |
|
318 | + // Locality |
|
319 | + $vars['locality'] = $language->language; |
|
320 | 320 | |
321 | - // Get the author of the node |
|
322 | - $account = user_load($vars['uid']); |
|
323 | - $comments_per_page = ($user->comments_per_page) ? $user->comments_per_page : variable_get("comment_default_per_page_{$vars['node']->type}", 50); |
|
321 | + // Get the author of the node |
|
322 | + $account = user_load($vars['uid']); |
|
323 | + $comments_per_page = ($user->comments_per_page) ? $user->comments_per_page : variable_get("comment_default_per_page_{$vars['node']->type}", 50); |
|
324 | 324 | |
325 | - // Add signature |
|
326 | - $vars['signature'] = check_markup($account->signature, $vars['node']->format); |
|
325 | + // Add signature |
|
326 | + $vars['signature'] = check_markup($account->signature, $vars['node']->format); |
|
327 | 327 | |
328 | - // Show signatures based on user preference |
|
329 | - $vars['show_signatures'] = ($user->hide_signatures) ? FALSE : TRUE; |
|
328 | + // Show signatures based on user preference |
|
329 | + $vars['show_signatures'] = ($user->hide_signatures) ? FALSE : TRUE; |
|
330 | 330 | |
331 | - // Expose comment sort order so that the template can put the topic node |
|
332 | - // content (i.e. initial post) at the very end if "Newest post first" is the |
|
333 | - // preference used by this user |
|
334 | - $vars['oldest_post_first'] = ($user->sort != 1) ? TRUE : FALSE; |
|
335 | - $vars['node']->comment = 0; |
|
331 | + // Expose comment sort order so that the template can put the topic node |
|
332 | + // content (i.e. initial post) at the very end if "Newest post first" is the |
|
333 | + // preference used by this user |
|
334 | + $vars['oldest_post_first'] = ($user->sort != 1) ? TRUE : FALSE; |
|
335 | + $vars['node']->comment = 0; |
|
336 | 336 | |
337 | - $vars['first_page'] = (!isset($_GET['page']) OR ($_GET['page'] < 1)); |
|
338 | - $page_count = max(ceil($vars['comment_count'] / $comments_per_page), 1); |
|
339 | - $vars['last_page'] = ($page_count == 1 OR ($page_count > 1 AND $_GET['page'] == $page_count - 1)); |
|
340 | - |
|
341 | - $links = $vars['links']; |
|
342 | - $moderator_links = array(); |
|
343 | - _boinc_create_moderator_links($links, $moderator_links); |
|
344 | - $vars['links'] = $links; |
|
345 | - $vars['moderator_links'] = $moderator_links; |
|
337 | + $vars['first_page'] = (!isset($_GET['page']) OR ($_GET['page'] < 1)); |
|
338 | + $page_count = max(ceil($vars['comment_count'] / $comments_per_page), 1); |
|
339 | + $vars['last_page'] = ($page_count == 1 OR ($page_count > 1 AND $_GET['page'] == $page_count - 1)); |
|
340 | + |
|
341 | + $links = $vars['links']; |
|
342 | + $moderator_links = array(); |
|
343 | + _boinc_create_moderator_links($links, $moderator_links); |
|
344 | + $vars['links'] = $links; |
|
345 | + $vars['moderator_links'] = $moderator_links; |
|
346 | 346 | } |
347 | 347 | |
348 | 348 | |
@@ -363,45 +363,45 @@ discard block |
||
363 | 363 | * The name of the template being rendered ("comment" in this case.) |
364 | 364 | */ |
365 | 365 | function boinc_preprocess_comment(&$vars, $hook) { |
366 | - global $language; |
|
367 | - global $user; |
|
366 | + global $language; |
|
367 | + global $user; |
|
368 | 368 | |
369 | - // Locality |
|
370 | - $vars['locality'] = $language->language; |
|
369 | + // Locality |
|
370 | + $vars['locality'] = $language->language; |
|
371 | 371 | |
372 | - // Show signatures based on user preference |
|
373 | - $vars['show_signatures'] = ($user->hide_signatures) ? FALSE : TRUE; |
|
372 | + // Show signatures based on user preference |
|
373 | + $vars['show_signatures'] = ($user->hide_signatures) ? FALSE : TRUE; |
|
374 | 374 | |
375 | - $links = $vars['links']; |
|
376 | - $moderator_links = array(); |
|
377 | - _boinc_create_moderator_links($links, $moderator_links); |
|
378 | - $vars['links'] = $links; |
|
379 | - $vars['moderator_links'] = $moderator_links; |
|
375 | + $links = $vars['links']; |
|
376 | + $moderator_links = array(); |
|
377 | + _boinc_create_moderator_links($links, $moderator_links); |
|
378 | + $vars['links'] = $links; |
|
379 | + $vars['moderator_links'] = $moderator_links; |
|
380 | 380 | } |
381 | 381 | |
382 | 382 | /** |
383 | 383 | * |
384 | 384 | */ |
385 | 385 | function boinc_preprocess_forum_topic_list(&$variables) { |
386 | - if (!empty($variables['topics'])) { |
|
386 | + if (!empty($variables['topics'])) { |
|
387 | 387 | foreach ($variables['topics'] as $id => $topic) { |
388 | - if ($topic->new_replies) { |
|
388 | + if ($topic->new_replies) { |
|
389 | 389 | $cid = boincuser_get_first_unread_comment_id($topic->nid); |
390 | 390 | if ($cid) { |
391 | - $variables['topics'][$id]->new_url = url("goto/comment/{$cid}"); |
|
391 | + $variables['topics'][$id]->new_url = url("goto/comment/{$cid}"); |
|
392 | 392 | } |
393 | 393 | else { |
394 | - // User hasn't visited this topic before, so all replies are new... |
|
395 | - $topic->new_replies = NULL; |
|
394 | + // User hasn't visited this topic before, so all replies are new... |
|
395 | + $topic->new_replies = NULL; |
|
396 | 396 | } |
397 | - } |
|
398 | - // Use same logic in forum.module to change message if topic has |
|
399 | - // moved. Changed link to match boinc path-added "community". |
|
400 | - if ($topic->forum_tid != $variables['tid']) { |
|
397 | + } |
|
398 | + // Use same logic in forum.module to change message if topic has |
|
399 | + // moved. Changed link to match boinc path-added "community". |
|
400 | + if ($topic->forum_tid != $variables['tid']) { |
|
401 | 401 | $variables['topics'][$id]->message = l(t('This topic has been moved'), "community/forum/$topic->forum_tid"); |
402 | - } |
|
402 | + } |
|
403 | + } |
|
403 | 404 | } |
404 | - } |
|
405 | 405 | } |
406 | 406 | |
407 | 407 | /** |
@@ -414,39 +414,39 @@ discard block |
||
414 | 414 | */ |
415 | 415 | ///* -- Delete this line if you want to use this function |
416 | 416 | function boinc_preprocess_views_view(&$vars, $hook) { |
417 | - switch ($vars['name']) { |
|
418 | - case 'boinc_account_computers': |
|
417 | + switch ($vars['name']) { |
|
418 | + case 'boinc_account_computers': |
|
419 | 419 | switch ($vars['display_id']) { |
420 | 420 | case 'page_1': |
421 | 421 | case 'panel_pane_1': |
422 | 422 | $vars['empty'] = boincwork_views_host_list_empty_text(); |
423 | - break; |
|
423 | + break; |
|
424 | 424 | case 'page_2': |
425 | 425 | $vars['empty'] = boincwork_views_host_list_empty_text('active'); |
426 | - break; |
|
426 | + break; |
|
427 | 427 | case 'block_1': |
428 | 428 | $vars['empty'] = boincwork_views_host_list_empty_text('preferences'); |
429 | - break; |
|
429 | + break; |
|
430 | 430 | default: |
431 | 431 | } |
432 | 432 | break; |
433 | - case 'boinc_account_tasks_all': |
|
433 | + case 'boinc_account_tasks_all': |
|
434 | 434 | $vars['empty'] = boincwork_views_task_list_empty_text(); |
435 | 435 | break; |
436 | - case 'boinc_friends': |
|
436 | + case 'boinc_friends': |
|
437 | 437 | if ($vars['display_id'] == 'block_1') { |
438 | - $vars['header'] = boincuser_views_friends_block_header(); |
|
438 | + $vars['header'] = boincuser_views_friends_block_header(); |
|
439 | 439 | } |
440 | 440 | break; |
441 | - case 'boinc_host_list': |
|
441 | + case 'boinc_host_list': |
|
442 | 442 | if ($vars['display_id'] == 'page_2') { |
443 | - $vars['empty'] = boincwork_views_host_list_empty_text(); |
|
443 | + $vars['empty'] = boincwork_views_host_list_empty_text(); |
|
444 | 444 | } |
445 | 445 | elseif ($vars['display_id'] == 'page_1') { |
446 | - $vars['empty'] = boincwork_views_host_list_empty_text('active'); |
|
446 | + $vars['empty'] = boincwork_views_host_list_empty_text('active'); |
|
447 | 447 | } |
448 | 448 | break; |
449 | - case 'boinc_task': |
|
449 | + case 'boinc_task': |
|
450 | 450 | // Load view object (view data is not available in header / footer); execute view query |
451 | 451 | $view = views_get_current_view(); |
452 | 452 | $view->execute(); |
@@ -455,13 +455,13 @@ discard block |
||
455 | 455 | $vars['footer'] = '<h3>' . bts('Stderr output', array(), NULL, 'boinc:task-dtails-errorlog') .'</h3>'; |
456 | 456 | $vars['footer'] .= '<pre>' . htmlspecialchars($result->result_stderr_out) . '</pre>'; |
457 | 457 | break; |
458 | - case 'boinc_teams': |
|
458 | + case 'boinc_teams': |
|
459 | 459 | if ($vars['display_id'] == 'panel_pane_3') { |
460 | - $team_id = arg(2); |
|
461 | - $vars['header'] = boincteam_manage_admins_panel_header($team_id); |
|
460 | + $team_id = arg(2); |
|
461 | + $vars['header'] = boincteam_manage_admins_panel_header($team_id); |
|
462 | 462 | } |
463 | 463 | break; |
464 | - case 'boinc_workunit': |
|
464 | + case 'boinc_workunit': |
|
465 | 465 | ob_start(); |
466 | 466 | // Get the workunit ID from the URL |
467 | 467 | $result_id = arg(1); |
@@ -470,7 +470,7 @@ discard block |
||
470 | 470 | project_workunit($wu); |
471 | 471 | // Output of project_workunit() gets caught in the buffer |
472 | 472 | $vars['footer'] = ob_get_clean(); |
473 | - default: |
|
473 | + default: |
|
474 | 474 | } |
475 | 475 | } |
476 | 476 | // */ |
@@ -483,19 +483,19 @@ discard block |
||
483 | 483 | */ |
484 | 484 | ///* -- Delete this line if you want to use this function |
485 | 485 | function boinc_preprocess_privatemsg_view(&$vars, $hook) { |
486 | - $author_picture = '<div class="picture">'; |
|
487 | - $user_image = boincuser_get_user_profile_image($vars['message']['author']->uid); |
|
488 | - if ($user_image) { |
|
486 | + $author_picture = '<div class="picture">'; |
|
487 | + $user_image = boincuser_get_user_profile_image($vars['message']['author']->uid); |
|
488 | + if ($user_image) { |
|
489 | 489 | if (is_array($user_image) AND $user_image['image']['filepath']) { |
490 | - $author_picture .= theme('imagefield_image', $user_image['image'], $user_image['alt'], $user_image['alt'], array(), false); |
|
490 | + $author_picture .= theme('imagefield_image', $user_image['image'], $user_image['alt'], $user_image['alt'], array(), false); |
|
491 | 491 | } |
492 | 492 | elseif (is_string($user_image)) { |
493 | - $author_picture .= '<img src="' . $user_image . '"/>'; |
|
493 | + $author_picture .= '<img src="' . $user_image . '"/>'; |
|
494 | 494 | } |
495 | - } |
|
496 | - $author_picture .= '</div>'; |
|
497 | - $vars['author_picture'] = $author_picture; |
|
498 | - $vars['message_timestamp'] = date('j M Y H:i:s T', $vars['message']['timestamp']); |
|
495 | + } |
|
496 | + $author_picture .= '</div>'; |
|
497 | + $vars['author_picture'] = $author_picture; |
|
498 | + $vars['message_timestamp'] = date('j M Y H:i:s T', $vars['message']['timestamp']); |
|
499 | 499 | } |
500 | 500 | // */ |
501 | 501 | |
@@ -514,13 +514,13 @@ discard block |
||
514 | 514 | // */ |
515 | 515 | |
516 | 516 | function boinc_preprocess_search_result(&$variables) { |
517 | - global $language; |
|
518 | - // Locality |
|
519 | - $variables['locality'] = $language->language; |
|
517 | + global $language; |
|
518 | + // Locality |
|
519 | + $variables['locality'] = $language->language; |
|
520 | 520 | |
521 | - $type = strtolower($variables['result']['bundle']); |
|
522 | - switch ($type) { |
|
523 | - case 'profile': |
|
521 | + $type = strtolower($variables['result']['bundle']); |
|
522 | + switch ($type) { |
|
523 | + case 'profile': |
|
524 | 524 | case 'user': |
525 | 525 | $node = $variables['result']['node']; |
526 | 526 | $variables['url'] = url('account/' . $node->is_uid); |
@@ -528,20 +528,20 @@ discard block |
||
528 | 528 | $variables['user_image'] = boincuser_get_user_profile_image($node->is_uid); |
529 | 529 | $variables['account'] = user_load($node->is_uid); |
530 | 530 | break; |
531 | - case 'team': |
|
531 | + case 'team': |
|
532 | 532 | $node = $variables['result']['node']; |
533 | 533 | $variables['url'] = url('/community/teams/' . $node->entity_id);; |
534 | 534 | break; |
535 | - case 'forum': |
|
535 | + case 'forum': |
|
536 | 536 | $node = $variables['result']['node']; |
537 | 537 | $drupalnode = node_load($node->entity_id); |
538 | 538 | // Get the taxonomy for the node, creates a link to the parent forum |
539 | 539 | $taxonomy = reset($drupalnode->taxonomy); |
540 | 540 | if ($vocab = taxonomy_vocabulary_load($taxonomy->vid)) { |
541 | - $variables['parent_forum'] = l($taxonomy->name, "community/forum/{$taxonomy->tid}"); |
|
541 | + $variables['parent_forum'] = l($taxonomy->name, "community/forum/{$taxonomy->tid}"); |
|
542 | 542 | } |
543 | 543 | break; |
544 | - case 'comment': |
|
544 | + case 'comment': |
|
545 | 545 | // Get the node id for this comment |
546 | 546 | $nid = $variables['result']['fields']['tos_content_extra']; |
547 | 547 | $drupalnode = node_load($nid); |
@@ -552,21 +552,21 @@ discard block |
||
552 | 552 | // Get the taxonomy for the node, creates a link to the parent forum |
553 | 553 | $taxonomy = reset($drupalnode->taxonomy); |
554 | 554 | if ($vocab = taxonomy_vocabulary_load($taxonomy->vid)) { |
555 | - $variables['parent_forum'] = l($taxonomy->name, "community/forum/{$taxonomy->tid}"); |
|
555 | + $variables['parent_forum'] = l($taxonomy->name, "community/forum/{$taxonomy->tid}"); |
|
556 | 556 | } |
557 | - break; |
|
558 | - default: |
|
557 | + break; |
|
558 | + default: |
|
559 | 559 | } |
560 | 560 | } |
561 | 561 | |
562 | 562 | // Remove the mess of text under the search form and don't display "no results" |
563 | 563 | // if a search hasn't even been submitted |
564 | 564 | function boinc_apachesolr_search_noresults() { |
565 | - $message = bts('No results found...', array(), NULL, 'boinc:search-with-no-results'); |
|
566 | - if (!arg(2)) { |
|
565 | + $message = bts('No results found...', array(), NULL, 'boinc:search-with-no-results'); |
|
566 | + if (!arg(2)) { |
|
567 | 567 | $message = ''; |
568 | - } |
|
569 | - return '<p>' . $message . '</p>'; |
|
568 | + } |
|
569 | + return '<p>' . $message . '</p>'; |
|
570 | 570 | } |
571 | 571 | |
572 | 572 | /** |
@@ -575,42 +575,42 @@ discard block |
||
575 | 575 | */ |
576 | 576 | function phptemplate_username($object) { |
577 | 577 | |
578 | - if ($object->uid && $object->name) { |
|
578 | + if ($object->uid && $object->name) { |
|
579 | 579 | |
580 | 580 | // Show the profile name in general, not the username |
581 | 581 | $name = user_load($object->uid)->boincuser_name; |
582 | 582 | |
583 | 583 | // Shorten the name when it is too long or it will break many tables. |
584 | 584 | if (drupal_strlen($name) > 20) { |
585 | - $name = drupal_substr($name, 0, 15) . '...'; |
|
585 | + $name = drupal_substr($name, 0, 15) . '...'; |
|
586 | 586 | } |
587 | 587 | |
588 | 588 | if (user_access('access user profiles')) { |
589 | - $output = l($name, 'account/' . $object->uid, array('attributes' => array('title' => bts('View user profile.', array(), NULL, 'boinc:users-table')))); |
|
589 | + $output = l($name, 'account/' . $object->uid, array('attributes' => array('title' => bts('View user profile.', array(), NULL, 'boinc:users-table')))); |
|
590 | 590 | } |
591 | 591 | else { |
592 | - $output = check_plain($name); |
|
592 | + $output = check_plain($name); |
|
593 | 593 | } |
594 | - } |
|
595 | - else if ($object->name) { |
|
594 | + } |
|
595 | + else if ($object->name) { |
|
596 | 596 | // Sometimes modules display content composed by people who are |
597 | 597 | // not registered members of the site (e.g. mailing list or news |
598 | 598 | // aggregator modules). This clause enables modules to display |
599 | 599 | // the true author of the content. |
600 | 600 | if (!empty($object->homepage)) { |
601 | - $output = l($object->name, $object->homepage, array('attributes' => array('rel' => 'nofollow'))); |
|
601 | + $output = l($object->name, $object->homepage, array('attributes' => array('rel' => 'nofollow'))); |
|
602 | 602 | } |
603 | 603 | else { |
604 | - $output = check_plain($object->name); |
|
604 | + $output = check_plain($object->name); |
|
605 | 605 | } |
606 | 606 | |
607 | 607 | $output .= ' (' . bts('not verified', array(), NULL, 'boinc:user-not-found') . ')'; |
608 | - } |
|
609 | - else { |
|
608 | + } |
|
609 | + else { |
|
610 | 610 | $output = check_plain(variable_get('anonymous', bts('Anonymous', array(), NULL, 'boinc:anonymous-user'))); |
611 | - } |
|
611 | + } |
|
612 | 612 | |
613 | - return $output; |
|
613 | + return $output; |
|
614 | 614 | } |
615 | 615 | |
616 | 616 | /** |
@@ -618,7 +618,7 @@ discard block |
||
618 | 618 | * "More information about formatting options" |
619 | 619 | */ |
620 | 620 | function boinc_filter_tips_more_info () { |
621 | - return ''; |
|
621 | + return ''; |
|
622 | 622 | } |
623 | 623 | |
624 | 624 | /** |
@@ -636,19 +636,19 @@ discard block |
||
636 | 636 | * An array containing the email [type] (mailkey), [subject] and [body]. |
637 | 637 | */ |
638 | 638 | function boinc_flag_friend_message_email($status, $flag, $recipient, $sender) { |
639 | - $email = array(); |
|
640 | - $email['type'] = 'flag-friend'; |
|
641 | - // Reload the sender to get a full user object |
|
642 | - $sender = user_load($sender->uid); |
|
639 | + $email = array(); |
|
640 | + $email['type'] = 'flag-friend'; |
|
641 | + // Reload the sender to get a full user object |
|
642 | + $sender = user_load($sender->uid); |
|
643 | 643 | |
644 | - switch ($status) { |
|
644 | + switch ($status) { |
|
645 | 645 | case FLAG_FRIEND_FLAGGED: |
646 | 646 | // Sender accepted recipient's friend request |
647 | 647 | $email['subject'] = bts('!name accepted your friend request [!site]', array( |
648 | 648 | '!name' => $sender->boincuser_name, |
649 | 649 | '!site' => variable_get('site_name', ''), |
650 | 650 | ), NULL, 'boinc:friend-request-email'); |
651 | - $email['body'] = bts('!name confirmed you as a friend on !site. |
|
651 | + $email['body'] = bts('!name confirmed you as a friend on !site. |
|
652 | 652 | |
653 | 653 | Follow this link to view his or her profile: |
654 | 654 | !link |
@@ -662,12 +662,12 @@ discard block |
||
662 | 662 | '!message' => $flag->friend_message ? bts('Message', array(), NULL, 'boinc:friend-request-email:-1:a-private-message') . ': ' . $flag->friend_message : '', |
663 | 663 | '!link' => url('account/'. $sender->uid, array('absolute' => TRUE)), |
664 | 664 | ), array(), NULL, 'boinc:friend-request-email'); |
665 | - break; |
|
665 | + break; |
|
666 | 666 | |
667 | 667 | case FLAG_FRIEND_PENDING: |
668 | 668 | // Sender is requesting to be recipient's friend |
669 | 669 | $email['subject'] = bts('Friend request from !name [!site]', array('!name' => $sender->boincuser_name, '!site' => variable_get('site_name', '')), NULL, 'boinc:friend-request-email'); |
670 | - $email['body'] = bts('!name added you as a friend on !site. You can approve or deny this request. Denying a request will not send a notification, but will remove the request from both of your accounts. |
|
670 | + $email['body'] = bts('!name added you as a friend on !site. You can approve or deny this request. Denying a request will not send a notification, but will remove the request from both of your accounts. |
|
671 | 671 | |
672 | 672 | Follow the link below to view this request: |
673 | 673 | !link |
@@ -681,26 +681,26 @@ discard block |
||
681 | 681 | '!message' => $flag->friend_message ? bts('Message', array(), NULL, 'boinc:friend-request-email:-1:a-private-message') . ': ' . $flag->friend_message : '', |
682 | 682 | '!link' => url('goto/friend-requests', array('absolute' => TRUE)), |
683 | 683 | ), |
684 | - array(), NULL, 'boinc:friend-request-email'); |
|
685 | - break; |
|
686 | - } |
|
687 | - return $email; |
|
684 | + array(), NULL, 'boinc:friend-request-email'); |
|
685 | + break; |
|
686 | + } |
|
687 | + return $email; |
|
688 | 688 | } |
689 | 689 | |
690 | 690 | /** |
691 | 691 | * Edit action links |
692 | 692 | */ |
693 | 693 | function phptemplate_links($links, $attributes = array('class' => 'links')) { |
694 | - if ($links){ |
|
694 | + if ($links){ |
|
695 | 695 | // Remove flag-subscriptions link. It will be placed elsewhere. |
696 | 696 | if (isset($links['flag-subscriptions'])) { |
697 | - unset($links['flag-subscriptions']); |
|
697 | + unset($links['flag-subscriptions']); |
|
698 | 698 | } |
699 | 699 | // Reorder the links however you need them. |
700 | 700 | $links = reorder_links($links, array('comment_edit','quote','comment_add','comment_reply','flag-abuse_comment','flag-abuse_node'), array('comment_delete')); |
701 | 701 | // Use the built-in theme_links() function to format the $links array. |
702 | 702 | return theme_links($links, $attributes); |
703 | - } |
|
703 | + } |
|
704 | 704 | } |
705 | 705 | |
706 | 706 | /** |
@@ -744,8 +744,8 @@ discard block |
||
744 | 744 | * That is to say, get rid of it and use the views-view-table.tpl.php template. |
745 | 745 | */ |
746 | 746 | function boinc_tablesort_indicator($style) { |
747 | - return ''; |
|
748 | - /* |
|
747 | + return ''; |
|
748 | + /* |
|
749 | 749 | if ($style == "asc") { |
750 | 750 | return theme('image', 'misc/arrow-asc.png', t('sort icon'), t('sort ascending')); |
751 | 751 | } |
@@ -768,48 +768,48 @@ discard block |
||
768 | 768 | * |
769 | 769 | */ |
770 | 770 | function _boinc_create_moderator_links(&$links, &$moderator_links) { |
771 | - // If there are no links, then do nothing |
|
772 | - if (empty($links)) { |
|
771 | + // If there are no links, then do nothing |
|
772 | + if (empty($links)) { |
|
773 | 773 | return; |
774 | - } |
|
774 | + } |
|
775 | 775 | |
776 | - $alllinks = array(); |
|
777 | - $modlinks = array(); |
|
776 | + $alllinks = array(); |
|
777 | + $modlinks = array(); |
|
778 | 778 | |
779 | - // Create an array of HTML elements from the $links string, keys |
|
780 | - // are the class attribute for the <li> tags. |
|
781 | - $dom = new DOMDocument; |
|
782 | - $dom->loadHTML(mb_convert_encoding($links, 'HTML-ENTITIES', 'UTF-8')); |
|
783 | - foreach($dom->getElementsByTagName('li') as $node) { |
|
779 | + // Create an array of HTML elements from the $links string, keys |
|
780 | + // are the class attribute for the <li> tags. |
|
781 | + $dom = new DOMDocument; |
|
782 | + $dom->loadHTML(mb_convert_encoding($links, 'HTML-ENTITIES', 'UTF-8')); |
|
783 | + foreach($dom->getElementsByTagName('li') as $node) { |
|
784 | 784 | $key = $node->getAttribute("class"); |
785 | 785 | $alllinks[$key] = $dom->saveHTML($node); |
786 | - } |
|
786 | + } |
|
787 | 787 | |
788 | - // Select classes to be placed into moderator links array |
|
789 | - $selected_classes = array( |
|
788 | + // Select classes to be placed into moderator links array |
|
789 | + $selected_classes = array( |
|
790 | 790 | "make_sticky", "make_unsticky", |
791 | 791 | "lock", "unlock", |
792 | 792 | "convert", |
793 | 793 | "hide", "unhide", |
794 | 794 | "comment_delete", |
795 | - ); |
|
796 | - foreach(array_keys($alllinks) as $key1) { |
|
795 | + ); |
|
796 | + foreach(array_keys($alllinks) as $key1) { |
|
797 | 797 | // Select string up to first space, if present. |
798 | 798 | $class1 = strtok($key1, ' '); |
799 | 799 | if (in_array($class1, $selected_classes)) { |
800 | - if (empty($modlinks)) { |
|
800 | + if (empty($modlinks)) { |
|
801 | 801 | _boinc_firstlink($alllinks[$key1]); |
802 | - } |
|
803 | - $modlinks[$key1] = $alllinks[$key1]; |
|
804 | - unset($alllinks[$key1]); |
|
802 | + } |
|
803 | + $modlinks[$key1] = $alllinks[$key1]; |
|
804 | + unset($alllinks[$key1]); |
|
805 | 805 | } |
806 | - } |
|
807 | - // Convert the HTML arrays back into strings, wrap them in <ul> |
|
808 | - // tags |
|
809 | - $links = "<ul class=\"links\">".implode($alllinks)."</ul>"; |
|
810 | - $moderator_links = "<ul class=\"links\">".implode($modlinks)."</ul>"; |
|
806 | + } |
|
807 | + // Convert the HTML arrays back into strings, wrap them in <ul> |
|
808 | + // tags |
|
809 | + $links = "<ul class=\"links\">".implode($alllinks)."</ul>"; |
|
810 | + $moderator_links = "<ul class=\"links\">".implode($modlinks)."</ul>"; |
|
811 | 811 | |
812 | - return; |
|
812 | + return; |
|
813 | 813 | } |
814 | 814 | |
815 | 815 | /* |
@@ -817,36 +817,36 @@ discard block |
||
817 | 817 | * attribute to class. |
818 | 818 | */ |
819 | 819 | function _boinc_firstlink(&$alink) { |
820 | - if (!empty($alink)) { |
|
820 | + if (!empty($alink)) { |
|
821 | 821 | $dom = new DomDocument; |
822 | 822 | $dom->loadHTML(mb_convert_encoding($alink, 'HTML-ENTITIES', 'UTF-8')); |
823 | 823 | |
824 | 824 | $myli = $dom->getElementsByTagName('li'); |
825 | 825 | if ($myli->length>0) { |
826 | - $newclasses = trim(($myli[0]->getAttribute("class"))." first"); |
|
827 | - $myli[0]->setAttribute("class", $newclasses); |
|
828 | - $alink = $dom->saveHTML($myli[0]); |
|
826 | + $newclasses = trim(($myli[0]->getAttribute("class"))." first"); |
|
827 | + $myli[0]->setAttribute("class", $newclasses); |
|
828 | + $alink = $dom->saveHTML($myli[0]); |
|
829 | + } |
|
829 | 830 | } |
830 | - } |
|
831 | 831 | } |
832 | 832 | |
833 | 833 | /* |
834 | 834 | * Private function to generate the action links |
835 | 835 | */ |
836 | 836 | function _boinc_action_links() { |
837 | - global $user; |
|
838 | - global $base_path; |
|
837 | + global $user; |
|
838 | + global $base_path; |
|
839 | 839 | |
840 | - $output = '<ul class="menu"><li class="first">'; |
|
841 | - if ($user->uid) { |
|
840 | + $output = '<ul class="menu"><li class="first">'; |
|
841 | + if ($user->uid) { |
|
842 | 842 | $output .= '<a href="' . url('logout') . '">' . bts('Logout', array(), NULL, 'boinc:menu-link') . '</a>'; |
843 | - } else { |
|
843 | + } else { |
|
844 | 844 | $output .= '<a href="' . url('user/login', array('query' => drupal_get_destination()) ) . '">' . bts('Login', array(), NULL, 'boinc:menu-link') . '</a>'; |
845 | - } |
|
846 | - $output .= '</li>'; |
|
847 | - if (module_exists('global_search') OR module_exists('global_search_solr')) { |
|
845 | + } |
|
846 | + $output .= '</li>'; |
|
847 | + if (module_exists('global_search') OR module_exists('global_search_solr')) { |
|
848 | 848 | $output .= '<li class="last"> <a class="search" href="' . url('search/site') . '">' . bts('search', array(), NULL, 'boinc:menu-link') .'</a> </l1>'; |
849 | - } |
|
850 | - $output .= '</ul>'; |
|
851 | - return $output; |
|
849 | + } |
|
850 | + $output .= '</ul>'; |
|
851 | + return $output; |
|
852 | 852 | } |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | * Adjust the rendering of the menu |
82 | 82 | */ |
83 | 83 | function boinc_links__system_main_menu($links, $menu, $element) { |
84 | - $html .= '<ul id="' . $menu['id'] . '" class="' . $menu['class'] . '">' . "\n"; |
|
84 | + $html .= '<ul id="'.$menu['id'].'" class="'.$menu['class'].'">'."\n"; |
|
85 | 85 | $item_count = count($links); |
86 | 86 | $i = 1; |
87 | 87 | foreach ($links as $key => $link) { |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | if (strpos($key, 'active-trail')) $classes[] = 'active'; |
90 | 90 | if ($i == 1) $classes[] = 'first'; |
91 | 91 | if ($i == $item_count) $classes[] = 'last'; |
92 | - $html .= '<li class="' . implode(' ', $classes) .'">'; |
|
92 | + $html .= '<li class="'.implode(' ', $classes).'">'; |
|
93 | 93 | if ($link['title'] == 'Home') { |
94 | 94 | $link['title'] = bts('Home', array(), NULL, 'boinc:menu-link'); |
95 | 95 | } |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | if ($link['href'] == 'dashboard') { |
99 | 99 | $item_count = privatemsg_unread_count(); |
100 | 100 | if ($item_count) { |
101 | - $link['title'] .= '</a> <a href="' . url('messages') . '" class="compound secondary"><div class="item-count-wrapper"><span class="item-count">' . $item_count . '</span></div>'; |
|
101 | + $link['title'] .= '</a> <a href="'.url('messages').'" class="compound secondary"><div class="item-count-wrapper"><span class="item-count">'.$item_count.'</span></div>'; |
|
102 | 102 | $link['html'] = TRUE; |
103 | 103 | $link['attributes']['class'] = 'compound'; |
104 | 104 | } |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | if ($link['href'] == 'moderate') { |
109 | 109 | $item_count = boincuser_moderation_queue_count(); |
110 | 110 | if ($item_count) { |
111 | - $link['title'] .= ' <div class="item-count-wrapper"><span class="item-count">' . $item_count . '</span></div>'; |
|
111 | + $link['title'] .= ' <div class="item-count-wrapper"><span class="item-count">'.$item_count.'</span></div>'; |
|
112 | 112 | $link['html'] = TRUE; |
113 | 113 | } |
114 | 114 | } |
@@ -116,7 +116,7 @@ discard block |
||
116 | 116 | $html .= '</li>'; |
117 | 117 | $i++; |
118 | 118 | } |
119 | - $html .= '</ul>' . "\n"; |
|
119 | + $html .= '</ul>'."\n"; |
|
120 | 120 | return $html; |
121 | 121 | } |
122 | 122 | |
@@ -131,7 +131,7 @@ discard block |
||
131 | 131 | return ''; |
132 | 132 | } |
133 | 133 | else { |
134 | - return '<li '. ($active ? 'class="active" ' : '') .'>'. $link ."</li>\n"; |
|
134 | + return '<li '.($active ? 'class="active" ' : '').'>'.$link."</li>\n"; |
|
135 | 135 | } |
136 | 136 | } |
137 | 137 | |
@@ -192,7 +192,7 @@ discard block |
||
192 | 192 | $locality = $lang_code[0]; |
193 | 193 | } |
194 | 194 | } |
195 | - $vars['flag_path'] = base_path() . path_to_theme() . "/images/flags/{$locality}.png"; |
|
195 | + $vars['flag_path'] = base_path().path_to_theme()."/images/flags/{$locality}.png"; |
|
196 | 196 | |
197 | 197 | $server_status_url = variable_get('boinc_server_status_url', ''); |
198 | 198 | if (!$server_status_url) { |
@@ -214,16 +214,16 @@ discard block |
||
214 | 214 | if (arg(0) == 'search') { |
215 | 215 | unset($vars['title']); |
216 | 216 | } |
217 | - else if ( (arg(0)=='account') AND (is_numeric(arg(1))) AND (empty(arg(2))) ) { |
|
217 | + else if ((arg(0) == 'account') AND (is_numeric(arg(1))) AND (empty(arg(2)))) { |
|
218 | 218 | unset($vars['title']); |
219 | 219 | } |
220 | - else if ( (arg(0)=='account') AND (arg(1)=='profile') ) { |
|
220 | + else if ((arg(0) == 'account') AND (arg(1) == 'profile')) { |
|
221 | 221 | unset($vars['title']); |
222 | 222 | } |
223 | - else if ( (arg(0)=='dashboard') ) { |
|
223 | + else if ((arg(0) == 'dashboard')) { |
|
224 | 224 | unset($vars['title']); |
225 | 225 | } |
226 | - else if ( (arg(0)=='community') AND ( (arg(1)=='teams') OR (arg(1)=='stats') ) ) { |
|
226 | + else if ((arg(0) == 'community') AND ((arg(1) == 'teams') OR (arg(1) == 'stats'))) { |
|
227 | 227 | unset($vars['title']); |
228 | 228 | } |
229 | 229 | |
@@ -239,7 +239,7 @@ discard block |
||
239 | 239 | $tab = str_replace('li class="', 'li class="first ', $tab); |
240 | 240 | } |
241 | 241 | if ($key == $last_key) { |
242 | - $tab = str_replace('li class="', 'li class="last ', $tab) . '</ul>'; |
|
242 | + $tab = str_replace('li class="', 'li class="last ', $tab).'</ul>'; |
|
243 | 243 | } |
244 | 244 | } |
245 | 245 | elseif (strpos($tab, 'li ')) { |
@@ -247,7 +247,7 @@ discard block |
||
247 | 247 | $tab = str_replace('li ', 'li class="first" ', $tab); |
248 | 248 | } |
249 | 249 | if ($key == $last_key) { |
250 | - $tab = str_replace('li ', 'li class="last" ', $tab) . '</ul>'; |
|
250 | + $tab = str_replace('li ', 'li class="last" ', $tab).'</ul>'; |
|
251 | 251 | } |
252 | 252 | } |
253 | 253 | } |
@@ -284,7 +284,7 @@ discard block |
||
284 | 284 | |
285 | 285 | // Optionally, run node-type-specific preprocess functions, like |
286 | 286 | // boinc_preprocess_node_page() or boinc_preprocess_node_story(). |
287 | - $function = __FUNCTION__ . '_' . $vars['node']->type; |
|
287 | + $function = __FUNCTION__.'_'.$vars['node']->type; |
|
288 | 288 | if (function_exists($function)) { |
289 | 289 | $function($vars, $hook); |
290 | 290 | } |
@@ -335,7 +335,7 @@ discard block |
||
335 | 335 | $vars['node']->comment = 0; |
336 | 336 | |
337 | 337 | $vars['first_page'] = (!isset($_GET['page']) OR ($_GET['page'] < 1)); |
338 | - $page_count = max(ceil($vars['comment_count'] / $comments_per_page), 1); |
|
338 | + $page_count = max(ceil($vars['comment_count']/$comments_per_page), 1); |
|
339 | 339 | $vars['last_page'] = ($page_count == 1 OR ($page_count > 1 AND $_GET['page'] == $page_count - 1)); |
340 | 340 | |
341 | 341 | $links = $vars['links']; |
@@ -452,8 +452,8 @@ discard block |
||
452 | 452 | $view->execute(); |
453 | 453 | $result = reset($view->result); |
454 | 454 | // Display the stderr output in the footer |
455 | - $vars['footer'] = '<h3>' . bts('Stderr output', array(), NULL, 'boinc:task-dtails-errorlog') .'</h3>'; |
|
456 | - $vars['footer'] .= '<pre>' . htmlspecialchars($result->result_stderr_out) . '</pre>'; |
|
455 | + $vars['footer'] = '<h3>'.bts('Stderr output', array(), NULL, 'boinc:task-dtails-errorlog').'</h3>'; |
|
456 | + $vars['footer'] .= '<pre>'.htmlspecialchars($result->result_stderr_out).'</pre>'; |
|
457 | 457 | break; |
458 | 458 | case 'boinc_teams': |
459 | 459 | if ($vars['display_id'] == 'panel_pane_3') { |
@@ -465,7 +465,7 @@ discard block |
||
465 | 465 | ob_start(); |
466 | 466 | // Get the workunit ID from the URL |
467 | 467 | $result_id = arg(1); |
468 | - require_boinc(array('util','boinc_db')); |
|
468 | + require_boinc(array('util', 'boinc_db')); |
|
469 | 469 | $wu = BoincWorkunit::lookup_id($result_id); |
470 | 470 | project_workunit($wu); |
471 | 471 | // Output of project_workunit() gets caught in the buffer |
@@ -490,7 +490,7 @@ discard block |
||
490 | 490 | $author_picture .= theme('imagefield_image', $user_image['image'], $user_image['alt'], $user_image['alt'], array(), false); |
491 | 491 | } |
492 | 492 | elseif (is_string($user_image)) { |
493 | - $author_picture .= '<img src="' . $user_image . '"/>'; |
|
493 | + $author_picture .= '<img src="'.$user_image.'"/>'; |
|
494 | 494 | } |
495 | 495 | } |
496 | 496 | $author_picture .= '</div>'; |
@@ -523,14 +523,14 @@ discard block |
||
523 | 523 | case 'profile': |
524 | 524 | case 'user': |
525 | 525 | $node = $variables['result']['node']; |
526 | - $variables['url'] = url('account/' . $node->is_uid); |
|
526 | + $variables['url'] = url('account/'.$node->is_uid); |
|
527 | 527 | $variables['title'] = $node->tos_name; |
528 | 528 | $variables['user_image'] = boincuser_get_user_profile_image($node->is_uid); |
529 | 529 | $variables['account'] = user_load($node->is_uid); |
530 | 530 | break; |
531 | 531 | case 'team': |
532 | 532 | $node = $variables['result']['node']; |
533 | - $variables['url'] = url('/community/teams/' . $node->entity_id);; |
|
533 | + $variables['url'] = url('/community/teams/'.$node->entity_id); ; |
|
534 | 534 | break; |
535 | 535 | case 'forum': |
536 | 536 | $node = $variables['result']['node']; |
@@ -548,7 +548,7 @@ discard block |
||
548 | 548 | // Parent forum topic title |
549 | 549 | $variables['parent_title'] = $drupalnode->title; |
550 | 550 | // Link to the parent forum topic |
551 | - $variables['parent_topic'] = l($drupalnode->title, drupal_get_path_alias('node/' . $nid) ); |
|
551 | + $variables['parent_topic'] = l($drupalnode->title, drupal_get_path_alias('node/'.$nid)); |
|
552 | 552 | // Get the taxonomy for the node, creates a link to the parent forum |
553 | 553 | $taxonomy = reset($drupalnode->taxonomy); |
554 | 554 | if ($vocab = taxonomy_vocabulary_load($taxonomy->vid)) { |
@@ -566,7 +566,7 @@ discard block |
||
566 | 566 | if (!arg(2)) { |
567 | 567 | $message = ''; |
568 | 568 | } |
569 | - return '<p>' . $message . '</p>'; |
|
569 | + return '<p>'.$message.'</p>'; |
|
570 | 570 | } |
571 | 571 | |
572 | 572 | /** |
@@ -582,11 +582,11 @@ discard block |
||
582 | 582 | |
583 | 583 | // Shorten the name when it is too long or it will break many tables. |
584 | 584 | if (drupal_strlen($name) > 20) { |
585 | - $name = drupal_substr($name, 0, 15) . '...'; |
|
585 | + $name = drupal_substr($name, 0, 15).'...'; |
|
586 | 586 | } |
587 | 587 | |
588 | 588 | if (user_access('access user profiles')) { |
589 | - $output = l($name, 'account/' . $object->uid, array('attributes' => array('title' => bts('View user profile.', array(), NULL, 'boinc:users-table')))); |
|
589 | + $output = l($name, 'account/'.$object->uid, array('attributes' => array('title' => bts('View user profile.', array(), NULL, 'boinc:users-table')))); |
|
590 | 590 | } |
591 | 591 | else { |
592 | 592 | $output = check_plain($name); |
@@ -604,7 +604,7 @@ discard block |
||
604 | 604 | $output = check_plain($object->name); |
605 | 605 | } |
606 | 606 | |
607 | - $output .= ' (' . bts('not verified', array(), NULL, 'boinc:user-not-found') . ')'; |
|
607 | + $output .= ' ('.bts('not verified', array(), NULL, 'boinc:user-not-found').')'; |
|
608 | 608 | } |
609 | 609 | else { |
610 | 610 | $output = check_plain(variable_get('anonymous', bts('Anonymous', array(), NULL, 'boinc:anonymous-user'))); |
@@ -617,7 +617,7 @@ discard block |
||
617 | 617 | * Remove the link under text areas that reads: |
618 | 618 | * "More information about formatting options" |
619 | 619 | */ |
620 | -function boinc_filter_tips_more_info () { |
|
620 | +function boinc_filter_tips_more_info() { |
|
621 | 621 | return ''; |
622 | 622 | } |
623 | 623 | |
@@ -659,8 +659,8 @@ discard block |
||
659 | 659 | The !site team', array( |
660 | 660 | '!name' => isset($sender->boincuser_name) ? $sender->boincuser_name : $sender->name, |
661 | 661 | '!site' => variable_get('site_name', ''), |
662 | - '!message' => $flag->friend_message ? bts('Message', array(), NULL, 'boinc:friend-request-email:-1:a-private-message') . ': ' . $flag->friend_message : '', |
|
663 | - '!link' => url('account/'. $sender->uid, array('absolute' => TRUE)), |
|
662 | + '!message' => $flag->friend_message ? bts('Message', array(), NULL, 'boinc:friend-request-email:-1:a-private-message').': '.$flag->friend_message : '', |
|
663 | + '!link' => url('account/'.$sender->uid, array('absolute' => TRUE)), |
|
664 | 664 | ), array(), NULL, 'boinc:friend-request-email'); |
665 | 665 | break; |
666 | 666 | |
@@ -678,7 +678,7 @@ discard block |
||
678 | 678 | The !site team', array( |
679 | 679 | '!name' => isset($sender->boincuser_name) ? $sender->boincuser_name : $sender->name, |
680 | 680 | '!site' => variable_get('site_name', ''), |
681 | - '!message' => $flag->friend_message ? bts('Message', array(), NULL, 'boinc:friend-request-email:-1:a-private-message') . ': ' . $flag->friend_message : '', |
|
681 | + '!message' => $flag->friend_message ? bts('Message', array(), NULL, 'boinc:friend-request-email:-1:a-private-message').': '.$flag->friend_message : '', |
|
682 | 682 | '!link' => url('goto/friend-requests', array('absolute' => TRUE)), |
683 | 683 | ), |
684 | 684 | array(), NULL, 'boinc:friend-request-email'); |
@@ -691,13 +691,13 @@ discard block |
||
691 | 691 | * Edit action links |
692 | 692 | */ |
693 | 693 | function phptemplate_links($links, $attributes = array('class' => 'links')) { |
694 | - if ($links){ |
|
694 | + if ($links) { |
|
695 | 695 | // Remove flag-subscriptions link. It will be placed elsewhere. |
696 | 696 | if (isset($links['flag-subscriptions'])) { |
697 | 697 | unset($links['flag-subscriptions']); |
698 | 698 | } |
699 | 699 | // Reorder the links however you need them. |
700 | - $links = reorder_links($links, array('comment_edit','quote','comment_add','comment_reply','flag-abuse_comment','flag-abuse_node'), array('comment_delete')); |
|
700 | + $links = reorder_links($links, array('comment_edit', 'quote', 'comment_add', 'comment_reply', 'flag-abuse_comment', 'flag-abuse_node'), array('comment_delete')); |
|
701 | 701 | // Use the built-in theme_links() function to format the $links array. |
702 | 702 | return theme_links($links, $attributes); |
703 | 703 | } |
@@ -780,7 +780,7 @@ discard block |
||
780 | 780 | // are the class attribute for the <li> tags. |
781 | 781 | $dom = new DOMDocument; |
782 | 782 | $dom->loadHTML(mb_convert_encoding($links, 'HTML-ENTITIES', 'UTF-8')); |
783 | - foreach($dom->getElementsByTagName('li') as $node) { |
|
783 | + foreach ($dom->getElementsByTagName('li') as $node) { |
|
784 | 784 | $key = $node->getAttribute("class"); |
785 | 785 | $alllinks[$key] = $dom->saveHTML($node); |
786 | 786 | } |
@@ -793,7 +793,7 @@ discard block |
||
793 | 793 | "hide", "unhide", |
794 | 794 | "comment_delete", |
795 | 795 | ); |
796 | - foreach(array_keys($alllinks) as $key1) { |
|
796 | + foreach (array_keys($alllinks) as $key1) { |
|
797 | 797 | // Select string up to first space, if present. |
798 | 798 | $class1 = strtok($key1, ' '); |
799 | 799 | if (in_array($class1, $selected_classes)) { |
@@ -822,7 +822,7 @@ discard block |
||
822 | 822 | $dom->loadHTML(mb_convert_encoding($alink, 'HTML-ENTITIES', 'UTF-8')); |
823 | 823 | |
824 | 824 | $myli = $dom->getElementsByTagName('li'); |
825 | - if ($myli->length>0) { |
|
825 | + if ($myli->length > 0) { |
|
826 | 826 | $newclasses = trim(($myli[0]->getAttribute("class"))." first"); |
827 | 827 | $myli[0]->setAttribute("class", $newclasses); |
828 | 828 | $alink = $dom->saveHTML($myli[0]); |
@@ -839,13 +839,13 @@ discard block |
||
839 | 839 | |
840 | 840 | $output = '<ul class="menu"><li class="first">'; |
841 | 841 | if ($user->uid) { |
842 | - $output .= '<a href="' . url('logout') . '">' . bts('Logout', array(), NULL, 'boinc:menu-link') . '</a>'; |
|
842 | + $output .= '<a href="'.url('logout').'">'.bts('Logout', array(), NULL, 'boinc:menu-link').'</a>'; |
|
843 | 843 | } else { |
844 | - $output .= '<a href="' . url('user/login', array('query' => drupal_get_destination()) ) . '">' . bts('Login', array(), NULL, 'boinc:menu-link') . '</a>'; |
|
844 | + $output .= '<a href="'.url('user/login', array('query' => drupal_get_destination())).'">'.bts('Login', array(), NULL, 'boinc:menu-link').'</a>'; |
|
845 | 845 | } |
846 | 846 | $output .= '</li>'; |
847 | 847 | if (module_exists('global_search') OR module_exists('global_search_solr')) { |
848 | - $output .= '<li class="last"> <a class="search" href="' . url('search/site') . '">' . bts('search', array(), NULL, 'boinc:menu-link') .'</a> </l1>'; |
|
848 | + $output .= '<li class="last"> <a class="search" href="'.url('search/site').'">'.bts('search', array(), NULL, 'boinc:menu-link').'</a> </l1>'; |
|
849 | 849 | } |
850 | 850 | $output .= '</ul>'; |
851 | 851 | return $output; |
@@ -129,8 +129,7 @@ discard block |
||
129 | 129 | AND strpos($link, 'Edit Panel')) { |
130 | 130 | // Remove Edit Panel tab |
131 | 131 | return ''; |
132 | - } |
|
133 | - else { |
|
132 | + } else { |
|
134 | 133 | return '<li '. ($active ? 'class="active" ' : '') .'>'. $link ."</li>\n"; |
135 | 134 | } |
136 | 135 | } |
@@ -211,19 +210,15 @@ discard block |
||
211 | 210 | // "head_title" which is placed in the HTML <head> section. Most of |
212 | 211 | // these pages are defined in the Page Manager module. |
213 | 212 | // See: https://dev.gridrepublic.org/browse/DBOINC-65 |
214 | - if (arg(0) == 'search') { |
|
213 | + if (arg(0) == 'search') { |
|
215 | 214 | unset($vars['title']); |
216 | - } |
|
217 | - else if ( (arg(0)=='account') AND (is_numeric(arg(1))) AND (empty(arg(2))) ) { |
|
215 | + } else if ( (arg(0)=='account') AND (is_numeric(arg(1))) AND (empty(arg(2))) ) { |
|
218 | 216 | unset($vars['title']); |
219 | - } |
|
220 | - else if ( (arg(0)=='account') AND (arg(1)=='profile') ) { |
|
217 | + } else if ( (arg(0)=='account') AND (arg(1)=='profile') ) { |
|
221 | 218 | unset($vars['title']); |
222 | - } |
|
223 | - else if ( (arg(0)=='dashboard') ) { |
|
219 | + } else if ( (arg(0)=='dashboard') ) { |
|
224 | 220 | unset($vars['title']); |
225 | - } |
|
226 | - else if ( (arg(0)=='community') AND ( (arg(1)=='teams') OR (arg(1)=='stats') ) ) { |
|
221 | + } else if ( (arg(0)=='community') AND ( (arg(1)=='teams') OR (arg(1)=='stats') ) ) { |
|
227 | 222 | unset($vars['title']); |
228 | 223 | } |
229 | 224 | |
@@ -241,8 +236,7 @@ discard block |
||
241 | 236 | if ($key == $last_key) { |
242 | 237 | $tab = str_replace('li class="', 'li class="last ', $tab) . '</ul>'; |
243 | 238 | } |
244 | - } |
|
245 | - elseif (strpos($tab, 'li ')) { |
|
239 | + } elseif (strpos($tab, 'li ')) { |
|
246 | 240 | if ($key == 0) { |
247 | 241 | $tab = str_replace('li ', 'li class="first" ', $tab); |
248 | 242 | } |
@@ -389,8 +383,7 @@ discard block |
||
389 | 383 | $cid = boincuser_get_first_unread_comment_id($topic->nid); |
390 | 384 | if ($cid) { |
391 | 385 | $variables['topics'][$id]->new_url = url("goto/comment/{$cid}"); |
392 | - } |
|
393 | - else { |
|
386 | + } else { |
|
394 | 387 | // User hasn't visited this topic before, so all replies are new... |
395 | 388 | $topic->new_replies = NULL; |
396 | 389 | } |
@@ -441,8 +434,7 @@ discard block |
||
441 | 434 | case 'boinc_host_list': |
442 | 435 | if ($vars['display_id'] == 'page_2') { |
443 | 436 | $vars['empty'] = boincwork_views_host_list_empty_text(); |
444 | - } |
|
445 | - elseif ($vars['display_id'] == 'page_1') { |
|
437 | + } elseif ($vars['display_id'] == 'page_1') { |
|
446 | 438 | $vars['empty'] = boincwork_views_host_list_empty_text('active'); |
447 | 439 | } |
448 | 440 | break; |
@@ -488,8 +480,7 @@ discard block |
||
488 | 480 | if ($user_image) { |
489 | 481 | if (is_array($user_image) AND $user_image['image']['filepath']) { |
490 | 482 | $author_picture .= theme('imagefield_image', $user_image['image'], $user_image['alt'], $user_image['alt'], array(), false); |
491 | - } |
|
492 | - elseif (is_string($user_image)) { |
|
483 | + } elseif (is_string($user_image)) { |
|
493 | 484 | $author_picture .= '<img src="' . $user_image . '"/>'; |
494 | 485 | } |
495 | 486 | } |
@@ -587,26 +578,22 @@ discard block |
||
587 | 578 | |
588 | 579 | if (user_access('access user profiles')) { |
589 | 580 | $output = l($name, 'account/' . $object->uid, array('attributes' => array('title' => bts('View user profile.', array(), NULL, 'boinc:users-table')))); |
590 | - } |
|
591 | - else { |
|
581 | + } else { |
|
592 | 582 | $output = check_plain($name); |
593 | 583 | } |
594 | - } |
|
595 | - else if ($object->name) { |
|
584 | + } else if ($object->name) { |
|
596 | 585 | // Sometimes modules display content composed by people who are |
597 | 586 | // not registered members of the site (e.g. mailing list or news |
598 | 587 | // aggregator modules). This clause enables modules to display |
599 | 588 | // the true author of the content. |
600 | 589 | if (!empty($object->homepage)) { |
601 | 590 | $output = l($object->name, $object->homepage, array('attributes' => array('rel' => 'nofollow'))); |
602 | - } |
|
603 | - else { |
|
591 | + } else { |
|
604 | 592 | $output = check_plain($object->name); |
605 | 593 | } |
606 | 594 | |
607 | 595 | $output .= ' (' . bts('not verified', array(), NULL, 'boinc:user-not-found') . ')'; |
608 | - } |
|
609 | - else { |
|
596 | + } else { |
|
610 | 597 | $output = check_plain(variable_get('anonymous', bts('Anonymous', array(), NULL, 'boinc:anonymous-user'))); |
611 | 598 | } |
612 | 599 | |
@@ -691,7 +678,7 @@ discard block |
||
691 | 678 | * Edit action links |
692 | 679 | */ |
693 | 680 | function phptemplate_links($links, $attributes = array('class' => 'links')) { |
694 | - if ($links){ |
|
681 | + if ($links) { |
|
695 | 682 | // Remove flag-subscriptions link. It will be placed elsewhere. |
696 | 683 | if (isset($links['flag-subscriptions'])) { |
697 | 684 | unset($links['flag-subscriptions']); |
@@ -91,7 +91,7 @@ discard block |
||
91 | 91 | if ($i == $item_count) $classes[] = 'last'; |
92 | 92 | $html .= '<li class="' . implode(' ', $classes) .'">'; |
93 | 93 | if ($link['title'] == 'Home') { |
94 | - $link['title'] = bts('Home', array(), NULL, 'boinc:menu-link'); |
|
94 | + $link['title'] = bts('Home', array(), null, 'boinc:menu-link'); |
|
95 | 95 | } |
96 | 96 | if (module_exists('privatemsg')) { |
97 | 97 | // Put a new mail notification next to the Account menu item |
@@ -99,7 +99,7 @@ discard block |
||
99 | 99 | $item_count = privatemsg_unread_count(); |
100 | 100 | if ($item_count) { |
101 | 101 | $link['title'] .= '</a> <a href="' . url('messages') . '" class="compound secondary"><div class="item-count-wrapper"><span class="item-count">' . $item_count . '</span></div>'; |
102 | - $link['html'] = TRUE; |
|
102 | + $link['html'] = true; |
|
103 | 103 | $link['attributes']['class'] = 'compound'; |
104 | 104 | } |
105 | 105 | } |
@@ -109,7 +109,7 @@ discard block |
||
109 | 109 | $item_count = boincuser_moderation_queue_count(); |
110 | 110 | if ($item_count) { |
111 | 111 | $link['title'] .= ' <div class="item-count-wrapper"><span class="item-count">' . $item_count . '</span></div>'; |
112 | - $link['html'] = TRUE; |
|
112 | + $link['html'] = true; |
|
113 | 113 | } |
114 | 114 | } |
115 | 115 | $html .= l($link['title'], $link['href'], $link); |
@@ -124,9 +124,9 @@ discard block |
||
124 | 124 | /** |
125 | 125 | * Remove undesired local task tabs |
126 | 126 | */ |
127 | -function boinc_menu_local_task($link, $active = FALSE) { |
|
128 | - if (strpos($link, 'admin/build/pages') !== FALSE |
|
129 | - AND strpos($link, 'Edit Panel')) { |
|
127 | +function boinc_menu_local_task($link, $active = false) { |
|
128 | + if (strpos($link, 'admin/build/pages') !== false |
|
129 | + and strpos($link, 'Edit Panel')) { |
|
130 | 130 | // Remove Edit Panel tab |
131 | 131 | return ''; |
132 | 132 | } |
@@ -214,16 +214,16 @@ discard block |
||
214 | 214 | if (arg(0) == 'search') { |
215 | 215 | unset($vars['title']); |
216 | 216 | } |
217 | - else if ( (arg(0)=='account') AND (is_numeric(arg(1))) AND (empty(arg(2))) ) { |
|
217 | + else if ( (arg(0)=='account') and (is_numeric(arg(1))) and (empty(arg(2))) ) { |
|
218 | 218 | unset($vars['title']); |
219 | 219 | } |
220 | - else if ( (arg(0)=='account') AND (arg(1)=='profile') ) { |
|
220 | + else if ( (arg(0)=='account') and (arg(1)=='profile') ) { |
|
221 | 221 | unset($vars['title']); |
222 | 222 | } |
223 | 223 | else if ( (arg(0)=='dashboard') ) { |
224 | 224 | unset($vars['title']); |
225 | 225 | } |
226 | - else if ( (arg(0)=='community') AND ( (arg(1)=='teams') OR (arg(1)=='stats') ) ) { |
|
226 | + else if ( (arg(0)=='community') and ( (arg(1)=='teams') or (arg(1)=='stats') ) ) { |
|
227 | 227 | unset($vars['title']); |
228 | 228 | } |
229 | 229 | |
@@ -302,7 +302,7 @@ discard block |
||
302 | 302 | unset($vars['links']['forum']); |
303 | 303 | // Add a link to manage subscriptions for the user |
304 | 304 | $vars['links']['subscriptions'] = array( |
305 | - 'title' => bts('Manage subscriptions', array(), NULL, 'boinc:forum-footer'), |
|
305 | + 'title' => bts('Manage subscriptions', array(), null, 'boinc:forum-footer'), |
|
306 | 306 | 'href' => 'account/prefs/subscriptions', |
307 | 307 | ); |
308 | 308 | } |
@@ -326,17 +326,17 @@ discard block |
||
326 | 326 | $vars['signature'] = check_markup($account->signature, $vars['node']->format); |
327 | 327 | |
328 | 328 | // Show signatures based on user preference |
329 | - $vars['show_signatures'] = ($user->hide_signatures) ? FALSE : TRUE; |
|
329 | + $vars['show_signatures'] = ($user->hide_signatures) ? false : true; |
|
330 | 330 | |
331 | 331 | // Expose comment sort order so that the template can put the topic node |
332 | 332 | // content (i.e. initial post) at the very end if "Newest post first" is the |
333 | 333 | // preference used by this user |
334 | - $vars['oldest_post_first'] = ($user->sort != 1) ? TRUE : FALSE; |
|
334 | + $vars['oldest_post_first'] = ($user->sort != 1) ? true : false; |
|
335 | 335 | $vars['node']->comment = 0; |
336 | 336 | |
337 | - $vars['first_page'] = (!isset($_GET['page']) OR ($_GET['page'] < 1)); |
|
337 | + $vars['first_page'] = (!isset($_GET['page']) or ($_GET['page'] < 1)); |
|
338 | 338 | $page_count = max(ceil($vars['comment_count'] / $comments_per_page), 1); |
339 | - $vars['last_page'] = ($page_count == 1 OR ($page_count > 1 AND $_GET['page'] == $page_count - 1)); |
|
339 | + $vars['last_page'] = ($page_count == 1 or ($page_count > 1 and $_GET['page'] == $page_count - 1)); |
|
340 | 340 | |
341 | 341 | $links = $vars['links']; |
342 | 342 | $moderator_links = array(); |
@@ -370,7 +370,7 @@ discard block |
||
370 | 370 | $vars['locality'] = $language->language; |
371 | 371 | |
372 | 372 | // Show signatures based on user preference |
373 | - $vars['show_signatures'] = ($user->hide_signatures) ? FALSE : TRUE; |
|
373 | + $vars['show_signatures'] = ($user->hide_signatures) ? false : true; |
|
374 | 374 | |
375 | 375 | $links = $vars['links']; |
376 | 376 | $moderator_links = array(); |
@@ -392,7 +392,7 @@ discard block |
||
392 | 392 | } |
393 | 393 | else { |
394 | 394 | // User hasn't visited this topic before, so all replies are new... |
395 | - $topic->new_replies = NULL; |
|
395 | + $topic->new_replies = null; |
|
396 | 396 | } |
397 | 397 | } |
398 | 398 | // Use same logic in forum.module to change message if topic has |
@@ -452,7 +452,7 @@ discard block |
||
452 | 452 | $view->execute(); |
453 | 453 | $result = reset($view->result); |
454 | 454 | // Display the stderr output in the footer |
455 | - $vars['footer'] = '<h3>' . bts('Stderr output', array(), NULL, 'boinc:task-dtails-errorlog') .'</h3>'; |
|
455 | + $vars['footer'] = '<h3>' . bts('Stderr output', array(), null, 'boinc:task-dtails-errorlog') .'</h3>'; |
|
456 | 456 | $vars['footer'] .= '<pre>' . htmlspecialchars($result->result_stderr_out) . '</pre>'; |
457 | 457 | break; |
458 | 458 | case 'boinc_teams': |
@@ -486,7 +486,7 @@ discard block |
||
486 | 486 | $author_picture = '<div class="picture">'; |
487 | 487 | $user_image = boincuser_get_user_profile_image($vars['message']['author']->uid); |
488 | 488 | if ($user_image) { |
489 | - if (is_array($user_image) AND $user_image['image']['filepath']) { |
|
489 | + if (is_array($user_image) and $user_image['image']['filepath']) { |
|
490 | 490 | $author_picture .= theme('imagefield_image', $user_image['image'], $user_image['alt'], $user_image['alt'], array(), false); |
491 | 491 | } |
492 | 492 | elseif (is_string($user_image)) { |
@@ -562,7 +562,7 @@ discard block |
||
562 | 562 | // Remove the mess of text under the search form and don't display "no results" |
563 | 563 | // if a search hasn't even been submitted |
564 | 564 | function boinc_apachesolr_search_noresults() { |
565 | - $message = bts('No results found...', array(), NULL, 'boinc:search-with-no-results'); |
|
565 | + $message = bts('No results found...', array(), null, 'boinc:search-with-no-results'); |
|
566 | 566 | if (!arg(2)) { |
567 | 567 | $message = ''; |
568 | 568 | } |
@@ -586,7 +586,7 @@ discard block |
||
586 | 586 | } |
587 | 587 | |
588 | 588 | if (user_access('access user profiles')) { |
589 | - $output = l($name, 'account/' . $object->uid, array('attributes' => array('title' => bts('View user profile.', array(), NULL, 'boinc:users-table')))); |
|
589 | + $output = l($name, 'account/' . $object->uid, array('attributes' => array('title' => bts('View user profile.', array(), null, 'boinc:users-table')))); |
|
590 | 590 | } |
591 | 591 | else { |
592 | 592 | $output = check_plain($name); |
@@ -604,10 +604,10 @@ discard block |
||
604 | 604 | $output = check_plain($object->name); |
605 | 605 | } |
606 | 606 | |
607 | - $output .= ' (' . bts('not verified', array(), NULL, 'boinc:user-not-found') . ')'; |
|
607 | + $output .= ' (' . bts('not verified', array(), null, 'boinc:user-not-found') . ')'; |
|
608 | 608 | } |
609 | 609 | else { |
610 | - $output = check_plain(variable_get('anonymous', bts('Anonymous', array(), NULL, 'boinc:anonymous-user'))); |
|
610 | + $output = check_plain(variable_get('anonymous', bts('Anonymous', array(), null, 'boinc:anonymous-user'))); |
|
611 | 611 | } |
612 | 612 | |
613 | 613 | return $output; |
@@ -647,7 +647,7 @@ discard block |
||
647 | 647 | $email['subject'] = bts('!name accepted your friend request [!site]', array( |
648 | 648 | '!name' => $sender->boincuser_name, |
649 | 649 | '!site' => variable_get('site_name', ''), |
650 | - ), NULL, 'boinc:friend-request-email'); |
|
650 | + ), null, 'boinc:friend-request-email'); |
|
651 | 651 | $email['body'] = bts('!name confirmed you as a friend on !site. |
652 | 652 | |
653 | 653 | Follow this link to view his or her profile: |
@@ -659,14 +659,14 @@ discard block |
||
659 | 659 | The !site team', array( |
660 | 660 | '!name' => isset($sender->boincuser_name) ? $sender->boincuser_name : $sender->name, |
661 | 661 | '!site' => variable_get('site_name', ''), |
662 | - '!message' => $flag->friend_message ? bts('Message', array(), NULL, 'boinc:friend-request-email:-1:a-private-message') . ': ' . $flag->friend_message : '', |
|
663 | - '!link' => url('account/'. $sender->uid, array('absolute' => TRUE)), |
|
664 | - ), array(), NULL, 'boinc:friend-request-email'); |
|
662 | + '!message' => $flag->friend_message ? bts('Message', array(), null, 'boinc:friend-request-email:-1:a-private-message') . ': ' . $flag->friend_message : '', |
|
663 | + '!link' => url('account/'. $sender->uid, array('absolute' => true)), |
|
664 | + ), array(), null, 'boinc:friend-request-email'); |
|
665 | 665 | break; |
666 | 666 | |
667 | 667 | case FLAG_FRIEND_PENDING: |
668 | 668 | // Sender is requesting to be recipient's friend |
669 | - $email['subject'] = bts('Friend request from !name [!site]', array('!name' => $sender->boincuser_name, '!site' => variable_get('site_name', '')), NULL, 'boinc:friend-request-email'); |
|
669 | + $email['subject'] = bts('Friend request from !name [!site]', array('!name' => $sender->boincuser_name, '!site' => variable_get('site_name', '')), null, 'boinc:friend-request-email'); |
|
670 | 670 | $email['body'] = bts('!name added you as a friend on !site. You can approve or deny this request. Denying a request will not send a notification, but will remove the request from both of your accounts. |
671 | 671 | |
672 | 672 | Follow the link below to view this request: |
@@ -678,10 +678,10 @@ discard block |
||
678 | 678 | The !site team', array( |
679 | 679 | '!name' => isset($sender->boincuser_name) ? $sender->boincuser_name : $sender->name, |
680 | 680 | '!site' => variable_get('site_name', ''), |
681 | - '!message' => $flag->friend_message ? bts('Message', array(), NULL, 'boinc:friend-request-email:-1:a-private-message') . ': ' . $flag->friend_message : '', |
|
682 | - '!link' => url('goto/friend-requests', array('absolute' => TRUE)), |
|
681 | + '!message' => $flag->friend_message ? bts('Message', array(), null, 'boinc:friend-request-email:-1:a-private-message') . ': ' . $flag->friend_message : '', |
|
682 | + '!link' => url('goto/friend-requests', array('absolute' => true)), |
|
683 | 683 | ), |
684 | - array(), NULL, 'boinc:friend-request-email'); |
|
684 | + array(), null, 'boinc:friend-request-email'); |
|
685 | 685 | break; |
686 | 686 | } |
687 | 687 | return $email; |
@@ -839,13 +839,13 @@ discard block |
||
839 | 839 | |
840 | 840 | $output = '<ul class="menu"><li class="first">'; |
841 | 841 | if ($user->uid) { |
842 | - $output .= '<a href="' . url('logout') . '">' . bts('Logout', array(), NULL, 'boinc:menu-link') . '</a>'; |
|
842 | + $output .= '<a href="' . url('logout') . '">' . bts('Logout', array(), null, 'boinc:menu-link') . '</a>'; |
|
843 | 843 | } else { |
844 | - $output .= '<a href="' . url('user/login', array('query' => drupal_get_destination()) ) . '">' . bts('Login', array(), NULL, 'boinc:menu-link') . '</a>'; |
|
844 | + $output .= '<a href="' . url('user/login', array('query' => drupal_get_destination()) ) . '">' . bts('Login', array(), null, 'boinc:menu-link') . '</a>'; |
|
845 | 845 | } |
846 | 846 | $output .= '</li>'; |
847 | - if (module_exists('global_search') OR module_exists('global_search_solr')) { |
|
848 | - $output .= '<li class="last"> <a class="search" href="' . url('search/site') . '">' . bts('search', array(), NULL, 'boinc:menu-link') .'</a> </l1>'; |
|
847 | + if (module_exists('global_search') or module_exists('global_search_solr')) { |
|
848 | + $output .= '<li class="last"> <a class="search" href="' . url('search/site') . '">' . bts('search', array(), null, 'boinc:menu-link') .'</a> </l1>'; |
|
849 | 849 | } |
850 | 850 | $output .= '</ul>'; |
851 | 851 | return $output; |
@@ -4,78 +4,78 @@ discard block |
||
4 | 4 | * Implementation of hook_default_page_manager_pages(). |
5 | 5 | */ |
6 | 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( |
|
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 | 16 | 'plugins' => array( |
17 | - 2 => array( |
|
17 | + 2 => array( |
|
18 | 18 | 'name' => 'role', |
19 | 19 | 'settings' => array( |
20 | - 'rids' => array( |
|
20 | + 'rids' => array( |
|
21 | 21 | 0 => 2, |
22 | - ), |
|
22 | + ), |
|
23 | 23 | ), |
24 | 24 | 'context' => 'logged-in-user', |
25 | 25 | 'not' => FALSE, |
26 | - ), |
|
26 | + ), |
|
27 | 27 | ), |
28 | 28 | 'logic' => 'and', |
29 | 29 | 'type' => 'none', |
30 | 30 | 'settings' => NULL, |
31 | - ); |
|
32 | - $page->menu = array( |
|
31 | + ); |
|
32 | + $page->menu = array( |
|
33 | 33 | 'type' => 'none', |
34 | 34 | 'title' => 'Teams', |
35 | 35 | 'name' => 'navigation', |
36 | 36 | 'weight' => '10', |
37 | 37 | 'parent' => array( |
38 | - 'type' => 'none', |
|
39 | - 'title' => '', |
|
40 | - 'name' => 'navigation', |
|
41 | - 'weight' => '0', |
|
38 | + 'type' => 'none', |
|
39 | + 'title' => '', |
|
40 | + 'name' => 'navigation', |
|
41 | + 'weight' => '0', |
|
42 | 42 | ), |
43 | - ); |
|
44 | - $page->arguments = array( |
|
43 | + ); |
|
44 | + $page->arguments = array( |
|
45 | 45 | 'team_id' => array( |
46 | - 'id' => 1, |
|
47 | - 'identifier' => 'Node: ID', |
|
48 | - 'name' => 'nid', |
|
49 | - 'settings' => array(), |
|
46 | + 'id' => 1, |
|
47 | + 'identifier' => 'Node: ID', |
|
48 | + 'name' => 'nid', |
|
49 | + 'settings' => array(), |
|
50 | 50 | ), |
51 | 51 | 'option_1' => array( |
52 | - 'id' => 1, |
|
53 | - 'identifier' => 'String', |
|
54 | - 'name' => 'string', |
|
55 | - 'settings' => array( |
|
52 | + 'id' => 1, |
|
53 | + 'identifier' => 'String', |
|
54 | + 'name' => 'string', |
|
55 | + 'settings' => array( |
|
56 | 56 | 'use_tail' => 0, |
57 | - ), |
|
57 | + ), |
|
58 | 58 | ), |
59 | 59 | 'option_2' => array( |
60 | - 'id' => 2, |
|
61 | - 'identifier' => 'String 2', |
|
62 | - 'name' => 'string', |
|
63 | - 'settings' => array( |
|
60 | + 'id' => 2, |
|
61 | + 'identifier' => 'String 2', |
|
62 | + 'name' => 'string', |
|
63 | + 'settings' => array( |
|
64 | 64 | 'use_tail' => 0, |
65 | - ), |
|
65 | + ), |
|
66 | 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( |
|
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 | 79 | 'title' => 'Add team forum', |
80 | 80 | 'no_blocks' => 0, |
81 | 81 | 'pipeline' => 'standard', |
@@ -84,123 +84,123 @@ discard block |
||
84 | 84 | 'contexts' => array(), |
85 | 85 | 'relationships' => array(), |
86 | 86 | 'access' => array( |
87 | - 'plugins' => array( |
|
87 | + 'plugins' => array( |
|
88 | 88 | 0 => array( |
89 | - 'name' => 'path_visibility', |
|
90 | - 'settings' => array( |
|
89 | + 'name' => 'path_visibility', |
|
90 | + 'settings' => array( |
|
91 | 91 | 'visibility_setting' => '1', |
92 | 92 | 'paths' => 'community/teams/*/forum/add', |
93 | - ), |
|
94 | - 'context' => 'empty', |
|
95 | - 'not' => FALSE, |
|
93 | + ), |
|
94 | + 'context' => 'empty', |
|
95 | + 'not' => FALSE, |
|
96 | 96 | ), |
97 | 97 | 1 => array( |
98 | - 'name' => 'role', |
|
99 | - 'settings' => array( |
|
98 | + 'name' => 'role', |
|
99 | + 'settings' => array( |
|
100 | 100 | 'rids' => array( |
101 | - 0 => 2, |
|
101 | + 0 => 2, |
|
102 | + ), |
|
102 | 103 | ), |
103 | - ), |
|
104 | - 'context' => 'logged-in-user', |
|
105 | - 'not' => FALSE, |
|
104 | + 'context' => 'logged-in-user', |
|
105 | + 'not' => FALSE, |
|
106 | 106 | ), |
107 | 107 | 2 => array( |
108 | - 'name' => 'php', |
|
109 | - 'settings' => array( |
|
108 | + 'name' => 'php', |
|
109 | + 'settings' => array( |
|
110 | 110 | 'description' => 'User is team founder', |
111 | 111 | 'php' => '$team_id = $contexts[\'argument_nid_1\']->data->nid; |
112 | 112 | return boincteam_is_founder($team_id);', |
113 | - ), |
|
114 | - 'not' => FALSE, |
|
113 | + ), |
|
114 | + 'not' => FALSE, |
|
115 | + ), |
|
115 | 116 | ), |
116 | - ), |
|
117 | - 'logic' => 'and', |
|
117 | + 'logic' => 'and', |
|
118 | 118 | ), |
119 | - ); |
|
120 | - $display = new panels_display; |
|
121 | - $display->layout = 'twocol_stacked'; |
|
122 | - $display->layout_settings = array( |
|
119 | + ); |
|
120 | + $display = new panels_display; |
|
121 | + $display->layout = 'twocol_stacked'; |
|
122 | + $display->layout_settings = array( |
|
123 | 123 | 'items' => array( |
124 | - 'canvas' => array( |
|
124 | + 'canvas' => array( |
|
125 | 125 | 'type' => 'row', |
126 | 126 | 'contains' => 'column', |
127 | 127 | 'children' => array( |
128 | - 0 => 'main', |
|
129 | - 1 => 2, |
|
128 | + 0 => 'main', |
|
129 | + 1 => 2, |
|
130 | 130 | ), |
131 | 131 | 'parent' => NULL, |
132 | - ), |
|
133 | - 'main' => array( |
|
132 | + ), |
|
133 | + 'main' => array( |
|
134 | 134 | 'type' => 'column', |
135 | 135 | 'width' => 50, |
136 | 136 | 'width_type' => '%', |
137 | 137 | 'children' => array( |
138 | - 0 => 'main-row', |
|
139 | - 1 => 1, |
|
138 | + 0 => 'main-row', |
|
139 | + 1 => 1, |
|
140 | 140 | ), |
141 | 141 | 'parent' => 'canvas', |
142 | - ), |
|
143 | - 'main-row' => array( |
|
142 | + ), |
|
143 | + 'main-row' => array( |
|
144 | 144 | 'type' => 'row', |
145 | 145 | 'contains' => 'region', |
146 | 146 | 'children' => array( |
147 | - 0 => 'center', |
|
147 | + 0 => 'center', |
|
148 | 148 | ), |
149 | 149 | 'parent' => 'main', |
150 | - ), |
|
151 | - 'center' => array( |
|
150 | + ), |
|
151 | + 'center' => array( |
|
152 | 152 | 'type' => 'region', |
153 | 153 | 'title' => 'Center', |
154 | 154 | 'width' => 100, |
155 | 155 | 'width_type' => '%', |
156 | 156 | 'parent' => 'main-row', |
157 | - ), |
|
158 | - 1 => array( |
|
157 | + ), |
|
158 | + 1 => array( |
|
159 | 159 | 'type' => 'row', |
160 | 160 | 'contains' => 'region', |
161 | 161 | 'children' => array( |
162 | - 0 => 'top_teams', |
|
162 | + 0 => 'top_teams', |
|
163 | 163 | ), |
164 | 164 | 'parent' => 'main', |
165 | 165 | 'class' => 'panel-primary container shadow', |
166 | - ), |
|
167 | - 'top_teams' => array( |
|
166 | + ), |
|
167 | + 'top_teams' => array( |
|
168 | 168 | 'type' => 'region', |
169 | 169 | 'title' => 'Top teams', |
170 | 170 | 'width' => 100, |
171 | 171 | 'width_type' => '%', |
172 | 172 | 'parent' => '1', |
173 | 173 | 'class' => 'panel-primary container shadow', |
174 | - ), |
|
175 | - 2 => array( |
|
174 | + ), |
|
175 | + 2 => array( |
|
176 | 176 | 'type' => 'column', |
177 | 177 | 'width' => 50, |
178 | 178 | 'width_type' => '%', |
179 | 179 | 'parent' => 'canvas', |
180 | 180 | 'children' => array(), |
181 | 181 | 'class' => '', |
182 | - ), |
|
182 | + ), |
|
183 | 183 | ), |
184 | - ); |
|
185 | - $display->panel_settings = array( |
|
184 | + ); |
|
185 | + $display->panel_settings = array( |
|
186 | 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, |
|
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 | 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(); |
|
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 | 204 | $pane = new stdClass; |
205 | 205 | $pane->pid = 'new-1'; |
206 | 206 | $pane->panel = 'left'; |
@@ -209,19 +209,19 @@ discard block |
||
209 | 209 | $pane->shown = TRUE; |
210 | 210 | $pane->access = array(); |
211 | 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, |
|
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 | 217 | ); |
218 | 218 | $pane->cache = array(); |
219 | 219 | $pane->style = array( |
220 | - 'settings' => NULL, |
|
220 | + 'settings' => NULL, |
|
221 | 221 | ); |
222 | 222 | $pane->css = array( |
223 | - 'css_id' => '', |
|
224 | - 'css_class' => 'panel-primary container shadow', |
|
223 | + 'css_id' => '', |
|
224 | + 'css_class' => 'panel-primary container shadow', |
|
225 | 225 | ); |
226 | 226 | $pane->extras = array(); |
227 | 227 | $pane->position = 0; |
@@ -235,37 +235,37 @@ discard block |
||
235 | 235 | $pane->shown = TRUE; |
236 | 236 | $pane->access = array(); |
237 | 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, |
|
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 | 243 | ); |
244 | 244 | $pane->cache = array(); |
245 | 245 | $pane->style = array( |
246 | - 'settings' => NULL, |
|
246 | + 'settings' => NULL, |
|
247 | 247 | ); |
248 | 248 | $pane->css = array( |
249 | - 'css_id' => '', |
|
250 | - 'css_class' => 'panel-secondary container shadow', |
|
249 | + 'css_id' => '', |
|
250 | + 'css_class' => 'panel-secondary container shadow', |
|
251 | 251 | ); |
252 | 252 | $pane->extras = array(); |
253 | 253 | $pane->position = 0; |
254 | 254 | $display->content['new-2'] = $pane; |
255 | 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( |
|
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 | 269 | 'title' => 'Edit team forum', |
270 | 270 | 'no_blocks' => 0, |
271 | 271 | 'pipeline' => 'standard', |
@@ -274,123 +274,123 @@ discard block |
||
274 | 274 | 'contexts' => array(), |
275 | 275 | 'relationships' => array(), |
276 | 276 | 'access' => array( |
277 | - 'plugins' => array( |
|
277 | + 'plugins' => array( |
|
278 | 278 | 0 => array( |
279 | - 'name' => 'path_visibility', |
|
280 | - 'settings' => array( |
|
279 | + 'name' => 'path_visibility', |
|
280 | + 'settings' => array( |
|
281 | 281 | 'visibility_setting' => '1', |
282 | 282 | 'paths' => 'community/teams/*/forum/*/edit', |
283 | - ), |
|
284 | - 'context' => 'empty', |
|
285 | - 'not' => FALSE, |
|
283 | + ), |
|
284 | + 'context' => 'empty', |
|
285 | + 'not' => FALSE, |
|
286 | 286 | ), |
287 | 287 | 1 => array( |
288 | - 'name' => 'role', |
|
289 | - 'settings' => array( |
|
288 | + 'name' => 'role', |
|
289 | + 'settings' => array( |
|
290 | 290 | 'rids' => array( |
291 | - 0 => 2, |
|
291 | + 0 => 2, |
|
292 | 292 | ), |
293 | - ), |
|
294 | - 'context' => 'logged-in-user', |
|
295 | - 'not' => FALSE, |
|
293 | + ), |
|
294 | + 'context' => 'logged-in-user', |
|
295 | + 'not' => FALSE, |
|
296 | 296 | ), |
297 | 297 | 2 => array( |
298 | - 'name' => 'php', |
|
299 | - 'settings' => array( |
|
298 | + 'name' => 'php', |
|
299 | + 'settings' => array( |
|
300 | 300 | 'description' => 'User is team founder', |
301 | 301 | 'php' => '$team_id = $contexts[\'argument_nid_1\']->data->nid; |
302 | 302 | return boincteam_is_founder($team_id);', |
303 | - ), |
|
304 | - 'not' => FALSE, |
|
303 | + ), |
|
304 | + 'not' => FALSE, |
|
305 | 305 | ), |
306 | - ), |
|
307 | - 'logic' => 'and', |
|
306 | + ), |
|
307 | + 'logic' => 'and', |
|
308 | 308 | ), |
309 | - ); |
|
310 | - $display = new panels_display; |
|
311 | - $display->layout = 'twocol_stacked'; |
|
312 | - $display->layout_settings = array( |
|
309 | + ); |
|
310 | + $display = new panels_display; |
|
311 | + $display->layout = 'twocol_stacked'; |
|
312 | + $display->layout_settings = array( |
|
313 | 313 | 'items' => array( |
314 | - 'canvas' => array( |
|
314 | + 'canvas' => array( |
|
315 | 315 | 'type' => 'row', |
316 | 316 | 'contains' => 'column', |
317 | 317 | 'children' => array( |
318 | - 0 => 'main', |
|
319 | - 1 => 2, |
|
318 | + 0 => 'main', |
|
319 | + 1 => 2, |
|
320 | 320 | ), |
321 | 321 | 'parent' => NULL, |
322 | - ), |
|
323 | - 'main' => array( |
|
322 | + ), |
|
323 | + 'main' => array( |
|
324 | 324 | 'type' => 'column', |
325 | 325 | 'width' => 50, |
326 | 326 | 'width_type' => '%', |
327 | 327 | 'children' => array( |
328 | - 0 => 'main-row', |
|
329 | - 1 => 1, |
|
328 | + 0 => 'main-row', |
|
329 | + 1 => 1, |
|
330 | 330 | ), |
331 | 331 | 'parent' => 'canvas', |
332 | - ), |
|
333 | - 'main-row' => array( |
|
332 | + ), |
|
333 | + 'main-row' => array( |
|
334 | 334 | 'type' => 'row', |
335 | 335 | 'contains' => 'region', |
336 | 336 | 'children' => array( |
337 | - 0 => 'center', |
|
337 | + 0 => 'center', |
|
338 | 338 | ), |
339 | 339 | 'parent' => 'main', |
340 | - ), |
|
341 | - 'center' => array( |
|
340 | + ), |
|
341 | + 'center' => array( |
|
342 | 342 | 'type' => 'region', |
343 | 343 | 'title' => 'Center', |
344 | 344 | 'width' => 100, |
345 | 345 | 'width_type' => '%', |
346 | 346 | 'parent' => 'main-row', |
347 | - ), |
|
348 | - 1 => array( |
|
347 | + ), |
|
348 | + 1 => array( |
|
349 | 349 | 'type' => 'row', |
350 | 350 | 'contains' => 'region', |
351 | 351 | 'children' => array( |
352 | - 0 => 'top_teams', |
|
352 | + 0 => 'top_teams', |
|
353 | 353 | ), |
354 | 354 | 'parent' => 'main', |
355 | 355 | 'class' => 'panel-primary container shadow', |
356 | - ), |
|
357 | - 'top_teams' => array( |
|
356 | + ), |
|
357 | + 'top_teams' => array( |
|
358 | 358 | 'type' => 'region', |
359 | 359 | 'title' => 'Top teams', |
360 | 360 | 'width' => 100, |
361 | 361 | 'width_type' => '%', |
362 | 362 | 'parent' => '1', |
363 | 363 | 'class' => 'panel-primary container shadow', |
364 | - ), |
|
365 | - 2 => array( |
|
364 | + ), |
|
365 | + 2 => array( |
|
366 | 366 | 'type' => 'column', |
367 | 367 | 'width' => 50, |
368 | 368 | 'width_type' => '%', |
369 | 369 | 'parent' => 'canvas', |
370 | 370 | 'children' => array(), |
371 | 371 | 'class' => '', |
372 | - ), |
|
372 | + ), |
|
373 | 373 | ), |
374 | - ); |
|
375 | - $display->panel_settings = array( |
|
374 | + ); |
|
375 | + $display->panel_settings = array( |
|
376 | 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, |
|
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 | 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(); |
|
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 | 394 | $pane = new stdClass; |
395 | 395 | $pane->pid = 'new-1'; |
396 | 396 | $pane->panel = 'left'; |
@@ -399,19 +399,19 @@ discard block |
||
399 | 399 | $pane->shown = TRUE; |
400 | 400 | $pane->access = array(); |
401 | 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, |
|
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 | 407 | ); |
408 | 408 | $pane->cache = array(); |
409 | 409 | $pane->style = array( |
410 | - 'settings' => NULL, |
|
410 | + 'settings' => NULL, |
|
411 | 411 | ); |
412 | 412 | $pane->css = array( |
413 | - 'css_id' => '', |
|
414 | - 'css_class' => 'panel-primary container shadow', |
|
413 | + 'css_id' => '', |
|
414 | + 'css_class' => 'panel-primary container shadow', |
|
415 | 415 | ); |
416 | 416 | $pane->extras = array(); |
417 | 417 | $pane->position = 0; |
@@ -425,37 +425,37 @@ discard block |
||
425 | 425 | $pane->shown = TRUE; |
426 | 426 | $pane->access = array(); |
427 | 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, |
|
428 | + 'admin_title' => 'About team forums', |
|
429 | + 'title' => '', |
|
430 | + 'body' => '<?php echo boincteam_forum_topic_overview_panel(); ?>', |
|
431 | + 'format' => '3', |
|
432 | + 'substitute' => 1, |
|
433 | 433 | ); |
434 | 434 | $pane->cache = array(); |
435 | 435 | $pane->style = array( |
436 | - 'settings' => NULL, |
|
436 | + 'settings' => NULL, |
|
437 | 437 | ); |
438 | 438 | $pane->css = array( |
439 | - 'css_id' => '', |
|
440 | - 'css_class' => 'panel-secondary container shadow', |
|
439 | + 'css_id' => '', |
|
440 | + 'css_class' => 'panel-secondary container shadow', |
|
441 | 441 | ); |
442 | 442 | $pane->extras = array(); |
443 | 443 | $pane->position = 0; |
444 | 444 | $display->content['new-2'] = $pane; |
445 | 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( |
|
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 | 459 | 'title' => 'View team forum', |
460 | 460 | 'no_blocks' => 0, |
461 | 461 | 'pipeline' => 'standard', |
@@ -464,29 +464,29 @@ discard block |
||
464 | 464 | 'contexts' => array(), |
465 | 465 | 'relationships' => array(), |
466 | 466 | 'access' => array( |
467 | - 'plugins' => array( |
|
467 | + 'plugins' => array( |
|
468 | 468 | 0 => array( |
469 | - 'name' => 'path_visibility', |
|
470 | - 'settings' => array( |
|
469 | + 'name' => 'path_visibility', |
|
470 | + 'settings' => array( |
|
471 | 471 | 'visibility_setting' => '1', |
472 | 472 | 'paths' => 'community/teams/*/forum/*', |
473 | - ), |
|
474 | - 'context' => 'empty', |
|
475 | - 'not' => FALSE, |
|
473 | + ), |
|
474 | + 'context' => 'empty', |
|
475 | + 'not' => FALSE, |
|
476 | 476 | ), |
477 | 477 | 1 => array( |
478 | - 'name' => 'role', |
|
479 | - 'settings' => array( |
|
478 | + 'name' => 'role', |
|
479 | + 'settings' => array( |
|
480 | 480 | 'rids' => array( |
481 | - 0 => 2, |
|
481 | + 0 => 2, |
|
482 | + ), |
|
482 | 483 | ), |
483 | - ), |
|
484 | - 'context' => 'logged-in-user', |
|
485 | - 'not' => FALSE, |
|
484 | + 'context' => 'logged-in-user', |
|
485 | + 'not' => FALSE, |
|
486 | 486 | ), |
487 | 487 | 2 => array( |
488 | - 'name' => 'php', |
|
489 | - 'settings' => array( |
|
488 | + 'name' => 'php', |
|
489 | + 'settings' => array( |
|
490 | 490 | 'description' => 'A member of this team, the forum is public, or has global team moderation', |
491 | 491 | 'php' => '$team_id = $contexts[\'argument_nid_1\']->data->nid; |
492 | 492 | $team_forum_id = $contexts[\'argument_string_1\']->data; |
@@ -498,98 +498,98 @@ discard block |
||
498 | 498 | ); |
499 | 499 | } |
500 | 500 | return FALSE;', |
501 | - ), |
|
502 | - 'not' => FALSE, |
|
501 | + ), |
|
502 | + 'not' => FALSE, |
|
503 | + ), |
|
503 | 504 | ), |
504 | - ), |
|
505 | - 'logic' => 'and', |
|
505 | + 'logic' => 'and', |
|
506 | 506 | ), |
507 | - ); |
|
508 | - $display = new panels_display; |
|
509 | - $display->layout = 'onecol'; |
|
510 | - $display->layout_settings = array( |
|
507 | + ); |
|
508 | + $display = new panels_display; |
|
509 | + $display->layout = 'onecol'; |
|
510 | + $display->layout_settings = array( |
|
511 | 511 | 'items' => array( |
512 | - 'canvas' => array( |
|
512 | + 'canvas' => array( |
|
513 | 513 | 'type' => 'row', |
514 | 514 | 'contains' => 'column', |
515 | 515 | 'children' => array( |
516 | - 0 => 'main', |
|
517 | - 1 => 2, |
|
516 | + 0 => 'main', |
|
517 | + 1 => 2, |
|
518 | 518 | ), |
519 | 519 | 'parent' => NULL, |
520 | - ), |
|
521 | - 'main' => array( |
|
520 | + ), |
|
521 | + 'main' => array( |
|
522 | 522 | 'type' => 'column', |
523 | 523 | 'width' => 50, |
524 | 524 | 'width_type' => '%', |
525 | 525 | 'children' => array( |
526 | - 0 => 'main-row', |
|
527 | - 1 => 1, |
|
526 | + 0 => 'main-row', |
|
527 | + 1 => 1, |
|
528 | 528 | ), |
529 | 529 | 'parent' => 'canvas', |
530 | - ), |
|
531 | - 'main-row' => array( |
|
530 | + ), |
|
531 | + 'main-row' => array( |
|
532 | 532 | 'type' => 'row', |
533 | 533 | 'contains' => 'region', |
534 | 534 | 'children' => array( |
535 | - 0 => 'center', |
|
535 | + 0 => 'center', |
|
536 | 536 | ), |
537 | 537 | 'parent' => 'main', |
538 | - ), |
|
539 | - 'center' => array( |
|
538 | + ), |
|
539 | + 'center' => array( |
|
540 | 540 | 'type' => 'region', |
541 | 541 | 'title' => 'Center', |
542 | 542 | 'width' => 100, |
543 | 543 | 'width_type' => '%', |
544 | 544 | 'parent' => 'main-row', |
545 | - ), |
|
546 | - 1 => array( |
|
545 | + ), |
|
546 | + 1 => array( |
|
547 | 547 | 'type' => 'row', |
548 | 548 | 'contains' => 'region', |
549 | 549 | 'children' => array( |
550 | - 0 => 'top_teams', |
|
550 | + 0 => 'top_teams', |
|
551 | 551 | ), |
552 | 552 | 'parent' => 'main', |
553 | 553 | 'class' => 'panel-primary container shadow', |
554 | - ), |
|
555 | - 'top_teams' => array( |
|
554 | + ), |
|
555 | + 'top_teams' => array( |
|
556 | 556 | 'type' => 'region', |
557 | 557 | 'title' => 'Top teams', |
558 | 558 | 'width' => 100, |
559 | 559 | 'width_type' => '%', |
560 | 560 | 'parent' => '1', |
561 | 561 | 'class' => 'panel-primary container shadow', |
562 | - ), |
|
563 | - 2 => array( |
|
562 | + ), |
|
563 | + 2 => array( |
|
564 | 564 | 'type' => 'column', |
565 | 565 | 'width' => 50, |
566 | 566 | 'width_type' => '%', |
567 | 567 | 'parent' => 'canvas', |
568 | 568 | 'children' => array(), |
569 | 569 | 'class' => '', |
570 | - ), |
|
570 | + ), |
|
571 | 571 | ), |
572 | - ); |
|
573 | - $display->panel_settings = array( |
|
572 | + ); |
|
573 | + $display->panel_settings = array( |
|
574 | 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, |
|
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 | 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(); |
|
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 | 593 | $pane = new stdClass; |
594 | 594 | $pane->pid = 'new-1'; |
595 | 595 | $pane->panel = 'middle'; |
@@ -598,27 +598,27 @@ discard block |
||
598 | 598 | $pane->shown = TRUE; |
599 | 599 | $pane->access = array(); |
600 | 600 | $pane->configuration = array( |
601 | - 'override_title' => 0, |
|
602 | - 'override_title_text' => '', |
|
601 | + 'override_title' => 0, |
|
602 | + 'override_title_text' => '', |
|
603 | 603 | ); |
604 | 604 | $pane->cache = array(); |
605 | 605 | $pane->style = array( |
606 | - 'settings' => NULL, |
|
606 | + 'settings' => NULL, |
|
607 | 607 | ); |
608 | 608 | $pane->css = array( |
609 | - 'css_id' => '', |
|
610 | - 'css_class' => 'section framing container shadow', |
|
609 | + 'css_id' => '', |
|
610 | + 'css_class' => 'section framing container shadow', |
|
611 | 611 | ); |
612 | 612 | $pane->extras = array(); |
613 | 613 | $pane->position = 0; |
614 | 614 | $display->content['new-1'] = $pane; |
615 | 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; |
|
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 | 621 | |
622 | - return $pages; |
|
622 | + return $pages; |
|
623 | 623 | |
624 | 624 | } |
@@ -4,53 +4,53 @@ discard block |
||
4 | 4 | * Implementation of hook_default_page_manager_pages(). |
5 | 5 | */ |
6 | 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( |
|
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 | 16 | 'plugins' => array( |
17 | - 0 => array( |
|
17 | + 0 => array( |
|
18 | 18 | 'name' => 'perm', |
19 | 19 | 'settings' => array( |
20 | - 'perm' => 'create boincteam', |
|
20 | + 'perm' => 'create boincteam', |
|
21 | 21 | ), |
22 | 22 | 'context' => 'logged-in-user', |
23 | 23 | 'not' => FALSE, |
24 | - ), |
|
24 | + ), |
|
25 | 25 | ), |
26 | 26 | 'logic' => 'and', |
27 | 27 | 'type' => 'none', |
28 | 28 | 'settings' => NULL, |
29 | - ); |
|
30 | - $page->menu = array( |
|
29 | + ); |
|
30 | + $page->menu = array( |
|
31 | 31 | 'type' => 'none', |
32 | 32 | 'title' => 'Teams', |
33 | 33 | 'name' => 'navigation', |
34 | 34 | 'weight' => '10', |
35 | 35 | 'parent' => array( |
36 | - 'type' => 'none', |
|
37 | - 'title' => '', |
|
38 | - 'name' => 'navigation', |
|
39 | - 'weight' => '0', |
|
36 | + 'type' => 'none', |
|
37 | + 'title' => '', |
|
38 | + 'name' => 'navigation', |
|
39 | + 'weight' => '0', |
|
40 | 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( |
|
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 | 54 | 'title' => 'Panel', |
55 | 55 | 'no_blocks' => 0, |
56 | 56 | 'pipeline' => 'standard', |
@@ -58,91 +58,91 @@ discard block |
||
58 | 58 | 'css' => '', |
59 | 59 | 'contexts' => array(), |
60 | 60 | 'relationships' => array(), |
61 | - ); |
|
62 | - $display = new panels_display; |
|
63 | - $display->layout = 'twocol_stacked'; |
|
64 | - $display->layout_settings = array( |
|
61 | + ); |
|
62 | + $display = new panels_display; |
|
63 | + $display->layout = 'twocol_stacked'; |
|
64 | + $display->layout_settings = array( |
|
65 | 65 | 'items' => array( |
66 | - 'canvas' => array( |
|
66 | + 'canvas' => array( |
|
67 | 67 | 'type' => 'row', |
68 | 68 | 'contains' => 'column', |
69 | 69 | 'children' => array( |
70 | - 0 => 'main', |
|
71 | - 1 => 2, |
|
70 | + 0 => 'main', |
|
71 | + 1 => 2, |
|
72 | 72 | ), |
73 | 73 | 'parent' => NULL, |
74 | - ), |
|
75 | - 'main' => array( |
|
74 | + ), |
|
75 | + 'main' => array( |
|
76 | 76 | 'type' => 'column', |
77 | 77 | 'width' => 50, |
78 | 78 | 'width_type' => '%', |
79 | 79 | 'children' => array( |
80 | - 0 => 'main-row', |
|
81 | - 1 => 1, |
|
80 | + 0 => 'main-row', |
|
81 | + 1 => 1, |
|
82 | 82 | ), |
83 | 83 | 'parent' => 'canvas', |
84 | - ), |
|
85 | - 'main-row' => array( |
|
84 | + ), |
|
85 | + 'main-row' => array( |
|
86 | 86 | 'type' => 'row', |
87 | 87 | 'contains' => 'region', |
88 | 88 | 'children' => array( |
89 | - 0 => 'center', |
|
89 | + 0 => 'center', |
|
90 | 90 | ), |
91 | 91 | 'parent' => 'main', |
92 | - ), |
|
93 | - 'center' => array( |
|
92 | + ), |
|
93 | + 'center' => array( |
|
94 | 94 | 'type' => 'region', |
95 | 95 | 'title' => 'Center', |
96 | 96 | 'width' => 100, |
97 | 97 | 'width_type' => '%', |
98 | 98 | 'parent' => 'main-row', |
99 | - ), |
|
100 | - 1 => array( |
|
99 | + ), |
|
100 | + 1 => array( |
|
101 | 101 | 'type' => 'row', |
102 | 102 | 'contains' => 'region', |
103 | 103 | 'children' => array( |
104 | - 0 => 'top_teams', |
|
104 | + 0 => 'top_teams', |
|
105 | 105 | ), |
106 | 106 | 'parent' => 'main', |
107 | 107 | 'class' => 'panel-primary container shadow', |
108 | - ), |
|
109 | - 'top_teams' => array( |
|
108 | + ), |
|
109 | + 'top_teams' => array( |
|
110 | 110 | 'type' => 'region', |
111 | 111 | 'title' => 'Top teams', |
112 | 112 | 'width' => 100, |
113 | 113 | 'width_type' => '%', |
114 | 114 | 'parent' => '1', |
115 | 115 | 'class' => 'panel-primary container shadow', |
116 | - ), |
|
117 | - 2 => array( |
|
116 | + ), |
|
117 | + 2 => array( |
|
118 | 118 | 'type' => 'column', |
119 | 119 | 'width' => 50, |
120 | 120 | 'width_type' => '%', |
121 | 121 | 'parent' => 'canvas', |
122 | 122 | 'children' => array(), |
123 | 123 | 'class' => '', |
124 | - ), |
|
124 | + ), |
|
125 | 125 | ), |
126 | - ); |
|
127 | - $display->panel_settings = array( |
|
126 | + ); |
|
127 | + $display->panel_settings = array( |
|
128 | 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, |
|
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 | 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(); |
|
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 | 146 | $pane = new stdClass; |
147 | 147 | $pane->pid = 'new-1'; |
148 | 148 | $pane->panel = 'left'; |
@@ -151,19 +151,19 @@ discard block |
||
151 | 151 | $pane->shown = TRUE; |
152 | 152 | $pane->access = array(); |
153 | 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, |
|
154 | + 'admin_title' => 'Create team form', |
|
155 | + 'title' => '', |
|
156 | + 'body' => '<?php echo boincteam_create_team_panel(); ?>', |
|
157 | + 'format' => '3', |
|
158 | + 'substitute' => TRUE, |
|
159 | 159 | ); |
160 | 160 | $pane->cache = array(); |
161 | 161 | $pane->style = array( |
162 | - 'settings' => NULL, |
|
162 | + 'settings' => NULL, |
|
163 | 163 | ); |
164 | 164 | $pane->css = array( |
165 | - 'css_id' => '', |
|
166 | - 'css_class' => 'panel-primary container shadow', |
|
165 | + 'css_id' => '', |
|
166 | + 'css_class' => 'panel-primary container shadow', |
|
167 | 167 | ); |
168 | 168 | $pane->extras = array(); |
169 | 169 | $pane->position = 0; |
@@ -177,170 +177,170 @@ discard block |
||
177 | 177 | $pane->shown = TRUE; |
178 | 178 | $pane->access = array(); |
179 | 179 | $pane->configuration = array( |
180 | - 'admin_title' => 'Search teams', |
|
181 | - 'title' => '', |
|
182 | - 'body' => '<?php echo boincteam_search_panel(); ?>', |
|
183 | - 'format' => '3', |
|
184 | - 'substitute' => TRUE, |
|
180 | + 'admin_title' => 'Search teams', |
|
181 | + 'title' => '', |
|
182 | + 'body' => '<?php echo boincteam_search_panel(); ?>', |
|
183 | + 'format' => '3', |
|
184 | + 'substitute' => TRUE, |
|
185 | 185 | ); |
186 | 186 | $pane->cache = array(); |
187 | 187 | $pane->style = array( |
188 | - 'settings' => NULL, |
|
188 | + 'settings' => NULL, |
|
189 | 189 | ); |
190 | 190 | $pane->css = array( |
191 | - 'css_id' => '', |
|
192 | - 'css_class' => 'panel-secondary container shadow', |
|
191 | + 'css_id' => '', |
|
192 | + 'css_class' => 'panel-secondary container shadow', |
|
193 | 193 | ); |
194 | 194 | $pane->extras = array(); |
195 | 195 | $pane->position = 0; |
196 | 196 | $display->content['new-2'] = $pane; |
197 | 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; |
|
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 | 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( |
|
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 | 213 | 'type' => 'none', |
214 | 214 | 'settings' => NULL, |
215 | - ); |
|
216 | - $page->menu = array( |
|
215 | + ); |
|
216 | + $page->menu = array( |
|
217 | 217 | 'type' => 'normal', |
218 | 218 | 'title' => 'Teams', |
219 | 219 | 'name' => 'primary-links', |
220 | 220 | 'weight' => '10', |
221 | 221 | 'parent' => array( |
222 | - 'type' => 'none', |
|
223 | - 'title' => '', |
|
224 | - 'name' => 'navigation', |
|
225 | - 'weight' => '0', |
|
222 | + 'type' => 'none', |
|
223 | + 'title' => '', |
|
224 | + 'name' => 'navigation', |
|
225 | + 'weight' => '0', |
|
226 | 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( |
|
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 | 240 | 'title' => 'Panel', |
241 | 241 | 'no_blocks' => 0, |
242 | 242 | 'pipeline' => 'standard', |
243 | 243 | 'css_id' => '', |
244 | 244 | 'css' => '', |
245 | 245 | 'contexts' => array( |
246 | - 0 => array( |
|
246 | + 0 => array( |
|
247 | 247 | 'name' => 'user', |
248 | 248 | 'id' => 1, |
249 | 249 | 'identifier' => 'User', |
250 | 250 | 'keyword' => 'user', |
251 | 251 | 'context_settings' => array( |
252 | - 'type' => 'current', |
|
253 | - 'user' => '', |
|
254 | - 'uid' => '', |
|
252 | + 'type' => 'current', |
|
253 | + 'user' => '', |
|
254 | + 'uid' => '', |
|
255 | + ), |
|
255 | 256 | ), |
256 | - ), |
|
257 | 257 | ), |
258 | 258 | 'relationships' => array(), |
259 | - ); |
|
260 | - $display = new panels_display; |
|
261 | - $display->layout = 'twocol_stacked'; |
|
262 | - $display->layout_settings = array( |
|
259 | + ); |
|
260 | + $display = new panels_display; |
|
261 | + $display->layout = 'twocol_stacked'; |
|
262 | + $display->layout_settings = array( |
|
263 | 263 | 'items' => array( |
264 | - 'canvas' => array( |
|
264 | + 'canvas' => array( |
|
265 | 265 | 'type' => 'row', |
266 | 266 | 'contains' => 'column', |
267 | 267 | 'children' => array( |
268 | - 0 => 'main', |
|
269 | - 1 => 2, |
|
268 | + 0 => 'main', |
|
269 | + 1 => 2, |
|
270 | 270 | ), |
271 | 271 | 'parent' => NULL, |
272 | - ), |
|
273 | - 'main' => array( |
|
272 | + ), |
|
273 | + 'main' => array( |
|
274 | 274 | 'type' => 'column', |
275 | 275 | 'width' => 50, |
276 | 276 | 'width_type' => '%', |
277 | 277 | 'children' => array( |
278 | - 0 => 'main-row', |
|
279 | - 1 => 1, |
|
278 | + 0 => 'main-row', |
|
279 | + 1 => 1, |
|
280 | 280 | ), |
281 | 281 | 'parent' => 'canvas', |
282 | - ), |
|
283 | - 'main-row' => array( |
|
282 | + ), |
|
283 | + 'main-row' => array( |
|
284 | 284 | 'type' => 'row', |
285 | 285 | 'contains' => 'region', |
286 | 286 | 'children' => array( |
287 | - 0 => 'center', |
|
287 | + 0 => 'center', |
|
288 | 288 | ), |
289 | 289 | 'parent' => 'main', |
290 | - ), |
|
291 | - 'center' => array( |
|
290 | + ), |
|
291 | + 'center' => array( |
|
292 | 292 | 'type' => 'region', |
293 | 293 | 'title' => 'Center', |
294 | 294 | 'width' => 100, |
295 | 295 | 'width_type' => '%', |
296 | 296 | 'parent' => 'main-row', |
297 | - ), |
|
298 | - 1 => array( |
|
297 | + ), |
|
298 | + 1 => array( |
|
299 | 299 | 'type' => 'row', |
300 | 300 | 'contains' => 'region', |
301 | 301 | 'children' => array( |
302 | - 0 => 'top_teams', |
|
302 | + 0 => 'top_teams', |
|
303 | 303 | ), |
304 | 304 | 'parent' => 'main', |
305 | 305 | 'class' => 'panel-primary container shadow', |
306 | - ), |
|
307 | - 'top_teams' => array( |
|
306 | + ), |
|
307 | + 'top_teams' => array( |
|
308 | 308 | 'type' => 'region', |
309 | 309 | 'title' => 'Top teams', |
310 | 310 | 'width' => 100, |
311 | 311 | 'width_type' => '%', |
312 | 312 | 'parent' => '1', |
313 | 313 | 'class' => 'panel-primary container shadow', |
314 | - ), |
|
315 | - 2 => array( |
|
314 | + ), |
|
315 | + 2 => array( |
|
316 | 316 | 'type' => 'column', |
317 | 317 | 'width' => 50, |
318 | 318 | 'width_type' => '%', |
319 | 319 | 'parent' => 'canvas', |
320 | 320 | 'children' => array(), |
321 | 321 | 'class' => '', |
322 | - ), |
|
322 | + ), |
|
323 | 323 | ), |
324 | - ); |
|
325 | - $display->panel_settings = array( |
|
324 | + ); |
|
325 | + $display->panel_settings = array( |
|
326 | 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, |
|
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 | 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(); |
|
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 | 344 | $pane = new stdClass; |
345 | 345 | $pane->pid = 'new-1'; |
346 | 346 | $pane->panel = 'bottom'; |
@@ -349,21 +349,21 @@ discard block |
||
349 | 349 | $pane->shown = TRUE; |
350 | 350 | $pane->access = array(); |
351 | 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', |
|
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 | 359 | ); |
360 | 360 | $pane->cache = array(); |
361 | 361 | $pane->style = array( |
362 | - 'settings' => NULL, |
|
362 | + 'settings' => NULL, |
|
363 | 363 | ); |
364 | 364 | $pane->css = array( |
365 | - 'css_id' => '', |
|
366 | - 'css_class' => 'panel-primary container shadow', |
|
365 | + 'css_id' => '', |
|
366 | + 'css_class' => 'panel-primary container shadow', |
|
367 | 367 | ); |
368 | 368 | $pane->extras = array(); |
369 | 369 | $pane->position = 0; |
@@ -377,19 +377,19 @@ discard block |
||
377 | 377 | $pane->shown = TRUE; |
378 | 378 | $pane->access = array(); |
379 | 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, |
|
380 | + 'admin_title' => 'General info on teams', |
|
381 | + 'title' => '', |
|
382 | + 'body' => '<?php echo boincteam_topic_overview_panel(); ?>', |
|
383 | + 'format' => '3', |
|
384 | + 'substitute' => TRUE, |
|
385 | 385 | ); |
386 | 386 | $pane->cache = array(); |
387 | 387 | $pane->style = array( |
388 | - 'settings' => NULL, |
|
388 | + 'settings' => NULL, |
|
389 | 389 | ); |
390 | 390 | $pane->css = array( |
391 | - 'css_id' => '', |
|
392 | - 'css_class' => 'panel-primary container shadow balance-height', |
|
391 | + 'css_id' => '', |
|
392 | + 'css_class' => 'panel-primary container shadow balance-height', |
|
393 | 393 | ); |
394 | 394 | $pane->extras = array(); |
395 | 395 | $pane->position = 0; |
@@ -402,32 +402,32 @@ discard block |
||
402 | 402 | $pane->subtype = 'custom'; |
403 | 403 | $pane->shown = TRUE; |
404 | 404 | $pane->access = array( |
405 | - 'plugins' => array( |
|
405 | + 'plugins' => array( |
|
406 | 406 | 0 => array( |
407 | - 'name' => 'php', |
|
408 | - 'settings' => array( |
|
407 | + 'name' => 'php', |
|
408 | + 'settings' => array( |
|
409 | 409 | 'description' => 'Already a team member', |
410 | 410 | 'php' => '$account = user_load($contexts[\'logged-in-user\']->data->uid); |
411 | 411 | return ($account->team > 0);', |
412 | - ), |
|
413 | - 'not' => FALSE, |
|
412 | + ), |
|
413 | + 'not' => FALSE, |
|
414 | + ), |
|
414 | 415 | ), |
415 | - ), |
|
416 | 416 | ); |
417 | 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, |
|
418 | + 'admin_title' => 'Team member widget', |
|
419 | + 'title' => '', |
|
420 | + 'body' => '<?php echo boincteam_member_link_panel(); ?>', |
|
421 | + 'format' => '3', |
|
422 | + 'substitute' => 0, |
|
423 | 423 | ); |
424 | 424 | $pane->cache = array(); |
425 | 425 | $pane->style = array( |
426 | - 'settings' => NULL, |
|
426 | + 'settings' => NULL, |
|
427 | 427 | ); |
428 | 428 | $pane->css = array( |
429 | - 'css_id' => '', |
|
430 | - 'css_class' => 'panel-secondary container shadow balance-height no-resize', |
|
429 | + 'css_id' => '', |
|
430 | + 'css_class' => 'panel-secondary container shadow balance-height no-resize', |
|
431 | 431 | ); |
432 | 432 | $pane->extras = array(); |
433 | 433 | $pane->position = 0; |
@@ -441,19 +441,19 @@ discard block |
||
441 | 441 | $pane->shown = TRUE; |
442 | 442 | $pane->access = array(); |
443 | 443 | $pane->configuration = array( |
444 | - 'admin_title' => 'Search teams', |
|
445 | - 'title' => '', |
|
446 | - 'body' => '<?php echo boincteam_search_panel(); ?>', |
|
447 | - 'format' => '3', |
|
448 | - 'substitute' => TRUE, |
|
444 | + 'admin_title' => 'Search teams', |
|
445 | + 'title' => '', |
|
446 | + 'body' => '<?php echo boincteam_search_panel(); ?>', |
|
447 | + 'format' => '3', |
|
448 | + 'substitute' => TRUE, |
|
449 | 449 | ); |
450 | 450 | $pane->cache = array(); |
451 | 451 | $pane->style = array( |
452 | - 'settings' => NULL, |
|
452 | + 'settings' => NULL, |
|
453 | 453 | ); |
454 | 454 | $pane->css = array( |
455 | - 'css_id' => '', |
|
456 | - 'css_class' => 'panel-secondary container shadow balance-height', |
|
455 | + 'css_id' => '', |
|
456 | + 'css_class' => 'panel-secondary container shadow balance-height', |
|
457 | 457 | ); |
458 | 458 | $pane->extras = array(); |
459 | 459 | $pane->position = 1; |
@@ -466,102 +466,102 @@ discard block |
||
466 | 466 | $pane->subtype = 'custom'; |
467 | 467 | $pane->shown = TRUE; |
468 | 468 | $pane->access = array( |
469 | - 'plugins' => array( |
|
469 | + 'plugins' => array( |
|
470 | 470 | 0 => array( |
471 | - 'name' => 'php', |
|
472 | - 'settings' => array( |
|
471 | + 'name' => 'php', |
|
472 | + 'settings' => array( |
|
473 | 473 | 'description' => 'Not in another team', |
474 | 474 | 'php' => '$account = user_load($contexts[\'logged-in-user\']->data->uid); |
475 | 475 | return ($account->team == 0);', |
476 | - ), |
|
477 | - 'not' => FALSE, |
|
476 | + ), |
|
477 | + 'not' => FALSE, |
|
478 | + ), |
|
478 | 479 | ), |
479 | - ), |
|
480 | 480 | ); |
481 | 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, |
|
482 | + 'admin_title' => 'Create team widget', |
|
483 | + 'title' => '', |
|
484 | + 'body' => '<?php echo boincteam_create_team_link_panel(); ?>', |
|
485 | + 'format' => '3', |
|
486 | + 'substitute' => TRUE, |
|
487 | 487 | ); |
488 | 488 | $pane->cache = array(); |
489 | 489 | $pane->style = array( |
490 | - 'settings' => NULL, |
|
490 | + 'settings' => NULL, |
|
491 | 491 | ); |
492 | 492 | $pane->css = array( |
493 | - 'css_id' => '', |
|
494 | - 'css_class' => 'panel-secondary container shadow balance-height no-resize', |
|
493 | + 'css_id' => '', |
|
494 | + 'css_class' => 'panel-secondary container shadow balance-height no-resize', |
|
495 | 495 | ); |
496 | 496 | $pane->extras = array(); |
497 | 497 | $pane->position = 2; |
498 | 498 | $display->content['new-5'] = $pane; |
499 | 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; |
|
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 | 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( |
|
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 | 515 | 'type' => 'none', |
516 | 516 | 'settings' => NULL, |
517 | - ); |
|
518 | - $page->menu = array( |
|
517 | + ); |
|
518 | + $page->menu = array( |
|
519 | 519 | 'type' => 'none', |
520 | 520 | 'title' => 'Teams', |
521 | 521 | 'name' => 'navigation', |
522 | 522 | 'weight' => '10', |
523 | 523 | 'parent' => array( |
524 | - 'type' => 'none', |
|
525 | - 'title' => '', |
|
526 | - 'name' => 'navigation', |
|
527 | - 'weight' => '0', |
|
524 | + 'type' => 'none', |
|
525 | + 'title' => '', |
|
526 | + 'name' => 'navigation', |
|
527 | + 'weight' => '0', |
|
528 | 528 | ), |
529 | - ); |
|
530 | - $page->arguments = array( |
|
529 | + ); |
|
530 | + $page->arguments = array( |
|
531 | 531 | 'team_id' => array( |
532 | - 'id' => 1, |
|
533 | - 'identifier' => 'Node: ID', |
|
534 | - 'name' => 'nid', |
|
535 | - 'settings' => array(), |
|
532 | + 'id' => 1, |
|
533 | + 'identifier' => 'Node: ID', |
|
534 | + 'name' => 'nid', |
|
535 | + 'settings' => array(), |
|
536 | 536 | ), |
537 | 537 | 'section' => array( |
538 | - 'id' => 1, |
|
539 | - 'identifier' => 'Section', |
|
540 | - 'name' => 'string', |
|
541 | - 'settings' => array( |
|
538 | + 'id' => 1, |
|
539 | + 'identifier' => 'Section', |
|
540 | + 'name' => 'string', |
|
541 | + 'settings' => array( |
|
542 | 542 | 'use_tail' => 0, |
543 | - ), |
|
543 | + ), |
|
544 | 544 | ), |
545 | 545 | 'option' => array( |
546 | - 'id' => 2, |
|
547 | - 'identifier' => 'Option', |
|
548 | - 'name' => 'string', |
|
549 | - 'settings' => array( |
|
546 | + 'id' => 2, |
|
547 | + 'identifier' => 'Option', |
|
548 | + 'name' => 'string', |
|
549 | + 'settings' => array( |
|
550 | 550 | 'use_tail' => 0, |
551 | - ), |
|
551 | + ), |
|
552 | 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( |
|
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 | 565 | 'title' => 'Edit team', |
566 | 566 | 'no_blocks' => 0, |
567 | 567 | 'pipeline' => 'standard', |
@@ -570,57 +570,57 @@ discard block |
||
570 | 570 | 'contexts' => array(), |
571 | 571 | 'relationships' => array(), |
572 | 572 | 'access' => array( |
573 | - 'plugins' => array( |
|
573 | + 'plugins' => array( |
|
574 | 574 | 0 => array( |
575 | - 'name' => 'path_visibility', |
|
576 | - 'settings' => array( |
|
575 | + 'name' => 'path_visibility', |
|
576 | + 'settings' => array( |
|
577 | 577 | 'visibility_setting' => '1', |
578 | 578 | 'paths' => 'community/teams/*/edit/info', |
579 | - ), |
|
580 | - 'context' => 'empty', |
|
581 | - 'not' => FALSE, |
|
579 | + ), |
|
580 | + 'context' => 'empty', |
|
581 | + 'not' => FALSE, |
|
582 | 582 | ), |
583 | 583 | 3 => array( |
584 | - 'name' => 'role', |
|
585 | - 'settings' => array( |
|
584 | + 'name' => 'role', |
|
585 | + 'settings' => array( |
|
586 | 586 | 'rids' => array( |
587 | - 0 => 2, |
|
587 | + 0 => 2, |
|
588 | + ), |
|
588 | 589 | ), |
589 | - ), |
|
590 | - 'context' => 'logged-in-user', |
|
591 | - 'not' => FALSE, |
|
590 | + 'context' => 'logged-in-user', |
|
591 | + 'not' => FALSE, |
|
592 | 592 | ), |
593 | 593 | 4 => array( |
594 | - 'name' => 'php', |
|
595 | - 'settings' => array( |
|
594 | + 'name' => 'php', |
|
595 | + 'settings' => array( |
|
596 | 596 | 'description' => 'An admin of this team', |
597 | 597 | 'php' => '$team_id = $contexts[\'argument_nid_1\']->data->nid; |
598 | 598 | return (boincteam_is_founder($team_id) OR boincteam_is_admin($team_id));', |
599 | - ), |
|
600 | - 'not' => FALSE, |
|
599 | + ), |
|
600 | + 'not' => FALSE, |
|
601 | + ), |
|
601 | 602 | ), |
602 | - ), |
|
603 | - 'logic' => 'and', |
|
603 | + 'logic' => 'and', |
|
604 | 604 | ), |
605 | - ); |
|
606 | - $display = new panels_display; |
|
607 | - $display->layout = 'twocol_stacked'; |
|
608 | - $display->layout_settings = array(); |
|
609 | - $display->panel_settings = array( |
|
605 | + ); |
|
606 | + $display = new panels_display; |
|
607 | + $display->layout = 'twocol_stacked'; |
|
608 | + $display->layout_settings = array(); |
|
609 | + $display->panel_settings = array( |
|
610 | 610 | 'style_settings' => array( |
611 | - 'default' => NULL, |
|
612 | - 'left' => NULL, |
|
613 | - 'right' => NULL, |
|
614 | - 'top' => NULL, |
|
615 | - 'bottom' => NULL, |
|
611 | + 'default' => NULL, |
|
612 | + 'left' => NULL, |
|
613 | + 'right' => NULL, |
|
614 | + 'top' => NULL, |
|
615 | + 'bottom' => NULL, |
|
616 | 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(); |
|
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 | 624 | $pane = new stdClass; |
625 | 625 | $pane->pid = 'new-1'; |
626 | 626 | $pane->panel = 'left'; |
@@ -629,19 +629,19 @@ discard block |
||
629 | 629 | $pane->shown = TRUE; |
630 | 630 | $pane->access = array(); |
631 | 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, |
|
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 | 637 | ); |
638 | 638 | $pane->cache = array(); |
639 | 639 | $pane->style = array( |
640 | - 'settings' => NULL, |
|
640 | + 'settings' => NULL, |
|
641 | 641 | ); |
642 | 642 | $pane->css = array( |
643 | - 'css_id' => '', |
|
644 | - 'css_class' => 'panel-primary container shadow', |
|
643 | + 'css_id' => '', |
|
644 | + 'css_class' => 'panel-primary container shadow', |
|
645 | 645 | ); |
646 | 646 | $pane->extras = array(); |
647 | 647 | $pane->position = 0; |
@@ -655,37 +655,37 @@ discard block |
||
655 | 655 | $pane->shown = TRUE; |
656 | 656 | $pane->access = array(); |
657 | 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, |
|
658 | + 'admin_title' => 'Manage team', |
|
659 | + 'title' => '', |
|
660 | + 'body' => '<?php echo boincteam_management_panel(%team_id:nid); ?>', |
|
661 | + 'format' => '3', |
|
662 | + 'substitute' => 1, |
|
663 | 663 | ); |
664 | 664 | $pane->cache = array(); |
665 | 665 | $pane->style = array( |
666 | - 'settings' => NULL, |
|
666 | + 'settings' => NULL, |
|
667 | 667 | ); |
668 | 668 | $pane->css = array( |
669 | - 'css_id' => 'team-management', |
|
670 | - 'css_class' => 'panel-secondary container shadow', |
|
669 | + 'css_id' => 'team-management', |
|
670 | + 'css_class' => 'panel-secondary container shadow', |
|
671 | 671 | ); |
672 | 672 | $pane->extras = array(); |
673 | 673 | $pane->position = 0; |
674 | 674 | $display->content['new-2'] = $pane; |
675 | 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( |
|
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 | 689 | 'title' => 'Manage members', |
690 | 690 | 'no_blocks' => 0, |
691 | 691 | 'pipeline' => 'standard', |
@@ -694,58 +694,58 @@ discard block |
||
694 | 694 | 'contexts' => array(), |
695 | 695 | 'relationships' => array(), |
696 | 696 | 'access' => array( |
697 | - 'plugins' => array( |
|
697 | + 'plugins' => array( |
|
698 | 698 | 0 => array( |
699 | - 'name' => 'path_visibility', |
|
700 | - 'settings' => array( |
|
699 | + 'name' => 'path_visibility', |
|
700 | + 'settings' => array( |
|
701 | 701 | 'visibility_setting' => '1', |
702 | 702 | 'paths' => 'community/teams/*/edit/members', |
703 | - ), |
|
704 | - 'context' => 'empty', |
|
705 | - 'not' => FALSE, |
|
703 | + ), |
|
704 | + 'context' => 'empty', |
|
705 | + 'not' => FALSE, |
|
706 | 706 | ), |
707 | 707 | 3 => array( |
708 | - 'name' => 'role', |
|
709 | - 'settings' => array( |
|
708 | + 'name' => 'role', |
|
709 | + 'settings' => array( |
|
710 | 710 | 'rids' => array( |
711 | - 0 => 2, |
|
711 | + 0 => 2, |
|
712 | + ), |
|
712 | 713 | ), |
713 | - ), |
|
714 | - 'context' => 'logged-in-user', |
|
715 | - 'not' => FALSE, |
|
714 | + 'context' => 'logged-in-user', |
|
715 | + 'not' => FALSE, |
|
716 | 716 | ), |
717 | 717 | 4 => array( |
718 | - 'name' => 'php', |
|
719 | - 'settings' => array( |
|
718 | + 'name' => 'php', |
|
719 | + 'settings' => array( |
|
720 | 720 | 'description' => 'An admin of this team', |
721 | 721 | 'php' => '$team_id = $contexts[\'argument_nid_1\']->data->nid; |
722 | 722 | return (boincteam_is_founder($team_id) OR boincteam_is_admin($team_id));', |
723 | - ), |
|
724 | - 'not' => FALSE, |
|
723 | + ), |
|
724 | + 'not' => FALSE, |
|
725 | + ), |
|
725 | 726 | ), |
726 | - ), |
|
727 | - 'logic' => 'and', |
|
727 | + 'logic' => 'and', |
|
728 | 728 | ), |
729 | - ); |
|
730 | - $display = new panels_display; |
|
731 | - $display->layout = 'onecol'; |
|
732 | - $display->layout_settings = array(); |
|
733 | - $display->panel_settings = array( |
|
729 | + ); |
|
730 | + $display = new panels_display; |
|
731 | + $display->layout = 'onecol'; |
|
732 | + $display->layout_settings = array(); |
|
733 | + $display->panel_settings = array( |
|
734 | 734 | 'style_settings' => array( |
735 | - 'default' => NULL, |
|
736 | - 'left' => NULL, |
|
737 | - 'right' => NULL, |
|
738 | - 'top' => NULL, |
|
739 | - 'bottom' => NULL, |
|
740 | - 'middle' => NULL, |
|
735 | + 'default' => NULL, |
|
736 | + 'left' => NULL, |
|
737 | + 'right' => NULL, |
|
738 | + 'top' => NULL, |
|
739 | + 'bottom' => NULL, |
|
740 | + 'middle' => NULL, |
|
741 | 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(); |
|
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 | 749 | $pane = new stdClass; |
750 | 750 | $pane->pid = 'new-1'; |
751 | 751 | $pane->panel = 'middle'; |
@@ -754,35 +754,35 @@ discard block |
||
754 | 754 | $pane->shown = TRUE; |
755 | 755 | $pane->access = array(); |
756 | 756 | $pane->configuration = array( |
757 | - 'items_per_page' => '25', |
|
758 | - 'override_title' => 1, |
|
759 | - 'override_title_text' => 'Remove members', |
|
757 | + 'items_per_page' => '25', |
|
758 | + 'override_title' => 1, |
|
759 | + 'override_title_text' => 'Remove members', |
|
760 | 760 | ); |
761 | 761 | $pane->cache = array(); |
762 | 762 | $pane->style = array( |
763 | - 'settings' => NULL, |
|
763 | + 'settings' => NULL, |
|
764 | 764 | ); |
765 | 765 | $pane->css = array( |
766 | - 'css_id' => '', |
|
767 | - 'css_class' => 'section framing container shadow', |
|
766 | + 'css_id' => '', |
|
767 | + 'css_class' => 'section framing container shadow', |
|
768 | 768 | ); |
769 | 769 | $pane->extras = array(); |
770 | 770 | $pane->position = 0; |
771 | 771 | $display->content['new-1'] = $pane; |
772 | 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( |
|
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 | 786 | 'title' => 'View emails', |
787 | 787 | 'no_blocks' => 0, |
788 | 788 | 'pipeline' => 'standard', |
@@ -791,58 +791,58 @@ discard block |
||
791 | 791 | 'contexts' => array(), |
792 | 792 | 'relationships' => array(), |
793 | 793 | 'access' => array( |
794 | - 'plugins' => array( |
|
794 | + 'plugins' => array( |
|
795 | 795 | 0 => array( |
796 | - 'name' => 'path_visibility', |
|
797 | - 'settings' => array( |
|
796 | + 'name' => 'path_visibility', |
|
797 | + 'settings' => array( |
|
798 | 798 | 'visibility_setting' => '1', |
799 | 799 | 'paths' => 'community/teams/*/members/email', |
800 | - ), |
|
801 | - 'context' => 'empty', |
|
802 | - 'not' => FALSE, |
|
800 | + ), |
|
801 | + 'context' => 'empty', |
|
802 | + 'not' => FALSE, |
|
803 | 803 | ), |
804 | 804 | 3 => array( |
805 | - 'name' => 'role', |
|
806 | - 'settings' => array( |
|
805 | + 'name' => 'role', |
|
806 | + 'settings' => array( |
|
807 | 807 | 'rids' => array( |
808 | - 0 => 2, |
|
808 | + 0 => 2, |
|
809 | + ), |
|
809 | 810 | ), |
810 | - ), |
|
811 | - 'context' => 'logged-in-user', |
|
812 | - 'not' => FALSE, |
|
811 | + 'context' => 'logged-in-user', |
|
812 | + 'not' => FALSE, |
|
813 | 813 | ), |
814 | 814 | 4 => array( |
815 | - 'name' => 'php', |
|
816 | - 'settings' => array( |
|
815 | + 'name' => 'php', |
|
816 | + 'settings' => array( |
|
817 | 817 | 'description' => 'An admin of this team', |
818 | 818 | 'php' => '$team_id = $contexts[\'argument_nid_1\']->data->nid; |
819 | 819 | return (boincteam_is_founder($team_id) OR boincteam_is_admin($team_id));', |
820 | - ), |
|
821 | - 'not' => FALSE, |
|
820 | + ), |
|
821 | + 'not' => FALSE, |
|
822 | + ), |
|
822 | 823 | ), |
823 | - ), |
|
824 | - 'logic' => 'and', |
|
824 | + 'logic' => 'and', |
|
825 | 825 | ), |
826 | - ); |
|
827 | - $display = new panels_display; |
|
828 | - $display->layout = 'onecol'; |
|
829 | - $display->layout_settings = array(); |
|
830 | - $display->panel_settings = array( |
|
826 | + ); |
|
827 | + $display = new panels_display; |
|
828 | + $display->layout = 'onecol'; |
|
829 | + $display->layout_settings = array(); |
|
830 | + $display->panel_settings = array( |
|
831 | 831 | 'style_settings' => array( |
832 | - 'default' => NULL, |
|
833 | - 'left' => NULL, |
|
834 | - 'right' => NULL, |
|
835 | - 'top' => NULL, |
|
836 | - 'bottom' => NULL, |
|
837 | - 'middle' => NULL, |
|
832 | + 'default' => NULL, |
|
833 | + 'left' => NULL, |
|
834 | + 'right' => NULL, |
|
835 | + 'top' => NULL, |
|
836 | + 'bottom' => NULL, |
|
837 | + 'middle' => NULL, |
|
838 | 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(); |
|
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 | 846 | $pane = new stdClass; |
847 | 847 | $pane->pid = 'new-1'; |
848 | 848 | $pane->panel = 'middle'; |
@@ -851,35 +851,35 @@ discard block |
||
851 | 851 | $pane->shown = TRUE; |
852 | 852 | $pane->access = array(); |
853 | 853 | $pane->configuration = array( |
854 | - 'items_per_page' => '25', |
|
855 | - 'override_title' => 1, |
|
856 | - 'override_title_text' => 'Email list', |
|
854 | + 'items_per_page' => '25', |
|
855 | + 'override_title' => 1, |
|
856 | + 'override_title_text' => 'Email list', |
|
857 | 857 | ); |
858 | 858 | $pane->cache = array(); |
859 | 859 | $pane->style = array( |
860 | - 'settings' => NULL, |
|
860 | + 'settings' => NULL, |
|
861 | 861 | ); |
862 | 862 | $pane->css = array( |
863 | - 'css_id' => '', |
|
864 | - 'css_class' => 'section framing container shadow', |
|
863 | + 'css_id' => '', |
|
864 | + 'css_class' => 'section framing container shadow', |
|
865 | 865 | ); |
866 | 866 | $pane->extras = array(); |
867 | 867 | $pane->position = 0; |
868 | 868 | $display->content['new-1'] = $pane; |
869 | 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( |
|
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 | 883 | 'title' => 'View members', |
884 | 884 | 'no_blocks' => 0, |
885 | 885 | 'pipeline' => 'standard', |
@@ -888,49 +888,49 @@ discard block |
||
888 | 888 | 'contexts' => array(), |
889 | 889 | 'relationships' => array(), |
890 | 890 | 'access' => array( |
891 | - 'plugins' => array( |
|
891 | + 'plugins' => array( |
|
892 | 892 | 0 => array( |
893 | - 'name' => 'path_visibility', |
|
894 | - 'settings' => array( |
|
893 | + 'name' => 'path_visibility', |
|
894 | + 'settings' => array( |
|
895 | 895 | 'visibility_setting' => '1', |
896 | 896 | 'paths' => 'community/teams/*/members', |
897 | - ), |
|
898 | - 'context' => 'empty', |
|
899 | - 'not' => FALSE, |
|
897 | + ), |
|
898 | + 'context' => 'empty', |
|
899 | + 'not' => FALSE, |
|
900 | 900 | ), |
901 | 901 | 3 => array( |
902 | - 'name' => 'role', |
|
903 | - 'settings' => array( |
|
902 | + 'name' => 'role', |
|
903 | + 'settings' => array( |
|
904 | 904 | 'rids' => array( |
905 | - 0 => 2, |
|
905 | + 0 => 2, |
|
906 | 906 | ), |
907 | - ), |
|
908 | - 'context' => 'logged-in-user', |
|
909 | - 'not' => FALSE, |
|
907 | + ), |
|
908 | + 'context' => 'logged-in-user', |
|
909 | + 'not' => FALSE, |
|
910 | + ), |
|
910 | 911 | ), |
911 | - ), |
|
912 | - 'logic' => 'and', |
|
912 | + 'logic' => 'and', |
|
913 | 913 | ), |
914 | - ); |
|
915 | - $display = new panels_display; |
|
916 | - $display->layout = 'onecol'; |
|
917 | - $display->layout_settings = array(); |
|
918 | - $display->panel_settings = array( |
|
914 | + ); |
|
915 | + $display = new panels_display; |
|
916 | + $display->layout = 'onecol'; |
|
917 | + $display->layout_settings = array(); |
|
918 | + $display->panel_settings = array( |
|
919 | 919 | 'style_settings' => array( |
920 | - 'default' => NULL, |
|
921 | - 'left' => NULL, |
|
922 | - 'right' => NULL, |
|
923 | - 'top' => NULL, |
|
924 | - 'bottom' => NULL, |
|
925 | - 'middle' => NULL, |
|
920 | + 'default' => NULL, |
|
921 | + 'left' => NULL, |
|
922 | + 'right' => NULL, |
|
923 | + 'top' => NULL, |
|
924 | + 'bottom' => NULL, |
|
925 | + 'middle' => NULL, |
|
926 | 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(); |
|
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 | 934 | $pane = new stdClass; |
935 | 935 | $pane->pid = 'new-1'; |
936 | 936 | $pane->panel = 'middle'; |
@@ -938,30 +938,30 @@ discard block |
||
938 | 938 | $pane->subtype = 'boinc_team_members-panel_pane_1'; |
939 | 939 | $pane->shown = TRUE; |
940 | 940 | $pane->access = array( |
941 | - 'plugins' => array( |
|
941 | + 'plugins' => array( |
|
942 | 942 | 0 => array( |
943 | - 'name' => 'php', |
|
944 | - 'settings' => array( |
|
943 | + 'name' => 'php', |
|
944 | + 'settings' => array( |
|
945 | 945 | 'description' => 'An admin of this team', |
946 | 946 | 'php' => '$team_id = $contexts[\'argument_nid_1\']->data->nid; |
947 | 947 | return (boincteam_is_founder($team_id) OR boincteam_is_admin($team_id));', |
948 | - ), |
|
949 | - 'not' => TRUE, |
|
948 | + ), |
|
949 | + 'not' => TRUE, |
|
950 | + ), |
|
950 | 951 | ), |
951 | - ), |
|
952 | 952 | ); |
953 | 953 | $pane->configuration = array( |
954 | - 'items_per_page' => '25', |
|
955 | - 'override_title' => 1, |
|
956 | - 'override_title_text' => 'Member list', |
|
954 | + 'items_per_page' => '25', |
|
955 | + 'override_title' => 1, |
|
956 | + 'override_title_text' => 'Member list', |
|
957 | 957 | ); |
958 | 958 | $pane->cache = array(); |
959 | 959 | $pane->style = array( |
960 | - 'settings' => NULL, |
|
960 | + 'settings' => NULL, |
|
961 | 961 | ); |
962 | 962 | $pane->css = array( |
963 | - 'css_id' => '', |
|
964 | - 'css_class' => 'section framing container shadow', |
|
963 | + 'css_id' => '', |
|
964 | + 'css_class' => 'section framing container shadow', |
|
965 | 965 | ); |
966 | 966 | $pane->extras = array(); |
967 | 967 | $pane->position = 0; |
@@ -974,48 +974,48 @@ discard block |
||
974 | 974 | $pane->subtype = 'boinc_team_members-panel_pane_2'; |
975 | 975 | $pane->shown = TRUE; |
976 | 976 | $pane->access = array( |
977 | - 'plugins' => array( |
|
977 | + 'plugins' => array( |
|
978 | 978 | 0 => array( |
979 | - 'name' => 'php', |
|
980 | - 'settings' => array( |
|
979 | + 'name' => 'php', |
|
980 | + 'settings' => array( |
|
981 | 981 | 'description' => 'An admin of this team', |
982 | 982 | 'php' => '$team_id = $contexts[\'argument_nid_1\']->data->nid; |
983 | 983 | return (boincteam_is_founder($team_id) OR boincteam_is_admin($team_id));', |
984 | - ), |
|
985 | - 'not' => FALSE, |
|
984 | + ), |
|
985 | + 'not' => FALSE, |
|
986 | + ), |
|
986 | 987 | ), |
987 | - ), |
|
988 | 988 | ); |
989 | 989 | $pane->configuration = array( |
990 | - 'items_per_page' => '25', |
|
991 | - 'override_title' => 1, |
|
992 | - 'override_title_text' => 'Member list', |
|
990 | + 'items_per_page' => '25', |
|
991 | + 'override_title' => 1, |
|
992 | + 'override_title_text' => 'Member list', |
|
993 | 993 | ); |
994 | 994 | $pane->cache = array(); |
995 | 995 | $pane->style = array( |
996 | - 'settings' => NULL, |
|
996 | + 'settings' => NULL, |
|
997 | 997 | ); |
998 | 998 | $pane->css = array( |
999 | - 'css_id' => '', |
|
1000 | - 'css_class' => 'section framing container shadow', |
|
999 | + 'css_id' => '', |
|
1000 | + 'css_class' => 'section framing container shadow', |
|
1001 | 1001 | ); |
1002 | 1002 | $pane->extras = array(); |
1003 | 1003 | $pane->position = 1; |
1004 | 1004 | $display->content['new-2'] = $pane; |
1005 | 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( |
|
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 | 1019 | 'title' => 'View history', |
1020 | 1020 | 'no_blocks' => 0, |
1021 | 1021 | 'pipeline' => 'standard', |
@@ -1024,58 +1024,58 @@ discard block |
||
1024 | 1024 | 'contexts' => array(), |
1025 | 1025 | 'relationships' => array(), |
1026 | 1026 | 'access' => array( |
1027 | - 'plugins' => array( |
|
1027 | + 'plugins' => array( |
|
1028 | 1028 | 0 => array( |
1029 | - 'name' => 'path_visibility', |
|
1030 | - 'settings' => array( |
|
1029 | + 'name' => 'path_visibility', |
|
1030 | + 'settings' => array( |
|
1031 | 1031 | 'visibility_setting' => '1', |
1032 | 1032 | 'paths' => 'community/teams/*/history', |
1033 | - ), |
|
1034 | - 'context' => 'empty', |
|
1035 | - 'not' => FALSE, |
|
1033 | + ), |
|
1034 | + 'context' => 'empty', |
|
1035 | + 'not' => FALSE, |
|
1036 | 1036 | ), |
1037 | 1037 | 3 => array( |
1038 | - 'name' => 'role', |
|
1039 | - 'settings' => array( |
|
1038 | + 'name' => 'role', |
|
1039 | + 'settings' => array( |
|
1040 | 1040 | 'rids' => array( |
1041 | - 0 => 2, |
|
1041 | + 0 => 2, |
|
1042 | + ), |
|
1042 | 1043 | ), |
1043 | - ), |
|
1044 | - 'context' => 'logged-in-user', |
|
1045 | - 'not' => FALSE, |
|
1044 | + 'context' => 'logged-in-user', |
|
1045 | + 'not' => FALSE, |
|
1046 | 1046 | ), |
1047 | 1047 | 4 => array( |
1048 | - 'name' => 'php', |
|
1049 | - 'settings' => array( |
|
1048 | + 'name' => 'php', |
|
1049 | + 'settings' => array( |
|
1050 | 1050 | 'description' => 'An admin of this team', |
1051 | 1051 | 'php' => '$team_id = $contexts[\'argument_nid_1\']->data->nid; |
1052 | 1052 | return (boincteam_is_founder($team_id) OR boincteam_is_admin($team_id));', |
1053 | - ), |
|
1054 | - 'not' => FALSE, |
|
1053 | + ), |
|
1054 | + 'not' => FALSE, |
|
1055 | + ), |
|
1055 | 1056 | ), |
1056 | - ), |
|
1057 | - 'logic' => 'and', |
|
1057 | + 'logic' => 'and', |
|
1058 | 1058 | ), |
1059 | - ); |
|
1060 | - $display = new panels_display; |
|
1061 | - $display->layout = 'onecol'; |
|
1062 | - $display->layout_settings = array(); |
|
1063 | - $display->panel_settings = array( |
|
1059 | + ); |
|
1060 | + $display = new panels_display; |
|
1061 | + $display->layout = 'onecol'; |
|
1062 | + $display->layout_settings = array(); |
|
1063 | + $display->panel_settings = array( |
|
1064 | 1064 | 'style_settings' => array( |
1065 | - 'default' => NULL, |
|
1066 | - 'left' => NULL, |
|
1067 | - 'right' => NULL, |
|
1068 | - 'top' => NULL, |
|
1069 | - 'bottom' => NULL, |
|
1070 | - 'middle' => NULL, |
|
1065 | + 'default' => NULL, |
|
1066 | + 'left' => NULL, |
|
1067 | + 'right' => NULL, |
|
1068 | + 'top' => NULL, |
|
1069 | + 'bottom' => NULL, |
|
1070 | + 'middle' => NULL, |
|
1071 | 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(); |
|
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 | 1079 | $pane = new stdClass; |
1080 | 1080 | $pane->pid = 'new-1'; |
1081 | 1081 | $pane->panel = 'middle'; |
@@ -1084,35 +1084,35 @@ discard block |
||
1084 | 1084 | $pane->shown = TRUE; |
1085 | 1085 | $pane->access = array(); |
1086 | 1086 | $pane->configuration = array( |
1087 | - 'items_per_page' => '25', |
|
1088 | - 'override_title' => 1, |
|
1089 | - 'override_title_text' => 'Team history', |
|
1087 | + 'items_per_page' => '25', |
|
1088 | + 'override_title' => 1, |
|
1089 | + 'override_title_text' => 'Team history', |
|
1090 | 1090 | ); |
1091 | 1091 | $pane->cache = array(); |
1092 | 1092 | $pane->style = array( |
1093 | - 'settings' => NULL, |
|
1093 | + 'settings' => NULL, |
|
1094 | 1094 | ); |
1095 | 1095 | $pane->css = array( |
1096 | - 'css_id' => '', |
|
1097 | - 'css_class' => 'section framing container shadow', |
|
1096 | + 'css_id' => '', |
|
1097 | + 'css_class' => 'section framing container shadow', |
|
1098 | 1098 | ); |
1099 | 1099 | $pane->extras = array(); |
1100 | 1100 | $pane->position = 0; |
1101 | 1101 | $display->content['new-1'] = $pane; |
1102 | 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( |
|
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 | 1116 | 'title' => 'Manage admins', |
1117 | 1117 | 'no_blocks' => 0, |
1118 | 1118 | 'pipeline' => 'standard', |
@@ -1121,58 +1121,58 @@ discard block |
||
1121 | 1121 | 'contexts' => array(), |
1122 | 1122 | 'relationships' => array(), |
1123 | 1123 | 'access' => array( |
1124 | - 'plugins' => array( |
|
1124 | + 'plugins' => array( |
|
1125 | 1125 | 0 => array( |
1126 | - 'name' => 'path_visibility', |
|
1127 | - 'settings' => array( |
|
1126 | + 'name' => 'path_visibility', |
|
1127 | + 'settings' => array( |
|
1128 | 1128 | 'visibility_setting' => '1', |
1129 | 1129 | 'paths' => 'community/teams/*/edit/admins', |
1130 | - ), |
|
1131 | - 'context' => 'empty', |
|
1132 | - 'not' => FALSE, |
|
1130 | + ), |
|
1131 | + 'context' => 'empty', |
|
1132 | + 'not' => FALSE, |
|
1133 | 1133 | ), |
1134 | 1134 | 3 => array( |
1135 | - 'name' => 'role', |
|
1136 | - 'settings' => array( |
|
1135 | + 'name' => 'role', |
|
1136 | + 'settings' => array( |
|
1137 | 1137 | 'rids' => array( |
1138 | - 0 => 2, |
|
1138 | + 0 => 2, |
|
1139 | + ), |
|
1139 | 1140 | ), |
1140 | - ), |
|
1141 | - 'context' => 'logged-in-user', |
|
1142 | - 'not' => FALSE, |
|
1141 | + 'context' => 'logged-in-user', |
|
1142 | + 'not' => FALSE, |
|
1143 | 1143 | ), |
1144 | 1144 | 4 => array( |
1145 | - 'name' => 'php', |
|
1146 | - 'settings' => array( |
|
1145 | + 'name' => 'php', |
|
1146 | + 'settings' => array( |
|
1147 | 1147 | 'description' => 'User is team founder', |
1148 | 1148 | 'php' => '$team_id = $contexts[\'argument_nid_1\']->data->nid; |
1149 | 1149 | return boincteam_is_founder($team_id);', |
1150 | - ), |
|
1151 | - 'not' => FALSE, |
|
1150 | + ), |
|
1151 | + 'not' => FALSE, |
|
1152 | + ), |
|
1152 | 1153 | ), |
1153 | - ), |
|
1154 | - 'logic' => 'and', |
|
1154 | + 'logic' => 'and', |
|
1155 | 1155 | ), |
1156 | - ); |
|
1157 | - $display = new panels_display; |
|
1158 | - $display->layout = 'twocol_stacked'; |
|
1159 | - $display->layout_settings = array(); |
|
1160 | - $display->panel_settings = array( |
|
1156 | + ); |
|
1157 | + $display = new panels_display; |
|
1158 | + $display->layout = 'twocol_stacked'; |
|
1159 | + $display->layout_settings = array(); |
|
1160 | + $display->panel_settings = array( |
|
1161 | 1161 | 'style_settings' => array( |
1162 | - 'default' => NULL, |
|
1163 | - 'left' => NULL, |
|
1164 | - 'right' => NULL, |
|
1165 | - 'top' => NULL, |
|
1166 | - 'bottom' => NULL, |
|
1167 | - 'middle' => NULL, |
|
1162 | + 'default' => NULL, |
|
1163 | + 'left' => NULL, |
|
1164 | + 'right' => NULL, |
|
1165 | + 'top' => NULL, |
|
1166 | + 'bottom' => NULL, |
|
1167 | + 'middle' => NULL, |
|
1168 | 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(); |
|
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 | 1176 | $pane = new stdClass; |
1177 | 1177 | $pane->pid = 'new-1'; |
1178 | 1178 | $pane->panel = 'left'; |
@@ -1181,17 +1181,17 @@ discard block |
||
1181 | 1181 | $pane->shown = TRUE; |
1182 | 1182 | $pane->access = array(); |
1183 | 1183 | $pane->configuration = array( |
1184 | - 'items_per_page' => '10', |
|
1185 | - 'override_title' => 1, |
|
1186 | - 'override_title_text' => 'Manage team admins', |
|
1184 | + 'items_per_page' => '10', |
|
1185 | + 'override_title' => 1, |
|
1186 | + 'override_title_text' => 'Manage team admins', |
|
1187 | 1187 | ); |
1188 | 1188 | $pane->cache = array(); |
1189 | 1189 | $pane->style = array( |
1190 | - 'settings' => NULL, |
|
1190 | + 'settings' => NULL, |
|
1191 | 1191 | ); |
1192 | 1192 | $pane->css = array( |
1193 | - 'css_id' => '', |
|
1194 | - 'css_class' => 'panel-primary container shadow', |
|
1193 | + 'css_id' => '', |
|
1194 | + 'css_class' => 'panel-primary container shadow', |
|
1195 | 1195 | ); |
1196 | 1196 | $pane->extras = array(); |
1197 | 1197 | $pane->position = 0; |
@@ -1205,37 +1205,37 @@ discard block |
||
1205 | 1205 | $pane->shown = TRUE; |
1206 | 1206 | $pane->access = array(); |
1207 | 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, |
|
1208 | + 'admin_title' => 'About team admins', |
|
1209 | + 'title' => '', |
|
1210 | + 'body' => '<?php echo boincteam_about_admins_panel(); ?>', |
|
1211 | + 'format' => '3', |
|
1212 | + 'substitute' => 1, |
|
1213 | 1213 | ); |
1214 | 1214 | $pane->cache = array(); |
1215 | 1215 | $pane->style = array( |
1216 | - 'settings' => NULL, |
|
1216 | + 'settings' => NULL, |
|
1217 | 1217 | ); |
1218 | 1218 | $pane->css = array( |
1219 | - 'css_id' => '', |
|
1220 | - 'css_class' => 'panel-secondary container shadow', |
|
1219 | + 'css_id' => '', |
|
1220 | + 'css_class' => 'panel-secondary container shadow', |
|
1221 | 1221 | ); |
1222 | 1222 | $pane->extras = array(); |
1223 | 1223 | $pane->position = 0; |
1224 | 1224 | $display->content['new-2'] = $pane; |
1225 | 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( |
|
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 | 1239 | 'title' => 'Change founder', |
1240 | 1240 | 'no_blocks' => 0, |
1241 | 1241 | 'pipeline' => 'standard', |
@@ -1244,58 +1244,58 @@ discard block |
||
1244 | 1244 | 'contexts' => array(), |
1245 | 1245 | 'relationships' => array(), |
1246 | 1246 | 'access' => array( |
1247 | - 'plugins' => array( |
|
1247 | + 'plugins' => array( |
|
1248 | 1248 | 0 => array( |
1249 | - 'name' => 'path_visibility', |
|
1250 | - 'settings' => array( |
|
1249 | + 'name' => 'path_visibility', |
|
1250 | + 'settings' => array( |
|
1251 | 1251 | 'visibility_setting' => '1', |
1252 | 1252 | 'paths' => 'community/teams/*/edit/founder', |
1253 | - ), |
|
1254 | - 'context' => 'empty', |
|
1255 | - 'not' => FALSE, |
|
1253 | + ), |
|
1254 | + 'context' => 'empty', |
|
1255 | + 'not' => FALSE, |
|
1256 | 1256 | ), |
1257 | 1257 | 3 => array( |
1258 | - 'name' => 'role', |
|
1259 | - 'settings' => array( |
|
1258 | + 'name' => 'role', |
|
1259 | + 'settings' => array( |
|
1260 | 1260 | 'rids' => array( |
1261 | - 0 => 2, |
|
1261 | + 0 => 2, |
|
1262 | + ), |
|
1262 | 1263 | ), |
1263 | - ), |
|
1264 | - 'context' => 'logged-in-user', |
|
1265 | - 'not' => FALSE, |
|
1264 | + 'context' => 'logged-in-user', |
|
1265 | + 'not' => FALSE, |
|
1266 | 1266 | ), |
1267 | 1267 | 4 => array( |
1268 | - 'name' => 'php', |
|
1269 | - 'settings' => array( |
|
1268 | + 'name' => 'php', |
|
1269 | + 'settings' => array( |
|
1270 | 1270 | 'description' => 'User is team founder', |
1271 | 1271 | 'php' => '$team_id = $contexts[\'argument_nid_1\']->data->nid; |
1272 | 1272 | return boincteam_is_founder($team_id);', |
1273 | - ), |
|
1274 | - 'not' => FALSE, |
|
1273 | + ), |
|
1274 | + 'not' => FALSE, |
|
1275 | + ), |
|
1275 | 1276 | ), |
1276 | - ), |
|
1277 | - 'logic' => 'and', |
|
1277 | + 'logic' => 'and', |
|
1278 | 1278 | ), |
1279 | - ); |
|
1280 | - $display = new panels_display; |
|
1281 | - $display->layout = 'twocol_stacked'; |
|
1282 | - $display->layout_settings = array(); |
|
1283 | - $display->panel_settings = array( |
|
1279 | + ); |
|
1280 | + $display = new panels_display; |
|
1281 | + $display->layout = 'twocol_stacked'; |
|
1282 | + $display->layout_settings = array(); |
|
1283 | + $display->panel_settings = array( |
|
1284 | 1284 | 'style_settings' => array( |
1285 | - 'default' => NULL, |
|
1286 | - 'left' => NULL, |
|
1287 | - 'right' => NULL, |
|
1288 | - 'top' => NULL, |
|
1289 | - 'bottom' => NULL, |
|
1290 | - 'middle' => NULL, |
|
1285 | + 'default' => NULL, |
|
1286 | + 'left' => NULL, |
|
1287 | + 'right' => NULL, |
|
1288 | + 'top' => NULL, |
|
1289 | + 'bottom' => NULL, |
|
1290 | + 'middle' => NULL, |
|
1291 | 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(); |
|
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 | 1299 | $pane = new stdClass; |
1300 | 1300 | $pane->pid = 'new-1'; |
1301 | 1301 | $pane->panel = 'left'; |
@@ -1304,19 +1304,19 @@ discard block |
||
1304 | 1304 | $pane->shown = TRUE; |
1305 | 1305 | $pane->access = array(); |
1306 | 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, |
|
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 | 1312 | ); |
1313 | 1313 | $pane->cache = array(); |
1314 | 1314 | $pane->style = array( |
1315 | - 'settings' => NULL, |
|
1315 | + 'settings' => NULL, |
|
1316 | 1316 | ); |
1317 | 1317 | $pane->css = array( |
1318 | - 'css_id' => '', |
|
1319 | - 'css_class' => 'panel-primary container shadow', |
|
1318 | + 'css_id' => '', |
|
1319 | + 'css_class' => 'panel-primary container shadow', |
|
1320 | 1320 | ); |
1321 | 1321 | $pane->extras = array(); |
1322 | 1322 | $pane->position = 0; |
@@ -1330,17 +1330,17 @@ discard block |
||
1330 | 1330 | $pane->shown = TRUE; |
1331 | 1331 | $pane->access = array(); |
1332 | 1332 | $pane->configuration = array( |
1333 | - 'items_per_page' => '25', |
|
1334 | - 'override_title' => 1, |
|
1335 | - 'override_title_text' => 'Change founder', |
|
1333 | + 'items_per_page' => '25', |
|
1334 | + 'override_title' => 1, |
|
1335 | + 'override_title_text' => 'Change founder', |
|
1336 | 1336 | ); |
1337 | 1337 | $pane->cache = array(); |
1338 | 1338 | $pane->style = array( |
1339 | - 'settings' => NULL, |
|
1339 | + 'settings' => NULL, |
|
1340 | 1340 | ); |
1341 | 1341 | $pane->css = array( |
1342 | - 'css_id' => '', |
|
1343 | - 'css_class' => 'panel-primary container shadow', |
|
1342 | + 'css_id' => '', |
|
1343 | + 'css_class' => 'panel-primary container shadow', |
|
1344 | 1344 | ); |
1345 | 1345 | $pane->extras = array(); |
1346 | 1346 | $pane->position = 1; |
@@ -1354,37 +1354,37 @@ discard block |
||
1354 | 1354 | $pane->shown = TRUE; |
1355 | 1355 | $pane->access = array(); |
1356 | 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, |
|
1357 | + 'admin_title' => 'About changing team founder', |
|
1358 | + 'title' => '', |
|
1359 | + 'body' => '<?php echo boincteam_about_founder_panel(); ?>', |
|
1360 | + 'format' => '3', |
|
1361 | + 'substitute' => 1, |
|
1362 | 1362 | ); |
1363 | 1363 | $pane->cache = array(); |
1364 | 1364 | $pane->style = array( |
1365 | - 'settings' => NULL, |
|
1365 | + 'settings' => NULL, |
|
1366 | 1366 | ); |
1367 | 1367 | $pane->css = array( |
1368 | - 'css_id' => '', |
|
1369 | - 'css_class' => 'panel-secondary container shadow', |
|
1368 | + 'css_id' => '', |
|
1369 | + 'css_class' => 'panel-secondary container shadow', |
|
1370 | 1370 | ); |
1371 | 1371 | $pane->extras = array(); |
1372 | 1372 | $pane->position = 0; |
1373 | 1373 | $display->content['new-3'] = $pane; |
1374 | 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( |
|
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 | 1388 | 'title' => 'View forum', |
1389 | 1389 | 'no_blocks' => 0, |
1390 | 1390 | 'pipeline' => 'standard', |
@@ -1393,59 +1393,59 @@ discard block |
||
1393 | 1393 | 'contexts' => array(), |
1394 | 1394 | 'relationships' => array(), |
1395 | 1395 | 'access' => array( |
1396 | - 'plugins' => array( |
|
1396 | + 'plugins' => array( |
|
1397 | 1397 | 0 => array( |
1398 | - 'name' => 'path_visibility', |
|
1399 | - 'settings' => array( |
|
1398 | + 'name' => 'path_visibility', |
|
1399 | + 'settings' => array( |
|
1400 | 1400 | 'visibility_setting' => '1', |
1401 | 1401 | 'paths' => 'community/teams/*/forum/*', |
1402 | - ), |
|
1403 | - 'context' => 'empty', |
|
1404 | - 'not' => FALSE, |
|
1402 | + ), |
|
1403 | + 'context' => 'empty', |
|
1404 | + 'not' => FALSE, |
|
1405 | 1405 | ), |
1406 | 1406 | 3 => array( |
1407 | - 'name' => 'role', |
|
1408 | - 'settings' => array( |
|
1407 | + 'name' => 'role', |
|
1408 | + 'settings' => array( |
|
1409 | 1409 | 'rids' => array( |
1410 | - 0 => 2, |
|
1410 | + 0 => 2, |
|
1411 | + ), |
|
1411 | 1412 | ), |
1412 | - ), |
|
1413 | - 'context' => 'logged-in-user', |
|
1414 | - 'not' => FALSE, |
|
1413 | + 'context' => 'logged-in-user', |
|
1414 | + 'not' => FALSE, |
|
1415 | 1415 | ), |
1416 | 1416 | 4 => array( |
1417 | - 'name' => 'php', |
|
1418 | - 'settings' => array( |
|
1417 | + 'name' => 'php', |
|
1418 | + 'settings' => array( |
|
1419 | 1419 | 'description' => 'A member of this team or the forum is public', |
1420 | 1420 | 'php' => '$team_id = $contexts[\'argument_nid_1\']->data->nid; |
1421 | 1421 | $team_forum_id = $contexts[\'argument_string_2\']->data; |
1422 | 1422 | return (boincteam_is_member($team_id) OR boincteam_forum_is_public($team_forum_id));', |
1423 | - ), |
|
1424 | - 'not' => FALSE, |
|
1423 | + ), |
|
1424 | + 'not' => FALSE, |
|
1425 | 1425 | ), |
1426 | - ), |
|
1427 | - 'logic' => 'and', |
|
1426 | + ), |
|
1427 | + 'logic' => 'and', |
|
1428 | 1428 | ), |
1429 | - ); |
|
1430 | - $display = new panels_display; |
|
1431 | - $display->layout = 'onecol'; |
|
1432 | - $display->layout_settings = array(); |
|
1433 | - $display->panel_settings = array( |
|
1429 | + ); |
|
1430 | + $display = new panels_display; |
|
1431 | + $display->layout = 'onecol'; |
|
1432 | + $display->layout_settings = array(); |
|
1433 | + $display->panel_settings = array( |
|
1434 | 1434 | 'style_settings' => array( |
1435 | - 'default' => NULL, |
|
1436 | - 'left' => NULL, |
|
1437 | - 'right' => NULL, |
|
1438 | - 'top' => NULL, |
|
1439 | - 'bottom' => NULL, |
|
1440 | - 'middle' => NULL, |
|
1435 | + 'default' => NULL, |
|
1436 | + 'left' => NULL, |
|
1437 | + 'right' => NULL, |
|
1438 | + 'top' => NULL, |
|
1439 | + 'bottom' => NULL, |
|
1440 | + 'middle' => NULL, |
|
1441 | 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(); |
|
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 | 1449 | $pane = new stdClass; |
1450 | 1450 | $pane->pid = 'new-1'; |
1451 | 1451 | $pane->panel = 'middle'; |
@@ -1454,34 +1454,34 @@ discard block |
||
1454 | 1454 | $pane->shown = TRUE; |
1455 | 1455 | $pane->access = array(); |
1456 | 1456 | $pane->configuration = array( |
1457 | - 'override_title' => 0, |
|
1458 | - 'override_title_text' => '', |
|
1457 | + 'override_title' => 0, |
|
1458 | + 'override_title_text' => '', |
|
1459 | 1459 | ); |
1460 | 1460 | $pane->cache = array(); |
1461 | 1461 | $pane->style = array( |
1462 | - 'settings' => NULL, |
|
1462 | + 'settings' => NULL, |
|
1463 | 1463 | ); |
1464 | 1464 | $pane->css = array( |
1465 | - 'css_id' => '', |
|
1466 | - 'css_class' => 'section framing container shadow', |
|
1465 | + 'css_id' => '', |
|
1466 | + 'css_class' => 'section framing container shadow', |
|
1467 | 1467 | ); |
1468 | 1468 | $pane->extras = array(); |
1469 | 1469 | $pane->position = 0; |
1470 | 1470 | $display->content['new-1'] = $pane; |
1471 | 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( |
|
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 | 1485 | 'title' => 'View team', |
1486 | 1486 | 'no_blocks' => 0, |
1487 | 1487 | 'pipeline' => 'standard', |
@@ -1490,106 +1490,106 @@ discard block |
||
1490 | 1490 | 'contexts' => array(), |
1491 | 1491 | 'relationships' => array(), |
1492 | 1492 | 'access' => array( |
1493 | - 'plugins' => array( |
|
1493 | + 'plugins' => array( |
|
1494 | 1494 | 0 => array( |
1495 | - 'name' => 'node_access', |
|
1496 | - 'settings' => array( |
|
1495 | + 'name' => 'node_access', |
|
1496 | + 'settings' => array( |
|
1497 | 1497 | 'type' => 'view', |
1498 | - ), |
|
1499 | - 'context' => array( |
|
1498 | + ), |
|
1499 | + 'context' => array( |
|
1500 | 1500 | 0 => 'logged-in-user', |
1501 | 1501 | 1 => 'argument_nid_1', |
1502 | - ), |
|
1503 | - 'not' => FALSE, |
|
1502 | + ), |
|
1503 | + 'not' => FALSE, |
|
1504 | + ), |
|
1504 | 1505 | ), |
1505 | - ), |
|
1506 | - 'logic' => 'and', |
|
1506 | + 'logic' => 'and', |
|
1507 | 1507 | ), |
1508 | - ); |
|
1509 | - $display = new panels_display; |
|
1510 | - $display->layout = 'twocol_stacked'; |
|
1511 | - $display->layout_settings = array( |
|
1508 | + ); |
|
1509 | + $display = new panels_display; |
|
1510 | + $display->layout = 'twocol_stacked'; |
|
1511 | + $display->layout_settings = array( |
|
1512 | 1512 | 'items' => array( |
1513 | - 'canvas' => array( |
|
1513 | + 'canvas' => array( |
|
1514 | 1514 | 'type' => 'row', |
1515 | 1515 | 'contains' => 'column', |
1516 | 1516 | 'children' => array( |
1517 | - 0 => 'main', |
|
1518 | - 1 => 2, |
|
1517 | + 0 => 'main', |
|
1518 | + 1 => 2, |
|
1519 | 1519 | ), |
1520 | 1520 | 'parent' => NULL, |
1521 | - ), |
|
1522 | - 'main' => array( |
|
1521 | + ), |
|
1522 | + 'main' => array( |
|
1523 | 1523 | 'type' => 'column', |
1524 | 1524 | 'width' => 50, |
1525 | 1525 | 'width_type' => '%', |
1526 | 1526 | 'children' => array( |
1527 | - 0 => 'main-row', |
|
1528 | - 1 => 1, |
|
1527 | + 0 => 'main-row', |
|
1528 | + 1 => 1, |
|
1529 | 1529 | ), |
1530 | 1530 | 'parent' => 'canvas', |
1531 | - ), |
|
1532 | - 'main-row' => array( |
|
1531 | + ), |
|
1532 | + 'main-row' => array( |
|
1533 | 1533 | 'type' => 'row', |
1534 | 1534 | 'contains' => 'region', |
1535 | 1535 | 'children' => array( |
1536 | - 0 => 'center', |
|
1536 | + 0 => 'center', |
|
1537 | 1537 | ), |
1538 | 1538 | 'parent' => 'main', |
1539 | - ), |
|
1540 | - 'center' => array( |
|
1539 | + ), |
|
1540 | + 'center' => array( |
|
1541 | 1541 | 'type' => 'region', |
1542 | 1542 | 'title' => 'Center', |
1543 | 1543 | 'width' => 100, |
1544 | 1544 | 'width_type' => '%', |
1545 | 1545 | 'parent' => 'main-row', |
1546 | - ), |
|
1547 | - 1 => array( |
|
1546 | + ), |
|
1547 | + 1 => array( |
|
1548 | 1548 | 'type' => 'row', |
1549 | 1549 | 'contains' => 'region', |
1550 | 1550 | 'children' => array( |
1551 | - 0 => 'top_teams', |
|
1551 | + 0 => 'top_teams', |
|
1552 | 1552 | ), |
1553 | 1553 | 'parent' => 'main', |
1554 | 1554 | 'class' => 'panel-primary container shadow', |
1555 | - ), |
|
1556 | - 'top_teams' => array( |
|
1555 | + ), |
|
1556 | + 'top_teams' => array( |
|
1557 | 1557 | 'type' => 'region', |
1558 | 1558 | 'title' => 'Top teams', |
1559 | 1559 | 'width' => 100, |
1560 | 1560 | 'width_type' => '%', |
1561 | 1561 | 'parent' => '1', |
1562 | 1562 | 'class' => 'panel-primary container shadow', |
1563 | - ), |
|
1564 | - 2 => array( |
|
1563 | + ), |
|
1564 | + 2 => array( |
|
1565 | 1565 | 'type' => 'column', |
1566 | 1566 | 'width' => 50, |
1567 | 1567 | 'width_type' => '%', |
1568 | 1568 | 'parent' => 'canvas', |
1569 | 1569 | 'children' => array(), |
1570 | 1570 | 'class' => '', |
1571 | - ), |
|
1571 | + ), |
|
1572 | 1572 | ), |
1573 | - ); |
|
1574 | - $display->panel_settings = array( |
|
1573 | + ); |
|
1574 | + $display->panel_settings = array( |
|
1575 | 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, |
|
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 | 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(); |
|
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 | 1593 | $pane = new stdClass; |
1594 | 1594 | $pane->pid = 'new-1'; |
1595 | 1595 | $pane->panel = 'left'; |
@@ -1598,19 +1598,19 @@ discard block |
||
1598 | 1598 | $pane->shown = TRUE; |
1599 | 1599 | $pane->access = array(); |
1600 | 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, |
|
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 | 1606 | ); |
1607 | 1607 | $pane->cache = array(); |
1608 | 1608 | $pane->style = array( |
1609 | - 'settings' => NULL, |
|
1609 | + 'settings' => NULL, |
|
1610 | 1610 | ); |
1611 | 1611 | $pane->css = array( |
1612 | - 'css_id' => '', |
|
1613 | - 'css_class' => 'panel-primary container shadow', |
|
1612 | + 'css_id' => '', |
|
1613 | + 'css_class' => 'panel-primary container shadow', |
|
1614 | 1614 | ); |
1615 | 1615 | $pane->extras = array(); |
1616 | 1616 | $pane->position = 0; |
@@ -1623,33 +1623,33 @@ discard block |
||
1623 | 1623 | $pane->subtype = 'custom'; |
1624 | 1624 | $pane->shown = TRUE; |
1625 | 1625 | $pane->access = array( |
1626 | - 'plugins' => array( |
|
1626 | + 'plugins' => array( |
|
1627 | 1627 | 0 => array( |
1628 | - 'name' => 'php', |
|
1629 | - 'settings' => array( |
|
1628 | + 'name' => 'php', |
|
1629 | + 'settings' => array( |
|
1630 | 1630 | 'description' => 'An admin of this team', |
1631 | 1631 | 'php' => '$uid = $contexts[\'logged-in-user\']->data->uid; |
1632 | 1632 | $team_id = $contexts[\'argument_nid_1\']->data->nid; |
1633 | 1633 | return (boincteam_is_founder($team_id, $uid) OR boincteam_is_admin($team_id, $uid));', |
1634 | - ), |
|
1635 | - 'not' => FALSE, |
|
1634 | + ), |
|
1635 | + 'not' => FALSE, |
|
1636 | + ), |
|
1636 | 1637 | ), |
1637 | - ), |
|
1638 | 1638 | ); |
1639 | 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, |
|
1640 | + 'admin_title' => 'Manage team', |
|
1641 | + 'title' => '', |
|
1642 | + 'body' => '<?php echo boincteam_management_panel(%team_id:nid); ?>', |
|
1643 | + 'format' => '3', |
|
1644 | + 'substitute' => 1, |
|
1645 | 1645 | ); |
1646 | 1646 | $pane->cache = array(); |
1647 | 1647 | $pane->style = array( |
1648 | - 'settings' => NULL, |
|
1648 | + 'settings' => NULL, |
|
1649 | 1649 | ); |
1650 | 1650 | $pane->css = array( |
1651 | - 'css_id' => 'team-management', |
|
1652 | - 'css_class' => 'panel-secondary container shadow', |
|
1651 | + 'css_id' => 'team-management', |
|
1652 | + 'css_class' => 'panel-secondary container shadow', |
|
1653 | 1653 | ); |
1654 | 1654 | $pane->extras = array(); |
1655 | 1655 | $pane->position = 0; |
@@ -1662,10 +1662,10 @@ discard block |
||
1662 | 1662 | $pane->subtype = 'custom'; |
1663 | 1663 | $pane->shown = TRUE; |
1664 | 1664 | $pane->access = array( |
1665 | - 'plugins' => array( |
|
1665 | + 'plugins' => array( |
|
1666 | 1666 | 0 => array( |
1667 | - 'name' => 'php', |
|
1668 | - 'settings' => array( |
|
1667 | + 'name' => 'php', |
|
1668 | + 'settings' => array( |
|
1669 | 1669 | 'description' => 'A member of this team, the forum is public, or has global team moderation', |
1670 | 1670 | 'php' => '$team_id = $contexts[\'argument_nid_1\']->data->nid; |
1671 | 1671 | return ( |
@@ -1677,25 +1677,25 @@ discard block |
||
1677 | 1677 | boincteam_forum_list($team_id) |
1678 | 1678 | ) |
1679 | 1679 | );', |
1680 | - ), |
|
1681 | - 'not' => FALSE, |
|
1680 | + ), |
|
1681 | + 'not' => FALSE, |
|
1682 | + ), |
|
1682 | 1683 | ), |
1683 | - ), |
|
1684 | 1684 | ); |
1685 | 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, |
|
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 | 1691 | ); |
1692 | 1692 | $pane->cache = array(); |
1693 | 1693 | $pane->style = array( |
1694 | - 'settings' => NULL, |
|
1694 | + 'settings' => NULL, |
|
1695 | 1695 | ); |
1696 | 1696 | $pane->css = array( |
1697 | - 'css_id' => '', |
|
1698 | - 'css_class' => 'panel-secondary container shadow', |
|
1697 | + 'css_id' => '', |
|
1698 | + 'css_class' => 'panel-secondary container shadow', |
|
1699 | 1699 | ); |
1700 | 1700 | $pane->extras = array(); |
1701 | 1701 | $pane->position = 1; |
@@ -1708,50 +1708,50 @@ discard block |
||
1708 | 1708 | $pane->subtype = 'custom'; |
1709 | 1709 | $pane->shown = TRUE; |
1710 | 1710 | $pane->access = array( |
1711 | - 'plugins' => array( |
|
1711 | + 'plugins' => array( |
|
1712 | 1712 | 0 => array( |
1713 | - 'name' => 'php', |
|
1714 | - 'settings' => array( |
|
1713 | + 'name' => 'php', |
|
1714 | + 'settings' => array( |
|
1715 | 1715 | 'description' => 'Not in another team', |
1716 | 1716 | 'php' => '$account = user_load($contexts[\'logged-in-user\']->data->uid); |
1717 | 1717 | return ($account->team == 0);', |
1718 | - ), |
|
1719 | - 'not' => FALSE, |
|
1718 | + ), |
|
1719 | + 'not' => FALSE, |
|
1720 | 1720 | ), |
1721 | 1721 | 1 => array( |
1722 | - 'name' => 'perm', |
|
1723 | - 'settings' => array( |
|
1722 | + 'name' => 'perm', |
|
1723 | + 'settings' => array( |
|
1724 | 1724 | 'perm' => 'join boincteam', |
1725 | - ), |
|
1726 | - 'context' => 'logged-in-user', |
|
1727 | - 'not' => FALSE, |
|
1725 | + ), |
|
1726 | + 'context' => 'logged-in-user', |
|
1727 | + 'not' => FALSE, |
|
1728 | 1728 | ), |
1729 | 1729 | 2 => array( |
1730 | - 'name' => 'php', |
|
1731 | - 'settings' => array( |
|
1730 | + 'name' => 'php', |
|
1731 | + 'settings' => array( |
|
1732 | 1732 | 'description' => 'Team is open', |
1733 | 1733 | 'php' => '$team_id = $contexts[\'argument_nid_1\']->data->nid; |
1734 | 1734 | $boincteam = boincteam_load(boincteam_lookup_id($team_id)); |
1735 | 1735 | return $boincteam->joinable;', |
1736 | - ), |
|
1737 | - 'not' => FALSE, |
|
1736 | + ), |
|
1737 | + 'not' => FALSE, |
|
1738 | + ), |
|
1738 | 1739 | ), |
1739 | - ), |
|
1740 | 1740 | ); |
1741 | 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, |
|
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 | 1747 | ); |
1748 | 1748 | $pane->cache = array(); |
1749 | 1749 | $pane->style = array( |
1750 | - 'settings' => NULL, |
|
1750 | + 'settings' => NULL, |
|
1751 | 1751 | ); |
1752 | 1752 | $pane->css = array( |
1753 | - 'css_id' => '', |
|
1754 | - 'css_class' => 'panel-secondary container shadow', |
|
1753 | + 'css_id' => '', |
|
1754 | + 'css_class' => 'panel-secondary container shadow', |
|
1755 | 1755 | ); |
1756 | 1756 | $pane->extras = array(); |
1757 | 1757 | $pane->position = 2; |
@@ -1764,32 +1764,32 @@ discard block |
||
1764 | 1764 | $pane->subtype = 'custom'; |
1765 | 1765 | $pane->shown = TRUE; |
1766 | 1766 | $pane->access = array( |
1767 | - 'plugins' => array( |
|
1767 | + 'plugins' => array( |
|
1768 | 1768 | 0 => array( |
1769 | - 'name' => 'php', |
|
1770 | - 'settings' => array( |
|
1769 | + 'name' => 'php', |
|
1770 | + 'settings' => array( |
|
1771 | 1771 | 'description' => 'A member of this team', |
1772 | 1772 | 'php' => '$account = user_load($contexts[\'logged-in-user\']->data->uid); |
1773 | 1773 | return ($account->team == $contexts[\'argument_nid_1\']->data->nid);', |
1774 | - ), |
|
1775 | - 'not' => FALSE, |
|
1774 | + ), |
|
1775 | + 'not' => FALSE, |
|
1776 | + ), |
|
1776 | 1777 | ), |
1777 | - ), |
|
1778 | 1778 | ); |
1779 | 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, |
|
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 | 1785 | ); |
1786 | 1786 | $pane->cache = array(); |
1787 | 1787 | $pane->style = array( |
1788 | - 'settings' => NULL, |
|
1788 | + 'settings' => NULL, |
|
1789 | 1789 | ); |
1790 | 1790 | $pane->css = array( |
1791 | - 'css_id' => '', |
|
1792 | - 'css_class' => 'panel-secondary container shadow', |
|
1791 | + 'css_id' => '', |
|
1792 | + 'css_class' => 'panel-secondary container shadow', |
|
1793 | 1793 | ); |
1794 | 1794 | $pane->extras = array(); |
1795 | 1795 | $pane->position = 3; |
@@ -1802,42 +1802,42 @@ discard block |
||
1802 | 1802 | $pane->subtype = 'custom'; |
1803 | 1803 | $pane->shown = TRUE; |
1804 | 1804 | $pane->access = array( |
1805 | - 'plugins' => array( |
|
1805 | + 'plugins' => array( |
|
1806 | 1806 | 0 => array( |
1807 | - 'name' => 'php', |
|
1808 | - 'settings' => array( |
|
1807 | + 'name' => 'php', |
|
1808 | + 'settings' => array( |
|
1809 | 1809 | 'description' => 'A member of this team', |
1810 | 1810 | 'php' => '$account = user_load($contexts[\'logged-in-user\']->data->uid); |
1811 | 1811 | return ($account->team == $contexts[\'argument_nid_1\']->data->nid);', |
1812 | - ), |
|
1813 | - 'not' => FALSE, |
|
1812 | + ), |
|
1813 | + 'not' => FALSE, |
|
1814 | 1814 | ), |
1815 | 1815 | 1 => array( |
1816 | - 'name' => 'php', |
|
1817 | - 'settings' => array( |
|
1816 | + 'name' => 'php', |
|
1817 | + 'settings' => array( |
|
1818 | 1818 | 'description' => 'User is team founder', |
1819 | 1819 | 'php' => '$uid = $contexts[\'logged-in-user\']->data->uid; |
1820 | 1820 | $team_id = $contexts[\'argument_nid_1\']->data->nid; |
1821 | 1821 | return boincteam_is_founder($team_id, $uid);', |
1822 | - ), |
|
1823 | - 'not' => TRUE, |
|
1822 | + ), |
|
1823 | + 'not' => TRUE, |
|
1824 | + ), |
|
1824 | 1825 | ), |
1825 | - ), |
|
1826 | 1826 | ); |
1827 | 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, |
|
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 | 1833 | ); |
1834 | 1834 | $pane->cache = array(); |
1835 | 1835 | $pane->style = array( |
1836 | - 'settings' => NULL, |
|
1836 | + 'settings' => NULL, |
|
1837 | 1837 | ); |
1838 | 1838 | $pane->css = array( |
1839 | - 'css_id' => '', |
|
1840 | - 'css_class' => 'panel-secondary container shadow', |
|
1839 | + 'css_id' => '', |
|
1840 | + 'css_class' => 'panel-secondary container shadow', |
|
1841 | 1841 | ); |
1842 | 1842 | $pane->extras = array(); |
1843 | 1843 | $pane->position = 4; |
@@ -1851,30 +1851,30 @@ discard block |
||
1851 | 1851 | $pane->shown = TRUE; |
1852 | 1852 | $pane->access = array(); |
1853 | 1853 | $pane->configuration = array( |
1854 | - 'admin_title' => 'Search teams', |
|
1855 | - 'title' => '', |
|
1856 | - 'body' => '<?php echo boincteam_search_panel(); ?>', |
|
1857 | - 'format' => '3', |
|
1858 | - 'substitute' => TRUE, |
|
1854 | + 'admin_title' => 'Search teams', |
|
1855 | + 'title' => '', |
|
1856 | + 'body' => '<?php echo boincteam_search_panel(); ?>', |
|
1857 | + 'format' => '3', |
|
1858 | + 'substitute' => TRUE, |
|
1859 | 1859 | ); |
1860 | 1860 | $pane->cache = array(); |
1861 | 1861 | $pane->style = array( |
1862 | - 'settings' => NULL, |
|
1862 | + 'settings' => NULL, |
|
1863 | 1863 | ); |
1864 | 1864 | $pane->css = array( |
1865 | - 'css_id' => '', |
|
1866 | - 'css_class' => 'panel-secondary container shadow', |
|
1865 | + 'css_id' => '', |
|
1866 | + 'css_class' => 'panel-secondary container shadow', |
|
1867 | 1867 | ); |
1868 | 1868 | $pane->extras = array(); |
1869 | 1869 | $pane->position = 5; |
1870 | 1870 | $display->content['new-7'] = $pane; |
1871 | 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; |
|
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 | 1877 | |
1878 | - return $pages; |
|
1878 | + return $pages; |
|
1879 | 1879 | |
1880 | 1880 | } |
@@ -4,42 +4,42 @@ discard block |
||
4 | 4 | * Implementation of hook_default_page_manager_pages(). |
5 | 5 | */ |
6 | 6 | function work_and_host_stats_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 = 'page_stats'; |
|
11 | - $page->task = 'page'; |
|
12 | - $page->admin_title = 'Stats'; |
|
13 | - $page->admin_description = ''; |
|
14 | - $page->path = 'community/stats'; |
|
15 | - $page->access = array( |
|
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 = 'page_stats'; |
|
11 | + $page->task = 'page'; |
|
12 | + $page->admin_title = 'Stats'; |
|
13 | + $page->admin_description = ''; |
|
14 | + $page->path = 'community/stats'; |
|
15 | + $page->access = array( |
|
16 | 16 | 'type' => 'none', |
17 | 17 | 'settings' => NULL, |
18 | - ); |
|
19 | - $page->menu = array( |
|
18 | + ); |
|
19 | + $page->menu = array( |
|
20 | 20 | 'type' => 'normal', |
21 | 21 | 'title' => 'Statistics', |
22 | 22 | 'name' => 'primary-links', |
23 | 23 | 'weight' => '20', |
24 | 24 | 'parent' => array( |
25 | - 'type' => 'none', |
|
26 | - 'title' => '', |
|
27 | - 'name' => 'navigation', |
|
28 | - 'weight' => '0', |
|
25 | + 'type' => 'none', |
|
26 | + 'title' => '', |
|
27 | + 'name' => 'navigation', |
|
28 | + 'weight' => '0', |
|
29 | 29 | ), |
30 | - ); |
|
31 | - $page->arguments = array(); |
|
32 | - $page->conf = array(); |
|
33 | - $page->default_handlers = array(); |
|
34 | - $handler = new stdClass; |
|
35 | - $handler->disabled = FALSE; /* Edit this to true to make a default handler disabled initially */ |
|
36 | - $handler->api_version = 1; |
|
37 | - $handler->name = 'page_page_stats_panel_context'; |
|
38 | - $handler->task = 'page'; |
|
39 | - $handler->subtask = 'page_stats'; |
|
40 | - $handler->handler = 'panel_context'; |
|
41 | - $handler->weight = 0; |
|
42 | - $handler->conf = array( |
|
30 | + ); |
|
31 | + $page->arguments = array(); |
|
32 | + $page->conf = array(); |
|
33 | + $page->default_handlers = array(); |
|
34 | + $handler = new stdClass; |
|
35 | + $handler->disabled = FALSE; /* Edit this to true to make a default handler disabled initially */ |
|
36 | + $handler->api_version = 1; |
|
37 | + $handler->name = 'page_page_stats_panel_context'; |
|
38 | + $handler->task = 'page'; |
|
39 | + $handler->subtask = 'page_stats'; |
|
40 | + $handler->handler = 'panel_context'; |
|
41 | + $handler->weight = 0; |
|
42 | + $handler->conf = array( |
|
43 | 43 | 'title' => 'Panel', |
44 | 44 | 'no_blocks' => 0, |
45 | 45 | 'pipeline' => 'standard', |
@@ -47,22 +47,22 @@ discard block |
||
47 | 47 | 'css' => '', |
48 | 48 | 'contexts' => array(), |
49 | 49 | 'relationships' => array(), |
50 | - ); |
|
51 | - $display = new panels_display; |
|
52 | - $display->layout = 'onecol'; |
|
53 | - $display->layout_settings = array(); |
|
54 | - $display->panel_settings = array( |
|
50 | + ); |
|
51 | + $display = new panels_display; |
|
52 | + $display->layout = 'onecol'; |
|
53 | + $display->layout_settings = array(); |
|
54 | + $display->panel_settings = array( |
|
55 | 55 | 'style_settings' => array( |
56 | - 'default' => NULL, |
|
57 | - 'middle' => NULL, |
|
56 | + 'default' => NULL, |
|
57 | + 'middle' => NULL, |
|
58 | 58 | ), |
59 | - ); |
|
60 | - $display->cache = array(); |
|
61 | - $display->title = 'Statistics and Leaderboards'; |
|
62 | - $display->storage_type = 'page_manager'; |
|
63 | - $display->storage_id = 'page_page_stats_panel_context'; |
|
64 | - $display->content = array(); |
|
65 | - $display->panels = array(); |
|
59 | + ); |
|
60 | + $display->cache = array(); |
|
61 | + $display->title = 'Statistics and Leaderboards'; |
|
62 | + $display->storage_type = 'page_manager'; |
|
63 | + $display->storage_id = 'page_page_stats_panel_context'; |
|
64 | + $display->content = array(); |
|
65 | + $display->panels = array(); |
|
66 | 66 | $pane = new stdClass; |
67 | 67 | $pane->pid = 'new-1'; |
68 | 68 | $pane->panel = 'middle'; |
@@ -73,11 +73,11 @@ discard block |
||
73 | 73 | $pane->configuration = array(); |
74 | 74 | $pane->cache = array(); |
75 | 75 | $pane->style = array( |
76 | - 'settings' => NULL, |
|
76 | + 'settings' => NULL, |
|
77 | 77 | ); |
78 | 78 | $pane->css = array( |
79 | - 'css_id' => '', |
|
80 | - 'css_class' => 'panel-primary container shadow', |
|
79 | + 'css_id' => '', |
|
80 | + 'css_class' => 'panel-primary container shadow', |
|
81 | 81 | ); |
82 | 82 | $pane->extras = array(); |
83 | 83 | $pane->position = 0; |
@@ -93,11 +93,11 @@ discard block |
||
93 | 93 | $pane->configuration = array(); |
94 | 94 | $pane->cache = array(); |
95 | 95 | $pane->style = array( |
96 | - 'settings' => NULL, |
|
96 | + 'settings' => NULL, |
|
97 | 97 | ); |
98 | 98 | $pane->css = array( |
99 | - 'css_id' => '', |
|
100 | - 'css_class' => 'panel-primary container shadow', |
|
99 | + 'css_id' => '', |
|
100 | + 'css_class' => 'panel-primary container shadow', |
|
101 | 101 | ); |
102 | 102 | $pane->extras = array(); |
103 | 103 | $pane->position = 1; |
@@ -111,32 +111,32 @@ discard block |
||
111 | 111 | $pane->shown = TRUE; |
112 | 112 | $pane->access = array(); |
113 | 113 | $pane->configuration = array( |
114 | - 'link_to_view' => 0, |
|
115 | - 'more_link' => 1, |
|
116 | - 'use_pager' => 0, |
|
117 | - 'pager_id' => '', |
|
118 | - 'items_per_page' => '10', |
|
119 | - 'override_title' => 0, |
|
120 | - 'override_title_text' => '', |
|
114 | + 'link_to_view' => 0, |
|
115 | + 'more_link' => 1, |
|
116 | + 'use_pager' => 0, |
|
117 | + 'pager_id' => '', |
|
118 | + 'items_per_page' => '10', |
|
119 | + 'override_title' => 0, |
|
120 | + 'override_title_text' => '', |
|
121 | 121 | ); |
122 | 122 | $pane->cache = array(); |
123 | 123 | $pane->style = array( |
124 | - 'settings' => NULL, |
|
124 | + 'settings' => NULL, |
|
125 | 125 | ); |
126 | 126 | $pane->css = array( |
127 | - 'css_id' => '', |
|
128 | - 'css_class' => 'panel-primary container shadow', |
|
127 | + 'css_id' => '', |
|
128 | + 'css_class' => 'panel-primary container shadow', |
|
129 | 129 | ); |
130 | 130 | $pane->extras = array(); |
131 | 131 | $pane->position = 2; |
132 | 132 | $display->content['new-3'] = $pane; |
133 | 133 | $display->panels['middle'][2] = 'new-3'; |
134 | - $display->hide_title = PANELS_TITLE_FIXED; |
|
135 | - $display->title_pane = '0'; |
|
136 | - $handler->conf['display'] = $display; |
|
137 | - $page->default_handlers[$handler->name] = $handler; |
|
138 | - $pages['page_stats'] = $page; |
|
134 | + $display->hide_title = PANELS_TITLE_FIXED; |
|
135 | + $display->title_pane = '0'; |
|
136 | + $handler->conf['display'] = $display; |
|
137 | + $page->default_handlers[$handler->name] = $handler; |
|
138 | + $pages['page_stats'] = $page; |
|
139 | 139 | |
140 | - return $pages; |
|
140 | + return $pages; |
|
141 | 141 | |
142 | 142 | } |