popsu_villes.pages_default.inc 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383
  1. <?php
  2. /**
  3. * @file
  4. * popsu_villes.pages_default.inc
  5. */
  6. /**
  7. * Implements hook_default_page_manager_handlers().
  8. */
  9. function popsu_villes_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_2';
  15. $handler->task = 'node_view';
  16. $handler->subtask = '';
  17. $handler->handler = 'panel_context';
  18. $handler->weight = 1;
  19. $handler->conf = array(
  20. 'title' => 'Villes (feature)',
  21. 'no_blocks' => 0,
  22. 'pipeline' => 'standard',
  23. 'body_classes_to_remove' => '',
  24. 'body_classes_to_add' => 'panel-ville',
  25. 'css_id' => '',
  26. 'css' => '',
  27. 'contexts' => array(),
  28. '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' => 'argument_entity_id: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' => 'argument_entity_id:node_1',
  43. 'id' => 1,
  44. ),
  45. ),
  46. 'access' => array(
  47. 'plugins' => array(
  48. 0 => array(
  49. 'name' => 'node_type',
  50. 'settings' => array(
  51. 'type' => array(
  52. 'popsu_ville' => 'popsu_ville',
  53. ),
  54. ),
  55. 'context' => 'argument_entity_id:node_1',
  56. 'not' => FALSE,
  57. ),
  58. ),
  59. 'logic' => 'and',
  60. ),
  61. );
  62. $display = new panels_display();
  63. $display->layout = 'flexible:popsu_74_36_stacked';
  64. $display->layout_settings = array();
  65. $display->panel_settings = array(
  66. 'style_settings' => array(
  67. 'default' => NULL,
  68. 'top' => NULL,
  69. 'left' => NULL,
  70. 'right' => NULL,
  71. 'bottom' => NULL,
  72. 'header' => NULL,
  73. 'footer' => NULL,
  74. ),
  75. );
  76. $display->cache = array();
  77. $display->title = '%node:title';
  78. $display->content = array();
  79. $display->panels = array();
  80. $pane = new stdClass();
  81. $pane->pid = 'new-1';
  82. $pane->panel = 'footer';
  83. $pane->type = 'views_panes';
  84. $pane->subtype = 'colloques-panel_pane_1';
  85. $pane->shown = TRUE;
  86. $pane->access = array();
  87. $pane->configuration = array(
  88. 'arguments' => array(
  89. 'field_popsu_colloque_ville_tid' => '%taxonomy_term:tid',
  90. 'field_popsu_colloque_popsu_tid' => '%taxonomy_term_2:tid',
  91. ),
  92. );
  93. $pane->cache = array();
  94. $pane->style = array(
  95. 'settings' => NULL,
  96. );
  97. $pane->css = array(
  98. 'css_id' => 'pane-colloque',
  99. 'css_class' => 'pane-74-26',
  100. );
  101. $pane->extras = array();
  102. $pane->position = 0;
  103. $pane->locks = array();
  104. $display->content['new-1'] = $pane;
  105. $display->panels['footer'][0] = 'new-1';
  106. $pane = new stdClass();
  107. $pane->pid = 'new-2';
  108. $pane->panel = 'footer';
  109. $pane->type = 'views_panes';
  110. $pane->subtype = 'publications-panel_pane_1';
  111. $pane->shown = TRUE;
  112. $pane->access = array();
  113. $pane->configuration = array(
  114. 'arguments' => array(
  115. 'field_popsu_publication_ville_tid' => '%taxonomy_term:tid',
  116. 'field_popsu_publication_popsu_tid' => '%taxonomy_term_2:tid',
  117. ),
  118. );
  119. $pane->cache = array();
  120. $pane->style = array(
  121. 'settings' => NULL,
  122. );
  123. $pane->css = array(
  124. 'css_id' => 'pane-publication',
  125. 'css_class' => 'layout-88p pane-74-26 clearfix',
  126. );
  127. $pane->extras = array();
  128. $pane->position = 1;
  129. $pane->locks = array();
  130. $display->content['new-2'] = $pane;
  131. $display->panels['footer'][1] = 'new-2';
  132. $pane = new stdClass();
  133. $pane->pid = 'new-3';
  134. $pane->panel = 'footer';
  135. $pane->type = 'custom';
  136. $pane->subtype = 'custom';
  137. $pane->shown = TRUE;
  138. $pane->access = array();
  139. $pane->configuration = array(
  140. 'admin_title' => 'POPSU Fermeture de liste',
  141. 'title' => '<none>',
  142. 'body' => '<div></div>',
  143. 'format' => 'php_code',
  144. 'substitute' => 0,
  145. );
  146. $pane->cache = array();
  147. $pane->style = array(
  148. 'settings' => NULL,
  149. );
  150. $pane->css = array(
  151. 'css_id' => '',
  152. 'css_class' => 'border-last layout-64-5p',
  153. );
  154. $pane->extras = array();
  155. $pane->position = 2;
  156. $pane->locks = array();
  157. $display->content['new-3'] = $pane;
  158. $display->panels['footer'][2] = 'new-3';
  159. $pane = new stdClass();
  160. $pane->pid = 'new-4';
  161. $pane->panel = 'left';
  162. $pane->type = 'entity_field';
  163. $pane->subtype = 'node:field_popsu_ville_images_illustr';
  164. $pane->shown = TRUE;
  165. $pane->access = array();
  166. $pane->configuration = array(
  167. 'label' => 'title',
  168. 'formatter' => 'image',
  169. 'delta_limit' => '0',
  170. 'delta_offset' => '0',
  171. 'delta_reversed' => 0,
  172. 'formatter_settings' => array(
  173. 'image_style' => 'popsu-villes-grande-image',
  174. 'image_link' => '',
  175. ),
  176. 'context' => 'argument_entity_id:node_1',
  177. 'override_title' => 1,
  178. 'override_title_text' => '<none>',
  179. );
  180. $pane->cache = array();
  181. $pane->style = array(
  182. 'settings' => NULL,
  183. );
  184. $pane->css = array(
  185. 'css_id' => 'panel-ville-grande-image',
  186. 'css_class' => 'image-decallee',
  187. );
  188. $pane->extras = array();
  189. $pane->position = 0;
  190. $pane->locks = array();
  191. $display->content['new-4'] = $pane;
  192. $display->panels['left'][0] = 'new-4';
  193. $pane = new stdClass();
  194. $pane->pid = 'new-5';
  195. $pane->panel = 'left';
  196. $pane->type = 'entity_field';
  197. $pane->subtype = 'node:field_popsu_ville_body';
  198. $pane->shown = TRUE;
  199. $pane->access = array();
  200. $pane->configuration = array(
  201. 'label' => 'title',
  202. 'formatter' => 'text_default',
  203. 'delta_limit' => 0,
  204. 'delta_offset' => '0',
  205. 'delta_reversed' => FALSE,
  206. 'formatter_settings' => array(),
  207. 'context' => 'argument_entity_id:node_1',
  208. 'override_title' => 1,
  209. 'override_title_text' => '<none>',
  210. );
  211. $pane->cache = array();
  212. $pane->style = array(
  213. 'settings' => NULL,
  214. );
  215. $pane->css = array(
  216. 'css_id' => 'panel-ville-texte-intro',
  217. 'css_class' => 'layout-88p',
  218. );
  219. $pane->extras = array();
  220. $pane->position = 1;
  221. $pane->locks = array();
  222. $display->content['new-5'] = $pane;
  223. $display->panels['left'][1] = 'new-5';
  224. $pane = new stdClass();
  225. $pane->pid = 'new-6';
  226. $pane->panel = 'right';
  227. $pane->type = 'entity_field';
  228. $pane->subtype = 'node:field_popsu_ville_equipe';
  229. $pane->shown = TRUE;
  230. $pane->access = array();
  231. $pane->configuration = array(
  232. 'label' => 'title',
  233. 'formatter' => 'text_default',
  234. 'delta_limit' => 0,
  235. 'delta_offset' => '0',
  236. 'delta_reversed' => FALSE,
  237. 'formatter_settings' => array(),
  238. 'context' => 'argument_entity_id:node_1',
  239. 'override_title' => 0,
  240. 'override_title_text' => '',
  241. );
  242. $pane->cache = array();
  243. $pane->style = array(
  244. 'settings' => NULL,
  245. );
  246. $pane->css = array(
  247. 'css_id' => 'accordion-h2-ville-equipe',
  248. 'css_class' => 'accordion-h2-ex accordion-h2-panel',
  249. );
  250. $pane->extras = array();
  251. $pane->position = 0;
  252. $pane->locks = array();
  253. $display->content['new-6'] = $pane;
  254. $display->panels['right'][0] = 'new-6';
  255. $pane = new stdClass();
  256. $pane->pid = 'new-7';
  257. $pane->panel = 'right';
  258. $pane->type = 'entity_field';
  259. $pane->subtype = 'node:field_popsu_ville_coordinateur';
  260. $pane->shown = TRUE;
  261. $pane->access = array();
  262. $pane->configuration = array(
  263. 'label' => 'title',
  264. 'formatter' => 'text_default',
  265. 'delta_limit' => 0,
  266. 'delta_offset' => '0',
  267. 'delta_reversed' => FALSE,
  268. 'formatter_settings' => array(),
  269. 'context' => 'argument_entity_id:node_1',
  270. 'override_title' => 1,
  271. 'override_title_text' => 'Coordinateur<br>des acteurs',
  272. );
  273. $pane->cache = array();
  274. $pane->style = array(
  275. 'settings' => NULL,
  276. );
  277. $pane->css = array(
  278. 'css_id' => 'accordion-h2-ville-coordinateur',
  279. 'css_class' => 'accordion-h2-ex accordion-h2-panel',
  280. );
  281. $pane->extras = array();
  282. $pane->position = 1;
  283. $pane->locks = array();
  284. $display->content['new-7'] = $pane;
  285. $display->panels['right'][1] = 'new-7';
  286. $pane = new stdClass();
  287. $pane->pid = 'new-8';
  288. $pane->panel = 'right';
  289. $pane->type = 'entity_field';
  290. $pane->subtype = 'node:field_popsu_ville_partenairesimg';
  291. $pane->shown = TRUE;
  292. $pane->access = array();
  293. $pane->configuration = array(
  294. 'label' => 'title',
  295. 'formatter' => 'image',
  296. 'delta_limit' => '0',
  297. 'delta_offset' => '0',
  298. 'delta_reversed' => 0,
  299. 'formatter_settings' => array(
  300. 'image_style' => '',
  301. 'image_link' => '',
  302. ),
  303. 'context' => 'argument_entity_id:node_1',
  304. 'override_title' => 1,
  305. 'override_title_text' => 'Partenaires',
  306. );
  307. $pane->cache = array();
  308. $pane->style = array(
  309. 'settings' => NULL,
  310. );
  311. $pane->css = array(
  312. 'css_id' => 'accordion-h2-ville-partenaires',
  313. 'css_class' => 'accordion-h2-ex accordion-h2-panel',
  314. );
  315. $pane->extras = array();
  316. $pane->position = 2;
  317. $pane->locks = array();
  318. $display->content['new-8'] = $pane;
  319. $display->panels['right'][2] = 'new-8';
  320. $pane = new stdClass();
  321. $pane->pid = 'new-9';
  322. $pane->panel = 'right';
  323. $pane->type = 'custom';
  324. $pane->subtype = 'custom';
  325. $pane->shown = TRUE;
  326. $pane->access = array();
  327. $pane->configuration = array(
  328. 'admin_title' => 'POPSU Fermeture de liste',
  329. 'title' => '<none>',
  330. 'body' => '<div></div>',
  331. 'format' => 'php_code',
  332. 'substitute' => 0,
  333. );
  334. $pane->cache = array();
  335. $pane->style = array(
  336. 'settings' => NULL,
  337. );
  338. $pane->css = array(
  339. 'css_id' => '',
  340. 'css_class' => 'border-last',
  341. );
  342. $pane->extras = array();
  343. $pane->position = 3;
  344. $pane->locks = array();
  345. $display->content['new-9'] = $pane;
  346. $display->panels['right'][3] = 'new-9';
  347. $pane = new stdClass();
  348. $pane->pid = 'new-10';
  349. $pane->panel = 'top';
  350. $pane->type = 'node_links';
  351. $pane->subtype = 'node_links';
  352. $pane->shown = FALSE;
  353. $pane->access = array();
  354. $pane->configuration = array(
  355. 'override_title' => 0,
  356. 'override_title_text' => '',
  357. 'build_mode' => 'full',
  358. 'identifier' => '',
  359. 'link' => 1,
  360. 'context' => 'argument_entity_id:node_1',
  361. );
  362. $pane->cache = array();
  363. $pane->style = array(
  364. 'settings' => NULL,
  365. );
  366. $pane->css = array(
  367. 'css_id' => '',
  368. 'css_class' => 'admin-add-item',
  369. );
  370. $pane->extras = array();
  371. $pane->position = 0;
  372. $pane->locks = array();
  373. $display->content['new-10'] = $pane;
  374. $display->panels['top'][0] = 'new-10';
  375. $display->hide_title = PANELS_TITLE_FIXED;
  376. $display->title_pane = '0';
  377. $handler->conf['display'] = $display;
  378. $export['node_view_panel_context_2'] = $handler;
  379. return $export;
  380. }