mirror of https://github.com/BOINC/boinc.git
623 lines
18 KiB
PHP
623 lines
18 KiB
PHP
<?php
|
|
|
|
/**
|
|
* Implementation of hook_default_page_manager_pages().
|
|
*/
|
|
function boinc_standard_default_page_manager_pages() {
|
|
$page = new stdClass;
|
|
$page->disabled = FALSE; /* Edit this to true to make a default page disabled initially */
|
|
$page->api_version = 1;
|
|
$page->name = 'about_us';
|
|
$page->task = 'page';
|
|
$page->admin_title = 'About Us';
|
|
$page->admin_description = '';
|
|
$page->path = 'about.fail';
|
|
$page->access = array(
|
|
'type' => 'none',
|
|
'settings' => NULL,
|
|
);
|
|
$page->menu = array();
|
|
$page->arguments = array();
|
|
$page->conf = array();
|
|
$page->default_handlers = array();
|
|
$pages['about_us'] = $page;
|
|
|
|
$page = new stdClass;
|
|
$page->disabled = FALSE; /* Edit this to true to make a default page disabled initially */
|
|
$page->api_version = 1;
|
|
$page->name = 'account_dashboard';
|
|
$page->task = 'page';
|
|
$page->admin_title = 'Dashboard';
|
|
$page->admin_description = '';
|
|
$page->path = 'dashboard';
|
|
$page->access = array(
|
|
'plugins' => array(
|
|
1 => array(
|
|
'name' => 'role',
|
|
'settings' => array(
|
|
'rids' => array(
|
|
0 => 2,
|
|
),
|
|
),
|
|
'context' => 'logged-in-user',
|
|
'not' => FALSE,
|
|
),
|
|
),
|
|
'logic' => 'and',
|
|
'type' => 'none',
|
|
'settings' => NULL,
|
|
);
|
|
$page->menu = array(
|
|
'type' => 'none',
|
|
'title' => 'Dashboard',
|
|
'name' => 'navigation',
|
|
'weight' => '0',
|
|
'parent' => array(
|
|
'type' => 'normal',
|
|
'title' => 'Account',
|
|
'name' => 'navigation',
|
|
'weight' => '0',
|
|
),
|
|
);
|
|
$page->arguments = array();
|
|
$page->conf = array();
|
|
$page->default_handlers = array();
|
|
$handler = new stdClass;
|
|
$handler->disabled = FALSE; /* Edit this to true to make a default handler disabled initially */
|
|
$handler->api_version = 1;
|
|
$handler->name = 'page_account_dashboard_panel_context';
|
|
$handler->task = 'page';
|
|
$handler->subtask = 'account_dashboard';
|
|
$handler->handler = 'panel_context';
|
|
$handler->weight = 0;
|
|
$handler->conf = array(
|
|
'title' => 'Landing page',
|
|
'no_blocks' => FALSE,
|
|
'pipeline' => 'ipe',
|
|
'css_id' => '',
|
|
'css' => '',
|
|
'contexts' => array(
|
|
0 => array(
|
|
'name' => 'user',
|
|
'id' => 1,
|
|
'identifier' => 'User',
|
|
'keyword' => 'user',
|
|
'context_settings' => array(
|
|
'type' => 'current',
|
|
'user' => '',
|
|
'uid' => '',
|
|
),
|
|
),
|
|
),
|
|
'relationships' => array(),
|
|
'access' => array(
|
|
'plugins' => array(),
|
|
'logic' => 'and',
|
|
),
|
|
);
|
|
$display = new panels_display;
|
|
$display->layout = 'one_sidebar_second';
|
|
$display->layout_settings = array();
|
|
$display->panel_settings = array(
|
|
'style_settings' => array(
|
|
'default' => NULL,
|
|
'content' => NULL,
|
|
'sidebar_first' => NULL,
|
|
),
|
|
);
|
|
$display->cache = array();
|
|
$display->title = '';
|
|
$display->content = array();
|
|
$display->panels = array();
|
|
$pane = new stdClass;
|
|
$pane->pid = 'new-1';
|
|
$pane->panel = 'content';
|
|
$pane->type = 'panels_mini';
|
|
$pane->subtype = 'dashboard_tables';
|
|
$pane->shown = TRUE;
|
|
$pane->access = array();
|
|
$pane->configuration = array(
|
|
'override_title' => 1,
|
|
'override_title_text' => 'My stats',
|
|
);
|
|
$pane->cache = array();
|
|
$pane->style = array(
|
|
'settings' => NULL,
|
|
);
|
|
$pane->css = array(
|
|
'css_id' => '',
|
|
'css_class' => 'panel-primary container shadow',
|
|
);
|
|
$pane->extras = array();
|
|
$pane->position = 0;
|
|
$display->content['new-1'] = $pane;
|
|
$display->panels['content'][0] = 'new-1';
|
|
$pane = new stdClass;
|
|
$pane->pid = 'new-2';
|
|
$pane->panel = 'sidebar_first';
|
|
$pane->type = 'panels_mini';
|
|
$pane->subtype = 'user_mail_summary';
|
|
$pane->shown = TRUE;
|
|
$pane->access = array();
|
|
$pane->configuration = array(
|
|
'override_title' => 0,
|
|
'override_title_text' => '',
|
|
);
|
|
$pane->cache = array();
|
|
$pane->style = array(
|
|
'settings' => NULL,
|
|
);
|
|
$pane->css = array(
|
|
'css_id' => '',
|
|
'css_class' => 'panel-secondary container shadow',
|
|
);
|
|
$pane->extras = array();
|
|
$pane->position = 0;
|
|
$display->content['new-2'] = $pane;
|
|
$display->panels['sidebar_first'][0] = 'new-2';
|
|
$pane = new stdClass;
|
|
$pane->pid = 'new-3';
|
|
$pane->panel = 'sidebar_first';
|
|
$pane->type = 'views';
|
|
$pane->subtype = 'og_my';
|
|
$pane->shown = TRUE;
|
|
$pane->access = array();
|
|
$pane->configuration = array(
|
|
'override_pager_settings' => 0,
|
|
'use_pager' => 1,
|
|
'nodes_per_page' => '50',
|
|
'pager_id' => '',
|
|
'offset' => '0',
|
|
'more_link' => 0,
|
|
'feed_icons' => 0,
|
|
'panel_args' => 0,
|
|
'link_to_view' => 0,
|
|
'args' => '',
|
|
'url' => '',
|
|
'display' => 'default',
|
|
'override_title' => 1,
|
|
'override_title_text' => 'Team',
|
|
);
|
|
$pane->cache = array();
|
|
$pane->style = array(
|
|
'settings' => NULL,
|
|
);
|
|
$pane->css = array(
|
|
'css_id' => '',
|
|
'css_class' => 'panel-secondary container shadow',
|
|
);
|
|
$pane->extras = array();
|
|
$pane->position = 1;
|
|
$display->content['new-3'] = $pane;
|
|
$display->panels['sidebar_first'][1] = 'new-3';
|
|
$pane = new stdClass;
|
|
$pane->pid = 'new-4';
|
|
$pane->panel = 'sidebar_first';
|
|
$pane->type = 'views';
|
|
$pane->subtype = 'boinc_friends';
|
|
$pane->shown = TRUE;
|
|
$pane->access = array();
|
|
$pane->configuration = array(
|
|
'override_pager_settings' => 0,
|
|
'use_pager' => 0,
|
|
'nodes_per_page' => '6',
|
|
'pager_id' => '',
|
|
'offset' => '0',
|
|
'more_link' => 1,
|
|
'feed_icons' => 0,
|
|
'panel_args' => 0,
|
|
'link_to_view' => 0,
|
|
'args' => '',
|
|
'url' => '',
|
|
'display' => 'block_1',
|
|
'context' => array(
|
|
0 => 'context_user_1.uid',
|
|
),
|
|
'override_title' => 0,
|
|
'override_title_text' => '',
|
|
);
|
|
$pane->cache = array();
|
|
$pane->style = array(
|
|
'settings' => NULL,
|
|
);
|
|
$pane->css = array(
|
|
'css_id' => '',
|
|
'css_class' => 'panel-secondary container shadow',
|
|
);
|
|
$pane->extras = array();
|
|
$pane->position = 2;
|
|
$display->content['new-4'] = $pane;
|
|
$display->panels['sidebar_first'][2] = 'new-4';
|
|
$display->hide_title = PANELS_TITLE_NONE;
|
|
$display->title_pane = '0';
|
|
$handler->conf['display'] = $display;
|
|
$page->default_handlers[$handler->name] = $handler;
|
|
$pages['account_dashboard'] = $page;
|
|
|
|
$page = new stdClass;
|
|
$page->disabled = FALSE; /* Edit this to true to make a default page disabled initially */
|
|
$page->api_version = 1;
|
|
$page->name = 'boinc_user';
|
|
$page->task = 'page';
|
|
$page->admin_title = 'User profile template (boinc)';
|
|
$page->admin_description = '';
|
|
$page->path = 'account/%user';
|
|
$page->access = array(
|
|
'type' => 'none',
|
|
'settings' => NULL,
|
|
);
|
|
$page->menu = array();
|
|
$page->arguments = array(
|
|
'user' => array(
|
|
'id' => 1,
|
|
'identifier' => 'User: ID',
|
|
'name' => 'uid',
|
|
'settings' => array(),
|
|
),
|
|
);
|
|
$page->conf = array();
|
|
$page->default_handlers = array();
|
|
$handler = new stdClass;
|
|
$handler->disabled = FALSE; /* Edit this to true to make a default handler disabled initially */
|
|
$handler->api_version = 1;
|
|
$handler->name = 'page_boinc_user_panel_context_2';
|
|
$handler->task = 'page';
|
|
$handler->subtask = 'boinc_user';
|
|
$handler->handler = 'panel_context';
|
|
$handler->weight = 1;
|
|
$handler->conf = array(
|
|
'title' => 'Panel',
|
|
'no_blocks' => 0,
|
|
'pipeline' => 'standard',
|
|
'css_id' => '',
|
|
'css' => '',
|
|
'contexts' => array(),
|
|
'relationships' => array(),
|
|
);
|
|
$display = new panels_display;
|
|
$display->layout = 'one_sidebar_second';
|
|
$display->layout_settings = array();
|
|
$display->panel_settings = array(
|
|
'style_settings' => array(
|
|
'default' => NULL,
|
|
'content' => NULL,
|
|
'sidebar_first' => NULL,
|
|
),
|
|
);
|
|
$display->cache = array();
|
|
$display->title = '';
|
|
$display->content = array();
|
|
$display->panels = array();
|
|
$pane = new stdClass;
|
|
$pane->pid = 'new-1';
|
|
$pane->panel = 'content';
|
|
$pane->type = 'panels_mini';
|
|
$pane->subtype = 'user_profile';
|
|
$pane->shown = TRUE;
|
|
$pane->access = array();
|
|
$pane->configuration = array(
|
|
'context' => array(
|
|
0 => 'argument_uid_1',
|
|
),
|
|
'override_title' => 0,
|
|
'override_title_text' => '',
|
|
);
|
|
$pane->cache = array();
|
|
$pane->style = array(
|
|
'settings' => NULL,
|
|
);
|
|
$pane->css = array(
|
|
'css_id' => '',
|
|
'css_class' => 'panel-secondary container shadow',
|
|
);
|
|
$pane->extras = array();
|
|
$pane->position = 0;
|
|
$display->content['new-1'] = $pane;
|
|
$display->panels['content'][0] = 'new-1';
|
|
$pane = new stdClass;
|
|
$pane->pid = 'new-2';
|
|
$pane->panel = 'sidebar_first';
|
|
$pane->type = 'views_panes';
|
|
$pane->subtype = 'boinc_account_stats-panel_pane_2';
|
|
$pane->shown = TRUE;
|
|
$pane->access = array();
|
|
$pane->configuration = array(
|
|
'override_title' => 1,
|
|
'override_title_text' => '%user:display-name\'s stats',
|
|
);
|
|
$pane->cache = array();
|
|
$pane->style = array(
|
|
'settings' => NULL,
|
|
);
|
|
$pane->css = array(
|
|
'css_id' => '',
|
|
'css_class' => 'panel-secondary container shadow',
|
|
);
|
|
$pane->extras = array();
|
|
$pane->position = 0;
|
|
$display->content['new-2'] = $pane;
|
|
$display->panels['sidebar_first'][0] = 'new-2';
|
|
$pane = new stdClass;
|
|
$pane->pid = 'new-3';
|
|
$pane->panel = 'sidebar_first';
|
|
$pane->type = 'views';
|
|
$pane->subtype = 'boinc_friends';
|
|
$pane->shown = TRUE;
|
|
$pane->access = array();
|
|
$pane->configuration = array(
|
|
'override_pager_settings' => 0,
|
|
'use_pager' => 0,
|
|
'nodes_per_page' => '6',
|
|
'pager_id' => '',
|
|
'offset' => '0',
|
|
'more_link' => 0,
|
|
'feed_icons' => 0,
|
|
'panel_args' => 0,
|
|
'link_to_view' => 0,
|
|
'args' => '',
|
|
'url' => '',
|
|
'display' => 'block_1',
|
|
'context' => array(
|
|
0 => 'argument_uid_1.uid',
|
|
),
|
|
'override_title' => 0,
|
|
'override_title_text' => '',
|
|
);
|
|
$pane->cache = array();
|
|
$pane->style = array(
|
|
'settings' => NULL,
|
|
);
|
|
$pane->css = array(
|
|
'css_id' => '',
|
|
'css_class' => 'panel-secondary container shadow',
|
|
);
|
|
$pane->extras = array();
|
|
$pane->position = 1;
|
|
$display->content['new-3'] = $pane;
|
|
$display->panels['sidebar_first'][1] = 'new-3';
|
|
$display->hide_title = PANELS_TITLE_NONE;
|
|
$display->title_pane = '0';
|
|
$handler->conf['display'] = $display;
|
|
$page->default_handlers[$handler->name] = $handler;
|
|
$pages['boinc_user'] = $page;
|
|
|
|
$page = new stdClass;
|
|
$page->disabled = FALSE; /* Edit this to true to make a default page disabled initially */
|
|
$page->api_version = 1;
|
|
$page->name = 'home';
|
|
$page->task = 'page';
|
|
$page->admin_title = 'Home page';
|
|
$page->admin_description = '';
|
|
$page->path = 'home';
|
|
$page->access = array(
|
|
'type' => 'none',
|
|
'settings' => NULL,
|
|
);
|
|
$page->menu = array(
|
|
'type' => 'normal',
|
|
'title' => 'Home',
|
|
'name' => 'navigation',
|
|
'weight' => '0',
|
|
'parent' => array(
|
|
'type' => 'none',
|
|
'title' => '',
|
|
'name' => 'navigation',
|
|
'weight' => '0',
|
|
),
|
|
);
|
|
$page->arguments = array();
|
|
$page->conf = array();
|
|
$page->default_handlers = array();
|
|
$handler = new stdClass;
|
|
$handler->disabled = FALSE; /* Edit this to true to make a default handler disabled initially */
|
|
$handler->api_version = 1;
|
|
$handler->name = 'page_home_panel_context';
|
|
$handler->task = 'page';
|
|
$handler->subtask = 'home';
|
|
$handler->handler = 'panel_context';
|
|
$handler->weight = 0;
|
|
$handler->conf = array(
|
|
'title' => 'Landing page',
|
|
'no_blocks' => FALSE,
|
|
'pipeline' => 'ipe',
|
|
'css_id' => '',
|
|
'css' => '',
|
|
'contexts' => array(),
|
|
'relationships' => array(),
|
|
);
|
|
$display = new panels_display;
|
|
$display->layout = 'one_sidebar_second';
|
|
$display->layout_settings = array();
|
|
$display->panel_settings = array(
|
|
'style_settings' => array(
|
|
'default' => NULL,
|
|
'content' => NULL,
|
|
'sidebar_first' => NULL,
|
|
),
|
|
);
|
|
$display->cache = array();
|
|
$display->title = '';
|
|
$display->content = array();
|
|
$display->panels = array();
|
|
$pane = new stdClass;
|
|
$pane->pid = 'new-1';
|
|
$pane->panel = 'content';
|
|
$pane->type = 'custom';
|
|
$pane->subtype = 'custom';
|
|
$pane->shown = TRUE;
|
|
$pane->access = array(
|
|
'plugins' => array(
|
|
0 => array(
|
|
'name' => 'role',
|
|
'settings' => array(
|
|
'rids' => array(
|
|
0 => 1,
|
|
),
|
|
),
|
|
'context' => 'logged-in-user',
|
|
'not' => FALSE,
|
|
),
|
|
),
|
|
);
|
|
$pane->configuration = array(
|
|
'admin_title' => 'BOINC overview',
|
|
'title' => 'What is Einstein@Home?',
|
|
'body' => '<div class="boinc-overview">
|
|
<div>Einstein@Home is a program that uses your computer\'s idle time to run a screensaver to search for gravitational waves from spinning neutron stars (also called pulsars) using data from the LIGO gravitational wave detector. <a href="about">Learn more.</a></div>
|
|
<div><a class="join button" href="join">Join now</a></div>
|
|
</div>
|
|
<div class="boinc-overview-details">
|
|
<div class="detail-container">
|
|
<div class="detail-section">
|
|
<div class="about text">About Our Screensaver</div>
|
|
</div>
|
|
<div class="detail-section">
|
|
<div class="text">Over 500,000 volunteers and counting.</div>
|
|
<div class="platforms">
|
|
<div class="platform windows">Windows</div>
|
|
<div class="platform mac">Mac</div>
|
|
<div class="platform linux">Linux</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>',
|
|
'format' => '2',
|
|
'substitute' => TRUE,
|
|
);
|
|
$pane->cache = array();
|
|
$pane->style = array(
|
|
'settings' => NULL,
|
|
);
|
|
$pane->css = array(
|
|
'css_id' => '',
|
|
'css_class' => 'panel-primary container shadow',
|
|
);
|
|
$pane->extras = array();
|
|
$pane->position = 0;
|
|
$display->content['new-1'] = $pane;
|
|
$display->panels['content'][0] = 'new-1';
|
|
$pane = new stdClass;
|
|
$pane->pid = 'new-2';
|
|
$pane->panel = 'content';
|
|
$pane->type = 'custom';
|
|
$pane->subtype = 'custom';
|
|
$pane->shown = TRUE;
|
|
$pane->access = array(
|
|
'plugins' => array(
|
|
0 => array(
|
|
'name' => 'role',
|
|
'settings' => array(
|
|
'rids' => array(
|
|
0 => 2,
|
|
),
|
|
),
|
|
'context' => 'logged-in-user',
|
|
'not' => FALSE,
|
|
),
|
|
),
|
|
);
|
|
$pane->configuration = array(
|
|
'admin_title' => 'BOINC user home',
|
|
'title' => 'Welcome back!',
|
|
'body' => '<div class="boinc-overview">
|
|
<div>Einstein@Home is a program that uses your computer\'s idle time to run a screensaver to search for gravitational waves from spinning neutron stars (also called pulsars) using data from the LIGO gravitational wave detector. <a href="about">Learn more.</a></div>
|
|
<div><a class="join button" href="dashboard">View account</a></div>
|
|
</div>
|
|
<div class="boinc-overview-details">
|
|
<div class="detail-container">
|
|
<div class="detail-section">
|
|
<div class="about text">About Our Screensaver</div>
|
|
</div>
|
|
<div class="detail-section">
|
|
<div class="text">Over 500,000 volunteers and counting.</div>
|
|
<div class="platforms">
|
|
<div class="platform windows">Windows</div>
|
|
<div class="platform mac">Mac</div>
|
|
<div class="platform linux">Linux</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>',
|
|
'format' => '2',
|
|
'substitute' => TRUE,
|
|
);
|
|
$pane->cache = array();
|
|
$pane->style = array(
|
|
'settings' => NULL,
|
|
);
|
|
$pane->css = array(
|
|
'css_id' => '',
|
|
'css_class' => 'panel-primary container shadow',
|
|
);
|
|
$pane->extras = array();
|
|
$pane->position = 1;
|
|
$display->content['new-2'] = $pane;
|
|
$display->panels['content'][1] = 'new-2';
|
|
$pane = new stdClass;
|
|
$pane->pid = 'new-3';
|
|
$pane->panel = 'sidebar_first';
|
|
$pane->type = 'panels_mini';
|
|
$pane->subtype = 'project_stats_overview';
|
|
$pane->shown = TRUE;
|
|
$pane->access = array();
|
|
$pane->configuration = array(
|
|
'override_title' => 0,
|
|
'override_title_text' => '',
|
|
);
|
|
$pane->cache = array();
|
|
$pane->style = array(
|
|
'settings' => NULL,
|
|
);
|
|
$pane->css = array(
|
|
'css_id' => '',
|
|
'css_class' => 'panel-secondary container shadow',
|
|
);
|
|
$pane->extras = array();
|
|
$pane->position = 0;
|
|
$display->content['new-3'] = $pane;
|
|
$display->panels['sidebar_first'][0] = 'new-3';
|
|
$pane = new stdClass;
|
|
$pane->pid = 'new-4';
|
|
$pane->panel = 'sidebar_first';
|
|
$pane->type = 'views';
|
|
$pane->subtype = 'news';
|
|
$pane->shown = TRUE;
|
|
$pane->access = array();
|
|
$pane->configuration = array(
|
|
'override_pager_settings' => 1,
|
|
'use_pager' => 0,
|
|
'nodes_per_page' => '2',
|
|
'pager_id' => '',
|
|
'offset' => '0',
|
|
'more_link' => 1,
|
|
'feed_icons' => 1,
|
|
'panel_args' => 0,
|
|
'link_to_view' => 0,
|
|
'args' => '',
|
|
'url' => '',
|
|
'display' => 'page_1',
|
|
'override_title' => 1,
|
|
'override_title_text' => '',
|
|
);
|
|
$pane->cache = array();
|
|
$pane->style = array(
|
|
'settings' => NULL,
|
|
);
|
|
$pane->css = array(
|
|
'css_id' => '',
|
|
'css_class' => 'panel-secondary container shadow',
|
|
);
|
|
$pane->extras = array();
|
|
$pane->position = 1;
|
|
$display->content['new-4'] = $pane;
|
|
$display->panels['sidebar_first'][1] = 'new-4';
|
|
$display->hide_title = PANELS_TITLE_NONE;
|
|
$display->title_pane = '0';
|
|
$handler->conf['display'] = $display;
|
|
$page->default_handlers[$handler->name] = $handler;
|
|
$pages['home'] = $page;
|
|
|
|
return $pages;
|
|
|
|
}
|