popsu_actualites.pages_default.inc 12 KB

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