disabled = FALSE; /* Edit this to true to make a default handler disabled initially */ $handler->api_version = 1; $handler->name = 'node_view_panel_context'; $handler->task = 'node_view'; $handler->subtask = ''; $handler->handler = 'panel_context'; $handler->weight = 0; $handler->conf = array( 'title' => 'Study', 'no_blocks' => 0, 'pipeline' => 'standard', 'css_id' => '', 'css' => '', 'contexts' => array(), 'relationships' => array(), 'access' => array( 'plugins' => array( 0 => array( 'name' => 'entity_bundle:node', 'settings' => array( 'type' => array( 'study' => 'study', ), ), 'context' => 'argument_entity_id:node_1', 'not' => FALSE, ), 1 => array( 'name' => 'path_visibility', 'settings' => array( 'visibility_setting' => '0', 'paths' => '*/draft', ), 'context' => 'empty', 'not' => FALSE, ), ), 'logic' => 'and', ), ); $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 => 1, 1 => 'main-row', 2 => 2, ), 'parent' => 'canvas', ), 'main-row' => array( 'type' => 'row', 'contains' => 'region', 'children' => array( 0 => 'left', 1 => 'center', 2 => 'right', ), 'parent' => 'main', ), 'center' => array( 'type' => 'region', 'title' => 'Center', 'width' => '40.0', 'width_type' => '%', 'parent' => 'main-row', ), 1 => array( 'type' => 'row', 'contains' => 'region', 'children' => array( 0 => 'banner', ), 'parent' => 'main', 'class' => '', ), 'banner' => array( 'type' => 'region', 'title' => 'Banner', 'width' => '100', 'width_type' => '%', 'parent' => '1', 'class' => '', ), 'left' => array( 'type' => 'region', 'title' => 'Left', 'width' => '40.0', 'width_type' => '%', 'parent' => 'main-row', 'class' => '', ), 2 => array( 'type' => 'row', 'contains' => 'region', 'children' => array( 0 => 'footer', ), 'parent' => 'main', 'class' => '', ), 'footer' => array( 'type' => 'region', 'title' => 'Footer', 'width' => 100, 'width_type' => '%', 'parent' => '2', 'class' => '', ), 'right' => array( 'type' => 'region', 'title' => 'Right', 'width' => '20.0', 'width_type' => '%', 'parent' => 'main-row', 'class' => '', ), ), ); $display->panel_settings = array( 'style_settings' => array( 'default' => NULL, 'center' => NULL, 'banner' => NULL, 'left' => NULL, 'footer' => NULL, 'right' => NULL, 'logo' => NULL, 'title' => NULL, ), ); $display->cache = array(); $display->title = '%node:field_complete_name'; $display->content = array(); $display->panels = array(); $pane = new stdClass(); $pane->pid = 'new-1'; $pane->panel = 'banner'; $pane->type = 'node'; $pane->subtype = 'node'; $pane->shown = TRUE; $pane->access = array(); $pane->configuration = array( 'nid' => '@0', 'links' => 0, 'leave_node_title' => 0, 'identifier' => '', 'build_mode' => 'banner_area', 'link_node_title' => 0, 'override_title' => 1, 'override_title_text' => '', ); $pane->cache = array(); $pane->style = array( 'settings' => NULL, ); $pane->css = array(); $pane->extras = array(); $pane->position = 0; $pane->locks = array(); $display->content['new-1'] = $pane; $display->panels['banner'][0] = 'new-1'; $pane = new stdClass(); $pane->pid = 'new-2'; $pane->panel = 'center'; $pane->type = 'node'; $pane->subtype = 'node'; $pane->shown = TRUE; $pane->access = array(); $pane->configuration = array( 'nid' => '@0', 'links' => 0, 'leave_node_title' => 0, 'identifier' => '', 'build_mode' => 'center_area', 'link_node_title' => 0, 'override_title' => 1, 'override_title_text' => '', ); $pane->cache = array(); $pane->style = array( 'settings' => NULL, ); $pane->css = array(); $pane->extras = array(); $pane->position = 0; $pane->locks = array(); $display->content['new-2'] = $pane; $display->panels['center'][0] = 'new-2'; $pane = new stdClass(); $pane->pid = 'new-3'; $pane->panel = 'footer'; $pane->type = 'node'; $pane->subtype = 'node'; $pane->shown = TRUE; $pane->access = array(); $pane->configuration = array( 'nid' => '@0', 'links' => 1, 'leave_node_title' => 0, 'identifier' => '', 'build_mode' => 'footer_area', 'link_node_title' => 0, 'override_title' => 1, 'override_title_text' => '', ); $pane->cache = array(); $pane->style = array( 'settings' => NULL, ); $pane->css = array(); $pane->extras = array(); $pane->position = 0; $pane->locks = array(); $display->content['new-3'] = $pane; $display->panels['footer'][0] = 'new-3'; $pane = new stdClass(); $pane->pid = 'new-4'; $pane->panel = 'left'; $pane->type = 'node'; $pane->subtype = 'node'; $pane->shown = TRUE; $pane->access = array(); $pane->configuration = array( 'nid' => '@0', 'links' => 0, 'leave_node_title' => 0, 'identifier' => '', 'build_mode' => 'left_area', 'link_node_title' => 0, 'override_title' => 1, 'override_title_text' => '', ); $pane->cache = array(); $pane->style = array( 'settings' => NULL, ); $pane->css = array(); $pane->extras = array(); $pane->position = 0; $pane->locks = array(); $display->content['new-4'] = $pane; $display->panels['left'][0] = 'new-4'; $pane = new stdClass(); $pane->pid = 'new-5'; $pane->panel = 'right'; $pane->type = 'node'; $pane->subtype = 'node'; $pane->shown = TRUE; $pane->access = array(); $pane->configuration = array( 'nid' => '@0', 'links' => 0, 'leave_node_title' => 0, 'identifier' => '', 'build_mode' => 'right_area', 'link_node_title' => 0, 'override_title' => 1, 'override_title_text' => '', ); $pane->cache = array(); $pane->style = array( 'settings' => NULL, ); $pane->css = array(); $pane->extras = array(); $pane->position = 0; $pane->locks = array(); $display->content['new-5'] = $pane; $display->panels['right'][0] = 'new-5'; $display->hide_title = PANELS_TITLE_FIXED; $display->title_pane = '0'; $handler->conf['display'] = $display; $export['node_view_panel_context'] = $handler; $handler = new stdClass(); $handler->disabled = FALSE; /* Edit this to true to make a default handler disabled initially */ $handler->api_version = 1; $handler->name = 'node_view_panel_context_2'; $handler->task = 'node_view'; $handler->subtask = ''; $handler->handler = 'panel_context'; $handler->weight = 1; $handler->conf = array( 'title' => 'Contact', 'no_blocks' => 0, 'pipeline' => 'standard', 'css_id' => '', 'css' => '', 'contexts' => array(), 'relationships' => array(), 'access' => array( 'plugins' => array( 0 => array( 'name' => 'entity_bundle:node', 'settings' => array( 'type' => array( 'contact' => 'contact', ), ), 'context' => 'argument_entity_id:node_1', 'not' => FALSE, ), 1 => array( 'name' => 'path_visibility', 'settings' => array( 'visibility_setting' => '0', 'paths' => '*/draft', ), 'context' => 'empty', 'not' => FALSE, ), ), 'logic' => 'and', ), ); $display = new panels_display(); $display->layout = 'flexible'; $display->layout_settings = array(); $display->panel_settings = array( 'style_settings' => array( 'default' => NULL, 'center' => NULL, ), ); $display->cache = array(); $display->title = '%node:title'; $display->content = array(); $display->panels = array(); $pane = new stdClass(); $pane->pid = 'new-6'; $pane->panel = 'center'; $pane->type = 'custom'; $pane->subtype = 'custom'; $pane->shown = TRUE; $pane->access = array(); $pane->configuration = array( 'admin_title' => '', 'title' => 'Address:', 'body' => '%node:field_institution_name %node:field_address %node:field_city %node:field_state %node:field_postal_code %node:field_contact_country', 'format' => 'plain_text', 'substitute' => 1, ); $pane->cache = array(); $pane->style = array( 'settings' => NULL, ); $pane->css = array(); $pane->extras = array(); $pane->position = 0; $pane->locks = array(); $display->content['new-6'] = $pane; $display->panels['center'][0] = 'new-6'; $pane = new stdClass(); $pane->pid = 'new-7'; $pane->panel = 'center'; $pane->type = 'entity_field'; $pane->subtype = 'node:field_telephone'; $pane->shown = TRUE; $pane->access = array(); $pane->configuration = array( 'label' => 'above', 'formatter' => 'text_default', 'formatter_settings' => array(), 'context' => 'argument_entity_id:node_1', 'override_title' => 0, 'override_title_text' => '', ); $pane->cache = array(); $pane->style = array( 'settings' => NULL, ); $pane->css = array(); $pane->extras = array(); $pane->position = 1; $pane->locks = array(); $display->content['new-7'] = $pane; $display->panels['center'][1] = 'new-7'; $pane = new stdClass(); $pane->pid = 'new-8'; $pane->panel = 'center'; $pane->type = 'entity_field'; $pane->subtype = 'node:field_contact_email'; $pane->shown = TRUE; $pane->access = array(); $pane->configuration = array( 'label' => 'above', 'formatter' => 'email_default', 'formatter_settings' => array(), 'context' => 'argument_entity_id:node_1', 'override_title' => 0, 'override_title_text' => '', ); $pane->cache = array(); $pane->style = array( 'settings' => NULL, ); $pane->css = array(); $pane->extras = array(); $pane->position = 2; $pane->locks = array(); $display->content['new-8'] = $pane; $display->panels['center'][2] = 'new-8'; $display->hide_title = PANELS_TITLE_FIXED; $display->title_pane = '0'; $handler->conf['display'] = $display; $export['node_view_panel_context_2'] = $handler; return $export; } /** * Implements hook_default_page_manager_pages(). */ function mica_studies_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 = 'homepage'; $page->task = 'page'; $page->admin_title = 'Homepage'; $page->admin_description = 'Homepage with news and about'; $page->path = 'homepage'; $page->access = array(); $page->menu = array( 'type' => 'none', 'title' => '', 'weight' => '0', 'name' => 'navigation', 'parent' => array( 'type' => 'none', 'title' => '', 'weight' => 0, 'name' => 'navigation', ), ); $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_homepage_panel_context'; $handler->task = 'page'; $handler->subtask = 'homepage'; $handler->handler = 'panel_context'; $handler->weight = 0; $handler->conf = array( 'title' => 'Landing page', 'no_blocks' => 0, 'pipeline' => 'standard', 'css_id' => '', 'css' => '', 'contexts' => array(), '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 = 'Homepage'; $display->content = array(); $display->panels = array(); $pane = new stdClass(); $pane->pid = 'new-9'; $pane->panel = 'middle'; $pane->type = 'node'; $pane->subtype = 'node'; $pane->shown = TRUE; $pane->access = array(); $pane->configuration = array( 'nid' => '6', 'links' => 0, 'leave_node_title' => 0, 'identifier' => '', 'build_mode' => 'search_result', 'link_node_title' => 0, 'override_title' => 0, 'override_title_text' => '', ); $pane->cache = array(); $pane->style = array( 'settings' => NULL, 'style' => 'default', ); $pane->css = array(); $pane->extras = array(); $pane->position = 0; $pane->locks = ''; $display->content['new-9'] = $pane; $display->panels['middle'][0] = 'new-9'; $pane = new stdClass(); $pane->pid = 'new-10'; $pane->panel = 'middle'; $pane->type = 'views'; $pane->subtype = 'news'; $pane->shown = TRUE; $pane->access = array(); $pane->configuration = array( 'override_pager_settings' => 0, 'use_pager' => 1, 'nodes_per_page' => '10', 'pager_id' => '0', 'offset' => '0', 'more_link' => 0, 'feed_icons' => 0, 'panel_args' => 0, 'link_to_view' => 0, 'args' => '', 'url' => '', 'display' => 'default', 'override_title' => 0, 'override_title_text' => '', ); $pane->cache = array(); $pane->style = array( 'settings' => NULL, ); $pane->css = array(); $pane->extras = array(); $pane->position = 1; $pane->locks = ''; $display->content['new-10'] = $pane; $display->panels['middle'][1] = 'new-10'; $display->hide_title = PANELS_TITLE_NONE; $display->title_pane = '0'; $handler->conf['display'] = $display; $page->default_handlers[$handler->name] = $handler; $pages['homepage'] = $page; return $pages; }