popsu_structure.box.inc 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  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 type="text/javascript">
  21. var _gaq = _gaq || [];
  22. _gaq.push([\'_setAccount\', \'UA-37066369-1\']);
  23. _gaq.push([\'_trackPageview\']);
  24. (function() {
  25. var ga = document.createElement(\'script\'); ga.type = \'text/javascript\'; ga.async = true;
  26. ga.src = (\'https:\' == document.location.protocol ? \'https://ssl\' : \'http://www\') + \'.google-analytics.com/ga.js\';
  27. var s = document.getElementsByTagName(\'script\')[0]; s.parentNode.insertBefore(ga, s);
  28. })();
  29. </script>',
  30. 'format' => 'php_code',
  31. ),
  32. );
  33. $export['popsu_google_analytics'] = $box;
  34. $box = new stdClass();
  35. $box->disabled = FALSE; /* Edit this to true to make a default box disabled initially */
  36. $box->api_version = 1;
  37. $box->delta = 'popsu_logo_baseline';
  38. $box->plugin_key = 'simple';
  39. $box->title = '<none>';
  40. $box->description = 'POPSU Logo Baseline (box)';
  41. $box->options = array(
  42. 'body' => array(
  43. 'value' => 'PLATE-FORME<br>
  44. D’OBSERVATION<br>
  45. DES PROJETS<br>
  46. DE STRATÉGIES URBAINES',
  47. 'format' => 'php_code',
  48. ),
  49. );
  50. $export['popsu_logo_baseline'] = $box;
  51. $box = new stdClass();
  52. $box->disabled = FALSE; /* Edit this to true to make a default box disabled initially */
  53. $box->api_version = 1;
  54. $box->delta = 'popsu_logo_popsu1';
  55. $box->plugin_key = 'simple';
  56. $box->title = '<none>';
  57. $box->description = 'POPSU Logo POPSU 1 (box)';
  58. $box->options = array(
  59. 'body' => array(
  60. 'value' => '<a title="Aller à l\'accueil de POPSU 1" rel="home" class="logo" href="/popsu1/accueil">Aller à l\'accueil de POPSU 1</a>',
  61. 'format' => 'php_code',
  62. ),
  63. 'additional_classes' => 'clearfix',
  64. );
  65. $export['popsu_logo_popsu1'] = $box;
  66. $box = new stdClass();
  67. $box->disabled = FALSE; /* Edit this to true to make a default box disabled initially */
  68. $box->api_version = 1;
  69. $box->delta = 'popsu_logo_popsu2';
  70. $box->plugin_key = 'simple';
  71. $box->title = '<none>';
  72. $box->description = 'POPSU Logo POPSU 2 (box)';
  73. $box->options = array(
  74. 'body' => array(
  75. 'value' => '<a title="Aller à l\'accueil de POPSU 2" rel="home" class="logo" href="/popsu2/accueil">Aller à l\'accueil de POPSU 2</a>',
  76. 'format' => 'php_code',
  77. ),
  78. 'additional_classes' => 'clearfix',
  79. );
  80. $export['popsu_logo_popsu2'] = $box;
  81. $box = new stdClass();
  82. $box->disabled = FALSE; /* Edit this to true to make a default box disabled initially */
  83. $box->api_version = 1;
  84. $box->delta = 'popsu_logo_popsueurope';
  85. $box->plugin_key = 'simple';
  86. $box->title = '<none>';
  87. $box->description = 'POPSU Logo POPSU Europe (box)';
  88. $box->options = array(
  89. 'body' => array(
  90. 'value' => '<a title="Aller à l\'accueil de POPSU Europe" rel="home" class="logo" href="/popsu-europe/accueil">Aller à l\'accueil de POPSU Europe</a>',
  91. 'format' => 'php_code',
  92. ),
  93. 'additional_classes' => 'clearfix',
  94. );
  95. $export['popsu_logo_popsueurope'] = $box;
  96. $box = new stdClass();
  97. $box->disabled = FALSE; /* Edit this to true to make a default box disabled initially */
  98. $box->api_version = 1;
  99. $box->delta = 'popsu_menu_trigger';
  100. $box->plugin_key = 'simple';
  101. $box->title = '<none>';
  102. $box->description = 'POPSU Trigger de menu niveau 1 (box)';
  103. $box->options = array(
  104. 'body' => array(
  105. 'value' => '<div id="menu-trigger-level1" class="menu-trigger-level1">Retour au menu</div>
  106. <div id="menu-trigger-level1-off" class="menu-trigger-level1">Masquer le menu</i></div>
  107. <div id="menu-trigger-level1-static" class="menu-trigger-level1"><a href="/popsu1/accueil">Retour au menu</a></div>',
  108. 'format' => 'php_code',
  109. ),
  110. 'additional_classes' => 'clearfix',
  111. );
  112. $export['popsu_menu_trigger'] = $box;
  113. return $export;
  114. }