1<?php
2
3/**
4 * Implementation of hook_default_page_manager_pages().
5 */
6function 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(
16    'type' => 'none',
17    'settings' => NULL,
18  );
19  $page->menu = array(
20    'type' => 'normal',
21    'title' => 'Statistics',
22    'name' => 'primary-links',
23    'weight' => '20',
24    'parent' => array(
25      'type' => 'none',
26      'title' => '',
27      'name' => 'navigation',
28      'weight' => '0',
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(
43    'title' => 'Panel',
44    'no_blocks' => 0,
45    'pipeline' => 'standard',
46    'css_id' => '',
47    'css' => '',
48    'contexts' => array(),
49    'relationships' => array(),
50  );
51  $display = new panels_display;
52  $display->layout = 'onecol';
53  $display->layout_settings = array();
54  $display->panel_settings = array(
55    'style_settings' => array(
56      'default' => NULL,
57      'middle' => NULL,
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();
66    $pane = new stdClass;
67    $pane->pid = 'new-1';
68    $pane->panel = 'middle';
69    $pane->type = 'views_panes';
70    $pane->subtype = 'boinc_users-panel_pane_1';
71    $pane->shown = TRUE;
72    $pane->access = array();
73    $pane->configuration = array();
74    $pane->cache = array();
75    $pane->style = array(
76      'settings' => NULL,
77    );
78    $pane->css = array(
79      'css_id' => '',
80      'css_class' => 'panel-primary container shadow',
81    );
82    $pane->extras = array();
83    $pane->position = 0;
84    $display->content['new-1'] = $pane;
85    $display->panels['middle'][0] = 'new-1';
86    $pane = new stdClass;
87    $pane->pid = 'new-2';
88    $pane->panel = 'middle';
89    $pane->type = 'views_panes';
90    $pane->subtype = 'boinc_host_list-panel_pane_1';
91    $pane->shown = TRUE;
92    $pane->access = array();
93    $pane->configuration = array();
94    $pane->cache = array();
95    $pane->style = array(
96      'settings' => NULL,
97    );
98    $pane->css = array(
99      'css_id' => '',
100      'css_class' => 'panel-primary container shadow',
101    );
102    $pane->extras = array();
103    $pane->position = 1;
104    $display->content['new-2'] = $pane;
105    $display->panels['middle'][1] = 'new-2';
106    $pane = new stdClass;
107    $pane->pid = 'new-3';
108    $pane->panel = 'middle';
109    $pane->type = 'views_panes';
110    $pane->subtype = 'boinc_teams-panel_pane_4';
111    $pane->shown = TRUE;
112    $pane->access = array();
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' => '',
121    );
122    $pane->cache = array();
123    $pane->style = array(
124      'settings' => NULL,
125    );
126    $pane->css = array(
127      'css_id' => '',
128      'css_class' => 'panel-primary container shadow',
129    );
130    $pane->extras = array();
131    $pane->position = 2;
132    $display->content['new-3'] = $pane;
133    $display->panels['middle'][2] = 'new-3';
134  $display->hide_title = PANELS_TITLE_NONE;
135  $display->title_pane = '0';
136  $handler->conf['display'] = $display;
137  $page->default_handlers[$handler->name] = $handler;
138  $pages['page_stats'] = $page;
139
140 return $pages;
141
142}
143