popsu_structure.context.inc 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114
  1. <?php
  2. /**
  3. * @file
  4. * popsu_structure.context.inc
  5. */
  6. /**
  7. * Implements hook_context_default_contexts().
  8. */
  9. function popsu_structure_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-structure-global';
  15. $context->description = 'Contexte global de la structure du site (feature)';
  16. $context->tag = 'structure-feature';
  17. $context->conditions = array(
  18. 'sitewide' => array(
  19. 'values' => array(
  20. 1 => 1,
  21. ),
  22. ),
  23. );
  24. $context->reactions = array(
  25. 'block' => array(
  26. 'blocks' => array(
  27. 'boxes-popsu_google_analytics' => array(
  28. 'module' => 'boxes',
  29. 'delta' => 'popsu_google_analytics',
  30. 'region' => 'content',
  31. 'weight' => '-10',
  32. ),
  33. 'menu-menu-popsu-footer-droite' => array(
  34. 'module' => 'menu',
  35. 'delta' => 'menu-popsu-footer-droite',
  36. 'region' => 'footer',
  37. 'weight' => '-10',
  38. ),
  39. 'menu-menu-popsu-menu-footer' => array(
  40. 'module' => 'menu',
  41. 'delta' => 'menu-popsu-menu-footer',
  42. 'region' => 'footer',
  43. 'weight' => '-10',
  44. ),
  45. ),
  46. ),
  47. );
  48. $context->condition_mode = 0;
  49. // Translatables
  50. // Included for use with string extractors like potx.
  51. t('Contexte global de la structure du site (feature)');
  52. t('structure-feature');
  53. $export['popsu-structure-global'] = $context;
  54. $context = new stdClass();
  55. $context->disabled = FALSE; /* Edit this to true to make a default context disabled initially */
  56. $context->api_version = 3;
  57. $context->name = 'popsu-structure-homepage';
  58. $context->description = 'Contexte de la page d\'accueil du site (feature)';
  59. $context->tag = 'structure-feature';
  60. $context->conditions = array(
  61. 'path' => array(
  62. 'values' => array(
  63. '<front>' => '<front>',
  64. ),
  65. ),
  66. );
  67. $context->reactions = array();
  68. $context->condition_mode = 0;
  69. // Translatables
  70. // Included for use with string extractors like potx.
  71. t('Contexte de la page d\'accueil du site (feature)');
  72. t('structure-feature');
  73. $export['popsu-structure-homepage'] = $context;
  74. $context = new stdClass();
  75. $context->disabled = FALSE; /* Edit this to true to make a default context disabled initially */
  76. $context->api_version = 3;
  77. $context->name = 'popsu-structure-manager';
  78. $context->description = 'Contexte de structure pour le manager du site (feature)';
  79. $context->tag = 'structure-feature';
  80. $context->conditions = array(
  81. 'user' => array(
  82. 'values' => array(
  83. 'editor' => 'editor',
  84. ),
  85. ),
  86. );
  87. $context->reactions = array(
  88. 'block' => array(
  89. 'blocks' => array(
  90. 'menu-menu-manager-menu' => array(
  91. 'module' => 'menu',
  92. 'delta' => 'menu-manager-menu',
  93. 'region' => 'user_menu',
  94. 'weight' => '-10',
  95. ),
  96. ),
  97. ),
  98. );
  99. $context->condition_mode = 0;
  100. // Translatables
  101. // Included for use with string extractors like potx.
  102. t('Contexte de structure pour le manager du site (feature)');
  103. t('structure-feature');
  104. $export['popsu-structure-manager'] = $context;
  105. return $export;
  106. }