popsu_colloques.panels_default.inc 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208
  1. <?php
  2. /**
  3. * @file
  4. * popsu_colloques.panels_default.inc
  5. */
  6. /**
  7. * Implements hook_default_panels_mini().
  8. */
  9. function popsu_colloques_default_panels_mini() {
  10. $export = array();
  11. $mini = new stdClass();
  12. $mini->disabled = FALSE; /* Edit this to true to make a default mini disabled initially */
  13. $mini->api_version = 1;
  14. $mini->name = 'popsu_mini_ville_colloque';
  15. $mini->category = 'POPSU Mini';
  16. $mini->admin_title = 'POPSU Mini - Ville - Colloque';
  17. $mini->admin_description = 'Mini panel pour afficher le colloque dans la page ville';
  18. $mini->requiredcontexts = array(
  19. 0 => array(
  20. 'identifier' => 'Nœud',
  21. 'keyword' => 'node',
  22. 'name' => 'entity:node',
  23. 'entity_id' => '',
  24. 'id' => 1,
  25. ),
  26. );
  27. $mini->contexts = array();
  28. $mini->relationships = array(
  29. 0 => array(
  30. 'identifier' => 'Terme de taxonomie from Nœud (on Nœud: Ville [field_popsu_ville_ville])',
  31. 'keyword' => 'taxonomy_term',
  32. 'name' => 'entity_from_field:field_popsu_ville_ville-node-taxonomy_term',
  33. 'delta' => 0,
  34. 'context' => 'requiredcontext_entity:node_1',
  35. 'id' => 1,
  36. ),
  37. 1 => array(
  38. 'identifier' => 'Terme de taxonomie from Nœud (on Nœud: POPSU [field_popsu_ville_popsu])',
  39. 'keyword' => 'taxonomy_term_2',
  40. 'name' => 'entity_from_field:field_popsu_ville_popsu-node-taxonomy_term',
  41. 'delta' => 0,
  42. 'context' => 'requiredcontext_entity:node_1',
  43. 'id' => 1,
  44. ),
  45. );
  46. $display = new panels_display();
  47. $display->layout = 'twocol_70_30_stacked';
  48. $display->layout_settings = array();
  49. $display->panel_settings = array(
  50. 'style_settings' => array(
  51. 'default' => NULL,
  52. 'header' => NULL,
  53. 'top' => NULL,
  54. 'left' => NULL,
  55. 'right' => NULL,
  56. 'footer' => NULL,
  57. ),
  58. );
  59. $display->cache = array();
  60. $display->title = '';
  61. $display->content = array();
  62. $display->panels = array();
  63. $pane = new stdClass();
  64. $pane->pid = 'new-1';
  65. $pane->panel = 'left';
  66. $pane->type = 'entity_field';
  67. $pane->subtype = 'node:field_popsu_colloque_body';
  68. $pane->shown = TRUE;
  69. $pane->access = array();
  70. $pane->configuration = array(
  71. 'label' => 'hidden',
  72. 'formatter' => 'text_default',
  73. 'delta_limit' => 0,
  74. 'delta_offset' => '0',
  75. 'delta_reversed' => FALSE,
  76. 'formatter_settings' => array(),
  77. 'context' => 'requiredcontext_entity:node_1',
  78. 'override_title' => 1,
  79. 'override_title_text' => '<none>',
  80. );
  81. $pane->cache = array();
  82. $pane->style = array(
  83. 'settings' => NULL,
  84. );
  85. $pane->css = array();
  86. $pane->extras = array();
  87. $pane->position = 0;
  88. $pane->locks = array();
  89. $display->content['new-1'] = $pane;
  90. $display->panels['left'][0] = 'new-1';
  91. $pane = new stdClass();
  92. $pane->pid = 'new-2';
  93. $pane->panel = 'left';
  94. $pane->type = 'views_panes';
  95. $pane->subtype = 'colloques-panel_pane_1';
  96. $pane->shown = TRUE;
  97. $pane->access = array();
  98. $pane->configuration = array(
  99. 'arguments' => array(
  100. 'field_popsu_colloque_ville_tid' => '%taxonomy_term:tid',
  101. 'field_popsu_colloque_popsu_tid' => '%taxonomy_term_2:tid',
  102. ),
  103. );
  104. $pane->cache = array();
  105. $pane->style = array(
  106. 'settings' => NULL,
  107. );
  108. $pane->css = array();
  109. $pane->extras = array();
  110. $pane->position = 1;
  111. $pane->locks = array();
  112. $display->content['new-2'] = $pane;
  113. $display->panels['left'][1] = 'new-2';
  114. $pane = new stdClass();
  115. $pane->pid = 'new-3';
  116. $pane->panel = 'right';
  117. $pane->type = 'entity_field';
  118. $pane->subtype = 'node:field_popsu_colloque_subtitle';
  119. $pane->shown = TRUE;
  120. $pane->access = array();
  121. $pane->configuration = array(
  122. 'label' => 'hidden',
  123. 'formatter' => 'text_default',
  124. 'delta_limit' => 0,
  125. 'delta_offset' => '0',
  126. 'delta_reversed' => FALSE,
  127. 'formatter_settings' => array(),
  128. 'context' => 'requiredcontext_entity:node_1',
  129. 'override_title' => 1,
  130. 'override_title_text' => '<none>',
  131. );
  132. $pane->cache = array();
  133. $pane->style = array(
  134. 'settings' => NULL,
  135. );
  136. $pane->css = array();
  137. $pane->extras = array();
  138. $pane->position = 0;
  139. $pane->locks = array();
  140. $display->content['new-3'] = $pane;
  141. $display->panels['right'][0] = 'new-3';
  142. $pane = new stdClass();
  143. $pane->pid = 'new-4';
  144. $pane->panel = 'right';
  145. $pane->type = 'entity_field';
  146. $pane->subtype = 'node:field_popsu_colloque_imageintro';
  147. $pane->shown = TRUE;
  148. $pane->access = array();
  149. $pane->configuration = array(
  150. 'label' => 'hidden',
  151. 'formatter' => 'image',
  152. 'delta_limit' => '0',
  153. 'delta_offset' => '0',
  154. 'delta_reversed' => 0,
  155. 'formatter_settings' => array(
  156. 'image_style' => 'thumbnail',
  157. 'image_link' => '',
  158. ),
  159. 'context' => 'requiredcontext_entity:node_1',
  160. 'override_title' => 1,
  161. 'override_title_text' => '<none>',
  162. );
  163. $pane->cache = array();
  164. $pane->style = array(
  165. 'settings' => NULL,
  166. );
  167. $pane->css = array();
  168. $pane->extras = array();
  169. $pane->position = 1;
  170. $pane->locks = array();
  171. $display->content['new-4'] = $pane;
  172. $display->panels['right'][1] = 'new-4';
  173. $pane = new stdClass();
  174. $pane->pid = 'new-5';
  175. $pane->panel = 'right';
  176. $pane->type = 'custom';
  177. $pane->subtype = 'custom';
  178. $pane->shown = TRUE;
  179. $pane->access = array();
  180. $pane->configuration = array(
  181. 'admin_title' => 'POPSU Fermeture de liste',
  182. 'title' => '<none>',
  183. 'body' => '<div></div>',
  184. 'format' => 'php_code',
  185. 'substitute' => 0,
  186. );
  187. $pane->cache = array();
  188. $pane->style = array(
  189. 'settings' => NULL,
  190. );
  191. $pane->css = array(
  192. 'css_id' => '',
  193. 'css_class' => 'border-last',
  194. );
  195. $pane->extras = array();
  196. $pane->position = 2;
  197. $pane->locks = array();
  198. $display->content['new-5'] = $pane;
  199. $display->panels['right'][2] = 'new-5';
  200. $display->hide_title = PANELS_TITLE_NONE;
  201. $display->title_pane = 'new-1';
  202. $mini->display = $display;
  203. $export['popsu_mini_ville_colloque'] = $mini;
  204. return $export;
  205. }