popsu_colloques.pages_default.inc 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. <?php
  2. /**
  3. * @file
  4. * popsu_colloques.pages_default.inc
  5. */
  6. /**
  7. * Implements hook_default_page_manager_handlers().
  8. */
  9. function popsu_colloques_default_page_manager_handlers() {
  10. $export = array();
  11. $handler = new stdClass();
  12. $handler->disabled = FALSE; /* Edit this to true to make a default handler disabled initially */
  13. $handler->api_version = 1;
  14. $handler->name = 'node_view_panel_context_3';
  15. $handler->task = 'node_view';
  16. $handler->subtask = '';
  17. $handler->handler = 'panel_context';
  18. $handler->weight = 2;
  19. $handler->conf = array(
  20. 'title' => 'Colloques (feature)',
  21. 'no_blocks' => 0,
  22. 'pipeline' => 'standard',
  23. 'body_classes_to_remove' => '',
  24. 'body_classes_to_add' => '',
  25. 'css_id' => '',
  26. 'css' => '',
  27. 'contexts' => array(),
  28. 'relationships' => array(),
  29. 'access' => array(
  30. 'plugins' => array(
  31. 0 => array(
  32. 'name' => 'node_type',
  33. 'settings' => array(
  34. 'type' => array(
  35. 'popsu_colloque' => 'popsu_colloque',
  36. ),
  37. ),
  38. 'context' => 'argument_entity_id:node_1',
  39. 'not' => FALSE,
  40. ),
  41. ),
  42. 'logic' => 'and',
  43. ),
  44. );
  45. $display = new panels_display();
  46. $display->layout = 'twocol_stacked';
  47. $display->layout_settings = array();
  48. $display->panel_settings = array(
  49. 'style_settings' => array(
  50. 'default' => NULL,
  51. 'top' => NULL,
  52. 'left' => NULL,
  53. 'right' => NULL,
  54. 'bottom' => NULL,
  55. ),
  56. );
  57. $display->cache = array();
  58. $display->title = 'Colloque : %node:title';
  59. $display->content = array();
  60. $display->panels = array();
  61. $pane = new stdClass();
  62. $pane->pid = 'new-1';
  63. $pane->panel = 'bottom';
  64. $pane->type = 'node_content';
  65. $pane->subtype = 'node_content';
  66. $pane->shown = TRUE;
  67. $pane->access = array();
  68. $pane->configuration = array(
  69. 'links' => 0,
  70. 'no_extras' => 0,
  71. 'override_title' => 1,
  72. 'override_title_text' => '<none>',
  73. 'identifier' => '',
  74. 'link' => 0,
  75. 'leave_node_title' => 0,
  76. 'build_mode' => 'full',
  77. 'context' => 'argument_entity_id:node_1',
  78. );
  79. $pane->cache = array();
  80. $pane->style = array(
  81. 'settings' => NULL,
  82. );
  83. $pane->css = array();
  84. $pane->extras = array();
  85. $pane->position = 0;
  86. $pane->locks = array();
  87. $display->content['new-1'] = $pane;
  88. $display->panels['bottom'][0] = 'new-1';
  89. $pane = new stdClass();
  90. $pane->pid = 'new-2';
  91. $pane->panel = 'top';
  92. $pane->type = 'node_title';
  93. $pane->subtype = 'node_title';
  94. $pane->shown = FALSE;
  95. $pane->access = array();
  96. $pane->configuration = array(
  97. 'link' => 1,
  98. 'context' => 'argument_entity_id:node_1',
  99. 'override_title' => 0,
  100. 'override_title_text' => '',
  101. );
  102. $pane->cache = array();
  103. $pane->style = array(
  104. 'settings' => NULL,
  105. );
  106. $pane->css = array();
  107. $pane->extras = array();
  108. $pane->position = 0;
  109. $pane->locks = array();
  110. $display->content['new-2'] = $pane;
  111. $display->panels['top'][0] = 'new-2';
  112. $display->hide_title = PANELS_TITLE_FIXED;
  113. $display->title_pane = '0';
  114. $handler->conf['display'] = $display;
  115. $export['node_view_panel_context_3'] = $handler;
  116. return $export;
  117. }