clameurs.panels_default.inc 7.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266
  1. <?php
  2. /**
  3. * @file
  4. * clameurs.panels_default.inc
  5. */
  6. /**
  7. * Implements hook_default_panels_mini().
  8. */
  9. function clameurs_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 = 'th_matique';
  15. $mini->category = 'clameurs';
  16. $mini->admin_title = 'Thématique';
  17. $mini->admin_description = 'display a thematique with theese episode and documentaire';
  18. $mini->requiredcontexts = array(
  19. 0 => array(
  20. 'identifier' => 'Nœud',
  21. 'keyword' => 'node',
  22. 'name' => 'entity:node',
  23. 'entity_id' => '',
  24. 'optional' => 0,
  25. 'id' => 1,
  26. ),
  27. );
  28. $mini->contexts = array();
  29. $mini->relationships = array(
  30. 0 => array(
  31. 'identifier' => 'Entity property node:nid',
  32. 'keyword' => 'nid',
  33. 'name' => 'entity_property',
  34. 'selector' => 'nid',
  35. 'target_context' => 'integer',
  36. 'concatenator' => ',',
  37. 'context' => 'requiredcontext_entity:node_1',
  38. 'id' => 1,
  39. ),
  40. );
  41. $display = new panels_display();
  42. $display->layout = 'clameur';
  43. $display->layout_settings = array();
  44. $display->panel_settings = array(
  45. 'style_settings' => array(
  46. 'default' => NULL,
  47. 'top' => NULL,
  48. 'left' => NULL,
  49. 'right' => NULL,
  50. 'bottom' => NULL,
  51. ),
  52. 'style' => 'naked',
  53. );
  54. $display->cache = array();
  55. $display->title = '%node:title';
  56. $display->uuid = '4e740500-47e0-4654-b03d-e7ea78b47cec';
  57. $display->storage_type = 'panels_mini';
  58. $display->storage_id = 'th_matique';
  59. $display->content = array();
  60. $display->panels = array();
  61. $pane = new stdClass();
  62. $pane->pid = 'new-174a4077-63b3-418d-9b16-5887926f0f80';
  63. $pane->panel = 'bottom';
  64. $pane->type = 'entity_field';
  65. $pane->subtype = 'node:field_episodes';
  66. $pane->shown = TRUE;
  67. $pane->access = array();
  68. $pane->configuration = array(
  69. 'label' => 'hidden',
  70. 'formatter' => 'entityreference_entity_view',
  71. 'delta_limit' => '0',
  72. 'delta_offset' => '0',
  73. 'delta_reversed' => 0,
  74. 'formatter_settings' => array(
  75. 'view_mode' => 'teaser',
  76. 'links' => 0,
  77. 'use_content_language' => 1,
  78. ),
  79. 'context' => 'requiredcontext_entity:node_1',
  80. 'override_title' => 0,
  81. 'override_title_text' => '',
  82. 'override_title_heading' => 'h2',
  83. );
  84. $pane->cache = array();
  85. $pane->style = array(
  86. 'settings' => NULL,
  87. 'style' => 'naked',
  88. );
  89. $pane->css = array();
  90. $pane->extras = array();
  91. $pane->position = 0;
  92. $pane->locks = array();
  93. $pane->uuid = '174a4077-63b3-418d-9b16-5887926f0f80';
  94. $display->content['new-174a4077-63b3-418d-9b16-5887926f0f80'] = $pane;
  95. $display->panels['bottom'][0] = 'new-174a4077-63b3-418d-9b16-5887926f0f80';
  96. $pane = new stdClass();
  97. $pane->pid = 'new-3d79c2a1-ab4e-4a2d-a4d6-3a3960f7ae93';
  98. $pane->panel = 'left';
  99. $pane->type = 'entity_field';
  100. $pane->subtype = 'node:body';
  101. $pane->shown = FALSE;
  102. $pane->access = array();
  103. $pane->configuration = array(
  104. 'label' => 'hidden',
  105. 'formatter' => 'text_default',
  106. 'delta_limit' => 0,
  107. 'delta_offset' => '0',
  108. 'delta_reversed' => FALSE,
  109. 'formatter_settings' => array(
  110. 'trim_length' => '600',
  111. ),
  112. 'context' => 'requiredcontext_entity:node_1',
  113. 'override_title' => 0,
  114. 'override_title_text' => '',
  115. 'override_title_heading' => 'h2',
  116. );
  117. $pane->cache = array();
  118. $pane->style = array(
  119. 'settings' => NULL,
  120. 'style' => 'naked',
  121. );
  122. $pane->css = array();
  123. $pane->extras = array();
  124. $pane->position = 0;
  125. $pane->locks = array();
  126. $pane->uuid = '3d79c2a1-ab4e-4a2d-a4d6-3a3960f7ae93';
  127. $display->content['new-3d79c2a1-ab4e-4a2d-a4d6-3a3960f7ae93'] = $pane;
  128. $display->panels['left'][0] = 'new-3d79c2a1-ab4e-4a2d-a4d6-3a3960f7ae93';
  129. $pane = new stdClass();
  130. $pane->pid = 'new-5cb200c4-da2c-4eba-972d-24012a9136b7';
  131. $pane->panel = 'left';
  132. $pane->type = 'entity_field';
  133. $pane->subtype = 'node:field_emvideo';
  134. $pane->shown = FALSE;
  135. $pane->access = array();
  136. $pane->configuration = array(
  137. 'label' => 'hidden',
  138. 'formatter' => 'video_embed_field_overlay',
  139. 'delta_limit' => 0,
  140. 'delta_offset' => '0',
  141. 'delta_reversed' => FALSE,
  142. 'formatter_settings' => array(
  143. 'image_style' => 'video_thumb_themat',
  144. 'image_link' => 'source',
  145. 'video_style' => 'normal',
  146. 'show_thumbnail' => '1',
  147. 'overlay' => 'dom-window',
  148. ),
  149. 'context' => 'requiredcontext_entity:node_1',
  150. 'override_title' => 0,
  151. 'override_title_text' => '',
  152. 'override_title_heading' => 'h2',
  153. );
  154. $pane->cache = array();
  155. $pane->style = array(
  156. 'settings' => NULL,
  157. 'style' => 'naked',
  158. );
  159. $pane->css = array();
  160. $pane->extras = array();
  161. $pane->position = 1;
  162. $pane->locks = array();
  163. $pane->uuid = '5cb200c4-da2c-4eba-972d-24012a9136b7';
  164. $display->content['new-5cb200c4-da2c-4eba-972d-24012a9136b7'] = $pane;
  165. $display->panels['left'][1] = 'new-5cb200c4-da2c-4eba-972d-24012a9136b7';
  166. $pane = new stdClass();
  167. $pane->pid = 'new-5706499d-b09f-430e-a96b-40c75be56c32';
  168. $pane->panel = 'left';
  169. $pane->type = 'entity_view';
  170. $pane->subtype = 'node';
  171. $pane->shown = TRUE;
  172. $pane->access = array();
  173. $pane->configuration = array(
  174. 'view_mode' => 'teaser',
  175. 'context' => 'requiredcontext_entity:node_1',
  176. 'override_title' => 1,
  177. 'override_title_text' => '',
  178. 'override_title_heading' => 'h2',
  179. );
  180. $pane->cache = array();
  181. $pane->style = array(
  182. 'settings' => NULL,
  183. );
  184. $pane->css = array();
  185. $pane->extras = array();
  186. $pane->position = 2;
  187. $pane->locks = array();
  188. $pane->uuid = '5706499d-b09f-430e-a96b-40c75be56c32';
  189. $display->content['new-5706499d-b09f-430e-a96b-40c75be56c32'] = $pane;
  190. $display->panels['left'][2] = 'new-5706499d-b09f-430e-a96b-40c75be56c32';
  191. $pane = new stdClass();
  192. $pane->pid = 'new-5c424baf-2ef8-471e-a7f5-d8a5d8048b59';
  193. $pane->panel = 'right';
  194. $pane->type = 'entity_field';
  195. $pane->subtype = 'node:field_eclairages';
  196. $pane->shown = TRUE;
  197. $pane->access = array();
  198. $pane->configuration = array(
  199. 'label' => 'hidden',
  200. 'formatter' => 'entityreference_entity_view',
  201. 'delta_limit' => '0',
  202. 'delta_offset' => '0',
  203. 'delta_reversed' => 0,
  204. 'formatter_settings' => array(
  205. 'view_mode' => 'teaser',
  206. 'links' => 0,
  207. 'use_content_language' => 0,
  208. ),
  209. 'context' => 'requiredcontext_entity:node_1',
  210. 'override_title' => 0,
  211. 'override_title_text' => '',
  212. 'override_title_heading' => 'h2',
  213. );
  214. $pane->cache = array();
  215. $pane->style = array(
  216. 'settings' => NULL,
  217. 'style' => 'naked',
  218. );
  219. $pane->css = array();
  220. $pane->extras = array();
  221. $pane->position = 0;
  222. $pane->locks = array();
  223. $pane->uuid = '5c424baf-2ef8-471e-a7f5-d8a5d8048b59';
  224. $display->content['new-5c424baf-2ef8-471e-a7f5-d8a5d8048b59'] = $pane;
  225. $display->panels['right'][0] = 'new-5c424baf-2ef8-471e-a7f5-d8a5d8048b59';
  226. $pane = new stdClass();
  227. $pane->pid = 'new-5e7b0d6a-9243-4776-b535-b14d3cff1df1';
  228. $pane->panel = 'top';
  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. 'markup' => 'h2',
  236. 'id' => '%node:nid',
  237. 'class' => '',
  238. 'context' => 'requiredcontext_entity:node_1',
  239. 'override_title' => 0,
  240. 'override_title_text' => '',
  241. 'override_title_heading' => 'h2',
  242. );
  243. $pane->cache = array();
  244. $pane->style = array(
  245. 'style' => 'naked',
  246. 'settings' => NULL,
  247. );
  248. $pane->css = array(
  249. 'css_id' => '%node:nid',
  250. 'css_class' => '',
  251. );
  252. $pane->extras = array();
  253. $pane->position = 0;
  254. $pane->locks = array();
  255. $pane->uuid = '5e7b0d6a-9243-4776-b535-b14d3cff1df1';
  256. $display->content['new-5e7b0d6a-9243-4776-b535-b14d3cff1df1'] = $pane;
  257. $display->panels['top'][0] = 'new-5e7b0d6a-9243-4776-b535-b14d3cff1df1';
  258. $display->hide_title = PANELS_TITLE_NONE;
  259. $display->title_pane = 'new-3d79c2a1-ab4e-4a2d-a4d6-3a3960f7ae93';
  260. $mini->display = $display;
  261. $export['th_matique'] = $mini;
  262. return $export;
  263. }