popsu_actualites.context.inc 6.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212
  1. <?php
  2. /**
  3. * @file
  4. * popsu_actualites.context.inc
  5. */
  6. /**
  7. * Implements hook_context_default_contexts().
  8. */
  9. function popsu_actualites_context_default_contexts() {
  10. $export = array();
  11. $context = new stdClass();
  12. $context->disabled = FALSE; /* Edit this to true to make a default context disabled initially */
  13. $context->api_version = 3;
  14. $context->name = 'popsu-actualites-listing';
  15. $context->description = 'Contexte du listing des Actualités POPSU (feature)';
  16. $context->tag = 'actualites-feature';
  17. $context->conditions = array(
  18. 'path' => array(
  19. 'values' => array(
  20. 'actualites' => 'actualites',
  21. ),
  22. ),
  23. );
  24. $context->reactions = array(
  25. 'block' => array(
  26. 'blocks' => array(
  27. 'boxes-popsu_logo_popsuneutral' => array(
  28. 'module' => 'boxes',
  29. 'delta' => 'popsu_logo_popsuneutral',
  30. 'region' => 'header',
  31. 'weight' => '-32',
  32. ),
  33. 'boxes-popsu_logo_baseline' => array(
  34. 'module' => 'boxes',
  35. 'delta' => 'popsu_logo_baseline',
  36. 'region' => 'header',
  37. 'weight' => '-31',
  38. ),
  39. 'boxes-popsu_logo_popsueurope' => array(
  40. 'module' => 'boxes',
  41. 'delta' => 'popsu_logo_popsueurope',
  42. 'region' => 'header',
  43. 'weight' => '-30',
  44. ),
  45. 'boxes-popsu_logo_popsu2' => array(
  46. 'module' => 'boxes',
  47. 'delta' => 'popsu_logo_popsu2',
  48. 'region' => 'header',
  49. 'weight' => '-29',
  50. ),
  51. 'boxes-popsu_logo_popsu1' => array(
  52. 'module' => 'boxes',
  53. 'delta' => 'popsu_logo_popsu1',
  54. 'region' => 'header',
  55. 'weight' => '-28',
  56. ),
  57. ),
  58. ),
  59. 'theme_html' => array(
  60. 'class' => 'popsu-neutral-section popsu-listing-actu',
  61. ),
  62. );
  63. $context->condition_mode = 1;
  64. // Translatables
  65. // Included for use with string extractors like potx.
  66. t('Contexte du listing des Actualités POPSU (feature)');
  67. t('actualites-feature');
  68. $export['popsu-actualites-listing'] = $context;
  69. $context = new stdClass();
  70. $context->disabled = FALSE; /* Edit this to true to make a default context disabled initially */
  71. $context->api_version = 3;
  72. $context->name = 'popsu-actualites-node';
  73. $context->description = 'Contexte d\'un noeud de type Actualités POPSU (feature)';
  74. $context->tag = 'actualites-feature';
  75. $context->conditions = array(
  76. 'node' => array(
  77. 'values' => array(
  78. 'popsu_actu' => 'popsu_actu',
  79. ),
  80. 'options' => array(
  81. 'node_form' => '0',
  82. ),
  83. ),
  84. );
  85. $context->reactions = array(
  86. 'block' => array(
  87. 'blocks' => array(
  88. 'boxes-popsu_logo_popsuneutral' => array(
  89. 'module' => 'boxes',
  90. 'delta' => 'popsu_logo_popsuneutral',
  91. 'region' => 'header',
  92. 'weight' => '-32',
  93. ),
  94. 'boxes-popsu_logo_baseline' => array(
  95. 'module' => 'boxes',
  96. 'delta' => 'popsu_logo_baseline',
  97. 'region' => 'header',
  98. 'weight' => '-31',
  99. ),
  100. 'boxes-popsu_logo_popsueurope' => array(
  101. 'module' => 'boxes',
  102. 'delta' => 'popsu_logo_popsueurope',
  103. 'region' => 'header',
  104. 'weight' => '-30',
  105. ),
  106. 'boxes-popsu_logo_popsu2' => array(
  107. 'module' => 'boxes',
  108. 'delta' => 'popsu_logo_popsu2',
  109. 'region' => 'header',
  110. 'weight' => '-29',
  111. ),
  112. 'boxes-popsu_logo_popsu1' => array(
  113. 'module' => 'boxes',
  114. 'delta' => 'popsu_logo_popsu1',
  115. 'region' => 'header',
  116. 'weight' => '-28',
  117. ),
  118. 'views-actualites-block_1' => array(
  119. 'module' => 'views',
  120. 'delta' => 'actualites-block_1',
  121. 'region' => 'sidebar_first',
  122. 'weight' => '0',
  123. ),
  124. 'views-actualites-block_2' => array(
  125. 'module' => 'views',
  126. 'delta' => 'actualites-block_2',
  127. 'region' => 'sidebar_first',
  128. 'weight' => '1',
  129. ),
  130. ),
  131. ),
  132. 'theme_html' => array(
  133. 'class' => 'popsu-actu-section',
  134. ),
  135. );
  136. $context->condition_mode = 1;
  137. // Translatables
  138. // Included for use with string extractors like potx.
  139. t('Contexte d\'un noeud de type Actualités POPSU (feature)');
  140. t('actualites-feature');
  141. $export['popsu-actualites-node'] = $context;
  142. $context = new stdClass();
  143. $context->disabled = FALSE; /* Edit this to true to make a default context disabled initially */
  144. $context->api_version = 3;
  145. $context->name = 'popsu-actualites-node-style2';
  146. $context->description = 'Contexte d\'un noeud de type Actualités POPSU (feature)';
  147. $context->tag = 'actualites-feature';
  148. $context->conditions = array(
  149. 'node' => array(
  150. 'values' => array(
  151. 'popsu_actu' => 'popsu_actu',
  152. ),
  153. 'options' => array(
  154. 'node_form' => '0',
  155. ),
  156. ),
  157. );
  158. $context->reactions = array(
  159. 'block' => array(
  160. 'blocks' => array(
  161. 'boxes-popsu_logo_popsuneutral' => array(
  162. 'module' => 'boxes',
  163. 'delta' => 'popsu_logo_popsuneutral',
  164. 'region' => 'header',
  165. 'weight' => '-32',
  166. ),
  167. 'boxes-popsu_logo_baseline' => array(
  168. 'module' => 'boxes',
  169. 'delta' => 'popsu_logo_baseline',
  170. 'region' => 'header',
  171. 'weight' => '-31',
  172. ),
  173. 'boxes-popsu_logo_popsueurope' => array(
  174. 'module' => 'boxes',
  175. 'delta' => 'popsu_logo_popsueurope',
  176. 'region' => 'header',
  177. 'weight' => '-30',
  178. ),
  179. 'boxes-popsu_logo_popsu2' => array(
  180. 'module' => 'boxes',
  181. 'delta' => 'popsu_logo_popsu2',
  182. 'region' => 'header',
  183. 'weight' => '-29',
  184. ),
  185. 'boxes-popsu_logo_popsu1' => array(
  186. 'module' => 'boxes',
  187. 'delta' => 'popsu_logo_popsu1',
  188. 'region' => 'header',
  189. 'weight' => '-28',
  190. ),
  191. ),
  192. ),
  193. 'theme_html' => array(
  194. 'class' => 'popsu-neutral-section',
  195. ),
  196. );
  197. $context->condition_mode = 1;
  198. // Translatables
  199. // Included for use with string extractors like potx.
  200. t('Contexte d\'un noeud de type Actualités POPSU (feature)');
  201. t('actualites-feature');
  202. $export['popsu-actualites-node-style2'] = $context;
  203. return $export;
  204. }