popsu_structure.box.inc 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172
  1. <?php
  2. /**
  3. * @file
  4. * popsu_structure.box.inc
  5. */
  6. /**
  7. * Implements hook_default_box().
  8. */
  9. function popsu_structure_default_box() {
  10. $export = array();
  11. $box = new stdClass();
  12. $box->disabled = FALSE; /* Edit this to true to make a default box disabled initially */
  13. $box->api_version = 1;
  14. $box->delta = 'popsu_google_analytics';
  15. $box->plugin_key = 'simple';
  16. $box->title = '<none>';
  17. $box->description = 'Google Analytics tracking code';
  18. $box->options = array(
  19. 'body' => array(
  20. 'value' => '<script>
  21. (function(i,s,o,g,r,a,m){i[\'GoogleAnalyticsObject\']=r;i[r]=i[r]||function(){
  22. (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
  23. m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
  24. })(window,document,\'script\',\'//www.google-analytics.com/analytics.js\',\'ga\');
  25. ga(\'create\', \'UA-39618469-1\', \'archi.fr\');
  26. ga(\'send\', \'pageview\');
  27. </script>',
  28. 'format' => 'php_code',
  29. ),
  30. 'additional_classes' => '',
  31. );
  32. $export['popsu_google_analytics'] = $box;
  33. $box = new stdClass();
  34. $box->disabled = FALSE; /* Edit this to true to make a default box disabled initially */
  35. $box->api_version = 1;
  36. $box->delta = 'popsu_logo_baseline';
  37. $box->plugin_key = 'simple';
  38. $box->title = '<none>';
  39. $box->description = 'POPSU Logo Baseline (box)';
  40. $box->options = array(
  41. 'body' => array(
  42. 'value' => 'PLATE-FORME<br>
  43. D’OBSERVATION<br>
  44. DES PROJETS<br>
  45. DE STRATÉGIES URBAINES',
  46. 'format' => 'php_code',
  47. ),
  48. );
  49. $export['popsu_logo_baseline'] = $box;
  50. $box = new stdClass();
  51. $box->disabled = FALSE; /* Edit this to true to make a default box disabled initially */
  52. $box->api_version = 1;
  53. $box->delta = 'popsu_logo_popsu1';
  54. $box->plugin_key = 'simple';
  55. $box->title = '<none>';
  56. $box->description = 'POPSU Logo POPSU 1 (box)';
  57. $box->options = array(
  58. 'body' => array(
  59. 'value' => '<a title="Aller à l\'accueil de POPSU 1" rel="home" class="logo" href="/popsu1/accueil">Aller à l\'accueil de POPSU 1</a>',
  60. 'format' => 'php_code',
  61. ),
  62. 'additional_classes' => 'clearfix',
  63. );
  64. $export['popsu_logo_popsu1'] = $box;
  65. $box = new stdClass();
  66. $box->disabled = FALSE; /* Edit this to true to make a default box disabled initially */
  67. $box->api_version = 1;
  68. $box->delta = 'popsu_logo_popsu2';
  69. $box->plugin_key = 'simple';
  70. $box->title = '<none>';
  71. $box->description = 'POPSU Logo POPSU 2 (box)';
  72. $box->options = array(
  73. 'body' => array(
  74. 'value' => '<a title="Aller à l\'accueil de POPSU 2" rel="home" class="logo" href="/popsu2/accueil">Aller à l\'accueil de POPSU 2</a>',
  75. 'format' => 'php_code',
  76. ),
  77. 'additional_classes' => 'clearfix',
  78. );
  79. $export['popsu_logo_popsu2'] = $box;
  80. $box = new stdClass();
  81. $box->disabled = FALSE; /* Edit this to true to make a default box disabled initially */
  82. $box->api_version = 1;
  83. $box->delta = 'popsu_logo_popsueurope';
  84. $box->plugin_key = 'simple';
  85. $box->title = '<none>';
  86. $box->description = 'POPSU Logo POPSU Europe (box)';
  87. $box->options = array(
  88. 'body' => array(
  89. 'value' => '<a title="Aller à l\'accueil de POPSU Europe" rel="home" class="logo" href="/popsu-europe/accueil">Aller à l\'accueil de POPSU Europe</a>',
  90. 'format' => 'php_code',
  91. ),
  92. 'additional_classes' => 'clearfix',
  93. );
  94. $export['popsu_logo_popsueurope'] = $box;
  95. $box = new stdClass();
  96. $box->disabled = FALSE; /* Edit this to true to make a default box disabled initially */
  97. $box->api_version = 1;
  98. $box->delta = 'popsu_logo_popsumetropoles';
  99. $box->plugin_key = 'simple';
  100. $box->title = '<none>';
  101. $box->description = 'POPSU Logo POPSU Metropoles (box)';
  102. $box->options = array(
  103. 'body' => array(
  104. 'value' => '<a class="logo" href="popsu-metropoles/accueil" rel="home" title="Aller à l\'accueil de POPSU Metropoles">Aller à l\'accueil de POPSU Metropoles</a>',
  105. 'format' => 'php_code',
  106. ),
  107. 'additional_classes' => '',
  108. );
  109. $export['popsu_logo_popsumetropoles'] = $box;
  110. $box = new stdClass();
  111. $box->disabled = FALSE; /* Edit this to true to make a default box disabled initially */
  112. $box->api_version = 1;
  113. $box->delta = 'popsu_logo_popsumonde';
  114. $box->plugin_key = 'simple';
  115. $box->title = '<none>';
  116. $box->description = 'POPSU Logo POPSU Monde (box)';
  117. $box->options = array(
  118. 'body' => array(
  119. 'value' => '<a class="logo" href="popsu-monde/accueil" rel="home" title="Aller à l\'accueil de POPSU Monde">Aller à l\'accueil de POPSU Monde</a>
  120. ',
  121. 'format' => 'php_code',
  122. ),
  123. 'additional_classes' => '',
  124. );
  125. $export['popsu_logo_popsumonde'] = $box;
  126. $box = new stdClass();
  127. $box->disabled = FALSE; /* Edit this to true to make a default box disabled initially */
  128. $box->api_version = 1;
  129. $box->delta = 'popsu_logo_popsuterrritoires';
  130. $box->plugin_key = 'simple';
  131. $box->title = '<none>';
  132. $box->description = 'POPSU Logo POPSU Territoires (box)';
  133. $box->options = array(
  134. 'body' => array(
  135. 'value' => '<a class="logo" href="/popsu-territoires/accueil" rel="home" title="Aller à l\'accueil de POPSU Territoires">Aller à l\'accueil de POPSU Territoires</a>',
  136. 'format' => 'php_code',
  137. ),
  138. 'additional_classes' => '',
  139. );
  140. $export['popsu_logo_popsuterrritoires'] = $box;
  141. $box = new stdClass();
  142. $box->disabled = FALSE; /* Edit this to true to make a default box disabled initially */
  143. $box->api_version = 1;
  144. $box->delta = 'popsu_menu_trigger';
  145. $box->plugin_key = 'simple';
  146. $box->title = '<none>';
  147. $box->description = 'POPSU Trigger de menu niveau 1 (box)';
  148. $box->options = array(
  149. 'body' => array(
  150. 'value' => '<div id="menu-trigger-level1" class="menu-trigger-level1">Retour au menu</div>
  151. <div id="menu-trigger-level1-off" class="menu-trigger-level1">Masquer le menu</i></div>
  152. <div id="menu-trigger-level1-static" class="menu-trigger-level1"><a href="/popsu1/accueil">Retour au menu</a></div>',
  153. 'format' => 'php_code',
  154. ),
  155. 'additional_classes' => 'clearfix',
  156. );
  157. $export['popsu_menu_trigger'] = $box;
  158. return $export;
  159. }