clameurs.panels_default.inc 6.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227
  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. $display = new panels_display();
  31. $display->layout = 'twocol_stacked';
  32. $display->layout_settings = array();
  33. $display->panel_settings = array(
  34. 'style_settings' => array(
  35. 'default' => NULL,
  36. 'top' => NULL,
  37. 'left' => NULL,
  38. 'right' => NULL,
  39. 'bottom' => NULL,
  40. ),
  41. 'style' => 'naked',
  42. );
  43. $display->cache = array();
  44. $display->title = '%node:title';
  45. $display->uuid = '4e740500-47e0-4654-b03d-e7ea78b47cec';
  46. $display->storage_type = 'panels_mini';
  47. $display->storage_id = 'th_matique';
  48. $display->content = array();
  49. $display->panels = array();
  50. $pane = new stdClass();
  51. $pane->pid = 'new-174a4077-63b3-418d-9b16-5887926f0f80';
  52. $pane->panel = 'bottom';
  53. $pane->type = 'entity_field';
  54. $pane->subtype = 'node:field_episodes';
  55. $pane->shown = TRUE;
  56. $pane->access = array();
  57. $pane->configuration = array(
  58. 'label' => 'hidden',
  59. 'formatter' => 'entityreference_entity_view',
  60. 'delta_limit' => '0',
  61. 'delta_offset' => '0',
  62. 'delta_reversed' => 0,
  63. 'formatter_settings' => array(
  64. 'view_mode' => 'teaser',
  65. 'links' => 0,
  66. 'use_content_language' => 1,
  67. ),
  68. 'context' => 'requiredcontext_entity:node_1',
  69. 'override_title' => 0,
  70. 'override_title_text' => '',
  71. 'override_title_heading' => 'h2',
  72. );
  73. $pane->cache = array();
  74. $pane->style = array(
  75. 'settings' => NULL,
  76. 'style' => 'naked',
  77. );
  78. $pane->css = array();
  79. $pane->extras = array();
  80. $pane->position = 0;
  81. $pane->locks = array();
  82. $pane->uuid = '174a4077-63b3-418d-9b16-5887926f0f80';
  83. $display->content['new-174a4077-63b3-418d-9b16-5887926f0f80'] = $pane;
  84. $display->panels['bottom'][0] = 'new-174a4077-63b3-418d-9b16-5887926f0f80';
  85. $pane = new stdClass();
  86. $pane->pid = 'new-3d79c2a1-ab4e-4a2d-a4d6-3a3960f7ae93';
  87. $pane->panel = 'left';
  88. $pane->type = 'entity_field';
  89. $pane->subtype = 'node:body';
  90. $pane->shown = TRUE;
  91. $pane->access = array();
  92. $pane->configuration = array(
  93. 'label' => 'hidden',
  94. 'formatter' => 'text_summary_or_trimmed',
  95. 'delta_limit' => 0,
  96. 'delta_offset' => '0',
  97. 'delta_reversed' => FALSE,
  98. 'formatter_settings' => array(
  99. 'trim_length' => '600',
  100. ),
  101. 'context' => 'requiredcontext_entity:node_1',
  102. 'override_title' => 0,
  103. 'override_title_text' => '',
  104. 'override_title_heading' => 'h2',
  105. );
  106. $pane->cache = array();
  107. $pane->style = array(
  108. 'settings' => NULL,
  109. 'style' => 'naked',
  110. );
  111. $pane->css = array();
  112. $pane->extras = array();
  113. $pane->position = 0;
  114. $pane->locks = array();
  115. $pane->uuid = '3d79c2a1-ab4e-4a2d-a4d6-3a3960f7ae93';
  116. $display->content['new-3d79c2a1-ab4e-4a2d-a4d6-3a3960f7ae93'] = $pane;
  117. $display->panels['left'][0] = 'new-3d79c2a1-ab4e-4a2d-a4d6-3a3960f7ae93';
  118. $pane = new stdClass();
  119. $pane->pid = 'new-5cb200c4-da2c-4eba-972d-24012a9136b7';
  120. $pane->panel = 'left';
  121. $pane->type = 'entity_field';
  122. $pane->subtype = 'node:field_emvideo';
  123. $pane->shown = TRUE;
  124. $pane->access = array();
  125. $pane->configuration = array(
  126. 'label' => 'hidden',
  127. 'formatter' => 'video_embed_field_overlay',
  128. 'delta_limit' => 0,
  129. 'delta_offset' => '0',
  130. 'delta_reversed' => FALSE,
  131. 'formatter_settings' => array(
  132. 'image_style' => 'video_thumb_themat',
  133. 'image_link' => 'source',
  134. 'video_style' => 'normal',
  135. 'show_thumbnail' => '1',
  136. 'overlay' => 'dom-window',
  137. ),
  138. 'context' => 'requiredcontext_entity:node_1',
  139. 'override_title' => 0,
  140. 'override_title_text' => '',
  141. 'override_title_heading' => 'h2',
  142. );
  143. $pane->cache = array();
  144. $pane->style = array(
  145. 'settings' => NULL,
  146. 'style' => 'naked',
  147. );
  148. $pane->css = array();
  149. $pane->extras = array();
  150. $pane->position = 1;
  151. $pane->locks = array();
  152. $pane->uuid = '5cb200c4-da2c-4eba-972d-24012a9136b7';
  153. $display->content['new-5cb200c4-da2c-4eba-972d-24012a9136b7'] = $pane;
  154. $display->panels['left'][1] = 'new-5cb200c4-da2c-4eba-972d-24012a9136b7';
  155. $pane = new stdClass();
  156. $pane->pid = 'new-5c424baf-2ef8-471e-a7f5-d8a5d8048b59';
  157. $pane->panel = 'right';
  158. $pane->type = 'entity_field';
  159. $pane->subtype = 'node:field_eclairages';
  160. $pane->shown = TRUE;
  161. $pane->access = array();
  162. $pane->configuration = array(
  163. 'label' => 'hidden',
  164. 'formatter' => 'entityreference_entity_view',
  165. 'delta_limit' => '0',
  166. 'delta_offset' => '0',
  167. 'delta_reversed' => 0,
  168. 'formatter_settings' => array(
  169. 'view_mode' => 'teaser',
  170. 'links' => 0,
  171. 'use_content_language' => 0,
  172. ),
  173. 'context' => 'requiredcontext_entity:node_1',
  174. 'override_title' => 0,
  175. 'override_title_text' => '',
  176. 'override_title_heading' => 'h2',
  177. );
  178. $pane->cache = array();
  179. $pane->style = array(
  180. 'settings' => NULL,
  181. 'style' => 'naked',
  182. );
  183. $pane->css = array();
  184. $pane->extras = array();
  185. $pane->position = 0;
  186. $pane->locks = array();
  187. $pane->uuid = '5c424baf-2ef8-471e-a7f5-d8a5d8048b59';
  188. $display->content['new-5c424baf-2ef8-471e-a7f5-d8a5d8048b59'] = $pane;
  189. $display->panels['right'][0] = 'new-5c424baf-2ef8-471e-a7f5-d8a5d8048b59';
  190. $pane = new stdClass();
  191. $pane->pid = 'new-5e7b0d6a-9243-4776-b535-b14d3cff1df1';
  192. $pane->panel = 'top';
  193. $pane->type = 'node_title';
  194. $pane->subtype = 'node_title';
  195. $pane->shown = TRUE;
  196. $pane->access = array();
  197. $pane->configuration = array(
  198. 'link' => 0,
  199. 'markup' => 'h2',
  200. 'id' => '',
  201. 'class' => '',
  202. 'context' => 'requiredcontext_entity:node_1',
  203. 'override_title' => 0,
  204. 'override_title_text' => '',
  205. 'override_title_heading' => 'h2',
  206. );
  207. $pane->cache = array();
  208. $pane->style = array(
  209. 'settings' => NULL,
  210. 'style' => 'naked',
  211. );
  212. $pane->css = array();
  213. $pane->extras = array();
  214. $pane->position = 0;
  215. $pane->locks = array();
  216. $pane->uuid = '5e7b0d6a-9243-4776-b535-b14d3cff1df1';
  217. $display->content['new-5e7b0d6a-9243-4776-b535-b14d3cff1df1'] = $pane;
  218. $display->panels['top'][0] = 'new-5e7b0d6a-9243-4776-b535-b14d3cff1df1';
  219. $display->hide_title = PANELS_TITLE_FIXED;
  220. $display->title_pane = 'new-3d79c2a1-ab4e-4a2d-a4d6-3a3960f7ae93';
  221. $mini->display = $display;
  222. $export['th_matique'] = $mini;
  223. return $export;
  224. }