123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120 |
- <?php
- /**
- * @file
- * popsu_publications.pages_default.inc
- */
- /**
- * Implements hook_default_page_manager_handlers().
- */
- function popsu_publications_default_page_manager_handlers() {
- $export = array();
- $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';
- $handler->task = 'node_view';
- $handler->subtask = '';
- $handler->handler = 'panel_context';
- $handler->weight = 0;
- $handler->conf = array(
- 'title' => 'Publications (feature)',
- 'no_blocks' => 0,
- 'pipeline' => 'standard',
- 'body_classes_to_remove' => '',
- 'body_classes_to_add' => '',
- 'css_id' => '',
- 'css' => '',
- 'contexts' => array(),
- 'relationships' => array(),
- 'access' => array(
- 'plugins' => array(
- 0 => array(
- 'name' => 'node_type',
- 'settings' => array(
- 'type' => array(
- 'popsu_publication' => 'popsu_publication',
- ),
- ),
- 'context' => 'argument_entity_id:node_1',
- 'not' => FALSE,
- ),
- ),
- 'logic' => 'and',
- ),
- );
- $display = new panels_display();
- $display->layout = 'twocol_stacked';
- $display->layout_settings = array();
- $display->panel_settings = array(
- 'style_settings' => array(
- 'default' => NULL,
- 'top' => NULL,
- 'left' => NULL,
- 'right' => NULL,
- 'bottom' => NULL,
- ),
- );
- $display->cache = array();
- $display->title = 'Publication : %node:title';
- $display->content = array();
- $display->panels = array();
- $pane = new stdClass();
- $pane->pid = 'new-1';
- $pane->panel = 'bottom';
- $pane->type = 'node_content';
- $pane->subtype = 'node_content';
- $pane->shown = TRUE;
- $pane->access = array();
- $pane->configuration = array(
- 'links' => 0,
- 'no_extras' => 0,
- 'override_title' => 1,
- 'override_title_text' => '<none>',
- 'identifier' => '',
- 'link' => 0,
- 'leave_node_title' => 0,
- 'build_mode' => 'full',
- 'context' => 'argument_entity_id:node_1',
- );
- $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['bottom'][0] = 'new-1';
- $pane = new stdClass();
- $pane->pid = 'new-2';
- $pane->panel = 'top';
- $pane->type = 'node_title';
- $pane->subtype = 'node_title';
- $pane->shown = FALSE;
- $pane->access = array();
- $pane->configuration = array(
- 'link' => 1,
- '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 = 0;
- $pane->locks = array();
- $display->content['new-2'] = $pane;
- $display->panels['top'][0] = 'new-2';
- $display->hide_title = PANELS_TITLE_FIXED;
- $display->title_pane = '0';
- $handler->conf['display'] = $display;
- $export['node_view_panel_context'] = $handler;
- return $export;
- }
|