popsu_actualites.pages_default.inc 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463
  1. <?php
  2. /**
  3. * @file
  4. * popsu_actualites.pages_default.inc
  5. */
  6. /**
  7. * Implements hook_default_page_manager_handlers().
  8. */
  9. function popsu_actualites_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_12';
  15. $handler->task = 'node_view';
  16. $handler->subtask = '';
  17. $handler->handler = 'panel_context';
  18. $handler->weight = 11;
  19. $handler->conf = array(
  20. 'title' => 'Actualités',
  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_actu' => 'popsu_actu',
  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 = 'flexible:popsu_74_36_stacked';
  47. $display->layout_settings = array();
  48. $display->panel_settings = array(
  49. 'style_settings' => array(
  50. 'default' => NULL,
  51. 'right' => NULL,
  52. 'header' => NULL,
  53. 'top' => NULL,
  54. 'footer' => NULL,
  55. 'picture' => NULL,
  56. 'col_seventy' => NULL,
  57. 'left' => NULL,
  58. ),
  59. );
  60. $display->cache = array();
  61. $display->title = '';
  62. $display->uuid = 'd0d44175-6be3-49eb-957a-3bd9b1d9c38c';
  63. $display->storage_type = 'page_manager';
  64. $display->storage_id = 'node_view_panel_context_12';
  65. $display->content = array();
  66. $display->panels = array();
  67. $pane = new stdClass();
  68. $pane->pid = 'new-e40cf02e-a1a8-479b-a6e3-1bdba41e02f0';
  69. $pane->panel = 'footer';
  70. $pane->type = 'entity_field';
  71. $pane->subtype = 'node:field_popsu_actu_soustitre';
  72. $pane->shown = TRUE;
  73. $pane->access = array();
  74. $pane->configuration = array(
  75. 'label' => 'title',
  76. 'formatter' => 'text_default',
  77. 'delta_limit' => 0,
  78. 'delta_offset' => '0',
  79. 'delta_reversed' => FALSE,
  80. 'formatter_settings' => array(),
  81. 'context' => 'argument_entity_id:node_1',
  82. 'override_title' => 1,
  83. 'override_title_text' => '<none>',
  84. );
  85. $pane->cache = array();
  86. $pane->style = array(
  87. 'settings' => NULL,
  88. );
  89. $pane->css = array();
  90. $pane->extras = array();
  91. $pane->position = 0;
  92. $pane->locks = array();
  93. $pane->uuid = 'e40cf02e-a1a8-479b-a6e3-1bdba41e02f0';
  94. $display->content['new-e40cf02e-a1a8-479b-a6e3-1bdba41e02f0'] = $pane;
  95. $display->panels['footer'][0] = 'new-e40cf02e-a1a8-479b-a6e3-1bdba41e02f0';
  96. $pane = new stdClass();
  97. $pane->pid = 'new-023bb002-6c73-45e4-8300-ebf1bb78fc6e';
  98. $pane->panel = 'footer';
  99. $pane->type = 'entity_field';
  100. $pane->subtype = 'node:field_popsu_actu_date';
  101. $pane->shown = TRUE;
  102. $pane->access = array();
  103. $pane->configuration = array(
  104. 'label' => 'title',
  105. 'formatter' => 'date_default',
  106. 'delta_limit' => 0,
  107. 'delta_offset' => '0',
  108. 'delta_reversed' => FALSE,
  109. 'formatter_settings' => array(
  110. 'format_type' => 'popsu_yyyy_mm_dd',
  111. 'multiple_number' => '',
  112. 'multiple_from' => '',
  113. 'multiple_to' => '',
  114. 'fromto' => 'both',
  115. ),
  116. 'context' => 'argument_entity_id:node_1',
  117. 'override_title' => 1,
  118. 'override_title_text' => '<none>',
  119. );
  120. $pane->cache = array();
  121. $pane->style = array(
  122. 'settings' => NULL,
  123. );
  124. $pane->css = array();
  125. $pane->extras = array();
  126. $pane->position = 1;
  127. $pane->locks = array();
  128. $pane->uuid = '023bb002-6c73-45e4-8300-ebf1bb78fc6e';
  129. $display->content['new-023bb002-6c73-45e4-8300-ebf1bb78fc6e'] = $pane;
  130. $display->panels['footer'][1] = 'new-023bb002-6c73-45e4-8300-ebf1bb78fc6e';
  131. $pane = new stdClass();
  132. $pane->pid = 'new-87a6bcca-c696-4405-be4b-ed4516cf34a6';
  133. $pane->panel = 'footer';
  134. $pane->type = 'entity_field';
  135. $pane->subtype = 'node:field_popsu_actu_body';
  136. $pane->shown = TRUE;
  137. $pane->access = array();
  138. $pane->configuration = array(
  139. 'label' => 'title',
  140. 'formatter' => 'text_default',
  141. 'delta_limit' => 0,
  142. 'delta_offset' => '0',
  143. 'delta_reversed' => FALSE,
  144. 'formatter_settings' => array(),
  145. 'context' => 'argument_entity_id:node_1',
  146. 'override_title' => 1,
  147. 'override_title_text' => '<none>',
  148. );
  149. $pane->cache = array();
  150. $pane->style = array(
  151. 'settings' => NULL,
  152. );
  153. $pane->css = array(
  154. 'css_id' => '',
  155. 'css_class' => 'layout-64p',
  156. );
  157. $pane->extras = array();
  158. $pane->position = 2;
  159. $pane->locks = array();
  160. $pane->uuid = '87a6bcca-c696-4405-be4b-ed4516cf34a6';
  161. $display->content['new-87a6bcca-c696-4405-be4b-ed4516cf34a6'] = $pane;
  162. $display->panels['footer'][2] = 'new-87a6bcca-c696-4405-be4b-ed4516cf34a6';
  163. $pane = new stdClass();
  164. $pane->pid = 'new-f3d686ff-7c21-413c-ab53-f51c34e5e775';
  165. $pane->panel = 'footer';
  166. $pane->type = 'views_panes';
  167. $pane->subtype = 'actualites-panel_pane_2';
  168. $pane->shown = TRUE;
  169. $pane->access = array();
  170. $pane->configuration = array(
  171. 'arguments' => array(
  172. 'nid' => '%node:nid',
  173. ),
  174. );
  175. $pane->cache = array();
  176. $pane->style = array(
  177. 'settings' => NULL,
  178. );
  179. $pane->css = array();
  180. $pane->extras = array();
  181. $pane->position = 3;
  182. $pane->locks = array();
  183. $pane->uuid = 'f3d686ff-7c21-413c-ab53-f51c34e5e775';
  184. $display->content['new-f3d686ff-7c21-413c-ab53-f51c34e5e775'] = $pane;
  185. $display->panels['footer'][3] = 'new-f3d686ff-7c21-413c-ab53-f51c34e5e775';
  186. $pane = new stdClass();
  187. $pane->pid = 'new-fc2a42c0-dd25-4872-8f98-8ae2780e5116';
  188. $pane->panel = 'footer';
  189. $pane->type = 'views_panes';
  190. $pane->subtype = 'actualites-panel_pane_3';
  191. $pane->shown = TRUE;
  192. $pane->access = array();
  193. $pane->configuration = array(
  194. 'arguments' => array(
  195. 'nid' => '%node:nid',
  196. ),
  197. );
  198. $pane->cache = array();
  199. $pane->style = array(
  200. 'settings' => NULL,
  201. );
  202. $pane->css = array();
  203. $pane->extras = array();
  204. $pane->position = 4;
  205. $pane->locks = array();
  206. $pane->uuid = 'fc2a42c0-dd25-4872-8f98-8ae2780e5116';
  207. $display->content['new-fc2a42c0-dd25-4872-8f98-8ae2780e5116'] = $pane;
  208. $display->panels['footer'][4] = 'new-fc2a42c0-dd25-4872-8f98-8ae2780e5116';
  209. $pane = new stdClass();
  210. $pane->pid = 'new-9fe66e75-0f7a-497c-9ffc-c21d5bf061c1';
  211. $pane->panel = 'header';
  212. $pane->type = 'custom';
  213. $pane->subtype = 'custom';
  214. $pane->shown = TRUE;
  215. $pane->access = array();
  216. $pane->configuration = array(
  217. 'admin_title' => 'Actualités - Titre - A venir ou passées',
  218. 'title' => '<none>',
  219. 'body' => '<h1 id="page-title" class="title-actu title-a-venir">Actualites a venir</h1>
  220. <h1 id="page-title" class="title-actu title-passees">Actualites passees</h1>',
  221. 'format' => 'php_code',
  222. 'substitute' => 1,
  223. );
  224. $pane->cache = array();
  225. $pane->style = array(
  226. 'settings' => NULL,
  227. );
  228. $pane->css = array();
  229. $pane->extras = array();
  230. $pane->position = 0;
  231. $pane->locks = array();
  232. $pane->uuid = '9fe66e75-0f7a-497c-9ffc-c21d5bf061c1';
  233. $display->content['new-9fe66e75-0f7a-497c-9ffc-c21d5bf061c1'] = $pane;
  234. $display->panels['header'][0] = 'new-9fe66e75-0f7a-497c-9ffc-c21d5bf061c1';
  235. $pane = new stdClass();
  236. $pane->pid = 'new-b0ef292b-5304-47f3-8b50-b3d901e52e00';
  237. $pane->panel = 'header';
  238. $pane->type = 'node_title';
  239. $pane->subtype = 'node_title';
  240. $pane->shown = TRUE;
  241. $pane->access = array();
  242. $pane->configuration = array(
  243. 'link' => 0,
  244. 'context' => 'argument_entity_id:node_1',
  245. 'override_title' => 1,
  246. 'override_title_text' => '<none>',
  247. );
  248. $pane->cache = array();
  249. $pane->style = array(
  250. 'settings' => NULL,
  251. );
  252. $pane->css = array(
  253. 'css_id' => 'page-title-secondary-actu',
  254. 'css_class' => 'page-title-secondary',
  255. );
  256. $pane->extras = array();
  257. $pane->position = 1;
  258. $pane->locks = array();
  259. $pane->uuid = 'b0ef292b-5304-47f3-8b50-b3d901e52e00';
  260. $display->content['new-b0ef292b-5304-47f3-8b50-b3d901e52e00'] = $pane;
  261. $display->panels['header'][1] = 'new-b0ef292b-5304-47f3-8b50-b3d901e52e00';
  262. $pane = new stdClass();
  263. $pane->pid = 'new-47e94db5-efe8-4cbc-9eed-ed063d49c319';
  264. $pane->panel = 'left';
  265. $pane->type = 'entity_field';
  266. $pane->subtype = 'node:field_popsu_actu_image';
  267. $pane->shown = TRUE;
  268. $pane->access = array();
  269. $pane->configuration = array(
  270. 'label' => 'title',
  271. 'formatter' => 'image',
  272. 'delta_limit' => 0,
  273. 'delta_offset' => '0',
  274. 'delta_reversed' => FALSE,
  275. 'formatter_settings' => array(
  276. 'image_style' => '',
  277. 'image_link' => '',
  278. ),
  279. 'context' => 'argument_entity_id:node_1',
  280. 'override_title' => 1,
  281. 'override_title_text' => '<none>',
  282. );
  283. $pane->cache = array();
  284. $pane->style = array(
  285. 'settings' => NULL,
  286. );
  287. $pane->css = array(
  288. 'css_id' => 'panel-actu-grande-image',
  289. 'css_class' => 'image-decallee',
  290. );
  291. $pane->extras = array();
  292. $pane->position = 0;
  293. $pane->locks = array();
  294. $pane->uuid = '47e94db5-efe8-4cbc-9eed-ed063d49c319';
  295. $display->content['new-47e94db5-efe8-4cbc-9eed-ed063d49c319'] = $pane;
  296. $display->panels['left'][0] = 'new-47e94db5-efe8-4cbc-9eed-ed063d49c319';
  297. $display->hide_title = PANELS_TITLE_NONE;
  298. $display->title_pane = '0';
  299. $handler->conf['display'] = $display;
  300. $export['node_view_panel_context_12'] = $handler;
  301. return $export;
  302. }
  303. /**
  304. * Implements hook_default_page_manager_pages().
  305. */
  306. function popsu_actualites_default_page_manager_pages() {
  307. $page = new stdClass();
  308. $page->disabled = FALSE; /* Edit this to true to make a default page disabled initially */
  309. $page->api_version = 1;
  310. $page->name = 'popsu_actualites';
  311. $page->task = 'page';
  312. $page->admin_title = 'Actualités';
  313. $page->admin_description = '';
  314. $page->path = 'actualites';
  315. $page->access = array(
  316. 'logic' => 'and',
  317. );
  318. $page->menu = array(
  319. 'type' => 'none',
  320. 'title' => '',
  321. 'name' => 'navigation',
  322. 'weight' => '0',
  323. 'parent' => array(
  324. 'type' => 'none',
  325. 'title' => '',
  326. 'name' => 'navigation',
  327. 'weight' => '0',
  328. ),
  329. );
  330. $page->arguments = array();
  331. $page->conf = array(
  332. 'admin_paths' => FALSE,
  333. );
  334. $page->default_handlers = array();
  335. $handler = new stdClass();
  336. $handler->disabled = FALSE; /* Edit this to true to make a default handler disabled initially */
  337. $handler->api_version = 1;
  338. $handler->name = 'page_popsu_actualites_panel_context';
  339. $handler->task = 'page';
  340. $handler->subtask = 'popsu_actualites';
  341. $handler->handler = 'panel_context';
  342. $handler->weight = 0;
  343. $handler->conf = array(
  344. 'title' => 'Panneau',
  345. 'no_blocks' => 0,
  346. 'pipeline' => 'standard',
  347. 'body_classes_to_remove' => '',
  348. 'body_classes_to_add' => '',
  349. 'css_id' => '',
  350. 'css' => '',
  351. 'contexts' => array(),
  352. 'relationships' => array(),
  353. 'access' => array(
  354. 'logic' => 'and',
  355. ),
  356. );
  357. $display = new panels_display();
  358. $display->layout = 'flexible:popsu_74_36_stacked';
  359. $display->layout_settings = array();
  360. $display->panel_settings = array(
  361. 'style_settings' => array(
  362. 'default' => NULL,
  363. 'left' => NULL,
  364. 'right' => NULL,
  365. 'header' => NULL,
  366. 'top' => NULL,
  367. 'footer' => NULL,
  368. ),
  369. );
  370. $display->cache = array();
  371. $display->title = 'Actualités, appels d\'offre et consultations';
  372. $display->uuid = 'c6b465ec-1b7c-414a-848a-27b5bf692a45';
  373. $display->storage_type = 'page_manager';
  374. $display->storage_id = 'page_popsu_actualites_panel_context';
  375. $display->content = array();
  376. $display->panels = array();
  377. $pane = new stdClass();
  378. $pane->pid = 'new-9871e640-6e35-4ffc-98ee-5ef37753686c';
  379. $pane->panel = 'left';
  380. $pane->type = 'views';
  381. $pane->subtype = 'actualites';
  382. $pane->shown = TRUE;
  383. $pane->access = array();
  384. $pane->configuration = array(
  385. 'override_pager_settings' => 0,
  386. 'use_pager' => 0,
  387. 'nodes_per_page' => '0',
  388. 'pager_id' => '0',
  389. 'offset' => '0',
  390. 'more_link' => 0,
  391. 'feed_icons' => 0,
  392. 'panel_args' => 0,
  393. 'link_to_view' => 0,
  394. 'args' => '',
  395. 'url' => '',
  396. 'display' => 'block_3',
  397. 'override_title' => 1,
  398. 'override_title_text' => 'Actualités',
  399. );
  400. $pane->cache = array();
  401. $pane->style = array(
  402. 'settings' => NULL,
  403. );
  404. $pane->css = array(
  405. 'css_id' => '',
  406. 'css_class' => 'listing-actu listing-actu-avenir',
  407. );
  408. $pane->extras = array();
  409. $pane->position = 0;
  410. $pane->locks = array();
  411. $pane->uuid = '9871e640-6e35-4ffc-98ee-5ef37753686c';
  412. $display->content['new-9871e640-6e35-4ffc-98ee-5ef37753686c'] = $pane;
  413. $display->panels['left'][0] = 'new-9871e640-6e35-4ffc-98ee-5ef37753686c';
  414. $pane = new stdClass();
  415. $pane->pid = 'new-43500ad1-83c5-4fe7-9c81-782c0ca4d697';
  416. $pane->panel = 'left';
  417. $pane->type = 'views';
  418. $pane->subtype = 'actualites';
  419. $pane->shown = TRUE;
  420. $pane->access = array();
  421. $pane->configuration = array(
  422. 'override_pager_settings' => 0,
  423. 'use_pager' => 0,
  424. 'nodes_per_page' => '0',
  425. 'pager_id' => '0',
  426. 'offset' => '0',
  427. 'more_link' => 0,
  428. 'feed_icons' => 0,
  429. 'panel_args' => 0,
  430. 'link_to_view' => 0,
  431. 'args' => '',
  432. 'url' => '',
  433. 'display' => 'block_4',
  434. 'override_title' => 1,
  435. 'override_title_text' => 'Actualites archivees',
  436. );
  437. $pane->cache = array();
  438. $pane->style = array(
  439. 'settings' => NULL,
  440. );
  441. $pane->css = array(
  442. 'css_id' => 'pane-actu-passees',
  443. 'css_class' => 'layout-88p listing-actu listing-actu-passe',
  444. );
  445. $pane->extras = array();
  446. $pane->position = 1;
  447. $pane->locks = array();
  448. $pane->uuid = '43500ad1-83c5-4fe7-9c81-782c0ca4d697';
  449. $display->content['new-43500ad1-83c5-4fe7-9c81-782c0ca4d697'] = $pane;
  450. $display->panels['left'][1] = 'new-43500ad1-83c5-4fe7-9c81-782c0ca4d697';
  451. $display->hide_title = PANELS_TITLE_FIXED;
  452. $display->title_pane = '0';
  453. $handler->conf['display'] = $display;
  454. $page->default_handlers[$handler->name] = $handler;
  455. $pages['popsu_actualites'] = $page;
  456. return $pages;
  457. }