clameurs.panels_default.inc 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241
  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 = TRUE;
  102. $pane->access = array();
  103. $pane->configuration = array(
  104. 'label' => 'hidden',
  105. 'formatter' => 'text_summary_or_trimmed',
  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 = TRUE;
  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-5c424baf-2ef8-471e-a7f5-d8a5d8048b59';
  168. $pane->panel = 'right';
  169. $pane->type = 'entity_field';
  170. $pane->subtype = 'node:field_eclairages';
  171. $pane->shown = TRUE;
  172. $pane->access = array();
  173. $pane->configuration = array(
  174. 'label' => 'hidden',
  175. 'formatter' => 'entityreference_entity_view',
  176. 'delta_limit' => '0',
  177. 'delta_offset' => '0',
  178. 'delta_reversed' => 0,
  179. 'formatter_settings' => array(
  180. 'view_mode' => 'teaser',
  181. 'links' => 0,
  182. 'use_content_language' => 0,
  183. ),
  184. 'context' => 'requiredcontext_entity:node_1',
  185. 'override_title' => 0,
  186. 'override_title_text' => '',
  187. 'override_title_heading' => 'h2',
  188. );
  189. $pane->cache = array();
  190. $pane->style = array(
  191. 'settings' => NULL,
  192. 'style' => 'naked',
  193. );
  194. $pane->css = array();
  195. $pane->extras = array();
  196. $pane->position = 0;
  197. $pane->locks = array();
  198. $pane->uuid = '5c424baf-2ef8-471e-a7f5-d8a5d8048b59';
  199. $display->content['new-5c424baf-2ef8-471e-a7f5-d8a5d8048b59'] = $pane;
  200. $display->panels['right'][0] = 'new-5c424baf-2ef8-471e-a7f5-d8a5d8048b59';
  201. $pane = new stdClass();
  202. $pane->pid = 'new-5e7b0d6a-9243-4776-b535-b14d3cff1df1';
  203. $pane->panel = 'top';
  204. $pane->type = 'node_title';
  205. $pane->subtype = 'node_title';
  206. $pane->shown = TRUE;
  207. $pane->access = array();
  208. $pane->configuration = array(
  209. 'link' => 0,
  210. 'markup' => 'h2',
  211. 'id' => '%node:nid',
  212. 'class' => '',
  213. 'context' => 'requiredcontext_entity:node_1',
  214. 'override_title' => 0,
  215. 'override_title_text' => '',
  216. 'override_title_heading' => 'h2',
  217. );
  218. $pane->cache = array();
  219. $pane->style = array(
  220. 'style' => 'naked',
  221. 'settings' => NULL,
  222. );
  223. $pane->css = array(
  224. 'css_id' => '%node:nid',
  225. 'css_class' => '',
  226. );
  227. $pane->extras = array();
  228. $pane->position = 0;
  229. $pane->locks = array();
  230. $pane->uuid = '5e7b0d6a-9243-4776-b535-b14d3cff1df1';
  231. $display->content['new-5e7b0d6a-9243-4776-b535-b14d3cff1df1'] = $pane;
  232. $display->panels['top'][0] = 'new-5e7b0d6a-9243-4776-b535-b14d3cff1df1';
  233. $display->hide_title = PANELS_TITLE_NONE;
  234. $display->title_pane = 'new-3d79c2a1-ab4e-4a2d-a4d6-3a3960f7ae93';
  235. $mini->display = $display;
  236. $export['th_matique'] = $mini;
  237. return $export;
  238. }