Skip to content

Instantly share code, notes, and snippets.

@claudinec
Created August 25, 2011 05:27
Show Gist options
  • Save claudinec/1170041 to your computer and use it in GitHub Desktop.
Save claudinec/1170041 to your computer and use it in GitHub Desktop.
[FAS] Welcome page
$page = new stdClass;
$page->disabled = FALSE; /* Edit this to true to make a default page disabled initially */
$page->api_version = 1;
$page->name = 'welcome';
$page->task = 'page';
$page->admin_title = 'Welcome';
$page->admin_description = 'Custom welcome/front page';
$page->path = 'welcome';
$page->access = array();
$page->menu = array();
$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_welcome_panel_context';
$handler->task = 'page';
$handler->subtask = 'welcome';
$handler->handler = 'panel_context';
$handler->weight = 0;
$handler->conf = array(
'title' => 'Panel',
'no_blocks' => 1,
'pipeline' => 'standard',
'css_id' => '',
'css' => '',
'contexts' => array(),
'relationships' => array(),
);
$display = new panels_display;
$display->layout = 'flexible';
$display->layout_settings = array(
'items' => array(
'canvas' => array(
'type' => 'row',
'contains' => 'column',
'children' => array(
0 => 'main',
),
'parent' => NULL,
),
'main' => array(
'type' => 'column',
'width' => 100,
'width_type' => '%',
'children' => array(
0 => 6,
1 => 'main-row',
),
'parent' => 'canvas',
),
'main-row' => array(
'type' => 'row',
'contains' => 'region',
'children' => array(
0 => 'center',
),
'parent' => 'main',
),
'center' => array(
'type' => 'region',
'title' => 'Logos',
'width' => 100,
'width_type' => '%',
'parent' => 'main-row',
'class' => '',
),
6 => array(
'type' => 'row',
'contains' => 'region',
'children' => array(
0 => 'content',
),
'parent' => 'main',
'class' => '',
),
'content' => array(
'type' => 'region',
'title' => 'Content',
'width' => 100,
'width_type' => '%',
'parent' => '6',
'class' => '',
),
),
);
$display->panel_settings = array(
'style_settings' => array(
'default' => NULL,
'center' => NULL,
'about' => NULL,
'copyright' => NULL,
'content' => NULL,
),
);
$display->cache = array();
$display->title = 'Welcome';
$display->content = array();
$display->panels = array();
$pane = new stdClass;
$pane->pid = 'new-1';
$pane->panel = 'center';
$pane->type = 'panels_mini';
$pane->subtype = 'images_logos';
$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();
$pane->extras = array();
$pane->position = 0;
$display->content['new-1'] = $pane;
$display->panels['center'][0] = 'new-1';
$pane = new stdClass;
$pane->pid = 'new-2';
$pane->panel = 'content';
$pane->type = 'block';
$pane->subtype = 'block-8';
$pane->shown = TRUE;
$pane->access = array();
$pane->configuration = array(
'override_title' => 0,
'override_title_text' => '',
);
$pane->cache = array();
$pane->style = array(
'settings' => NULL,
'style' => 'rounded_corners',
);
$pane->css = array();
$pane->extras = array();
$pane->position = 0;
$display->content['new-2'] = $pane;
$display->panels['content'][0] = 'new-2';
$pane = new stdClass;
$pane->pid = 'new-3';
$pane->panel = 'content';
$pane->type = 'views_panes';
$pane->subtype = 'latestnews-panel_pane_1';
$pane->shown = TRUE;
$pane->access = array();
$pane->configuration = array();
$pane->cache = array();
$pane->style = array(
'settings' => NULL,
'style' => 'default',
);
$pane->css = array();
$pane->extras = array();
$pane->position = 1;
$display->content['new-3'] = $pane;
$display->panels['content'][1] = 'new-3';
$display->hide_title = PANELS_TITLE_FIXED;
$display->title_pane = 'new-1';
$handler->conf['display'] = $display;
$page->default_handlers[$handler->name] = $handler;
$mini = new stdClass;
$mini->disabled = FALSE; /* Edit this to true to make a default mini disabled initially */
$mini->api_version = 1;
$mini->name = 'project_introduction';
$mini->category = '';
$mini->admin_title = 'Project Introduction';
$mini->admin_description = '';
$mini->requiredcontexts = array();
$mini->contexts = array();
$mini->relationships = array();
$display = new panels_display;
$display->layout = 'onecol';
$display->layout_settings = array();
$display->panel_settings = array(
'style_settings' => array(
'default' => NULL,
'middle' => NULL,
),
);
$display->cache = array();
$display->title = '';
$display->content = array();
$display->panels = array();
$pane = new stdClass;
$pane->pid = 'new-1';
$pane->panel = 'middle';
$pane->type = 'custom';
$pane->subtype = 'custom';
$pane->shown = TRUE;
$pane->access = array();
$pane->configuration = array(
'admin_title' => '',
'title' => '',
'body' => 'Founders & Survivors is a partnership between historians, genealogists, demographers and population health researchers. It seeks to record and study the founding population of 73,000 men women and children who were transported to Tasmania. Many survived their convict experience and went on to help build a new society.',
'format' => '1',
'substitute' => TRUE,
);
$pane->cache = array();
$pane->style = array(
'settings' => NULL,
);
$pane->css = array();
$pane->extras = array();
$pane->position = 0;
$display->content['new-1'] = $pane;
$display->panels['middle'][0] = 'new-1';
$display->hide_title = PANELS_TITLE_NONE;
$display->title_pane = 'new-1';
$mini->display = $display;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment